@lovrabet/rabetbase-cli 2.1.5 → 2.1.6

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 (188) 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/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.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/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -0
  48. package/lib/commands/data/getOne.js +1 -0
  49. package/lib/commands/data/index.js +1 -0
  50. package/lib/commands/data/shared.js +1 -0
  51. package/lib/commands/dataset/detail.js +1 -1
  52. package/lib/commands/dataset/index.js +1 -1
  53. package/lib/commands/dataset/links.js +1 -1
  54. package/lib/commands/dataset/list.js +1 -1
  55. package/lib/commands/dataset/operations.js +1 -1
  56. package/lib/commands/db/analyze-cancel.js +1 -1
  57. package/lib/commands/db/analyze-start.js +1 -1
  58. package/lib/commands/db/analyze-status.js +1 -1
  59. package/lib/commands/db/create.js +1 -1
  60. package/lib/commands/db/delete.js +1 -1
  61. package/lib/commands/db/detail.js +1 -1
  62. package/lib/commands/db/diff.js +1 -1
  63. package/lib/commands/db/index.js +1 -1
  64. package/lib/commands/db/list.js +1 -1
  65. package/lib/commands/db/shared.js +1 -1
  66. package/lib/commands/db/tables.js +1 -1
  67. package/lib/commands/db/test.js +1 -1
  68. package/lib/commands/db/update.js +1 -1
  69. package/lib/commands/doctor.js +1 -1
  70. package/lib/commands/init/index.js +1 -1
  71. package/lib/commands/logs/index.js +1 -1
  72. package/lib/commands/menu/index.js +1 -1
  73. package/lib/commands/menu/shared/compare-table.js +1 -1
  74. package/lib/commands/menu/shared/index.js +1 -1
  75. package/lib/commands/menu/shared/inquirer.js +1 -1
  76. package/lib/commands/menu/shared/local-pages.js +1 -1
  77. package/lib/commands/menu/shared/logic.js +1 -1
  78. package/lib/commands/menu/shared/service.js +1 -1
  79. package/lib/commands/menu/shared/sync-core.js +1 -1
  80. package/lib/commands/menu/shared/update-core.js +1 -1
  81. package/lib/commands/menu/shared/valid-url.js +1 -1
  82. package/lib/commands/menu/sync.js +1 -1
  83. package/lib/commands/menu/update.js +1 -1
  84. package/lib/commands/page/generate-start.js +1 -1
  85. package/lib/commands/page/generate-status.js +1 -1
  86. package/lib/commands/page/index.js +1 -1
  87. package/lib/commands/page/pull.js +1 -1
  88. package/lib/commands/page/push.js +1 -1
  89. package/lib/commands/page/shared.js +1 -1
  90. package/lib/commands/page/standard-page-status.js +1 -1
  91. package/lib/commands/page/sync.js +1 -1
  92. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  93. package/lib/commands/project/create/format-elapsed.js +1 -1
  94. package/lib/commands/project/create/main.js +1 -1
  95. package/lib/commands/project/create/non-interactive.js +1 -1
  96. package/lib/commands/project/create/project-template-path.js +1 -1
  97. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  98. package/lib/commands/project/create/use-format-code.js +1 -1
  99. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  100. package/lib/commands/project/index.js +1 -1
  101. package/lib/commands/project/init.js +1 -1
  102. package/lib/commands/project/upgrade.js +1 -1
  103. package/lib/commands/registry.js +1 -1
  104. package/lib/commands/run/index.js +1 -1
  105. package/lib/commands/schema.js +1 -1
  106. package/lib/commands/skill/index.js +1 -1
  107. package/lib/commands/sql/create.js +1 -1
  108. package/lib/commands/sql/delete.js +1 -1
  109. package/lib/commands/sql/detail.js +1 -1
  110. package/lib/commands/sql/exec.js +1 -1
  111. package/lib/commands/sql/index.js +1 -1
  112. package/lib/commands/sql/list.js +1 -1
  113. package/lib/commands/sql/pull.js +1 -1
  114. package/lib/commands/sql/push.js +1 -1
  115. package/lib/commands/sql/save.js +1 -1
  116. package/lib/commands/sql/shared.js +1 -1
  117. package/lib/commands/sql/status.js +1 -1
  118. package/lib/commands/sql/validate.js +1 -1
  119. package/lib/config/schema.js +1 -1
  120. package/lib/constant/cdn.js +1 -1
  121. package/lib/constant/cli.js +1 -1
  122. package/lib/constant/defaults.js +1 -1
  123. package/lib/constant/domain.js +1 -1
  124. package/lib/constant/env.js +1 -1
  125. package/lib/constant/output.js +1 -1
  126. package/lib/constant/paths.js +1 -1
  127. package/lib/constant/risk.js +1 -1
  128. package/lib/context.js +1 -1
  129. package/lib/core/alias-resolver.js +1 -1
  130. package/lib/core/api-client.js +1 -1
  131. package/lib/core/bff/config.js +1 -1
  132. package/lib/core/bff/file-system.js +1 -1
  133. package/lib/core/bff/hash.js +1 -1
  134. package/lib/core/bff/lock.js +1 -1
  135. package/lib/core/bff/utils.js +1 -1
  136. package/lib/core/db-resolver.js +1 -1
  137. package/lib/core/page/file-system.js +1 -1
  138. package/lib/core/page/hash.js +1 -1
  139. package/lib/core/page/lock.js +1 -1
  140. package/lib/core/sql-sync/config.js +1 -1
  141. package/lib/core/sql-sync/file-system.js +1 -1
  142. package/lib/core/sql-sync/hash.js +1 -1
  143. package/lib/core/sql-sync/lock.js +1 -1
  144. package/lib/core/sql-sync/utils.js +1 -1
  145. package/lib/core/sql-validator.js +1 -1
  146. package/lib/errors.js +1 -1
  147. package/lib/framework/build-all-flags.js +1 -1
  148. package/lib/framework/flags.js +1 -1
  149. package/lib/framework/help.js +1 -1
  150. package/lib/framework/index.js +1 -1
  151. package/lib/framework/output.js +1 -1
  152. package/lib/framework/response.js +1 -1
  153. package/lib/framework/runner-alias.js +1 -1
  154. package/lib/framework/runner.js +1 -1
  155. package/lib/framework/schema-export.js +1 -1
  156. package/lib/framework/types.js +1 -1
  157. package/lib/generated/build-info.js +1 -1
  158. package/lib/help.js +1 -1
  159. package/lib/skills/main.js +1 -1
  160. package/lib/skills/npx-skills-add.js +1 -1
  161. package/lib/telemetry/cli-command-trace.js +1 -1
  162. package/lib/telemetry/cli-help-trace.js +1 -1
  163. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  164. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  165. package/lib/telemetry/send-cli-trace-log.js +1 -1
  166. package/lib/utils/ai_config.js +1 -1
  167. package/lib/utils/apply-jq-filter.js +1 -1
  168. package/lib/utils/cdn-config.js +1 -1
  169. package/lib/utils/check-sdk-version.js +1 -1
  170. package/lib/utils/cli-version-check.js +1 -1
  171. package/lib/utils/cli-version-policy.js +1 -1
  172. package/lib/utils/config.js +1 -1
  173. package/lib/utils/copy-directory.js +1 -1
  174. package/lib/utils/entity-with-id.js +1 -1
  175. package/lib/utils/file-utils.js +1 -1
  176. package/lib/utils/guides-cdn.js +1 -1
  177. package/lib/utils/http-client.js +1 -1
  178. package/lib/utils/is-non-interactive.js +1 -1
  179. package/lib/utils/logger.js +1 -1
  180. package/lib/utils/params.js +1 -0
  181. package/lib/utils/platform.js +1 -1
  182. package/lib/utils/rules-cdn.js +1 -1
  183. package/lib/utils/sleep.js +1 -1
  184. package/lib/utils/template-replacer.js +1 -1
  185. package/lib/utils/version.js +1 -1
  186. package/lib/utils/with-active-cookie.js +1 -1
  187. package/lib/utils/write-cli-side-channel.js +1 -1
  188. package/package.json +4 -4
@@ -1 +1 @@
1
- (function(_0x4b2251,_0x316db4){const _0xb7b104=a141_0x3c9d,_0x4b717d=_0x4b2251();while(!![]){try{const _0x5daa0a=-parseInt(_0xb7b104(0xfb))/0x1*(parseInt(_0xb7b104(0x108))/0x2)+parseInt(_0xb7b104(0x103))/0x3+parseInt(_0xb7b104(0x10d))/0x4*(-parseInt(_0xb7b104(0xf9))/0x5)+parseInt(_0xb7b104(0x102))/0x6+parseInt(_0xb7b104(0x100))/0x7+-parseInt(_0xb7b104(0x109))/0x8+parseInt(_0xb7b104(0x105))/0x9*(parseInt(_0xb7b104(0xfa))/0xa);if(_0x5daa0a===_0x316db4)break;else _0x4b717d['push'](_0x4b717d['shift']());}catch(_0x132d33){_0x4b717d['push'](_0x4b717d['shift']());}}}(a141_0x25f4,0xf2d1c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x4a8f7b,_0x1ba387,_0x11cb4f,_0xa1f7d2){const _0x45257b=a141_0x3c9d,_0x2586d6=_0x4a8f7b??createEmptySqlLock();let _0x1bf345=_0x2586d6['apps'][_0x1ba387];if(!_0x1bf345)return _0x1bf345={'sqlRoot':_0x11cb4f,'lastSync':'','sqls':{}},_0x2586d6[_0x45257b(0x101)][_0x1ba387]=_0x1bf345,{'lockData':_0x2586d6,'appLock':_0x1bf345};if(!_0x1bf345[_0x45257b(0x106)])_0x1bf345[_0x45257b(0x106)]=_0x11cb4f;else{if(_0x1bf345[_0x45257b(0x106)]!==_0x11cb4f)throw new Error(_0xa1f7d2+_0x45257b(0x10c)+_0x11cb4f+_0x45257b(0xfe)+_0x1bf345['sqlRoot']+_0x45257b(0x10e)+_0x45257b(0xfc));}return!_0x1bf345[_0x45257b(0x107)]&&(_0x1bf345[_0x45257b(0x107)]={}),!_0x1bf345['lastSync']&&(_0x1bf345[_0x45257b(0xfd)]=''),{'lockData':_0x2586d6,'appLock':_0x1bf345};}function a141_0x3c9d(_0x50746b,_0x5a2a29){_0x50746b=_0x50746b-0xf8;const _0x25f4f0=a141_0x25f4();let _0x3c9d3d=_0x25f4f0[_0x50746b];return _0x3c9d3d;}export async function readSqlLockFile(_0x1c3e81){const _0x231901=a141_0x3c9d;try{const _0x3e1c69=await readFile(_0x1c3e81,'utf8');return JSON[_0x231901(0x10a)](_0x3e1c69);}catch(_0xa75dbb){if(_0xa75dbb[_0x231901(0xf8)]==='ENOENT')return null;throw new Error(_0x231901(0x104)+String(_0xa75dbb));}}export async function writeSqlLockFile(_0x423bd8,_0x316b06){const _0x4a9d1f=a141_0x3c9d;await mkdir(dirname(_0x423bd8),{'recursive':!![]}),await writeFile(_0x423bd8,JSON[_0x4a9d1f(0x10b)](_0x316b06,null,0x2),_0x4a9d1f(0xff));}function a141_0x25f4(){const _0x21b23e=['stringify',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','52sqkySf','\x22.\x20','code','621755lLmZoe','13807270WwLLgt','197305RTLtNw','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','lastSync','\x22\x20vs\x20lock\x20\x22','utf8','5778724gLNZQa','apps','10204122WzhREH','3261984AZQqRS','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','18vbOmTA','sqlRoot','sqls','20akDNdo','14326400NryOPx','parse'];a141_0x25f4=function(){return _0x21b23e;};return a141_0x25f4();}
1
+ function a145_0x1ec4(){const _0x123df2=['\x22.\x20','sqlRoot','7yfLEJM','3SuDuLH','apps','2845560AZpXVR','517178Ovaune','stringify','parse','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','lastSync',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','ENOENT','sqls','2989672hSSlnR','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','470543ncGHoJ','741855KIjpme','utf8','1542952uOdHIO','13842162TMqdad'];a145_0x1ec4=function(){return _0x123df2;};return a145_0x1ec4();}(function(_0x441d6b,_0x4eb902){const _0x5ea1ce=a145_0x218c,_0x483dc3=_0x441d6b();while(!![]){try{const _0x5f280c=-parseInt(_0x5ea1ce(0x151))/0x1+parseInt(_0x5ea1ce(0x15c))/0x2*(parseInt(_0x5ea1ce(0x159))/0x3)+-parseInt(_0x5ea1ce(0x154))/0x4+parseInt(_0x5ea1ce(0x152))/0x5+-parseInt(_0x5ea1ce(0x15b))/0x6+parseInt(_0x5ea1ce(0x158))/0x7*(-parseInt(_0x5ea1ce(0x14f))/0x8)+parseInt(_0x5ea1ce(0x155))/0x9;if(_0x5f280c===_0x4eb902)break;else _0x483dc3['push'](_0x483dc3['shift']());}catch(_0x49358e){_0x483dc3['push'](_0x483dc3['shift']());}}}(a145_0x1ec4,0x3ac58));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x377b49,_0x10d563,_0x4bb6e6,_0x4aafe3){const _0x17d63f=a145_0x218c,_0x35cdb6=_0x377b49??createEmptySqlLock();let _0x38c6d6=_0x35cdb6[_0x17d63f(0x15a)][_0x10d563];if(!_0x38c6d6)return _0x38c6d6={'sqlRoot':_0x4bb6e6,'lastSync':'','sqls':{}},_0x35cdb6[_0x17d63f(0x15a)][_0x10d563]=_0x38c6d6,{'lockData':_0x35cdb6,'appLock':_0x38c6d6};if(!_0x38c6d6[_0x17d63f(0x157)])_0x38c6d6[_0x17d63f(0x157)]=_0x4bb6e6;else{if(_0x38c6d6[_0x17d63f(0x157)]!==_0x4bb6e6)throw new Error(_0x4aafe3+_0x17d63f(0x14c)+_0x4bb6e6+'\x22\x20vs\x20lock\x20\x22'+_0x38c6d6[_0x17d63f(0x157)]+_0x17d63f(0x156)+_0x17d63f(0x14a));}return!_0x38c6d6[_0x17d63f(0x14e)]&&(_0x38c6d6[_0x17d63f(0x14e)]={}),!_0x38c6d6['lastSync']&&(_0x38c6d6[_0x17d63f(0x14b)]=''),{'lockData':_0x35cdb6,'appLock':_0x38c6d6};}export async function readSqlLockFile(_0x5eb82a){const _0x4a22e9=a145_0x218c;try{const _0x210bfc=await readFile(_0x5eb82a,'utf8');return JSON[_0x4a22e9(0x15e)](_0x210bfc);}catch(_0x3b5db1){if(_0x3b5db1['code']===_0x4a22e9(0x14d))return null;throw new Error(_0x4a22e9(0x150)+String(_0x3b5db1));}}function a145_0x218c(_0x5c4df9,_0x2bbe2c){_0x5c4df9=_0x5c4df9-0x14a;const _0x1ec43c=a145_0x1ec4();let _0x218cd9=_0x1ec43c[_0x5c4df9];return _0x218cd9;}export async function writeSqlLockFile(_0x52b6e1,_0x3525e6){const _0x5bf21f=a145_0x218c;await mkdir(dirname(_0x52b6e1),{'recursive':!![]}),await writeFile(_0x52b6e1,JSON[_0x5bf21f(0x15d)](_0x3525e6,null,0x2),_0x5bf21f(0x153));}
@@ -1 +1 @@
1
- (function(_0x45d24b,_0x126feb){const _0x264be3=a143_0x3ca9,_0x3d8075=_0x45d24b();while(!![]){try{const _0x1f321a=-parseInt(_0x264be3(0x159))/0x1+parseInt(_0x264be3(0x155))/0x2+-parseInt(_0x264be3(0x162))/0x3*(-parseInt(_0x264be3(0x15c))/0x4)+parseInt(_0x264be3(0x15d))/0x5+-parseInt(_0x264be3(0x164))/0x6*(parseInt(_0x264be3(0x160))/0x7)+parseInt(_0x264be3(0x154))/0x8*(-parseInt(_0x264be3(0x153))/0x9)+-parseInt(_0x264be3(0x15f))/0xa*(-parseInt(_0x264be3(0x157))/0xb);if(_0x1f321a===_0x126feb)break;else _0x3d8075['push'](_0x3d8075['shift']());}catch(_0x1c6b31){_0x3d8075['push'](_0x3d8075['shift']());}}}(a143_0x47d4,0x97c36));export function detectSqlMode(_0x28af84){const _0x253d7c=a143_0x3ca9,_0x5bd323=_0x28af84[_0x253d7c(0x158)]();if(/^<(select|insert|update|delete)\b/i[_0x253d7c(0x165)](_0x5bd323))return'mybatisXml';return _0x253d7c(0x156);}export function getSqlFileExtension(_0x357972){const _0x45cc4c=a143_0x3ca9;return _0x357972===_0x45cc4c(0x163)?_0x45cc4c(0x15b):_0x45cc4c(0x161);}export function buildDefaultSqlFileName(_0x3850a6,_0x37a3ac){return''+_0x3850a6+getSqlFileExtension(_0x37a3ac);}export function sanitizeSqlPathSegment(_0x450060,_0x1693f0){const _0x3f6687=a143_0x3ca9,_0x5ebb93=String(_0x450060??'')[_0x3f6687(0x15a)](),_0x110b75=_0x5ebb93[_0x3f6687(0x15e)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x3f6687(0x15e)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x3f6687(0x15e)](/^\.+/,'')[_0x3f6687(0x15e)](/\.+$/,'')[_0x3f6687(0x15e)](/^-+/,'')[_0x3f6687(0x15e)](/-+$/,'');return _0x110b75||_0x1693f0;}export function buildDbDirectoryName(_0x3fdc3d,_0x1ccfea){return sanitizeSqlPathSegment(_0x3fdc3d,_0x1ccfea!=null?'db-'+_0x1ccfea:'unknown-db');}function a143_0x3ca9(_0x462daa,_0x249049){_0x462daa=_0x462daa-0x153;const _0x47d4dc=a143_0x47d4();let _0x3ca9a0=_0x47d4dc[_0x462daa];return _0x3ca9a0;}function a143_0x47d4(){const _0x35eb11=['trim','.xml','8kAoiqC','1828645pmRNzc','replace','24670fCHcDJ','7fjLAUd','.sql','1862715WTxbgn','mybatisXml','2491806qTtAJz','test','1422FJyNPd','60472xGHInY','1907450eYnbok','sql','1133QDvhxN','trimStart','584120PUEDnY'];a143_0x47d4=function(){return _0x35eb11;};return a143_0x47d4();}export function buildSqlRelativePath(_0x277190,_0x185097,_0x276ad9,_0x3715dc,_0x17f3be){const _0x3923bf=buildDbDirectoryName(_0x276ad9,_0x17f3be),_0x55ab58=sanitizeSqlPathSegment(_0x277190,'unknown-sql'),_0x2eb8ff=sanitizeSqlPathSegment(_0x185097,_0x55ab58);return _0x3923bf+'/'+_0x55ab58+'_'+_0x2eb8ff+getSqlFileExtension(_0x3715dc);}
1
+ function a147_0x4e3d(){const _0x15bacf=['788826OZFMrl','4220181gHwRWJ','mybatisXml','test','.sql','182kPZnCd','495909oueynj','trimStart','replace','1501Mpvnbd','1490384QTLPXI','unknown-db','unknown-sql','459680NSmTPT','7xqjxRt','sql','860350gkJdBR'];a147_0x4e3d=function(){return _0x15bacf;};return a147_0x4e3d();}(function(_0x450731,_0x178761){const _0x160705=a147_0x4e9b,_0x362f4e=_0x450731();while(!![]){try{const _0x25963a=-parseInt(_0x160705(0x109))/0x1*(parseInt(_0x160705(0x105))/0x2)+parseInt(_0x160705(0x106))/0x3+parseInt(_0x160705(0x10d))/0x4+-parseInt(_0x160705(0x110))/0x5+parseInt(_0x160705(0x111))/0x6*(-parseInt(_0x160705(0x10e))/0x7)+-parseInt(_0x160705(0x10a))/0x8+parseInt(_0x160705(0x101))/0x9;if(_0x25963a===_0x178761)break;else _0x362f4e['push'](_0x362f4e['shift']());}catch(_0x21ef9b){_0x362f4e['push'](_0x362f4e['shift']());}}}(a147_0x4e3d,0x1df4e));export function detectSqlMode(_0x40436c){const _0xe47dd5=a147_0x4e9b,_0x2b1e7e=_0x40436c[_0xe47dd5(0x107)]();if(/^<(select|insert|update|delete)\b/i[_0xe47dd5(0x103)](_0x2b1e7e))return _0xe47dd5(0x102);return _0xe47dd5(0x10f);}export function getSqlFileExtension(_0x56b182){const _0x330b27=a147_0x4e9b;return _0x56b182==='mybatisXml'?'.xml':_0x330b27(0x104);}export function buildDefaultSqlFileName(_0x3b53d4,_0x37ec87){return''+_0x3b53d4+getSqlFileExtension(_0x37ec87);}function a147_0x4e9b(_0x126c51,_0x3b5c91){_0x126c51=_0x126c51-0x101;const _0x4e3d63=a147_0x4e3d();let _0x4e9ba0=_0x4e3d63[_0x126c51];return _0x4e9ba0;}export function sanitizeSqlPathSegment(_0x2f1255,_0x3944aa){const _0x5c67b8=a147_0x4e9b,_0x5e765d=String(_0x2f1255??'')['trim'](),_0x548b38=_0x5e765d[_0x5c67b8(0x108)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5c67b8(0x108)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x5c67b8(0x108)](/^\.+/,'')['replace'](/\.+$/,'')[_0x5c67b8(0x108)](/^-+/,'')[_0x5c67b8(0x108)](/-+$/,'');return _0x548b38||_0x3944aa;}export function buildDbDirectoryName(_0x570023,_0x1ce4f4){const _0x333959=a147_0x4e9b;return sanitizeSqlPathSegment(_0x570023,_0x1ce4f4!=null?'db-'+_0x1ce4f4:_0x333959(0x10b));}export function buildSqlRelativePath(_0x3c1351,_0x2d29dd,_0x16c1d7,_0x52cc85,_0x224cd8){const _0x126609=a147_0x4e9b,_0x45a062=buildDbDirectoryName(_0x16c1d7,_0x224cd8),_0x5a267b=sanitizeSqlPathSegment(_0x3c1351,_0x126609(0x10c)),_0x58434d=sanitizeSqlPathSegment(_0x2d29dd,_0x5a267b);return _0x45a062+'/'+_0x5a267b+'_'+_0x58434d+getSqlFileExtension(_0x52cc85);}
@@ -1 +1 @@
1
- (function(_0x3b2e4d,_0x2b3ce1){const _0x44c725=a144_0x1941,_0x553004=_0x3b2e4d();while(!![]){try{const _0x2e0bff=-parseInt(_0x44c725(0x16a))/0x1+parseInt(_0x44c725(0x154))/0x2+parseInt(_0x44c725(0x15a))/0x3*(-parseInt(_0x44c725(0x150))/0x4)+parseInt(_0x44c725(0x16c))/0x5*(-parseInt(_0x44c725(0x15f))/0x6)+parseInt(_0x44c725(0x155))/0x7+parseInt(_0x44c725(0x167))/0x8+-parseInt(_0x44c725(0x171))/0x9*(parseInt(_0x44c725(0x157))/0xa);if(_0x2e0bff===_0x2b3ce1)break;else _0x553004['push'](_0x553004['shift']());}catch(_0x4b5b02){_0x553004['push'](_0x553004['shift']());}}}(a144_0x18ed,0x2051d));export function detectSqlType(_0x3d738c){const _0x303a59=a144_0x1941;if(!_0x3d738c?.[_0x303a59(0x166)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x4fb0d0=_0x3d738c[_0x303a59(0x159)](/#\{[^}]*\}/g,'?')[_0x303a59(0x159)](/\$\{[^}]*\}/g,'?')[_0x303a59(0x159)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x303a59(0x159)](/\/\*[\s\S]*?\*\//g,'')[_0x303a59(0x166)](),_0x253b1b=_0x4fb0d0[_0x303a59(0x15b)]('\x0a');let _0x436874='';for(const _0x2aa756 of _0x253b1b){const _0x5666ae=_0x2aa756['trim']();if(!_0x5666ae||_0x5666ae[_0x303a59(0x160)]('--')||_0x5666ae[_0x303a59(0x160)]('/*'))continue;_0x436874=_0x5666ae;break;}const _0x5820e5=_0x436874['toUpperCase']();if(_0x5820e5['startsWith'](_0x303a59(0x172))||_0x5820e5[_0x303a59(0x160)](_0x303a59(0x15e))){const _0x53dc16=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x303a59(0x16d)](_0x4fb0d0);return{'type':'SELECT','isSelectOnly':!_0x53dc16,'isDangerous':_0x53dc16,'reason':_0x53dc16?_0x303a59(0x151):undefined};}if(_0x5820e5[_0x303a59(0x160)]('INSERT'))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x5820e5[_0x303a59(0x160)]('UPDATE'))return{'type':_0x303a59(0x153),'isSelectOnly':![],'isDangerous':![]};if(_0x5820e5[_0x303a59(0x160)](_0x303a59(0x16f)))return{'type':_0x303a59(0x16f),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x303a59(0x16d)](_0x5820e5))return{'type':_0x303a59(0x158),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x303a59(0x165),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x31c48c){const _0x1ffc9b=a144_0x1941,_0x47e73e=_0x31c48c[_0x1ffc9b(0x159)](/#\{[^}]*\}/g,'?')[_0x1ffc9b(0x159)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x1ffc9b(0x159)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x36b6ad=[],_0x4ba342=_0x47e73e[_0x1ffc9b(0x15c)](/FROM\s+([^\s,)(]+)/i);if(_0x4ba342?.[0x1])_0x36b6ad[_0x1ffc9b(0x173)](_0x4ba342[0x1][_0x1ffc9b(0x159)](/[`"]/g,''));for(const _0x3ec68d of _0x47e73e['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x39dc56=_0x3ec68d[0x1]?.['replace'](/[`"]/g,'');if(_0x39dc56&&!_0x36b6ad[_0x1ffc9b(0x15d)](_0x39dc56))_0x36b6ad[_0x1ffc9b(0x173)](_0x39dc56);}const _0xbfb0ad=_0x47e73e[_0x1ffc9b(0x15c)](/INTO\s+([^\s(]+)/i);if(_0xbfb0ad?.[0x1]){const _0xa0ab1e=_0xbfb0ad[0x1][_0x1ffc9b(0x159)](/[`"]/g,'');if(!_0x36b6ad[_0x1ffc9b(0x15d)](_0xa0ab1e))_0x36b6ad[_0x1ffc9b(0x173)](_0xa0ab1e);}const _0xf551=_0x47e73e['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0xf551?.[0x1]){const _0x216467=_0xf551[0x1]['replace'](/[`"]/g,'');if(!_0x36b6ad[_0x1ffc9b(0x15d)](_0x216467))_0x36b6ad[_0x1ffc9b(0x173)](_0x216467);}return _0x36b6ad;}function a144_0x1941(_0x24c902,_0x28cc1a){_0x24c902=_0x24c902-0x150;const _0x18ede5=a144_0x18ed();let _0x194120=_0x18ede5[_0x24c902];return _0x194120;}function a144_0x18ed(){const _0x52d93b=['109855mPyrlq','test','type','DELETE','matchAll','3555fTRBLv','SELECT','push','1364mWugYn','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','length','UPDATE','417120ElPMRV','1428224iqxHiU','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','1710xtwEoZ','DDL','replace','1731YLApze','split','match','includes','WITH','54JvJbVf','startsWith','add','join','isDangerous','from','UNKNOWN','trim','2079808gyMmzm','\x20query\x20targeting\x20','\x20with\x20parameters:\x20','78146xSlQma','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'];a144_0x18ed=function(){return _0x52d93b;};return a144_0x18ed();}function extractParameters(_0x4c57b3){const _0x5a1e18=a144_0x1941,_0x13e398=new Set();for(const _0x5d234d of _0x4c57b3[_0x5a1e18(0x170)](/#\{(\w+)\}/g))if(_0x5d234d[0x1])_0x13e398[_0x5a1e18(0x161)](_0x5d234d[0x1]);for(const _0x38676b of _0x4c57b3[_0x5a1e18(0x170)](/\$\{(\w+)\}/g))if(_0x38676b[0x1])_0x13e398[_0x5a1e18(0x161)](_0x38676b[0x1]);return Array[_0x5a1e18(0x164)](_0x13e398);}export function validateSql(_0x4f88b8){const _0xa94a25=a144_0x1941,_0x194cec=detectSqlType(_0x4f88b8),_0x5e6e9e=extractTables(_0x4f88b8),_0x552335=extractParameters(_0x4f88b8);if(_0x194cec[_0xa94a25(0x163)])return{'valid':![],'sqlType':_0x194cec,'tables':_0x5e6e9e,'parameters':_0x552335,'message':_0x194cec['reason']||_0x194cec[_0xa94a25(0x16e)]+_0xa94a25(0x156)};if(_0x194cec['type']===_0xa94a25(0x165))return{'valid':![],'sqlType':_0x194cec,'tables':_0x5e6e9e,'parameters':_0x552335,'message':_0xa94a25(0x16b)};return{'valid':!![],'sqlType':_0x194cec,'tables':_0x5e6e9e,'parameters':_0x552335,'message':_0x194cec[_0xa94a25(0x16e)]+_0xa94a25(0x168)+(_0x5e6e9e[_0xa94a25(0x152)]?_0x5e6e9e['join'](',\x20'):'unknown\x20table(s)')+(_0x552335[_0xa94a25(0x152)]?_0xa94a25(0x169)+_0x552335[_0xa94a25(0x162)](',\x20'):'')};}
1
+ (function(_0x30d34e,_0x3c29cb){const _0x28d278=a148_0x4c89,_0x42712c=_0x30d34e();while(!![]){try{const _0x13f966=parseInt(_0x28d278(0xfa))/0x1*(-parseInt(_0x28d278(0x10c))/0x2)+-parseInt(_0x28d278(0xf2))/0x3*(parseInt(_0x28d278(0xfd))/0x4)+-parseInt(_0x28d278(0xed))/0x5*(parseInt(_0x28d278(0xe7))/0x6)+parseInt(_0x28d278(0x105))/0x7*(parseInt(_0x28d278(0x10a))/0x8)+-parseInt(_0x28d278(0xe9))/0x9+parseInt(_0x28d278(0xf0))/0xa+parseInt(_0x28d278(0xfc))/0xb;if(_0x13f966===_0x3c29cb)break;else _0x42712c['push'](_0x42712c['shift']());}catch(_0x47d6e6){_0x42712c['push'](_0x42712c['shift']());}}}(a148_0x5cbd,0x27b0f));export function detectSqlType(_0x5615c6){const _0x518e20=a148_0x4c89;if(!_0x5615c6?.[_0x518e20(0xe8)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x518e20(0xec)};const _0x2a37b7=_0x5615c6[_0x518e20(0xf7)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x518e20(0xe8)](),_0x1a3ee1=_0x2a37b7[_0x518e20(0xff)]('\x0a');let _0x4684b8='';for(const _0x1aef2e of _0x1a3ee1){const _0xa2e816=_0x1aef2e[_0x518e20(0xe8)]();if(!_0xa2e816||_0xa2e816['startsWith']('--')||_0xa2e816[_0x518e20(0xf6)]('/*'))continue;_0x4684b8=_0xa2e816;break;}const _0x570688=_0x4684b8['toUpperCase']();if(_0x570688[_0x518e20(0xf6)](_0x518e20(0xe6))||_0x570688[_0x518e20(0xf6)](_0x518e20(0xfe))){const _0x3d648d=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x2a37b7);return{'type':'SELECT','isSelectOnly':!_0x3d648d,'isDangerous':_0x3d648d,'reason':_0x3d648d?_0x518e20(0x103):undefined};}if(_0x570688[_0x518e20(0xf6)](_0x518e20(0xea)))return{'type':_0x518e20(0xea),'isSelectOnly':![],'isDangerous':![]};if(_0x570688['startsWith'](_0x518e20(0x109)))return{'type':_0x518e20(0x109),'isSelectOnly':![],'isDangerous':![]};if(_0x570688['startsWith'](_0x518e20(0xe5)))return{'type':_0x518e20(0xe5),'isSelectOnly':![],'isDangerous':!![],'reason':_0x518e20(0x106)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x518e20(0xef)](_0x570688))return{'type':_0x518e20(0x108),'isSelectOnly':![],'isDangerous':!![],'reason':_0x518e20(0xfb)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function a148_0x5cbd(){const _0x116d4d=['506770fQZjpc','UNKNOWN','19281DxjsBx','matchAll','reason','match','startsWith','replace','includes','push','23xiiTht','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','6764120snsMpD','4UlCeyy','WITH','split','type','add','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','unknown\x20table(s)','7lwLCGe','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20with\x20parameters:\x20','DDL','UPDATE','319672GHFPEJ','from','18170UOJQQO','DELETE','SELECT','6NEEPab','trim','1597581bYdXFh','INSERT','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SQL\x20content\x20is\x20empty','750450vFTUIq','length','test'];a148_0x5cbd=function(){return _0x116d4d;};return a148_0x5cbd();}function extractTables(_0x126255){const _0x220ec6=a148_0x4c89,_0x198dfc=_0x126255[_0x220ec6(0xf7)](/#\{[^}]*\}/g,'?')[_0x220ec6(0xf7)](/\$\{[^}]*\}/g,'?')[_0x220ec6(0xf7)](/'[^']*'/g,'\x27\x27')[_0x220ec6(0xf7)](/--.*$/gm,'')[_0x220ec6(0xf7)](/\/\*[\s\S]*?\*\//g,''),_0x4a7d88=[],_0x31459e=_0x198dfc[_0x220ec6(0xf5)](/FROM\s+([^\s,)(]+)/i);if(_0x31459e?.[0x1])_0x4a7d88[_0x220ec6(0xf9)](_0x31459e[0x1][_0x220ec6(0xf7)](/[`"]/g,''));for(const _0xc7fec6 of _0x198dfc[_0x220ec6(0xf3)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2347d9=_0xc7fec6[0x1]?.['replace'](/[`"]/g,'');if(_0x2347d9&&!_0x4a7d88[_0x220ec6(0xf8)](_0x2347d9))_0x4a7d88[_0x220ec6(0xf9)](_0x2347d9);}const _0x504414=_0x198dfc[_0x220ec6(0xf5)](/INTO\s+([^\s(]+)/i);if(_0x504414?.[0x1]){const _0xddde1d=_0x504414[0x1]['replace'](/[`"]/g,'');if(!_0x4a7d88[_0x220ec6(0xf8)](_0xddde1d))_0x4a7d88[_0x220ec6(0xf9)](_0xddde1d);}const _0x743268=_0x198dfc[_0x220ec6(0xf5)](/UPDATE\s+([^\s,)(]+)/i);if(_0x743268?.[0x1]){const _0x1dd9ad=_0x743268[0x1]['replace'](/[`"]/g,'');if(!_0x4a7d88['includes'](_0x1dd9ad))_0x4a7d88[_0x220ec6(0xf9)](_0x1dd9ad);}return _0x4a7d88;}function a148_0x4c89(_0x58ff05,_0x39d42a){_0x58ff05=_0x58ff05-0xe5;const _0x5cbd5c=a148_0x5cbd();let _0x4c896e=_0x5cbd5c[_0x58ff05];return _0x4c896e;}function extractParameters(_0x56c23e){const _0x2a0e4e=a148_0x4c89,_0x13bd67=new Set();for(const _0x12f27e of _0x56c23e[_0x2a0e4e(0xf3)](/#\{(\w+)\}/g))if(_0x12f27e[0x1])_0x13bd67[_0x2a0e4e(0x101)](_0x12f27e[0x1]);for(const _0x34c5dd of _0x56c23e[_0x2a0e4e(0xf3)](/\$\{(\w+)\}/g))if(_0x34c5dd[0x1])_0x13bd67[_0x2a0e4e(0x101)](_0x34c5dd[0x1]);return Array[_0x2a0e4e(0x10b)](_0x13bd67);}export function validateSql(_0x1c4c24){const _0x5a5c49=a148_0x4c89,_0x2d44fa=detectSqlType(_0x1c4c24),_0x1fd388=extractTables(_0x1c4c24),_0x1e4aa3=extractParameters(_0x1c4c24);if(_0x2d44fa['isDangerous'])return{'valid':![],'sqlType':_0x2d44fa,'tables':_0x1fd388,'parameters':_0x1e4aa3,'message':_0x2d44fa[_0x5a5c49(0xf4)]||_0x2d44fa[_0x5a5c49(0x100)]+_0x5a5c49(0x102)};if(_0x2d44fa['type']===_0x5a5c49(0xf1))return{'valid':![],'sqlType':_0x2d44fa,'tables':_0x1fd388,'parameters':_0x1e4aa3,'message':_0x5a5c49(0xeb)};return{'valid':!![],'sqlType':_0x2d44fa,'tables':_0x1fd388,'parameters':_0x1e4aa3,'message':_0x2d44fa['type']+'\x20query\x20targeting\x20'+(_0x1fd388[_0x5a5c49(0xee)]?_0x1fd388['join'](',\x20'):_0x5a5c49(0x104))+(_0x1e4aa3[_0x5a5c49(0xee)]?_0x5a5c49(0x107)+_0x1e4aa3['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a145_0xa0412=a145_0x2a01;function a145_0x2a01(_0x1df853,_0x4d3e62){_0x1df853=_0x1df853-0x128;const _0x10ba94=a145_0x10ba();let _0x2a01a7=_0x10ba94[_0x1df853];return _0x2a01a7;}(function(_0x185b45,_0x432269){const _0x546f87=a145_0x2a01,_0x2fca75=_0x185b45();while(!![]){try{const _0x504203=-parseInt(_0x546f87(0x12e))/0x1+-parseInt(_0x546f87(0x133))/0x2+-parseInt(_0x546f87(0x129))/0x3*(-parseInt(_0x546f87(0x12a))/0x4)+parseInt(_0x546f87(0x12c))/0x5*(-parseInt(_0x546f87(0x12b))/0x6)+parseInt(_0x546f87(0x136))/0x7*(-parseInt(_0x546f87(0x134))/0x8)+-parseInt(_0x546f87(0x12f))/0x9+-parseInt(_0x546f87(0x131))/0xa*(-parseInt(_0x546f87(0x12d))/0xb);if(_0x504203===_0x432269)break;else _0x2fca75['push'](_0x2fca75['shift']());}catch(_0x1020b5){_0x2fca75['push'](_0x2fca75['shift']());}}}(a145_0x10ba,0x4f6d0));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a145_0x10ba(){const _0x56520b=['923064HZyRZm','Tip:\x20`','14IpQDMQ','\x0a\x20\x20\x20\x20\x20\x20\x20','317139wmOLDE','12TmhSvp','43662MbIoAu','305NGXfAk','4703974sYXcvL','323473eklGfM','3619179PsGvEh','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','40TlBEsF','Set\x20appcode\x20via\x20`','604160ZXeRhI'];a145_0x10ba=function(){return _0x56520b;};return a145_0x10ba();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a145_0xa0412(0x132)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a145_0xa0412(0x135)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a145_0xa0412(0x128)),'notInProjectHint':a145_0xa0412(0x130)});
1
+ function a149_0x4bbf(){const _0x2129aa=['Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','5745592HcQbhE','143216iFqqJY','322818eHSLjr','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','10mbKJQq','38700081UDZgcY','5128392SWtpgK','65FxBkFc','2993382zthlcD','84cWdPBq','Tip:\x20`','389916hAqmgn','join','Run\x20`','\x20auth`\x20to\x20login\x20first.'];a149_0x4bbf=function(){return _0x2129aa;};return a149_0x4bbf();}const a149_0x2fb248=a149_0x1661;function a149_0x1661(_0x174b85,_0x1723e6){_0x174b85=_0x174b85-0x86;const _0x4bbfb4=a149_0x4bbf();let _0x1661b1=_0x4bbfb4[_0x174b85];return _0x1661b1;}(function(_0x1123ec,_0x4b679d){const _0x4ff5df=a149_0x1661,_0x506fe5=_0x1123ec();while(!![]){try{const _0xe3e53f=parseInt(_0x4ff5df(0x95))/0x1+-parseInt(_0x4ff5df(0x8b))/0x2+-parseInt(_0x4ff5df(0x89))/0x3+-parseInt(_0x4ff5df(0x94))/0x4*(parseInt(_0x4ff5df(0x8a))/0x5)+-parseInt(_0x4ff5df(0x8e))/0x6*(parseInt(_0x4ff5df(0x8c))/0x7)+parseInt(_0x4ff5df(0x93))/0x8+-parseInt(_0x4ff5df(0x88))/0x9*(-parseInt(_0x4ff5df(0x87))/0xa);if(_0xe3e53f===_0x4b679d)break;else _0x506fe5['push'](_0x506fe5['shift']());}catch(_0x226a0e){_0x506fe5['push'](_0x506fe5['shift']());}}}(a149_0x4bbf,0xd92f3));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a149_0x2fb248(0x90)+CLI_BIN_NAME+a149_0x2fb248(0x91),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a149_0x2fb248(0x8d)+CLI_BIN_NAME+a149_0x2fb248(0x86)][a149_0x2fb248(0x8f)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a149_0x2fb248(0x92)});
@@ -1 +1 @@
1
- function a146_0xf828(){var _0x24d800=['75177ftPxNb','512084oUQzvp','3603apiKTr','9891760CAsujL','8107121TzOlEg','178nEcmtG','1218wYCnMq','349670UmALLW','18039hptSfK','24VlmBlH','35SYesuW'];a146_0xf828=function(){return _0x24d800;};return a146_0xf828();}(function(_0x2ace2b,_0x204c7a){var _0x2d7f2=a146_0x5bd9,_0x452fdc=_0x2ace2b();while(!![]){try{var _0xb7081b=-parseInt(_0x2d7f2(0x194))/0x1+-parseInt(_0x2d7f2(0x19d))/0x2*(parseInt(_0x2d7f2(0x19a))/0x3)+-parseInt(_0x2d7f2(0x199))/0x4*(parseInt(_0x2d7f2(0x197))/0x5)+-parseInt(_0x2d7f2(0x193))/0x6*(-parseInt(_0x2d7f2(0x195))/0x7)+-parseInt(_0x2d7f2(0x196))/0x8*(-parseInt(_0x2d7f2(0x198))/0x9)+parseInt(_0x2d7f2(0x19b))/0xa+parseInt(_0x2d7f2(0x19c))/0xb;if(_0xb7081b===_0x204c7a)break;else _0x452fdc['push'](_0x452fdc['shift']());}catch(_0x3b4947){_0x452fdc['push'](_0x452fdc['shift']());}}}(a146_0xf828,0xe1047));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a146_0x5bd9(_0x3d2d44,_0x1e7f01){_0x3d2d44=_0x3d2d44-0x193;var _0xf8286e=a146_0xf828();var _0x5bd933=_0xf8286e[_0x3d2d44];return _0x5bd933;}import{buildAllFlags as a146_0x85074a}from'@lovrabet/cli-framework';export function buildAllFlags(_0xc6832b){return a146_0x85074a(_0xc6832b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x16f22b,_0x48c582){var _0x585092=a150_0x1969,_0x5a7552=_0x16f22b();while(!![]){try{var _0x2d6dbf=parseInt(_0x585092(0xa6))/0x1+-parseInt(_0x585092(0xa3))/0x2+parseInt(_0x585092(0xa1))/0x3+-parseInt(_0x585092(0xa5))/0x4+-parseInt(_0x585092(0xa0))/0x5+-parseInt(_0x585092(0xa4))/0x6*(-parseInt(_0x585092(0x9f))/0x7)+parseInt(_0x585092(0xa2))/0x8;if(_0x2d6dbf===_0x48c582)break;else _0x5a7552['push'](_0x5a7552['shift']());}catch(_0x55c35e){_0x5a7552['push'](_0x5a7552['shift']());}}}(a150_0x3646,0x33948));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a150_0x3646(){var _0x233c9e=['2098815PtUCve','912141IqEToI','4590976NxGTQy','646094nsWgfA','119334fREnac','1581388cOCKJB','411843lMsgRs','21KvPRPJ'];a150_0x3646=function(){return _0x233c9e;};return a150_0x3646();}function a150_0x1969(_0x52703a,_0x2cfc8d){_0x52703a=_0x52703a-0x9f;var _0x364606=a150_0x3646();var _0x19693b=_0x364606[_0x52703a];return _0x19693b;}import{buildAllFlags as a150_0x5b4943}from'@lovrabet/cli-framework';export function buildAllFlags(_0x22a09f){return a150_0x5b4943(_0x22a09f,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a147_0x49f094=a147_0x32fb;(function(_0x169bf1,_0x454464){const _0x4ef375=a147_0x32fb,_0xe528d8=_0x169bf1();while(!![]){try{const _0x2a3d8b=-parseInt(_0x4ef375(0x19b))/0x1+-parseInt(_0x4ef375(0x1a1))/0x2+parseInt(_0x4ef375(0x19d))/0x3+-parseInt(_0x4ef375(0x19e))/0x4*(-parseInt(_0x4ef375(0x199))/0x5)+parseInt(_0x4ef375(0x19f))/0x6+-parseInt(_0x4ef375(0x198))/0x7+parseInt(_0x4ef375(0x19a))/0x8;if(_0x2a3d8b===_0x454464)break;else _0xe528d8['push'](_0xe528d8['shift']());}catch(_0x57fcaf){_0xe528d8['push'](_0xe528d8['shift']());}}}(a147_0x1277,0x38ca7));import{createFlagHelpers}from'@lovrabet/cli-framework';function a147_0x32fb(_0x251aca,_0x217c73){_0x251aca=_0x251aca-0x198;const _0x127739=a147_0x1277();let _0x32fb2d=_0x127739[_0x251aca];return _0x32fb2d;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a147_0x49f094(0x19c)];export const validateFlags=helpers[a147_0x49f094(0x1a0)];function a147_0x1277(){const _0x21972d=['parseFlags','129324gJPpBH','1148ztqbXJ','1186800acAsvJ','validateFlags','864440mThBWu','1697696qgaLQp','300UQLydV','5880536umkypN','85832ybXKMt'];a147_0x1277=function(){return _0x21972d;};return a147_0x1277();}
1
+ const a151_0x41223d=a151_0x32e5;(function(_0x3a58bf,_0x7ea8b0){const _0x895e6c=a151_0x32e5,_0x28e6ad=_0x3a58bf();while(!![]){try{const _0x43170b=parseInt(_0x895e6c(0x185))/0x1+-parseInt(_0x895e6c(0x182))/0x2+-parseInt(_0x895e6c(0x183))/0x3*(parseInt(_0x895e6c(0x184))/0x4)+parseInt(_0x895e6c(0x186))/0x5+parseInt(_0x895e6c(0x17f))/0x6*(-parseInt(_0x895e6c(0x17e))/0x7)+-parseInt(_0x895e6c(0x17d))/0x8*(-parseInt(_0x895e6c(0x17c))/0x9)+parseInt(_0x895e6c(0x180))/0xa;if(_0x43170b===_0x7ea8b0)break;else _0x28e6ad['push'](_0x28e6ad['shift']());}catch(_0x5d9c82){_0x28e6ad['push'](_0x28e6ad['shift']());}}}(a151_0x1470,0xbcf65));import{createFlagHelpers}from'@lovrabet/cli-framework';function a151_0x32e5(_0x1b8dfd,_0x1ad3f3){_0x1b8dfd=_0x1b8dfd-0x17c;const _0x14705e=a151_0x1470();let _0x32e50a=_0x14705e[_0x1b8dfd];return _0x32e50a;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a151_0x1470(){const _0x43994d=['1115312bUVFSZ','639834qWqAzk','4OJheyt','1209890rHKlTC','2612870ApnMLc','1611BSFVpg','19496QFUdEo','252dNsfcx','232194ZKlvih','7694000qciAtT','parseFlags'];a151_0x1470=function(){return _0x43994d;};return a151_0x1470();}export const parseFlags=helpers[a151_0x41223d(0x181)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a148_0x8cbd2b=a148_0x527c;(function(_0x3ae7a5,_0x7cd385){const _0x50cd67=a148_0x527c,_0x165f8f=_0x3ae7a5();while(!![]){try{const _0x26df31=parseInt(_0x50cd67(0x1b8))/0x1+-parseInt(_0x50cd67(0x1ae))/0x2*(-parseInt(_0x50cd67(0x1b1))/0x3)+-parseInt(_0x50cd67(0x1b7))/0x4+parseInt(_0x50cd67(0x1b2))/0x5+-parseInt(_0x50cd67(0x1b4))/0x6*(parseInt(_0x50cd67(0x1b3))/0x7)+parseInt(_0x50cd67(0x1b6))/0x8*(parseInt(_0x50cd67(0x1af))/0x9)+-parseInt(_0x50cd67(0x1ac))/0xa;if(_0x26df31===_0x7cd385)break;else _0x165f8f['push'](_0x165f8f['shift']());}catch(_0x5130c0){_0x165f8f['push'](_0x165f8f['shift']());}}}(a148_0x9550,0x50090));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':_0xcfdc0b=>serviceGroups[a148_0x8cbd2b(0x1ab)](_0xcfdc0b),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a148_0x8cbd2b(0x1b0),'serviceUsageSuffix':a148_0x8cbd2b(0x1b9),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x5dbc4b){return generators['generateCommandHelp'](_0x5dbc4b);}function a148_0x527c(_0x4c9a11,_0x1e3657){_0x4c9a11=_0x4c9a11-0x1ab;const _0x9550c2=a148_0x9550();let _0x527c91=_0x9550c2[_0x4c9a11];return _0x527c91;}export const generateServiceHelp=generators[a148_0x8cbd2b(0x1b5)];export const generateFullHelp=generators[a148_0x8cbd2b(0x1ad)];function a148_0x9550(){const _0x3fed9f=['6eHjUQv','417855fapmJi','10192jtbQnA','2658mSINAq','generateServiceHelp','3704688KKWlcj','142852wLMJYQ','298311XMgRhc','\x20[args]\x20[flags]','get','1286850LerZMa','generateFullHelp','292262flCWiY','9PxaFCN','\x20project\x20init`\x20or\x20--appcode).'];a148_0x9550=function(){return _0x3fed9f;};return a148_0x9550();}
1
+ function a152_0x3aaf(_0x1cbbe3,_0x14418c){_0x1cbbe3=_0x1cbbe3-0x126;const _0x485a8a=a152_0x485a();let _0x3aafa2=_0x485a8a[_0x1cbbe3];return _0x3aafa2;}const a152_0x4d0565=a152_0x3aaf;(function(_0x2cd9f6,_0x1b6ef8){const _0x124c25=a152_0x3aaf,_0x249c01=_0x2cd9f6();while(!![]){try{const _0x1cef6c=parseInt(_0x124c25(0x12d))/0x1+parseInt(_0x124c25(0x129))/0x2*(-parseInt(_0x124c25(0x128))/0x3)+-parseInt(_0x124c25(0x12b))/0x4+parseInt(_0x124c25(0x12e))/0x5+parseInt(_0x124c25(0x126))/0x6+-parseInt(_0x124c25(0x12a))/0x7+-parseInt(_0x124c25(0x12c))/0x8*(parseInt(_0x124c25(0x133))/0x9);if(_0x1cef6c===_0x1b6ef8)break;else _0x249c01['push'](_0x249c01['shift']());}catch(_0x51c29e){_0x249c01['push'](_0x249c01['shift']());}}}(a152_0x485a,0xa87d1));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':_0x3a5026=>serviceGroups['get'](_0x3a5026),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a152_0x4d0565(0x132)+CLI_BIN_NAME+a152_0x4d0565(0x130),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});function a152_0x485a(){const _0x41cb8a=['5919739kHdcCH','1387900MtTOQF','8hvWoBk','1070120iTQwnw','6043410gROYWP','generateServiceHelp','\x20project\x20init`\x20or\x20--appcode).','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','3487041SgCPTH','6378852uVcpOh','generateFullHelp','153102vOYOua','42TDCHxN'];a152_0x485a=function(){return _0x41cb8a;};return a152_0x485a();}export function generateCommandHelp(_0xcbe664){const _0xa6ca8a=a152_0x4d0565;return generators[_0xa6ca8a(0x131)](_0xcbe664);}export const generateServiceHelp=generators[a152_0x4d0565(0x12f)];export const generateFullHelp=generators[a152_0x4d0565(0x127)];
@@ -1 +1 @@
1
- (function(_0x225e45,_0xff1cac){var _0x4ef18d=a149_0x3470,_0x200035=_0x225e45();while(!![]){try{var _0x1a4a2b=-parseInt(_0x4ef18d(0x120))/0x1+-parseInt(_0x4ef18d(0x119))/0x2*(parseInt(_0x4ef18d(0x11c))/0x3)+-parseInt(_0x4ef18d(0x122))/0x4*(parseInt(_0x4ef18d(0x11f))/0x5)+parseInt(_0x4ef18d(0x123))/0x6+-parseInt(_0x4ef18d(0x11b))/0x7+parseInt(_0x4ef18d(0x11d))/0x8*(-parseInt(_0x4ef18d(0x11e))/0x9)+-parseInt(_0x4ef18d(0x11a))/0xa*(-parseInt(_0x4ef18d(0x121))/0xb);if(_0x1a4a2b===_0xff1cac)break;else _0x200035['push'](_0x200035['shift']());}catch(_0x22fab7){_0x200035['push'](_0x200035['shift']());}}}(a149_0x41ee,0xe6550));function a149_0x41ee(){var _0x326cec=['234zQFNar','22855zThPgB','1263558vrhkEp','843645OUrlXm','1124AeNDGp','8702502dSAjoQ','23050bJXqUj','690sVtbVH','10308144Iscphh','249mmIHDY','252848pHwPzM'];a149_0x41ee=function(){return _0x326cec;};return a149_0x41ee();}function a149_0x3470(_0x314613,_0x1674db){_0x314613=_0x314613-0x119;var _0x41ee85=a149_0x41ee();var _0x34707f=_0x41ee85[_0x314613];return _0x34707f;}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';
1
+ (function(_0x2e208c,_0xa99c06){var _0x46a1c8=a153_0x4648,_0x4cb225=_0x2e208c();while(!![]){try{var _0x2dc127=-parseInt(_0x46a1c8(0x14e))/0x1*(-parseInt(_0x46a1c8(0x150))/0x2)+parseInt(_0x46a1c8(0x154))/0x3*(parseInt(_0x46a1c8(0x151))/0x4)+-parseInt(_0x46a1c8(0x153))/0x5+-parseInt(_0x46a1c8(0x155))/0x6+parseInt(_0x46a1c8(0x14f))/0x7*(parseInt(_0x46a1c8(0x14d))/0x8)+parseInt(_0x46a1c8(0x157))/0x9*(parseInt(_0x46a1c8(0x152))/0xa)+-parseInt(_0x46a1c8(0x156))/0xb;if(_0x2dc127===_0xa99c06)break;else _0x4cb225['push'](_0x4cb225['shift']());}catch(_0x203cc0){_0x4cb225['push'](_0x4cb225['shift']());}}}(a153_0x5dab,0x6bb32));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 a153_0x4648(_0xbc605b,_0x2fa6df){_0xbc605b=_0xbc605b-0x14d;var _0x5dab01=a153_0x5dab();var _0x46487c=_0x5dab01[_0xbc605b];return _0x46487c;}function a153_0x5dab(){var _0x169a6a=['2147528FMgxff','77pCcPVK','7edIwcM','4772wVDvdF','8eSIjwr','10XoyWIu','1074495XzDalb','932457ZOYGFH','405738bmIJeg','3867347ddTEfi','12924dmuEid'];a153_0x5dab=function(){return _0x169a6a;};return a153_0x5dab();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x318f01,_0x1cf4e2){var _0xe8fc34=a150_0x1077,_0x546b4b=_0x318f01();while(!![]){try{var _0x332ed9=parseInt(_0xe8fc34(0xc1))/0x1+parseInt(_0xe8fc34(0xc4))/0x2+parseInt(_0xe8fc34(0xc5))/0x3*(-parseInt(_0xe8fc34(0xbf))/0x4)+-parseInt(_0xe8fc34(0xc6))/0x5+-parseInt(_0xe8fc34(0xc0))/0x6*(-parseInt(_0xe8fc34(0xc8))/0x7)+parseInt(_0xe8fc34(0xc2))/0x8*(parseInt(_0xe8fc34(0xc7))/0x9)+-parseInt(_0xe8fc34(0xc3))/0xa;if(_0x332ed9===_0x1cf4e2)break;else _0x546b4b['push'](_0x546b4b['shift']());}catch(_0x223f53){_0x546b4b['push'](_0x546b4b['shift']());}}}(a150_0x5707,0x67058));function a150_0x1077(_0x566bd8,_0x16c4e7){_0x566bd8=_0x566bd8-0xbf;var _0x5707d0=a150_0x5707();var _0x107744=_0x5707d0[_0x566bd8];return _0x107744;}export{formatOutput}from'@lovrabet/cli-framework';function a150_0x5707(){var _0x80e60f=['1032218cueFRF','3LZZdZk','2564870sDUZvV','117qhDvDB','21PFbZju','442948hrTIZn','1683288HhDehh','312688uQxtnb','469400MCTxNT','13875290agEfEA'];a150_0x5707=function(){return _0x80e60f;};return a150_0x5707();}
1
+ (function(_0x55e091,_0x2fb405){const _0x151926=a154_0x2abb,_0x5c3366=_0x55e091();while(!![]){try{const _0x1dd6c9=-parseInt(_0x151926(0x173))/0x1*(parseInt(_0x151926(0x16d))/0x2)+-parseInt(_0x151926(0x172))/0x3*(parseInt(_0x151926(0x169))/0x4)+parseInt(_0x151926(0x16f))/0x5*(parseInt(_0x151926(0x16b))/0x6)+parseInt(_0x151926(0x168))/0x7*(-parseInt(_0x151926(0x16a))/0x8)+-parseInt(_0x151926(0x16e))/0x9*(-parseInt(_0x151926(0x170))/0xa)+-parseInt(_0x151926(0x171))/0xb+parseInt(_0x151926(0x16c))/0xc;if(_0x1dd6c9===_0x2fb405)break;else _0x5c3366['push'](_0x5c3366['shift']());}catch(_0x26319e){_0x5c3366['push'](_0x5c3366['shift']());}}}(a154_0x26a7,0x55340));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a154_0x2abb(_0xe1f373,_0x8c3c57){_0xe1f373=_0xe1f373-0x168;const _0x26a783=a154_0x26a7();let _0x2abbf7=_0x26a783[_0xe1f373];return _0x2abbf7;}function a154_0x26a7(){const _0x24a67a=['21272zIFBHo','1939914oyHsAE','10762836NUFMjz','36NbWPKa','3694293lFCxGi','5KrZvYl','10Cxionp','998481mchhHH','5241PkXkPV','10086MszGEl','1043XdzaVz','1404ORJNWr'];a154_0x26a7=function(){return _0x24a67a;};return a154_0x26a7();}import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- (function(_0x58cb7b,_0x59d769){var _0x113d02=a151_0x2a66,_0x10e1a1=_0x58cb7b();while(!![]){try{var _0x3e6538=-parseInt(_0x113d02(0x6d))/0x1+parseInt(_0x113d02(0x6f))/0x2*(-parseInt(_0x113d02(0x6e))/0x3)+-parseInt(_0x113d02(0x69))/0x4+-parseInt(_0x113d02(0x6a))/0x5+parseInt(_0x113d02(0x67))/0x6+parseInt(_0x113d02(0x6c))/0x7*(-parseInt(_0x113d02(0x6b))/0x8)+parseInt(_0x113d02(0x68))/0x9;if(_0x3e6538===_0x59d769)break;else _0x10e1a1['push'](_0x10e1a1['shift']());}catch(_0x43752a){_0x10e1a1['push'](_0x10e1a1['shift']());}}}(a151_0x204b,0xb7123));function a151_0x2a66(_0xdbedce,_0x4617a8){_0xdbedce=_0xdbedce-0x67;var _0x204b17=a151_0x204b();var _0x2a667b=_0x204b17[_0xdbedce];return _0x2a667b;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a151_0x204b(){var _0x399248=['5132268hDXSSk','41749083Zinbrb','3563440YUmaOc','5684525wadXHo','3568648Nenqer','7WlliUv','1459262QOdhdy','6WTEUGp','811198WyvXwp'];a151_0x204b=function(){return _0x399248;};return a151_0x204b();}
1
+ function a155_0x597e(_0x3a7e16,_0x3fa7d5){_0x3a7e16=_0x3a7e16-0x164;var _0x357711=a155_0x3577();var _0x597e0f=_0x357711[_0x3a7e16];return _0x597e0f;}(function(_0x3323ae,_0x2f349a){var _0xc2c36=a155_0x597e,_0x39a215=_0x3323ae();while(!![]){try{var _0x4d26cb=-parseInt(_0xc2c36(0x16d))/0x1+-parseInt(_0xc2c36(0x168))/0x2*(-parseInt(_0xc2c36(0x166))/0x3)+-parseInt(_0xc2c36(0x165))/0x4*(parseInt(_0xc2c36(0x164))/0x5)+-parseInt(_0xc2c36(0x16c))/0x6+-parseInt(_0xc2c36(0x167))/0x7*(parseInt(_0xc2c36(0x169))/0x8)+parseInt(_0xc2c36(0x16a))/0x9+parseInt(_0xc2c36(0x16b))/0xa;if(_0x4d26cb===_0x2f349a)break;else _0x39a215['push'](_0x39a215['shift']());}catch(_0x1a0c5c){_0x39a215['push'](_0x39a215['shift']());}}}(a155_0x3577,0x9d42c));function a155_0x3577(){var _0x956249=['3832pXAkXc','10151424xDUTDq','5295020sAJwJo','2623836dYeYPV','50851kbzcPx','364145HGkpsJ','24MpZCWU','8553xLBOMd','3080UYugFX','86OeRhyW'];a155_0x3577=function(){return _0x956249;};return a155_0x3577();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x122d45,_0x1fe9dc){const _0x9e711e=a152_0x5ba3,_0x4fc9de=_0x122d45();while(!![]){try{const _0x2011ad=parseInt(_0x9e711e(0x12f))/0x1+parseInt(_0x9e711e(0x127))/0x2*(-parseInt(_0x9e711e(0x123))/0x3)+-parseInt(_0x9e711e(0x11d))/0x4*(parseInt(_0x9e711e(0x128))/0x5)+-parseInt(_0x9e711e(0x11c))/0x6*(parseInt(_0x9e711e(0x131))/0x7)+-parseInt(_0x9e711e(0x121))/0x8*(parseInt(_0x9e711e(0x120))/0x9)+-parseInt(_0x9e711e(0x11e))/0xa*(-parseInt(_0x9e711e(0x12a))/0xb)+parseInt(_0x9e711e(0x122))/0xc*(-parseInt(_0x9e711e(0x11f))/0xd);if(_0x2011ad===_0x1fe9dc)break;else _0x4fc9de['push'](_0x4fc9de['shift']());}catch(_0x52c6fe){_0x4fc9de['push'](_0x4fc9de['shift']());}}}(a152_0x4cb8,0xe5859));function a152_0x5ba3(_0x23ca30,_0xa46dd7){_0x23ca30=_0x23ca30-0x11b;const _0x4cb808=a152_0x4cb8();let _0x5ba3f7=_0x4cb808[_0x23ca30];return _0x5ba3f7;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a152_0x4cb8(){const _0x2405d6=['5093CmwkEI','validation','alias','No\x20api.ts\x20found\x20in\x20','some','1205441ABtxIS','type','968359CNoTsL','Available\x20aliases:\x20','join','\x22.\x20','flags','code','name','6Uymjyi','3210868GnAEsW','33030lSyisP','3341pawAAM','2322lEcVzc','3536RsnAPL','27948iySCuv','21pjiKmt','Unknown\x20alias\x20\x22','\x20api\x20pull`\x20first.','.\x20Run\x20`','40276lZjjrt','5EGGTUm','string'];a152_0x4cb8=function(){return _0x2405d6;};return a152_0x4cb8();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x29bbd1,_0x521bb1,_0x11890b,_0x579a46){const _0x244a0c=a152_0x5ba3,_0x49dd64=_0x29bbd1[_0x244a0c(0x135)][_0x244a0c(0x12e)](_0x20ba5f=>_0x20ba5f['name']===_0x244a0c(0x136)&&_0x20ba5f[_0x244a0c(0x130)]==='string'),_0x49718c=_0x29bbd1['flags'][_0x244a0c(0x12e)](_0x36b4c9=>_0x36b4c9[_0x244a0c(0x11b)]===_0x244a0c(0x12c)&&_0x36b4c9[_0x244a0c(0x130)]===_0x244a0c(0x129));if(!_0x49dd64||!_0x49718c)return;const _0x47aa24=_0x521bb1[_0x244a0c(0x136)]?String(_0x521bb1[_0x244a0c(0x136)]):'',_0x3a26ee=_0x521bb1['alias']?String(_0x521bb1['alias']):'';if(!_0x47aa24&&!_0x3a26ee)throw CliErrors['validation']('`'+_0x579a46+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x3a26ee&&!_0x47aa24){const _0x5e0f54=resolveAlias(_0x11890b,_0x3a26ee);if(!_0x5e0f54){const _0x56e8cf=listAliases(_0x11890b)['map'](_0x13618e=>_0x13618e[_0x244a0c(0x12c)]),_0x5306dd=_0x56e8cf['length']?_0x244a0c(0x132)+_0x56e8cf[_0x244a0c(0x133)](',\x20'):_0x244a0c(0x12d)+_0x11890b+_0x244a0c(0x126)+CLI_BIN_NAME+_0x244a0c(0x125);throw CliErrors[_0x244a0c(0x12b)](_0x244a0c(0x124)+_0x3a26ee+_0x244a0c(0x134)+_0x5306dd);}_0x521bb1[_0x244a0c(0x136)]=_0x5e0f54;}}
1
+ function a156_0xec71(_0x57c176,_0x1d1446){_0x57c176=_0x57c176-0x1a6;const _0x207593=a156_0x2075();let _0xec7189=_0x207593[_0x57c176];return _0xec7189;}(function(_0x3dc075,_0x1ada45){const _0x267e89=a156_0xec71,_0xf3d4ff=_0x3dc075();while(!![]){try{const _0x36fbc5=parseInt(_0x267e89(0x1af))/0x1+-parseInt(_0x267e89(0x1be))/0x2*(-parseInt(_0x267e89(0x1b4))/0x3)+parseInt(_0x267e89(0x1b2))/0x4+parseInt(_0x267e89(0x1ab))/0x5+parseInt(_0x267e89(0x1a9))/0x6+parseInt(_0x267e89(0x1ad))/0x7*(parseInt(_0x267e89(0x1a8))/0x8)+parseInt(_0x267e89(0x1bb))/0x9*(-parseInt(_0x267e89(0x1b8))/0xa);if(_0x36fbc5===_0x1ada45)break;else _0xf3d4ff['push'](_0xf3d4ff['shift']());}catch(_0x113104){_0xf3d4ff['push'](_0xf3d4ff['shift']());}}}(a156_0x2075,0x54098));function a156_0x2075(){const _0x21ef2b=['428796JLTyaX','alias','16780soxdvB','length','312893NHMxfu','name','495129AjLfuE','map','join','494988jXKSUH','type','86943ZUUnJb','\x22.\x20','some','string','6114170GdPeFZ','No\x20api.ts\x20found\x20in\x20','code','18NKOFJq','validation','Unknown\x20alias\x20\x22','14SLBeOL','flags','.\x20Run\x20`','120ExArsI'];a156_0x2075=function(){return _0x21ef2b;};return a156_0x2075();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x3f2f32,_0x17e20e,_0x14e3f2,_0x16f316){const _0x3042ee=a156_0xec71,_0x59a44f=_0x3f2f32['flags'][_0x3042ee(0x1b6)](_0xf3b7d7=>_0xf3b7d7[_0x3042ee(0x1ae)]===_0x3042ee(0x1ba)&&_0xf3b7d7[_0x3042ee(0x1b3)]==='string'),_0x2bdf8d=_0x3f2f32[_0x3042ee(0x1a6)][_0x3042ee(0x1b6)](_0x25fbfd=>_0x25fbfd['name']===_0x3042ee(0x1aa)&&_0x25fbfd[_0x3042ee(0x1b3)]===_0x3042ee(0x1b7));if(!_0x59a44f||!_0x2bdf8d)return;const _0x5bc821=_0x17e20e[_0x3042ee(0x1ba)]?String(_0x17e20e[_0x3042ee(0x1ba)]):'',_0x1152f8=_0x17e20e[_0x3042ee(0x1aa)]?String(_0x17e20e[_0x3042ee(0x1aa)]):'';if(!_0x5bc821&&!_0x1152f8)throw CliErrors[_0x3042ee(0x1bc)]('`'+_0x16f316+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x1152f8&&!_0x5bc821){const _0x2b099d=resolveAlias(_0x14e3f2,_0x1152f8);if(!_0x2b099d){const _0x2c0e31=listAliases(_0x14e3f2)[_0x3042ee(0x1b0)](_0xd93671=>_0xd93671[_0x3042ee(0x1aa)]),_0x3b8f2b=_0x2c0e31[_0x3042ee(0x1ac)]?'Available\x20aliases:\x20'+_0x2c0e31[_0x3042ee(0x1b1)](',\x20'):_0x3042ee(0x1b9)+_0x14e3f2+_0x3042ee(0x1a7)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x3042ee(0x1bc)](_0x3042ee(0x1bd)+_0x1152f8+_0x3042ee(0x1b5)+_0x3b8f2b);}_0x17e20e[_0x3042ee(0x1ba)]=_0x2b099d;}}
@@ -1 +1 @@
1
- const a153_0x5e4b96=a153_0x22c0;(function(_0x333d5e,_0x328176){const _0x5c3c70=a153_0x22c0,_0x25ffb7=_0x333d5e();while(!![]){try{const _0x31f8d7=parseInt(_0x5c3c70(0x94))/0x1*(parseInt(_0x5c3c70(0x93))/0x2)+parseInt(_0x5c3c70(0x76))/0x3*(-parseInt(_0x5c3c70(0x86))/0x4)+-parseInt(_0x5c3c70(0x81))/0x5+parseInt(_0x5c3c70(0x7b))/0x6+parseInt(_0x5c3c70(0x7f))/0x7*(-parseInt(_0x5c3c70(0x95))/0x8)+parseInt(_0x5c3c70(0x7d))/0x9+-parseInt(_0x5c3c70(0x78))/0xa;if(_0x31f8d7===_0x328176)break;else _0x25ffb7['push'](_0x25ffb7['shift']());}catch(_0x2afaa3){_0x25ffb7['push'](_0x25ffb7['shift']());}}}(a153_0x4269,0x56f49));import{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 a153_0x22c0(_0xe80cf3,_0x5bdb12){_0xe80cf3=_0xe80cf3-0x72;const _0x426931=a153_0x4269();let _0x22c027=_0x426931[_0xe80cf3];return _0x22c027;}function a153_0x4269(){const _0x4458ba=['service','5481459ZIprGT','defaultVerbose','511btgrTb','pageSize','1220710ktvYMp','authRequired','command','filter','requiresAuth','436vFIkVx','resolveApiDomain','map','Set\x20appcode\x20via\x20`','name','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20\x20\x20Continue?\x20[y/N]\x20','appcode','format','explicitAppName','resolveAppCode','apiDir','defaultPageSize','2iNotxq','222521CdaYkU','16424qLNxVR','appCode','⚠\x20\x20High-risk\x20operation:\x20','isNonInteractive','selectedAppName','cancelled','resolveCookie','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','8409SXKBHE','mergedCli','2197060SfIDWS','configMissing','../core/api-client.js','2663046nnhTrB'];a153_0x4269=function(){return _0x4458ba;};return a153_0x4269();}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 a153_0x34d487}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x4704f6,_0x20eed7,_0x3359b7=[]){const _0x1d5677=a153_0x22c0;return{'rawFlags':_0x20eed7,'args':_0x3359b7,'resolveAppCode':()=>_0x4704f6['appCode']||_0x20eed7[_0x1d5677(0x8d)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x4704f6['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a153_0x34d487(_0x20eed7),'defaultFormat':_0x4704f6[_0x1d5677(0x8e)],'defaultPageSize':_0x4704f6[_0x1d5677(0x80)],'defaultVerbose':_0x4704f6['verbose'],'apiDir':_0x4704f6[_0x1d5677(0x91)],'riskLevel':_0x4704f6['riskLevel'],'selectedAppName':_0x4704f6[_0x1d5677(0x8f)],'mergedCli':{'defaultApp':_0x4704f6['defaultApp'],'currentApp':_0x4704f6['currentApp'],'appCode':_0x4704f6[_0x1d5677(0x96)],'apps':_0x4704f6['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a153_0x5e4b96(0x84)](_0x3aeeed=>PIPELINE_FLAG_NAMES['has'](_0x3aeeed[a153_0x5e4b96(0x8a)]))[a153_0x5e4b96(0x88)](({name:_0x512a6e,type:_0x4549a6,description:_0x589f52})=>({'name':_0x512a6e,'type':_0x4549a6,'description':_0x589f52})),'formatOutput':formatOutput,'getCommandLabel'(_0x4b97da){const _0x55200c=a153_0x5e4b96;return CLI_BIN_NAME+'\x20'+_0x4b97da[_0x55200c(0x7c)]+'\x20'+_0x4b97da[_0x55200c(0x83)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x20e5f9){return CliErrors['validation'](_0x20e5f9);}},async 'prepare'(_0x1a89dc,_0x263c1a,_0x439957,_0x24bac5){const _0x58be32=a153_0x5e4b96,_0x1c329e=_0x263c1a[_0x58be32(0x91)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1a89dc,_0x439957,_0x1c329e,_0x24bac5);let _0x21baba='';if(_0x1a89dc[_0x58be32(0x85)]!==![]){_0x21baba=_0x263c1a[_0x58be32(0x74)]();if(!_0x21baba)throw CliErrors[_0x58be32(0x82)]();const {setActiveCookie:_0x448aef}=await import(_0x58be32(0x7a));_0x448aef(_0x21baba);}let _0x1bf2ec='';if(_0x1a89dc['requiresAppCode']!==![]){_0x1bf2ec=_0x263c1a[_0x58be32(0x90)]()??'';if(!_0x1bf2ec)throw CliErrors[_0x58be32(0x79)](_0x58be32(0x89)+CLI_BIN_NAME+_0x58be32(0x8b));}return{'defaults':{'booleans':{'verbose':_0x263c1a[_0x58be32(0x7e)]},'numbers':{'pagesize':_0x263c1a[_0x58be32(0x92)]}},'extras':{'appCode':_0x1bf2ec,'cookie':_0x21baba,'apiDomain':_0x263c1a[_0x58be32(0x87)](),'apiDir':_0x1c329e,'selectedAppName':_0x263c1a[_0x58be32(0x72)],'mergedCli':_0x263c1a[_0x58be32(0x77)]}};},async 'confirmHighRisk'({env:_0x3c987b,commandLabel:_0x861e43}){const _0x274839=a153_0x5e4b96;if(_0x3c987b[_0x274839(0x98)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x861e43+_0x274839(0x75));await requireConfirmationPrompt({'lines':[_0x274839(0x97)+_0x861e43,_0x274839(0x8c)],'createCancelledError':_0x127556=>CliErrors[_0x274839(0x73)](_0x127556)});},async 'finalize'(){const _0x56c998=a153_0x5e4b96,{clearActiveCookie:_0x2ce5d7}=await import(_0x56c998(0x7a));_0x2ce5d7();}};export async function runCommand(_0x57de57,_0x1ed8e1){await runCommandWithAdapter(_0x57de57,_0x1ed8e1,runnerAdapter);}
1
+ const a157_0x151c40=a157_0x2d1a;(function(_0x56814b,_0x360d47){const _0x49c05e=a157_0x2d1a,_0x5dc630=_0x56814b();while(!![]){try{const _0x1f4fb0=-parseInt(_0x49c05e(0x16c))/0x1+parseInt(_0x49c05e(0x16e))/0x2+-parseInt(_0x49c05e(0x162))/0x3*(parseInt(_0x49c05e(0x172))/0x4)+-parseInt(_0x49c05e(0x16a))/0x5+-parseInt(_0x49c05e(0x169))/0x6+-parseInt(_0x49c05e(0x173))/0x7+parseInt(_0x49c05e(0x15d))/0x8;if(_0x1f4fb0===_0x360d47)break;else _0x5dc630['push'](_0x5dc630['shift']());}catch(_0x51124d){_0x5dc630['push'](_0x5dc630['shift']());}}}(a157_0xa182,0x8ff60));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';function a157_0x2d1a(_0x1bed55,_0x4a7cde){_0x1bed55=_0x1bed55-0x151;const _0xa182fc=a157_0xa182();let _0x2d1a05=_0xa182fc[_0x1bed55];return _0x2d1a05;}import{isNonInteractive as a157_0x8f60e6}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a157_0xa182(){const _0x2d2201=['cookie','cancelled','map','6pFjPMQ','verbose','mergedCli','requiresAppCode','apiDir','authRequired','defaultPageSize','3994092mPRmEN','5854110cUonGT','selectedAppName','1071641FFdqpT','service','2173664mFKmNO','has','\x20\x20\x20Continue?\x20[y/N]\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1578488LbRTYQ','6085702dRuOEo','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','High-risk\x20operation\x20`','configMissing','riskLevel','../core/api-client.js','resolveApiDomain','pageSize','Set\x20appcode\x20via\x20`','resolveAppCode','appCode','requiresAuth','appcode','isNonInteractive','32556856vrNqTD','validation'];a157_0xa182=function(){return _0x2d2201;};return a157_0xa182();}export function createPipelineEnv(_0x3c859d,_0x474dca,_0x41e71e=[]){const _0x2917d6=a157_0x2d1a;return{'rawFlags':_0x474dca,'args':_0x41e71e,'resolveAppCode':()=>_0x3c859d[_0x2917d6(0x159)]||_0x474dca[_0x2917d6(0x15b)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3c859d[_0x2917d6(0x15f)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a157_0x8f60e6(_0x474dca),'defaultFormat':_0x3c859d['format'],'defaultPageSize':_0x3c859d[_0x2917d6(0x156)],'defaultVerbose':_0x3c859d[_0x2917d6(0x163)],'apiDir':_0x3c859d['apiDir'],'riskLevel':_0x3c859d[_0x2917d6(0x153)],'selectedAppName':_0x3c859d['explicitAppName'],'mergedCli':{'defaultApp':_0x3c859d['defaultApp'],'currentApp':_0x3c859d['currentApp'],'appCode':_0x3c859d[_0x2917d6(0x159)],'apps':_0x3c859d['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x1b91cb=>PIPELINE_FLAG_NAMES[a157_0x151c40(0x16f)](_0x1b91cb['name']))[a157_0x151c40(0x161)](({name:_0x48ba35,type:_0x132c7d,description:_0x3abacc})=>({'name':_0x48ba35,'type':_0x132c7d,'description':_0x3abacc})),'formatOutput':formatOutput,'getCommandLabel'(_0x3c0225){const _0x3e6260=a157_0x151c40;return CLI_BIN_NAME+'\x20'+_0x3c0225[_0x3e6260(0x16d)]+'\x20'+_0x3c0225['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x87e2d1){const _0x34245b=a157_0x151c40;return CliErrors[_0x34245b(0x15e)](_0x87e2d1);}},async 'prepare'(_0x5e1af0,_0xf92183,_0x98cc7f,_0x728b5e){const _0x4a2dee=a157_0x151c40,_0x1897ac=_0xf92183[_0x4a2dee(0x166)]||DEFAULT_API_DIR;resolveAliasToCode(_0x5e1af0,_0x98cc7f,_0x1897ac,_0x728b5e);let _0x249ab6='';if(_0x5e1af0[_0x4a2dee(0x15a)]!==![]){_0x249ab6=_0xf92183['resolveCookie']();if(!_0x249ab6)throw CliErrors[_0x4a2dee(0x167)]();const {setActiveCookie:_0xf78769}=await import('../core/api-client.js');_0xf78769(_0x249ab6);}let _0x67b310='';if(_0x5e1af0[_0x4a2dee(0x165)]!==![]){_0x67b310=_0xf92183[_0x4a2dee(0x158)]()??'';if(!_0x67b310)throw CliErrors[_0x4a2dee(0x152)](_0x4a2dee(0x157)+CLI_BIN_NAME+_0x4a2dee(0x171));}return{'defaults':{'booleans':{'verbose':_0xf92183['defaultVerbose']},'numbers':{'pagesize':_0xf92183[_0x4a2dee(0x168)]}},'extras':{'appCode':_0x67b310,'cookie':_0x249ab6,'apiDomain':_0xf92183[_0x4a2dee(0x155)](),'apiDir':_0x1897ac,'selectedAppName':_0xf92183[_0x4a2dee(0x16b)],'mergedCli':_0xf92183[_0x4a2dee(0x164)]}};},async 'confirmHighRisk'({env:_0x9b4bc,commandLabel:_0x1aad67}){const _0x77642a=a157_0x151c40;if(_0x9b4bc[_0x77642a(0x15c)])throw CliErrors[_0x77642a(0x15e)](_0x77642a(0x151)+_0x1aad67+_0x77642a(0x174));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x1aad67,_0x77642a(0x170)],'createCancelledError':_0x20a788=>CliErrors[_0x77642a(0x160)](_0x20a788)});},async 'finalize'(){const _0x51272c=a157_0x151c40,{clearActiveCookie:_0x2809ac}=await import(_0x51272c(0x154));_0x2809ac();}};export async function runCommand(_0x15cd92,_0x533351){await runCommandWithAdapter(_0x15cd92,_0x533351,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x2cf18c,_0x5aeb13){const _0x8aaa41=a154_0x1913,_0x3bc8aa=_0x2cf18c();while(!![]){try{const _0x4e3e80=parseInt(_0x8aaa41(0x165))/0x1+parseInt(_0x8aaa41(0x16b))/0x2+-parseInt(_0x8aaa41(0x16d))/0x3*(parseInt(_0x8aaa41(0x169))/0x4)+-parseInt(_0x8aaa41(0x16a))/0x5+parseInt(_0x8aaa41(0x168))/0x6*(parseInt(_0x8aaa41(0x16c))/0x7)+-parseInt(_0x8aaa41(0x167))/0x8+parseInt(_0x8aaa41(0x16e))/0x9*(-parseInt(_0x8aaa41(0x166))/0xa);if(_0x4e3e80===_0x5aeb13)break;else _0x3bc8aa['push'](_0x3bc8aa['shift']());}catch(_0x10230f){_0x3bc8aa['push'](_0x3bc8aa['shift']());}}}(a154_0x584d,0x40583));import{buildSchemaPayload as a154_0x1d95c6}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a154_0x1913(_0xd85ae0,_0xf83327){_0xd85ae0=_0xd85ae0-0x165;const _0x584d54=a154_0x584d();let _0x191338=_0x584d54[_0xd85ae0];return _0x191338;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a154_0x584d(){const _0x292145=['519713xTXEzp','1640010dYuNJC','548584ECrjOo','48pFjeCM','4sJqvxQ','1647480rWgNUP','868238xXuBtW','136640oLVdQc','853101sArBmJ','9dwvuBI'];a154_0x584d=function(){return _0x292145;};return a154_0x584d();}export async function buildSchemaPayload(){const {serviceRegistry:_0xbd0c56,findDefinition:_0x255698}=await import('../commands/registry.js');return a154_0x1d95c6({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xbd0c56,'buildAllFlags':buildAllFlags,'findDefinition':_0x255698});}
1
+ (function(_0x473242,_0x140e12){const _0x232184=a158_0x5eaa,_0x147c8e=_0x473242();while(!![]){try{const _0x5dd528=-parseInt(_0x232184(0x95))/0x1*(-parseInt(_0x232184(0x94))/0x2)+parseInt(_0x232184(0x97))/0x3+-parseInt(_0x232184(0x93))/0x4*(parseInt(_0x232184(0x96))/0x5)+-parseInt(_0x232184(0x91))/0x6*(-parseInt(_0x232184(0x99))/0x7)+-parseInt(_0x232184(0x90))/0x8+parseInt(_0x232184(0x98))/0x9+-parseInt(_0x232184(0x92))/0xa;if(_0x5dd528===_0x140e12)break;else _0x147c8e['push'](_0x147c8e['shift']());}catch(_0x2b01a4){_0x147c8e['push'](_0x147c8e['shift']());}}}(a158_0x1099,0xd0499));function a158_0x1099(){const _0x103fd3=['15411650ZsNzTo','4uCqwtZ','1110046nWmvqF','1IMMNcF','4315855YDAijt','2692281mOuaeR','12869082roQhEO','473578Dpspjp','../commands/registry.js','1870024DVxhZO','54zJhudO'];a158_0x1099=function(){return _0x103fd3;};return a158_0x1099();}import{buildSchemaPayload as a158_0x45b616}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';function a158_0x5eaa(_0x3131b6,_0x415c2e){_0x3131b6=_0x3131b6-0x90;const _0x109982=a158_0x1099();let _0x5eaa5a=_0x109982[_0x3131b6];return _0x5eaa5a;}export async function buildSchemaPayload(){const _0x526114=a158_0x5eaa,{serviceRegistry:_0x3d2631,findDefinition:_0x40c661}=await import(_0x526114(0x9a));return a158_0x45b616({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x3d2631,'buildAllFlags':buildAllFlags,'findDefinition':_0x40c661});}
@@ -1 +1 @@
1
- function a155_0x1e48(){var _0x36a81b=['1742eEBJII','8juAfMu','45xAlmtN','77436RZkwbd','145620yodHhY','27237lsNxVn','44331GTKPbV','1128339liKtcF','275076iQQNsp','10FFlfwr'];a155_0x1e48=function(){return _0x36a81b;};return a155_0x1e48();}(function(_0x510b5c,_0x5a99ef){var _0x2cd52c=a155_0x221c,_0xc69523=_0x510b5c();while(!![]){try{var _0x26b3ec=-parseInt(_0x2cd52c(0x117))/0x1+-parseInt(_0x2cd52c(0x11a))/0x2+parseInt(_0x2cd52c(0x112))/0x3+parseInt(_0x2cd52c(0x115))/0x4+-parseInt(_0x2cd52c(0x119))/0x5*(-parseInt(_0x2cd52c(0x111))/0x6)+-parseInt(_0x2cd52c(0x113))/0x7*(parseInt(_0x2cd52c(0x118))/0x8)+parseInt(_0x2cd52c(0x114))/0x9*(-parseInt(_0x2cd52c(0x116))/0xa);if(_0x26b3ec===_0x5a99ef)break;else _0xc69523['push'](_0xc69523['shift']());}catch(_0x35aa8b){_0xc69523['push'](_0xc69523['shift']());}}}(a155_0x1e48,0x1e4d2));function a155_0x221c(_0x26d84a,_0x5cb029){_0x26d84a=_0x26d84a-0x111;var _0x1e48a2=a155_0x1e48();var _0x221cec=_0x1e48a2[_0x26d84a];return _0x221cec;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a159_0x922a(_0x598c24,_0x4de1f3){_0x598c24=_0x598c24-0xa3;var _0x420822=a159_0x4208();var _0x922a0b=_0x420822[_0x598c24];return _0x922a0b;}(function(_0x345765,_0x527755){var _0x4fd7f4=a159_0x922a,_0x57f968=_0x345765();while(!![]){try{var _0x26e084=parseInt(_0x4fd7f4(0xa4))/0x1+-parseInt(_0x4fd7f4(0xa6))/0x2+-parseInt(_0x4fd7f4(0xa9))/0x3*(-parseInt(_0x4fd7f4(0xaa))/0x4)+parseInt(_0x4fd7f4(0xa5))/0x5*(parseInt(_0x4fd7f4(0xa8))/0x6)+parseInt(_0x4fd7f4(0xab))/0x7+parseInt(_0x4fd7f4(0xa3))/0x8*(-parseInt(_0x4fd7f4(0xad))/0x9)+-parseInt(_0x4fd7f4(0xac))/0xa*(parseInt(_0x4fd7f4(0xa7))/0xb);if(_0x26e084===_0x527755)break;else _0x57f968['push'](_0x57f968['shift']());}catch(_0x4e21fb){_0x57f968['push'](_0x57f968['shift']());}}}(a159_0x4208,0x30377));function a159_0x4208(){var _0xfc8b6a=['3905176GzmiGi','137382NhSbac','6663nUpVEy','352CBzZQU','1107456pGoRHK','10FYPQrG','80721cYgSvQ','64czHDkn','372539hVQXdv','40VkjuHe','570216yPaUjl'];a159_0x4208=function(){return _0xfc8b6a;};return a159_0x4208();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a156_0x1ec85f=a156_0xb977;function a156_0x2b36(){const _0x5399a8=['404916fsHJRN','2.1.5','21SumDrI','145262mZjzZM','39458kQSgWv','2026-04-17T07:54:25.917Z','2095785HcsYtg','64172qZlqkN','v2.1.5','1322034pzJKze','4704368oeWmur','4c017f3'];a156_0x2b36=function(){return _0x5399a8;};return a156_0x2b36();}(function(_0x5e871f,_0x4e6dd0){const _0x3b07a4=a156_0xb977,_0x9bd835=_0x5e871f();while(!![]){try{const _0x381a36=parseInt(_0x3b07a4(0x180))/0x1+parseInt(_0x3b07a4(0x181))/0x2*(parseInt(_0x3b07a4(0x17f))/0x3)+parseInt(_0x3b07a4(0x178))/0x4+parseInt(_0x3b07a4(0x183))/0x5+-parseInt(_0x3b07a4(0x17d))/0x6+parseInt(_0x3b07a4(0x17a))/0x7+-parseInt(_0x3b07a4(0x17b))/0x8;if(_0x381a36===_0x4e6dd0)break;else _0x9bd835['push'](_0x9bd835['shift']());}catch(_0x18c799){_0x9bd835['push'](_0x9bd835['shift']());}}}(a156_0x2b36,0x3d7f7));function a156_0xb977(_0x1067e5,_0x483a78){_0x1067e5=_0x1067e5-0x178;const _0x2b3682=a156_0x2b36();let _0xb977ef=_0x2b3682[_0x1067e5];return _0xb977ef;}export const VERSION=a156_0x1ec85f(0x17e);export const GIT_TAG=a156_0x1ec85f(0x179);export const GIT_COMMIT=a156_0x1ec85f(0x17c);export const BUILD_TIME=a156_0x1ec85f(0x182);
1
+ const a160_0x1ea7c8=a160_0x2d23;(function(_0x5aa535,_0x19949f){const _0x12a92b=a160_0x2d23,_0x16799a=_0x5aa535();while(!![]){try{const _0x43763f=parseInt(_0x12a92b(0x1e5))/0x1*(-parseInt(_0x12a92b(0x1e9))/0x2)+parseInt(_0x12a92b(0x1e1))/0x3+-parseInt(_0x12a92b(0x1e7))/0x4*(-parseInt(_0x12a92b(0x1ec))/0x5)+parseInt(_0x12a92b(0x1ea))/0x6*(-parseInt(_0x12a92b(0x1e2))/0x7)+-parseInt(_0x12a92b(0x1e8))/0x8+-parseInt(_0x12a92b(0x1e4))/0x9+parseInt(_0x12a92b(0x1e0))/0xa;if(_0x43763f===_0x19949f)break;else _0x16799a['push'](_0x16799a['shift']());}catch(_0x18358a){_0x16799a['push'](_0x16799a['shift']());}}}(a160_0x30c1,0x7ca02));export const VERSION='2.1.6';export const GIT_TAG=a160_0x1ea7c8(0x1e3);export const GIT_COMMIT=a160_0x1ea7c8(0x1eb);export const BUILD_TIME=a160_0x1ea7c8(0x1e6);function a160_0x2d23(_0x197b94,_0x47bdb9){_0x197b94=_0x197b94-0x1e0;const _0x30c122=a160_0x30c1();let _0x2d2377=_0x30c122[_0x197b94];return _0x2d2377;}function a160_0x30c1(){const _0xf6b063=['0ef5956','515iepkDg','4945010eeSvJm','2153634BWhoVn','6460447jxqBzp','v2.1.6','3768417gyYywE','20948gdfqDN','2026-04-21T08:53:30.276Z','35608wovrPJ','709224xiVuOK','18tYRDQR','6ascAOm'];a160_0x30c1=function(){return _0xf6b063;};return a160_0x30c1();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a157_0x5efe(){var _0x1900f5=['\x20\x20Use\x20','4775800MZeVGP','bold','20wVvbge','7791987nyMrtM','242358GZECIy','2077923XuMfat','465047TQphjG','5061402jJztZM','\x20to\x20view\x20available\x20commands.','2RgGpQs','1407512nLPbcv','792DyhluD','4NQALuL','\x20--help','green','145UERQSS','log'];a157_0x5efe=function(){return _0x1900f5;};return a157_0x5efe();}(function(_0x1ca722,_0x31a3f9){var _0x512afe=a157_0x2e0e,_0x1c2c08=_0x1ca722();while(!![]){try{var _0x2d86e5=parseInt(_0x512afe(0xb6))/0x1*(parseInt(_0x512afe(0xb5))/0x2)+-parseInt(_0x512afe(0xc3))/0x3*(-parseInt(_0x512afe(0xb8))/0x4)+-parseInt(_0x512afe(0xbb))/0x5*(parseInt(_0x512afe(0xc2))/0x6)+-parseInt(_0x512afe(0xc1))/0x7+-parseInt(_0x512afe(0xbe))/0x8+parseInt(_0x512afe(0xc5))/0x9*(-parseInt(_0x512afe(0xc0))/0xa)+-parseInt(_0x512afe(0xc4))/0xb*(-parseInt(_0x512afe(0xb7))/0xc);if(_0x2d86e5===_0x31a3f9)break;else _0x1c2c08['push'](_0x1c2c08['shift']());}catch(_0x359143){_0x1c2c08['push'](_0x1c2c08['shift']());}}}(a157_0x5efe,0xd7dc6));import a157_0x1e4b68 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a157_0x2e0e(_0x1a5fb5,_0x22ecc7){_0x1a5fb5=_0x1a5fb5-0xb4;var _0x5efe34=a157_0x5efe();var _0x2e0e1f=_0x5efe34[_0x1a5fb5];return _0x2e0e1f;}export function showHelp(){var _0x397437=a157_0x2e0e;console[_0x397437(0xbc)](),console['log'](a157_0x1e4b68[_0x397437(0xba)][_0x397437(0xbf)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x397437(0xbc)](),console[_0x397437(0xbc)](_0x397437(0xbd)+a157_0x1e4b68[_0x397437(0xba)]['bold'](CLI_BIN_NAME+_0x397437(0xb9))+_0x397437(0xb4)),console[_0x397437(0xbc)]();}
1
+ (function(_0x2fd2c3,_0x5549b6){var _0x13eb82=a161_0xd463,_0x461601=_0x2fd2c3();while(!![]){try{var _0x2d6537=-parseInt(_0x13eb82(0x13d))/0x1+parseInt(_0x13eb82(0x145))/0x2+parseInt(_0x13eb82(0x137))/0x3+parseInt(_0x13eb82(0x13a))/0x4*(parseInt(_0x13eb82(0x139))/0x5)+parseInt(_0x13eb82(0x143))/0x6*(-parseInt(_0x13eb82(0x141))/0x7)+-parseInt(_0x13eb82(0x13e))/0x8+parseInt(_0x13eb82(0x142))/0x9*(parseInt(_0x13eb82(0x144))/0xa);if(_0x2d6537===_0x5549b6)break;else _0x461601['push'](_0x461601['shift']());}catch(_0xf2795d){_0x461601['push'](_0x461601['shift']());}}}(a161_0x2f5b,0x673b6));function a161_0xd463(_0x2592b4,_0x4d2760){_0x2592b4=_0x2592b4-0x137;var _0x2f5ba6=a161_0x2f5b();var _0xd4630e=_0x2f5ba6[_0x2592b4];return _0xd4630e;}import a161_0x15626c from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x24f4bf=a161_0xd463;console['log'](),console['log'](a161_0x15626c['green'][_0x24f4bf(0x13b)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x24f4bf(0x13c)+a161_0x15626c[_0x24f4bf(0x138)][_0x24f4bf(0x13b)](CLI_BIN_NAME+_0x24f4bf(0x13f))+'\x20to\x20view\x20available\x20commands.'),console[_0x24f4bf(0x140)]();}function a161_0x2f5b(){var _0x2cb17b=['298667MKZcgx','6063032tNhhsS','\x20--help','log','156079WBKnUL','295173LPfDpR','138wCXUPt','90jFptAm','990266NUDnoF','2269788wbNnTL','green','2226565LNLotR','4PMbMbl','bold','\x20\x20Use\x20'];a161_0x2f5b=function(){return _0x2cb17b;};return a161_0x2f5b();}
@@ -1 +1 @@
1
- (function(_0x5407ce,_0x2db3ca){const _0x1b801c=a158_0x52d1,_0x10116b=_0x5407ce();while(!![]){try{const _0x504a31=parseInt(_0x1b801c(0x136))/0x1*(parseInt(_0x1b801c(0x12c))/0x2)+parseInt(_0x1b801c(0x118))/0x3+-parseInt(_0x1b801c(0x116))/0x4*(-parseInt(_0x1b801c(0x115))/0x5)+parseInt(_0x1b801c(0x11f))/0x6+-parseInt(_0x1b801c(0x120))/0x7*(-parseInt(_0x1b801c(0x117))/0x8)+-parseInt(_0x1b801c(0x123))/0x9+-parseInt(_0x1b801c(0x127))/0xa;if(_0x504a31===_0x2db3ca)break;else _0x10116b['push'](_0x10116b['shift']());}catch(_0x44c9b2){_0x10116b['push'](_0x10116b['shift']());}}}(a158_0x2ddc,0x88d2a));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a158_0x52d1(_0x1abfc4,_0x2d3645){_0x1abfc4=_0x1abfc4-0x111;const _0x2ddc0f=a158_0x2ddc();let _0x52d170=_0x2ddc0f[_0x1abfc4];return _0x52d170;}export function camelCaseFlagsToKebab(_0x26063a){const _0x589b50=a158_0x52d1,_0x1e11de=[];for(const [_0x3410be,_0x3ea46b]of Object[_0x589b50(0x12d)](_0x26063a)){if(_0x3ea46b===!![]){const _0x2f1a84=_0x3410be['replace'](/([A-Z])/g,_0x589b50(0x121))[_0x589b50(0x12b)]();_0x1e11de[_0x589b50(0x126)](_0x2f1a84);}}return _0x1e11de;}export function parseDynamicFlags(){const _0x472929=a158_0x52d1,_0x514f61=[];for(let _0x57d272=0x3;_0x57d272<process[_0x472929(0x119)][_0x472929(0x12e)];_0x57d272++){const _0x5665fe=process[_0x472929(0x119)][_0x57d272];if(_0x5665fe&&_0x5665fe[_0x472929(0x134)]('--')){const _0x526653=_0x5665fe[_0x472929(0x131)](0x2);_0x526653&&!_0x526653[_0x472929(0x12f)]('=')&&_0x514f61[_0x472929(0x126)](_0x526653);}}return _0x514f61;}function a158_0x2ddc(){const _0x45e5fe=['40yvWkZy','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','exit','help','35JJVUOV','170356uslsau','3332632QHqggD','603585pSLtvs','argv','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','Equivalent\x20command:\x20','--help','error','skill','3362448tBhxCh','7eTbCuv','-$1','from','3485142EwhoQu','cwd','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','push','15784410hOtfwy','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','log','enable-bff-save','toLowerCase','52490mREKCx','entries','length','includes','\x20skill\x20--help\x0a\x20\x20','slice','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','(empty)','startsWith','dangerously-bff-save'];a158_0x2ddc=function(){return _0x45e5fe;};return a158_0x2ddc();}export function getAllProvidedFlags(_0x56f8eb){const _0x53f0c3=a158_0x52d1,_0x467394=camelCaseFlagsToKebab(_0x56f8eb),_0xefadcc=parseDynamicFlags(),_0x1ebc2f=new Set([..._0x467394,..._0xefadcc]);return Array[_0x53f0c3(0x122)](_0x1ebc2f);}export function normalizeLegacyBffSaveFlags(_0x4e1687){const _0x559d58=a158_0x52d1,_0x26f0f6=new Set(_0x4e1687);return _0x26f0f6['has'](_0x559d58(0x135))&&_0x26f0f6['add'](_0x559d58(0x12a)),Array[_0x559d58(0x122)](_0x26f0f6);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x116c17,_0x5cd1cf,_0x4b3547){const _0x42055c=a158_0x52d1;logger['setLogPath'](process[_0x42055c(0x124)]());if(_0x4b3547?.[_0x42055c(0x114)]||_0x116c17===_0x42055c(0x11c)){showHelp();return;}console[_0x42055c(0x11d)](_0x42055c(0x112)+(_0x116c17||_0x42055c(0x133))),console[_0x42055c(0x129)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x42055c(0x125)),console[_0x42055c(0x129)]('\x20\x20'+CLI_BIN_NAME+_0x42055c(0x132)),console[_0x42055c(0x129)](''),console[_0x42055c(0x129)](_0x42055c(0x11b)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x42055c(0x11d)](_0x42055c(0x11e),'不支持的命令:\x20'+_0x116c17),process[_0x42055c(0x113)](0x1);}function showHelp(){const _0x276b47=a158_0x52d1;console[_0x276b47(0x129)](_0x276b47(0x128)+CLI_BIN_NAME+_0x276b47(0x130)+CLI_BIN_NAME+_0x276b47(0x111)+SKILLS_INSTALL_COMMAND_LINE+_0x276b47(0x11a));}
1
+ function a162_0x5ca1(){const _0x2f7b2b=['26hjOFKf','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','cwd','help','add','29935AtQmia','push','3103760exJPpf','setLogPath','from','1720545IyBCTR','4757874NyIJUW','argv','enable-bff-save','不支持的命令:\x20','exit','24475ldQtDx','-$1','12239532kztTnH','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','toLowerCase','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','replace','36omqfTM','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','4900210sfKkTI','entries','skill','error','includes','log','dangerously-bff-save','startsWith','(empty)'];a162_0x5ca1=function(){return _0x2f7b2b;};return a162_0x5ca1();}(function(_0x48d88f,_0x581e58){const _0x372127=a162_0x21e7,_0x321bb0=_0x48d88f();while(!![]){try{const _0x291d91=parseInt(_0x372127(0xad))/0x1*(parseInt(_0x372127(0xa8))/0x2)+parseInt(_0x372127(0x90))/0x3+parseInt(_0x372127(0x9d))/0x4*(-parseInt(_0x372127(0x96))/0x5)+-parseInt(_0x372127(0x91))/0x6+-parseInt(_0x372127(0x9f))/0x7+-parseInt(_0x372127(0x8d))/0x8+parseInt(_0x372127(0x98))/0x9;if(_0x291d91===_0x581e58)break;else _0x321bb0['push'](_0x321bb0['shift']());}catch(_0x486b13){_0x321bb0['push'](_0x321bb0['shift']());}}}(a162_0x5ca1,0x61110));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a162_0x21e7(_0x789e85,_0x12d37a){_0x789e85=_0x789e85-0x8d;const _0x5ca188=a162_0x5ca1();let _0x21e708=_0x5ca188[_0x789e85];return _0x21e708;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2dbf91){const _0x175d2d=a162_0x21e7,_0x5471fe=[];for(const [_0x2e22c4,_0x56607e]of Object[_0x175d2d(0xa0)](_0x2dbf91)){if(_0x56607e===!![]){const _0x4f2e86=_0x2e22c4[_0x175d2d(0x9c)](/([A-Z])/g,_0x175d2d(0x97))[_0x175d2d(0x9a)]();_0x5471fe[_0x175d2d(0xae)](_0x4f2e86);}}return _0x5471fe;}export function parseDynamicFlags(){const _0x40a361=a162_0x21e7,_0x4effab=[];for(let _0x29fb6d=0x3;_0x29fb6d<process[_0x40a361(0x92)]['length'];_0x29fb6d++){const _0x420a33=process[_0x40a361(0x92)][_0x29fb6d];if(_0x420a33&&_0x420a33[_0x40a361(0xa6)]('--')){const _0x308eda=_0x420a33['slice'](0x2);_0x308eda&&!_0x308eda[_0x40a361(0xa3)]('=')&&_0x4effab[_0x40a361(0xae)](_0x308eda);}}return _0x4effab;}export function getAllProvidedFlags(_0x210619){const _0x4d814c=a162_0x21e7,_0x25ef6c=camelCaseFlagsToKebab(_0x210619),_0x1708be=parseDynamicFlags(),_0x1af64a=new Set([..._0x25ef6c,..._0x1708be]);return Array[_0x4d814c(0x8f)](_0x1af64a);}export function normalizeLegacyBffSaveFlags(_0x23495a){const _0x44221a=a162_0x21e7,_0x131a3f=new Set(_0x23495a);return _0x131a3f['has'](_0x44221a(0xa5))&&_0x131a3f[_0x44221a(0xac)](_0x44221a(0x93)),Array['from'](_0x131a3f);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x162b0b,_0x2303ab,_0x50e73a){const _0x5973e7=a162_0x21e7;logger[_0x5973e7(0x8e)](process[_0x5973e7(0xaa)]());if(_0x50e73a?.[_0x5973e7(0xab)]||_0x162b0b==='--help'){showHelp();return;}console[_0x5973e7(0xa2)]('Error:\x20Unsupported\x20command:\x20'+(_0x162b0b||_0x5973e7(0xa7))),console[_0x5973e7(0xa4)]('\x0aAvailable\x20commands:'),console[_0x5973e7(0xa4)]('\x20\x20'+CLI_BIN_NAME+_0x5973e7(0x9b)),console[_0x5973e7(0xa4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x5973e7(0xa4)](''),console[_0x5973e7(0xa4)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5973e7(0xa2)](_0x5973e7(0xa1),_0x5973e7(0x94)+_0x162b0b),process[_0x5973e7(0x95)](0x1);}function showHelp(){const _0x3fa478=a162_0x21e7;console[_0x3fa478(0xa4)](_0x3fa478(0x99)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x3fa478(0x9e)+SKILLS_INSTALL_COMMAND_LINE+_0x3fa478(0xa9));}
@@ -1 +1 @@
1
- const a159_0x536c9d=a159_0x2930;(function(_0x5b2771,_0x57f27a){const _0x5d3d79=a159_0x2930,_0x28199b=_0x5b2771();while(!![]){try{const _0x4279ef=parseInt(_0x5d3d79(0x1f0))/0x1+-parseInt(_0x5d3d79(0x1eb))/0x2+-parseInt(_0x5d3d79(0x1ee))/0x3+parseInt(_0x5d3d79(0x1f3))/0x4*(parseInt(_0x5d3d79(0x1ed))/0x5)+-parseInt(_0x5d3d79(0x1e5))/0x6*(parseInt(_0x5d3d79(0x1f7))/0x7)+-parseInt(_0x5d3d79(0x1f4))/0x8+parseInt(_0x5d3d79(0x1fa))/0x9;if(_0x4279ef===_0x57f27a)break;else _0x28199b['push'](_0x28199b['shift']());}catch(_0x42bcf7){_0x28199b['push'](_0x28199b['shift']());}}}(a159_0x2957,0xd9469));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a159_0x536c9d(0x1fc);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a159_0x536c9d(0x1e8);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a159_0x536c9d(0x1f5);function a159_0x2957(){const _0x2bf4d5=['1535510nZkEHu','remove','npx','4532OXaUdz','7848480aGKlyc','Lovrabet','stderr','397075PZmTcM','join','unknown','10363338qxmhEZ','stdio','add','trim','toString','stdout','162BBYIhH','status','log','lovrabet/rabetbase','inherit','exit\x20','957624Jwbwme','pipe','5495xIBSFS','152253eoVevu','skill'];a159_0x2957=function(){return _0x2bf4d5;};return a159_0x2957();}export function buildNpxSkillsAddArgv(_0x4966a1=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x4966a1];}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a159_0x536c9d(0x1f8)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a159_0x536c9d(0x1f2),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a159_0x536c9d(0x1f8)]('\x20');function a159_0x2930(_0x3d804d,_0x1d1003){_0x3d804d=_0x3d804d-0x1e3;const _0x29574a=a159_0x2957();let _0x2930a3=_0x29574a[_0x3d804d];return _0x2930a3;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x5f1d39,_0x3355e6){const _0x568f85=a159_0x536c9d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x22a2c1=_0x3355e6?.['stdio']??_0x568f85(0x1e9),_0x58aaec=resolveNpmBin(_0x568f85(0x1f2)),_0xcf36a6=buildNpxSkillsAddArgv(_0x3355e6?.[_0x568f85(0x1ef)]??DEFAULT_RABETBASE_SKILL_NAME),_0x3404ec=[_0x568f85(0x1f2),..._0xcf36a6][_0x568f85(0x1f8)]('\x20');console[_0x568f85(0x1e7)]('*\x20'+_0x3404ec);const _0x2b6941=spawnSync(_0x58aaec,_0xcf36a6,{'cwd':_0x5f1d39,'stdio':_0x22a2c1,'env':process.env,'shell':![]}),_0x517516=_0x2b6941['status'];if(_0x517516===0x0)return{'ok':!![],'status':0x0};let _0xb3f136='exit\x20'+(_0x517516??_0x568f85(0x1f9));if(_0x22a2c1===_0x568f85(0x1ec)){const _0x56b61b=_0x2b6941[_0x568f85(0x1f6)]?_0x2b6941[_0x568f85(0x1f6)][_0x568f85(0x1e3)]()['trim']():'',_0x3e032b=_0x2b6941['stdout']?_0x2b6941[_0x568f85(0x1e4)][_0x568f85(0x1e3)]()['trim']():'';if(_0x56b61b)_0xb3f136=_0x56b61b;else{if(_0x3e032b)_0xb3f136=_0x3e032b;}}return{'ok':![],'status':_0x517516??null,'error':_0xb3f136};}export function runNpxSkillsRemove(_0x3cd9ff,_0xaf63c3,_0x47bf35=LEGACY_RABETBASE_SKILL_SOURCE){const _0x331893=a159_0x536c9d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x285951=_0xaf63c3?.[_0x331893(0x1fb)]??'inherit',_0x3db89d=resolveNpmBin('npx'),_0x4f64ca=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x331893(0x1f1),_0x47bf35,NPX_SKILLS_FLAG_SKILL,_0xaf63c3?.[_0x331893(0x1ef)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xaf63c3?.['yes']?['-y']:[]],_0x12f999=[_0x3db89d,..._0x4f64ca][_0x331893(0x1f8)]('\x20');console[_0x331893(0x1e7)]('*\x20'+_0x12f999);const _0x35f07c=spawnSync(_0x3db89d,_0x4f64ca,{'cwd':_0x3cd9ff,'stdio':_0x285951,'env':process.env,'shell':![]}),_0xdf14e3=_0x35f07c[_0x331893(0x1e6)];if(_0xdf14e3===0x0)return{'ok':!![],'status':0x0};let _0x59b1ce=_0x331893(0x1ea)+(_0xdf14e3??_0x331893(0x1f9));if(_0x285951===_0x331893(0x1ec)){const _0x313d38=_0x35f07c[_0x331893(0x1f6)]?_0x35f07c[_0x331893(0x1f6)][_0x331893(0x1e3)]()[_0x331893(0x1fd)]():'',_0xd7b03b=_0x35f07c['stdout']?_0x35f07c['stdout'][_0x331893(0x1e3)]()[_0x331893(0x1fd)]():'';if(_0x313d38)_0x59b1ce=_0x313d38;else{if(_0xd7b03b)_0x59b1ce=_0xd7b03b;}}return{'ok':![],'status':_0xdf14e3??null,'error':_0x59b1ce};}export function runNpxSkillsAddGlobal(_0x566b38,_0x2385af,_0x1eac17){const _0x444dea=a159_0x536c9d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x274405=_0x1eac17?.['stdio']??_0x444dea(0x1e9),_0x175f7b=resolveNpmBin(_0x444dea(0x1f2)),_0x56e7bd=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2385af,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1563b9=[_0x444dea(0x1f2),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2385af,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x444dea(0x1f8)]('\x20');console['log']('*\x20'+_0x1563b9);const _0x1bac3e=spawnSync(_0x175f7b,_0x56e7bd,{'cwd':_0x566b38,'stdio':_0x274405,'env':process.env,'shell':![]}),_0x499323=_0x1bac3e['status'];if(_0x499323===0x0)return{'ok':!![],'status':0x0};let _0x516e66=_0x444dea(0x1ea)+(_0x499323??_0x444dea(0x1f9));if(_0x274405==='pipe'){const _0x123ee1=_0x1bac3e[_0x444dea(0x1f6)]?_0x1bac3e[_0x444dea(0x1f6)]['toString']()[_0x444dea(0x1fd)]():'',_0x59278e=_0x1bac3e[_0x444dea(0x1e4)]?_0x1bac3e[_0x444dea(0x1e4)][_0x444dea(0x1e3)]()[_0x444dea(0x1fd)]():'';if(_0x123ee1)_0x516e66=_0x123ee1;else{if(_0x59278e)_0x516e66=_0x59278e;}}return{'ok':![],'status':_0x499323??null,'error':_0x516e66};}
1
+ const a163_0x1e5c28=a163_0x46c8;(function(_0x3bd83f,_0x31e36d){const _0x46d90c=a163_0x46c8,_0x414ee6=_0x3bd83f();while(!![]){try{const _0x53802b=-parseInt(_0x46d90c(0x10b))/0x1*(-parseInt(_0x46d90c(0x124))/0x2)+parseInt(_0x46d90c(0x11f))/0x3+parseInt(_0x46d90c(0x10c))/0x4*(-parseInt(_0x46d90c(0x120))/0x5)+-parseInt(_0x46d90c(0x127))/0x6*(parseInt(_0x46d90c(0x118))/0x7)+-parseInt(_0x46d90c(0x123))/0x8*(parseInt(_0x46d90c(0x121))/0x9)+parseInt(_0x46d90c(0x110))/0xa*(-parseInt(_0x46d90c(0x122))/0xb)+-parseInt(_0x46d90c(0x114))/0xc*(-parseInt(_0x46d90c(0x11e))/0xd);if(_0x53802b===_0x31e36d)break;else _0x414ee6['push'](_0x414ee6['shift']());}catch(_0x5226e6){_0x414ee6['push'](_0x414ee6['shift']());}}}(a163_0x497e,0x5447f));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=a163_0x1e5c28(0x129);export const NPX_SKILLS_SUBCOMMAND_ADD=a163_0x1e5c28(0x117);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a163_0x1e5c28(0x125);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x9f69e7=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x9f69e7];}function a163_0x497e(){const _0x3ce055=['stdout','add','42uChyRW','status','stderr','inherit','skill','trim','26gCCMTn','800397vWIUlJ','1468615ZkLtZS','36HPtPyO','2752277fBqiEg','1332976ycghgK','152jbREnD','lovrabet/rabetbase','yes','684552XCiBUn','remove','skills','unknown','8392nlcXyo','4kyvNAc','exit\x20','pipe','stdio','10gXBTdW','npx','toString','log','8013564NGiDMe','join'];a163_0x497e=function(){return _0x3ce055;};return a163_0x497e();}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x12489f,_0x4a44b8){const _0x2cb52b=a163_0x1e5c28;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1c380e=_0x4a44b8?.['stdio']??_0x2cb52b(0x11b),_0x2ef532=resolveNpmBin(_0x2cb52b(0x111)),_0x5abcb2=buildNpxSkillsAddArgv(_0x4a44b8?.[_0x2cb52b(0x11c)]??DEFAULT_RABETBASE_SKILL_NAME),_0x58c943=[_0x2cb52b(0x111),..._0x5abcb2][_0x2cb52b(0x115)]('\x20');console['log']('*\x20'+_0x58c943);const _0x772c12=spawnSync(_0x2ef532,_0x5abcb2,{'cwd':_0x12489f,'stdio':_0x1c380e,'env':process.env,'shell':![]}),_0x350a69=_0x772c12[_0x2cb52b(0x119)];if(_0x350a69===0x0)return{'ok':!![],'status':0x0};let _0x1a2723=_0x2cb52b(0x10d)+(_0x350a69??_0x2cb52b(0x10a));if(_0x1c380e===_0x2cb52b(0x10e)){const _0x4bb7a6=_0x772c12[_0x2cb52b(0x11a)]?_0x772c12[_0x2cb52b(0x11a)][_0x2cb52b(0x112)]()[_0x2cb52b(0x11d)]():'',_0x4102cb=_0x772c12[_0x2cb52b(0x116)]?_0x772c12['stdout']['toString']()[_0x2cb52b(0x11d)]():'';if(_0x4bb7a6)_0x1a2723=_0x4bb7a6;else{if(_0x4102cb)_0x1a2723=_0x4102cb;}}return{'ok':![],'status':_0x350a69??null,'error':_0x1a2723};}export function runNpxSkillsRemove(_0x1ec7a3,_0x54498a,_0x3f88f9=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1abec9=a163_0x1e5c28;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4778ec=_0x54498a?.[_0x1abec9(0x10f)]??_0x1abec9(0x11b),_0x2368b6=resolveNpmBin(_0x1abec9(0x111)),_0x59eaac=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x1abec9(0x128),_0x3f88f9,NPX_SKILLS_FLAG_SKILL,_0x54498a?.[_0x1abec9(0x11c)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x54498a?.[_0x1abec9(0x126)]?['-y']:[]],_0x289f15=[_0x2368b6,..._0x59eaac][_0x1abec9(0x115)]('\x20');console[_0x1abec9(0x113)]('*\x20'+_0x289f15);const _0xbf6684=spawnSync(_0x2368b6,_0x59eaac,{'cwd':_0x1ec7a3,'stdio':_0x4778ec,'env':process.env,'shell':![]}),_0x35158a=_0xbf6684[_0x1abec9(0x119)];if(_0x35158a===0x0)return{'ok':!![],'status':0x0};let _0x571699=_0x1abec9(0x10d)+(_0x35158a??'unknown');if(_0x4778ec==='pipe'){const _0x17e9c7=_0xbf6684[_0x1abec9(0x11a)]?_0xbf6684[_0x1abec9(0x11a)][_0x1abec9(0x112)]()[_0x1abec9(0x11d)]():'',_0x15b474=_0xbf6684[_0x1abec9(0x116)]?_0xbf6684[_0x1abec9(0x116)][_0x1abec9(0x112)]()['trim']():'';if(_0x17e9c7)_0x571699=_0x17e9c7;else{if(_0x15b474)_0x571699=_0x15b474;}}return{'ok':![],'status':_0x35158a??null,'error':_0x571699};}function a163_0x46c8(_0xf39d5f,_0x107e48){_0xf39d5f=_0xf39d5f-0x10a;const _0x497ee6=a163_0x497e();let _0x46c894=_0x497ee6[_0xf39d5f];return _0x46c894;}export function runNpxSkillsAddGlobal(_0x32bbdc,_0xcf36d7,_0x50beec){const _0x2713b8=a163_0x1e5c28;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2c8089=_0x50beec?.[_0x2713b8(0x10f)]??'inherit',_0x230bba=resolveNpmBin(_0x2713b8(0x111)),_0x1d4389=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xcf36d7,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x54eea7=[_0x2713b8(0x111),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xcf36d7,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x2713b8(0x115)]('\x20');console[_0x2713b8(0x113)]('*\x20'+_0x54eea7);const _0x14232d=spawnSync(_0x230bba,_0x1d4389,{'cwd':_0x32bbdc,'stdio':_0x2c8089,'env':process.env,'shell':![]}),_0x58c60d=_0x14232d[_0x2713b8(0x119)];if(_0x58c60d===0x0)return{'ok':!![],'status':0x0};let _0xb61dbe='exit\x20'+(_0x58c60d??'unknown');if(_0x2c8089===_0x2713b8(0x10e)){const _0xb91aca=_0x14232d['stderr']?_0x14232d[_0x2713b8(0x11a)][_0x2713b8(0x112)]()['trim']():'',_0x16d923=_0x14232d[_0x2713b8(0x116)]?_0x14232d['stdout'][_0x2713b8(0x112)]()[_0x2713b8(0x11d)]():'';if(_0xb91aca)_0xb61dbe=_0xb91aca;else{if(_0x16d923)_0xb61dbe=_0x16d923;}}return{'ok':![],'status':_0x58c60d??null,'error':_0xb61dbe};}
@@ -1 +1 @@
1
- function a160_0x5f05(){const _0x7ac962=['4449590xASvsL','rabetbase.command','entries','command','service','24Ipxebr','996LjBOMn','flags','error','3snQqkQ','12KiXEyY','10Kqopur','163570qrBETQ','1500003yFbnbE','216940JbXYcJ','durationMs','stringify','test','2483515jPNKbO','3713012SNXyWm','593159WnUKza'];a160_0x5f05=function(){return _0x7ac962;};return a160_0x5f05();}(function(_0x215eb5,_0x17020d){const _0x30b6d1=a160_0x488c,_0x19c1d6=_0x215eb5();while(!![]){try{const _0xb47375=parseInt(_0x30b6d1(0x1e4))/0x1*(-parseInt(_0x30b6d1(0x1e1))/0x2)+parseInt(_0x30b6d1(0x1df))/0x3*(parseInt(_0x30b6d1(0x1d4))/0x4)+-parseInt(_0x30b6d1(0x1d3))/0x5*(parseInt(_0x30b6d1(0x1e0))/0x6)+parseInt(_0x30b6d1(0x1d5))/0x7*(parseInt(_0x30b6d1(0x1db))/0x8)+-parseInt(_0x30b6d1(0x1e3))/0x9+parseInt(_0x30b6d1(0x1d6))/0xa+parseInt(_0x30b6d1(0x1e2))/0xb*(parseInt(_0x30b6d1(0x1dc))/0xc);if(_0xb47375===_0x17020d)break;else _0x19c1d6['push'](_0x19c1d6['shift']());}catch(_0x272f71){_0x19c1d6['push'](_0x19c1d6['shift']());}}}(a160_0x5f05,0x9699c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a160_0x488c(_0x55be89,_0x1f2099){_0x55be89=_0x55be89-0x1d1;const _0x5f057c=a160_0x5f05();let _0x488c44=_0x5f057c[_0x55be89];return _0x488c44;}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x2b909e){const _0x4c90e3=a160_0x488c;return SENSITIVE_PATTERNS['some'](_0x33ce1d=>_0x33ce1d[_0x4c90e3(0x1d2)](_0x2b909e));}function sanitizeFlags(_0x16956b){const _0x63032a=a160_0x488c,_0x4e7ad5={};for(const [_0x4ed3d1,_0x2ba162]of Object[_0x63032a(0x1d8)](_0x16956b)){isSensitiveKey(_0x4ed3d1)?_0x4e7ad5[_0x4ed3d1]=_0x2ba162!=null&&_0x2ba162!==''?'[REDACTED]':_0x2ba162:_0x4e7ad5[_0x4ed3d1]=_0x2ba162;}return _0x4e7ad5;}export async function reportCommandTrace(_0x358f08){const _0x22f8f8=a160_0x488c;try{const _0x416fd7=sanitizeFlags(_0x358f08[_0x22f8f8(0x1dd)]);await sendCliTraceLog({'spanName':_0x22f8f8(0x1d7),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x358f08[_0x22f8f8(0x1da)],'command.name':_0x358f08[_0x22f8f8(0x1d9)],'command.flags':JSON[_0x22f8f8(0x1d1)](_0x416fd7),..._0x358f08[_0x22f8f8(0x1e5)]!=null?{'command.duration_ms':_0x358f08[_0x22f8f8(0x1e5)]}:{},..._0x358f08[_0x22f8f8(0x1de)]?{'command.error':_0x358f08[_0x22f8f8(0x1de)]instanceof Error?_0x358f08['error']['message']:String(_0x358f08[_0x22f8f8(0x1de)])}:{}}});}catch{}}
1
+ function a164_0x3f0b(_0x2fa560,_0x12342a){_0x2fa560=_0x2fa560-0xa6;const _0x5dfa46=a164_0x5dfa();let _0x3f0b6a=_0x5dfa46[_0x2fa560];return _0x3f0b6a;}(function(_0x5c0a72,_0x1a13fe){const _0x2cdb24=a164_0x3f0b,_0x34e7e9=_0x5c0a72();while(!![]){try{const _0x48157f=parseInt(_0x2cdb24(0xaa))/0x1*(parseInt(_0x2cdb24(0xa6))/0x2)+parseInt(_0x2cdb24(0xad))/0x3+parseInt(_0x2cdb24(0xa8))/0x4+-parseInt(_0x2cdb24(0xb1))/0x5+parseInt(_0x2cdb24(0xb3))/0x6*(parseInt(_0x2cdb24(0xb4))/0x7)+-parseInt(_0x2cdb24(0xac))/0x8+-parseInt(_0x2cdb24(0xaf))/0x9;if(_0x48157f===_0x1a13fe)break;else _0x34e7e9['push'](_0x34e7e9['shift']());}catch(_0x7766df){_0x34e7e9['push'](_0x34e7e9['shift']());}}}(a164_0x5dfa,0x4c633));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a164_0x5dfa(){const _0x5a78e4=['service','5964183VJWCTo','entries','2307900vsyYmD','error','25206xKPznj','539utbyIx','command','message','stringify','6tkseMe','durationMs','2421180qtwzFS','[REDACTED]','169891DdSjOe','rabetbase.command','457952RyeIhg','167847FXsVSp'];a164_0x5dfa=function(){return _0x5a78e4;};return a164_0x5dfa();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x4fc9db){return SENSITIVE_PATTERNS['some'](_0x2b02ce=>_0x2b02ce['test'](_0x4fc9db));}function sanitizeFlags(_0x3ec08a){const _0xeaa001=a164_0x3f0b,_0x4e77e2={};for(const [_0xfa0b2c,_0x3f5d3b]of Object[_0xeaa001(0xb0)](_0x3ec08a)){isSensitiveKey(_0xfa0b2c)?_0x4e77e2[_0xfa0b2c]=_0x3f5d3b!=null&&_0x3f5d3b!==''?_0xeaa001(0xa9):_0x3f5d3b:_0x4e77e2[_0xfa0b2c]=_0x3f5d3b;}return _0x4e77e2;}export async function reportCommandTrace(_0x2c826c){const _0x198330=a164_0x3f0b;try{const _0x5e8bc5=sanitizeFlags(_0x2c826c['flags']);await sendCliTraceLog({'spanName':_0x198330(0xab),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2c826c[_0x198330(0xae)],'command.name':_0x2c826c[_0x198330(0xb5)],'command.flags':JSON[_0x198330(0xb7)](_0x5e8bc5),..._0x2c826c[_0x198330(0xa7)]!=null?{'command.duration_ms':_0x2c826c[_0x198330(0xa7)]}:{},..._0x2c826c['error']?{'command.error':_0x2c826c[_0x198330(0xb2)]instanceof Error?_0x2c826c['error'][_0x198330(0xb6)]:String(_0x2c826c['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x119bde,_0x43ffe7){var _0x2c92fd=a161_0x350b,_0xd897be=_0x119bde();while(!![]){try{var _0xfda092=parseInt(_0x2c92fd(0x78))/0x1*(-parseInt(_0x2c92fd(0x7f))/0x2)+-parseInt(_0x2c92fd(0x80))/0x3*(parseInt(_0x2c92fd(0x84))/0x4)+-parseInt(_0x2c92fd(0x7a))/0x5+-parseInt(_0x2c92fd(0x79))/0x6+parseInt(_0x2c92fd(0x83))/0x7+parseInt(_0x2c92fd(0x82))/0x8*(-parseInt(_0x2c92fd(0x7c))/0x9)+parseInt(_0x2c92fd(0x81))/0xa;if(_0xfda092===_0x43ffe7)break;else _0xd897be['push'](_0xd897be['shift']());}catch(_0x413ee4){_0xd897be['push'](_0xd897be['shift']());}}}(a161_0x223c,0xa8714));function a161_0x223c(){var _0x2802a1=['486jOMWXR','service','cli.help','12304txcxPm','6rcFfsf','40035830sQxVxk','31944FwCTKd','3761296JHggaZ','771144KvwqKu','error','189JYVrrY','7654482nkhVEf','4056510QDkQES','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a161_0x223c=function(){return _0x2802a1;};return a161_0x223c();}function a161_0x350b(_0x12abe4,_0x538c5f){_0x12abe4=_0x12abe4-0x77;var _0x223c3b=a161_0x223c();var _0x350b18=_0x223c3b[_0x12abe4];return _0x350b18;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1cbb95,_0x505d9e){var _0x4e525d=a161_0x350b;try{await sendCliTraceLog({'spanName':_0x4e525d(0x7e),'logData':{'rabetbase.help.kind':_0x1cbb95,..._0x505d9e?.[_0x4e525d(0x7d)]&&{'rabetbase.help.service':_0x505d9e[_0x4e525d(0x7d)]}}});}catch(_0x2141a4){console[_0x4e525d(0x77)](_0x4e525d(0x7b),_0x2141a4);}}
1
+ (function(_0x2cf79b,_0x1ff5ab){var _0x411b6d=a165_0x32e0,_0x3073a6=_0x2cf79b();while(!![]){try{var _0x13b2c1=-parseInt(_0x411b6d(0x70))/0x1*(-parseInt(_0x411b6d(0x65))/0x2)+-parseInt(_0x411b6d(0x6e))/0x3*(parseInt(_0x411b6d(0x66))/0x4)+parseInt(_0x411b6d(0x6c))/0x5+parseInt(_0x411b6d(0x67))/0x6+parseInt(_0x411b6d(0x71))/0x7+parseInt(_0x411b6d(0x6d))/0x8*(-parseInt(_0x411b6d(0x68))/0x9)+parseInt(_0x411b6d(0x6f))/0xa;if(_0x13b2c1===_0x1ff5ab)break;else _0x3073a6['push'](_0x3073a6['shift']());}catch(_0x39e610){_0x3073a6['push'](_0x3073a6['shift']());}}}(a165_0x1f43,0xcc380));function a165_0x1f43(){var _0x50c3ff=['service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','2710250YEWJeA','5873312slQOpp','3hkOUUR','5850970tkEkKM','637073QprBCH','1065862IBDGPV','2Xtwgma','3314324ZXDifm','2896434igDtwl','9vvSFtW','error'];a165_0x1f43=function(){return _0x50c3ff;};return a165_0x1f43();}function a165_0x32e0(_0x4dcf67,_0x3023df){_0x4dcf67=_0x4dcf67-0x65;var _0x1f43cd=a165_0x1f43();var _0x32e03b=_0x1f43cd[_0x4dcf67];return _0x32e03b;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4c8644,_0x33a79e){var _0x359b4a=a165_0x32e0;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x4c8644,..._0x33a79e?.['service']&&{'rabetbase.help.service':_0x33a79e[_0x359b4a(0x6a)]}}});}catch(_0x3e4f99){console[_0x359b4a(0x69)](_0x359b4a(0x6b),_0x3e4f99);}}
@@ -1 +1 @@
1
- function a162_0x21c7(){const _0x246c55=['6741008BCbPuq','416344mUOvxL','1032sQJyER','38521MBmjSg','5845401XDAZJp','99578ugUWQa','username','daily','user','nickname','userInfo','5BuVRif','3dGeGSy','rabetbase-cli','production','4761230ExwFDF','326632jiJLQK'];a162_0x21c7=function(){return _0x246c55;};return a162_0x21c7();}(function(_0x1fe8ae,_0x190282){const _0xf383f=a162_0x4312,_0xcb3702=_0x1fe8ae();while(!![]){try{const _0x5d5ed0=-parseInt(_0xf383f(0x12b))/0x1+-parseInt(_0xf383f(0x11e))/0x2*(parseInt(_0xf383f(0x125))/0x3)+-parseInt(_0xf383f(0x129))/0x4*(parseInt(_0xf383f(0x124))/0x5)+parseInt(_0xf383f(0x12c))/0x6*(-parseInt(_0xf383f(0x11c))/0x7)+parseInt(_0xf383f(0x12a))/0x8+parseInt(_0xf383f(0x11d))/0x9+parseInt(_0xf383f(0x128))/0xa;if(_0x5d5ed0===_0x190282)break;else _0xcb3702['push'](_0xcb3702['shift']());}catch(_0x3a9d61){_0xcb3702['push'](_0xcb3702['shift']());}}}(a162_0x21c7,0x73b4b));function a162_0x4312(_0x38a051,_0x919801){_0x38a051=_0x38a051-0x11c;const _0x21c7a5=a162_0x21c7();let _0x431298=_0x21c7a5[_0x38a051];return _0x431298;}import a162_0x36bfc3 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x14cdeb=a162_0x4312,_0x329bb7=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3cedd3=_0x329bb7?.[_0x14cdeb(0x121)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x14cdeb(0x120):_0x14cdeb(0x127)),'username':_0x3cedd3?.['username']??a162_0x36bfc3[_0x14cdeb(0x123)]()[_0x14cdeb(0x11f)]??_0x14cdeb(0x126),..._0x3cedd3&&{'nickname':_0x3cedd3[_0x14cdeb(0x122)]}}),cliOtelTraceInitialized=!![];}return _0x329bb7;}
1
+ function a166_0x4c00(_0x5d9edd,_0x11d9ac){_0x5d9edd=_0x5d9edd-0x9e;const _0xd822e1=a166_0xd822();let _0x4c0085=_0xd822e1[_0x5d9edd];return _0x4c0085;}(function(_0x34a165,_0x1649c1){const _0x3bebbf=a166_0x4c00,_0x52310e=_0x34a165();while(!![]){try{const _0xf21ff0=parseInt(_0x3bebbf(0xa3))/0x1+parseInt(_0x3bebbf(0x9e))/0x2*(parseInt(_0x3bebbf(0xaf))/0x3)+-parseInt(_0x3bebbf(0xa8))/0x4*(parseInt(_0x3bebbf(0xab))/0x5)+-parseInt(_0x3bebbf(0xa9))/0x6*(-parseInt(_0x3bebbf(0xad))/0x7)+parseInt(_0x3bebbf(0xae))/0x8+-parseInt(_0x3bebbf(0xa6))/0x9*(-parseInt(_0x3bebbf(0xa5))/0xa)+-parseInt(_0x3bebbf(0xa7))/0xb;if(_0xf21ff0===_0x1649c1)break;else _0x52310e['push'](_0x52310e['shift']());}catch(_0x48ced5){_0x52310e['push'](_0x52310e['shift']());}}}(a166_0xd822,0x96c0f));import a166_0x26782f from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3df106=a166_0x4c00,_0x2ec025=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x149dea=_0x2ec025?.[_0x3df106(0xa1)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3df106(0xa2)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3df106(0x9f):_0x3df106(0xa0)),'username':_0x149dea?.[_0x3df106(0xaa)]??a166_0x26782f[_0x3df106(0xa4)]()['username']??_0x3df106(0xac),..._0x149dea&&{'nickname':_0x149dea['nickname']}}),cliOtelTraceInitialized=!![];}return _0x2ec025;}function a166_0xd822(){const _0x3aa17e=['384518PFamsp','userInfo','7030PcuzlP','1314bqhkzk','21345346oLPtnm','8aEmCJK','18izwtas','username','1653585vnnhdl','rabetbase-cli','2779049PXMCMo','7756312fapmyI','57dSTVNW','60178nenaiZ','daily','production','user','unknown'];a166_0xd822=function(){return _0x3aa17e;};return a166_0xd822();}
@@ -1 +1 @@
1
- (function(_0x303b67,_0x15c67b){const _0x2ea865=a163_0x94f1,_0x569870=_0x303b67();while(!![]){try{const _0x4379f1=-parseInt(_0x2ea865(0x1de))/0x1*(-parseInt(_0x2ea865(0x1e4))/0x2)+parseInt(_0x2ea865(0x1da))/0x3+-parseInt(_0x2ea865(0x1e2))/0x4+parseInt(_0x2ea865(0x1dc))/0x5+-parseInt(_0x2ea865(0x1df))/0x6+-parseInt(_0x2ea865(0x1e0))/0x7+parseInt(_0x2ea865(0x1e3))/0x8*(parseInt(_0x2ea865(0x1db))/0x9);if(_0x4379f1===_0x15c67b)break;else _0x569870['push'](_0x569870['shift']());}catch(_0x357668){_0x569870['push'](_0x569870['shift']());}}}(a163_0x40e4,0x2e9e8));function a163_0x94f1(_0x333caa,_0x555007){_0x333caa=_0x333caa-0x1d9;const _0x40e496=a163_0x40e4();let _0x94f1d=_0x40e496[_0x333caa];return _0x94f1d;}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;}function a163_0x40e4(){const _0x410427=['beforeExit','then','606330ectMiu','19944FinJPl','512760YmUZuf','once','5703YqVXVj','2229894RvAhcE','1525041dWNxjn','SIGTERM','210732DQfjJx','1352zZShJI','54mGkELp','exit'];a163_0x40e4=function(){return _0x410427;};return a163_0x40e4();}export function registerOtelShutdownOnExit(){const _0x515912=a163_0x94f1;process[_0x515912(0x1dd)](_0x515912(0x1e6),()=>{void flushOtelNodeIfUsed();});const _0x26b829=()=>{const _0x4c86c6=_0x515912;void flushOtelNodeIfUsed()[_0x4c86c6(0x1d9)](()=>process[_0x4c86c6(0x1e5)](0x0));};process['once']('SIGINT',_0x26b829),process[_0x515912(0x1dd)](_0x515912(0x1e1),_0x26b829);}export async function exitWithOtelShutdown(_0x3a5fea){const _0x2bd3a2=a163_0x94f1;await flushOtelNodeIfUsed(),process[_0x2bd3a2(0x1e5)](_0x3a5fea);}
1
+ (function(_0x1cbfca,_0xd6b624){const _0x3bab4c=a167_0x4eef,_0x237780=_0x1cbfca();while(!![]){try{const _0x1fbcc3=parseInt(_0x3bab4c(0x1c4))/0x1*(-parseInt(_0x3bab4c(0x1ba))/0x2)+-parseInt(_0x3bab4c(0x1c2))/0x3*(parseInt(_0x3bab4c(0x1c7))/0x4)+-parseInt(_0x3bab4c(0x1bd))/0x5+-parseInt(_0x3bab4c(0x1bf))/0x6+-parseInt(_0x3bab4c(0x1c1))/0x7+parseInt(_0x3bab4c(0x1c8))/0x8*(parseInt(_0x3bab4c(0x1be))/0x9)+parseInt(_0x3bab4c(0x1bb))/0xa;if(_0x1fbcc3===_0xd6b624)break;else _0x237780['push'](_0x237780['shift']());}catch(_0x39c751){_0x237780['push'](_0x237780['shift']());}}}(a167_0x2f17,0x4fdd8));function a167_0x4eef(_0x37fd93,_0x33890d){_0x37fd93=_0x37fd93-0x1ba;const _0x2f1760=a167_0x2f17();let _0x4eefd8=_0x2f1760[_0x37fd93];return _0x4eefd8;}import{shutdownTraces}from'@lovrabet/otel-logger';function a167_0x2f17(){const _0x154bdb=['2685501XvPzyO','12DAABqr','exit','2157GtFlXp','SIGTERM','SIGINT','648548llZYGA','670424yZcmEC','234VKneWP','17296250kKtjQn','once','1145395xwZvhx','27xHdjkV','841602ItPISE','then'];a167_0x2f17=function(){return _0x154bdb;};return a167_0x2f17();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x233a39=a167_0x4eef;process[_0x233a39(0x1bc)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x4f80c7=()=>{const _0x505480=_0x233a39;void flushOtelNodeIfUsed()[_0x505480(0x1c0)](()=>process[_0x505480(0x1c3)](0x0));};process['once'](_0x233a39(0x1c6),_0x4f80c7),process[_0x233a39(0x1bc)](_0x233a39(0x1c5),_0x4f80c7);}export async function exitWithOtelShutdown(_0x24cc60){const _0x48191d=a167_0x4eef;await flushOtelNodeIfUsed(),process[_0x48191d(0x1c3)](_0x24cc60);}
@@ -1 +1 @@
1
- (function(_0x289823,_0xf58f15){const _0x5c5b51=a164_0x204c,_0xd62fb=_0x289823();while(!![]){try{const _0x305e08=parseInt(_0x5c5b51(0x1b3))/0x1+parseInt(_0x5c5b51(0x1b7))/0x2+-parseInt(_0x5c5b51(0x1b1))/0x3+parseInt(_0x5c5b51(0x1ad))/0x4+-parseInt(_0x5c5b51(0x1b2))/0x5*(parseInt(_0x5c5b51(0x1b4))/0x6)+parseInt(_0x5c5b51(0x1b8))/0x7*(-parseInt(_0x5c5b51(0x1b6))/0x8)+-parseInt(_0x5c5b51(0x1aa))/0x9*(-parseInt(_0x5c5b51(0x1ae))/0xa);if(_0x305e08===_0xf58f15)break;else _0xd62fb['push'](_0xd62fb['shift']());}catch(_0x347a6e){_0xd62fb['push'](_0xd62fb['shift']());}}}(a164_0x4d1c,0xbed80));import{sendTraceLog}from'@lovrabet/otel-logger';function a164_0x4d1c(){const _0x5d4f90=['84VcoFvS','574191LWcCRY','version','logData','3857468MOPNiG','280tWmWVq','manual','traceparent','3649221szlOjV','4438945HYxphA','359771MuyqFc','6ktySzJ','traceName','1019752yElXPm','2610020iwEdEe'];a164_0x4d1c=function(){return _0x5d4f90;};return a164_0x4d1c();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a164_0x204c(_0x1f5972,_0x69b00){_0x1f5972=_0x1f5972-0x1aa;const _0x4d1cbc=a164_0x4d1c();let _0x204c38=_0x4d1cbc[_0x1f5972];return _0x204c38;}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x27d389){const _0x5e1e27=a164_0x204c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x27d389[_0x5e1e27(0x1b5)]??DEFAULT_TRACE_NAME,'version':_0x27d389[_0x5e1e27(0x1ab)]??getCliVersion(),'spanName':_0x27d389['spanName'],'eventType':_0x5e1e27(0x1af),'logData':_0x27d389[_0x5e1e27(0x1ac)],..._0x27d389[_0x5e1e27(0x1b0)]&&{'traceparent':_0x27d389[_0x5e1e27(0x1b0)]}});}
1
+ function a168_0x296d(_0xfc1ef6,_0x294d7d){_0xfc1ef6=_0xfc1ef6-0x8c;const _0x1ca2b0=a168_0x1ca2();let _0x296dbb=_0x1ca2b0[_0xfc1ef6];return _0x296dbb;}function a168_0x1ca2(){const _0x42eb4e=['3520027sPVexE','117927XgxypI','323630EeAcBS','version','6917383QUzUsT','2fCRrKp','28400VtoVza','2174855Eooxcc','6sZmOpe','traceparent','450AdPrRS','50586nDkgTb','manual','4qwwXex','logData','spanName','12Lwayzs','rabetbase-cli'];a168_0x1ca2=function(){return _0x42eb4e;};return a168_0x1ca2();}const a168_0x5e4947=a168_0x296d;(function(_0x2bdcba,_0x3f70e0){const _0x4c6330=a168_0x296d,_0x430529=_0x2bdcba();while(!![]){try{const _0x1974c4=parseInt(_0x4c6330(0x9a))/0x1+parseInt(_0x4c6330(0x9d))/0x2*(parseInt(_0x4c6330(0x91))/0x3)+-parseInt(_0x4c6330(0x93))/0x4*(parseInt(_0x4c6330(0x8d))/0x5)+-parseInt(_0x4c6330(0x8e))/0x6*(-parseInt(_0x4c6330(0x98))/0x7)+parseInt(_0x4c6330(0x8c))/0x8+parseInt(_0x4c6330(0x99))/0x9*(-parseInt(_0x4c6330(0x90))/0xa)+parseInt(_0x4c6330(0x9c))/0xb*(parseInt(_0x4c6330(0x96))/0xc);if(_0x1974c4===_0x3f70e0)break;else _0x430529['push'](_0x430529['shift']());}catch(_0x220422){_0x430529['push'](_0x430529['shift']());}}}(a168_0x1ca2,0x6e24e));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a168_0x5e4947(0x97);export async function sendCliTraceLog(_0x134ea0){const _0x12f14c=a168_0x5e4947;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x134ea0['traceName']??DEFAULT_TRACE_NAME,'version':_0x134ea0[_0x12f14c(0x9b)]??getCliVersion(),'spanName':_0x134ea0[_0x12f14c(0x95)],'eventType':_0x12f14c(0x92),'logData':_0x134ea0[_0x12f14c(0x94)],..._0x134ea0[_0x12f14c(0x8f)]&&{'traceparent':_0x134ea0[_0x12f14c(0x8f)]}});}
@@ -1 +1 @@
1
- const a166_0x105741=a166_0x46ba;(function(_0x2ebe49,_0x553313){const _0x37bfe7=a166_0x46ba,_0x51f30c=_0x2ebe49();while(!![]){try{const _0x19317f=-parseInt(_0x37bfe7(0x183))/0x1+-parseInt(_0x37bfe7(0x15a))/0x2+parseInt(_0x37bfe7(0x18a))/0x3*(-parseInt(_0x37bfe7(0x17c))/0x4)+parseInt(_0x37bfe7(0x158))/0x5+-parseInt(_0x37bfe7(0x163))/0x6+parseInt(_0x37bfe7(0x167))/0x7+parseInt(_0x37bfe7(0x16d))/0x8;if(_0x19317f===_0x553313)break;else _0x51f30c['push'](_0x51f30c['shift']());}catch(_0x181508){_0x51f30c['push'](_0x51f30c['shift']());}}}(a166_0x1c27,0x93090));export const CORE_IDE_CONFIGS={'cursor':{'name':a166_0x105741(0x166),'description':a166_0x105741(0x17e),'folders':[a166_0x105741(0x184),a166_0x105741(0x185)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x180),'template':a166_0x105741(0x169)}]},'windsurf':{'name':a166_0x105741(0x179),'description':a166_0x105741(0x174),'folders':[a166_0x105741(0x189)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x182),'template':a166_0x105741(0x169)}]},'claude':{'name':a166_0x105741(0x162),'description':'Claude\x20Code','folders':[a166_0x105741(0x178)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'cline':{'name':a166_0x105741(0x175),'description':'Cline\x20IDE','folders':[a166_0x105741(0x17d)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x18d),'template':a166_0x105741(0x169)}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':[a166_0x105741(0x173)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x17a),'template':a166_0x105741(0x169)}]},'opencode':{'name':a166_0x105741(0x15f),'description':a166_0x105741(0x159),'folders':['.opencode'],'files':[{'type':a166_0x105741(0x15c),'path':'.opencode/skills/lovrabet/SKILL.md','template':a166_0x105741(0x169)}]},'qoder':{'name':a166_0x105741(0x15d),'description':'Qoder\x20IDE','folders':[a166_0x105741(0x18c)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x181),'template':a166_0x105741(0x169)},{'type':a166_0x105741(0x15c),'path':'.qoder/skills/lovrabet/SKILL.md','template':a166_0x105741(0x169)}]},'codebuddy':{'name':a166_0x105741(0x168),'description':a166_0x105741(0x164),'folders':[a166_0x105741(0x160)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x16a),'template':a166_0x105741(0x169)}]},'trae':{'name':a166_0x105741(0x165),'description':a166_0x105741(0x161),'folders':[a166_0x105741(0x17f)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x17b),'template':'SKILL.md.tpl'}]}};function a166_0x1c27(){const _0x1d55af=['Windsurf','.codex/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','11764EOYNOa','.cline','Cursor\x20IDE','.trae','.cursor/skills/rabetbase.md','.qoder/rules/rabetbase.md','.windsurf/workflows/rabetbase.md','709906Vbfbbs','.cursorrules','.cursor','agent','trae','cline','.windsurf','843seqVBE','Antigravity\x20IDE','.qoder','.cline/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','.agent','4651010uRvqbm','OpenCode\x20IDE','1197498EdnEMt','通用模板\x20-\x20兜底方案','file','Qoder','claude','OpenCode','.codebuddy','Trae\x20IDE','Claude\x20Code','7172700fZUiZV','CodeBuddy\x20IDE','Trae','Cursor','2034235sgrTCK','CodeBuddy','SKILL.md.tpl','.codebuddy/skills/lovrabet/SKILL.md','cursor','opencode','21695800SHyxEF','Antigravity','qoder','codex','antigravity','codebuddy','.codex','Windsurf\x20IDE','Cline','其他\x20(通用模板)','windsurf','.claude'];a166_0x1c27=function(){return _0x1d55af;};return a166_0x1c27();}function a166_0x46ba(_0x2f8cc3,_0x44283a){_0x2f8cc3=_0x2f8cc3-0x157;const _0x1c27c9=a166_0x1c27();let _0x46babf=_0x1c27c9[_0x2f8cc3];return _0x46babf;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a166_0x105741(0x176),'description':a166_0x105741(0x15b),'folders':[a166_0x105741(0x157)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x18e),'template':a166_0x105741(0x169)}]},'antigravity':{'name':a166_0x105741(0x16e),'description':a166_0x105741(0x18b),'folders':[a166_0x105741(0x157)],'files':[{'type':a166_0x105741(0x15c),'path':a166_0x105741(0x18e),'template':a166_0x105741(0x169)}]}};export const CORE_IDE_LIST=[a166_0x105741(0x15e),a166_0x105741(0x188),a166_0x105741(0x172),a166_0x105741(0x170),a166_0x105741(0x16b),'opencode',a166_0x105741(0x16f),a166_0x105741(0x187),'windsurf'];export const IDE_LIST=[a166_0x105741(0x171),'claude',a166_0x105741(0x188),a166_0x105741(0x172),a166_0x105741(0x170),a166_0x105741(0x16b),a166_0x105741(0x16c),'qoder',a166_0x105741(0x187),a166_0x105741(0x177),a166_0x105741(0x186)];export const ALL_CORE_IDES=[a166_0x105741(0x16b),a166_0x105741(0x177),a166_0x105741(0x15e),a166_0x105741(0x188),a166_0x105741(0x170),a166_0x105741(0x16c),'qoder',a166_0x105741(0x172),'trae'];
1
+ const a170_0x46b844=a170_0xf01e;(function(_0xcda0df,_0x127729){const _0x3b839e=a170_0xf01e,_0x172853=_0xcda0df();while(!![]){try{const _0x3ec20b=-parseInt(_0x3b839e(0x131))/0x1+-parseInt(_0x3b839e(0x130))/0x2+parseInt(_0x3b839e(0x137))/0x3*(-parseInt(_0x3b839e(0x14b))/0x4)+-parseInt(_0x3b839e(0x14f))/0x5*(parseInt(_0x3b839e(0x154))/0x6)+-parseInt(_0x3b839e(0x145))/0x7+-parseInt(_0x3b839e(0x136))/0x8+parseInt(_0x3b839e(0x13a))/0x9;if(_0x3ec20b===_0x127729)break;else _0x172853['push'](_0x172853['shift']());}catch(_0x133160){_0x172853['push'](_0x172853['shift']());}}}(a170_0x5197,0xa6899));export const CORE_IDE_CONFIGS={'cursor':{'name':a170_0x46b844(0x138),'description':a170_0x46b844(0x162),'folders':[a170_0x46b844(0x15a),'.cursor'],'files':[{'type':'file','path':a170_0x46b844(0x146),'template':a170_0x46b844(0x149)}]},'windsurf':{'name':a170_0x46b844(0x153),'description':a170_0x46b844(0x152),'folders':[a170_0x46b844(0x14a)],'files':[{'type':a170_0x46b844(0x147),'path':a170_0x46b844(0x165),'template':'SKILL.md.tpl'}]},'claude':{'name':a170_0x46b844(0x134),'description':a170_0x46b844(0x134),'folders':['.claude'],'files':[{'type':a170_0x46b844(0x147),'path':a170_0x46b844(0x159),'template':a170_0x46b844(0x149)}]},'cline':{'name':a170_0x46b844(0x13d),'description':a170_0x46b844(0x14c),'folders':['.cline'],'files':[{'type':a170_0x46b844(0x147),'path':a170_0x46b844(0x15b),'template':a170_0x46b844(0x149)}]},'codex':{'name':a170_0x46b844(0x139),'description':'Codex\x20IDE','folders':[a170_0x46b844(0x15e)],'files':[{'type':a170_0x46b844(0x147),'path':'.codex/skills/lovrabet/SKILL.md','template':a170_0x46b844(0x149)}]},'opencode':{'name':a170_0x46b844(0x150),'description':a170_0x46b844(0x12f),'folders':[a170_0x46b844(0x161)],'files':[{'type':a170_0x46b844(0x147),'path':a170_0x46b844(0x133),'template':a170_0x46b844(0x149)}]},'qoder':{'name':a170_0x46b844(0x13b),'description':a170_0x46b844(0x158),'folders':[a170_0x46b844(0x151)],'files':[{'type':a170_0x46b844(0x147),'path':'.qoder/rules/rabetbase.md','template':'SKILL.md.tpl'},{'type':a170_0x46b844(0x147),'path':a170_0x46b844(0x15c),'template':a170_0x46b844(0x149)}]},'codebuddy':{'name':'CodeBuddy','description':a170_0x46b844(0x132),'folders':['.codebuddy'],'files':[{'type':a170_0x46b844(0x147),'path':a170_0x46b844(0x144),'template':a170_0x46b844(0x149)}]},'trae':{'name':'Trae','description':a170_0x46b844(0x148),'folders':[a170_0x46b844(0x143)],'files':[{'type':a170_0x46b844(0x147),'path':a170_0x46b844(0x14d),'template':a170_0x46b844(0x149)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a170_0x46b844(0x135),'description':a170_0x46b844(0x157),'folders':[a170_0x46b844(0x140)],'files':[{'type':'file','path':a170_0x46b844(0x13f),'template':a170_0x46b844(0x149)}]},'antigravity':{'name':a170_0x46b844(0x156),'description':'Antigravity\x20IDE','folders':[a170_0x46b844(0x140)],'files':[{'type':a170_0x46b844(0x147),'path':'.agent/skills/lovrabet/SKILL.md','template':a170_0x46b844(0x149)}]}};export const CORE_IDE_LIST=[a170_0x46b844(0x160),a170_0x46b844(0x13c),a170_0x46b844(0x164),a170_0x46b844(0x15d),a170_0x46b844(0x13e),'opencode','qoder',a170_0x46b844(0x163),a170_0x46b844(0x142)];export const IDE_LIST=[a170_0x46b844(0x141),'claude','cline',a170_0x46b844(0x164),a170_0x46b844(0x15d),a170_0x46b844(0x13e),a170_0x46b844(0x15f),a170_0x46b844(0x155),a170_0x46b844(0x163),a170_0x46b844(0x142),a170_0x46b844(0x14e)];function a170_0xf01e(_0x169f50,_0x32a80d){_0x169f50=_0x169f50-0x12f;const _0x51978c=a170_0x5197();let _0xf01e68=_0x51978c[_0x169f50];return _0xf01e68;}export const ALL_CORE_IDES=[a170_0x46b844(0x13e),a170_0x46b844(0x142),a170_0x46b844(0x160),a170_0x46b844(0x13c),a170_0x46b844(0x15d),'opencode',a170_0x46b844(0x155),a170_0x46b844(0x164),a170_0x46b844(0x163)];function a170_0x5197(){const _0x33abd4=['.opencode/skills/lovrabet/SKILL.md','Claude\x20Code','其他\x20(通用模板)','1248680YOSKHL','23985SHMVlu','Cursor','Codex','29907333BonSUJ','Qoder','cline','Cline','cursor','.agent/skills/lovrabet/SKILL.md','.agent','antigravity','windsurf','.trae','.codebuddy/skills/lovrabet/SKILL.md','1487836TunCsF','.cursor/skills/rabetbase.md','file','Trae\x20IDE','SKILL.md.tpl','.windsurf','40rFMUmd','Cline\x20IDE','.trae/skills/lovrabet/SKILL.md','agent','20pcVonV','OpenCode','.qoder','Windsurf\x20IDE','Windsurf','568980PeaVLv','qoder','Antigravity','通用模板\x20-\x20兜底方案','Qoder\x20IDE','.claude/skills/lovrabet/SKILL.md','.cursorrules','.cline/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','codex','.codex','opencode','claude','.opencode','Cursor\x20IDE','trae','codebuddy','.windsurf/workflows/rabetbase.md','OpenCode\x20IDE','2489740velbFe','568127YTEHVc','CodeBuddy\x20IDE'];a170_0x5197=function(){return _0x33abd4;};return a170_0x5197();}
@@ -1 +1 @@
1
- function a167_0xf6a1(_0x2007d5,_0x508a1a){_0x2007d5=_0x2007d5-0xc5;const _0x42e227=a167_0x42e2();let _0xf6a16f=_0x42e227[_0x2007d5];return _0xf6a16f;}(function(_0x1a603f,_0x539593){const _0x46677a=a167_0xf6a1,_0x433b6b=_0x1a603f();while(!![]){try{const _0x264984=parseInt(_0x46677a(0xca))/0x1*(parseInt(_0x46677a(0xc5))/0x2)+parseInt(_0x46677a(0xc8))/0x3*(-parseInt(_0x46677a(0xcd))/0x4)+parseInt(_0x46677a(0xcb))/0x5*(-parseInt(_0x46677a(0xc6))/0x6)+parseInt(_0x46677a(0xcf))/0x7*(-parseInt(_0x46677a(0xcc))/0x8)+-parseInt(_0x46677a(0xc9))/0x9+-parseInt(_0x46677a(0xc7))/0xa+parseInt(_0x46677a(0xce))/0xb;if(_0x264984===_0x539593)break;else _0x433b6b['push'](_0x433b6b['shift']());}catch(_0x24a67b){_0x433b6b['push'](_0x433b6b['shift']());}}}(a167_0x42e2,0x260d0));import{createJqFilter}from'@lovrabet/cli-framework';function a167_0x42e2(){const _0x3a25a8=['2356010gJdXyn','9TjplWH','2214639esfHEw','15pSLBJX','6255BmDpJW','1298256bclaXd','1236IfRTAn','9157841vtSQoV','7hJRoGF','10606ZOveal','534kHdymv'];a167_0x42e2=function(){return _0x3a25a8;};return a167_0x42e2();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors);
1
+ (function(_0x26d36c,_0x2c267c){const _0x1c31f2=a171_0x2638,_0x1fcfca=_0x26d36c();while(!![]){try{const _0x1c41f8=-parseInt(_0x1c31f2(0x161))/0x1*(parseInt(_0x1c31f2(0x15f))/0x2)+parseInt(_0x1c31f2(0x163))/0x3+-parseInt(_0x1c31f2(0x164))/0x4+parseInt(_0x1c31f2(0x15e))/0x5*(-parseInt(_0x1c31f2(0x160))/0x6)+parseInt(_0x1c31f2(0x162))/0x7*(-parseInt(_0x1c31f2(0x15d))/0x8)+parseInt(_0x1c31f2(0x166))/0x9*(-parseInt(_0x1c31f2(0x165))/0xa)+parseInt(_0x1c31f2(0x15b))/0xb*(parseInt(_0x1c31f2(0x15c))/0xc);if(_0x1c41f8===_0x2c267c)break;else _0x1fcfca['push'](_0x1fcfca['shift']());}catch(_0x8af8b){_0x1fcfca['push'](_0x1fcfca['shift']());}}}(a171_0x55b5,0x95dcf));function a171_0x55b5(){const _0x39ef16=['135498bCaUSt','9619nfRuMi','10598WMuLDX','2927181xbcGFo','1832924GdCwbK','70XqglWv','1349235FGBTdV','44bZvwcp','4307484pxUANP','408mdPvqj','45MQIjwE','2JlGWQi'];a171_0x55b5=function(){return _0x39ef16;};return a171_0x55b5();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a171_0x2638(_0x3d13d6,_0x10e40a){_0x3d13d6=_0x3d13d6-0x15b;const _0x55b590=a171_0x55b5();let _0x263866=_0x55b590[_0x3d13d6];return _0x263866;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});