@lovrabet/rabetbase-cli 2.1.12-beta.0 → 2.1.12-beta.2

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 (200) 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 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/nudge.js +1 -0
  80. package/lib/commands/issue/report.js +1 -1
  81. package/lib/commands/issue/shared.js +1 -0
  82. package/lib/commands/logs/index.js +1 -1
  83. package/lib/commands/menu/index.js +1 -1
  84. package/lib/commands/menu/shared/compare-table.js +1 -1
  85. package/lib/commands/menu/shared/index.js +1 -1
  86. package/lib/commands/menu/shared/inquirer.js +1 -1
  87. package/lib/commands/menu/shared/local-pages.js +1 -1
  88. package/lib/commands/menu/shared/logic.js +1 -1
  89. package/lib/commands/menu/shared/service.js +1 -1
  90. package/lib/commands/menu/shared/sync-core.js +1 -1
  91. package/lib/commands/menu/shared/update-core.js +1 -1
  92. package/lib/commands/menu/shared/valid-url.js +1 -1
  93. package/lib/commands/menu/sync.js +1 -1
  94. package/lib/commands/menu/update.js +1 -1
  95. package/lib/commands/page/generate-start.js +1 -1
  96. package/lib/commands/page/generate-status.js +1 -1
  97. package/lib/commands/page/index.js +1 -1
  98. package/lib/commands/page/pull.js +1 -1
  99. package/lib/commands/page/push.js +1 -1
  100. package/lib/commands/page/shared.js +1 -1
  101. package/lib/commands/page/standard-page-status.js +1 -1
  102. package/lib/commands/page/sync.js +1 -1
  103. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  104. package/lib/commands/project/create/format-elapsed.js +1 -1
  105. package/lib/commands/project/create/main.js +1 -1
  106. package/lib/commands/project/create/non-interactive.js +1 -1
  107. package/lib/commands/project/create/project-template-path.js +1 -1
  108. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  109. package/lib/commands/project/create/use-format-code.js +1 -1
  110. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  111. package/lib/commands/project/index.js +1 -1
  112. package/lib/commands/project/init.js +1 -1
  113. package/lib/commands/project/upgrade.js +1 -1
  114. package/lib/commands/registry.js +1 -1
  115. package/lib/commands/run/index.js +1 -1
  116. package/lib/commands/schema.js +1 -1
  117. package/lib/commands/skill/index.js +1 -1
  118. package/lib/commands/sql/create.js +1 -1
  119. package/lib/commands/sql/delete.js +1 -1
  120. package/lib/commands/sql/detail.js +1 -1
  121. package/lib/commands/sql/exec.js +1 -1
  122. package/lib/commands/sql/index.js +1 -1
  123. package/lib/commands/sql/list.js +1 -1
  124. package/lib/commands/sql/pull.js +1 -1
  125. package/lib/commands/sql/push.js +1 -1
  126. package/lib/commands/sql/save.js +1 -1
  127. package/lib/commands/sql/shared.js +1 -1
  128. package/lib/commands/sql/status.js +1 -1
  129. package/lib/commands/sql/validate.js +1 -1
  130. package/lib/config/schema.js +1 -1
  131. package/lib/constant/cdn.js +1 -1
  132. package/lib/constant/cli.js +1 -1
  133. package/lib/constant/defaults.js +1 -1
  134. package/lib/constant/domain.js +1 -1
  135. package/lib/constant/env.js +1 -1
  136. package/lib/constant/output.js +1 -1
  137. package/lib/constant/paths.js +1 -1
  138. package/lib/constant/risk.js +1 -1
  139. package/lib/context.js +1 -1
  140. package/lib/core/alias-resolver.js +1 -1
  141. package/lib/core/api-client.js +1 -1
  142. package/lib/core/bff/config.js +1 -1
  143. package/lib/core/bff/file-system.js +1 -1
  144. package/lib/core/bff/hash.js +1 -1
  145. package/lib/core/bff/lock.js +1 -1
  146. package/lib/core/bff/utils.js +1 -1
  147. package/lib/core/db-resolver.js +1 -1
  148. package/lib/core/page/file-system.js +1 -1
  149. package/lib/core/page/hash.js +1 -1
  150. package/lib/core/page/lock.js +1 -1
  151. package/lib/core/sql-sync/config.js +1 -1
  152. package/lib/core/sql-sync/file-system.js +1 -1
  153. package/lib/core/sql-sync/hash.js +1 -1
  154. package/lib/core/sql-sync/lock.js +1 -1
  155. package/lib/core/sql-sync/utils.js +1 -1
  156. package/lib/core/sql-validator.js +1 -1
  157. package/lib/errors.js +1 -1
  158. package/lib/framework/build-all-flags.js +1 -1
  159. package/lib/framework/flags.js +1 -1
  160. package/lib/framework/help.js +1 -1
  161. package/lib/framework/index.js +1 -1
  162. package/lib/framework/output.js +1 -1
  163. package/lib/framework/response.js +1 -1
  164. package/lib/framework/runner-alias.js +1 -1
  165. package/lib/framework/runner.js +1 -1
  166. package/lib/framework/schema-export.js +1 -1
  167. package/lib/framework/types.js +1 -1
  168. package/lib/generated/build-info.js +1 -1
  169. package/lib/help.js +1 -1
  170. package/lib/skills/main.js +1 -1
  171. package/lib/skills/npx-skills-add.js +1 -1
  172. package/lib/telemetry/cli-command-trace.js +1 -1
  173. package/lib/telemetry/cli-help-trace.js +1 -1
  174. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  175. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  176. package/lib/telemetry/send-cli-trace-log.js +1 -1
  177. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  178. package/lib/utils/ai_config.js +1 -1
  179. package/lib/utils/apply-jq-filter.js +1 -1
  180. package/lib/utils/cdn-config.js +1 -1
  181. package/lib/utils/check-sdk-version.js +1 -1
  182. package/lib/utils/cli-version-check.js +1 -1
  183. package/lib/utils/cli-version-policy.js +1 -1
  184. package/lib/utils/config.js +1 -1
  185. package/lib/utils/copy-directory.js +1 -1
  186. package/lib/utils/entity-with-id.js +1 -1
  187. package/lib/utils/file-utils.js +1 -1
  188. package/lib/utils/guides-cdn.js +1 -1
  189. package/lib/utils/http-client.js +1 -1
  190. package/lib/utils/is-non-interactive.js +1 -1
  191. package/lib/utils/logger.js +1 -1
  192. package/lib/utils/params.js +1 -1
  193. package/lib/utils/platform.js +1 -1
  194. package/lib/utils/rules-cdn.js +1 -1
  195. package/lib/utils/sleep.js +1 -1
  196. package/lib/utils/template-replacer.js +1 -1
  197. package/lib/utils/version.js +1 -1
  198. package/lib/utils/with-active-cookie.js +1 -1
  199. package/lib/utils/write-cli-side-channel.js +1 -1
  200. package/package.json +3 -2
@@ -1 +1 @@
1
- (function(_0x4068b,_0x386bc0){const _0x509c9c=a152_0x25f1,_0x2eeec8=_0x4068b();while(!![]){try{const _0x31e533=-parseInt(_0x509c9c(0x173))/0x1*(parseInt(_0x509c9c(0x170))/0x2)+parseInt(_0x509c9c(0x17c))/0x3+parseInt(_0x509c9c(0x178))/0x4+-parseInt(_0x509c9c(0x181))/0x5*(-parseInt(_0x509c9c(0x180))/0x6)+parseInt(_0x509c9c(0x17e))/0x7*(-parseInt(_0x509c9c(0x16f))/0x8)+-parseInt(_0x509c9c(0x182))/0x9*(-parseInt(_0x509c9c(0x172))/0xa)+parseInt(_0x509c9c(0x174))/0xb*(parseInt(_0x509c9c(0x18e))/0xc);if(_0x31e533===_0x386bc0)break;else _0x2eeec8['push'](_0x2eeec8['shift']());}catch(_0x25ad42){_0x2eeec8['push'](_0x2eeec8['shift']());}}}(a152_0x5416,0x80fe7));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0xa800da){const _0x2ac126=a152_0x25f1;if(_0xa800da==='.sql')return'sql';if(_0xa800da===_0x2ac126(0x185))return _0x2ac126(0x18b);return undefined;}async function scanSqlFilesRecursively(_0x1e3c08,_0x1b5ec7){const _0x5bcfc4=a152_0x25f1,_0x2252e9=[];try{const _0x40b5c3=await readdir(_0x1e3c08,{'withFileTypes':!![]});for(const _0x173a61 of _0x40b5c3){const _0x30c276=join(_0x1e3c08,_0x173a61['name']);if(_0x173a61[_0x5bcfc4(0x16c)]()){_0x2252e9[_0x5bcfc4(0x177)](...await scanSqlFilesRecursively(_0x30c276,_0x1b5ec7));continue;}if(!_0x173a61[_0x5bcfc4(0x18d)]())continue;const _0x423f8a=extname(_0x173a61[_0x5bcfc4(0x171)])[_0x5bcfc4(0x184)](),_0x52bdc2=extensionToMode(_0x423f8a);if(!_0x52bdc2)continue;const _0x5a6b43=relative(_0x1b5ec7,_0x30c276)[_0x5bcfc4(0x17d)](/\\/g,'/'),_0x4f4188=_0x5a6b43[_0x5bcfc4(0x16d)]('/')[_0x5bcfc4(0x17a)](Boolean),_0x503b2d=parseSqlPath(_0x4f4188,_0x173a61[_0x5bcfc4(0x171)],_0x423f8a);if(!_0x503b2d)continue;_0x2252e9[_0x5bcfc4(0x177)]({'sqlCode':_0x503b2d[_0x5bcfc4(0x16e)],'sqlName':_0x503b2d[_0x5bcfc4(0x179)],'dbDirectory':_0x4f4188[0x0],'filePath':_0x30c276,'relativePath':_0x5a6b43,'lockKey':_0x503b2d[_0x5bcfc4(0x16e)],'mode':_0x52bdc2});}}catch(_0x1a3cda){if(_0x1a3cda[_0x5bcfc4(0x186)]!==_0x5bcfc4(0x187))throw _0x1a3cda;}return _0x2252e9;}function a152_0x25f1(_0x441b18,_0x34315b){_0x441b18=_0x441b18-0x16c;const _0x541654=a152_0x5416();let _0x25f1fb=_0x541654[_0x441b18];return _0x25f1fb;}export async function scanLocalSqlQueries(_0x289ebe){const _0x1a965c=a152_0x25f1;return scanSqlFilesRecursively(_0x289ebe[_0x1a965c(0x176)],_0x289ebe[_0x1a965c(0x176)]);}export function resolveLocalSqlFilePath(_0x5e3cb8,_0x111826,_0x3b302c){const _0x5549bd=a152_0x25f1,_0x26bb8b=_0x3b302c?.[_0x5549bd(0x183)]||(_0x3b302c?.['sqlName']||_0x3b302c?.[_0x5549bd(0x175)]?buildSqlRelativePath(_0x111826,_0x3b302c?.[_0x5549bd(0x179)],_0x3b302c?.['dbName'],_0x3b302c?.[_0x5549bd(0x17b)]||'sql',_0x3b302c?.['dbId']):buildDefaultSqlFileName(_0x111826,_0x3b302c?.[_0x5549bd(0x17b)]||_0x5549bd(0x18c)));return join(_0x5e3cb8[_0x5549bd(0x176)],_0x26bb8b);}export async function directoryExists(_0x4381af){const _0x5c8775=a152_0x25f1;try{const _0xf13828=await stat(_0x4381af);return _0xf13828[_0x5c8775(0x16c)]();}catch{return![];}}function a152_0x5416(){const _0x1dba19=['length','slice','mybatisXml','sql','isFile','1380gUVnwz','isDirectory','split','sqlCode','2594912VTkKFi','6nhViby','name','10AAutGt','209091iCrTmE','28787XwVBTv','dbName','sqlRootDir','push','1294088rsZoWO','sqlName','filter','mode','1857798uJRhoT','replace','21xGABSb','indexOf','18piGsQC','446305bGvhdE','5554782Orrnmp','path','toLowerCase','.xml','code','ENOENT','test'];a152_0x5416=function(){return _0x1dba19;};return a152_0x5416();}function parseSqlPath(_0x4ab030,_0x169cc7,_0x14dbdd){const _0x41be15=a152_0x25f1,_0x3cd657=_0x169cc7['slice'](0x0,-_0x14dbdd[_0x41be15(0x189)]);if(_0x4ab030[_0x41be15(0x189)]<0x2)return null;const _0x33f39e=_0x3cd657[_0x41be15(0x17f)]('_');if(_0x33f39e<=0x0||_0x33f39e>=_0x3cd657[_0x41be15(0x189)]-0x1)return null;const _0x572fb5=_0x3cd657[_0x41be15(0x18a)](0x0,_0x33f39e);if(!isLikelySqlCode(_0x572fb5))return null;return{'sqlCode':_0x572fb5,'sqlName':_0x3cd657[_0x41be15(0x18a)](_0x33f39e+0x1)};}function isLikelySqlCode(_0x2a8cd2){const _0x5a7545=a152_0x25f1;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x5a7545(0x188)](_0x2a8cd2);}
1
+ (function(_0x15d4e7,_0x582183){const _0x5572cc=a154_0x222b,_0x147c30=_0x15d4e7();while(!![]){try{const _0x27d2f8=parseInt(_0x5572cc(0x15b))/0x1+parseInt(_0x5572cc(0x162))/0x2+-parseInt(_0x5572cc(0x14d))/0x3*(parseInt(_0x5572cc(0x167))/0x4)+-parseInt(_0x5572cc(0x14b))/0x5*(-parseInt(_0x5572cc(0x165))/0x6)+parseInt(_0x5572cc(0x157))/0x7+-parseInt(_0x5572cc(0x169))/0x8*(-parseInt(_0x5572cc(0x153))/0x9)+-parseInt(_0x5572cc(0x163))/0xa*(parseInt(_0x5572cc(0x155))/0xb);if(_0x27d2f8===_0x582183)break;else _0x147c30['push'](_0x147c30['shift']());}catch(_0x1f3334){_0x147c30['push'](_0x147c30['shift']());}}}(a154_0x2f38,0xf2e90));function a154_0x222b(_0x338e0b,_0x23f927){_0x338e0b=_0x338e0b-0x14b;const _0x2f38f3=a154_0x2f38();let _0x222bc0=_0x2f38f3[_0x338e0b];return _0x222bc0;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4058c2){const _0x2fc56a=a154_0x222b;if(_0x4058c2===_0x2fc56a(0x168))return _0x2fc56a(0x15e);if(_0x4058c2==='.xml')return _0x2fc56a(0x14c);return undefined;}async function scanSqlFilesRecursively(_0x2663f6,_0x1a7188){const _0x5b3066=a154_0x222b,_0x223be6=[];try{const _0xe6525a=await readdir(_0x2663f6,{'withFileTypes':!![]});for(const _0x506027 of _0xe6525a){const _0xe38aa6=join(_0x2663f6,_0x506027['name']);if(_0x506027['isDirectory']()){_0x223be6['push'](...await scanSqlFilesRecursively(_0xe38aa6,_0x1a7188));continue;}if(!_0x506027[_0x5b3066(0x16a)]())continue;const _0x54c8cd=extname(_0x506027['name'])['toLowerCase'](),_0x2b761a=extensionToMode(_0x54c8cd);if(!_0x2b761a)continue;const _0x49a5f3=relative(_0x1a7188,_0xe38aa6)[_0x5b3066(0x15a)](/\\/g,'/'),_0x45787e=_0x49a5f3[_0x5b3066(0x14f)]('/')[_0x5b3066(0x166)](Boolean),_0x1cb512=parseSqlPath(_0x45787e,_0x506027[_0x5b3066(0x154)],_0x54c8cd);if(!_0x1cb512)continue;_0x223be6[_0x5b3066(0x15d)]({'sqlCode':_0x1cb512[_0x5b3066(0x160)],'sqlName':_0x1cb512[_0x5b3066(0x156)],'dbDirectory':_0x45787e[0x0],'filePath':_0xe38aa6,'relativePath':_0x49a5f3,'lockKey':_0x1cb512['sqlCode'],'mode':_0x2b761a});}}catch(_0x38b684){if(_0x38b684[_0x5b3066(0x151)]!==_0x5b3066(0x164))throw _0x38b684;}return _0x223be6;}export async function scanLocalSqlQueries(_0x565725){const _0x30573a=a154_0x222b;return scanSqlFilesRecursively(_0x565725[_0x30573a(0x15f)],_0x565725[_0x30573a(0x15f)]);}function a154_0x2f38(){const _0x45ddde=['30041693ggkkjD','sqlName','8382486zBcoTj','dbName','dbId','replace','1945912oKvqMz','path','push','sql','sqlRootDir','sqlCode','test','3260184dUZPEY','10dRMtGB','ENOENT','6ZBxAsM','filter','616oBrFYC','.sql','8DgTOar','isFile','808975VqWlKp','mybatisXml','28230UmcrHk','mode','split','slice','code','length','2158794BevxRm','name'];a154_0x2f38=function(){return _0x45ddde;};return a154_0x2f38();}export function resolveLocalSqlFilePath(_0x5a6d41,_0x4a6666,_0x2a5426){const _0x2107c8=a154_0x222b,_0x4e8a3d=_0x2a5426?.[_0x2107c8(0x15c)]||(_0x2a5426?.[_0x2107c8(0x156)]||_0x2a5426?.[_0x2107c8(0x158)]?buildSqlRelativePath(_0x4a6666,_0x2a5426?.[_0x2107c8(0x156)],_0x2a5426?.[_0x2107c8(0x158)],_0x2a5426?.[_0x2107c8(0x14e)]||_0x2107c8(0x15e),_0x2a5426?.[_0x2107c8(0x159)]):buildDefaultSqlFileName(_0x4a6666,_0x2a5426?.['mode']||_0x2107c8(0x15e)));return join(_0x5a6d41['sqlRootDir'],_0x4e8a3d);}export async function directoryExists(_0x35e6d5){try{const _0x5bdeda=await stat(_0x35e6d5);return _0x5bdeda['isDirectory']();}catch{return![];}}function parseSqlPath(_0xeedbcd,_0x4243e8,_0x2b9e8a){const _0x23e9c7=a154_0x222b,_0x57fa40=_0x4243e8['slice'](0x0,-_0x2b9e8a[_0x23e9c7(0x152)]);if(_0xeedbcd[_0x23e9c7(0x152)]<0x2)return null;const _0x3b30f2=_0x57fa40['indexOf']('_');if(_0x3b30f2<=0x0||_0x3b30f2>=_0x57fa40[_0x23e9c7(0x152)]-0x1)return null;const _0x593413=_0x57fa40[_0x23e9c7(0x150)](0x0,_0x3b30f2);if(!isLikelySqlCode(_0x593413))return null;return{'sqlCode':_0x593413,'sqlName':_0x57fa40[_0x23e9c7(0x150)](_0x3b30f2+0x1)};}function isLikelySqlCode(_0x4d97d1){const _0x1b4091=a154_0x222b;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1b4091(0x161)](_0x4d97d1);}
@@ -1 +1 @@
1
- function a153_0x3adb(_0x11d887,_0x3bd82b){_0x11d887=_0x11d887-0x70;const _0x37bf86=a153_0x37bf();let _0x3adbb1=_0x37bf86[_0x11d887];return _0x3adbb1;}(function(_0x2b35d5,_0x1bd6c3){const _0x1993ba=a153_0x3adb,_0x4357da=_0x2b35d5();while(!![]){try{const _0x4f6f64=parseInt(_0x1993ba(0x72))/0x1+parseInt(_0x1993ba(0x78))/0x2*(-parseInt(_0x1993ba(0x7e))/0x3)+parseInt(_0x1993ba(0x70))/0x4*(parseInt(_0x1993ba(0x73))/0x5)+parseInt(_0x1993ba(0x7a))/0x6*(parseInt(_0x1993ba(0x74))/0x7)+-parseInt(_0x1993ba(0x7c))/0x8*(parseInt(_0x1993ba(0x7d))/0x9)+parseInt(_0x1993ba(0x7b))/0xa+-parseInt(_0x1993ba(0x75))/0xb;if(_0x4f6f64===_0x1bd6c3)break;else _0x4357da['push'](_0x4357da['shift']());}catch(_0x36fb1b){_0x4357da['push'](_0x4357da['shift']());}}}(a153_0x37bf,0x827f9));function a153_0x37bf(){const _0xd752b9=['9872900iVwAZW','4912ONBztH','9666GuBZVT','180REHrDq','23288djuhKB','update','643984BOLTlN','115nbfFEj','4258443cbhCyR','11486332gPJZmY','digest','utf8','4512Hwczyo','createHash','6WYsDli'];a153_0x37bf=function(){return _0xd752b9;};return a153_0x37bf();}import{readFile}from'node:fs/promises';import a153_0x1d427a from'node:crypto';export function computeSqlContentHash(_0x41b255){const _0x3b87d6=a153_0x3adb;return a153_0x1d427a[_0x3b87d6(0x79)]('md5')[_0x3b87d6(0x71)](_0x41b255)[_0x3b87d6(0x76)]('hex');}export async function computeSqlFileHash(_0x4de661){const _0x4b771c=a153_0x3adb,_0x4b462a=await readFile(_0x4de661,_0x4b771c(0x77));return computeSqlContentHash(_0x4b462a);}
1
+ function a155_0x49b6(){const _0x5a0baa=['9187304HZMBEb','2270218PKOPRq','1xzoZmH','utf8','5615erAtgv','hex','createHash','6GFajeX','13340144RkBwtV','2636SqbfZG','md5','278146fRTocg','3604365jHAlaO','12894417MtKhKT','430CGIBiS','update'];a155_0x49b6=function(){return _0x5a0baa;};return a155_0x49b6();}function a155_0x5d0d(_0x1b1c3d,_0x1e5e93){_0x1b1c3d=_0x1b1c3d-0x126;const _0x49b6cd=a155_0x49b6();let _0x5d0d66=_0x49b6cd[_0x1b1c3d];return _0x5d0d66;}(function(_0xb8d12f,_0x6851d0){const _0x594977=a155_0x5d0d,_0x168cc1=_0xb8d12f();while(!![]){try{const _0x4cf069=parseInt(_0x594977(0x133))/0x1*(parseInt(_0x594977(0x132))/0x2)+parseInt(_0x594977(0x12d))/0x3+-parseInt(_0x594977(0x12a))/0x4*(-parseInt(_0x594977(0x135))/0x5)+-parseInt(_0x594977(0x128))/0x6*(parseInt(_0x594977(0x131))/0x7)+parseInt(_0x594977(0x129))/0x8+-parseInt(_0x594977(0x12e))/0x9+parseInt(_0x594977(0x12f))/0xa*(-parseInt(_0x594977(0x12c))/0xb);if(_0x4cf069===_0x6851d0)break;else _0x168cc1['push'](_0x168cc1['shift']());}catch(_0x19d75d){_0x168cc1['push'](_0x168cc1['shift']());}}}(a155_0x49b6,0xde928));import{readFile}from'node:fs/promises';import a155_0x55e5cc from'node:crypto';export function computeSqlContentHash(_0x2d5295){const _0x3f2416=a155_0x5d0d;return a155_0x55e5cc[_0x3f2416(0x127)](_0x3f2416(0x12b))[_0x3f2416(0x130)](_0x2d5295)['digest'](_0x3f2416(0x126));}export async function computeSqlFileHash(_0x1a6585){const _0x30c723=a155_0x5d0d,_0x269508=await readFile(_0x1a6585,_0x30c723(0x134));return computeSqlContentHash(_0x269508);}
@@ -1 +1 @@
1
- (function(_0x217d31,_0x5b64d0){const _0x3ffa23=a154_0x355b,_0x5e67e4=_0x217d31();while(!![]){try{const _0x1efcaf=parseInt(_0x3ffa23(0x19f))/0x1+parseInt(_0x3ffa23(0x192))/0x2*(-parseInt(_0x3ffa23(0x199))/0x3)+-parseInt(_0x3ffa23(0x193))/0x4+parseInt(_0x3ffa23(0x19c))/0x5+-parseInt(_0x3ffa23(0x19b))/0x6+parseInt(_0x3ffa23(0x194))/0x7*(parseInt(_0x3ffa23(0x195))/0x8)+parseInt(_0x3ffa23(0x1a0))/0x9*(parseInt(_0x3ffa23(0x1a6))/0xa);if(_0x1efcaf===_0x5b64d0)break;else _0x5e67e4['push'](_0x5e67e4['shift']());}catch(_0x19336d){_0x5e67e4['push'](_0x5e67e4['shift']());}}}(a154_0x3de0,0xedac5));function a154_0x355b(_0x479ef8,_0x20da52){_0x479ef8=_0x479ef8-0x192;const _0x3de048=a154_0x3de0();let _0x355bf8=_0x3de048[_0x479ef8];return _0x355bf8;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1f8dbe,_0x2869da,_0x52f3fd,_0x389cb8){const _0x30c956=a154_0x355b,_0x10f76c=_0x1f8dbe??createEmptySqlLock();let _0x42e1b5=_0x10f76c['apps'][_0x2869da];if(!_0x42e1b5)return _0x42e1b5={'sqlRoot':_0x52f3fd,'lastSync':'','sqls':{}},_0x10f76c[_0x30c956(0x1a1)][_0x2869da]=_0x42e1b5,{'lockData':_0x10f76c,'appLock':_0x42e1b5};if(!_0x42e1b5[_0x30c956(0x1a2)])_0x42e1b5[_0x30c956(0x1a2)]=_0x52f3fd;else{if(_0x42e1b5[_0x30c956(0x1a2)]!==_0x52f3fd)throw new Error(_0x389cb8+_0x30c956(0x19d)+_0x52f3fd+_0x30c956(0x1a5)+_0x42e1b5[_0x30c956(0x1a2)]+_0x30c956(0x19e)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x42e1b5[_0x30c956(0x196)]&&(_0x42e1b5['sqls']={}),!_0x42e1b5[_0x30c956(0x19a)]&&(_0x42e1b5[_0x30c956(0x19a)]=''),{'lockData':_0x10f76c,'appLock':_0x42e1b5};}export async function readSqlLockFile(_0x53e25c){const _0x30c841=a154_0x355b;try{const _0x166f80=await readFile(_0x53e25c,_0x30c841(0x198));return JSON[_0x30c841(0x1a3)](_0x166f80);}catch(_0x5bd9fe){if(_0x5bd9fe[_0x30c841(0x1a4)]==='ENOENT')return null;throw new Error(_0x30c841(0x197)+String(_0x5bd9fe));}}function a154_0x3de0(){const _0x9cee69=['sqlRoot','parse','code','\x22\x20vs\x20lock\x20\x22','20EnuXKT','stringify','26ZouHxm','5778988LYbKEk','7oyqOgP','15401032euZaBr','sqls','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','utf8','297501eThylw','lastSync','1629300Ztipix','2665230iTglOf',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22.\x20','751160DabThM','3463389KrePZj','apps'];a154_0x3de0=function(){return _0x9cee69;};return a154_0x3de0();}export async function writeSqlLockFile(_0xc8573f,_0xa8bc55){const _0xe93fd1=a154_0x355b;await mkdir(dirname(_0xc8573f),{'recursive':!![]}),await writeFile(_0xc8573f,JSON[_0xe93fd1(0x1a7)](_0xa8bc55,null,0x2),_0xe93fd1(0x198));}
1
+ (function(_0x284a18,_0x24b432){const _0x2f7706=a156_0x36c8,_0x4c83dd=_0x284a18();while(!![]){try{const _0x59de8e=parseInt(_0x2f7706(0xa4))/0x1*(-parseInt(_0x2f7706(0xa3))/0x2)+parseInt(_0x2f7706(0x90))/0x3*(parseInt(_0x2f7706(0xa0))/0x4)+-parseInt(_0x2f7706(0x9c))/0x5*(parseInt(_0x2f7706(0x8e))/0x6)+parseInt(_0x2f7706(0x8d))/0x7+-parseInt(_0x2f7706(0x92))/0x8*(-parseInt(_0x2f7706(0x8f))/0x9)+parseInt(_0x2f7706(0x99))/0xa+-parseInt(_0x2f7706(0xa1))/0xb;if(_0x59de8e===_0x24b432)break;else _0x4c83dd['push'](_0x4c83dd['shift']());}catch(_0x301099){_0x4c83dd['push'](_0x4c83dd['shift']());}}}(a156_0x17e4,0x277f0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a156_0x36c8(_0x3800df,_0x5beca1){_0x3800df=_0x3800df-0x8d;const _0x17e48e=a156_0x17e4();let _0x36c830=_0x17e48e[_0x3800df];return _0x36c830;}function a156_0x17e4(){const _0x1f866a=['apps','sqls','5OgwvKJ','\x22\x20vs\x20lock\x20\x22','parse','sqlRoot','1316bwDuwe','3782680swfzbS','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','242906dksNcd','1xuiYNJ','lastSync','1871520UyZslz','377466McSWRG','45mhfduE','2229dHoubq','stringify','264720vBATjT','utf8','ENOENT','code','\x22.\x20','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','127630shNUmq'];a156_0x17e4=function(){return _0x1f866a;};return a156_0x17e4();}export function ensureSqlLockScope(_0x3e5320,_0x4dc146,_0x2fe9fc,_0x25c61d){const _0x2cb53c=a156_0x36c8,_0x1ae983=_0x3e5320??createEmptySqlLock();let _0x168d83=_0x1ae983[_0x2cb53c(0x9a)][_0x4dc146];if(!_0x168d83)return _0x168d83={'sqlRoot':_0x2fe9fc,'lastSync':'','sqls':{}},_0x1ae983[_0x2cb53c(0x9a)][_0x4dc146]=_0x168d83,{'lockData':_0x1ae983,'appLock':_0x168d83};if(!_0x168d83[_0x2cb53c(0x9f)])_0x168d83[_0x2cb53c(0x9f)]=_0x2fe9fc;else{if(_0x168d83['sqlRoot']!==_0x2fe9fc)throw new Error(_0x25c61d+_0x2cb53c(0x98)+_0x2fe9fc+_0x2cb53c(0x9d)+_0x168d83[_0x2cb53c(0x9f)]+_0x2cb53c(0x96)+_0x2cb53c(0xa2));}return!_0x168d83[_0x2cb53c(0x9b)]&&(_0x168d83['sqls']={}),!_0x168d83[_0x2cb53c(0xa5)]&&(_0x168d83[_0x2cb53c(0xa5)]=''),{'lockData':_0x1ae983,'appLock':_0x168d83};}export async function readSqlLockFile(_0x35e525){const _0x4876db=a156_0x36c8;try{const _0x40f0cf=await readFile(_0x35e525,_0x4876db(0x93));return JSON[_0x4876db(0x9e)](_0x40f0cf);}catch(_0x5cc5a8){if(_0x5cc5a8[_0x4876db(0x95)]===_0x4876db(0x94))return null;throw new Error(_0x4876db(0x97)+String(_0x5cc5a8));}}export async function writeSqlLockFile(_0x3af18d,_0x2cf1a7){const _0x38324a=a156_0x36c8;await mkdir(dirname(_0x3af18d),{'recursive':!![]}),await writeFile(_0x3af18d,JSON[_0x38324a(0x91)](_0x2cf1a7,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x2228f2,_0x4e3572){const _0x5494f6=a156_0x12df,_0x37da13=_0x2228f2();while(!![]){try{const _0x37cb3c=parseInt(_0x5494f6(0x184))/0x1+-parseInt(_0x5494f6(0x181))/0x2*(parseInt(_0x5494f6(0x17f))/0x3)+-parseInt(_0x5494f6(0x187))/0x4*(-parseInt(_0x5494f6(0x17d))/0x5)+-parseInt(_0x5494f6(0x186))/0x6*(parseInt(_0x5494f6(0x18c))/0x7)+parseInt(_0x5494f6(0x17c))/0x8+parseInt(_0x5494f6(0x185))/0x9*(parseInt(_0x5494f6(0x17b))/0xa)+-parseInt(_0x5494f6(0x182))/0xb;if(_0x37cb3c===_0x4e3572)break;else _0x37da13['push'](_0x37da13['shift']());}catch(_0x541b55){_0x37da13['push'](_0x37da13['shift']());}}}(a156_0x54d5,0x36f36));export function detectSqlMode(_0x57c22f){const _0x37c24b=a156_0x12df,_0x167edf=_0x57c22f[_0x37c24b(0x17e)]();if(/^<(select|insert|update|delete)\b/i[_0x37c24b(0x17a)](_0x167edf))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x2456c2){const _0x52ac39=a156_0x12df;return _0x2456c2===_0x52ac39(0x18a)?_0x52ac39(0x183):'.sql';}function a156_0x54d5(){const _0x2d87ae=['mybatisXml','unknown-db','7wFJjcQ','trim','test','25940mOUuRu','269112tgPaiJ','346455mJDJnP','trimStart','3693IGRCgx','replace','566XVUxCc','924726kKuDdk','.xml','189888MELCRe','387wxEiyl','144042GtcETj','20gsVsUV','unknown-sql','db-'];a156_0x54d5=function(){return _0x2d87ae;};return a156_0x54d5();}export function buildDefaultSqlFileName(_0x52b874,_0x5568ac){return''+_0x52b874+getSqlFileExtension(_0x5568ac);}export function sanitizeSqlPathSegment(_0x14bfab,_0x396a81){const _0x3d3f45=a156_0x12df,_0x372ec8=String(_0x14bfab??'')[_0x3d3f45(0x18d)](),_0x3620b6=_0x372ec8['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x3d3f45(0x180)](/\s+/g,'-')[_0x3d3f45(0x180)](/-+/g,'-')['replace'](/^\.+/,'')[_0x3d3f45(0x180)](/\.+$/,'')[_0x3d3f45(0x180)](/^-+/,'')[_0x3d3f45(0x180)](/-+$/,'');return _0x3620b6||_0x396a81;}function a156_0x12df(_0xfbac2c,_0x6a62d1){_0xfbac2c=_0xfbac2c-0x17a;const _0x54d5b8=a156_0x54d5();let _0x12df46=_0x54d5b8[_0xfbac2c];return _0x12df46;}export function buildDbDirectoryName(_0x173831,_0x2a7ca3){const _0x296624=a156_0x12df;return sanitizeSqlPathSegment(_0x173831,_0x2a7ca3!=null?_0x296624(0x189)+_0x2a7ca3:_0x296624(0x18b));}export function buildSqlRelativePath(_0x41c9b6,_0x51129a,_0x5c2acf,_0x23667c,_0x2f9172){const _0x570dd5=a156_0x12df,_0x5228b6=buildDbDirectoryName(_0x5c2acf,_0x2f9172),_0x327dae=sanitizeSqlPathSegment(_0x41c9b6,_0x570dd5(0x188)),_0x2a5f73=sanitizeSqlPathSegment(_0x51129a,_0x327dae);return _0x5228b6+'/'+_0x327dae+'_'+_0x2a5f73+getSqlFileExtension(_0x23667c);}
1
+ (function(_0x548598,_0x11af10){const _0x5f3cd5=a158_0x5d13,_0x3d321e=_0x548598();while(!![]){try{const _0x475867=parseInt(_0x5f3cd5(0xf3))/0x1+-parseInt(_0x5f3cd5(0xef))/0x2*(-parseInt(_0x5f3cd5(0xfa))/0x3)+-parseInt(_0x5f3cd5(0xf7))/0x4*(-parseInt(_0x5f3cd5(0xe9))/0x5)+parseInt(_0x5f3cd5(0xee))/0x6*(parseInt(_0x5f3cd5(0xfb))/0x7)+parseInt(_0x5f3cd5(0xea))/0x8*(parseInt(_0x5f3cd5(0xf9))/0x9)+parseInt(_0x5f3cd5(0xf6))/0xa*(parseInt(_0x5f3cd5(0xf5))/0xb)+-parseInt(_0x5f3cd5(0xf4))/0xc;if(_0x475867===_0x11af10)break;else _0x3d321e['push'](_0x3d321e['shift']());}catch(_0x5b40c5){_0x3d321e['push'](_0x3d321e['shift']());}}}(a158_0xa7cf,0x777e7));export function detectSqlMode(_0x42b009){const _0x3c6546=a158_0x5d13,_0x52e633=_0x42b009[_0x3c6546(0xed)]();if(/^<(select|insert|update|delete)\b/i[_0x3c6546(0xeb)](_0x52e633))return'mybatisXml';return _0x3c6546(0xf0);}export function getSqlFileExtension(_0x1de64f){const _0x3f5cd7=a158_0x5d13;return _0x1de64f===_0x3f5cd7(0xf8)?'.xml':_0x3f5cd7(0xf2);}export function buildDefaultSqlFileName(_0x4b31b6,_0x11f2d6){return''+_0x4b31b6+getSqlFileExtension(_0x11f2d6);}export function sanitizeSqlPathSegment(_0x38ad09,_0x539e18){const _0x23f245=a158_0x5d13,_0x1a2dea=String(_0x38ad09??'')['trim'](),_0x87b31b=_0x1a2dea[_0x23f245(0xe8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x23f245(0xe8)](/-+/g,'-')[_0x23f245(0xe8)](/^\.+/,'')[_0x23f245(0xe8)](/\.+$/,'')[_0x23f245(0xe8)](/^-+/,'')['replace'](/-+$/,'');return _0x87b31b||_0x539e18;}export function buildDbDirectoryName(_0x36f430,_0x1d4318){const _0x5cb2c6=a158_0x5d13;return sanitizeSqlPathSegment(_0x36f430,_0x1d4318!=null?_0x5cb2c6(0xf1)+_0x1d4318:'unknown-db');}function a158_0x5d13(_0x5d68cf,_0x49f35f){_0x5d68cf=_0x5d68cf-0xe8;const _0xa7cf0d=a158_0xa7cf();let _0x5d1370=_0xa7cf0d[_0x5d68cf];return _0x5d1370;}export function buildSqlRelativePath(_0x10de7b,_0xb28ab5,_0x4d755d,_0x1f5270,_0x52adba){const _0x3308ff=a158_0x5d13,_0x56e6e4=buildDbDirectoryName(_0x4d755d,_0x52adba),_0x4fd77e=sanitizeSqlPathSegment(_0x10de7b,_0x3308ff(0xec)),_0x2f9208=sanitizeSqlPathSegment(_0xb28ab5,_0x4fd77e);return _0x56e6e4+'/'+_0x4fd77e+'_'+_0x2f9208+getSqlFileExtension(_0x1f5270);}function a158_0xa7cf(){const _0x4f65a5=['13644tmlqwa','mybatisXml','36RRfJWz','183rFcUam','15323mZFmGA','replace','815JLnIWy','1069936xApEfx','test','unknown-sql','trimStart','582UlpPMA','29098sizssK','sql','db-','.sql','418376QWxIXR','27350184zCOZzV','110KROyOZ','159470MHwcWy'];a158_0xa7cf=function(){return _0x4f65a5;};return a158_0xa7cf();}
@@ -1 +1 @@
1
- (function(_0x2e9d16,_0x4b7add){const _0x40dad4=a157_0x4ee9,_0x9d0181=_0x2e9d16();while(!![]){try{const _0x24cf60=-parseInt(_0x40dad4(0x1e0))/0x1+-parseInt(_0x40dad4(0x1cb))/0x2+parseInt(_0x40dad4(0x1ce))/0x3+-parseInt(_0x40dad4(0x1e5))/0x4+-parseInt(_0x40dad4(0x1cf))/0x5+-parseInt(_0x40dad4(0x1ca))/0x6*(parseInt(_0x40dad4(0x1c4))/0x7)+-parseInt(_0x40dad4(0x1c5))/0x8*(-parseInt(_0x40dad4(0x1dc))/0x9);if(_0x24cf60===_0x4b7add)break;else _0x9d0181['push'](_0x9d0181['shift']());}catch(_0x45ffa7){_0x9d0181['push'](_0x9d0181['shift']());}}}(a157_0x2dcf,0xeaa5d));export function detectSqlType(_0x3a3541){const _0x5b6950=a157_0x4ee9;if(!_0x3a3541?.[_0x5b6950(0x1c9)]())return{'type':_0x5b6950(0x1e8),'isSelectOnly':![],'isDangerous':![],'reason':_0x5b6950(0x1d9)};const _0x3308f5=_0x3a3541[_0x5b6950(0x1df)](/#\{[^}]*\}/g,'?')[_0x5b6950(0x1df)](/\$\{[^}]*\}/g,'?')[_0x5b6950(0x1df)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x5b6950(0x1c9)](),_0x3aa10b=_0x3308f5[_0x5b6950(0x1e3)]('\x0a');let _0x56ce3d='';for(const _0x12a317 of _0x3aa10b){const _0x57343e=_0x12a317[_0x5b6950(0x1c9)]();if(!_0x57343e||_0x57343e['startsWith']('--')||_0x57343e['startsWith']('/*'))continue;_0x56ce3d=_0x57343e;break;}const _0x40de96=_0x56ce3d[_0x5b6950(0x1d6)]();if(_0x40de96[_0x5b6950(0x1d2)](_0x5b6950(0x1c6))||_0x40de96[_0x5b6950(0x1d2)](_0x5b6950(0x1d1))){const _0x580865=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x5b6950(0x1c8)](_0x3308f5);return{'type':'SELECT','isSelectOnly':!_0x580865,'isDangerous':_0x580865,'reason':_0x580865?_0x5b6950(0x1e2):undefined};}if(_0x40de96[_0x5b6950(0x1d2)](_0x5b6950(0x1d7)))return{'type':_0x5b6950(0x1d7),'isSelectOnly':![],'isDangerous':![]};if(_0x40de96[_0x5b6950(0x1d2)]('UPDATE'))return{'type':_0x5b6950(0x1e1),'isSelectOnly':![],'isDangerous':![]};if(_0x40de96[_0x5b6950(0x1d2)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x5b6950(0x1de)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x40de96))return{'type':_0x5b6950(0x1d5),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5b6950(0x1d0)};return{'type':_0x5b6950(0x1e8),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x2f46dd){const _0x4ac50b=a157_0x4ee9,_0xd2ec94=_0x2f46dd[_0x4ac50b(0x1df)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x4ac50b(0x1df)](/\/\*[\s\S]*?\*\//g,''),_0x1ea00a=[],_0x20f0e1=_0xd2ec94[_0x4ac50b(0x1cd)](/FROM\s+([^\s,)(]+)/i);if(_0x20f0e1?.[0x1])_0x1ea00a['push'](_0x20f0e1[0x1][_0x4ac50b(0x1df)](/[`"]/g,''));for(const _0x27e9a4 of _0xd2ec94[_0x4ac50b(0x1da)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x38b340=_0x27e9a4[0x1]?.[_0x4ac50b(0x1df)](/[`"]/g,'');if(_0x38b340&&!_0x1ea00a[_0x4ac50b(0x1dd)](_0x38b340))_0x1ea00a[_0x4ac50b(0x1db)](_0x38b340);}const _0x3ad581=_0xd2ec94[_0x4ac50b(0x1cd)](/INTO\s+([^\s(]+)/i);if(_0x3ad581?.[0x1]){const _0x10002b=_0x3ad581[0x1]['replace'](/[`"]/g,'');if(!_0x1ea00a['includes'](_0x10002b))_0x1ea00a['push'](_0x10002b);}const _0x4fe094=_0xd2ec94['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4fe094?.[0x1]){const _0x2cc8ff=_0x4fe094[0x1][_0x4ac50b(0x1df)](/[`"]/g,'');if(!_0x1ea00a[_0x4ac50b(0x1dd)](_0x2cc8ff))_0x1ea00a[_0x4ac50b(0x1db)](_0x2cc8ff);}return _0x1ea00a;}function extractParameters(_0x2d60b2){const _0x599a5e=a157_0x4ee9,_0x354c81=new Set();for(const _0x345b0b of _0x2d60b2[_0x599a5e(0x1da)](/#\{(\w+)\}/g))if(_0x345b0b[0x1])_0x354c81[_0x599a5e(0x1d4)](_0x345b0b[0x1]);for(const _0x3ff988 of _0x2d60b2[_0x599a5e(0x1da)](/\$\{(\w+)\}/g))if(_0x3ff988[0x1])_0x354c81[_0x599a5e(0x1d4)](_0x3ff988[0x1]);return Array[_0x599a5e(0x1c7)](_0x354c81);}function a157_0x4ee9(_0x5bbcc1,_0x44d061){_0x5bbcc1=_0x5bbcc1-0x1c4;const _0x2dcf61=a157_0x2dcf();let _0x4ee999=_0x2dcf61[_0x5bbcc1];return _0x4ee999;}export function validateSql(_0x274e15){const _0x26bb0d=a157_0x4ee9,_0x15376f=detectSqlType(_0x274e15),_0x244ee1=extractTables(_0x274e15),_0x19a35c=extractParameters(_0x274e15);if(_0x15376f[_0x26bb0d(0x1e4)])return{'valid':![],'sqlType':_0x15376f,'tables':_0x244ee1,'parameters':_0x19a35c,'message':_0x15376f['reason']||_0x15376f[_0x26bb0d(0x1d8)]+_0x26bb0d(0x1e7)};if(_0x15376f[_0x26bb0d(0x1d8)]===_0x26bb0d(0x1e8))return{'valid':![],'sqlType':_0x15376f,'tables':_0x244ee1,'parameters':_0x19a35c,'message':_0x26bb0d(0x1e6)};return{'valid':!![],'sqlType':_0x15376f,'tables':_0x244ee1,'parameters':_0x19a35c,'message':_0x15376f[_0x26bb0d(0x1d8)]+_0x26bb0d(0x1cc)+(_0x244ee1['length']?_0x244ee1[_0x26bb0d(0x1d3)](',\x20'):'unknown\x20table(s)')+(_0x19a35c['length']?'\x20with\x20parameters:\x20'+_0x19a35c[_0x26bb0d(0x1d3)](',\x20'):'')};}function a157_0x2dcf(){const _0x39c621=['1244110cKzjVP','UPDATE','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','split','isDangerous','4620768WnQKus','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','UNKNOWN','5747vheAxQ','8QNXFFx','SELECT','from','test','trim','10146kyHjGr','2168386IxAhUx','\x20query\x20targeting\x20','match','506763wvLnPi','5657250xUmMvc','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','WITH','startsWith','join','add','DDL','toUpperCase','INSERT','type','SQL\x20content\x20is\x20empty','matchAll','push','61159068lcZUWJ','includes','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','replace'];a157_0x2dcf=function(){return _0x39c621;};return a157_0x2dcf();}
1
+ (function(_0xd34cd6,_0x327e85){const _0x27114b=a159_0x2020,_0x416b08=_0xd34cd6();while(!![]){try{const _0x4ba197=-parseInt(_0x27114b(0x7f))/0x1*(-parseInt(_0x27114b(0x90))/0x2)+parseInt(_0x27114b(0x8d))/0x3*(-parseInt(_0x27114b(0x73))/0x4)+parseInt(_0x27114b(0x85))/0x5*(parseInt(_0x27114b(0x80))/0x6)+-parseInt(_0x27114b(0x79))/0x7*(-parseInt(_0x27114b(0x86))/0x8)+-parseInt(_0x27114b(0x6e))/0x9+-parseInt(_0x27114b(0x8b))/0xa+-parseInt(_0x27114b(0x8f))/0xb*(-parseInt(_0x27114b(0x78))/0xc);if(_0x4ba197===_0x327e85)break;else _0x416b08['push'](_0x416b08['shift']());}catch(_0x19c5cf){_0x416b08['push'](_0x416b08['shift']());}}}(a159_0x277c,0x4305c));export function detectSqlType(_0x418722){const _0x353ae5=a159_0x2020;if(!_0x418722?.[_0x353ae5(0x93)]())return{'type':_0x353ae5(0x84),'isSelectOnly':![],'isDangerous':![],'reason':_0x353ae5(0x7c)};const _0x41d07e=_0x418722[_0x353ae5(0x8a)](/#\{[^}]*\}/g,'?')[_0x353ae5(0x8a)](/\$\{[^}]*\}/g,'?')[_0x353ae5(0x8a)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x353ae5(0x8a)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x667af6=_0x41d07e[_0x353ae5(0x81)]('\x0a');let _0x3136f1='';for(const _0x41d2d0 of _0x667af6){const _0x5458f6=_0x41d2d0['trim']();if(!_0x5458f6||_0x5458f6[_0x353ae5(0x8e)]('--')||_0x5458f6['startsWith']('/*'))continue;_0x3136f1=_0x5458f6;break;}const _0x2dccc5=_0x3136f1['toUpperCase']();if(_0x2dccc5[_0x353ae5(0x8e)]('SELECT')||_0x2dccc5[_0x353ae5(0x8e)]('WITH')){const _0x4e160e=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x41d07e);return{'type':_0x353ae5(0x91),'isSelectOnly':!_0x4e160e,'isDangerous':_0x4e160e,'reason':_0x4e160e?_0x353ae5(0x74):undefined};}if(_0x2dccc5[_0x353ae5(0x8e)](_0x353ae5(0x76)))return{'type':_0x353ae5(0x76),'isSelectOnly':![],'isDangerous':![]};if(_0x2dccc5[_0x353ae5(0x8e)]('UPDATE'))return{'type':_0x353ae5(0x88),'isSelectOnly':![],'isDangerous':![]};if(_0x2dccc5['startsWith']('DELETE'))return{'type':_0x353ae5(0x71),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x353ae5(0x75)](_0x2dccc5))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x353ae5(0x6f)};return{'type':_0x353ae5(0x84),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x42d8dc){const _0xe5fe27=a159_0x2020,_0xbdee89=_0x42d8dc['replace'](/#\{[^}]*\}/g,'?')[_0xe5fe27(0x8a)](/\$\{[^}]*\}/g,'?')[_0xe5fe27(0x8a)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x533ca9=[],_0x50f64d=_0xbdee89[_0xe5fe27(0x83)](/FROM\s+([^\s,)(]+)/i);if(_0x50f64d?.[0x1])_0x533ca9[_0xe5fe27(0x8c)](_0x50f64d[0x1][_0xe5fe27(0x8a)](/[`"]/g,''));for(const _0x56f34e of _0xbdee89['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2c522b=_0x56f34e[0x1]?.[_0xe5fe27(0x8a)](/[`"]/g,'');if(_0x2c522b&&!_0x533ca9[_0xe5fe27(0x7e)](_0x2c522b))_0x533ca9[_0xe5fe27(0x8c)](_0x2c522b);}const _0x3913ee=_0xbdee89[_0xe5fe27(0x83)](/INTO\s+([^\s(]+)/i);if(_0x3913ee?.[0x1]){const _0x577810=_0x3913ee[0x1]['replace'](/[`"]/g,'');if(!_0x533ca9[_0xe5fe27(0x7e)](_0x577810))_0x533ca9[_0xe5fe27(0x8c)](_0x577810);}const _0x1725bc=_0xbdee89[_0xe5fe27(0x83)](/UPDATE\s+([^\s,)(]+)/i);if(_0x1725bc?.[0x1]){const _0x3dd94a=_0x1725bc[0x1]['replace'](/[`"]/g,'');if(!_0x533ca9[_0xe5fe27(0x7e)](_0x3dd94a))_0x533ca9[_0xe5fe27(0x8c)](_0x3dd94a);}return _0x533ca9;}function a159_0x2020(_0x4b02e3,_0x429d11){_0x4b02e3=_0x4b02e3-0x6e;const _0x277c77=a159_0x277c();let _0x2020f5=_0x277c77[_0x4b02e3];return _0x2020f5;}function extractParameters(_0x51671f){const _0x4fac71=a159_0x2020,_0x37b7d4=new Set();for(const _0x53baab of _0x51671f[_0x4fac71(0x77)](/#\{(\w+)\}/g))if(_0x53baab[0x1])_0x37b7d4[_0x4fac71(0x7a)](_0x53baab[0x1]);for(const _0x3f1b42 of _0x51671f[_0x4fac71(0x77)](/\$\{(\w+)\}/g))if(_0x3f1b42[0x1])_0x37b7d4[_0x4fac71(0x7a)](_0x3f1b42[0x1]);return Array[_0x4fac71(0x89)](_0x37b7d4);}export function validateSql(_0x5cb4f5){const _0x473313=a159_0x2020,_0x80688=detectSqlType(_0x5cb4f5),_0x9b6c04=extractTables(_0x5cb4f5),_0x234c1a=extractParameters(_0x5cb4f5);if(_0x80688[_0x473313(0x7b)])return{'valid':![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x80688['reason']||_0x80688[_0x473313(0x7d)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x80688[_0x473313(0x7d)]==='UNKNOWN')return{'valid':![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x473313(0x72)};return{'valid':!![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x80688[_0x473313(0x7d)]+_0x473313(0x82)+(_0x9b6c04[_0x473313(0x70)]?_0x9b6c04[_0x473313(0x92)](',\x20'):'unknown\x20table(s)')+(_0x234c1a[_0x473313(0x70)]?_0x473313(0x87)+_0x234c1a[_0x473313(0x92)](',\x20'):'')};}function a159_0x277c(){const _0x23be94=['8KDQdxs','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','test','INSERT','matchAll','235044DmsFuP','707oteyAN','add','isDangerous','SQL\x20content\x20is\x20empty','type','includes','43SriENd','336yWyFNA','split','\x20query\x20targeting\x20','match','UNKNOWN','34160MHUaMH','34328JjszGl','\x20with\x20parameters:\x20','UPDATE','from','replace','3819520ILWeuT','push','346110rnybSr','startsWith','88jMDJsq','1408qYAfyH','SELECT','join','trim','1041615KolAlq','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','length','DELETE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'];a159_0x277c=function(){return _0x23be94;};return a159_0x277c();}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a158_0xcddf54=a158_0x371f;function a158_0x371f(_0x52d18d,_0x5551c8){_0x52d18d=_0x52d18d-0x1aa;const _0xb95093=a158_0xb950();let _0x371f4a=_0xb95093[_0x52d18d];return _0x371f4a;}(function(_0x363c98,_0x5f1c6e){const _0x2cabc1=a158_0x371f,_0xab1a00=_0x363c98();while(!![]){try{const _0x3e15c8=-parseInt(_0x2cabc1(0x1ba))/0x1+-parseInt(_0x2cabc1(0x1b4))/0x2*(parseInt(_0x2cabc1(0x1ab))/0x3)+-parseInt(_0x2cabc1(0x1ac))/0x4*(parseInt(_0x2cabc1(0x1ad))/0x5)+parseInt(_0x2cabc1(0x1b2))/0x6+-parseInt(_0x2cabc1(0x1b9))/0x7*(-parseInt(_0x2cabc1(0x1b7))/0x8)+parseInt(_0x2cabc1(0x1b0))/0x9+-parseInt(_0x2cabc1(0x1b8))/0xa*(-parseInt(_0x2cabc1(0x1b1))/0xb);if(_0x3e15c8===_0x5f1c6e)break;else _0xab1a00['push'](_0xab1a00['shift']());}catch(_0x41be5e){_0xab1a00['push'](_0xab1a00['shift']());}}}(a158_0xb950,0x65053));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':a158_0xcddf54(0x1b5)+CLI_BIN_NAME+a158_0xcddf54(0x1b3),'configMissingHint':[a158_0xcddf54(0x1aa)+CLI_BIN_NAME+a158_0xcddf54(0x1af),'Tip:\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a158_0xcddf54(0x1ae)](a158_0xcddf54(0x1b6)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});function a158_0xb950(){const _0xd269ec=['join','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','6566076WtOqkK','33tpUCpv','4862790KbYkWk','\x20auth`\x20to\x20login\x20first.','28fXAkHs','Run\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','8atFQxs','721370HJsoMK','1772071WAQfMy','780191CsLufs','Set\x20appcode\x20via\x20`','140181MVwPnj','916NBuuvg','3525omOQJH'];a158_0xb950=function(){return _0xd269ec;};return a158_0xb950();}
1
+ const a160_0x5baa85=a160_0x34ec;function a160_0x34ec(_0x3ba42d,_0x56208e){_0x3ba42d=_0x3ba42d-0x1e4;const _0x590b42=a160_0x590b();let _0x34ec95=_0x590b42[_0x3ba42d];return _0x34ec95;}(function(_0x5c822a,_0x9f1d6e){const _0x4463e2=a160_0x34ec,_0x131ec8=_0x5c822a();while(!![]){try{const _0x22f3e7=-parseInt(_0x4463e2(0x1e9))/0x1*(-parseInt(_0x4463e2(0x1e4))/0x2)+parseInt(_0x4463e2(0x1ee))/0x3*(-parseInt(_0x4463e2(0x1e6))/0x4)+-parseInt(_0x4463e2(0x1ef))/0x5+parseInt(_0x4463e2(0x1e5))/0x6+parseInt(_0x4463e2(0x1f0))/0x7+parseInt(_0x4463e2(0x1f1))/0x8+-parseInt(_0x4463e2(0x1eb))/0x9;if(_0x22f3e7===_0x9f1d6e)break;else _0x131ec8['push'](_0x131ec8['shift']());}catch(_0x5dfd46){_0x131ec8['push'](_0x131ec8['shift']());}}}(a160_0x590b,0xd050f));function a160_0x590b(){const _0x4a5594=['16RyezSL','4807398EWjbhs','1400248iyrgxS','join','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','102139aiSnJh','Set\x20appcode\x20via\x20`','946008MfyYab','\x20auth`\x20to\x20login\x20first.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','9dmRYEs','6376800clkfWJ','5666227ZZmpfN','6848920zYsDAt','Tip:\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20'];a160_0x590b=function(){return _0x4a5594;};return a160_0x590b();}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':'Run\x20`'+CLI_BIN_NAME+a160_0x5baa85(0x1ec),'configMissingHint':[a160_0x5baa85(0x1ea)+CLI_BIN_NAME+a160_0x5baa85(0x1ed),a160_0x5baa85(0x1f2)+CLI_BIN_NAME+a160_0x5baa85(0x1e8)][a160_0x5baa85(0x1e7)](a160_0x5baa85(0x1f3)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0x2dab32,_0x97f3c8){var _0x33a679=a159_0x2835,_0x2b864b=_0x2dab32();while(!![]){try{var _0x2de3e1=-parseInt(_0x33a679(0x1ec))/0x1+-parseInt(_0x33a679(0x1f1))/0x2+parseInt(_0x33a679(0x1ef))/0x3+parseInt(_0x33a679(0x1eb))/0x4*(parseInt(_0x33a679(0x1f2))/0x5)+parseInt(_0x33a679(0x1ed))/0x6*(-parseInt(_0x33a679(0x1f3))/0x7)+parseInt(_0x33a679(0x1ee))/0x8+parseInt(_0x33a679(0x1f0))/0x9;if(_0x2de3e1===_0x97f3c8)break;else _0x2b864b['push'](_0x2b864b['shift']());}catch(_0x41f75c){_0x2b864b['push'](_0x2b864b['shift']());}}}(a159_0x2c88,0x9a6c3));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a159_0x17730c}from'@lovrabet/cli-framework';function a159_0x2c88(){var _0x342a55=['908210cKtMOt','550205SfiBRZ','14xuiTVt','4DEgfuw','958447YkfaOX','1276350bKZYoU','6440544gSgacI','3035895XTpwzO','4890987Sfgffu'];a159_0x2c88=function(){return _0x342a55;};return a159_0x2c88();}function a159_0x2835(_0xedd965,_0x364353){_0xedd965=_0xedd965-0x1eb;var _0x2c8842=a159_0x2c88();var _0x2835ba=_0x2c8842[_0xedd965];return _0x2835ba;}export function buildAllFlags(_0x13a8dd){return a159_0x17730c(_0x13a8dd,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x939189,_0x2da54a){var _0x4b1acb=a161_0x11ca,_0x5e5947=_0x939189();while(!![]){try{var _0x459799=parseInt(_0x4b1acb(0x1a8))/0x1+parseInt(_0x4b1acb(0x1a9))/0x2+-parseInt(_0x4b1acb(0x1ab))/0x3*(-parseInt(_0x4b1acb(0x1af))/0x4)+-parseInt(_0x4b1acb(0x1a7))/0x5*(-parseInt(_0x4b1acb(0x1aa))/0x6)+parseInt(_0x4b1acb(0x1ae))/0x7+parseInt(_0x4b1acb(0x1ac))/0x8*(parseInt(_0x4b1acb(0x1b0))/0x9)+-parseInt(_0x4b1acb(0x1ad))/0xa;if(_0x459799===_0x2da54a)break;else _0x5e5947['push'](_0x5e5947['shift']());}catch(_0x448e13){_0x5e5947['push'](_0x5e5947['shift']());}}}(a161_0x4af1,0x5cb8a));function a161_0x4af1(){var _0x2d0f7c=['365zVbjfE','137429ALxVgo','1016314TNJZNS','59454dVVaAn','77829pFAbpK','1801904RAqAqK','20103570cOzeSu','4663729pmIgLD','20YjVhDT','9VhQRym'];a161_0x4af1=function(){return _0x2d0f7c;};return a161_0x4af1();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a161_0x11ca(_0x2ede95,_0x3fb262){_0x2ede95=_0x2ede95-0x1a7;var _0x4af130=a161_0x4af1();var _0x11caa2=_0x4af130[_0x2ede95];return _0x11caa2;}import{buildAllFlags as a161_0x5e963}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3a02ca){return a161_0x5e963(_0x3a02ca,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a160_0x4371a4=a160_0x5cf3;(function(_0x2e2ef1,_0x32b9fd){const _0x5e122d=a160_0x5cf3,_0x2476ee=_0x2e2ef1();while(!![]){try{const _0xa30662=parseInt(_0x5e122d(0xa0))/0x1*(-parseInt(_0x5e122d(0x9c))/0x2)+parseInt(_0x5e122d(0x9b))/0x3*(parseInt(_0x5e122d(0xa3))/0x4)+-parseInt(_0x5e122d(0xa1))/0x5+parseInt(_0x5e122d(0x9f))/0x6+parseInt(_0x5e122d(0xa2))/0x7+parseInt(_0x5e122d(0x9d))/0x8+parseInt(_0x5e122d(0x9a))/0x9*(-parseInt(_0x5e122d(0xa4))/0xa);if(_0xa30662===_0x32b9fd)break;else _0x2476ee['push'](_0x2476ee['shift']());}catch(_0x6b1a83){_0x2476ee['push'](_0x2476ee['shift']());}}}(a160_0x335d,0xd3b65));function a160_0x5cf3(_0x10f37b,_0x50fec5){_0x10f37b=_0x10f37b-0x9a;const _0x335d34=a160_0x335d();let _0x5cf3f5=_0x335d34[_0x10f37b];return _0x5cf3f5;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a160_0x4371a4(0x9e)];export const validateFlags=helpers['validateFlags'];function a160_0x335d(){const _0xd3916f=['25722612tYkpJQ','33nfevJh','4PdCctS','9033256Youxlc','parseFlags','9156120yEZGmt','332814mLzJYo','1150070PEGgkY','7946519EznNLb','301996VinShz','10dHRqXN'];a160_0x335d=function(){return _0xd3916f;};return a160_0x335d();}
1
+ const a162_0x5be055=a162_0x5403;(function(_0x533737,_0x16498f){const _0xcc0fca=a162_0x5403,_0x1d22fd=_0x533737();while(!![]){try{const _0x14c55a=parseInt(_0xcc0fca(0x196))/0x1*(-parseInt(_0xcc0fca(0x19d))/0x2)+-parseInt(_0xcc0fca(0x19f))/0x3*(-parseInt(_0xcc0fca(0x19e))/0x4)+-parseInt(_0xcc0fca(0x199))/0x5+-parseInt(_0xcc0fca(0x1a0))/0x6*(-parseInt(_0xcc0fca(0x198))/0x7)+-parseInt(_0xcc0fca(0x1a2))/0x8*(parseInt(_0xcc0fca(0x1a1))/0x9)+parseInt(_0xcc0fca(0x19a))/0xa+-parseInt(_0xcc0fca(0x197))/0xb*(parseInt(_0xcc0fca(0x19b))/0xc);if(_0x14c55a===_0x16498f)break;else _0x1d22fd['push'](_0x1d22fd['shift']());}catch(_0x93b9e1){_0x1d22fd['push'](_0x1d22fd['shift']());}}}(a162_0x507c,0x9b90a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a162_0x5403(_0xbcd885,_0x15fa90){_0xbcd885=_0xbcd885-0x196;const _0x507cf3=a162_0x507c();let _0x5403df=_0x507cf3[_0xbcd885];return _0x5403df;}function a162_0x507c(){const _0x231641=['3492295URwUvO','9299290kYjLRt','12ATzXUI','validateFlags','50deyVoR','88XQbTBu','160764GKHhAi','66anjZWU','909jSlqGv','54176WCkuES','19867KWRkQh','496397LvHheF','287994ewmMSL'];a162_0x507c=function(){return _0x231641;};return a162_0x507c();}export const validateFlags=helpers[a162_0x5be055(0x19c)];
@@ -1 +1 @@
1
- const a161_0x48290a=a161_0x2b2b;(function(_0x2081f1,_0x25ad4b){const _0x4defda=a161_0x2b2b,_0xfce8e8=_0x2081f1();while(!![]){try{const _0x58ea08=-parseInt(_0x4defda(0xf2))/0x1+-parseInt(_0x4defda(0xea))/0x2+parseInt(_0x4defda(0xf0))/0x3+-parseInt(_0x4defda(0xee))/0x4+-parseInt(_0x4defda(0xe6))/0x5+parseInt(_0x4defda(0xed))/0x6*(-parseInt(_0x4defda(0xf1))/0x7)+-parseInt(_0x4defda(0xe8))/0x8*(-parseInt(_0x4defda(0xec))/0x9);if(_0x58ea08===_0x25ad4b)break;else _0xfce8e8['push'](_0xfce8e8['shift']());}catch(_0x428b37){_0xfce8e8['push'](_0xfce8e8['shift']());}}}(a161_0x449e,0xaf092));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a161_0x2b2b(_0x376d0e,_0x27b134){_0x376d0e=_0x376d0e-0xe6;const _0x449e63=a161_0x449e();let _0x2b2b23=_0x449e63[_0x376d0e];return _0x2b2b23;}function a161_0x449e(){const _0x2fcdbe=['generateCommandHelp','29772nPtpKW','6DAXGlE','4451820xMSuGv','\x20project\x20init`\x20or\x20--appcode).','689445ZdYeEW','809865vTdNLy','186283CZPzNK','1765330oAjUkV','generateFullHelp','7208wWaipz','get','1450756gQAaXS'];a161_0x449e=function(){return _0x2fcdbe;};return a161_0x449e();}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':_0x54aa4e=>serviceGroups[a161_0x48290a(0xe9)](_0x54aa4e),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a161_0x48290a(0xef),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0xe5ddfb){const _0x4dfc8a=a161_0x48290a;return generators[_0x4dfc8a(0xeb)](_0xe5ddfb);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a161_0x48290a(0xe7)];
1
+ const a163_0x4e9548=a163_0xc3e6;(function(_0x35dda0,_0x378bd2){const _0x239191=a163_0xc3e6,_0x1729ab=_0x35dda0();while(!![]){try{const _0xdf0df6=-parseInt(_0x239191(0x1a8))/0x1+parseInt(_0x239191(0x1b0))/0x2*(-parseInt(_0x239191(0x1b5))/0x3)+parseInt(_0x239191(0x1ac))/0x4+-parseInt(_0x239191(0x1b2))/0x5*(parseInt(_0x239191(0x1b3))/0x6)+-parseInt(_0x239191(0x1b4))/0x7+-parseInt(_0x239191(0x1af))/0x8+parseInt(_0x239191(0x1b1))/0x9;if(_0xdf0df6===_0x378bd2)break;else _0x1729ab['push'](_0x1729ab['shift']());}catch(_0x3b739d){_0x1729ab['push'](_0x1729ab['shift']());}}}(a163_0x2b52,0x77e5d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a163_0x2b52(){const _0x44d428=['54548arEQER','generateFullHelp','generateCommandHelp','\x20[args]\x20[flags]','625696YTlxGP','get','Requires\x20appcode\x20(set\x20via\x20`','6287216oWCdXD','13646sjIAZT','19703574iQPtmH','1684745zwbLjT','6MmnRAw','3833011raSydj','57HmeTaT'];a163_0x2b52=function(){return _0x44d428;};return a163_0x2b52();}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':_0x5f1ed7=>serviceGroups[a163_0x4e9548(0x1ad)](_0x5f1ed7),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a163_0x4e9548(0x1ae)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a163_0x4e9548(0x1ab),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x4f6e51){const _0x59fec3=a163_0x4e9548;return generators[_0x59fec3(0x1aa)](_0x4f6e51);}export const generateServiceHelp=generators['generateServiceHelp'];function a163_0xc3e6(_0x5d9c1f,_0x555840){_0x5d9c1f=_0x5d9c1f-0x1a8;const _0x2b52cb=a163_0x2b52();let _0xc3e65c=_0x2b52cb[_0x5d9c1f];return _0xc3e65c;}export const generateFullHelp=generators[a163_0x4e9548(0x1a9)];
@@ -1 +1 @@
1
- (function(_0x38c633,_0x584977){var _0xcc657e=a162_0x24fe,_0x3dba7d=_0x38c633();while(!![]){try{var _0x568d95=-parseInt(_0xcc657e(0x15c))/0x1+parseInt(_0xcc657e(0x15d))/0x2+parseInt(_0xcc657e(0x159))/0x3+parseInt(_0xcc657e(0x15b))/0x4+-parseInt(_0xcc657e(0x15a))/0x5+-parseInt(_0xcc657e(0x158))/0x6*(parseInt(_0xcc657e(0x156))/0x7)+parseInt(_0xcc657e(0x15e))/0x8*(parseInt(_0xcc657e(0x157))/0x9);if(_0x568d95===_0x584977)break;else _0x3dba7d['push'](_0x3dba7d['shift']());}catch(_0x17520d){_0x3dba7d['push'](_0x3dba7d['shift']());}}}(a162_0xbb6c,0x1bc96));export{runCommand}from'../framework/runner.js';function a162_0x24fe(_0x4615b5,_0x2ba8d6){_0x4615b5=_0x4615b5-0x156;var _0xbb6cbc=a162_0xbb6c();var _0x24febe=_0xbb6cbc[_0x4615b5];return _0x24febe;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a162_0xbb6c(){var _0x10a9ec=['9mMSeez','559914hyhMUR','543837rJnYIH','1073920cttcve','28112UUyCzG','197609JhTNrT','289856ZKOnAS','2290328mqcQBE','7nQDDAk'];a162_0xbb6c=function(){return _0x10a9ec;};return a162_0xbb6c();}
1
+ (function(_0x5a3b04,_0x476927){var _0x5326cd=a164_0x3fc7,_0x51868d=_0x5a3b04();while(!![]){try{var _0x1663cf=parseInt(_0x5326cd(0x113))/0x1+-parseInt(_0x5326cd(0x112))/0x2*(parseInt(_0x5326cd(0x116))/0x3)+parseInt(_0x5326cd(0x110))/0x4+-parseInt(_0x5326cd(0x115))/0x5*(parseInt(_0x5326cd(0x114))/0x6)+-parseInt(_0x5326cd(0x10f))/0x7+parseInt(_0x5326cd(0x111))/0x8*(-parseInt(_0x5326cd(0x117))/0x9)+parseInt(_0x5326cd(0x118))/0xa;if(_0x1663cf===_0x476927)break;else _0x51868d['push'](_0x51868d['shift']());}catch(_0x44abc9){_0x51868d['push'](_0x51868d['shift']());}}}(a164_0x59a5,0x9d11b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a164_0x3fc7(_0x5c1fa8,_0x20c10c){_0x5c1fa8=_0x5c1fa8-0x10f;var _0x59a5ee=a164_0x59a5();var _0x3fc7ff=_0x59a5ee[_0x5c1fa8];return _0x3fc7ff;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a164_0x59a5(){var _0x4c43e1=['18FuPYlS','19415680FqYcAu','6147344gIYWQn','2395296pTTwzM','512744DZJzVT','18feQAgW','1150538cZDaKk','5472GLEcKs','5035uqtpSo','374271iHEjhC'];a164_0x59a5=function(){return _0x4c43e1;};return a164_0x59a5();}
@@ -1 +1 @@
1
- function a163_0x3175(_0x10a331,_0xc972df){_0x10a331=_0x10a331-0xcf;const _0x55b2ec=a163_0x55b2();let _0x31751c=_0x55b2ec[_0x10a331];return _0x31751c;}(function(_0xe47e5e,_0x384d79){const _0x14be2a=a163_0x3175,_0x236d6f=_0xe47e5e();while(!![]){try{const _0x5d1c46=-parseInt(_0x14be2a(0xd5))/0x1+parseInt(_0x14be2a(0xd4))/0x2+parseInt(_0x14be2a(0xd7))/0x3*(parseInt(_0x14be2a(0xd3))/0x4)+parseInt(_0x14be2a(0xd8))/0x5*(-parseInt(_0x14be2a(0xd6))/0x6)+parseInt(_0x14be2a(0xd0))/0x7+parseInt(_0x14be2a(0xd1))/0x8+parseInt(_0x14be2a(0xd2))/0x9*(-parseInt(_0x14be2a(0xcf))/0xa);if(_0x5d1c46===_0x384d79)break;else _0x236d6f['push'](_0x236d6f['shift']());}catch(_0x4935f3){_0x236d6f['push'](_0x236d6f['shift']());}}}(a163_0x55b2,0xe6e19));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a163_0x55b2(){const _0x57c59b=['125rPzQWf','240vwhZIx','7863863DUQJXq','5602440yNfcwh','381933DdcWWM','8kxVzIx','2955282isuRrS','907224tGEnhk','181752DdQrie','491019ZrJjMc'];a163_0x55b2=function(){return _0x57c59b;};return a163_0x55b2();}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ (function(_0x52878c,_0x484785){const _0xaaa456=a165_0x4eb7,_0x39335b=_0x52878c();while(!![]){try{const _0x1e41b1=-parseInt(_0xaaa456(0xb7))/0x1+parseInt(_0xaaa456(0xb4))/0x2*(parseInt(_0xaaa456(0xaf))/0x3)+-parseInt(_0xaaa456(0xb5))/0x4+-parseInt(_0xaaa456(0xb2))/0x5*(-parseInt(_0xaaa456(0xae))/0x6)+-parseInt(_0xaaa456(0xad))/0x7+parseInt(_0xaaa456(0xb1))/0x8*(-parseInt(_0xaaa456(0xb3))/0x9)+parseInt(_0xaaa456(0xb6))/0xa*(parseInt(_0xaaa456(0xb0))/0xb);if(_0x1e41b1===_0x484785)break;else _0x39335b['push'](_0x39335b['shift']());}catch(_0x554610){_0x39335b['push'](_0x39335b['shift']());}}}(a165_0x4191,0x4397d));function a165_0x4eb7(_0x43340a,_0x1083b5){_0x43340a=_0x43340a-0xad;const _0x41915a=a165_0x4191();let _0x4eb706=_0x41915a[_0x43340a];return _0x4eb706;}function a165_0x4191(){const _0x351e9a=['39060xaLrIh','332202ZciprJ','2140222uoAUHR','38154LiUdwi','408htwenk','2761nXNNnn','400rqUzmp','415WFlrgO','76851uKQRXr','2566lRqKAt','1363728jraNHI'];a165_0x4191=function(){return _0x351e9a;};return a165_0x4191();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- function a164_0x1c21(){var _0xa671aa=['2303199RLFrUa','1317896Hpiqua','86163jkUdkG','15780viFUDh','288594nRynml','683655PrPrxg','12Jjsktp','288040FLeuwW','30qVxFwn','32EGQAeh'];a164_0x1c21=function(){return _0xa671aa;};return a164_0x1c21();}(function(_0x480ab0,_0x55226c){var _0x13cf1=a164_0x3235,_0x1f91c9=_0x480ab0();while(!![]){try{var _0x825c75=parseInt(_0x13cf1(0x19d))/0x1+-parseInt(_0x13cf1(0x199))/0x2+parseInt(_0x13cf1(0x198))/0x3+-parseInt(_0x13cf1(0x195))/0x4*(parseInt(_0x13cf1(0x196))/0x5)+parseInt(_0x13cf1(0x19e))/0x6*(parseInt(_0x13cf1(0x19a))/0x7)+parseInt(_0x13cf1(0x197))/0x8*(parseInt(_0x13cf1(0x19c))/0x9)+-parseInt(_0x13cf1(0x19b))/0xa;if(_0x825c75===_0x55226c)break;else _0x1f91c9['push'](_0x1f91c9['shift']());}catch(_0x3f4acd){_0x1f91c9['push'](_0x1f91c9['shift']());}}}(a164_0x1c21,0x7cec4));function a164_0x3235(_0xef8a12,_0x2ba80d){_0xef8a12=_0xef8a12-0x195;var _0x1c217d=a164_0x1c21();var _0x323569=_0x1c217d[_0xef8a12];return _0x323569;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a166_0x2045(_0x6c5ede,_0xdaabdf){_0x6c5ede=_0x6c5ede-0x1ba;var _0x2fef88=a166_0x2fef();var _0x2045c8=_0x2fef88[_0x6c5ede];return _0x2045c8;}function a166_0x2fef(){var _0x23e7f6=['986824WVGCxc','2510wgHxHY','25460QKKLiU','12111HMGCxa','9bXqaUD','2320227yWhyWC','300typcXB','987464xMlQGL','14HSTYhR','134312CtBFNP','1561206gaVZwN'];a166_0x2fef=function(){return _0x23e7f6;};return a166_0x2fef();}(function(_0x291a37,_0x1caad9){var _0x495b60=a166_0x2045,_0x2b8ff6=_0x291a37();while(!![]){try{var _0x4cf6e9=parseInt(_0x495b60(0x1c4))/0x1+parseInt(_0x495b60(0x1bb))/0x2*(parseInt(_0x495b60(0x1bf))/0x3)+parseInt(_0x495b60(0x1c1))/0x4*(-parseInt(_0x495b60(0x1bd))/0x5)+parseInt(_0x495b60(0x1ba))/0x6*(-parseInt(_0x495b60(0x1c3))/0x7)+parseInt(_0x495b60(0x1c2))/0x8+parseInt(_0x495b60(0x1c0))/0x9+parseInt(_0x495b60(0x1bc))/0xa*(-parseInt(_0x495b60(0x1be))/0xb);if(_0x4cf6e9===_0x1caad9)break;else _0x2b8ff6['push'](_0x2b8ff6['shift']());}catch(_0x480d4f){_0x2b8ff6['push'](_0x2b8ff6['shift']());}}}(a166_0x2fef,0xc77eb));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a165_0x29ce(){const _0x14cd00=['6710652bfrysS','alias','6007710ywQkJD','type','640500GTPoPb','Available\x20aliases:\x20','Unknown\x20alias\x20\x22','No\x20api.ts\x20found\x20in\x20','3693192wugzWR','12029682JOPajG','string','1068643wwOgsr','`\x20requires\x20either\x20--code\x20or\x20--alias.','2KTsupG','map','validation','code','723945BUPFNO','name','\x22.\x20','some','flags'];a165_0x29ce=function(){return _0x14cd00;};return a165_0x29ce();}(function(_0x8555e2,_0x1b5fa3){const _0x8bf2f7=a165_0x3443,_0x1327d8=_0x8555e2();while(!![]){try{const _0x32efef=-parseInt(_0x8bf2f7(0xda))/0x1*(parseInt(_0x8bf2f7(0xdc))/0x2)+parseInt(_0x8bf2f7(0xe0))/0x3+parseInt(_0x8bf2f7(0xe5))/0x4+parseInt(_0x8bf2f7(0xe7))/0x5+parseInt(_0x8bf2f7(0xd3))/0x6+-parseInt(_0x8bf2f7(0xd8))/0x7+parseInt(_0x8bf2f7(0xd7))/0x8;if(_0x32efef===_0x1b5fa3)break;else _0x1327d8['push'](_0x1327d8['shift']());}catch(_0x35fe22){_0x1327d8['push'](_0x1327d8['shift']());}}}(a165_0x29ce,0xdc276));import{CliErrors}from'../errors.js';function a165_0x3443(_0x7fe2ea,_0x2fa497){_0x7fe2ea=_0x7fe2ea-0xd2;const _0x29ce8d=a165_0x29ce();let _0x3443b3=_0x29ce8d[_0x7fe2ea];return _0x3443b3;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2a6f35,_0xbd414f,_0x299a77,_0x181956){const _0x49ca1f=a165_0x3443,_0x545067=_0x2a6f35[_0x49ca1f(0xe4)][_0x49ca1f(0xe3)](_0x326f30=>_0x326f30[_0x49ca1f(0xe1)]===_0x49ca1f(0xdf)&&_0x326f30[_0x49ca1f(0xd2)]===_0x49ca1f(0xd9)),_0x13ed17=_0x2a6f35[_0x49ca1f(0xe4)][_0x49ca1f(0xe3)](_0x214fcc=>_0x214fcc[_0x49ca1f(0xe1)]===_0x49ca1f(0xe6)&&_0x214fcc[_0x49ca1f(0xd2)]===_0x49ca1f(0xd9));if(!_0x545067||!_0x13ed17)return;const _0x1392a2=_0xbd414f[_0x49ca1f(0xdf)]?String(_0xbd414f[_0x49ca1f(0xdf)]):'',_0x556ec2=_0xbd414f[_0x49ca1f(0xe6)]?String(_0xbd414f['alias']):'';if(!_0x1392a2&&!_0x556ec2)throw CliErrors[_0x49ca1f(0xde)]('`'+_0x181956+_0x49ca1f(0xdb));if(_0x556ec2&&!_0x1392a2){const _0x42244d=resolveAlias(_0x299a77,_0x556ec2);if(!_0x42244d){const _0x1ea68d=listAliases(_0x299a77)[_0x49ca1f(0xdd)](_0x5a255b=>_0x5a255b['alias']),_0x5c721c=_0x1ea68d['length']?_0x49ca1f(0xd4)+_0x1ea68d['join'](',\x20'):_0x49ca1f(0xd6)+_0x299a77+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x49ca1f(0xde)](_0x49ca1f(0xd5)+_0x556ec2+_0x49ca1f(0xe2)+_0x5c721c);}_0xbd414f[_0x49ca1f(0xdf)]=_0x42244d;}}
1
+ (function(_0x79f31f,_0x1bea1e){const _0x4dc095=a167_0x481f,_0xad238c=_0x79f31f();while(!![]){try{const _0x2ba198=parseInt(_0x4dc095(0x9a))/0x1*(-parseInt(_0x4dc095(0xa5))/0x2)+-parseInt(_0x4dc095(0xa4))/0x3+parseInt(_0x4dc095(0xa9))/0x4+parseInt(_0x4dc095(0xa6))/0x5+parseInt(_0x4dc095(0x98))/0x6+parseInt(_0x4dc095(0xab))/0x7*(-parseInt(_0x4dc095(0xa1))/0x8)+parseInt(_0x4dc095(0xa2))/0x9;if(_0x2ba198===_0x1bea1e)break;else _0xad238c['push'](_0xad238c['shift']());}catch(_0x40a5a8){_0xad238c['push'](_0xad238c['shift']());}}}(a167_0x392d,0xb2f41));import{CliErrors}from'../errors.js';function a167_0x481f(_0x55ef05,_0x50481d){_0x55ef05=_0x55ef05-0x95;const _0x392d1c=a167_0x392d();let _0x481f16=_0x392d1c[_0x55ef05];return _0x481f16;}function a167_0x392d(){const _0x165374=['type','map','5368578LCsHkM','Unknown\x20alias\x20\x22','10BEPBru','some','name','validation','Available\x20aliases:\x20','No\x20api.ts\x20found\x20in\x20','string','8PUnlOi','4974777BxoyMn','\x20api\x20pull`\x20first.','900378WyynXi','74506Krnyyu','2007575TEtIrY','.\x20Run\x20`','alias','1990164wKRwbu','code','6586461AQeDQI','flags','join','length'];a167_0x392d=function(){return _0x165374;};return a167_0x392d();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x549023,_0x5349bf,_0x343896,_0x20b812){const _0x528991=a167_0x481f,_0x4bf515=_0x549023[_0x528991(0xac)]['some'](_0x3e3a0c=>_0x3e3a0c[_0x528991(0x9c)]==='code'&&_0x3e3a0c['type']===_0x528991(0xa0)),_0x517c64=_0x549023[_0x528991(0xac)][_0x528991(0x9b)](_0x1a9c71=>_0x1a9c71['name']===_0x528991(0xa8)&&_0x1a9c71[_0x528991(0x96)]==='string');if(!_0x4bf515||!_0x517c64)return;const _0x7ed6f1=_0x5349bf[_0x528991(0xaa)]?String(_0x5349bf[_0x528991(0xaa)]):'',_0x39caab=_0x5349bf[_0x528991(0xa8)]?String(_0x5349bf[_0x528991(0xa8)]):'';if(!_0x7ed6f1&&!_0x39caab)throw CliErrors[_0x528991(0x9d)]('`'+_0x20b812+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x39caab&&!_0x7ed6f1){const _0xbadbfc=resolveAlias(_0x343896,_0x39caab);if(!_0xbadbfc){const _0x5b8f4f=listAliases(_0x343896)[_0x528991(0x97)](_0xdcf12f=>_0xdcf12f[_0x528991(0xa8)]),_0x4c409e=_0x5b8f4f[_0x528991(0x95)]?_0x528991(0x9e)+_0x5b8f4f[_0x528991(0xad)](',\x20'):_0x528991(0x9f)+_0x343896+_0x528991(0xa7)+CLI_BIN_NAME+_0x528991(0xa3);throw CliErrors['validation'](_0x528991(0x99)+_0x39caab+'\x22.\x20'+_0x4c409e);}_0x5349bf[_0x528991(0xaa)]=_0xbadbfc;}}
@@ -1 +1 @@
1
- const a166_0x3db9c3=a166_0x2bab;(function(_0x391e5c,_0x3274c2){const _0x37bb4e=a166_0x2bab,_0x316a3f=_0x391e5c();while(!![]){try{const _0x178cb2=parseInt(_0x37bb4e(0x1da))/0x1+parseInt(_0x37bb4e(0x1e1))/0x2*(parseInt(_0x37bb4e(0x1e9))/0x3)+parseInt(_0x37bb4e(0x1eb))/0x4*(parseInt(_0x37bb4e(0x1f3))/0x5)+-parseInt(_0x37bb4e(0x207))/0x6*(-parseInt(_0x37bb4e(0x1fc))/0x7)+-parseInt(_0x37bb4e(0x1df))/0x8+parseInt(_0x37bb4e(0x1f0))/0x9+-parseInt(_0x37bb4e(0x1fe))/0xa*(parseInt(_0x37bb4e(0x1f4))/0xb);if(_0x178cb2===_0x3274c2)break;else _0x316a3f['push'](_0x316a3f['shift']());}catch(_0x3efb4b){_0x316a3f['push'](_0x316a3f['shift']());}}}(a166_0x51bd,0xcca03));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a166_0x51bd(){const _0xa6be61=['map','1667988JSxtZM','964695HBeLju','resolveAppCode','isNonInteractive','Set\x20appcode\x20via\x20`','resolveCookie','6282552mTvSvy','../core/api-client.js','2ajWvuH','has','pageSize','verbose','High-risk\x20operation\x20`','name','cookie','\x20\x20\x20Continue?\x20[y/N]\x20','1788909VZqMGV','currentApp','964beMPVL','filter','mergedCli','riskLevel','apps','5021739pKDPUt','configMissing','appCode','2450ZHahWm','3269167kRpqCm','defaultPageSize','defaultVerbose','apiDir','validation','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','explicitAppName','service','7ILyZZw','format','30MGDsdU','authRequired','command','requiresAuth','cancelled','selectedAppName','appcode','⚠\x20\x20High-risk\x20operation:\x20'];a166_0x51bd=function(){return _0xa6be61;};return a166_0x51bd();}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a166_0x2bab(_0x233176,_0x37e72b){_0x233176=_0x233176-0x1da;const _0x51bd43=a166_0x51bd();let _0x2bab0b=_0x51bd43[_0x233176];return _0x2bab0b;}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 a166_0x3a45f6}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x2146cf,_0x327ae1,_0x187ce1=[]){const _0x11d4ce=a166_0x2bab;return{'rawFlags':_0x327ae1,'args':_0x187ce1,'resolveAppCode':()=>_0x2146cf[_0x11d4ce(0x1f2)]||_0x327ae1[_0x11d4ce(0x204)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x2146cf[_0x11d4ce(0x1e7)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a166_0x3a45f6(_0x327ae1),'defaultFormat':_0x2146cf[_0x11d4ce(0x1fd)],'defaultPageSize':_0x2146cf[_0x11d4ce(0x1e3)],'defaultVerbose':_0x2146cf[_0x11d4ce(0x1e4)],'apiDir':_0x2146cf[_0x11d4ce(0x1f7)],'riskLevel':_0x2146cf[_0x11d4ce(0x1ee)],'selectedAppName':_0x2146cf[_0x11d4ce(0x1fa)],'mergedCli':{'defaultApp':_0x2146cf['defaultApp'],'currentApp':_0x2146cf[_0x11d4ce(0x1ea)],'appCode':_0x2146cf[_0x11d4ce(0x1f2)],'apps':_0x2146cf[_0x11d4ce(0x1ef)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a166_0x3db9c3(0x1ec)](_0x16c41c=>PIPELINE_FLAG_NAMES[a166_0x3db9c3(0x1e2)](_0x16c41c[a166_0x3db9c3(0x1e6)]))[a166_0x3db9c3(0x206)](({name:_0x2ccc32,type:_0x50923d,description:_0x1ec2df})=>({'name':_0x2ccc32,'type':_0x50923d,'description':_0x1ec2df})),'formatOutput':formatOutput,'getCommandLabel'(_0x27b0c1){const _0x28ce24=a166_0x3db9c3;return CLI_BIN_NAME+'\x20'+_0x27b0c1[_0x28ce24(0x1fb)]+'\x20'+_0x27b0c1[_0x28ce24(0x200)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x13914b){const _0x374ecd=a166_0x3db9c3;return CliErrors[_0x374ecd(0x1f8)](_0x13914b);}},async 'prepare'(_0xb94b0c,_0x4cf1fb,_0x3a64ee,_0x25c977){const _0x3590c5=a166_0x3db9c3,_0x1a1103=_0x4cf1fb[_0x3590c5(0x1f7)]||DEFAULT_API_DIR;resolveAliasToCode(_0xb94b0c,_0x3a64ee,_0x1a1103,_0x25c977);let _0x40bcfe='';if(_0xb94b0c[_0x3590c5(0x201)]!==![]){_0x40bcfe=_0x4cf1fb[_0x3590c5(0x1de)]();if(!_0x40bcfe)throw CliErrors[_0x3590c5(0x1ff)]();const {setActiveCookie:_0x103298}=await import('../core/api-client.js');_0x103298(_0x40bcfe);}const _0x541a74=_0x4cf1fb[_0x3590c5(0x1db)]()??'';if(_0xb94b0c['requiresAppCode']!==![]){if(!_0x541a74)throw CliErrors[_0x3590c5(0x1f1)](_0x3590c5(0x1dd)+CLI_BIN_NAME+_0x3590c5(0x1f9));}return{'defaults':{'booleans':{'verbose':_0x4cf1fb[_0x3590c5(0x1f6)]},'numbers':{'pagesize':_0x4cf1fb[_0x3590c5(0x1f5)]}},'extras':{'appCode':_0x541a74,'cookie':_0x40bcfe,'apiDomain':_0x4cf1fb['resolveApiDomain'](),'apiDir':_0x1a1103,'selectedAppName':_0x4cf1fb[_0x3590c5(0x203)],'mergedCli':_0x4cf1fb[_0x3590c5(0x1ed)]}};},async 'confirmHighRisk'({env:_0xc39fc0,commandLabel:_0x2b1732}){const _0x4ea525=a166_0x3db9c3;if(_0xc39fc0[_0x4ea525(0x1dc)])throw CliErrors[_0x4ea525(0x1f8)](_0x4ea525(0x1e5)+_0x2b1732+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x4ea525(0x205)+_0x2b1732,_0x4ea525(0x1e8)],'createCancelledError':_0x30b0e5=>CliErrors[_0x4ea525(0x202)](_0x30b0e5)});},async 'finalize'(){const _0x27e626=a166_0x3db9c3,{clearActiveCookie:_0x28a001}=await import(_0x27e626(0x1e0));_0x28a001();}};export async function runCommand(_0x4714b1,_0x1c35ae){await runCommandWithAdapter(_0x4714b1,_0x1c35ae,runnerAdapter);}
1
+ const a168_0x3db8ac=a168_0x46b4;function a168_0x2dd3(){const _0x1fb0db=['resolveAppCode','High-risk\x20operation\x20`','10qqCNrv','requiresAuth','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','configMissing','⚠\x20\x20High-risk\x20operation:\x20','defaultApp','resolveApiDomain','Set\x20appcode\x20via\x20`','cancelled','12123xzLbwz','9PCMSVp','5479929hgscFD','validation','authRequired','apiDir','format','apps','1989316JhdbsS','explicitAppName','appCode','appcode','70adQLne','25204150GTRLOj','../core/api-client.js','562134qkegPt','has','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','service','4935930yZLWQH','cookie','mergedCli','resolveCookie','currentApp','riskLevel','1308776qMRdib','isNonInteractive','requiresAppCode'];a168_0x2dd3=function(){return _0x1fb0db;};return a168_0x2dd3();}(function(_0x7c8759,_0x3750bf){const _0x1ee6ec=a168_0x46b4,_0x1cf824=_0x7c8759();while(!![]){try{const _0x3ecfc6=parseInt(_0x1ee6ec(0x1c9))/0x1*(parseInt(_0x1ee6ec(0x1d5))/0x2)+-parseInt(_0x1ee6ec(0x1dc))/0x3+parseInt(_0x1ee6ec(0x1d1))/0x4+parseInt(_0x1ee6ec(0x1c0))/0x5*(-parseInt(_0x1ee6ec(0x1d8))/0x6)+-parseInt(_0x1ee6ec(0x1cb))/0x7+parseInt(_0x1ee6ec(0x1bb))/0x8*(parseInt(_0x1ee6ec(0x1ca))/0x9)+parseInt(_0x1ee6ec(0x1d6))/0xa;if(_0x3ecfc6===_0x3750bf)break;else _0x1cf824['push'](_0x1cf824['shift']());}catch(_0x532479){_0x1cf824['push'](_0x1cf824['shift']());}}}(a168_0x2dd3,0xf1b9f));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';import{isNonInteractive as a168_0x143c25}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x5de056,_0x1d7065,_0x34167c=[]){const _0x30fe8b=a168_0x46b4;return{'rawFlags':_0x1d7065,'args':_0x34167c,'resolveAppCode':()=>_0x5de056[_0x30fe8b(0x1d3)]||_0x1d7065[_0x30fe8b(0x1d4)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x5de056[_0x30fe8b(0x1dd)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a168_0x143c25(_0x1d7065),'defaultFormat':_0x5de056[_0x30fe8b(0x1cf)],'defaultPageSize':_0x5de056['pageSize'],'defaultVerbose':_0x5de056['verbose'],'apiDir':_0x5de056[_0x30fe8b(0x1ce)],'riskLevel':_0x5de056[_0x30fe8b(0x1ba)],'selectedAppName':_0x5de056[_0x30fe8b(0x1d2)],'mergedCli':{'defaultApp':_0x5de056[_0x30fe8b(0x1c5)],'currentApp':_0x5de056[_0x30fe8b(0x1b9)],'appCode':_0x5de056[_0x30fe8b(0x1d3)],'apps':_0x5de056[_0x30fe8b(0x1d0)]}};}function a168_0x46b4(_0x317dc8,_0x4ba20e){_0x317dc8=_0x317dc8-0x1b9;const _0x2dd375=a168_0x2dd3();let _0x46b45d=_0x2dd375[_0x317dc8];return _0x46b45d;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2e6691=>PIPELINE_FLAG_NAMES[a168_0x3db8ac(0x1d9)](_0x2e6691['name']))['map'](({name:_0x45cd92,type:_0x4feef1,description:_0x3a020f})=>({'name':_0x45cd92,'type':_0x4feef1,'description':_0x3a020f})),'formatOutput':formatOutput,'getCommandLabel'(_0x15caef){const _0x2ade24=a168_0x3db8ac;return CLI_BIN_NAME+'\x20'+_0x15caef[_0x2ade24(0x1db)]+'\x20'+_0x15caef['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x518da9){const _0x2e41c3=a168_0x3db8ac;return CliErrors[_0x2e41c3(0x1cc)](_0x518da9);}},async 'prepare'(_0x2d4ffb,_0x4b5ab7,_0x112523,_0x43abf8){const _0x538f02=a168_0x3db8ac,_0x153a69=_0x4b5ab7[_0x538f02(0x1ce)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2d4ffb,_0x112523,_0x153a69,_0x43abf8);let _0x4f568b='';if(_0x2d4ffb[_0x538f02(0x1c1)]!==![]){_0x4f568b=_0x4b5ab7[_0x538f02(0x1df)]();if(!_0x4f568b)throw CliErrors[_0x538f02(0x1cd)]();const {setActiveCookie:_0x625329}=await import(_0x538f02(0x1d7));_0x625329(_0x4f568b);}const _0x39a64e=_0x4b5ab7[_0x538f02(0x1be)]()??'';if(_0x2d4ffb[_0x538f02(0x1bd)]!==![]){if(!_0x39a64e)throw CliErrors[_0x538f02(0x1c3)](_0x538f02(0x1c7)+CLI_BIN_NAME+_0x538f02(0x1da));}return{'defaults':{'booleans':{'verbose':_0x4b5ab7['defaultVerbose']},'numbers':{'pagesize':_0x4b5ab7['defaultPageSize']}},'extras':{'appCode':_0x39a64e,'cookie':_0x4f568b,'apiDomain':_0x4b5ab7[_0x538f02(0x1c6)](),'apiDir':_0x153a69,'selectedAppName':_0x4b5ab7['selectedAppName'],'mergedCli':_0x4b5ab7[_0x538f02(0x1de)]}};},async 'confirmHighRisk'({env:_0x167ac0,commandLabel:_0x218ec8}){const _0x44cf7d=a168_0x3db8ac;if(_0x167ac0[_0x44cf7d(0x1bc)])throw CliErrors[_0x44cf7d(0x1cc)](_0x44cf7d(0x1bf)+_0x218ec8+_0x44cf7d(0x1c2));await requireConfirmationPrompt({'lines':[_0x44cf7d(0x1c4)+_0x218ec8,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x25bca5=>CliErrors[_0x44cf7d(0x1c8)](_0x25bca5)});},async 'finalize'(){const _0x42820b=a168_0x3db8ac,{clearActiveCookie:_0x165410}=await import(_0x42820b(0x1d7));_0x165410();}};export async function runCommand(_0x3e754f,_0x58a23d){await runCommandWithAdapter(_0x3e754f,_0x58a23d,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x35eba8,_0x35ae9c){const _0x523a3b=a167_0x3418,_0x1654bd=_0x35eba8();while(!![]){try{const _0x10c62c=-parseInt(_0x523a3b(0xba))/0x1*(-parseInt(_0x523a3b(0xb2))/0x2)+parseInt(_0x523a3b(0xb0))/0x3*(parseInt(_0x523a3b(0xb6))/0x4)+parseInt(_0x523a3b(0xb3))/0x5*(-parseInt(_0x523a3b(0xb4))/0x6)+-parseInt(_0x523a3b(0xb7))/0x7*(-parseInt(_0x523a3b(0xb5))/0x8)+parseInt(_0x523a3b(0xb8))/0x9+-parseInt(_0x523a3b(0xb1))/0xa+parseInt(_0x523a3b(0xaf))/0xb*(-parseInt(_0x523a3b(0xae))/0xc);if(_0x10c62c===_0x35ae9c)break;else _0x1654bd['push'](_0x1654bd['shift']());}catch(_0x417e35){_0x1654bd['push'](_0x1654bd['shift']());}}}(a167_0x336b,0xb4a04));import{buildSchemaPayload as a167_0x5cf5da}from'@lovrabet/cli-framework';function a167_0x3418(_0x304980,_0x1da189){_0x304980=_0x304980-0xae;const _0x336b9e=a167_0x336b();let _0x341813=_0x336b9e[_0x304980];return _0x341813;}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 a167_0x336b(){const _0x14301b=['11442060hDgcKC','../commands/registry.js','519EcNlga','13644SWLVsM','20141aDHTQU','921aEAxku','8423900Eswsed','3022ZDjboP','5oWoqGQ','383646nogWgY','32zCfNVG','18988Rrrpkl','376502xEUIYp'];a167_0x336b=function(){return _0x14301b;};return a167_0x336b();}export async function buildSchemaPayload(){const _0x28303e=a167_0x3418,{serviceRegistry:_0x548c96,findDefinition:_0x514e59}=await import(_0x28303e(0xb9));return a167_0x5cf5da({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x548c96,'buildAllFlags':buildAllFlags,'findDefinition':_0x514e59});}
1
+ (function(_0x4d835f,_0x4509e0){const _0x49d8d2=a169_0x528e,_0x132664=_0x4d835f();while(!![]){try{const _0x1735bd=-parseInt(_0x49d8d2(0x196))/0x1+parseInt(_0x49d8d2(0x19a))/0x2*(parseInt(_0x49d8d2(0x198))/0x3)+-parseInt(_0x49d8d2(0x19d))/0x4*(-parseInt(_0x49d8d2(0x197))/0x5)+-parseInt(_0x49d8d2(0x19f))/0x6+parseInt(_0x49d8d2(0x19c))/0x7+-parseInt(_0x49d8d2(0x19b))/0x8*(-parseInt(_0x49d8d2(0x19e))/0x9)+parseInt(_0x49d8d2(0x1a0))/0xa;if(_0x1735bd===_0x4509e0)break;else _0x132664['push'](_0x132664['shift']());}catch(_0x464353){_0x132664['push'](_0x132664['shift']());}}}(a169_0x4f7a,0x26483));function a169_0x4f7a(){const _0x1064fb=['299121AJTrge','../commands/registry.js','2sCgysS','128YCwNmO','96334XXKNFe','4GsLYgj','170406OwTimX','1820094ClAmrG','904220lskIes','281686EGzzfE','1175015RaQspK'];a169_0x4f7a=function(){return _0x1064fb;};return a169_0x4f7a();}function a169_0x528e(_0x25bbb1,_0xabb3ce){_0x25bbb1=_0x25bbb1-0x196;const _0x4f7aac=a169_0x4f7a();let _0x528e73=_0x4f7aac[_0x25bbb1];return _0x528e73;}import{buildSchemaPayload as a169_0x3821ea}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x28703f=a169_0x528e,{serviceRegistry:_0x169235,findDefinition:_0x51ab19}=await import(_0x28703f(0x199));return a169_0x3821ea({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x169235,'buildAllFlags':buildAllFlags,'findDefinition':_0x51ab19});}
@@ -1 +1 @@
1
- function a168_0x58d5(){var _0x3e9f5e=['155139hjkFBw','35784VwHEDv','3366910FKStNw','5144430SXtHrm','1672dscMed','12unZvYf','60UYSmgB','1512665jnlXrX','3674RuOtgh','11MQaWaN','2074456rYebuF'];a168_0x58d5=function(){return _0x3e9f5e;};return a168_0x58d5();}function a168_0x2dc0(_0x37c4a4,_0x198f17){_0x37c4a4=_0x37c4a4-0x18c;var _0x58d52b=a168_0x58d5();var _0x2dc0a9=_0x58d52b[_0x37c4a4];return _0x2dc0a9;}(function(_0xdad366,_0x1cbf1f){var _0x2a8c3b=a168_0x2dc0,_0xda313b=_0xdad366();while(!![]){try{var _0x1d4e43=parseInt(_0x2a8c3b(0x190))/0x1+parseInt(_0x2a8c3b(0x18d))/0x2*(-parseInt(_0x2a8c3b(0x196))/0x3)+parseInt(_0x2a8c3b(0x18f))/0x4+-parseInt(_0x2a8c3b(0x193))/0x5+parseInt(_0x2a8c3b(0x195))/0x6*(parseInt(_0x2a8c3b(0x18c))/0x7)+-parseInt(_0x2a8c3b(0x194))/0x8*(-parseInt(_0x2a8c3b(0x191))/0x9)+parseInt(_0x2a8c3b(0x192))/0xa*(-parseInt(_0x2a8c3b(0x18e))/0xb);if(_0x1d4e43===_0x1cbf1f)break;else _0xda313b['push'](_0xda313b['shift']());}catch(_0x1aeea0){_0xda313b['push'](_0xda313b['shift']());}}}(a168_0x58d5,0x82852));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a170_0x5e40(){var _0x179e9d=['50CZwDiK','33127884MlgrjY','2334568kEYoLY','11AKePTH','661922vDsgjz','16BxrBXA','373254faatSg','15XDupeB','60OkQBAl','83854laVsyG','2073946aijcnJ','215253ejsbqr'];a170_0x5e40=function(){return _0x179e9d;};return a170_0x5e40();}(function(_0x5051c9,_0x64dc48){var _0x3b091f=a170_0x56df,_0x509633=_0x5051c9();while(!![]){try{var _0x44973a=-parseInt(_0x3b091f(0x1db))/0x1+parseInt(_0x3b091f(0x1e0))/0x2*(parseInt(_0x3b091f(0x1de))/0x3)+-parseInt(_0x3b091f(0x1e5))/0x4+-parseInt(_0x3b091f(0x1e3))/0x5*(parseInt(_0x3b091f(0x1dd))/0x6)+-parseInt(_0x3b091f(0x1e1))/0x7*(parseInt(_0x3b091f(0x1dc))/0x8)+-parseInt(_0x3b091f(0x1e2))/0x9*(-parseInt(_0x3b091f(0x1df))/0xa)+parseInt(_0x3b091f(0x1da))/0xb*(parseInt(_0x3b091f(0x1e4))/0xc);if(_0x44973a===_0x64dc48)break;else _0x509633['push'](_0x509633['shift']());}catch(_0x3e5b48){_0x509633['push'](_0x509633['shift']());}}}(a170_0x5e40,0x9f910));function a170_0x56df(_0x36ff88,_0x1cedf8){_0x36ff88=_0x36ff88-0x1da;var _0x5e405f=a170_0x5e40();var _0x56dff6=_0x5e405f[_0x36ff88];return _0x56dff6;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a169_0x39b0ad=a169_0x2407;(function(_0x10c6bc,_0xf99612){const _0x1c5a4f=a169_0x2407,_0xf4ba0a=_0x10c6bc();while(!![]){try{const _0x27a62a=-parseInt(_0x1c5a4f(0x1bb))/0x1*(parseInt(_0x1c5a4f(0x1b4))/0x2)+-parseInt(_0x1c5a4f(0x1b1))/0x3*(parseInt(_0x1c5a4f(0x1b2))/0x4)+-parseInt(_0x1c5a4f(0x1bc))/0x5+parseInt(_0x1c5a4f(0x1b8))/0x6+parseInt(_0x1c5a4f(0x1b3))/0x7+-parseInt(_0x1c5a4f(0x1b7))/0x8+parseInt(_0x1c5a4f(0x1b0))/0x9;if(_0x27a62a===_0xf99612)break;else _0xf4ba0a['push'](_0xf4ba0a['shift']());}catch(_0x30386d){_0xf4ba0a['push'](_0xf4ba0a['shift']());}}}(a169_0x38c8,0x50e1d));function a169_0x2407(_0x32b766,_0x58a781){_0x32b766=_0x32b766-0x1b0;const _0x38c832=a169_0x38c8();let _0x2407ff=_0x38c832[_0x32b766];return _0x2407ff;}export const VERSION=a169_0x39b0ad(0x1ba);export const GIT_TAG=a169_0x39b0ad(0x1b5);function a169_0x38c8(){const _0x5a8888=['297584WnONyO','1330782MnVsLw','2026-05-18T14:40:53.631Z','2.1.12-beta.0','4aSkvme','291745OMTWkK','7056702QqDKgA','786711maVcJX','4gUaYad','1956850XBqXdQ','298174LrRaiC','v2.1.12-beta.0','4d70025'];a169_0x38c8=function(){return _0x5a8888;};return a169_0x38c8();}export const GIT_COMMIT=a169_0x39b0ad(0x1b6);export const BUILD_TIME=a169_0x39b0ad(0x1b9);
1
+ const a171_0xbd1ef5=a171_0xbb9b;(function(_0x17133d,_0xe6b6ec){const _0x41972c=a171_0xbb9b,_0x5d5600=_0x17133d();while(!![]){try{const _0x37ea9f=-parseInt(_0x41972c(0x1bb))/0x1*(-parseInt(_0x41972c(0x1b8))/0x2)+-parseInt(_0x41972c(0x1b6))/0x3*(parseInt(_0x41972c(0x1b5))/0x4)+parseInt(_0x41972c(0x1bd))/0x5*(-parseInt(_0x41972c(0x1b9))/0x6)+parseInt(_0x41972c(0x1c0))/0x7*(-parseInt(_0x41972c(0x1bc))/0x8)+-parseInt(_0x41972c(0x1b7))/0x9*(parseInt(_0x41972c(0x1bf))/0xa)+parseInt(_0x41972c(0x1b4))/0xb+parseInt(_0x41972c(0x1b3))/0xc;if(_0x37ea9f===_0xe6b6ec)break;else _0x5d5600['push'](_0x5d5600['shift']());}catch(_0x212e65){_0x5d5600['push'](_0x5d5600['shift']());}}}(a171_0x2e23,0x1f7c3));function a171_0x2e23(){const _0x2040a7=['v2.1.12-beta.2','7853532NwyRje','18678yXjtTF','4yZSmRr','428478ZoXpRz','935658ytrBHi','182562hvytKw','516486svcuPv','2026-05-19T11:14:25.615Z','1aqQtvW','50968BTutFo','10eBSOkI','3861060','20bwKVAe','105EuYbGJ'];a171_0x2e23=function(){return _0x2040a7;};return a171_0x2e23();}export const VERSION='2.1.12-beta.2';function a171_0xbb9b(_0x2e1da9,_0x586786){_0x2e1da9=_0x2e1da9-0x1b3;const _0x2e2385=a171_0x2e23();let _0xbb9b00=_0x2e2385[_0x2e1da9];return _0xbb9b00;}export const GIT_TAG=a171_0xbd1ef5(0x1c1);export const GIT_COMMIT=a171_0xbd1ef5(0x1be);export const BUILD_TIME=a171_0xbd1ef5(0x1ba);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x52db63,_0x50b659){var _0x36e803=a170_0x25af,_0x37162d=_0x52db63();while(!![]){try{var _0x56ff70=-parseInt(_0x36e803(0x15f))/0x1+-parseInt(_0x36e803(0x15e))/0x2*(-parseInt(_0x36e803(0x158))/0x3)+parseInt(_0x36e803(0x152))/0x4*(parseInt(_0x36e803(0x156))/0x5)+-parseInt(_0x36e803(0x153))/0x6+parseInt(_0x36e803(0x15b))/0x7*(parseInt(_0x36e803(0x154))/0x8)+-parseInt(_0x36e803(0x157))/0x9*(parseInt(_0x36e803(0x15d))/0xa)+parseInt(_0x36e803(0x155))/0xb;if(_0x56ff70===_0x50b659)break;else _0x37162d['push'](_0x37162d['shift']());}catch(_0x5ac22d){_0x37162d['push'](_0x37162d['shift']());}}}(a170_0x4076,0x677cc));import a170_0x24c520 from'chalk';function a170_0x25af(_0xa2e6a5,_0x1dcbff){_0xa2e6a5=_0xa2e6a5-0x152;var _0x40765a=a170_0x4076();var _0x25af14=_0x40765a[_0xa2e6a5];return _0x25af14;}function a170_0x4076(){var _0x1b9fdc=['180856MOijZi','\x20--help','bold','1520032PTHIBz','4385082CHEMdw','32176UiHnSp','837639DVJXNN','10lddJkr','9LfACfK','9CXrOsH','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','1309fCLfIB','log','4569650hOMFqv','136182CzmEyv'];a170_0x4076=function(){return _0x1b9fdc;};return a170_0x4076();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x1d2f7b=a170_0x25af;console[_0x1d2f7b(0x15c)](),console[_0x1d2f7b(0x15c)](a170_0x24c520['green'][_0x1d2f7b(0x161)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x1d2f7b(0x15c)](),console[_0x1d2f7b(0x15c)](_0x1d2f7b(0x15a)+a170_0x24c520['green'][_0x1d2f7b(0x161)](CLI_BIN_NAME+_0x1d2f7b(0x160))+_0x1d2f7b(0x159)),console['log']();}
1
+ (function(_0x5a7fdc,_0x9c87d5){var _0x3354c3=a172_0x3b15,_0x245614=_0x5a7fdc();while(!![]){try{var _0xe47e66=-parseInt(_0x3354c3(0x1ab))/0x1*(parseInt(_0x3354c3(0x1a4))/0x2)+parseInt(_0x3354c3(0x1b4))/0x3*(-parseInt(_0x3354c3(0x1b3))/0x4)+parseInt(_0x3354c3(0x1b1))/0x5*(parseInt(_0x3354c3(0x1a9))/0x6)+-parseInt(_0x3354c3(0x1a8))/0x7+parseInt(_0x3354c3(0x1ad))/0x8+-parseInt(_0x3354c3(0x1a5))/0x9*(-parseInt(_0x3354c3(0x1a7))/0xa)+parseInt(_0x3354c3(0x1ae))/0xb*(-parseInt(_0x3354c3(0x1af))/0xc);if(_0xe47e66===_0x9c87d5)break;else _0x245614['push'](_0x245614['shift']());}catch(_0x583f26){_0x245614['push'](_0x245614['shift']());}}}(a172_0x29f0,0x63825));function a172_0x3b15(_0x479e0d,_0x5c84c0){_0x479e0d=_0x479e0d-0x1a4;var _0x29f0f6=a172_0x29f0();var _0x3b15d3=_0x29f0f6[_0x479e0d];return _0x3b15d3;}import a172_0x52aa01 from'chalk';function a172_0x29f0(){var _0x2f807a=['1ntStdc','\x20\x20Use\x20','1914872OmBhUT','5005mzkgvw','1608YFcUMM','\x20--help','5zfRkcu','\x20to\x20view\x20available\x20commands.','8QEoIFj','266331kImQgw','bold','441334LyXPrF','306WUkbto','green','187050dWROaU','4770192ZVjzmV','4037442tIVCip','log'];a172_0x29f0=function(){return _0x2f807a;};return a172_0x29f0();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3e9c6c=a172_0x3b15;console[_0x3e9c6c(0x1aa)](),console[_0x3e9c6c(0x1aa)](a172_0x52aa01[_0x3e9c6c(0x1a6)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x3e9c6c(0x1ac)+a172_0x52aa01[_0x3e9c6c(0x1a6)][_0x3e9c6c(0x1b5)](CLI_BIN_NAME+_0x3e9c6c(0x1b0))+_0x3e9c6c(0x1b2)),console[_0x3e9c6c(0x1aa)]();}
@@ -1 +1 @@
1
- (function(_0x3191d8,_0x4e87a7){const _0x26c9be=a171_0x25d4,_0x104563=_0x3191d8();while(!![]){try{const _0x4e5676=parseInt(_0x26c9be(0x6f))/0x1+-parseInt(_0x26c9be(0x77))/0x2+-parseInt(_0x26c9be(0x79))/0x3+parseInt(_0x26c9be(0x85))/0x4+parseInt(_0x26c9be(0x7e))/0x5+-parseInt(_0x26c9be(0x74))/0x6+-parseInt(_0x26c9be(0x7c))/0x7;if(_0x4e5676===_0x4e87a7)break;else _0x104563['push'](_0x104563['shift']());}catch(_0x3aaefa){_0x104563['push'](_0x104563['shift']());}}}(a171_0x5975,0x27e2d));import{logger}from'../utils/logger.js';function a171_0x25d4(_0x3d4880,_0x233af9){_0x3d4880=_0x3d4880-0x6f;const _0x597529=a171_0x5975();let _0x25d496=_0x597529[_0x3d4880];return _0x25d496;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a171_0x5975(){const _0x2a5690=['74844SkfMfh','cwd','313560awxhmO','setLogPath','argv','202160qeRVeK','\x20skill\x20--help\x0a\x20\x20','409170jrkPwq','push','length','help','includes','add','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','778944PfLwTA','(empty)','toLowerCase','error','dangerously-bff-save','Error:\x20Unsupported\x20command:\x20','skill','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','from','log','\x0aAvailable\x20commands:','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','Equivalent\x20command:\x20','slice','120316RFULnT','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','replace','exit','--help','376146CZrLRH','entries','has'];a171_0x5975=function(){return _0x2a5690;};return a171_0x5975();}export function camelCaseFlagsToKebab(_0x3986ea){const _0x17e645=a171_0x25d4,_0x5da59e=[];for(const [_0x390a5c,_0x11b0e0]of Object[_0x17e645(0x75)](_0x3986ea)){if(_0x11b0e0===!![]){const _0x701af1=_0x390a5c[_0x17e645(0x71)](/([A-Z])/g,'-$1')[_0x17e645(0x87)]();_0x5da59e[_0x17e645(0x7f)](_0x701af1);}}return _0x5da59e;}export function parseDynamicFlags(){const _0x379f68=a171_0x25d4,_0x1422f2=[];for(let _0x2ac168=0x3;_0x2ac168<process[_0x379f68(0x7b)][_0x379f68(0x80)];_0x2ac168++){const _0x381494=process[_0x379f68(0x7b)][_0x2ac168];if(_0x381494&&_0x381494['startsWith']('--')){const _0x504423=_0x381494[_0x379f68(0x92)](0x2);_0x504423&&!_0x504423[_0x379f68(0x82)]('=')&&_0x1422f2[_0x379f68(0x7f)](_0x504423);}}return _0x1422f2;}export function getAllProvidedFlags(_0x4e160a){const _0x5650c7=a171_0x25d4,_0x4cd042=camelCaseFlagsToKebab(_0x4e160a),_0x58510f=parseDynamicFlags(),_0x75c3aa=new Set([..._0x4cd042,..._0x58510f]);return Array[_0x5650c7(0x8d)](_0x75c3aa);}export function normalizeLegacyBffSaveFlags(_0xd93323){const _0x1886d2=a171_0x25d4,_0x392522=new Set(_0xd93323);return _0x392522[_0x1886d2(0x76)](_0x1886d2(0x89))&&_0x392522[_0x1886d2(0x83)]('enable-bff-save'),Array[_0x1886d2(0x8d)](_0x392522);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x292612,_0x31f571,_0x441141){const _0x1c5c8c=a171_0x25d4;logger[_0x1c5c8c(0x7a)](process[_0x1c5c8c(0x78)]());if(_0x441141?.[_0x1c5c8c(0x81)]||_0x292612===_0x1c5c8c(0x73)){showHelp();return;}console[_0x1c5c8c(0x88)](_0x1c5c8c(0x8a)+(_0x292612||_0x1c5c8c(0x86))),console['log'](_0x1c5c8c(0x8f)),console[_0x1c5c8c(0x8e)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x1c5c8c(0x70)),console[_0x1c5c8c(0x8e)](''),console[_0x1c5c8c(0x8e)](_0x1c5c8c(0x91)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1c5c8c(0x88)](_0x1c5c8c(0x8b),'不支持的命令:\x20'+_0x292612),process[_0x1c5c8c(0x72)](0x1);}function showHelp(){const _0x3f3d0c=a171_0x25d4;console['log'](_0x3f3d0c(0x84)+CLI_BIN_NAME+_0x3f3d0c(0x7d)+CLI_BIN_NAME+_0x3f3d0c(0x8c)+SKILLS_INSTALL_COMMAND_LINE+_0x3f3d0c(0x90));}
1
+ (function(_0x184244,_0x311754){const _0x4b4159=a173_0x5719,_0x2d444a=_0x184244();while(!![]){try{const _0x5b9bf6=-parseInt(_0x4b4159(0x1f3))/0x1+parseInt(_0x4b4159(0x1e5))/0x2*(parseInt(_0x4b4159(0x1f8))/0x3)+parseInt(_0x4b4159(0x1df))/0x4+parseInt(_0x4b4159(0x1da))/0x5*(parseInt(_0x4b4159(0x1dc))/0x6)+-parseInt(_0x4b4159(0x1eb))/0x7+-parseInt(_0x4b4159(0x1e6))/0x8+parseInt(_0x4b4159(0x1ec))/0x9;if(_0x5b9bf6===_0x311754)break;else _0x2d444a['push'](_0x2d444a['shift']());}catch(_0x4b28db){_0x2d444a['push'](_0x2d444a['shift']());}}}(a173_0xf28b,0xc4c9b));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x578067){const _0x23265a=a173_0x5719,_0x4f87bf=[];for(const [_0xd51172,_0x5f2336]of Object[_0x23265a(0x1ef)](_0x578067)){if(_0x5f2336===!![]){const _0x5e1b79=_0xd51172[_0x23265a(0x1ed)](/([A-Z])/g,_0x23265a(0x1f5))['toLowerCase']();_0x4f87bf[_0x23265a(0x1e9)](_0x5e1b79);}}return _0x4f87bf;}export function parseDynamicFlags(){const _0x2411cf=a173_0x5719,_0x3cca25=[];for(let _0x1f5a53=0x3;_0x1f5a53<process[_0x2411cf(0x1e2)][_0x2411cf(0x1e7)];_0x1f5a53++){const _0xf2043f=process[_0x2411cf(0x1e2)][_0x1f5a53];if(_0xf2043f&&_0xf2043f[_0x2411cf(0x1e1)]('--')){const _0x3c11e4=_0xf2043f[_0x2411cf(0x1f0)](0x2);_0x3c11e4&&!_0x3c11e4['includes']('=')&&_0x3cca25['push'](_0x3c11e4);}}return _0x3cca25;}function a173_0xf28b(){const _0x2e5cd8=['--help','enable-bff-save','17811xDqzGL','\x20skill\x20--help\x0a\x20\x20','error','Error:\x20Unsupported\x20command:\x20','85UQKEwk','cwd','63258fsRTIn','Equivalent\x20command:\x20','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','1076336HxigRl','不支持的命令:\x20','startsWith','argv','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','(empty)','368EnWDWi','8343552YeqlFp','length','has','push','skill','4330151VtMGeQ','11932371WTsVkk','replace','\x0aAvailable\x20commands:','entries','slice','add','exit','398962jVsiuw','log','-$1'];a173_0xf28b=function(){return _0x2e5cd8;};return a173_0xf28b();}export function getAllProvidedFlags(_0x2e18dc){const _0x38a0d3=camelCaseFlagsToKebab(_0x2e18dc),_0x3a5aba=parseDynamicFlags(),_0x18f0b4=new Set([..._0x38a0d3,..._0x3a5aba]);return Array['from'](_0x18f0b4);}function a173_0x5719(_0x348bd0,_0x4262b1){_0x348bd0=_0x348bd0-0x1d9;const _0xf28b29=a173_0xf28b();let _0x57196b=_0xf28b29[_0x348bd0];return _0x57196b;}export function normalizeLegacyBffSaveFlags(_0x38c9c3){const _0x35cdec=a173_0x5719,_0x1f3e99=new Set(_0x38c9c3);return _0x1f3e99[_0x35cdec(0x1e8)]('dangerously-bff-save')&&_0x1f3e99[_0x35cdec(0x1f1)](_0x35cdec(0x1f7)),Array['from'](_0x1f3e99);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xa5c397,_0x7ab23b,_0x480334){const _0x3fb67b=a173_0x5719;logger['setLogPath'](process[_0x3fb67b(0x1db)]());if(_0x480334?.['help']||_0xa5c397===_0x3fb67b(0x1f6)){showHelp();return;}console[_0x3fb67b(0x1fa)](_0x3fb67b(0x1d9)+(_0xa5c397||_0x3fb67b(0x1e4))),console[_0x3fb67b(0x1f4)](_0x3fb67b(0x1ee)),console[_0x3fb67b(0x1f4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x3fb67b(0x1f4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x3fb67b(0x1f4)](''),console['log'](_0x3fb67b(0x1dd)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x3fb67b(0x1ea),_0x3fb67b(0x1e0)+_0xa5c397),process[_0x3fb67b(0x1f2)](0x1);}function showHelp(){const _0x32bfc3=a173_0x5719;console[_0x32bfc3(0x1f4)](_0x32bfc3(0x1de)+CLI_BIN_NAME+_0x32bfc3(0x1f9)+CLI_BIN_NAME+_0x32bfc3(0x1e3)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
@@ -1 +1 @@
1
- const a172_0x35d848=a172_0x2580;function a172_0x2580(_0x5efe18,_0x3fa01e){_0x5efe18=_0x5efe18-0x136;const _0x3c30ab=a172_0x3c30();let _0x25809d=_0x3c30ab[_0x5efe18];return _0x25809d;}(function(_0x5c450b,_0x4bcbb){const _0x23a795=a172_0x2580,_0x3f3dc1=_0x5c450b();while(!![]){try{const _0x522531=-parseInt(_0x23a795(0x136))/0x1*(parseInt(_0x23a795(0x13f))/0x2)+parseInt(_0x23a795(0x13b))/0x3+-parseInt(_0x23a795(0x156))/0x4+-parseInt(_0x23a795(0x143))/0x5+parseInt(_0x23a795(0x14b))/0x6*(parseInt(_0x23a795(0x139))/0x7)+-parseInt(_0x23a795(0x14c))/0x8*(parseInt(_0x23a795(0x155))/0x9)+parseInt(_0x23a795(0x152))/0xa*(parseInt(_0x23a795(0x13c))/0xb);if(_0x522531===_0x4bcbb)break;else _0x3f3dc1['push'](_0x3f3dc1['shift']());}catch(_0x1e5448){_0x3f3dc1['push'](_0x3f3dc1['shift']());}}}(a172_0x3c30,0x4038a));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=a172_0x35d848(0x149);export const NPX_SKILLS_SUBCOMMAND_ADD=a172_0x35d848(0x150);export const NPX_SKILLS_FLAG_SKILL=a172_0x35d848(0x14e);export const RABETBASE_SKILL_SOURCE=a172_0x35d848(0x13e);export const LEGACY_RABETBASE_SKILL_SOURCE=a172_0x35d848(0x141);export const DEFAULT_RABETBASE_SKILL_NAME=a172_0x35d848(0x145);export function buildNpxSkillsAddArgv(_0x17cdf9){const _0x1a92fd=a172_0x35d848,_0x46552c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x17cdf9&&_0x46552c[_0x1a92fd(0x144)](NPX_SKILLS_FLAG_SKILL,_0x17cdf9),_0x46552c;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a172_0x35d848(0x148),...buildNpxSkillsAddArgv()][a172_0x35d848(0x146)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a172_0x35d848(0x148),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(_0xe39e7,_0x3ccc37){const _0x1c5002=a172_0x35d848;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xeeaf1d=_0x3ccc37?.[_0x1c5002(0x138)]??_0x1c5002(0x151),_0x19e32f=resolveNpmBin('npx'),_0xce7554=buildNpxSkillsAddArgv(_0x3ccc37?.['skill']),_0xc6eb1e=['npx',..._0xce7554][_0x1c5002(0x146)]('\x20');console[_0x1c5002(0x14a)]('*\x20'+_0xc6eb1e);const _0xc2b197=spawnSync(_0x19e32f,_0xce7554,{'cwd':_0xe39e7,'stdio':_0xeeaf1d,'env':process.env,'shell':![]}),_0x5ca827=_0xc2b197[_0x1c5002(0x153)];if(_0x5ca827===0x0)return{'ok':!![],'status':0x0};let _0x212293='exit\x20'+(_0x5ca827??_0x1c5002(0x13a));if(_0xeeaf1d===_0x1c5002(0x13d)){const _0x1d2a19=_0xc2b197['stderr']?_0xc2b197['stderr'][_0x1c5002(0x137)]()[_0x1c5002(0x154)]():'',_0x3f29e1=_0xc2b197[_0x1c5002(0x140)]?_0xc2b197[_0x1c5002(0x140)][_0x1c5002(0x137)]()[_0x1c5002(0x154)]():'';if(_0x1d2a19)_0x212293=_0x1d2a19;else{if(_0x3f29e1)_0x212293=_0x3f29e1;}}return{'ok':![],'status':_0x5ca827??null,'error':_0x212293};}export function runNpxSkillsRemove(_0x5a3825,_0x709fcf,_0x251799=LEGACY_RABETBASE_SKILL_SOURCE){const _0x3874fb=a172_0x35d848;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x54f59f=_0x709fcf?.[_0x3874fb(0x138)]??_0x3874fb(0x151),_0x58ff81=resolveNpmBin(_0x3874fb(0x148)),_0xe5b2d8=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x3874fb(0x14f),_0x251799,NPX_SKILLS_FLAG_SKILL,_0x709fcf?.[_0x3874fb(0x142)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x709fcf?.[_0x3874fb(0x147)]?['-y']:[]],_0x40424f=[_0x58ff81,..._0xe5b2d8][_0x3874fb(0x146)]('\x20');console[_0x3874fb(0x14a)]('*\x20'+_0x40424f);const _0x4a22bf=spawnSync(_0x58ff81,_0xe5b2d8,{'cwd':_0x5a3825,'stdio':_0x54f59f,'env':process.env,'shell':![]}),_0x5c08b9=_0x4a22bf['status'];if(_0x5c08b9===0x0)return{'ok':!![],'status':0x0};let _0x40d1bf=_0x3874fb(0x157)+(_0x5c08b9??_0x3874fb(0x13a));if(_0x54f59f===_0x3874fb(0x13d)){const _0x32cd1e=_0x4a22bf['stderr']?_0x4a22bf[_0x3874fb(0x14d)][_0x3874fb(0x137)]()[_0x3874fb(0x154)]():'',_0x2cbf01=_0x4a22bf[_0x3874fb(0x140)]?_0x4a22bf[_0x3874fb(0x140)]['toString']()[_0x3874fb(0x154)]():'';if(_0x32cd1e)_0x40d1bf=_0x32cd1e;else{if(_0x2cbf01)_0x40d1bf=_0x2cbf01;}}return{'ok':![],'status':_0x5c08b9??null,'error':_0x40d1bf};}function a172_0x3c30(){const _0x2f3f1d=['unknown','157305gTcPFr','33fgsaqq','pipe','lovrabet/rabetbase','2mbNfyc','stdout','lovrabet/lovrabet-skill','skill','1158670XPQqZc','push','Lovrabet','join','yes','npx','skills','log','6RiXndu','365120zPGDVj','stderr','--skill','remove','add','inherit','2061230ZEfleq','status','trim','54iRDAFP','1430500LFeHvO','exit\x20','68957KtxZfA','toString','stdio','3670814gCwrzy'];a172_0x3c30=function(){return _0x2f3f1d;};return a172_0x3c30();}export function runNpxSkillsAddGlobal(_0x73801e,_0x8fe30e,_0x14bdfd){const _0x503eb0=a172_0x35d848;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3fc70b=_0x14bdfd?.[_0x503eb0(0x138)]??'inherit',_0x1f11da=resolveNpmBin(_0x503eb0(0x148)),_0x224301=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x8fe30e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2fc8d5=[_0x503eb0(0x148),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x8fe30e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x503eb0(0x146)]('\x20');console[_0x503eb0(0x14a)]('*\x20'+_0x2fc8d5);const _0x3075f7=spawnSync(_0x1f11da,_0x224301,{'cwd':_0x73801e,'stdio':_0x3fc70b,'env':process.env,'shell':![]}),_0x3d7e9b=_0x3075f7[_0x503eb0(0x153)];if(_0x3d7e9b===0x0)return{'ok':!![],'status':0x0};let _0x4c7630=_0x503eb0(0x157)+(_0x3d7e9b??_0x503eb0(0x13a));if(_0x3fc70b===_0x503eb0(0x13d)){const _0x98f51f=_0x3075f7[_0x503eb0(0x14d)]?_0x3075f7[_0x503eb0(0x14d)][_0x503eb0(0x137)]()[_0x503eb0(0x154)]():'',_0x7b0cf9=_0x3075f7['stdout']?_0x3075f7[_0x503eb0(0x140)][_0x503eb0(0x137)]()['trim']():'';if(_0x98f51f)_0x4c7630=_0x98f51f;else{if(_0x7b0cf9)_0x4c7630=_0x7b0cf9;}}return{'ok':![],'status':_0x3d7e9b??null,'error':_0x4c7630};}
1
+ const a174_0x432e1a=a174_0x3c4b;(function(_0x5d0971,_0x1c1d63){const _0xd6fa1b=a174_0x3c4b,_0x3f89e0=_0x5d0971();while(!![]){try{const _0x4cd6e9=parseInt(_0xd6fa1b(0x19b))/0x1*(parseInt(_0xd6fa1b(0x195))/0x2)+-parseInt(_0xd6fa1b(0x1ab))/0x3+parseInt(_0xd6fa1b(0x199))/0x4*(-parseInt(_0xd6fa1b(0x19e))/0x5)+parseInt(_0xd6fa1b(0x1a5))/0x6+parseInt(_0xd6fa1b(0x1a4))/0x7*(-parseInt(_0xd6fa1b(0x1a7))/0x8)+parseInt(_0xd6fa1b(0x1a2))/0x9+-parseInt(_0xd6fa1b(0x1a9))/0xa*(-parseInt(_0xd6fa1b(0x1b4))/0xb);if(_0x4cd6e9===_0x1c1d63)break;else _0x3f89e0['push'](_0x3f89e0['shift']());}catch(_0x16ccf2){_0x3f89e0['push'](_0x3f89e0['shift']());}}}(a174_0xe602,0x7f615));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';function a174_0x3c4b(_0x28a13a,_0x44c2cc){_0x28a13a=_0x28a13a-0x195;const _0xe6025e=a174_0xe602();let _0x3c4bb3=_0xe6025e[_0x28a13a];return _0x3c4bb3;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a174_0x432e1a(0x1a1);export const NPX_SKILLS_SUBCOMMAND_ADD=a174_0x432e1a(0x1a3);export const NPX_SKILLS_FLAG_SKILL=a174_0x432e1a(0x19a);export const RABETBASE_SKILL_SOURCE=a174_0x432e1a(0x1a8);export const LEGACY_RABETBASE_SKILL_SOURCE=a174_0x432e1a(0x1b5);export const DEFAULT_RABETBASE_SKILL_NAME=a174_0x432e1a(0x198);export function buildNpxSkillsAddArgv(_0x88799){const _0x3fe2af=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x88799&&_0x3fe2af['push'](NPX_SKILLS_FLAG_SKILL,_0x88799),_0x3fe2af;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a174_0x432e1a(0x1a0),...buildNpxSkillsAddArgv()][a174_0x432e1a(0x1b2)]('\x20');function a174_0xe602(){const _0x4a322c=['45BkbUrZ','pipe','npx','skills','3462561UaikmB','add','387632tXRqrv','5258322Jovoae','yes','8GOMQYr','lovrabet/rabetbase','70VHzYPD','exit\x20','908664oxNAFE','toString','stderr','status','remove','inherit','skill','join','log','728332LqBIHr','lovrabet/lovrabet-skill','1782esmGSt','trim','stdout','Lovrabet','456156KtUdPQ','--skill','204CubtDQ','stdio','unknown'];a174_0xe602=function(){return _0x4a322c;};return a174_0xe602();}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][a174_0x432e1a(0x1b2)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2a8ed0,_0x43f547){const _0x5e8161=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44c4d9=_0x43f547?.['stdio']??_0x5e8161(0x1b0),_0x9e5dd7=resolveNpmBin(_0x5e8161(0x1a0)),_0x279605=buildNpxSkillsAddArgv(_0x43f547?.[_0x5e8161(0x1b1)]),_0x59fa57=[_0x5e8161(0x1a0),..._0x279605][_0x5e8161(0x1b2)]('\x20');console['log']('*\x20'+_0x59fa57);const _0x2f117f=spawnSync(_0x9e5dd7,_0x279605,{'cwd':_0x2a8ed0,'stdio':_0x44c4d9,'env':process.env,'shell':![]}),_0x470f9a=_0x2f117f['status'];if(_0x470f9a===0x0)return{'ok':!![],'status':0x0};let _0x2feb9a=_0x5e8161(0x1aa)+(_0x470f9a??_0x5e8161(0x19d));if(_0x44c4d9===_0x5e8161(0x19f)){const _0x454c97=_0x2f117f['stderr']?_0x2f117f['stderr'][_0x5e8161(0x1ac)]()['trim']():'',_0x416c36=_0x2f117f[_0x5e8161(0x197)]?_0x2f117f[_0x5e8161(0x197)]['toString']()[_0x5e8161(0x196)]():'';if(_0x454c97)_0x2feb9a=_0x454c97;else{if(_0x416c36)_0x2feb9a=_0x416c36;}}return{'ok':![],'status':_0x470f9a??null,'error':_0x2feb9a};}export function runNpxSkillsRemove(_0x36dcbc,_0x4be8a5,_0x46889f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2a1e58=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57f52f=_0x4be8a5?.[_0x2a1e58(0x19c)]??_0x2a1e58(0x1b0),_0x118a4c=resolveNpmBin(_0x2a1e58(0x1a0)),_0x385d84=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2a1e58(0x1af),_0x46889f,NPX_SKILLS_FLAG_SKILL,_0x4be8a5?.[_0x2a1e58(0x1b1)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x4be8a5?.[_0x2a1e58(0x1a6)]?['-y']:[]],_0x486b36=[_0x118a4c,..._0x385d84][_0x2a1e58(0x1b2)]('\x20');console[_0x2a1e58(0x1b3)]('*\x20'+_0x486b36);const _0x376d17=spawnSync(_0x118a4c,_0x385d84,{'cwd':_0x36dcbc,'stdio':_0x57f52f,'env':process.env,'shell':![]}),_0x3efa4f=_0x376d17['status'];if(_0x3efa4f===0x0)return{'ok':!![],'status':0x0};let _0xdfb2e1=_0x2a1e58(0x1aa)+(_0x3efa4f??_0x2a1e58(0x19d));if(_0x57f52f===_0x2a1e58(0x19f)){const _0x26f01d=_0x376d17['stderr']?_0x376d17[_0x2a1e58(0x1ad)][_0x2a1e58(0x1ac)]()['trim']():'',_0x29408e=_0x376d17[_0x2a1e58(0x197)]?_0x376d17['stdout']['toString']()[_0x2a1e58(0x196)]():'';if(_0x26f01d)_0xdfb2e1=_0x26f01d;else{if(_0x29408e)_0xdfb2e1=_0x29408e;}}return{'ok':![],'status':_0x3efa4f??null,'error':_0xdfb2e1};}export function runNpxSkillsAddGlobal(_0x3a6d0d,_0xf269b4,_0xc934d3){const _0x181c60=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x159dc8=_0xc934d3?.['stdio']??_0x181c60(0x1b0),_0x2238d5=resolveNpmBin(_0x181c60(0x1a0)),_0x26ae94=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xf269b4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9e45fa=[_0x181c60(0x1a0),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xf269b4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x181c60(0x1b2)]('\x20');console[_0x181c60(0x1b3)]('*\x20'+_0x9e45fa);const _0x46c981=spawnSync(_0x2238d5,_0x26ae94,{'cwd':_0x3a6d0d,'stdio':_0x159dc8,'env':process.env,'shell':![]}),_0x179467=_0x46c981[_0x181c60(0x1ae)];if(_0x179467===0x0)return{'ok':!![],'status':0x0};let _0x17a7e0=_0x181c60(0x1aa)+(_0x179467??_0x181c60(0x19d));if(_0x159dc8===_0x181c60(0x19f)){const _0x621f=_0x46c981['stderr']?_0x46c981[_0x181c60(0x1ad)][_0x181c60(0x1ac)]()[_0x181c60(0x196)]():'',_0x1bbd98=_0x46c981[_0x181c60(0x197)]?_0x46c981[_0x181c60(0x197)][_0x181c60(0x1ac)]()['trim']():'';if(_0x621f)_0x17a7e0=_0x621f;else{if(_0x1bbd98)_0x17a7e0=_0x1bbd98;}}return{'ok':![],'status':_0x179467??null,'error':_0x17a7e0};}
@@ -1 +1 @@
1
- (function(_0x4b2c9f,_0x2fce55){const _0x190ccf=a173_0x438f,_0x5f0bbc=_0x4b2c9f();while(!![]){try{const _0x1b3d80=-parseInt(_0x190ccf(0x176))/0x1*(-parseInt(_0x190ccf(0x17a))/0x2)+-parseInt(_0x190ccf(0x182))/0x3+parseInt(_0x190ccf(0x186))/0x4*(-parseInt(_0x190ccf(0x188))/0x5)+-parseInt(_0x190ccf(0x180))/0x6+parseInt(_0x190ccf(0x17d))/0x7*(parseInt(_0x190ccf(0x179))/0x8)+parseInt(_0x190ccf(0x187))/0x9*(parseInt(_0x190ccf(0x178))/0xa)+-parseInt(_0x190ccf(0x177))/0xb*(-parseInt(_0x190ccf(0x184))/0xc);if(_0x1b3d80===_0x2fce55)break;else _0x5f0bbc['push'](_0x5f0bbc['shift']());}catch(_0x1c7773){_0x5f0bbc['push'](_0x5f0bbc['shift']());}}}(a173_0x3206,0x5d1bf));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a173_0x438f(_0x4a70cf,_0x3fdca1){_0x4a70cf=_0x4a70cf-0x174;const _0x320655=a173_0x3206();let _0x438f8d=_0x320655[_0x4a70cf];return _0x438f8d;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x13b572){return SENSITIVE_PATTERNS['some'](_0x1d7123=>_0x1d7123['test'](_0x13b572));}function sanitizeFlags(_0x1a2875){const _0x432612=a173_0x438f,_0x2e7a07={};for(const [_0x3078d0,_0x1da92f]of Object[_0x432612(0x181)](_0x1a2875)){isSensitiveKey(_0x3078d0)?_0x2e7a07[_0x3078d0]=_0x1da92f!=null&&_0x1da92f!==''?_0x432612(0x17b):_0x1da92f:_0x2e7a07[_0x3078d0]=_0x1da92f;}return _0x2e7a07;}function a173_0x3206(){const _0x1bb193=['message','4PdDBcB','11EkTXCA','848890eRpkWB','40jdUuKy','109370kLoUdc','[REDACTED]','service','145327joHAFV','flags','stringify','3197340iONgig','entries','1501080vSBkBm','durationMs','14744328EpXcNc','error','4bUxdJt','9KkqExK','1107515bygZCd','rabetbase.command','command'];a173_0x3206=function(){return _0x1bb193;};return a173_0x3206();}export async function reportCommandTrace(_0x1dad37){const _0x322cb6=a173_0x438f;try{const _0x356e89=sanitizeFlags(_0x1dad37[_0x322cb6(0x17e)]);await sendCliTraceLog({'spanName':_0x322cb6(0x189),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1dad37[_0x322cb6(0x17c)],'command.name':_0x1dad37[_0x322cb6(0x174)],'command.flags':JSON[_0x322cb6(0x17f)](_0x356e89),..._0x1dad37[_0x322cb6(0x183)]!=null?{'command.duration_ms':_0x1dad37[_0x322cb6(0x183)]}:{},..._0x1dad37[_0x322cb6(0x185)]?{'command.error':_0x1dad37[_0x322cb6(0x185)]instanceof Error?_0x1dad37[_0x322cb6(0x185)][_0x322cb6(0x175)]:String(_0x1dad37[_0x322cb6(0x185)])}:{}}});}catch{}}
1
+ function a175_0x2650(){const _0x40c7b2=['1wnmkuw','flags','error','10517175EQuroo','4348464seJoxE','service','command','13328928XpvuKu','145767lLrwbv','some','message','entries','38338707nnisSw','10PheGDV','test','stringify','37458sACEUK','10pEEDJY','durationMs','6355237vSyNDG','60jnRFfF'];a175_0x2650=function(){return _0x40c7b2;};return a175_0x2650();}function a175_0x5ebc(_0x5997a8,_0x560d62){_0x5997a8=_0x5997a8-0x90;const _0x26504e=a175_0x2650();let _0x5ebcd9=_0x26504e[_0x5997a8];return _0x5ebcd9;}(function(_0x41b398,_0x5be073){const _0x4ae32a=a175_0x5ebc,_0x407660=_0x41b398();while(!![]){try{const _0x3b3807=parseInt(_0x4ae32a(0xa0))/0x1*(-parseInt(_0x4ae32a(0x9b))/0x2)+parseInt(_0x4ae32a(0x93))/0x3*(-parseInt(_0x4ae32a(0x9f))/0x4)+-parseInt(_0x4ae32a(0x98))/0x5*(parseInt(_0x4ae32a(0xa4))/0x6)+-parseInt(_0x4ae32a(0x9e))/0x7+parseInt(_0x4ae32a(0x92))/0x8+-parseInt(_0x4ae32a(0xa3))/0x9*(parseInt(_0x4ae32a(0x9c))/0xa)+parseInt(_0x4ae32a(0x97))/0xb;if(_0x3b3807===_0x5be073)break;else _0x407660['push'](_0x407660['shift']());}catch(_0x5ca5b5){_0x407660['push'](_0x407660['shift']());}}}(a175_0x2650,0xd656f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';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(_0x1299bc){const _0x5d1f25=a175_0x5ebc;return SENSITIVE_PATTERNS[_0x5d1f25(0x94)](_0xa9ea5=>_0xa9ea5[_0x5d1f25(0x99)](_0x1299bc));}function sanitizeFlags(_0x623e61){const _0x48a570=a175_0x5ebc,_0x30d5ed={};for(const [_0x2e64bf,_0x5ad669]of Object[_0x48a570(0x96)](_0x623e61)){isSensitiveKey(_0x2e64bf)?_0x30d5ed[_0x2e64bf]=_0x5ad669!=null&&_0x5ad669!==''?'[REDACTED]':_0x5ad669:_0x30d5ed[_0x2e64bf]=_0x5ad669;}return _0x30d5ed;}export async function reportCommandTrace(_0x4adad8){const _0x1cd581=a175_0x5ebc;try{const _0x329456=sanitizeFlags(_0x4adad8[_0x1cd581(0xa1)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x4adad8[_0x1cd581(0x90)],'command.name':_0x4adad8[_0x1cd581(0x91)],'command.flags':JSON[_0x1cd581(0x9a)](_0x329456),..._0x4adad8[_0x1cd581(0x9d)]!=null?{'command.duration_ms':_0x4adad8['durationMs']}:{},..._0x4adad8[_0x1cd581(0xa2)]?{'command.error':_0x4adad8[_0x1cd581(0xa2)]instanceof Error?_0x4adad8[_0x1cd581(0xa2)][_0x1cd581(0x95)]:String(_0x4adad8[_0x1cd581(0xa2)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0xa9a7f4,_0x12fed8){var _0x504ce8=a174_0x5907,_0x592094=_0xa9a7f4();while(!![]){try{var _0x216fa7=parseInt(_0x504ce8(0x172))/0x1*(parseInt(_0x504ce8(0x16d))/0x2)+parseInt(_0x504ce8(0x16c))/0x3*(-parseInt(_0x504ce8(0x175))/0x4)+parseInt(_0x504ce8(0x169))/0x5+parseInt(_0x504ce8(0x177))/0x6*(-parseInt(_0x504ce8(0x173))/0x7)+-parseInt(_0x504ce8(0x16b))/0x8+parseInt(_0x504ce8(0x170))/0x9*(-parseInt(_0x504ce8(0x174))/0xa)+parseInt(_0x504ce8(0x176))/0xb;if(_0x216fa7===_0x12fed8)break;else _0x592094['push'](_0x592094['shift']());}catch(_0x2c7eec){_0x592094['push'](_0x592094['shift']());}}}(a174_0x3a82,0x6ba81));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2d63e4,_0xdc1d65){var _0x549229=a174_0x5907;try{await sendCliTraceLog({'spanName':_0x549229(0x171),'logData':{'rabetbase.help.kind':_0x2d63e4,..._0xdc1d65?.[_0x549229(0x16a)]&&{'rabetbase.help.service':_0xdc1d65[_0x549229(0x16a)]}}});}catch(_0x4e6aca){console[_0x549229(0x16e)](_0x549229(0x16f),_0x4e6aca);}}function a174_0x5907(_0xaeeea1,_0x52b6a){_0xaeeea1=_0xaeeea1-0x169;var _0x3a82cc=a174_0x3a82();var _0x5907a1=_0x3a82cc[_0xaeeea1];return _0x5907a1;}function a174_0x3a82(){var _0x144e1b=['10EZgQlr','19568WhIzSb','8812122WqqQLU','199590TbUkmD','527580AheEeq','service','2132144ZCsuTg','3AupEhY','44HcRyuq','error','Failed\x20to\x20report\x20CLI\x20help\x20trace:','946089ephRQC','cli.help','1997ksLsQA','28SKdbVj'];a174_0x3a82=function(){return _0x144e1b;};return a174_0x3a82();}
1
+ function a176_0x5ea8(){var _0x514d97=['79037zJivff','4REnuWI','service','143afTxXf','424TGDFIc','444086wdIMoQ','2377835JZPgMp','1VRwsqq','1342350IhZUZa','error','9148932JjziUk','1540836NTHbID','cli.help','2584660ltQWsl'];a176_0x5ea8=function(){return _0x514d97;};return a176_0x5ea8();}function a176_0x193e(_0x304205,_0x1900ee){_0x304205=_0x304205-0x170;var _0x5ea8b8=a176_0x5ea8();var _0x193e1a=_0x5ea8b8[_0x304205];return _0x193e1a;}(function(_0x4c8cce,_0x1a9589){var _0x1cb924=a176_0x193e,_0x3241ba=_0x4c8cce();while(!![]){try{var _0x41f653=parseInt(_0x1cb924(0x17d))/0x1*(parseInt(_0x1cb924(0x17b))/0x2)+-parseInt(_0x1cb924(0x170))/0x3+parseInt(_0x1cb924(0x177))/0x4*(-parseInt(_0x1cb924(0x17c))/0x5)+-parseInt(_0x1cb924(0x173))/0x6+-parseInt(_0x1cb924(0x176))/0x7*(parseInt(_0x1cb924(0x17a))/0x8)+-parseInt(_0x1cb924(0x172))/0x9+-parseInt(_0x1cb924(0x175))/0xa*(-parseInt(_0x1cb924(0x179))/0xb);if(_0x41f653===_0x1a9589)break;else _0x3241ba['push'](_0x3241ba['shift']());}catch(_0x461525){_0x3241ba['push'](_0x3241ba['shift']());}}}(a176_0x5ea8,0xc036b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x48bef2,_0x39a1f7){var _0x5689ee=a176_0x193e;try{await sendCliTraceLog({'spanName':_0x5689ee(0x174),'logData':{'rabetbase.help.kind':_0x48bef2,..._0x39a1f7?.[_0x5689ee(0x178)]&&{'rabetbase.help.service':_0x39a1f7[_0x5689ee(0x178)]}}});}catch(_0x2f1b88){console[_0x5689ee(0x171)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x2f1b88);}}
@@ -1 +1 @@
1
- (function(_0x12c142,_0x38d624){const _0x160dd1=a175_0x4c3e,_0x360f44=_0x12c142();while(!![]){try{const _0x8d0fc0=parseInt(_0x160dd1(0x180))/0x1+parseInt(_0x160dd1(0x183))/0x2*(-parseInt(_0x160dd1(0x186))/0x3)+parseInt(_0x160dd1(0x184))/0x4*(parseInt(_0x160dd1(0x177))/0x5)+-parseInt(_0x160dd1(0x17b))/0x6*(parseInt(_0x160dd1(0x181))/0x7)+-parseInt(_0x160dd1(0x185))/0x8*(parseInt(_0x160dd1(0x182))/0x9)+parseInt(_0x160dd1(0x17d))/0xa+-parseInt(_0x160dd1(0x178))/0xb;if(_0x8d0fc0===_0x38d624)break;else _0x360f44['push'](_0x360f44['shift']());}catch(_0x4ff4d0){_0x360f44['push'](_0x360f44['shift']());}}}(a175_0x59c0,0xbec9c));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a175_0x4c3e(_0x226c57,_0x451b37){_0x226c57=_0x226c57-0x176;const _0x59c0a0=a175_0x59c0();let _0x4c3e38=_0x59c0a0[_0x226c57];return _0x4c3e38;}import{getSessionUserInfo}from'../auth/get-session-user.js';function a175_0x59c0(){const _0x2190b7=['unknown','9957160XDLCIM','email','user','1517533MUhrNR','7wkCykL','858411RbJrEz','98dzYuRe','108WGAVKw','16jIjOuu','28671hVUyIh','nickname','735hSzCNE','4088656UqHWVt','production','tenant','4230018nVQqAx'];a175_0x59c0=function(){return _0x2190b7;};return a175_0x59c0();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x4e2eff=a175_0x4c3e,_0x336dcf=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x257ad6=_0x336dcf?.[_0x4e2eff(0x17f)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4e2eff(0x17c)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x4e2eff(0x179))}),setUserContext({'id':_0x257ad6?.['id'],'username':_0x257ad6?.['username'],'nickname':_0x257ad6?.[_0x4e2eff(0x176)],'email':_0x257ad6?.[_0x4e2eff(0x17e)],'tenantCode':_0x257ad6?.[_0x4e2eff(0x17a)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x336dcf;}
1
+ (function(_0x1551a6,_0x10ae8e){const _0x1237ad=a177_0x5645,_0x1edeab=_0x1551a6();while(!![]){try{const _0x154af7=parseInt(_0x1237ad(0xab))/0x1+-parseInt(_0x1237ad(0xaf))/0x2+parseInt(_0x1237ad(0xa9))/0x3+parseInt(_0x1237ad(0xb4))/0x4+-parseInt(_0x1237ad(0xae))/0x5+-parseInt(_0x1237ad(0xb1))/0x6*(parseInt(_0x1237ad(0xac))/0x7)+parseInt(_0x1237ad(0xad))/0x8;if(_0x154af7===_0x10ae8e)break;else _0x1edeab['push'](_0x1edeab['shift']());}catch(_0x2b568c){_0x1edeab['push'](_0x1edeab['shift']());}}}(a177_0x129c,0x2a415));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a177_0x5645(_0x168311,_0x24d96a){_0x168311=_0x168311-0xa9;const _0x129c97=a177_0x129c();let _0x564577=_0x129c97[_0x168311];return _0x564577;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a177_0x129c(){const _0x524f76=['254950Nxcvko','7JPZtiJ','1157056iHbHZY','590085uVomQf','226632XbvRin','unknown','985758OxuAsJ','tenant_code','username','221784HrawXI','user','email','production','341025GwYlWD','daily'];a177_0x129c=function(){return _0x524f76;};return a177_0x129c();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1ae46a=a177_0x5645,_0x253c36=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x32c4b1=_0x253c36?.[_0x1ae46a(0xb5)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1ae46a(0xb0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1ae46a(0xaa):_0x1ae46a(0xb7))}),setUserContext({'id':_0x32c4b1?.['id'],'username':_0x32c4b1?.[_0x1ae46a(0xb3)],'nickname':_0x32c4b1?.['nickname'],'email':_0x32c4b1?.[_0x1ae46a(0xb6)],'tenantCode':_0x32c4b1?.['tenant'][_0x1ae46a(0xb2)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x253c36;}
@@ -1 +1 @@
1
- function a176_0xf3e6(){const _0x3af369=['3786lixUve','once','176MsotBj','exit','2441634rrLHSR','1698745Vzadem','2OGZjOC','SIGINT','4ZtDySp','2454237eBuSiv','751960pUCYjp','240CyAABd','829628DNOMKU','8kuZsCh','16373VyxLuN','4996098WoHOLa'];a176_0xf3e6=function(){return _0x3af369;};return a176_0xf3e6();}(function(_0x2eccee,_0x3d533a){const _0x10e2a9=a176_0x56c7,_0x1d1ccd=_0x2eccee();while(!![]){try{const _0x47b48e=-parseInt(_0x10e2a9(0x68))/0x1*(parseInt(_0x10e2a9(0x6e))/0x2)+-parseInt(_0x10e2a9(0x71))/0x3+-parseInt(_0x10e2a9(0x6a))/0x4*(parseInt(_0x10e2a9(0x67))/0x5)+parseInt(_0x10e2a9(0x72))/0x6*(-parseInt(_0x10e2a9(0x70))/0x7)+-parseInt(_0x10e2a9(0x6f))/0x8*(-parseInt(_0x10e2a9(0x6b))/0x9)+-parseInt(_0x10e2a9(0x6c))/0xa*(-parseInt(_0x10e2a9(0x74))/0xb)+parseInt(_0x10e2a9(0x6d))/0xc*(parseInt(_0x10e2a9(0x66))/0xd);if(_0x47b48e===_0x3d533a)break;else _0x1d1ccd['push'](_0x1d1ccd['shift']());}catch(_0x133e9c){_0x1d1ccd['push'](_0x1d1ccd['shift']());}}}(a176_0xf3e6,0xe0fc1));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 a176_0x56c7(_0x20b9bf,_0x3ec870){_0x20b9bf=_0x20b9bf-0x66;const _0xf3e691=a176_0xf3e6();let _0x56c780=_0xf3e691[_0x20b9bf];return _0x56c780;}export function registerOtelShutdownOnExit(){const _0x21cf0a=a176_0x56c7;process[_0x21cf0a(0x73)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x3a87cf=()=>{const _0x16c716=_0x21cf0a;void flushOtelNodeIfUsed()['then'](()=>process[_0x16c716(0x75)](0x0));};process[_0x21cf0a(0x73)](_0x21cf0a(0x69),_0x3a87cf),process['once']('SIGTERM',_0x3a87cf);}export async function exitWithOtelShutdown(_0x1007cc){const _0xad6859=a176_0x56c7;await flushOtelNodeIfUsed(),process[_0xad6859(0x75)](_0x1007cc);}
1
+ (function(_0x132cd3,_0x649b59){const _0x21963b=a178_0x4fde,_0xc0235a=_0x132cd3();while(!![]){try{const _0x5e392d=parseInt(_0x21963b(0x122))/0x1*(-parseInt(_0x21963b(0x119))/0x2)+parseInt(_0x21963b(0x11b))/0x3*(-parseInt(_0x21963b(0x126))/0x4)+-parseInt(_0x21963b(0x11d))/0x5+parseInt(_0x21963b(0x123))/0x6*(-parseInt(_0x21963b(0x11c))/0x7)+-parseInt(_0x21963b(0x11e))/0x8*(-parseInt(_0x21963b(0x125))/0x9)+parseInt(_0x21963b(0x121))/0xa+parseInt(_0x21963b(0x124))/0xb;if(_0x5e392d===_0x649b59)break;else _0xc0235a['push'](_0xc0235a['shift']());}catch(_0x56177d){_0xc0235a['push'](_0xc0235a['shift']());}}}(a178_0x27cf,0x36f16));function a178_0x27cf(){const _0x1e91fd=['91CHVxTC','1986300RbIaWL','56REMJWd','then','once','3484650TmCoVW','147592YziscJ','31986cyfeuy','7215934PatrKg','374301YEOFbJ','4ebwfXs','exit','6FNSGRF','SIGINT','483591AcIgsz'];a178_0x27cf=function(){return _0x1e91fd;};return a178_0x27cf();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x596ee9=a178_0x4fde;process[_0x596ee9(0x120)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x1b8fe0=()=>{const _0x5d19b8=_0x596ee9;void flushOtelNodeIfUsed()[_0x5d19b8(0x11f)](()=>process[_0x5d19b8(0x127)](0x0));};process[_0x596ee9(0x120)](_0x596ee9(0x11a),_0x1b8fe0),process[_0x596ee9(0x120)]('SIGTERM',_0x1b8fe0);}function a178_0x4fde(_0x3c6c41,_0x6831cc){_0x3c6c41=_0x3c6c41-0x119;const _0x27cf95=a178_0x27cf();let _0x4fde99=_0x27cf95[_0x3c6c41];return _0x4fde99;}export async function exitWithOtelShutdown(_0x2c49ab){const _0x455f87=a178_0x4fde;await flushOtelNodeIfUsed(),process[_0x455f87(0x127)](_0x2c49ab);}
@@ -1 +1 @@
1
- (function(_0x3d598c,_0x1d7350){const _0x2a9b06=a177_0x42df,_0x26f925=_0x3d598c();while(!![]){try{const _0x26d850=-parseInt(_0x2a9b06(0xa4))/0x1*(parseInt(_0x2a9b06(0xa5))/0x2)+parseInt(_0x2a9b06(0xa0))/0x3+-parseInt(_0x2a9b06(0xa1))/0x4+-parseInt(_0x2a9b06(0xac))/0x5+parseInt(_0x2a9b06(0x9e))/0x6+parseInt(_0x2a9b06(0xa2))/0x7*(parseInt(_0x2a9b06(0xab))/0x8)+-parseInt(_0x2a9b06(0x9f))/0x9*(-parseInt(_0x2a9b06(0xa7))/0xa);if(_0x26d850===_0x1d7350)break;else _0x26f925['push'](_0x26f925['shift']());}catch(_0x3b40bc){_0x26f925['push'](_0x26f925['shift']());}}}(a177_0x4f11,0x7533b));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a177_0x4f11(){const _0x24cb25=['851828EGRFXL','2107679MhZMYB','logData','27TCbedV','53742syToEz','version','10TuJYWi','spanName','traceparent','traceName','24qnytNP','2766260NNKXBF','3082116CmJjJK','4230999scNCQz','254091IHskQY'];a177_0x4f11=function(){return _0x24cb25;};return a177_0x4f11();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a177_0x42df(_0x223989,_0x5c7dc2){_0x223989=_0x223989-0x9e;const _0x4f11eb=a177_0x4f11();let _0x42df5d=_0x4f11eb[_0x223989];return _0x42df5d;}export async function sendCliTraceLog(_0x444a79){const _0x30b0a1=a177_0x42df;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x444a79[_0x30b0a1(0xaa)]??DEFAULT_TRACE_NAME,'version':_0x444a79[_0x30b0a1(0xa6)]??getCliVersion(),'spanName':_0x444a79[_0x30b0a1(0xa8)],'eventType':'manual','logData':_0x444a79[_0x30b0a1(0xa3)],..._0x444a79['traceparent']&&{'traceparent':_0x444a79[_0x30b0a1(0xa9)]}});}
1
+ const a179_0x4b1fee=a179_0x20fb;(function(_0x235a35,_0x171dbe){const _0x4d9fcc=a179_0x20fb,_0xfc6ade=_0x235a35();while(!![]){try{const _0x3d2a95=parseInt(_0x4d9fcc(0x10f))/0x1*(-parseInt(_0x4d9fcc(0x116))/0x2)+parseInt(_0x4d9fcc(0x11a))/0x3*(-parseInt(_0x4d9fcc(0x118))/0x4)+-parseInt(_0x4d9fcc(0x112))/0x5+-parseInt(_0x4d9fcc(0x113))/0x6*(parseInt(_0x4d9fcc(0x11c))/0x7)+-parseInt(_0x4d9fcc(0x11b))/0x8*(-parseInt(_0x4d9fcc(0x117))/0x9)+parseInt(_0x4d9fcc(0x111))/0xa+parseInt(_0x4d9fcc(0x110))/0xb;if(_0x3d2a95===_0x171dbe)break;else _0xfc6ade['push'](_0xfc6ade['shift']());}catch(_0x4bd99d){_0xfc6ade['push'](_0xfc6ade['shift']());}}}(a179_0x6748,0x424cd));import{sendTraceLog}from'@lovrabet/otel-logger';function a179_0x20fb(_0x387eae,_0x3802c0){_0x387eae=_0x387eae-0x10d;const _0x674836=a179_0x6748();let _0x20fb28=_0x674836[_0x387eae];return _0x20fb28;}function a179_0x6748(){const _0x457279=['5710518UJtkwI','714650KnIEPn','1569575iBzfvK','312522fSQpPC','traceName','manual','64HxmZkk','90zwPhmL','26964wWmKlR','rabetbase-cli','15nkPpXg','361360xObelg','14nLMwAJ','spanName','version','9967rlaPXR'];a179_0x6748=function(){return _0x457279;};return a179_0x6748();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a179_0x4b1fee(0x119);export async function sendCliTraceLog(_0x13c2ae){const _0x29a692=a179_0x4b1fee;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x13c2ae[_0x29a692(0x114)]??DEFAULT_TRACE_NAME,'version':_0x13c2ae[_0x29a692(0x10e)]??getCliVersion(),'spanName':_0x13c2ae[_0x29a692(0x10d)],'eventType':_0x29a692(0x115),'logData':_0x13c2ae['logData'],..._0x13c2ae['traceparent']&&{'traceparent':_0x13c2ae['traceparent']}});}