@lovrabet/rabetbase-cli 2.1.14-beta.2 → 2.1.14-beta.3

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 (202) 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/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/link-create.js +1 -1
  58. package/lib/commands/dataset/link-delete.js +1 -1
  59. package/lib/commands/dataset/link-shared.js +1 -1
  60. package/lib/commands/dataset/link-update.js +1 -1
  61. package/lib/commands/dataset/links.js +1 -1
  62. package/lib/commands/dataset/list.js +1 -1
  63. package/lib/commands/dataset/operations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/shared.js +1 -1
  103. package/lib/commands/page/standard-page-status.js +1 -1
  104. package/lib/commands/page/sync.js +1 -1
  105. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  106. package/lib/commands/project/create/format-elapsed.js +1 -1
  107. package/lib/commands/project/create/main.js +1 -1
  108. package/lib/commands/project/create/non-interactive.js +1 -1
  109. package/lib/commands/project/create/project-template-path.js +1 -1
  110. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  111. package/lib/commands/project/create/use-format-code.js +1 -1
  112. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  113. package/lib/commands/project/index.js +1 -1
  114. package/lib/commands/project/init.js +1 -1
  115. package/lib/commands/project/upgrade.js +1 -1
  116. package/lib/commands/registry.js +1 -1
  117. package/lib/commands/run/index.js +1 -1
  118. package/lib/commands/schema.js +1 -1
  119. package/lib/commands/skill/index.js +1 -1
  120. package/lib/commands/sql/create.js +1 -1
  121. package/lib/commands/sql/delete.js +1 -1
  122. package/lib/commands/sql/detail.js +1 -1
  123. package/lib/commands/sql/exec.js +1 -1
  124. package/lib/commands/sql/index.js +1 -1
  125. package/lib/commands/sql/list.js +1 -1
  126. package/lib/commands/sql/pull.js +1 -1
  127. package/lib/commands/sql/push.js +1 -1
  128. package/lib/commands/sql/save.js +1 -1
  129. package/lib/commands/sql/shared.js +1 -1
  130. package/lib/commands/sql/status.js +1 -1
  131. package/lib/commands/sql/validate.js +1 -1
  132. package/lib/config/schema.js +1 -1
  133. package/lib/constant/cdn.js +1 -1
  134. package/lib/constant/cli.js +1 -1
  135. package/lib/constant/defaults.js +1 -1
  136. package/lib/constant/domain.js +1 -1
  137. package/lib/constant/env.js +1 -1
  138. package/lib/constant/output.js +1 -1
  139. package/lib/constant/paths.js +1 -1
  140. package/lib/constant/risk.js +1 -1
  141. package/lib/context.js +1 -1
  142. package/lib/core/alias-resolver.js +1 -1
  143. package/lib/core/api-client.js +1 -1
  144. package/lib/core/bff/config.js +1 -1
  145. package/lib/core/bff/file-system.js +1 -1
  146. package/lib/core/bff/hash.js +1 -1
  147. package/lib/core/bff/lock.js +1 -1
  148. package/lib/core/bff/utils.js +1 -1
  149. package/lib/core/db-resolver.js +1 -1
  150. package/lib/core/page/file-system.js +1 -1
  151. package/lib/core/page/hash.js +1 -1
  152. package/lib/core/page/lock.js +1 -1
  153. package/lib/core/sql-sync/config.js +1 -1
  154. package/lib/core/sql-sync/file-system.js +1 -1
  155. package/lib/core/sql-sync/hash.js +1 -1
  156. package/lib/core/sql-sync/lock.js +1 -1
  157. package/lib/core/sql-sync/utils.js +1 -1
  158. package/lib/core/sql-validator.js +1 -1
  159. package/lib/errors.js +1 -1
  160. package/lib/framework/build-all-flags.js +1 -1
  161. package/lib/framework/flags.js +1 -1
  162. package/lib/framework/help.js +1 -1
  163. package/lib/framework/index.js +1 -1
  164. package/lib/framework/output.js +1 -1
  165. package/lib/framework/response.js +1 -1
  166. package/lib/framework/runner-alias.js +1 -1
  167. package/lib/framework/runner.js +1 -1
  168. package/lib/framework/schema-export.js +1 -1
  169. package/lib/framework/types.js +1 -1
  170. package/lib/generated/build-info.js +1 -1
  171. package/lib/help.js +1 -1
  172. package/lib/skills/main.js +1 -1
  173. package/lib/skills/npx-skills-add.js +1 -1
  174. package/lib/telemetry/cli-command-trace.js +1 -1
  175. package/lib/telemetry/cli-help-trace.js +1 -1
  176. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  177. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  178. package/lib/telemetry/send-cli-trace-log.js +1 -1
  179. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  180. package/lib/utils/ai_config.js +1 -1
  181. package/lib/utils/apply-jq-filter.js +1 -1
  182. package/lib/utils/cdn-config.js +1 -1
  183. package/lib/utils/check-sdk-version.js +1 -1
  184. package/lib/utils/cli-version-check.js +1 -1
  185. package/lib/utils/cli-version-policy.js +1 -1
  186. package/lib/utils/config.js +1 -1
  187. package/lib/utils/copy-directory.js +1 -1
  188. package/lib/utils/entity-with-id.js +1 -1
  189. package/lib/utils/file-utils.js +1 -1
  190. package/lib/utils/guides-cdn.js +1 -1
  191. package/lib/utils/http-client.js +1 -1
  192. package/lib/utils/is-non-interactive.js +1 -1
  193. package/lib/utils/logger.js +1 -1
  194. package/lib/utils/params.js +1 -1
  195. package/lib/utils/platform.js +1 -1
  196. package/lib/utils/rules-cdn.js +1 -1
  197. package/lib/utils/sleep.js +1 -1
  198. package/lib/utils/template-replacer.js +1 -1
  199. package/lib/utils/version.js +1 -1
  200. package/lib/utils/with-active-cookie.js +1 -1
  201. package/lib/utils/write-cli-side-channel.js +1 -1
  202. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x3c1fa3,_0x293004){const _0x30c0db=a156_0x5f2e,_0x21f6a9=_0x3c1fa3();while(!![]){try{const _0x1aec69=-parseInt(_0x30c0db(0x16e))/0x1+parseInt(_0x30c0db(0x175))/0x2+parseInt(_0x30c0db(0x168))/0x3+-parseInt(_0x30c0db(0x15f))/0x4*(-parseInt(_0x30c0db(0x172))/0x5)+-parseInt(_0x30c0db(0x177))/0x6*(parseInt(_0x30c0db(0x16a))/0x7)+-parseInt(_0x30c0db(0x164))/0x8*(-parseInt(_0x30c0db(0x165))/0x9)+-parseInt(_0x30c0db(0x16d))/0xa;if(_0x1aec69===_0x293004)break;else _0x21f6a9['push'](_0x21f6a9['shift']());}catch(_0x5e5435){_0x21f6a9['push'](_0x21f6a9['shift']());}}}(a156_0x2a9d,0x99251));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a156_0x2a9d(){const _0x5a1f86=['length','7HHWWLg','slice','ENOENT','23286900WcUxzh','379684AcjaOQ','isFile','mybatisXml','test','571910INtHHI','dbName','mode','828822AkaqNI','.sql','1237290QfgnpQ','.xml','sqlRootDir','filter','replace','name','code','sqlName','isDirectory','toLowerCase','36CbhshJ','sqlCode','split','indexOf','dbId','40uVViNf','1625544YBivmo','sql','push','3584823vUWEoI'];a156_0x2a9d=function(){return _0x5a1f86;};return a156_0x2a9d();}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0xc2a281){const _0x403a15=a156_0x5f2e;if(_0xc2a281===_0x403a15(0x176))return'sql';if(_0xc2a281===_0x403a15(0x178))return _0x403a15(0x170);return undefined;}async function scanSqlFilesRecursively(_0x26b599,_0x71fdeb){const _0x2458e5=a156_0x5f2e,_0x52dbda=[];try{const _0x5186c7=await readdir(_0x26b599,{'withFileTypes':!![]});for(const _0x5aa86e of _0x5186c7){const _0x5af669=join(_0x26b599,_0x5aa86e[_0x2458e5(0x17c)]);if(_0x5aa86e[_0x2458e5(0x15d)]()){_0x52dbda[_0x2458e5(0x167)](...await scanSqlFilesRecursively(_0x5af669,_0x71fdeb));continue;}if(!_0x5aa86e[_0x2458e5(0x16f)]())continue;const _0x141386=extname(_0x5aa86e[_0x2458e5(0x17c)])[_0x2458e5(0x15e)](),_0x26348c=extensionToMode(_0x141386);if(!_0x26348c)continue;const _0x4483c3=relative(_0x71fdeb,_0x5af669)[_0x2458e5(0x17b)](/\\/g,'/'),_0xa7ea09=_0x4483c3[_0x2458e5(0x161)]('/')[_0x2458e5(0x17a)](Boolean),_0x2ae3dc=parseSqlPath(_0xa7ea09,_0x5aa86e[_0x2458e5(0x17c)],_0x141386);if(!_0x2ae3dc)continue;_0x52dbda[_0x2458e5(0x167)]({'sqlCode':_0x2ae3dc['sqlCode'],'sqlName':_0x2ae3dc[_0x2458e5(0x17e)],'dbDirectory':_0xa7ea09[0x0],'filePath':_0x5af669,'relativePath':_0x4483c3,'lockKey':_0x2ae3dc[_0x2458e5(0x160)],'mode':_0x26348c});}}catch(_0x55b454){if(_0x55b454[_0x2458e5(0x17d)]!==_0x2458e5(0x16c))throw _0x55b454;}return _0x52dbda;}function a156_0x5f2e(_0x5e2a13,_0x3db4c7){_0x5e2a13=_0x5e2a13-0x15d;const _0x2a9db9=a156_0x2a9d();let _0x5f2ea9=_0x2a9db9[_0x5e2a13];return _0x5f2ea9;}export async function scanLocalSqlQueries(_0x35219d){const _0xd76906=a156_0x5f2e;return scanSqlFilesRecursively(_0x35219d[_0xd76906(0x179)],_0x35219d[_0xd76906(0x179)]);}export function resolveLocalSqlFilePath(_0x27a6b0,_0x197992,_0x2ae513){const _0x209a83=a156_0x5f2e,_0x56cc61=_0x2ae513?.['path']||(_0x2ae513?.[_0x209a83(0x17e)]||_0x2ae513?.[_0x209a83(0x173)]?buildSqlRelativePath(_0x197992,_0x2ae513?.[_0x209a83(0x17e)],_0x2ae513?.[_0x209a83(0x173)],_0x2ae513?.['mode']||_0x209a83(0x166),_0x2ae513?.[_0x209a83(0x163)]):buildDefaultSqlFileName(_0x197992,_0x2ae513?.[_0x209a83(0x174)]||_0x209a83(0x166)));return join(_0x27a6b0[_0x209a83(0x179)],_0x56cc61);}export async function directoryExists(_0x190c74){const _0x40b700=a156_0x5f2e;try{const _0x27aff5=await stat(_0x190c74);return _0x27aff5[_0x40b700(0x15d)]();}catch{return![];}}function parseSqlPath(_0xf20a76,_0x491803,_0x43583){const _0x341c78=a156_0x5f2e,_0x57bba6=_0x491803[_0x341c78(0x16b)](0x0,-_0x43583[_0x341c78(0x169)]);if(_0xf20a76[_0x341c78(0x169)]<0x2)return null;const _0x270889=_0x57bba6[_0x341c78(0x162)]('_');if(_0x270889<=0x0||_0x270889>=_0x57bba6['length']-0x1)return null;const _0x27c673=_0x57bba6[_0x341c78(0x16b)](0x0,_0x270889);if(!isLikelySqlCode(_0x27c673))return null;return{'sqlCode':_0x27c673,'sqlName':_0x57bba6[_0x341c78(0x16b)](_0x270889+0x1)};}function isLikelySqlCode(_0x38790d){const _0x2f08de=a156_0x5f2e;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x2f08de(0x171)](_0x38790d);}
1
+ function a156_0x6bee(){const _0x38f41b=['348HCGDmx','1502172mzXETb','indexOf','dbName','length','sql','687033qdRaNf','213127zfZHpw','replace','split','227590GECNGk','toLowerCase','test','60myTSWA','slice','isDirectory','332205WWsGzU','5663NwknoG','4kEqaDl','filter','709178MpjiyX','sqlRootDir','.xml','sqlCode','mode','mybatisXml','3bTEqYh','.sql','ENOENT','code','path','2904UILrEX','sqlName','name','push'];a156_0x6bee=function(){return _0x38f41b;};return a156_0x6bee();}(function(_0x3f14b5,_0x4267a3){const _0x5796bb=a156_0x24e4,_0x419c25=_0x3f14b5();while(!![]){try{const _0x9fba88=parseInt(_0x5796bb(0x81))/0x1+-parseInt(_0x5796bb(0x6b))/0x2*(-parseInt(_0x5796bb(0x71))/0x3)+parseInt(_0x5796bb(0x69))/0x4*(parseInt(_0x5796bb(0x8a))/0x5)+-parseInt(_0x5796bb(0x7b))/0x6+parseInt(_0x5796bb(0x68))/0x7*(-parseInt(_0x5796bb(0x76))/0x8)+parseInt(_0x5796bb(0x80))/0x9*(-parseInt(_0x5796bb(0x87))/0xa)+parseInt(_0x5796bb(0x84))/0xb*(parseInt(_0x5796bb(0x7a))/0xc);if(_0x9fba88===_0x4267a3)break;else _0x419c25['push'](_0x419c25['shift']());}catch(_0x225942){_0x419c25['push'](_0x419c25['shift']());}}}(a156_0x6bee,0x38ab4));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a156_0x24e4(_0x219d6c,_0x2e5dbe){_0x219d6c=_0x219d6c-0x68;const _0x6beebb=a156_0x6bee();let _0x24e459=_0x6beebb[_0x219d6c];return _0x24e459;}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x5c26bf){const _0x6e5bff=a156_0x24e4;if(_0x5c26bf===_0x6e5bff(0x72))return _0x6e5bff(0x7f);if(_0x5c26bf===_0x6e5bff(0x6d))return _0x6e5bff(0x70);return undefined;}async function scanSqlFilesRecursively(_0x2f3abc,_0x48f152){const _0x5e3a69=a156_0x24e4,_0xd4a8e7=[];try{const _0x33c6e3=await readdir(_0x2f3abc,{'withFileTypes':!![]});for(const _0x1179bc of _0x33c6e3){const _0x526033=join(_0x2f3abc,_0x1179bc[_0x5e3a69(0x78)]);if(_0x1179bc[_0x5e3a69(0x89)]()){_0xd4a8e7[_0x5e3a69(0x79)](...await scanSqlFilesRecursively(_0x526033,_0x48f152));continue;}if(!_0x1179bc['isFile']())continue;const _0x1d67fb=extname(_0x1179bc['name'])[_0x5e3a69(0x85)](),_0x205e1a=extensionToMode(_0x1d67fb);if(!_0x205e1a)continue;const _0x366732=relative(_0x48f152,_0x526033)[_0x5e3a69(0x82)](/\\/g,'/'),_0x579f1d=_0x366732[_0x5e3a69(0x83)]('/')[_0x5e3a69(0x6a)](Boolean),_0x3ccba3=parseSqlPath(_0x579f1d,_0x1179bc['name'],_0x1d67fb);if(!_0x3ccba3)continue;_0xd4a8e7[_0x5e3a69(0x79)]({'sqlCode':_0x3ccba3[_0x5e3a69(0x6e)],'sqlName':_0x3ccba3['sqlName'],'dbDirectory':_0x579f1d[0x0],'filePath':_0x526033,'relativePath':_0x366732,'lockKey':_0x3ccba3[_0x5e3a69(0x6e)],'mode':_0x205e1a});}}catch(_0x5643e9){if(_0x5643e9[_0x5e3a69(0x74)]!==_0x5e3a69(0x73))throw _0x5643e9;}return _0xd4a8e7;}export async function scanLocalSqlQueries(_0x1fb6f){const _0x4fafc9=a156_0x24e4;return scanSqlFilesRecursively(_0x1fb6f[_0x4fafc9(0x6c)],_0x1fb6f[_0x4fafc9(0x6c)]);}export function resolveLocalSqlFilePath(_0x1864ad,_0x1b046e,_0x4ce19d){const _0x11669a=a156_0x24e4,_0x371845=_0x4ce19d?.[_0x11669a(0x75)]||(_0x4ce19d?.[_0x11669a(0x77)]||_0x4ce19d?.[_0x11669a(0x7d)]?buildSqlRelativePath(_0x1b046e,_0x4ce19d?.[_0x11669a(0x77)],_0x4ce19d?.[_0x11669a(0x7d)],_0x4ce19d?.[_0x11669a(0x6f)]||_0x11669a(0x7f),_0x4ce19d?.['dbId']):buildDefaultSqlFileName(_0x1b046e,_0x4ce19d?.[_0x11669a(0x6f)]||_0x11669a(0x7f)));return join(_0x1864ad['sqlRootDir'],_0x371845);}export async function directoryExists(_0x53b372){try{const _0x2d7615=await stat(_0x53b372);return _0x2d7615['isDirectory']();}catch{return![];}}function parseSqlPath(_0x2ea5a5,_0x289c83,_0x168c99){const _0x63aab1=a156_0x24e4,_0x2eb311=_0x289c83[_0x63aab1(0x88)](0x0,-_0x168c99[_0x63aab1(0x7e)]);if(_0x2ea5a5[_0x63aab1(0x7e)]<0x2)return null;const _0x15ca3e=_0x2eb311[_0x63aab1(0x7c)]('_');if(_0x15ca3e<=0x0||_0x15ca3e>=_0x2eb311[_0x63aab1(0x7e)]-0x1)return null;const _0xae821a=_0x2eb311[_0x63aab1(0x88)](0x0,_0x15ca3e);if(!isLikelySqlCode(_0xae821a))return null;return{'sqlCode':_0xae821a,'sqlName':_0x2eb311['slice'](_0x15ca3e+0x1)};}function isLikelySqlCode(_0x29cc6d){const _0x31f130=a156_0x24e4;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x31f130(0x86)](_0x29cc6d);}
@@ -1 +1 @@
1
- (function(_0x2ca627,_0x43dec4){const _0x265ddc=a157_0x29dc,_0x536813=_0x2ca627();while(!![]){try{const _0x1d883c=parseInt(_0x265ddc(0x110))/0x1+parseInt(_0x265ddc(0x118))/0x2*(-parseInt(_0x265ddc(0x10d))/0x3)+parseInt(_0x265ddc(0x117))/0x4+-parseInt(_0x265ddc(0x111))/0x5*(parseInt(_0x265ddc(0x115))/0x6)+parseInt(_0x265ddc(0x112))/0x7+-parseInt(_0x265ddc(0x10e))/0x8+parseInt(_0x265ddc(0x10f))/0x9*(parseInt(_0x265ddc(0x114))/0xa);if(_0x1d883c===_0x43dec4)break;else _0x536813['push'](_0x536813['shift']());}catch(_0x4d4bc3){_0x536813['push'](_0x536813['shift']());}}}(a157_0x250f,0x858c7));import{readFile}from'node:fs/promises';import a157_0x772c76 from'node:crypto';function a157_0x250f(){const _0x36db87=['591318ImoqUn','891978UPSsHI','48475stToQN','6304053EKlyFR','createHash','110ykpReP','408AvDUgY','md5','1559736fVkvhQ','438502SWcwGq','12KvJotI','6575472bbbgqs'];a157_0x250f=function(){return _0x36db87;};return a157_0x250f();}export function computeSqlContentHash(_0x2cb76a){const _0x392225=a157_0x29dc;return a157_0x772c76[_0x392225(0x113)](_0x392225(0x116))['update'](_0x2cb76a)['digest']('hex');}function a157_0x29dc(_0x2fbd8c,_0x1b448f){_0x2fbd8c=_0x2fbd8c-0x10d;const _0x250fc9=a157_0x250f();let _0x29dc0a=_0x250fc9[_0x2fbd8c];return _0x29dc0a;}export async function computeSqlFileHash(_0x33b397){const _0x45dd86=await readFile(_0x33b397,'utf8');return computeSqlContentHash(_0x45dd86);}
1
+ (function(_0x13f4da,_0x114d87){const _0x38feeb=a157_0x3820,_0x4a510d=_0x13f4da();while(!![]){try{const _0x3cb257=parseInt(_0x38feeb(0x152))/0x1*(-parseInt(_0x38feeb(0x154))/0x2)+parseInt(_0x38feeb(0x14e))/0x3*(-parseInt(_0x38feeb(0x150))/0x4)+-parseInt(_0x38feeb(0x14f))/0x5+parseInt(_0x38feeb(0x14a))/0x6+parseInt(_0x38feeb(0x14d))/0x7*(parseInt(_0x38feeb(0x149))/0x8)+-parseInt(_0x38feeb(0x155))/0x9+parseInt(_0x38feeb(0x151))/0xa;if(_0x3cb257===_0x114d87)break;else _0x4a510d['push'](_0x4a510d['shift']());}catch(_0x24faf3){_0x4a510d['push'](_0x4a510d['shift']());}}}(a157_0xc772,0x27ab3));import{readFile}from'node:fs/promises';function a157_0xc772(){const _0x5971bc=['md5','createHash','7GaVUmZ','2118oeanfS','339990ggkPNb','676LqtGMs','3709650UfkJSd','9rQAedh','hex','29394uTmMEm','1093770zwsVjE','utf8','553552jFEsce','980634RoYnSs'];a157_0xc772=function(){return _0x5971bc;};return a157_0xc772();}import a157_0x2e244d from'node:crypto';export function computeSqlContentHash(_0x4676e1){const _0x4168c4=a157_0x3820;return a157_0x2e244d[_0x4168c4(0x14c)](_0x4168c4(0x14b))['update'](_0x4676e1)['digest'](_0x4168c4(0x153));}function a157_0x3820(_0x8ca272,_0x859103){_0x8ca272=_0x8ca272-0x148;const _0xc772a7=a157_0xc772();let _0x382010=_0xc772a7[_0x8ca272];return _0x382010;}export async function computeSqlFileHash(_0x50c6e4){const _0xa9feb4=a157_0x3820,_0x3c5e4f=await readFile(_0x50c6e4,_0xa9feb4(0x148));return computeSqlContentHash(_0x3c5e4f);}
@@ -1 +1 @@
1
- function a158_0x327b(_0x42f5a0,_0x5d81b3){_0x42f5a0=_0x42f5a0-0x11d;const _0x1c1d93=a158_0x1c1d();let _0x327b75=_0x1c1d93[_0x42f5a0];return _0x327b75;}(function(_0x4dfe9d,_0x768def){const _0x1d4e69=a158_0x327b,_0x2a10e1=_0x4dfe9d();while(!![]){try{const _0x532f9d=-parseInt(_0x1d4e69(0x127))/0x1+-parseInt(_0x1d4e69(0x123))/0x2+parseInt(_0x1d4e69(0x129))/0x3+parseInt(_0x1d4e69(0x128))/0x4*(-parseInt(_0x1d4e69(0x122))/0x5)+-parseInt(_0x1d4e69(0x131))/0x6+-parseInt(_0x1d4e69(0x12d))/0x7*(-parseInt(_0x1d4e69(0x11d))/0x8)+parseInt(_0x1d4e69(0x11f))/0x9*(parseInt(_0x1d4e69(0x12b))/0xa);if(_0x532f9d===_0x768def)break;else _0x2a10e1['push'](_0x2a10e1['shift']());}catch(_0x525108){_0x2a10e1['push'](_0x2a10e1['shift']());}}}(a158_0x1c1d,0x755fd));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x4a4e1b,_0x4bde7c,_0x113e55,_0x106fd5){const _0x255f8d=a158_0x327b,_0x4c350d=_0x4a4e1b??createEmptySqlLock();let _0x15a348=_0x4c350d[_0x255f8d(0x121)][_0x4bde7c];if(!_0x15a348)return _0x15a348={'sqlRoot':_0x113e55,'lastSync':'','sqls':{}},_0x4c350d[_0x255f8d(0x121)][_0x4bde7c]=_0x15a348,{'lockData':_0x4c350d,'appLock':_0x15a348};if(!_0x15a348['sqlRoot'])_0x15a348[_0x255f8d(0x12c)]=_0x113e55;else{if(_0x15a348[_0x255f8d(0x12c)]!==_0x113e55)throw new Error(_0x106fd5+_0x255f8d(0x12a)+_0x113e55+_0x255f8d(0x130)+_0x15a348[_0x255f8d(0x12c)]+_0x255f8d(0x12e)+_0x255f8d(0x124));}return!_0x15a348['sqls']&&(_0x15a348['sqls']={}),!_0x15a348['lastSync']&&(_0x15a348['lastSync']=''),{'lockData':_0x4c350d,'appLock':_0x15a348};}export async function readSqlLockFile(_0x42c74a){const _0x4d6ddc=a158_0x327b;try{const _0x15dfcf=await readFile(_0x42c74a,'utf8');return JSON[_0x4d6ddc(0x126)](_0x15dfcf);}catch(_0x2eb6fb){if(_0x2eb6fb[_0x4d6ddc(0x11e)]===_0x4d6ddc(0x125))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x2eb6fb));}}export async function writeSqlLockFile(_0x58a973,_0x528f33){const _0x4b1357=a158_0x327b;await mkdir(dirname(_0x58a973),{'recursive':!![]}),await writeFile(_0x58a973,JSON[_0x4b1357(0x12f)](_0x528f33,null,0x2),_0x4b1357(0x120));}function a158_0x1c1d(){const _0xcab8e1=['2475470nkZWnA','728422PvMDQh','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','ENOENT','parse','603936lITaZf','4qDEoHS','2316159lTSWcc',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','320OrUadF','sqlRoot','7VVktII','\x22.\x20','stringify','\x22\x20vs\x20lock\x20\x22','1886190VUMMub','7366512dODIAt','code','159048URKGBc','utf8','apps'];a158_0x1c1d=function(){return _0xcab8e1;};return a158_0x1c1d();}
1
+ function a158_0x4eba(_0x1967a9,_0x2a1aac){_0x1967a9=_0x1967a9-0x106;const _0x5779d3=a158_0x5779();let _0x4ebab9=_0x5779d3[_0x1967a9];return _0x4ebab9;}function a158_0x5779(){const _0x2455a1=['104049xBaIti','2128752EWznsw','14196zwyEbz','parse','202722jFlMxJ','stringify','27574ITxqeO','sqlRoot','utf8','sqls','105VlXnkW','lastSync','63115hWyJOt','apps','\x22\x20vs\x20lock\x20\x22','64nlSoAk','490fKCEsf','2292OtXySm','\x22.\x20','27TzbDco','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','230NQHBUY','code','1183203wZJAfW'];a158_0x5779=function(){return _0x2455a1;};return a158_0x5779();}(function(_0x4632f0,_0x4b7f2f){const _0x285367=a158_0x4eba,_0x4c7b8c=_0x4632f0();while(!![]){try{const _0x2747ce=-parseInt(_0x285367(0x114))/0x1*(parseInt(_0x285367(0x107))/0x2)+parseInt(_0x285367(0x11a))/0x3+-parseInt(_0x285367(0x11b))/0x4*(parseInt(_0x285367(0x111))/0x5)+parseInt(_0x285367(0x11d))/0x6*(parseInt(_0x285367(0x10b))/0x7)+parseInt(_0x285367(0x110))/0x8*(-parseInt(_0x285367(0x118))/0x9)+parseInt(_0x285367(0x116))/0xa*(parseInt(_0x285367(0x119))/0xb)+-parseInt(_0x285367(0x112))/0xc*(-parseInt(_0x285367(0x10d))/0xd);if(_0x2747ce===_0x4b7f2f)break;else _0x4c7b8c['push'](_0x4c7b8c['shift']());}catch(_0x5bcbf8){_0x4c7b8c['push'](_0x4c7b8c['shift']());}}}(a158_0x5779,0x8fe98));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x346bb9,_0x50743d,_0x561bca,_0x1eca8e){const _0x2c7224=a158_0x4eba,_0x22dea5=_0x346bb9??createEmptySqlLock();let _0x2852ad=_0x22dea5[_0x2c7224(0x10e)][_0x50743d];if(!_0x2852ad)return _0x2852ad={'sqlRoot':_0x561bca,'lastSync':'','sqls':{}},_0x22dea5['apps'][_0x50743d]=_0x2852ad,{'lockData':_0x22dea5,'appLock':_0x2852ad};if(!_0x2852ad[_0x2c7224(0x108)])_0x2852ad[_0x2c7224(0x108)]=_0x561bca;else{if(_0x2852ad['sqlRoot']!==_0x561bca)throw new Error(_0x1eca8e+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x561bca+_0x2c7224(0x10f)+_0x2852ad[_0x2c7224(0x108)]+_0x2c7224(0x113)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x2852ad[_0x2c7224(0x10a)]&&(_0x2852ad[_0x2c7224(0x10a)]={}),!_0x2852ad[_0x2c7224(0x10c)]&&(_0x2852ad[_0x2c7224(0x10c)]=''),{'lockData':_0x22dea5,'appLock':_0x2852ad};}export async function readSqlLockFile(_0x481870){const _0x57d0af=a158_0x4eba;try{const _0x14a689=await readFile(_0x481870,_0x57d0af(0x109));return JSON[_0x57d0af(0x11c)](_0x14a689);}catch(_0x238006){if(_0x238006[_0x57d0af(0x117)]==='ENOENT')return null;throw new Error(_0x57d0af(0x115)+String(_0x238006));}}export async function writeSqlLockFile(_0x479ae2,_0x4e5f68){const _0x12000b=a158_0x4eba;await mkdir(dirname(_0x479ae2),{'recursive':!![]}),await writeFile(_0x479ae2,JSON[_0x12000b(0x106)](_0x4e5f68,null,0x2),_0x12000b(0x109));}
@@ -1 +1 @@
1
- (function(_0x564733,_0x46ded8){const _0x8bc5a0=a160_0x2628,_0x8c71d4=_0x564733();while(!![]){try{const _0x3bce95=parseInt(_0x8bc5a0(0x12d))/0x1*(parseInt(_0x8bc5a0(0x132))/0x2)+-parseInt(_0x8bc5a0(0x133))/0x3+parseInt(_0x8bc5a0(0x134))/0x4*(parseInt(_0x8bc5a0(0x136))/0x5)+parseInt(_0x8bc5a0(0x127))/0x6*(parseInt(_0x8bc5a0(0x131))/0x7)+-parseInt(_0x8bc5a0(0x137))/0x8+parseInt(_0x8bc5a0(0x12a))/0x9+parseInt(_0x8bc5a0(0x128))/0xa;if(_0x3bce95===_0x46ded8)break;else _0x8c71d4['push'](_0x8c71d4['shift']());}catch(_0x3a3844){_0x8c71d4['push'](_0x8c71d4['shift']());}}}(a160_0x1f4e,0x43436));export function detectSqlMode(_0x5f5052){const _0x476177=a160_0x2628,_0x2797fb=_0x5f5052[_0x476177(0x138)]();if(/^<(select|insert|update|delete)\b/i[_0x476177(0x12f)](_0x2797fb))return'mybatisXml';return _0x476177(0x130);}export function getSqlFileExtension(_0x4ec3ac){const _0x1cae89=a160_0x2628;return _0x4ec3ac===_0x1cae89(0x129)?'.xml':_0x1cae89(0x12e);}export function buildDefaultSqlFileName(_0xd322d9,_0x4b1ff2){return''+_0xd322d9+getSqlFileExtension(_0x4b1ff2);}export function sanitizeSqlPathSegment(_0x788cd1,_0x9e70a0){const _0x1614f3=a160_0x2628,_0x56ed0e=String(_0x788cd1??'')[_0x1614f3(0x135)](),_0x1aad07=_0x56ed0e[_0x1614f3(0x126)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1614f3(0x126)](/\s+/g,'-')[_0x1614f3(0x126)](/-+/g,'-')[_0x1614f3(0x126)](/^\.+/,'')['replace'](/\.+$/,'')[_0x1614f3(0x126)](/^-+/,'')[_0x1614f3(0x126)](/-+$/,'');return _0x1aad07||_0x9e70a0;}function a160_0x1f4e(){const _0x14b3b5=['4DsxLjS','trim','77685qDCQxK','3384728RMcXtK','trimStart','replace','30YSlRFu','7270450WartMV','mybatisXml','222804jMslhi','unknown-db','unknown-sql','3rHtOHN','.sql','test','sql','177793olhCkj','78834QemDnw','941949XEoyKC'];a160_0x1f4e=function(){return _0x14b3b5;};return a160_0x1f4e();}function a160_0x2628(_0x1916da,_0x3a3775){_0x1916da=_0x1916da-0x126;const _0x1f4efb=a160_0x1f4e();let _0x2628e0=_0x1f4efb[_0x1916da];return _0x2628e0;}export function buildDbDirectoryName(_0x1dffbb,_0x491180){const _0x1c2819=a160_0x2628;return sanitizeSqlPathSegment(_0x1dffbb,_0x491180!=null?'db-'+_0x491180:_0x1c2819(0x12b));}export function buildSqlRelativePath(_0x2c915f,_0x3923b5,_0x5c29d8,_0x586c78,_0x3f31ca){const _0x1fd024=a160_0x2628,_0x111ab7=buildDbDirectoryName(_0x5c29d8,_0x3f31ca),_0x398959=sanitizeSqlPathSegment(_0x2c915f,_0x1fd024(0x12c)),_0x14d08b=sanitizeSqlPathSegment(_0x3923b5,_0x398959);return _0x111ab7+'/'+_0x398959+'_'+_0x14d08b+getSqlFileExtension(_0x586c78);}
1
+ (function(_0xd004c2,_0x3bc343){const _0x2b63fc=a160_0x1b39,_0x4ab141=_0xd004c2();while(!![]){try{const _0x22e045=parseInt(_0x2b63fc(0x104))/0x1*(parseInt(_0x2b63fc(0x102))/0x2)+-parseInt(_0x2b63fc(0xff))/0x3+parseInt(_0x2b63fc(0x106))/0x4*(-parseInt(_0x2b63fc(0x10b))/0x5)+parseInt(_0x2b63fc(0x10e))/0x6*(parseInt(_0x2b63fc(0x107))/0x7)+parseInt(_0x2b63fc(0xfe))/0x8+parseInt(_0x2b63fc(0x109))/0x9*(parseInt(_0x2b63fc(0x100))/0xa)+-parseInt(_0x2b63fc(0x10a))/0xb;if(_0x22e045===_0x3bc343)break;else _0x4ab141['push'](_0x4ab141['shift']());}catch(_0x321925){_0x4ab141['push'](_0x4ab141['shift']());}}}(a160_0x261e,0xdf9d2));function a160_0x1b39(_0x2817ee,_0x5f352c){_0x2817ee=_0x2817ee-0xfd;const _0x261ec5=a160_0x261e();let _0x1b391b=_0x261ec5[_0x2817ee];return _0x1b391b;}export function detectSqlMode(_0x4b5967){const _0x5aa1a0=a160_0x1b39,_0x2fa11e=_0x4b5967[_0x5aa1a0(0x105)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x2fa11e))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x484641){const _0x3baaec=a160_0x1b39;return _0x484641===_0x3baaec(0x101)?_0x3baaec(0x10c):'.sql';}export function buildDefaultSqlFileName(_0x7c1598,_0x4a9821){return''+_0x7c1598+getSqlFileExtension(_0x4a9821);}export function sanitizeSqlPathSegment(_0x2d7e79,_0x4bf3d0){const _0x5540e7=a160_0x1b39,_0x236de9=String(_0x2d7e79??'')[_0x5540e7(0x108)](),_0x3ed361=_0x236de9[_0x5540e7(0xfd)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x5540e7(0xfd)](/-+/g,'-')[_0x5540e7(0xfd)](/^\.+/,'')[_0x5540e7(0xfd)](/\.+$/,'')[_0x5540e7(0xfd)](/^-+/,'')[_0x5540e7(0xfd)](/-+$/,'');return _0x3ed361||_0x4bf3d0;}export function buildDbDirectoryName(_0xdc094b,_0x1c56eb){const _0x5ea9bf=a160_0x1b39;return sanitizeSqlPathSegment(_0xdc094b,_0x1c56eb!=null?_0x5ea9bf(0x10d)+_0x1c56eb:'unknown-db');}function a160_0x261e(){const _0x3cf453=['66025oVpNnY','.xml','db-','6522lwndbi','replace','4872384VVpVAn','2575878GazLWR','41880sdRjAq','mybatisXml','31054EuXtZD','unknown-sql','71vTCYBf','trimStart','116TFNhoC','2821VQjgmr','trim','882ECoqaU','4427027JOuHUZ'];a160_0x261e=function(){return _0x3cf453;};return a160_0x261e();}export function buildSqlRelativePath(_0x5ecc6c,_0x5e0599,_0x4d91c6,_0x56e243,_0x1bbf73){const _0x455271=a160_0x1b39,_0x150722=buildDbDirectoryName(_0x4d91c6,_0x1bbf73),_0x12e73a=sanitizeSqlPathSegment(_0x5ecc6c,_0x455271(0x103)),_0x106b40=sanitizeSqlPathSegment(_0x5e0599,_0x12e73a);return _0x150722+'/'+_0x12e73a+'_'+_0x106b40+getSqlFileExtension(_0x56e243);}
@@ -1 +1 @@
1
- (function(_0x572e8b,_0x417fce){const _0x48d42d=a161_0x4e67,_0x13470e=_0x572e8b();while(!![]){try{const _0x2f73c6=parseInt(_0x48d42d(0x193))/0x1+-parseInt(_0x48d42d(0x17c))/0x2+-parseInt(_0x48d42d(0x183))/0x3*(-parseInt(_0x48d42d(0x18d))/0x4)+parseInt(_0x48d42d(0x16f))/0x5*(-parseInt(_0x48d42d(0x17e))/0x6)+parseInt(_0x48d42d(0x192))/0x7+-parseInt(_0x48d42d(0x16e))/0x8*(-parseInt(_0x48d42d(0x180))/0x9)+-parseInt(_0x48d42d(0x185))/0xa;if(_0x2f73c6===_0x417fce)break;else _0x13470e['push'](_0x13470e['shift']());}catch(_0x2e94d6){_0x13470e['push'](_0x13470e['shift']());}}}(a161_0x8f1d,0xb66e8));export function detectSqlType(_0x57dafb){const _0x8ff77c=a161_0x4e67;if(!_0x57dafb?.['trim']())return{'type':_0x8ff77c(0x18b),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x44d324=_0x57dafb[_0x8ff77c(0x191)](/#\{[^}]*\}/g,'?')[_0x8ff77c(0x191)](/\$\{[^}]*\}/g,'?')[_0x8ff77c(0x191)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x8ff77c(0x191)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x4df7cc=_0x44d324['split']('\x0a');let _0x1319de='';for(const _0x1aaabc of _0x4df7cc){const _0x4b4a45=_0x1aaabc['trim']();if(!_0x4b4a45||_0x4b4a45[_0x8ff77c(0x17d)]('--')||_0x4b4a45[_0x8ff77c(0x17d)]('/*'))continue;_0x1319de=_0x4b4a45;break;}const _0x15eaa7=_0x1319de[_0x8ff77c(0x179)]();if(_0x15eaa7['startsWith'](_0x8ff77c(0x190))||_0x15eaa7['startsWith'](_0x8ff77c(0x172))){const _0x5b031a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x8ff77c(0x174)](_0x44d324);return{'type':_0x8ff77c(0x190),'isSelectOnly':!_0x5b031a,'isDangerous':_0x5b031a,'reason':_0x5b031a?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x15eaa7['startsWith'](_0x8ff77c(0x18a)))return{'type':_0x8ff77c(0x18a),'isSelectOnly':![],'isDangerous':![]};if(_0x15eaa7[_0x8ff77c(0x17d)](_0x8ff77c(0x18c)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x15eaa7[_0x8ff77c(0x17d)](_0x8ff77c(0x188)))return{'type':_0x8ff77c(0x188),'isSelectOnly':![],'isDangerous':!![],'reason':_0x8ff77c(0x175)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x8ff77c(0x174)](_0x15eaa7))return{'type':_0x8ff77c(0x17a),'isSelectOnly':![],'isDangerous':!![],'reason':_0x8ff77c(0x187)};return{'type':_0x8ff77c(0x18b),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x13bc67){const _0xc782b2=a161_0x4e67,_0x4a3227=_0x13bc67['replace'](/#\{[^}]*\}/g,'?')[_0xc782b2(0x191)](/\$\{[^}]*\}/g,'?')[_0xc782b2(0x191)](/'[^']*'/g,'\x27\x27')[_0xc782b2(0x191)](/--.*$/gm,'')[_0xc782b2(0x191)](/\/\*[\s\S]*?\*\//g,''),_0x50b604=[],_0x3daa08=_0x4a3227['match'](/FROM\s+([^\s,)(]+)/i);if(_0x3daa08?.[0x1])_0x50b604[_0xc782b2(0x184)](_0x3daa08[0x1][_0xc782b2(0x191)](/[`"]/g,''));for(const _0x5b105c of _0x4a3227[_0xc782b2(0x17f)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x33d072=_0x5b105c[0x1]?.[_0xc782b2(0x191)](/[`"]/g,'');if(_0x33d072&&!_0x50b604[_0xc782b2(0x173)](_0x33d072))_0x50b604[_0xc782b2(0x184)](_0x33d072);}const _0x19a32e=_0x4a3227[_0xc782b2(0x17b)](/INTO\s+([^\s(]+)/i);if(_0x19a32e?.[0x1]){const _0x404746=_0x19a32e[0x1][_0xc782b2(0x191)](/[`"]/g,'');if(!_0x50b604['includes'](_0x404746))_0x50b604[_0xc782b2(0x184)](_0x404746);}const _0x2f89e7=_0x4a3227['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x2f89e7?.[0x1]){const _0x13ce69=_0x2f89e7[0x1][_0xc782b2(0x191)](/[`"]/g,'');if(!_0x50b604[_0xc782b2(0x173)](_0x13ce69))_0x50b604[_0xc782b2(0x184)](_0x13ce69);}return _0x50b604;}function extractParameters(_0x54710f){const _0x170f44=a161_0x4e67,_0xfb6f41=new Set();for(const _0x2b7ef3 of _0x54710f[_0x170f44(0x17f)](/#\{(\w+)\}/g))if(_0x2b7ef3[0x1])_0xfb6f41[_0x170f44(0x177)](_0x2b7ef3[0x1]);for(const _0x2505ef of _0x54710f['matchAll'](/\$\{(\w+)\}/g))if(_0x2505ef[0x1])_0xfb6f41[_0x170f44(0x177)](_0x2505ef[0x1]);return Array['from'](_0xfb6f41);}function a161_0x4e67(_0x49ba97,_0x2a8f46){_0x49ba97=_0x49ba97-0x16e;const _0x8f1d28=a161_0x8f1d();let _0x4e6728=_0x8f1d28[_0x49ba97];return _0x4e6728;}function a161_0x8f1d(){const _0x31f988=['847189idiZoI','17624JSINxV','5556235wViGFD','unknown\x20table(s)','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','WITH','includes','test','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','isDangerous','add','\x20with\x20parameters:\x20','toUpperCase','DDL','match','215740EnDCrM','startsWith','6pnwWXc','matchAll','126TkOuEy','length','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','12qdBGaE','push','13223210DfHbYj','type','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','DELETE','\x20query\x20targeting\x20','INSERT','UNKNOWN','UPDATE','1098436GrKmnn','join','reason','SELECT','replace','9185477LHyyma'];a161_0x8f1d=function(){return _0x31f988;};return a161_0x8f1d();}export function validateSql(_0x6fea37){const _0x54d12d=a161_0x4e67,_0x38133e=detectSqlType(_0x6fea37),_0x8a8868=extractTables(_0x6fea37),_0x2dfb03=extractParameters(_0x6fea37);if(_0x38133e[_0x54d12d(0x176)])return{'valid':![],'sqlType':_0x38133e,'tables':_0x8a8868,'parameters':_0x2dfb03,'message':_0x38133e[_0x54d12d(0x18f)]||_0x38133e['type']+_0x54d12d(0x182)};if(_0x38133e[_0x54d12d(0x186)]===_0x54d12d(0x18b))return{'valid':![],'sqlType':_0x38133e,'tables':_0x8a8868,'parameters':_0x2dfb03,'message':_0x54d12d(0x171)};return{'valid':!![],'sqlType':_0x38133e,'tables':_0x8a8868,'parameters':_0x2dfb03,'message':_0x38133e['type']+_0x54d12d(0x189)+(_0x8a8868[_0x54d12d(0x181)]?_0x8a8868[_0x54d12d(0x18e)](',\x20'):_0x54d12d(0x170))+(_0x2dfb03[_0x54d12d(0x181)]?_0x54d12d(0x178)+_0x2dfb03[_0x54d12d(0x18e)](',\x20'):'')};}
1
+ (function(_0x55db01,_0x5b1b07){const _0x2e67a0=a161_0x570a,_0x14be9f=_0x55db01();while(!![]){try{const _0x30265c=-parseInt(_0x2e67a0(0xf5))/0x1*(-parseInt(_0x2e67a0(0xe6))/0x2)+-parseInt(_0x2e67a0(0xf7))/0x3+-parseInt(_0x2e67a0(0xef))/0x4+parseInt(_0x2e67a0(0xdf))/0x5+parseInt(_0x2e67a0(0xdd))/0x6+-parseInt(_0x2e67a0(0xf6))/0x7*(-parseInt(_0x2e67a0(0xe8))/0x8)+parseInt(_0x2e67a0(0xf0))/0x9;if(_0x30265c===_0x5b1b07)break;else _0x14be9f['push'](_0x14be9f['shift']());}catch(_0x5aea6d){_0x14be9f['push'](_0x14be9f['shift']());}}}(a161_0x5210,0xa1236));export function detectSqlType(_0x1e153b){const _0x5d8915=a161_0x570a;if(!_0x1e153b?.[_0x5d8915(0xda)]())return{'type':_0x5d8915(0xe4),'isSelectOnly':![],'isDangerous':![],'reason':_0x5d8915(0xde)};const _0x4d39d2=_0x1e153b['replace'](/#\{[^}]*\}/g,'?')[_0x5d8915(0xd8)](/\$\{[^}]*\}/g,'?')[_0x5d8915(0xd8)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x5d8915(0xd8)](/\/\*[\s\S]*?\*\//g,'')[_0x5d8915(0xda)](),_0x4a6a2b=_0x4d39d2[_0x5d8915(0xea)]('\x0a');let _0x4eb277='';for(const _0x50f260 of _0x4a6a2b){const _0x45f6f1=_0x50f260[_0x5d8915(0xda)]();if(!_0x45f6f1||_0x45f6f1[_0x5d8915(0xd9)]('--')||_0x45f6f1[_0x5d8915(0xd9)]('/*'))continue;_0x4eb277=_0x45f6f1;break;}const _0x368172=_0x4eb277[_0x5d8915(0xd7)]();if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xe0))||_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xf2))){const _0x196aeb=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x5d8915(0xf3)](_0x4d39d2);return{'type':'SELECT','isSelectOnly':!_0x196aeb,'isDangerous':_0x196aeb,'reason':_0x196aeb?_0x5d8915(0xe5):undefined};}if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xf9)))return{'type':_0x5d8915(0xf9),'isSelectOnly':![],'isDangerous':![]};if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xe2)))return{'type':_0x5d8915(0xe2),'isSelectOnly':![],'isDangerous':![]};if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xdc)))return{'type':_0x5d8915(0xdc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5d8915(0xf4)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x368172))return{'type':_0x5d8915(0xf8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5d8915(0xfa)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x42cdeb){const _0x510afc=a161_0x570a,_0x4c494f=_0x42cdeb[_0x510afc(0xd8)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x510afc(0xd8)](/'[^']*'/g,'\x27\x27')[_0x510afc(0xd8)](/--.*$/gm,'')[_0x510afc(0xd8)](/\/\*[\s\S]*?\*\//g,''),_0x1147e1=[],_0xd9b503=_0x4c494f[_0x510afc(0xe7)](/FROM\s+([^\s,)(]+)/i);if(_0xd9b503?.[0x1])_0x1147e1[_0x510afc(0xfd)](_0xd9b503[0x1][_0x510afc(0xd8)](/[`"]/g,''));for(const _0x26b337 of _0x4c494f['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x3c597f=_0x26b337[0x1]?.['replace'](/[`"]/g,'');if(_0x3c597f&&!_0x1147e1['includes'](_0x3c597f))_0x1147e1[_0x510afc(0xfd)](_0x3c597f);}const _0x51a76a=_0x4c494f['match'](/INTO\s+([^\s(]+)/i);if(_0x51a76a?.[0x1]){const _0xd30fb1=_0x51a76a[0x1][_0x510afc(0xd8)](/[`"]/g,'');if(!_0x1147e1[_0x510afc(0xec)](_0xd30fb1))_0x1147e1[_0x510afc(0xfd)](_0xd30fb1);}const _0x108ab7=_0x4c494f[_0x510afc(0xe7)](/UPDATE\s+([^\s,)(]+)/i);if(_0x108ab7?.[0x1]){const _0x572194=_0x108ab7[0x1][_0x510afc(0xd8)](/[`"]/g,'');if(!_0x1147e1[_0x510afc(0xec)](_0x572194))_0x1147e1[_0x510afc(0xfd)](_0x572194);}return _0x1147e1;}function a161_0x5210(){const _0x82b8ce=['startsWith','trim','isDangerous','DELETE','102972SwVoXY','SQL\x20content\x20is\x20empty','1755110GABsIp','SELECT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','UPDATE','type','UNKNOWN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','110itxMWR','match','2111112EZawea','from','split','matchAll','includes','join','\x20query\x20targeting\x20','3025248JBvHoO','7001100oxhrzh','unknown\x20table(s)','WITH','test','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','4303mgoZan','14iiKzOR','1482579ZqAFhI','DDL','INSERT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20with\x20parameters:\x20','length','push','toUpperCase','replace'];a161_0x5210=function(){return _0x82b8ce;};return a161_0x5210();}function extractParameters(_0x39b642){const _0x35a579=a161_0x570a,_0x3cf406=new Set();for(const _0x5adf88 of _0x39b642[_0x35a579(0xeb)](/#\{(\w+)\}/g))if(_0x5adf88[0x1])_0x3cf406['add'](_0x5adf88[0x1]);for(const _0x196ea8 of _0x39b642[_0x35a579(0xeb)](/\$\{(\w+)\}/g))if(_0x196ea8[0x1])_0x3cf406['add'](_0x196ea8[0x1]);return Array[_0x35a579(0xe9)](_0x3cf406);}function a161_0x570a(_0x2fe0cd,_0x55d242){_0x2fe0cd=_0x2fe0cd-0xd7;const _0x5210b9=a161_0x5210();let _0x570a8f=_0x5210b9[_0x2fe0cd];return _0x570a8f;}export function validateSql(_0x4c0ea6){const _0x4c333e=a161_0x570a,_0x5cfb2a=detectSqlType(_0x4c0ea6),_0x2a7d81=extractTables(_0x4c0ea6),_0x6d0aeb=extractParameters(_0x4c0ea6);if(_0x5cfb2a[_0x4c333e(0xdb)])return{'valid':![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':_0x5cfb2a['reason']||_0x5cfb2a[_0x4c333e(0xe3)]+_0x4c333e(0xe1)};if(_0x5cfb2a['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':_0x5cfb2a[_0x4c333e(0xe3)]+_0x4c333e(0xee)+(_0x2a7d81[_0x4c333e(0xfc)]?_0x2a7d81['join'](',\x20'):_0x4c333e(0xf1))+(_0x6d0aeb['length']?_0x4c333e(0xfb)+_0x6d0aeb[_0x4c333e(0xed)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a162_0x439019=a162_0x4be5;(function(_0xda01b1,_0x4b3098){const _0x4ae819=a162_0x4be5,_0x1972a0=_0xda01b1();while(!![]){try{const _0x3386f3=parseInt(_0x4ae819(0x164))/0x1*(-parseInt(_0x4ae819(0x167))/0x2)+-parseInt(_0x4ae819(0x168))/0x3*(-parseInt(_0x4ae819(0x16c))/0x4)+-parseInt(_0x4ae819(0x16e))/0x5*(parseInt(_0x4ae819(0x16a))/0x6)+-parseInt(_0x4ae819(0x16d))/0x7*(-parseInt(_0x4ae819(0x166))/0x8)+parseInt(_0x4ae819(0x16f))/0x9+-parseInt(_0x4ae819(0x165))/0xa+parseInt(_0x4ae819(0x173))/0xb;if(_0x3386f3===_0x4b3098)break;else _0x1972a0['push'](_0x1972a0['shift']());}catch(_0x4aeed3){_0x1972a0['push'](_0x1972a0['shift']());}}}(a162_0x1a5b,0x783af));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a162_0x4be5(_0x4261a8,_0xbddee1){_0x4261a8=_0x4261a8-0x163;const _0x1a5bb1=a162_0x1a5b();let _0x4be51e=_0x1a5bb1[_0x4261a8];return _0x4be51e;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a162_0x439019(0x172),'configMissingHint':[a162_0x439019(0x163)+CLI_BIN_NAME+a162_0x439019(0x171),a162_0x439019(0x169)+CLI_BIN_NAME+a162_0x439019(0x16b)]['join'](a162_0x439019(0x170)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});function a162_0x1a5b(){const _0x339d15=['Set\x20appcode\x20via\x20`','9650nvLICQ','233610PxSrLl','61232dcPort','180iYJssP','408BFIUsP','Tip:\x20`','90XRaxzx','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2696pmSRvl','448vKvsOm','111160mLmmtP','6978942QZjxEy','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20auth`\x20to\x20login\x20first.','3969306tjGfpI'];a162_0x1a5b=function(){return _0x339d15;};return a162_0x1a5b();}
1
+ const a162_0x5d7361=a162_0x1195;(function(_0x36c865,_0x5108b4){const _0x439007=a162_0x1195,_0x4dc649=_0x36c865();while(!![]){try{const _0x111fd8=-parseInt(_0x439007(0x1df))/0x1*(-parseInt(_0x439007(0x1d9))/0x2)+parseInt(_0x439007(0x1db))/0x3+-parseInt(_0x439007(0x1e4))/0x4*(-parseInt(_0x439007(0x1e8))/0x5)+parseInt(_0x439007(0x1da))/0x6+-parseInt(_0x439007(0x1eb))/0x7+-parseInt(_0x439007(0x1e1))/0x8*(parseInt(_0x439007(0x1e0))/0x9)+parseInt(_0x439007(0x1e9))/0xa*(-parseInt(_0x439007(0x1e7))/0xb);if(_0x111fd8===_0x5108b4)break;else _0x4dc649['push'](_0x4dc649['shift']());}catch(_0x563274){_0x4dc649['push'](_0x4dc649['shift']());}}}(a162_0x2635,0x9059b));function a162_0x2635(){const _0x1a732c=['join','3385620Lqobdi','4GPrLCx','1299930lUuRty','2485998pdolmV','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','429242IgVPOr','9gzTAsE','7563000GrfqRf','Run\x20`','Tip:\x20`','183116kPIuNX','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20auth`\x20to\x20login\x20first.','22RnCydb','15MbtUZU','104240jPmDFI'];a162_0x2635=function(){return _0x1a732c;};return a162_0x2635();}function a162_0x1195(_0x4fd49a,_0x5ac76e){_0x4fd49a=_0x4fd49a-0x1d9;const _0x2635b1=a162_0x2635();let _0x119577=_0x2635b1[_0x4fd49a];return _0x119577;}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':a162_0x5d7361(0x1e2)+CLI_BIN_NAME+a162_0x5d7361(0x1e6),'configMissingHint':[a162_0x5d7361(0x1de)+CLI_BIN_NAME+a162_0x5d7361(0x1dd),a162_0x5d7361(0x1e3)+CLI_BIN_NAME+a162_0x5d7361(0x1dc)][a162_0x5d7361(0x1ea)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a162_0x5d7361(0x1e5)});
@@ -1 +1 @@
1
- (function(_0x5874ca,_0x21e81a){var _0x5aa54b=a163_0x156b,_0x1b8f3e=_0x5874ca();while(!![]){try{var _0x3b2cf4=-parseInt(_0x5aa54b(0x1e2))/0x1*(-parseInt(_0x5aa54b(0x1e1))/0x2)+parseInt(_0x5aa54b(0x1dd))/0x3*(-parseInt(_0x5aa54b(0x1d9))/0x4)+parseInt(_0x5aa54b(0x1e0))/0x5+parseInt(_0x5aa54b(0x1dc))/0x6*(parseInt(_0x5aa54b(0x1e3))/0x7)+parseInt(_0x5aa54b(0x1da))/0x8+-parseInt(_0x5aa54b(0x1df))/0x9*(-parseInt(_0x5aa54b(0x1d8))/0xa)+-parseInt(_0x5aa54b(0x1db))/0xb*(parseInt(_0x5aa54b(0x1de))/0xc);if(_0x3b2cf4===_0x21e81a)break;else _0x1b8f3e['push'](_0x1b8f3e['shift']());}catch(_0x458287){_0x1b8f3e['push'](_0x1b8f3e['shift']());}}}(a163_0x592a,0x69799));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a163_0x4a9fd2}from'@lovrabet/cli-framework';function a163_0x156b(_0x1927e3,_0x38f2a0){_0x1927e3=_0x1927e3-0x1d8;var _0x592a47=a163_0x592a();var _0x156bc6=_0x592a47[_0x1927e3];return _0x156bc6;}export function buildAllFlags(_0x159696){return a163_0x4a9fd2(_0x159696,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a163_0x592a(){var _0xbf126c=['5401OamAKH','372LnDTOi','83325lELBdD','19692ygGjKh','1978389bqcOBA','4262665ggkaKU','6bbPRYx','163340uVuSTZ','34678EAIQha','10KZAaao','104fMdIKJ','723072tCyYzv'];a163_0x592a=function(){return _0xbf126c;};return a163_0x592a();}
1
+ function a163_0x5891(_0x37ca49,_0x4ff068){_0x37ca49=_0x37ca49-0x176;var _0x43c11d=a163_0x43c1();var _0x5891b0=_0x43c11d[_0x37ca49];return _0x5891b0;}function a163_0x43c1(){var _0x479911=['3214716GQxmae','18sSlaCU','1450017NUZWaZ','3047sgzApZ','33772blIRau','6MCvydd','148BxqUAb','538625hBeXww','762713MnukEl','6070306DyPdIP','39PYMaIx','10MrnUjC','16lSIntn'];a163_0x43c1=function(){return _0x479911;};return a163_0x43c1();}(function(_0x33dc78,_0x37ed9b){var _0x44c5a8=a163_0x5891,_0x569dc3=_0x33dc78();while(!![]){try{var _0x500c6e=parseInt(_0x44c5a8(0x17f))/0x1*(parseInt(_0x44c5a8(0x182))/0x2)+parseInt(_0x44c5a8(0x181))/0x3*(parseInt(_0x44c5a8(0x180))/0x4)+-parseInt(_0x44c5a8(0x176))/0x5+parseInt(_0x44c5a8(0x17d))/0x6*(-parseInt(_0x44c5a8(0x177))/0x7)+-parseInt(_0x44c5a8(0x17b))/0x8*(-parseInt(_0x44c5a8(0x17e))/0x9)+-parseInt(_0x44c5a8(0x17a))/0xa*(parseInt(_0x44c5a8(0x178))/0xb)+parseInt(_0x44c5a8(0x17c))/0xc*(parseInt(_0x44c5a8(0x179))/0xd);if(_0x500c6e===_0x37ed9b)break;else _0x569dc3['push'](_0x569dc3['shift']());}catch(_0x15670f){_0x569dc3['push'](_0x569dc3['shift']());}}}(a163_0x43c1,0x5d37d));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a163_0x1e7289}from'@lovrabet/cli-framework';export function buildAllFlags(_0x611b36){return a163_0x1e7289(_0x611b36,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a164_0x28a5(){const _0x1ff768=['validateFlags','9kFfEZc','14751230XIXVUK','12BbgTcC','11296ryRwYc','64587468SJuYqX','7oHjCvm','5BWyGor','797128mneyMa','579oVyJda','5156070gSbTzC','1541796JfkiCa','1622248pYDngx'];a164_0x28a5=function(){return _0x1ff768;};return a164_0x28a5();}const a164_0x175787=a164_0x1d05;(function(_0x4922d1,_0x5ec34d){const _0x19bedd=a164_0x1d05,_0x4385e5=_0x4922d1();while(!![]){try{const _0x2adcc1=-parseInt(_0x19bedd(0x130))/0x1+parseInt(_0x19bedd(0x129))/0x2*(-parseInt(_0x19bedd(0x12e))/0x3)+-parseInt(_0x19bedd(0x12d))/0x4+-parseInt(_0x19bedd(0x12c))/0x5*(parseInt(_0x19bedd(0x12f))/0x6)+-parseInt(_0x19bedd(0x12b))/0x7*(-parseInt(_0x19bedd(0x131))/0x8)+-parseInt(_0x19bedd(0x133))/0x9*(parseInt(_0x19bedd(0x134))/0xa)+parseInt(_0x19bedd(0x12a))/0xb*(parseInt(_0x19bedd(0x128))/0xc);if(_0x2adcc1===_0x5ec34d)break;else _0x4385e5['push'](_0x4385e5['shift']());}catch(_0x6025c0){_0x4385e5['push'](_0x4385e5['shift']());}}}(a164_0x28a5,0xdddd7));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a164_0x1d05(_0x3dd132,_0xbce499){_0x3dd132=_0x3dd132-0x128;const _0x28a502=a164_0x28a5();let _0x1d052f=_0x28a502[_0x3dd132];return _0x1d052f;}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a164_0x175787(0x132)];
1
+ const a164_0x30d49d=a164_0x453f;function a164_0x3730(){const _0x5acd86=['991206HsrZUP','557588OiAudP','219324ejLArC','validateFlags','52300oKJFFs','2UufIQd','776690AOpLXN','666mCqdvD','199904NTuDrO','14svpxqT','658328enMNml'];a164_0x3730=function(){return _0x5acd86;};return a164_0x3730();}(function(_0xde8610,_0x5c81d0){const _0x8c2d96=a164_0x453f,_0x1efac1=_0xde8610();while(!![]){try{const _0x3237bf=parseInt(_0x8c2d96(0x1e9))/0x1*(-parseInt(_0x8c2d96(0x1e6))/0x2)+parseInt(_0x8c2d96(0x1ee))/0x3+parseInt(_0x8c2d96(0x1ed))/0x4+parseInt(_0x8c2d96(0x1e7))/0x5+parseInt(_0x8c2d96(0x1ec))/0x6+parseInt(_0x8c2d96(0x1ea))/0x7*(parseInt(_0x8c2d96(0x1eb))/0x8)+parseInt(_0x8c2d96(0x1e8))/0x9*(-parseInt(_0x8c2d96(0x1e5))/0xa);if(_0x3237bf===_0x5c81d0)break;else _0x1efac1['push'](_0x1efac1['shift']());}catch(_0x45fdf6){_0x1efac1['push'](_0x1efac1['shift']());}}}(a164_0x3730,0x1b06e));import{createFlagHelpers}from'@lovrabet/cli-framework';function a164_0x453f(_0x154310,_0x3fbecf){_0x154310=_0x154310-0x1e5;const _0x3730fb=a164_0x3730();let _0x453f0a=_0x3730fb[_0x154310];return _0x453f0a;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a164_0x30d49d(0x1ef)];
@@ -1 +1 @@
1
- const a165_0x26cfaf=a165_0x1865;(function(_0x5b5df6,_0x17a411){const _0x30e093=a165_0x1865,_0x323e04=_0x5b5df6();while(!![]){try{const _0x591a8d=parseInt(_0x30e093(0x1f3))/0x1+parseInt(_0x30e093(0x1e6))/0x2*(-parseInt(_0x30e093(0x1f5))/0x3)+-parseInt(_0x30e093(0x1e5))/0x4+-parseInt(_0x30e093(0x1f1))/0x5*(parseInt(_0x30e093(0x1ef))/0x6)+parseInt(_0x30e093(0x1f6))/0x7*(parseInt(_0x30e093(0x1f4))/0x8)+-parseInt(_0x30e093(0x1e7))/0x9*(parseInt(_0x30e093(0x1ee))/0xa)+parseInt(_0x30e093(0x1ea))/0xb;if(_0x591a8d===_0x17a411)break;else _0x323e04['push'](_0x323e04['shift']());}catch(_0x1aed39){_0x323e04['push'](_0x323e04['shift']());}}}(a165_0xa02a,0x5b4a3));import{createHelpGenerators}from'@lovrabet/cli-framework';function a165_0xa02a(){const _0x575903=['9uSfdiJ','generateCommandHelp','generateFullHelp','24982848AHXdZU','get','generateServiceHelp','\x20project\x20init`\x20or\x20--appcode).','3664630AFAoki','72yuVVaf','\x20[args]\x20[flags]','282690TKTeGc','Requires\x20appcode\x20(set\x20via\x20`','198924YDsQyO','424qmFjHf','15EVFecl','27545zDcWtw','2909020EyWQlY','213020UcdUos'];a165_0xa02a=function(){return _0x575903;};return a165_0xa02a();}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a165_0x1865(_0x39891c,_0xe8587a){_0x39891c=_0x39891c-0x1e5;const _0xa02a74=a165_0xa02a();let _0x18651a=_0xa02a74[_0x39891c];return _0x18651a;}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':_0x51bcfb=>serviceGroups[a165_0x26cfaf(0x1eb)](_0x51bcfb),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a165_0x26cfaf(0x1f2)+CLI_BIN_NAME+a165_0x26cfaf(0x1ed),'serviceUsageSuffix':a165_0x26cfaf(0x1f0),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x180f58){const _0x1f93bd=a165_0x26cfaf;return generators[_0x1f93bd(0x1e8)](_0x180f58);}export const generateServiceHelp=generators[a165_0x26cfaf(0x1ec)];export const generateFullHelp=generators[a165_0x26cfaf(0x1e9)];
1
+ const a165_0x542685=a165_0x5d8f;function a165_0x5e43(){const _0x24b5c8=['11134386OOXVWY','10YcLBgc','Requires\x20appcode\x20(set\x20via\x20`','842087dLMjSy','4034868KULnnd','\x20project\x20init`\x20or\x20--appcode).','generateCommandHelp','1887148XHyyYV','201999cltIOk','2xvduiA','5PWxQTP','2671328JfHtWO','6677360ZanhQe','3KzAYDT'];a165_0x5e43=function(){return _0x24b5c8;};return a165_0x5e43();}(function(_0x850f5d,_0x45d9a4){const _0x23ced9=a165_0x5d8f,_0x476050=_0x850f5d();while(!![]){try{const _0x1c38a8=-parseInt(_0x23ced9(0x14b))/0x1*(parseInt(_0x23ced9(0x143))/0x2)+parseInt(_0x23ced9(0x147))/0x3*(parseInt(_0x23ced9(0x141))/0x4)+-parseInt(_0x23ced9(0x144))/0x5*(parseInt(_0x23ced9(0x13e))/0x6)+-parseInt(_0x23ced9(0x142))/0x7+parseInt(_0x23ced9(0x146))/0x8+parseInt(_0x23ced9(0x148))/0x9*(parseInt(_0x23ced9(0x149))/0xa)+-parseInt(_0x23ced9(0x145))/0xb;if(_0x1c38a8===_0x45d9a4)break;else _0x476050['push'](_0x476050['shift']());}catch(_0x5628b6){_0x476050['push'](_0x476050['shift']());}}}(a165_0x5e43,0xb8e5d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a165_0x5d8f(_0x205b3a,_0x38688c){_0x205b3a=_0x205b3a-0x13e;const _0x5e439c=a165_0x5e43();let _0x5d8f9f=_0x5e439c[_0x205b3a];return _0x5d8f9f;}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':_0x20d854=>serviceGroups['get'](_0x20d854),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a165_0x542685(0x14a)+CLI_BIN_NAME+a165_0x542685(0x13f),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x1c4fc2){const _0x90fa=a165_0x542685;return generators[_0x90fa(0x140)](_0x1c4fc2);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- function a166_0x50d6(_0x313311,_0x29d1a3){_0x313311=_0x313311-0x13c;var _0x4d8aee=a166_0x4d8a();var _0x50d620=_0x4d8aee[_0x313311];return _0x50d620;}(function(_0x3d391b,_0x4e3a53){var _0x44ebfd=a166_0x50d6,_0x49144d=_0x3d391b();while(!![]){try{var _0x4c4f68=-parseInt(_0x44ebfd(0x143))/0x1*(parseInt(_0x44ebfd(0x13f))/0x2)+parseInt(_0x44ebfd(0x140))/0x3+-parseInt(_0x44ebfd(0x141))/0x4*(-parseInt(_0x44ebfd(0x13c))/0x5)+parseInt(_0x44ebfd(0x144))/0x6*(parseInt(_0x44ebfd(0x13d))/0x7)+-parseInt(_0x44ebfd(0x13e))/0x8+-parseInt(_0x44ebfd(0x142))/0x9+-parseInt(_0x44ebfd(0x145))/0xa;if(_0x4c4f68===_0x4e3a53)break;else _0x49144d['push'](_0x49144d['shift']());}catch(_0xc6f11c){_0x49144d['push'](_0x49144d['shift']());}}}(a166_0x4d8a,0x23fe9));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a166_0x4d8a(){var _0x424e6f=['281PeNyUC','16374PUHMSj','1190280sMQnLk','98635tUhmPE','644KYEEPP','190312vHoSNy','1808iLcZnh','860991MuhoEp','36TJBfmW','1542006vefTGN'];a166_0x4d8a=function(){return _0x424e6f;};return a166_0x4d8a();}
1
+ (function(_0x3ae859,_0x2b508e){var _0x5be389=a166_0x4d08,_0x3c650b=_0x3ae859();while(!![]){try{var _0x4656b3=parseInt(_0x5be389(0x1a2))/0x1+-parseInt(_0x5be389(0x1a0))/0x2+parseInt(_0x5be389(0x1a1))/0x3+-parseInt(_0x5be389(0x1a3))/0x4*(-parseInt(_0x5be389(0x19c))/0x5)+-parseInt(_0x5be389(0x19a))/0x6+parseInt(_0x5be389(0x19e))/0x7*(parseInt(_0x5be389(0x19b))/0x8)+-parseInt(_0x5be389(0x19d))/0x9*(parseInt(_0x5be389(0x19f))/0xa);if(_0x4656b3===_0x2b508e)break;else _0x3c650b['push'](_0x3c650b['shift']());}catch(_0xe182bc){_0x3c650b['push'](_0x3c650b['shift']());}}}(a166_0x4791,0xa07fd));function a166_0x4791(){var _0x46a3a8=['5974591WbNaDB','7470cYHsRc','1961794CWFqWL','1078173rVCUXF','822832vwZKJi','12dwsLIo','2960694sRYGkQ','8erNMSA','1512095UcgxRv','9774GTXWXE'];a166_0x4791=function(){return _0x46a3a8;};return a166_0x4791();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a166_0x4d08(_0x5d9d0f,_0x491a35){_0x5d9d0f=_0x5d9d0f-0x19a;var _0x4791a4=a166_0x4791();var _0x4d08b9=_0x4791a4[_0x5d9d0f];return _0x4d08b9;}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x344fb2,_0x3c3a8d){const _0x146cd9=a167_0x7d7c,_0x47c257=_0x344fb2();while(!![]){try{const _0x527aab=-parseInt(_0x146cd9(0x144))/0x1+-parseInt(_0x146cd9(0x13b))/0x2+-parseInt(_0x146cd9(0x143))/0x3*(parseInt(_0x146cd9(0x13d))/0x4)+-parseInt(_0x146cd9(0x142))/0x5*(-parseInt(_0x146cd9(0x140))/0x6)+-parseInt(_0x146cd9(0x13f))/0x7*(-parseInt(_0x146cd9(0x13e))/0x8)+parseInt(_0x146cd9(0x141))/0x9+parseInt(_0x146cd9(0x13c))/0xa;if(_0x527aab===_0x3c3a8d)break;else _0x47c257['push'](_0x47c257['shift']());}catch(_0x1b9189){_0x47c257['push'](_0x47c257['shift']());}}}(a167_0x4025,0xa98df));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a167_0x4025(){const _0x4dc01a=['9510129bYVkQZ','55895kmJeyV','6SxVsNZ','1151715SuhSUn','2767140UpafCT','4597390bmiWGC','320340FmgcEl','40TbinUS','1605653dRrGds','390aShufH'];a167_0x4025=function(){return _0x4dc01a;};return a167_0x4025();}import{CliErrors}from'../errors.js';function a167_0x7d7c(_0x1e7821,_0x3c32a9){_0x1e7821=_0x1e7821-0x13b;const _0x4025ae=a167_0x4025();let _0x7d7c85=_0x4025ae[_0x1e7821];return _0x7d7c85;}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ (function(_0x51389a,_0x4d3bda){const _0x523d9a=a167_0x593b,_0x44ea7b=_0x51389a();while(!![]){try{const _0x4dcbf6=parseInt(_0x523d9a(0x155))/0x1*(parseInt(_0x523d9a(0x154))/0x2)+parseInt(_0x523d9a(0x157))/0x3+-parseInt(_0x523d9a(0x150))/0x4+-parseInt(_0x523d9a(0x14f))/0x5+parseInt(_0x523d9a(0x152))/0x6+parseInt(_0x523d9a(0x153))/0x7*(-parseInt(_0x523d9a(0x151))/0x8)+-parseInt(_0x523d9a(0x156))/0x9*(-parseInt(_0x523d9a(0x14e))/0xa);if(_0x4dcbf6===_0x4d3bda)break;else _0x44ea7b['push'](_0x44ea7b['shift']());}catch(_0x59e7e7){_0x44ea7b['push'](_0x44ea7b['shift']());}}}(a167_0x27e3,0x366b4));function a167_0x593b(_0x44bd0f,_0x1127a8){_0x44bd0f=_0x44bd0f-0x14e;const _0x27e354=a167_0x27e3();let _0x593b7c=_0x27e354[_0x44bd0f];return _0x593b7c;}function a167_0x27e3(){const _0x662716=['388132uqLpPT','15824YZrfXJ','1576890LDkKqw','567mdEyeX','22RCVizS','25171RfvulC','747tiJZMz','263901pJhYHZ','25420gMTCyn','1792490egcPxh'];a167_0x27e3=function(){return _0x662716;};return a167_0x27e3();}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 a168_0x16a6(){var _0x334645=['40466YlenVI','3542944jSvvGH','8402681YKaUEr','78xxhlrc','654057WNAJHq','12638720ROJlyI','1451105JfdEDJ','6725484BsZkuu'];a168_0x16a6=function(){return _0x334645;};return a168_0x16a6();}function a168_0x332a(_0x1677b3,_0x233f7e){_0x1677b3=_0x1677b3-0x114;var _0x16a61d=a168_0x16a6();var _0x332aa8=_0x16a61d[_0x1677b3];return _0x332aa8;}(function(_0x2a0d0a,_0x51d356){var _0x1285f4=a168_0x332a,_0x4ad865=_0x2a0d0a();while(!![]){try{var _0x150a42=-parseInt(_0x1285f4(0x114))/0x1*(parseInt(_0x1285f4(0x119))/0x2)+-parseInt(_0x1285f4(0x115))/0x3+-parseInt(_0x1285f4(0x11a))/0x4+-parseInt(_0x1285f4(0x117))/0x5+parseInt(_0x1285f4(0x118))/0x6+parseInt(_0x1285f4(0x11b))/0x7+parseInt(_0x1285f4(0x116))/0x8;if(_0x150a42===_0x51d356)break;else _0x4ad865['push'](_0x4ad865['shift']());}catch(_0x5aa898){_0x4ad865['push'](_0x4ad865['shift']());}}}(a168_0x16a6,0xe2cdb));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x277264,_0x4b4ef7){var _0x43ee55=a168_0xeb68,_0x5f011d=_0x277264();while(!![]){try{var _0x13e9a7=-parseInt(_0x43ee55(0x13c))/0x1*(parseInt(_0x43ee55(0x137))/0x2)+parseInt(_0x43ee55(0x13e))/0x3*(-parseInt(_0x43ee55(0x139))/0x4)+-parseInt(_0x43ee55(0x13d))/0x5*(parseInt(_0x43ee55(0x138))/0x6)+-parseInt(_0x43ee55(0x140))/0x7*(parseInt(_0x43ee55(0x13f))/0x8)+parseInt(_0x43ee55(0x13b))/0x9+parseInt(_0x43ee55(0x13a))/0xa+parseInt(_0x43ee55(0x136))/0xb;if(_0x13e9a7===_0x4b4ef7)break;else _0x5f011d['push'](_0x5f011d['shift']());}catch(_0x590eb7){_0x5f011d['push'](_0x5f011d['shift']());}}}(a168_0x400d,0x461c4));function a168_0xeb68(_0x23c90e,_0x589006){_0x23c90e=_0x23c90e-0x136;var _0x400db6=a168_0x400d();var _0xeb685f=_0x400db6[_0x23c90e];return _0xeb685f;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a168_0x400d(){var _0x3ccea1=['3380256LnxRbu','244xAYURb','79705XOMQxh','1284897VDoGjp','21880ZUckzh','609IesQaP','8735804hLKCbF','3814rvOzlL','102fuyMxm','4ZgLFaR','5199730AIxpBl'];a168_0x400d=function(){return _0x3ccea1;};return a168_0x400d();}
@@ -1 +1 @@
1
- (function(_0x5f2d68,_0x5bd644){const _0x6481cd=a169_0x4db3,_0x82c536=_0x5f2d68();while(!![]){try{const _0xab2879=-parseInt(_0x6481cd(0xd0))/0x1*(-parseInt(_0x6481cd(0xd8))/0x2)+parseInt(_0x6481cd(0xc6))/0x3+parseInt(_0x6481cd(0xc1))/0x4*(-parseInt(_0x6481cd(0xd9))/0x5)+parseInt(_0x6481cd(0xd3))/0x6*(-parseInt(_0x6481cd(0xcc))/0x7)+parseInt(_0x6481cd(0xc7))/0x8*(-parseInt(_0x6481cd(0xc0))/0x9)+parseInt(_0x6481cd(0xcf))/0xa*(-parseInt(_0x6481cd(0xbe))/0xb)+parseInt(_0x6481cd(0xbf))/0xc*(parseInt(_0x6481cd(0xce))/0xd);if(_0xab2879===_0x5bd644)break;else _0x82c536['push'](_0x82c536['shift']());}catch(_0x22835d){_0x82c536['push'](_0x82c536['shift']());}}}(a169_0x4784,0xbc8fd));import{CliErrors}from'../errors.js';function a169_0x4db3(_0x3c1300,_0x3961e1){_0x3c1300=_0x3c1300-0xbe;const _0x47840d=a169_0x4784();let _0x4db37d=_0x47840d[_0x3c1300];return _0x4db37d;}function a169_0x4784(){const _0x2d1453=['1917890MJqBsA','13134rTryor','468TrkMJB','81jKClqQ','8pidYvp','.\x20Run\x20`','\x20api\x20pull`\x20first.','alias','some','844953iAaaZR','165208KdHfPf','Available\x20aliases:\x20','\x22.\x20','type','length','21HpNeeu','code','696202fjFTDU','10730OhWqow','5TeJYcB','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags','1249032rwJurf','Unknown\x20alias\x20\x22','validation','name','string','504314OAJtZN'];a169_0x4784=function(){return _0x2d1453;};return a169_0x4784();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0xa50e37,_0x31ef8a,_0x3934b0,_0x56566c){const _0x533f59=a169_0x4db3,_0x5a8e92=_0xa50e37[_0x533f59(0xd2)]['some'](_0x5aac2f=>_0x5aac2f[_0x533f59(0xd6)]===_0x533f59(0xcd)&&_0x5aac2f[_0x533f59(0xca)]===_0x533f59(0xd7)),_0x18425b=_0xa50e37[_0x533f59(0xd2)][_0x533f59(0xc5)](_0x394659=>_0x394659[_0x533f59(0xd6)]===_0x533f59(0xc4)&&_0x394659[_0x533f59(0xca)]===_0x533f59(0xd7));if(!_0x5a8e92||!_0x18425b)return;const _0x26fa63=_0x31ef8a[_0x533f59(0xcd)]?String(_0x31ef8a[_0x533f59(0xcd)]):'',_0x5626c8=_0x31ef8a[_0x533f59(0xc4)]?String(_0x31ef8a[_0x533f59(0xc4)]):'';if(!_0x26fa63&&!_0x5626c8)throw CliErrors[_0x533f59(0xd5)]('`'+_0x56566c+_0x533f59(0xd1));if(_0x5626c8&&!_0x26fa63){const _0x424bc0=resolveAlias(_0x3934b0,_0x5626c8);if(!_0x424bc0){const _0x4fb704=listAliases(_0x3934b0)['map'](_0x2111ef=>_0x2111ef[_0x533f59(0xc4)]),_0x50c70f=_0x4fb704[_0x533f59(0xcb)]?_0x533f59(0xc8)+_0x4fb704['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x3934b0+_0x533f59(0xc2)+CLI_BIN_NAME+_0x533f59(0xc3);throw CliErrors[_0x533f59(0xd5)](_0x533f59(0xd4)+_0x5626c8+_0x533f59(0xc9)+_0x50c70f);}_0x31ef8a[_0x533f59(0xcd)]=_0x424bc0;}}
1
+ (function(_0x37c75a,_0x45e35d){const _0x5248d5=a169_0x5503,_0x5ee0e6=_0x37c75a();while(!![]){try{const _0x5c3587=-parseInt(_0x5248d5(0x1d3))/0x1*(-parseInt(_0x5248d5(0x1c1))/0x2)+-parseInt(_0x5248d5(0x1c9))/0x3*(parseInt(_0x5248d5(0x1d0))/0x4)+parseInt(_0x5248d5(0x1d5))/0x5+parseInt(_0x5248d5(0x1c2))/0x6+-parseInt(_0x5248d5(0x1c0))/0x7+parseInt(_0x5248d5(0x1cd))/0x8*(parseInt(_0x5248d5(0x1d6))/0x9)+-parseInt(_0x5248d5(0x1c8))/0xa*(parseInt(_0x5248d5(0x1ca))/0xb);if(_0x5c3587===_0x45e35d)break;else _0x5ee0e6['push'](_0x5ee0e6['shift']());}catch(_0x4dc4e7){_0x5ee0e6['push'](_0x5ee0e6['shift']());}}}(a169_0x3776,0xbc9b2));function a169_0x3776(){const _0x1c4462=['3TtfJvK','132TstElj','flags','Unknown\x20alias\x20\x22','20632dprxgL','name','type','353524bMsWPo','string','No\x20api.ts\x20found\x20in\x20','206QGngss','alias','1006135BbPFBf','1611xeKoSc','validation','code','\x20api\x20pull`\x20first.','Available\x20aliases:\x20','850969QfhPdi','9266VVvUKs','7319520GhgYTy','join','map','`\x20requires\x20either\x20--code\x20or\x20--alias.','some','\x22.\x20','1545590FnHCpK'];a169_0x3776=function(){return _0x1c4462;};return a169_0x3776();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a169_0x5503(_0x1491c3,_0x55201b){_0x1491c3=_0x1491c3-0x1bd;const _0x3776e2=a169_0x3776();let _0x550371=_0x3776e2[_0x1491c3];return _0x550371;}export function resolveAliasToCode(_0x48fc69,_0x4122e0,_0x417ee7,_0x6fb8ca){const _0x3c16d5=a169_0x5503,_0x10e785=_0x48fc69['flags'][_0x3c16d5(0x1c6)](_0x189fad=>_0x189fad[_0x3c16d5(0x1ce)]===_0x3c16d5(0x1bd)&&_0x189fad[_0x3c16d5(0x1cf)]===_0x3c16d5(0x1d1)),_0xe060a1=_0x48fc69[_0x3c16d5(0x1cb)][_0x3c16d5(0x1c6)](_0x328ecd=>_0x328ecd[_0x3c16d5(0x1ce)]===_0x3c16d5(0x1d4)&&_0x328ecd[_0x3c16d5(0x1cf)]===_0x3c16d5(0x1d1));if(!_0x10e785||!_0xe060a1)return;const _0x142a24=_0x4122e0[_0x3c16d5(0x1bd)]?String(_0x4122e0[_0x3c16d5(0x1bd)]):'',_0x1c7bd4=_0x4122e0[_0x3c16d5(0x1d4)]?String(_0x4122e0['alias']):'';if(!_0x142a24&&!_0x1c7bd4)throw CliErrors[_0x3c16d5(0x1d7)]('`'+_0x6fb8ca+_0x3c16d5(0x1c5));if(_0x1c7bd4&&!_0x142a24){const _0x26c625=resolveAlias(_0x417ee7,_0x1c7bd4);if(!_0x26c625){const _0x2b8a80=listAliases(_0x417ee7)[_0x3c16d5(0x1c4)](_0x1cee5b=>_0x1cee5b[_0x3c16d5(0x1d4)]),_0x22a2a6=_0x2b8a80['length']?_0x3c16d5(0x1bf)+_0x2b8a80[_0x3c16d5(0x1c3)](',\x20'):_0x3c16d5(0x1d2)+_0x417ee7+'.\x20Run\x20`'+CLI_BIN_NAME+_0x3c16d5(0x1be);throw CliErrors['validation'](_0x3c16d5(0x1cc)+_0x1c7bd4+_0x3c16d5(0x1c7)+_0x22a2a6);}_0x4122e0[_0x3c16d5(0x1bd)]=_0x26c625;}}
@@ -1 +1 @@
1
- const a170_0x3a6dc8=a170_0x26bb;(function(_0x44d989,_0x473efe){const _0x2a0470=a170_0x26bb,_0x4d2ae5=_0x44d989();while(!![]){try{const _0x2b8061=-parseInt(_0x2a0470(0x17c))/0x1+-parseInt(_0x2a0470(0x16e))/0x2+-parseInt(_0x2a0470(0x182))/0x3+parseInt(_0x2a0470(0x16c))/0x4*(parseInt(_0x2a0470(0x16b))/0x5)+parseInt(_0x2a0470(0x166))/0x6*(parseInt(_0x2a0470(0x17e))/0x7)+-parseInt(_0x2a0470(0x176))/0x8+-parseInt(_0x2a0470(0x162))/0x9*(-parseInt(_0x2a0470(0x171))/0xa);if(_0x2b8061===_0x473efe)break;else _0x4d2ae5['push'](_0x4d2ae5['shift']());}catch(_0x2eff6b){_0x4d2ae5['push'](_0x4d2ae5['shift']());}}}(a170_0x1b31,0x6f352));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';function a170_0x1b31(){const _0x491c2d=['appCode','defaultApp','filter','⚠\x20\x20High-risk\x20operation:\x20','isNonInteractive','19395BqBmdI','\x20\x20\x20Continue?\x20[y/N]\x20','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','12egVuJz','defaultPageSize','explicitAppName','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','apps','308745rtJFEb','4QMagOg','appcode','1329764BWITbW','verbose','selectedAppName','6490rjlomx','Set\x20appcode\x20via\x20`','currentApp','defaultVerbose','map','2929752KCXFsF','format','cookie','resolveApiDomain','pageSize','command','582174TXqwJx','resolveCookie','2674679tMvHTH','resolveAppCode','High-risk\x20operation\x20`','apiDir','467271pyYMST'];a170_0x1b31=function(){return _0x491c2d;};return a170_0x1b31();}import{isNonInteractive as a170_0x6e70a7}from'../utils/is-non-interactive.js';function a170_0x26bb(_0x65ee63,_0x110fd5){_0x65ee63=_0x65ee63-0x161;const _0x1b3154=a170_0x1b31();let _0x26bbaf=_0x1b3154[_0x65ee63];return _0x26bbaf;}import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x3fc6fe,_0x1e81d5,_0xb458f5=[]){const _0x57280e=a170_0x26bb;return{'rawFlags':_0x1e81d5,'args':_0xb458f5,'resolveAppCode':()=>_0x3fc6fe['appCode']||_0x1e81d5[_0x57280e(0x16d)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3fc6fe[_0x57280e(0x178)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a170_0x6e70a7(_0x1e81d5),'defaultFormat':_0x3fc6fe[_0x57280e(0x177)],'defaultPageSize':_0x3fc6fe[_0x57280e(0x17a)],'defaultVerbose':_0x3fc6fe[_0x57280e(0x16f)],'apiDir':_0x3fc6fe[_0x57280e(0x181)],'riskLevel':_0x3fc6fe['riskLevel'],'selectedAppName':_0x3fc6fe[_0x57280e(0x168)],'mergedCli':{'defaultApp':_0x3fc6fe[_0x57280e(0x184)],'currentApp':_0x3fc6fe[_0x57280e(0x173)],'appCode':_0x3fc6fe[_0x57280e(0x183)],'apps':_0x3fc6fe[_0x57280e(0x16a)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a170_0x3a6dc8(0x185)](_0x10ef55=>PIPELINE_FLAG_NAMES['has'](_0x10ef55['name']))[a170_0x3a6dc8(0x175)](({name:_0x286775,type:_0x50de29,description:_0x260dbe})=>({'name':_0x286775,'type':_0x50de29,'description':_0x260dbe})),'formatOutput':formatOutput,'getCommandLabel'(_0x85966f){const _0x2edb6d=a170_0x3a6dc8;return CLI_BIN_NAME+'\x20'+_0x85966f['service']+'\x20'+_0x85966f[_0x2edb6d(0x17b)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x5b71d4){return CliErrors['validation'](_0x5b71d4);}},async 'prepare'(_0x12b34c,_0x19ae8c,_0x27f9fd,_0x1bd9c0){const _0x35bed4=a170_0x3a6dc8,_0x1bf8d4=_0x19ae8c[_0x35bed4(0x181)]||DEFAULT_API_DIR;resolveAliasToCode(_0x12b34c,_0x27f9fd,_0x1bf8d4,_0x1bd9c0);let _0x251aa4='';if(_0x12b34c['requiresAuth']!==![]){_0x251aa4=_0x19ae8c[_0x35bed4(0x17d)]();if(!_0x251aa4)throw CliErrors['authRequired']();const {setActiveCookie:_0x28eb07}=await import(_0x35bed4(0x164));_0x28eb07(_0x251aa4);}const _0x2f854d=_0x19ae8c[_0x35bed4(0x17f)]()??'';if(_0x12b34c['requiresAppCode']!==![]){if(!_0x2f854d)throw CliErrors['configMissing'](_0x35bed4(0x172)+CLI_BIN_NAME+_0x35bed4(0x169));}return{'defaults':{'booleans':{'verbose':_0x19ae8c[_0x35bed4(0x174)]},'numbers':{'pagesize':_0x19ae8c[_0x35bed4(0x167)]}},'extras':{'appCode':_0x2f854d,'cookie':_0x251aa4,'apiDomain':_0x19ae8c[_0x35bed4(0x179)](),'apiDir':_0x1bf8d4,'selectedAppName':_0x19ae8c[_0x35bed4(0x170)],'mergedCli':_0x19ae8c['mergedCli']}};},async 'confirmHighRisk'({env:_0x2d1036,commandLabel:_0x298966}){const _0x6b9972=a170_0x3a6dc8;if(_0x2d1036[_0x6b9972(0x161)])throw CliErrors['validation'](_0x6b9972(0x180)+_0x298966+_0x6b9972(0x165));await requireConfirmationPrompt({'lines':[_0x6b9972(0x186)+_0x298966,_0x6b9972(0x163)],'createCancelledError':_0x110435=>CliErrors['cancelled'](_0x110435)});},async 'finalize'(){const _0x2a1306=a170_0x3a6dc8,{clearActiveCookie:_0x558b1a}=await import(_0x2a1306(0x164));_0x558b1a();}};export async function runCommand(_0x52e6ca,_0x4e1d13){await runCommandWithAdapter(_0x52e6ca,_0x4e1d13,runnerAdapter);}
1
+ const a170_0x31521c=a170_0x321b;(function(_0x31c203,_0xa7e287){const _0x25dd9f=a170_0x321b,_0x29f375=_0x31c203();while(!![]){try{const _0x7f3681=parseInt(_0x25dd9f(0x1c0))/0x1*(-parseInt(_0x25dd9f(0x1cf))/0x2)+-parseInt(_0x25dd9f(0x1c2))/0x3*(-parseInt(_0x25dd9f(0x1b5))/0x4)+-parseInt(_0x25dd9f(0x1d3))/0x5*(-parseInt(_0x25dd9f(0x1be))/0x6)+-parseInt(_0x25dd9f(0x1c5))/0x7+parseInt(_0x25dd9f(0x1ae))/0x8*(parseInt(_0x25dd9f(0x1b8))/0x9)+parseInt(_0x25dd9f(0x1c1))/0xa+-parseInt(_0x25dd9f(0x1ac))/0xb*(parseInt(_0x25dd9f(0x1b1))/0xc);if(_0x7f3681===_0xa7e287)break;else _0x29f375['push'](_0x29f375['shift']());}catch(_0x51b4c5){_0x29f375['push'](_0x29f375['shift']());}}}(a170_0x3890,0x40cac));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a170_0x3890(){const _0x54dba6=['resolveAppCode','appcode','command','5kaxdOa','pageSize','configMissing','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','89848PGWpJB','name','8JTRHsI','resolveCookie','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1092hcsNlu','authRequired','has','format','258052pqahds','cookie','selectedAppName','1645281jndeiA','validation','requiresAppCode','mergedCli','currentApp','apiDir','2159034eojsFv','High-risk\x20operation\x20`','9873MdqxPq','4534950KtOuvl','15tJVWHL','filter','isNonInteractive','1410003pQVBvK','verbose','appCode','Set\x20appcode\x20via\x20`','apps','\x20\x20\x20Continue?\x20[y/N]\x20','service','riskLevel','resolveApiDomain','cancelled','22sRuAVZ'];a170_0x3890=function(){return _0x54dba6;};return a170_0x3890();}function a170_0x321b(_0x573400,_0x431cec){_0x573400=_0x573400-0x1aa;const _0x3890af=a170_0x3890();let _0x321b61=_0x3890af[_0x573400];return _0x321b61;}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 a170_0xfc58bc}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x3debb1,_0x169028,_0x31bd61=[]){const _0x313430=a170_0x321b;return{'rawFlags':_0x169028,'args':_0x31bd61,'resolveAppCode':()=>_0x3debb1[_0x313430(0x1c7)]||_0x169028[_0x313430(0x1d1)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3debb1[_0x313430(0x1b6)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a170_0xfc58bc(_0x169028),'defaultFormat':_0x3debb1[_0x313430(0x1b4)],'defaultPageSize':_0x3debb1[_0x313430(0x1d4)],'defaultVerbose':_0x3debb1[_0x313430(0x1c6)],'apiDir':_0x3debb1[_0x313430(0x1bd)],'riskLevel':_0x3debb1[_0x313430(0x1cc)],'selectedAppName':_0x3debb1['explicitAppName'],'mergedCli':{'defaultApp':_0x3debb1['defaultApp'],'currentApp':_0x3debb1[_0x313430(0x1bc)],'appCode':_0x3debb1[_0x313430(0x1c7)],'apps':_0x3debb1[_0x313430(0x1c9)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a170_0x31521c(0x1c3)](_0x368fa6=>PIPELINE_FLAG_NAMES[a170_0x31521c(0x1b3)](_0x368fa6[a170_0x31521c(0x1ad)]))['map'](({name:_0x241022,type:_0x54bd88,description:_0xd5e635})=>({'name':_0x241022,'type':_0x54bd88,'description':_0xd5e635})),'formatOutput':formatOutput,'getCommandLabel'(_0x174ba){const _0xcfbe0b=a170_0x31521c;return CLI_BIN_NAME+'\x20'+_0x174ba[_0xcfbe0b(0x1cb)]+'\x20'+_0x174ba[_0xcfbe0b(0x1d2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4c3821){return CliErrors['validation'](_0x4c3821);}},async 'prepare'(_0x3289f0,_0x4605e7,_0x370fcf,_0x573f14){const _0x322692=a170_0x31521c,_0x350783=_0x4605e7[_0x322692(0x1bd)]||DEFAULT_API_DIR;resolveAliasToCode(_0x3289f0,_0x370fcf,_0x350783,_0x573f14);let _0xd09ba='';if(_0x3289f0['requiresAuth']!==![]){_0xd09ba=_0x4605e7[_0x322692(0x1af)]();if(!_0xd09ba)throw CliErrors[_0x322692(0x1b2)]();const {setActiveCookie:_0x21fcb9}=await import('../core/api-client.js');_0x21fcb9(_0xd09ba);}const _0x7b7788=_0x4605e7[_0x322692(0x1d0)]()??'';if(_0x3289f0[_0x322692(0x1ba)]!==![]){if(!_0x7b7788)throw CliErrors[_0x322692(0x1aa)](_0x322692(0x1c8)+CLI_BIN_NAME+_0x322692(0x1b0));}return{'defaults':{'booleans':{'verbose':_0x4605e7['defaultVerbose']},'numbers':{'pagesize':_0x4605e7['defaultPageSize']}},'extras':{'appCode':_0x7b7788,'cookie':_0xd09ba,'apiDomain':_0x4605e7[_0x322692(0x1cd)](),'apiDir':_0x350783,'selectedAppName':_0x4605e7[_0x322692(0x1b7)],'mergedCli':_0x4605e7[_0x322692(0x1bb)]}};},async 'confirmHighRisk'({env:_0x2408ac,commandLabel:_0x59dda2}){const _0x46f839=a170_0x31521c;if(_0x2408ac[_0x46f839(0x1c4)])throw CliErrors[_0x46f839(0x1b9)](_0x46f839(0x1bf)+_0x59dda2+_0x46f839(0x1ab));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x59dda2,_0x46f839(0x1ca)],'createCancelledError':_0x18c1c3=>CliErrors[_0x46f839(0x1ce)](_0x18c1c3)});},async 'finalize'(){const {clearActiveCookie:_0x3de358}=await import('../core/api-client.js');_0x3de358();}};export async function runCommand(_0x31e5df,_0x21401c){await runCommandWithAdapter(_0x31e5df,_0x21401c,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x339026,_0x41e3cf){const _0x352462=a171_0x3108,_0x1ff8de=_0x339026();while(!![]){try{const _0x44de51=-parseInt(_0x352462(0x84))/0x1+-parseInt(_0x352462(0x7f))/0x2*(parseInt(_0x352462(0x81))/0x3)+parseInt(_0x352462(0x7d))/0x4+-parseInt(_0x352462(0x7c))/0x5+-parseInt(_0x352462(0x83))/0x6*(-parseInt(_0x352462(0x7b))/0x7)+parseInt(_0x352462(0x7e))/0x8*(parseInt(_0x352462(0x82))/0x9)+parseInt(_0x352462(0x80))/0xa;if(_0x44de51===_0x41e3cf)break;else _0x1ff8de['push'](_0x1ff8de['shift']());}catch(_0x5d0db3){_0x1ff8de['push'](_0x1ff8de['shift']());}}}(a171_0x55de,0xf33ee));import{buildSchemaPayload as a171_0x50a237}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a171_0x3108(_0x1b404f,_0x1a27b3){_0x1b404f=_0x1b404f-0x7b;const _0x55def6=a171_0x55de();let _0x3108a7=_0x55def6[_0x1b404f];return _0x3108a7;}function a171_0x55de(){const _0x18f990=['162dTAJxv','949818OyUOSr','184793FEjiSd','3390335NoarJZ','1070648oNFIjT','760RCrggC','17318MAoXAh','17645940fenaMo','75JhGYOe','9063MNMvaG'];a171_0x55de=function(){return _0x18f990;};return a171_0x55de();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x83ffee,findDefinition:_0x264602}=await import('../commands/registry.js');return a171_0x50a237({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x83ffee,'buildAllFlags':buildAllFlags,'findDefinition':_0x264602});}
1
+ (function(_0x3937a3,_0x157115){const _0x1bf410=a171_0x2c82,_0x95f93e=_0x3937a3();while(!![]){try{const _0x1e83e1=-parseInt(_0x1bf410(0xa5))/0x1+parseInt(_0x1bf410(0xa1))/0x2*(-parseInt(_0x1bf410(0x9e))/0x3)+parseInt(_0x1bf410(0xa2))/0x4+-parseInt(_0x1bf410(0x9f))/0x5*(parseInt(_0x1bf410(0xa6))/0x6)+parseInt(_0x1bf410(0x9c))/0x7*(parseInt(_0x1bf410(0xa3))/0x8)+parseInt(_0x1bf410(0xa4))/0x9*(-parseInt(_0x1bf410(0xa0))/0xa)+parseInt(_0x1bf410(0xa7))/0xb;if(_0x1e83e1===_0x157115)break;else _0x95f93e['push'](_0x95f93e['shift']());}catch(_0x35c28b){_0x95f93e['push'](_0x95f93e['shift']());}}}(a171_0x5bed,0x850ff));import{buildSchemaPayload as a171_0x50c5d8}from'@lovrabet/cli-framework';function a171_0x5bed(){const _0x34c644=['537416iRPPHD','8052248KVyAnJ','1963278nNdVqJ','653278yxVVBJ','366pBrnyp','21336700lGhyGH','7Iyqwxd','../commands/registry.js','30aTOImt','52190ocLyxn','30bujVMn','118228kwZrgz'];a171_0x5bed=function(){return _0x34c644;};return a171_0x5bed();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a171_0x2c82(_0x4f4994,_0x53d18c){_0x4f4994=_0x4f4994-0x9c;const _0x5bedc6=a171_0x5bed();let _0x2c8215=_0x5bedc6[_0x4f4994];return _0x2c8215;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5c07c2=a171_0x2c82,{serviceRegistry:_0x4cabb0,findDefinition:_0x2c1eca}=await import(_0x5c07c2(0x9d));return a171_0x50c5d8({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4cabb0,'buildAllFlags':buildAllFlags,'findDefinition':_0x2c1eca});}
@@ -1 +1 @@
1
- (function(_0x2a6a19,_0x3ba7ea){var _0x624033=a172_0x520a,_0x840e1a=_0x2a6a19();while(!![]){try{var _0x5cddb5=parseInt(_0x624033(0x15d))/0x1*(-parseInt(_0x624033(0x160))/0x2)+-parseInt(_0x624033(0x15e))/0x3+parseInt(_0x624033(0x166))/0x4*(-parseInt(_0x624033(0x162))/0x5)+parseInt(_0x624033(0x15f))/0x6+-parseInt(_0x624033(0x161))/0x7+parseInt(_0x624033(0x163))/0x8+parseInt(_0x624033(0x164))/0x9*(parseInt(_0x624033(0x165))/0xa);if(_0x5cddb5===_0x3ba7ea)break;else _0x840e1a['push'](_0x840e1a['shift']());}catch(_0x1c061a){_0x840e1a['push'](_0x840e1a['shift']());}}}(a172_0x287f,0x79d6c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a172_0x520a(_0x545ed6,_0x5be7db){_0x545ed6=_0x545ed6-0x15d;var _0x287fa4=a172_0x287f();var _0x520a9f=_0x287fa4[_0x545ed6];return _0x520a9f;}function a172_0x287f(){var _0x446778=['4zkBxwS','1tHkLNI','2214414ZlUBpe','2286000MNXbLf','521034oYDZGh','339255wuuqSx','3995965VFkYqG','608624GWkeTB','27HwvMyi','6294290iySYBA'];a172_0x287f=function(){return _0x446778;};return a172_0x287f();}
1
+ (function(_0x2cdc8d,_0x1d13e9){var _0x376246=a172_0x2e8d,_0x12a1e8=_0x2cdc8d();while(!![]){try{var _0x5c2ee8=parseInt(_0x376246(0x1b3))/0x1*(-parseInt(_0x376246(0x1b5))/0x2)+parseInt(_0x376246(0x1bb))/0x3*(-parseInt(_0x376246(0x1b7))/0x4)+parseInt(_0x376246(0x1ba))/0x5+parseInt(_0x376246(0x1b4))/0x6+-parseInt(_0x376246(0x1b6))/0x7+parseInt(_0x376246(0x1bc))/0x8*(parseInt(_0x376246(0x1b9))/0x9)+parseInt(_0x376246(0x1b8))/0xa;if(_0x5c2ee8===_0x1d13e9)break;else _0x12a1e8['push'](_0x12a1e8['shift']());}catch(_0x72749e){_0x12a1e8['push'](_0x12a1e8['shift']());}}}(a172_0x597c,0xafb1b));function a172_0x2e8d(_0x442aac,_0x4965ef){_0x442aac=_0x442aac-0x1b3;var _0x597cf0=a172_0x597c();var _0x2e8deb=_0x597cf0[_0x442aac];return _0x2e8deb;}function a172_0x597c(){var _0x425ee8=['690895DxDucU','1725546KlpVov','11410904gSSrCu','4EnEEwm','7963134NBslxq','578938kzvZRD','7291333gZUmit','4urucyr','6025890OoOIBX','9IRlMmn'];a172_0x597c=function(){return _0x425ee8;};return a172_0x597c();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a173_0x1ecc03=a173_0x58c1;(function(_0x5bcdec,_0xa77f94){const _0x4aa34d=a173_0x58c1,_0x537bb1=_0x5bcdec();while(!![]){try{const _0x4917e4=-parseInt(_0x4aa34d(0xa5))/0x1+parseInt(_0x4aa34d(0x9b))/0x2*(parseInt(_0x4aa34d(0x9c))/0x3)+-parseInt(_0x4aa34d(0xa0))/0x4+parseInt(_0x4aa34d(0xa1))/0x5*(-parseInt(_0x4aa34d(0xa4))/0x6)+-parseInt(_0x4aa34d(0x9f))/0x7*(-parseInt(_0x4aa34d(0xa3))/0x8)+parseInt(_0x4aa34d(0x9d))/0x9+parseInt(_0x4aa34d(0xa8))/0xa*(-parseInt(_0x4aa34d(0xa7))/0xb);if(_0x4917e4===_0xa77f94)break;else _0x537bb1['push'](_0x537bb1['shift']());}catch(_0x3bf957){_0x537bb1['push'](_0x537bb1['shift']());}}}(a173_0x2311,0x6f34c));export const VERSION=a173_0x1ecc03(0xa2);function a173_0x58c1(_0x1450d0,_0x4c3414){_0x1450d0=_0x1450d0-0x9a;const _0x231119=a173_0x2311();let _0x58c102=_0x231119[_0x1450d0];return _0x58c102;}function a173_0x2311(){const _0x20ef2b=['v2.1.14-beta.1','880NRhVKV','106670ktzpbI','85d42d4','79696BzTqkH','24hrGEBi','7793523RCLVLF','2026-06-06T16:15:06.098Z','742FEzVzb','1189256gyXwBQ','425cAXrqS','2.1.14-beta.2','45512jUeGin','7896CdGprx','69731NrJzco'];a173_0x2311=function(){return _0x20ef2b;};return a173_0x2311();}export const GIT_TAG=a173_0x1ecc03(0xa6);export const GIT_COMMIT=a173_0x1ecc03(0x9a);export const BUILD_TIME=a173_0x1ecc03(0x9e);
1
+ const a173_0x519b98=a173_0x5506;(function(_0x568f95,_0x50505f){const _0x565cb6=a173_0x5506,_0x72610e=_0x568f95();while(!![]){try{const _0x5b9cb1=-parseInt(_0x565cb6(0x98))/0x1*(-parseInt(_0x565cb6(0x94))/0x2)+parseInt(_0x565cb6(0x9a))/0x3*(parseInt(_0x565cb6(0xa0))/0x4)+parseInt(_0x565cb6(0xa1))/0x5+-parseInt(_0x565cb6(0x97))/0x6+-parseInt(_0x565cb6(0x9b))/0x7*(-parseInt(_0x565cb6(0x9d))/0x8)+-parseInt(_0x565cb6(0x9c))/0x9*(-parseInt(_0x565cb6(0x99))/0xa)+-parseInt(_0x565cb6(0x9e))/0xb;if(_0x5b9cb1===_0x50505f)break;else _0x72610e['push'](_0x72610e['shift']());}catch(_0x37025f){_0x72610e['push'](_0x72610e['shift']());}}}(a173_0x387e,0x60d67));function a173_0x5506(_0x2494db,_0x30a020){_0x2494db=_0x2494db-0x94;const _0x387e06=a173_0x387e();let _0x55060a=_0x387e06[_0x2494db];return _0x55060a;}export const VERSION=a173_0x519b98(0x95);export const GIT_TAG='v2.1.14-beta.2';export const GIT_COMMIT=a173_0x519b98(0x9f);function a173_0x387e(){const _0x227664=['2.1.14-beta.3','2026-06-10T05:52:11.876Z','2067744CaOTxG','184282pLNbWt','548480PqaJgk','3RBVbbA','56rmjFuu','54KfgaoB','244792Dyuulg','16407512JXPTgt','544bc05','2148728mRGqqX','2844775brPCeW','6SiPrYD'];a173_0x387e=function(){return _0x227664;};return a173_0x387e();}export const BUILD_TIME=a173_0x519b98(0x96);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a174_0xc3a2(_0x4c4bd5,_0x2b0334){_0x4c4bd5=_0x4c4bd5-0x15f;var _0x41a8a1=a174_0x41a8();var _0xc3a252=_0x41a8a1[_0x4c4bd5];return _0xc3a252;}(function(_0x20ae33,_0x2a2800){var _0x3d9d51=a174_0xc3a2,_0x246bfb=_0x20ae33();while(!![]){try{var _0x2da7cd=-parseInt(_0x3d9d51(0x160))/0x1*(-parseInt(_0x3d9d51(0x16a))/0x2)+-parseInt(_0x3d9d51(0x162))/0x3*(parseInt(_0x3d9d51(0x168))/0x4)+-parseInt(_0x3d9d51(0x167))/0x5*(parseInt(_0x3d9d51(0x163))/0x6)+parseInt(_0x3d9d51(0x165))/0x7*(parseInt(_0x3d9d51(0x16e))/0x8)+parseInt(_0x3d9d51(0x169))/0x9*(-parseInt(_0x3d9d51(0x161))/0xa)+-parseInt(_0x3d9d51(0x170))/0xb*(parseInt(_0x3d9d51(0x171))/0xc)+parseInt(_0x3d9d51(0x16f))/0xd;if(_0x2da7cd===_0x2a2800)break;else _0x246bfb['push'](_0x246bfb['shift']());}catch(_0x1ea7e4){_0x246bfb['push'](_0x246bfb['shift']());}}}(a174_0x41a8,0x42598));import a174_0x2502fa from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x567490=a174_0xc3a2;console[_0x567490(0x15f)](),console['log'](a174_0x2502fa[_0x567490(0x16d)][_0x567490(0x166)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x567490(0x15f)](),console['log'](_0x567490(0x16c)+a174_0x2502fa[_0x567490(0x16d)][_0x567490(0x166)](CLI_BIN_NAME+_0x567490(0x16b))+_0x567490(0x164)),console[_0x567490(0x15f)]();}function a174_0x41a8(){var _0x2cc0bb=['26010kyWjDl','\x20--help','\x20\x20Use\x20','green','39584XfypmU','7118891EVdzcH','165rXuYYk','71460JWZSht','log','31mtOfoz','20lDVaaT','15ZBmmYO','151782hpqPOF','\x20to\x20view\x20available\x20commands.','497zBHWIm','bold','60JKYLaf','88348ebOFeh','2371401HwMLrT'];a174_0x41a8=function(){return _0x2cc0bb;};return a174_0x41a8();}
1
+ function a174_0x49c4(){var _0x3c265d=['9XtkCUk','\x20--help','10HVNtDi','2584085ziUcSw','599244fvVfyS','3CSiKux','bold','2137384LCqkRj','384346TsPKKw','214160uenuWC','5786100chjQPR','\x20to\x20view\x20available\x20commands.','log','977490aLsWft'];a174_0x49c4=function(){return _0x3c265d;};return a174_0x49c4();}function a174_0xac13(_0x1a358a,_0x290dac){_0x1a358a=_0x1a358a-0xc3;var _0x49c497=a174_0x49c4();var _0xac1395=_0x49c497[_0x1a358a];return _0xac1395;}(function(_0x5428a8,_0xe77e99){var _0x2f2c07=a174_0xac13,_0x564e20=_0x5428a8();while(!![]){try{var _0x2257bf=parseInt(_0x2f2c07(0xc7))/0x1+-parseInt(_0x2f2c07(0xc6))/0x2*(parseInt(_0x2f2c07(0xc3))/0x3)+-parseInt(_0x2f2c07(0xd0))/0x4+-parseInt(_0x2f2c07(0xce))/0x5*(parseInt(_0x2f2c07(0xcb))/0x6)+parseInt(_0x2f2c07(0xcf))/0x7+-parseInt(_0x2f2c07(0xc5))/0x8*(parseInt(_0x2f2c07(0xcc))/0x9)+parseInt(_0x2f2c07(0xc8))/0xa;if(_0x2257bf===_0xe77e99)break;else _0x564e20['push'](_0x564e20['shift']());}catch(_0x51be28){_0x564e20['push'](_0x564e20['shift']());}}}(a174_0x49c4,0x3767a));import a174_0xf555ed from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4751ff=a174_0xac13;console[_0x4751ff(0xca)](),console[_0x4751ff(0xca)](a174_0xf555ed['green'][_0x4751ff(0xc4)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4751ff(0xca)](),console['log']('\x20\x20Use\x20'+a174_0xf555ed['green'][_0x4751ff(0xc4)](CLI_BIN_NAME+_0x4751ff(0xcd))+_0x4751ff(0xc9)),console['log']();}
@@ -1 +1 @@
1
- (function(_0x257f04,_0x2789a3){const _0x21cfde=a175_0xe6b5,_0x561465=_0x257f04();while(!![]){try{const _0xfe0abc=-parseInt(_0x21cfde(0x14b))/0x1+-parseInt(_0x21cfde(0x141))/0x2+parseInt(_0x21cfde(0x155))/0x3+parseInt(_0x21cfde(0x150))/0x4*(parseInt(_0x21cfde(0x158))/0x5)+parseInt(_0x21cfde(0x15a))/0x6+parseInt(_0x21cfde(0x159))/0x7*(-parseInt(_0x21cfde(0x14f))/0x8)+-parseInt(_0x21cfde(0x13d))/0x9*(-parseInt(_0x21cfde(0x146))/0xa);if(_0xfe0abc===_0x2789a3)break;else _0x561465['push'](_0x561465['shift']());}catch(_0x4b2b06){_0x561465['push'](_0x561465['shift']());}}}(a175_0x35af,0x6b652));function a175_0x35af(){const _0x3a8175=['(empty)','1172176dRdbva','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','Equivalent\x20command:\x20','error','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','90RTewEg','--help','setLogPath','entries','argv','163027jRnIKR','help','Error:\x20Unsupported\x20command:\x20','cwd','440Gvfdrs','555404rSivrh','enable-bff-save','replace','不支持的命令:\x20','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','1901223mEgLUh','includes','length','15QdiWMV','71211hTrKWp','666774LUMnQk','-$1','toLowerCase','\x20skill\x20--help\x0a\x20\x20','slice','dangerously-bff-save','from','push','startsWith','skill','587097soofSj','log','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a'];a175_0x35af=function(){return _0x3a8175;};return a175_0x35af();}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(_0x272d41){const _0x377c1f=a175_0xe6b5,_0x15c122=[];for(const [_0x38847b,_0x5b599e]of Object[_0x377c1f(0x149)](_0x272d41)){if(_0x5b599e===!![]){const _0x2d3d51=_0x38847b[_0x377c1f(0x152)](/([A-Z])/g,_0x377c1f(0x15b))[_0x377c1f(0x15c)]();_0x15c122[_0x377c1f(0x13a)](_0x2d3d51);}}return _0x15c122;}export function parseDynamicFlags(){const _0x29b18e=a175_0xe6b5,_0x5cfe4c=[];for(let _0x486a12=0x3;_0x486a12<process[_0x29b18e(0x14a)][_0x29b18e(0x157)];_0x486a12++){const _0x5d2d6a=process[_0x29b18e(0x14a)][_0x486a12];if(_0x5d2d6a&&_0x5d2d6a[_0x29b18e(0x13b)]('--')){const _0x2a282a=_0x5d2d6a[_0x29b18e(0x137)](0x2);_0x2a282a&&!_0x2a282a[_0x29b18e(0x156)]('=')&&_0x5cfe4c[_0x29b18e(0x13a)](_0x2a282a);}}return _0x5cfe4c;}export function getAllProvidedFlags(_0x3152af){const _0x52c22e=a175_0xe6b5,_0x2966f2=camelCaseFlagsToKebab(_0x3152af),_0x39cf24=parseDynamicFlags(),_0xc1d9fa=new Set([..._0x2966f2,..._0x39cf24]);return Array[_0x52c22e(0x139)](_0xc1d9fa);}export function normalizeLegacyBffSaveFlags(_0x1451fd){const _0x2c5423=a175_0xe6b5,_0x3a5cd0=new Set(_0x1451fd);return _0x3a5cd0['has'](_0x2c5423(0x138))&&_0x3a5cd0['add'](_0x2c5423(0x151)),Array[_0x2c5423(0x139)](_0x3a5cd0);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a175_0xe6b5(_0x59ea89,_0x4a2749){_0x59ea89=_0x59ea89-0x137;const _0x35af5a=a175_0x35af();let _0xe6b53=_0x35af5a[_0x59ea89];return _0xe6b53;}export async function skillsCommand(_0x485844,_0x23ba6e,_0x62bc29){const _0x28a265=a175_0xe6b5;logger[_0x28a265(0x148)](process[_0x28a265(0x14e)]());if(_0x62bc29?.[_0x28a265(0x14c)]||_0x485844===_0x28a265(0x147)){showHelp();return;}console[_0x28a265(0x144)](_0x28a265(0x14d)+(_0x485844||_0x28a265(0x140))),console[_0x28a265(0x13e)]('\x0aAvailable\x20commands:'),console[_0x28a265(0x13e)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x28a265(0x13e)]('\x20\x20'+CLI_BIN_NAME+_0x28a265(0x154)),console[_0x28a265(0x13e)](''),console['log'](_0x28a265(0x143)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x28a265(0x144)](_0x28a265(0x13c),_0x28a265(0x153)+_0x485844),process['exit'](0x1);}function showHelp(){const _0x5c207f=a175_0xe6b5;console[_0x5c207f(0x13e)](_0x5c207f(0x145)+CLI_BIN_NAME+_0x5c207f(0x15d)+CLI_BIN_NAME+_0x5c207f(0x142)+SKILLS_INSTALL_COMMAND_LINE+_0x5c207f(0x13f));}
1
+ (function(_0x37411d,_0x3094a7){const _0x1cdc54=a175_0x3cdf,_0x551ead=_0x37411d();while(!![]){try{const _0xf6f825=parseInt(_0x1cdc54(0x118))/0x1+-parseInt(_0x1cdc54(0x133))/0x2+parseInt(_0x1cdc54(0x115))/0x3*(parseInt(_0x1cdc54(0x120))/0x4)+parseInt(_0x1cdc54(0x10d))/0x5+-parseInt(_0x1cdc54(0x129))/0x6+-parseInt(_0x1cdc54(0x11f))/0x7*(-parseInt(_0x1cdc54(0x11e))/0x8)+-parseInt(_0x1cdc54(0x125))/0x9*(-parseInt(_0x1cdc54(0x12a))/0xa);if(_0xf6f825===_0x3094a7)break;else _0x551ead['push'](_0x551ead['shift']());}catch(_0x4f07ed){_0x551ead['push'](_0x551ead['shift']());}}}(a175_0x3555,0x1de32));function a175_0x3cdf(_0xf66966,_0x1a5cc4){_0xf66966=_0xf66966-0x10d;const _0x35553c=a175_0x3555();let _0x3cdf81=_0x35553c[_0xf66966];return _0x3cdf81;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a175_0x3555(){const _0xc874e7=['30qAqNzZ','slice','argv','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','--help','\x0aAvailable\x20commands:','exit','length','Error:\x20Unsupported\x20command:\x20','219530yfDEey','530180mDEfyM','setLogPath','log','help','(empty)','Equivalent\x20command:\x20','replace','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','29553xVEOqW','toLowerCase','entries','76912OuosbF','push','error','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','has','dangerously-bff-save','296pbMblR','43274RFCTOX','12nVvNzA','\x20skill\x20--help\x0a\x20\x20','add','from','startsWith','2115kJQRkI','includes','cwd','skill','1258542jHjpCC'];a175_0x3555=function(){return _0xc874e7;};return a175_0x3555();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2ca409){const _0x2d9a6c=a175_0x3cdf,_0x4e486e=[];for(const [_0x4150eb,_0x498e0f]of Object[_0x2d9a6c(0x117)](_0x2ca409)){if(_0x498e0f===!![]){const _0x9facdd=_0x4150eb[_0x2d9a6c(0x113)](/([A-Z])/g,'-$1')[_0x2d9a6c(0x116)]();_0x4e486e[_0x2d9a6c(0x119)](_0x9facdd);}}return _0x4e486e;}export function parseDynamicFlags(){const _0x1d3982=a175_0x3cdf,_0x457730=[];for(let _0x13f36a=0x3;_0x13f36a<process[_0x1d3982(0x12c)][_0x1d3982(0x131)];_0x13f36a++){const _0x490134=process[_0x1d3982(0x12c)][_0x13f36a];if(_0x490134&&_0x490134[_0x1d3982(0x124)]('--')){const _0x15f830=_0x490134[_0x1d3982(0x12b)](0x2);_0x15f830&&!_0x15f830[_0x1d3982(0x126)]('=')&&_0x457730[_0x1d3982(0x119)](_0x15f830);}}return _0x457730;}export function getAllProvidedFlags(_0x460b98){const _0x141f3c=a175_0x3cdf,_0x745c2a=camelCaseFlagsToKebab(_0x460b98),_0xa28d4f=parseDynamicFlags(),_0xe5fa6f=new Set([..._0x745c2a,..._0xa28d4f]);return Array[_0x141f3c(0x123)](_0xe5fa6f);}export function normalizeLegacyBffSaveFlags(_0x2385a9){const _0x3cf15e=a175_0x3cdf,_0x6444cc=new Set(_0x2385a9);return _0x6444cc[_0x3cf15e(0x11c)](_0x3cf15e(0x11d))&&_0x6444cc[_0x3cf15e(0x122)]('enable-bff-save'),Array[_0x3cf15e(0x123)](_0x6444cc);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x118d64,_0x4af937,_0x2217cf){const _0x48e286=a175_0x3cdf;logger[_0x48e286(0x10e)](process[_0x48e286(0x127)]());if(_0x2217cf?.[_0x48e286(0x110)]||_0x118d64===_0x48e286(0x12e)){showHelp();return;}console[_0x48e286(0x11a)](_0x48e286(0x132)+(_0x118d64||_0x48e286(0x111))),console[_0x48e286(0x10f)](_0x48e286(0x12f)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x48e286(0x11b)),console[_0x48e286(0x10f)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x48e286(0x10f)](''),console[_0x48e286(0x10f)](_0x48e286(0x112)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x48e286(0x128),'不支持的命令:\x20'+_0x118d64),process[_0x48e286(0x130)](0x1);}function showHelp(){const _0x4312a5=a175_0x3cdf;console[_0x4312a5(0x10f)](_0x4312a5(0x114)+CLI_BIN_NAME+_0x4312a5(0x121)+CLI_BIN_NAME+_0x4312a5(0x12d)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
@@ -1 +1 @@
1
- const a176_0x514365=a176_0x3c24;(function(_0x44fc9c,_0x41801f){const _0x281d3e=a176_0x3c24,_0xdaf2f=_0x44fc9c();while(!![]){try{const _0x5a9f0d=parseInt(_0x281d3e(0x1b2))/0x1+parseInt(_0x281d3e(0x1c1))/0x2*(-parseInt(_0x281d3e(0x1b4))/0x3)+-parseInt(_0x281d3e(0x1af))/0x4*(-parseInt(_0x281d3e(0x1be))/0x5)+-parseInt(_0x281d3e(0x1b5))/0x6+parseInt(_0x281d3e(0x1b3))/0x7*(-parseInt(_0x281d3e(0x1bc))/0x8)+-parseInt(_0x281d3e(0x1c2))/0x9+parseInt(_0x281d3e(0x1ac))/0xa;if(_0x5a9f0d===_0x41801f)break;else _0xdaf2f['push'](_0xdaf2f['shift']());}catch(_0x2856ff){_0xdaf2f['push'](_0xdaf2f['shift']());}}}(a176_0xfcc7,0x87b0a));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a176_0x3c24(_0x2f2f5d,_0xaddf57){_0x2f2f5d=_0x2f2f5d-0x1a9;const _0xfcc7f3=a176_0xfcc7();let _0x3c24f5=_0xfcc7f3[_0x2f2f5d];return _0x3c24f5;}export const NPX_SKILLS_CLI=a176_0x514365(0x1b0);function a176_0xfcc7(){const _0x1b578b=['stdout','pipe','join','lovrabet/lovrabet-skill','npx','skill','Lovrabet','stdio','18646540OPBhBq','exit\x20','log','2042444uOrdaH','skills','unknown','412645ePBxOR','98tPHsRL','24pudppG','906414Czbbge','stderr','toString','yes','push','inherit','add','134408tWpZKt','remove','5eSTnDE','trim','status','218474iKpRjq','8747505BceCsb','lovrabet/rabetbase'];a176_0xfcc7=function(){return _0x1b578b;};return a176_0xfcc7();}export const NPX_SKILLS_SUBCOMMAND_ADD=a176_0x514365(0x1bb);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a176_0x514365(0x1c3);export const LEGACY_RABETBASE_SKILL_SOURCE=a176_0x514365(0x1c7);export const DEFAULT_RABETBASE_SKILL_NAME=a176_0x514365(0x1aa);export function buildNpxSkillsAddArgv(_0x27ab4e){const _0x5a0c7d=a176_0x514365,_0x277577=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x27ab4e&&_0x277577[_0x5a0c7d(0x1b9)](NPX_SKILLS_FLAG_SKILL,_0x27ab4e),_0x277577;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a176_0x514365(0x1c8),...buildNpxSkillsAddArgv()][a176_0x514365(0x1c6)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a176_0x514365(0x1c8),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a176_0x514365(0x1c6)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2e4d7f,_0x48696d){const _0x4645bd=a176_0x514365;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xa00e07=_0x48696d?.[_0x4645bd(0x1ab)]??_0x4645bd(0x1ba),_0x574334=resolveNpmBin(_0x4645bd(0x1c8)),_0x2c5ea4=buildNpxSkillsAddArgv(_0x48696d?.[_0x4645bd(0x1a9)]),_0x4b3e83=['npx',..._0x2c5ea4][_0x4645bd(0x1c6)]('\x20');console[_0x4645bd(0x1ae)]('*\x20'+_0x4b3e83);const _0xbcf467=spawnSync(_0x574334,_0x2c5ea4,{'cwd':_0x2e4d7f,'stdio':_0xa00e07,'env':process.env,'shell':![]}),_0x458d52=_0xbcf467[_0x4645bd(0x1c0)];if(_0x458d52===0x0)return{'ok':!![],'status':0x0};let _0x42ac23=_0x4645bd(0x1ad)+(_0x458d52??_0x4645bd(0x1b1));if(_0xa00e07===_0x4645bd(0x1c5)){const _0x5d2945=_0xbcf467['stderr']?_0xbcf467['stderr']['toString']()[_0x4645bd(0x1bf)]():'',_0x51e037=_0xbcf467[_0x4645bd(0x1c4)]?_0xbcf467[_0x4645bd(0x1c4)][_0x4645bd(0x1b7)]()['trim']():'';if(_0x5d2945)_0x42ac23=_0x5d2945;else{if(_0x51e037)_0x42ac23=_0x51e037;}}return{'ok':![],'status':_0x458d52??null,'error':_0x42ac23};}export function runNpxSkillsRemove(_0x3a3e6b,_0x1f03bf,_0x25bdcf=LEGACY_RABETBASE_SKILL_SOURCE){const _0x505004=a176_0x514365;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x472f63=_0x1f03bf?.[_0x505004(0x1ab)]??_0x505004(0x1ba),_0x1a65ec=resolveNpmBin('npx'),_0x3855eb=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x505004(0x1bd),_0x25bdcf,NPX_SKILLS_FLAG_SKILL,_0x1f03bf?.[_0x505004(0x1a9)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1f03bf?.[_0x505004(0x1b8)]?['-y']:[]],_0x11ce62=[_0x1a65ec,..._0x3855eb][_0x505004(0x1c6)]('\x20');console['log']('*\x20'+_0x11ce62);const _0x3020b5=spawnSync(_0x1a65ec,_0x3855eb,{'cwd':_0x3a3e6b,'stdio':_0x472f63,'env':process.env,'shell':![]}),_0x46c5ee=_0x3020b5[_0x505004(0x1c0)];if(_0x46c5ee===0x0)return{'ok':!![],'status':0x0};let _0xaee8b8=_0x505004(0x1ad)+(_0x46c5ee??_0x505004(0x1b1));if(_0x472f63===_0x505004(0x1c5)){const _0x58dbc1=_0x3020b5[_0x505004(0x1b6)]?_0x3020b5[_0x505004(0x1b6)][_0x505004(0x1b7)]()[_0x505004(0x1bf)]():'',_0x3d2493=_0x3020b5[_0x505004(0x1c4)]?_0x3020b5['stdout']['toString']()[_0x505004(0x1bf)]():'';if(_0x58dbc1)_0xaee8b8=_0x58dbc1;else{if(_0x3d2493)_0xaee8b8=_0x3d2493;}}return{'ok':![],'status':_0x46c5ee??null,'error':_0xaee8b8};}export function runNpxSkillsAddGlobal(_0x34e4ae,_0x40c754,_0x2d9514){const _0x50a641=a176_0x514365;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4a6dc1=_0x2d9514?.[_0x50a641(0x1ab)]??_0x50a641(0x1ba),_0x100ed0=resolveNpmBin(_0x50a641(0x1c8)),_0x2a2e52=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x40c754,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2bccdf=[_0x50a641(0x1c8),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x40c754,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x50a641(0x1ae)]('*\x20'+_0x2bccdf);const _0xe539cd=spawnSync(_0x100ed0,_0x2a2e52,{'cwd':_0x34e4ae,'stdio':_0x4a6dc1,'env':process.env,'shell':![]}),_0x69840=_0xe539cd['status'];if(_0x69840===0x0)return{'ok':!![],'status':0x0};let _0x39ad4e=_0x50a641(0x1ad)+(_0x69840??_0x50a641(0x1b1));if(_0x4a6dc1==='pipe'){const _0x65875e=_0xe539cd['stderr']?_0xe539cd[_0x50a641(0x1b6)]['toString']()[_0x50a641(0x1bf)]():'',_0x2269f3=_0xe539cd['stdout']?_0xe539cd[_0x50a641(0x1c4)][_0x50a641(0x1b7)]()[_0x50a641(0x1bf)]():'';if(_0x65875e)_0x39ad4e=_0x65875e;else{if(_0x2269f3)_0x39ad4e=_0x2269f3;}}return{'ok':![],'status':_0x69840??null,'error':_0x39ad4e};}
1
+ function a176_0x5ea3(_0x3d3373,_0x56df51){_0x3d3373=_0x3d3373-0xc9;const _0xde43b0=a176_0xde43();let _0x5ea391=_0xde43b0[_0x3d3373];return _0x5ea391;}const a176_0x480ba7=a176_0x5ea3;(function(_0x4510b2,_0x49f18d){const _0x1e0882=a176_0x5ea3,_0x550951=_0x4510b2();while(!![]){try{const _0x145d36=-parseInt(_0x1e0882(0xd0))/0x1*(-parseInt(_0x1e0882(0xd1))/0x2)+parseInt(_0x1e0882(0xd3))/0x3+parseInt(_0x1e0882(0xd6))/0x4*(parseInt(_0x1e0882(0xd9))/0x5)+parseInt(_0x1e0882(0xd4))/0x6*(parseInt(_0x1e0882(0xde))/0x7)+-parseInt(_0x1e0882(0xd8))/0x8+-parseInt(_0x1e0882(0xe3))/0x9+-parseInt(_0x1e0882(0xd5))/0xa;if(_0x145d36===_0x49f18d)break;else _0x550951['push'](_0x550951['shift']());}catch(_0x1b71c6){_0x550951['push'](_0x550951['shift']());}}}(a176_0xde43,0x54134));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=a176_0x480ba7(0xe0);export const NPX_SKILLS_SUBCOMMAND_ADD=a176_0x480ba7(0xe5);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';function a176_0xde43(){const _0x123c1c=['1gPndYm','1252684fGyvIO','inherit','1987950oriqrQ','2892hQwkmj','1410900FrCQRA','4UZRSNX','log','5338136jTHSdf','673760VHyJlJ','remove','unknown','push','skill','5495XjRMHG','stdio','skills','stderr','stdout','5844465xcCPDt','npx','add','join','yes','status','toString','exit\x20','pipe','trim'];a176_0xde43=function(){return _0x123c1c;};return a176_0xde43();}export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x13a771){const _0x1da423=a176_0x480ba7,_0x21ecdb=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x13a771&&_0x21ecdb[_0x1da423(0xdc)](NPX_SKILLS_FLAG_SKILL,_0x13a771),_0x21ecdb;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a176_0x480ba7(0xe4),...buildNpxSkillsAddArgv()][a176_0x480ba7(0xc9)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a176_0x480ba7(0xe4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a176_0x480ba7(0xc9)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x141d02,_0x35247a){const _0x1d5084=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x129ece=_0x35247a?.[_0x1d5084(0xdf)]??_0x1d5084(0xd2),_0x48454b=resolveNpmBin('npx'),_0x3a6b61=buildNpxSkillsAddArgv(_0x35247a?.[_0x1d5084(0xdd)]),_0x357074=['npx',..._0x3a6b61]['join']('\x20');console[_0x1d5084(0xd7)]('*\x20'+_0x357074);const _0x1a17e3=spawnSync(_0x48454b,_0x3a6b61,{'cwd':_0x141d02,'stdio':_0x129ece,'env':process.env,'shell':![]}),_0x4beff0=_0x1a17e3[_0x1d5084(0xcb)];if(_0x4beff0===0x0)return{'ok':!![],'status':0x0};let _0x160df7=_0x1d5084(0xcd)+(_0x4beff0??_0x1d5084(0xdb));if(_0x129ece==='pipe'){const _0x509bc5=_0x1a17e3['stderr']?_0x1a17e3[_0x1d5084(0xe1)]['toString']()[_0x1d5084(0xcf)]():'',_0x4c939b=_0x1a17e3[_0x1d5084(0xe2)]?_0x1a17e3[_0x1d5084(0xe2)][_0x1d5084(0xcc)]()[_0x1d5084(0xcf)]():'';if(_0x509bc5)_0x160df7=_0x509bc5;else{if(_0x4c939b)_0x160df7=_0x4c939b;}}return{'ok':![],'status':_0x4beff0??null,'error':_0x160df7};}export function runNpxSkillsRemove(_0x4cc2ff,_0x3217f2,_0x55b45e=LEGACY_RABETBASE_SKILL_SOURCE){const _0x23e46a=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x22b613=_0x3217f2?.[_0x23e46a(0xdf)]??_0x23e46a(0xd2),_0x53f679=resolveNpmBin(_0x23e46a(0xe4)),_0x474700=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x23e46a(0xda),_0x55b45e,NPX_SKILLS_FLAG_SKILL,_0x3217f2?.[_0x23e46a(0xdd)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3217f2?.[_0x23e46a(0xca)]?['-y']:[]],_0x214ba5=[_0x53f679,..._0x474700][_0x23e46a(0xc9)]('\x20');console[_0x23e46a(0xd7)]('*\x20'+_0x214ba5);const _0xc08456=spawnSync(_0x53f679,_0x474700,{'cwd':_0x4cc2ff,'stdio':_0x22b613,'env':process.env,'shell':![]}),_0x4f9b72=_0xc08456[_0x23e46a(0xcb)];if(_0x4f9b72===0x0)return{'ok':!![],'status':0x0};let _0x29018d=_0x23e46a(0xcd)+(_0x4f9b72??_0x23e46a(0xdb));if(_0x22b613===_0x23e46a(0xce)){const _0x18866e=_0xc08456['stderr']?_0xc08456[_0x23e46a(0xe1)][_0x23e46a(0xcc)]()[_0x23e46a(0xcf)]():'',_0x465871=_0xc08456[_0x23e46a(0xe2)]?_0xc08456[_0x23e46a(0xe2)]['toString']()['trim']():'';if(_0x18866e)_0x29018d=_0x18866e;else{if(_0x465871)_0x29018d=_0x465871;}}return{'ok':![],'status':_0x4f9b72??null,'error':_0x29018d};}export function runNpxSkillsAddGlobal(_0x5c0c0d,_0x5658ca,_0x4b6c66){const _0x4847ce=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a33fd=_0x4b6c66?.[_0x4847ce(0xdf)]??'inherit',_0x45ccc2=resolveNpmBin(_0x4847ce(0xe4)),_0x1fda1a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5658ca,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x33c7f0=[_0x4847ce(0xe4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5658ca,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4847ce(0xc9)]('\x20');console[_0x4847ce(0xd7)]('*\x20'+_0x33c7f0);const _0x579a95=spawnSync(_0x45ccc2,_0x1fda1a,{'cwd':_0x5c0c0d,'stdio':_0x5a33fd,'env':process.env,'shell':![]}),_0x57e45e=_0x579a95[_0x4847ce(0xcb)];if(_0x57e45e===0x0)return{'ok':!![],'status':0x0};let _0x90d538=_0x4847ce(0xcd)+(_0x57e45e??'unknown');if(_0x5a33fd===_0x4847ce(0xce)){const _0x578657=_0x579a95[_0x4847ce(0xe1)]?_0x579a95[_0x4847ce(0xe1)][_0x4847ce(0xcc)]()[_0x4847ce(0xcf)]():'',_0x10c429=_0x579a95[_0x4847ce(0xe2)]?_0x579a95[_0x4847ce(0xe2)][_0x4847ce(0xcc)]()[_0x4847ce(0xcf)]():'';if(_0x578657)_0x90d538=_0x578657;else{if(_0x10c429)_0x90d538=_0x10c429;}}return{'ok':![],'status':_0x57e45e??null,'error':_0x90d538};}
@@ -1 +1 @@
1
- (function(_0x1a15b9,_0x5f1bed){const _0x57bb7b=a177_0x1f76,_0x45edb2=_0x1a15b9();while(!![]){try{const _0x120aeb=parseInt(_0x57bb7b(0x9a))/0x1+-parseInt(_0x57bb7b(0x9d))/0x2*(parseInt(_0x57bb7b(0x9c))/0x3)+-parseInt(_0x57bb7b(0x9e))/0x4+-parseInt(_0x57bb7b(0x96))/0x5*(-parseInt(_0x57bb7b(0x9f))/0x6)+-parseInt(_0x57bb7b(0xa9))/0x7+parseInt(_0x57bb7b(0xa7))/0x8+parseInt(_0x57bb7b(0x98))/0x9*(parseInt(_0x57bb7b(0x99))/0xa);if(_0x120aeb===_0x5f1bed)break;else _0x45edb2['push'](_0x45edb2['shift']());}catch(_0x56e050){_0x45edb2['push'](_0x45edb2['shift']());}}}(a177_0x3ce6,0xe5dc2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a177_0x3ce6(){const _0x51fc71=['25vfIddX','entries','9xxEJaR','21426680rsRGTR','1226441DMreGq','rabetbase.command','443199aXdhkK','10PdxdFM','5120352jrcUFb','113454pSanEk','flags','command','some','test','error','[REDACTED]','stringify','10442552KOgpnS','durationMs','12660998XrsdMk','message','service'];a177_0x3ce6=function(){return _0x51fc71;};return a177_0x3ce6();}function a177_0x1f76(_0x4401be,_0x382efe){_0x4401be=_0x4401be-0x96;const _0x3ce6f2=a177_0x3ce6();let _0x1f76e1=_0x3ce6f2[_0x4401be];return _0x1f76e1;}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(_0x52d508){const _0x495731=a177_0x1f76;return SENSITIVE_PATTERNS[_0x495731(0xa2)](_0x3418db=>_0x3418db[_0x495731(0xa3)](_0x52d508));}function sanitizeFlags(_0xffcdf8){const _0x1dfcbc=a177_0x1f76,_0x483b82={};for(const [_0x397661,_0x4aae13]of Object[_0x1dfcbc(0x97)](_0xffcdf8)){isSensitiveKey(_0x397661)?_0x483b82[_0x397661]=_0x4aae13!=null&&_0x4aae13!==''?_0x1dfcbc(0xa5):_0x4aae13:_0x483b82[_0x397661]=_0x4aae13;}return _0x483b82;}export async function reportCommandTrace(_0x3033b9){const _0x3392fb=a177_0x1f76;try{const _0x269288=sanitizeFlags(_0x3033b9[_0x3392fb(0xa0)]);await sendCliTraceLog({'spanName':_0x3392fb(0x9b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3033b9[_0x3392fb(0xab)],'command.name':_0x3033b9[_0x3392fb(0xa1)],'command.flags':JSON[_0x3392fb(0xa6)](_0x269288),..._0x3033b9['durationMs']!=null?{'command.duration_ms':_0x3033b9[_0x3392fb(0xa8)]}:{},..._0x3033b9[_0x3392fb(0xa4)]?{'command.error':_0x3033b9[_0x3392fb(0xa4)]instanceof Error?_0x3033b9[_0x3392fb(0xa4)][_0x3392fb(0xaa)]:String(_0x3033b9[_0x3392fb(0xa4)])}:{}}});}catch{}}
1
+ (function(_0x642ce0,_0x59a9d7){const _0x587f47=a177_0x1797,_0x424c55=_0x642ce0();while(!![]){try{const _0x5a39e6=parseInt(_0x587f47(0x1fa))/0x1*(parseInt(_0x587f47(0x1fc))/0x2)+parseInt(_0x587f47(0x1f7))/0x3+parseInt(_0x587f47(0x1f3))/0x4*(-parseInt(_0x587f47(0x1fd))/0x5)+parseInt(_0x587f47(0x204))/0x6*(-parseInt(_0x587f47(0x201))/0x7)+-parseInt(_0x587f47(0x205))/0x8*(parseInt(_0x587f47(0x1f5))/0x9)+-parseInt(_0x587f47(0x1f9))/0xa+parseInt(_0x587f47(0x202))/0xb*(parseInt(_0x587f47(0x1f6))/0xc);if(_0x5a39e6===_0x59a9d7)break;else _0x424c55['push'](_0x424c55['shift']());}catch(_0x4a09e6){_0x424c55['push'](_0x424c55['shift']());}}}(a177_0xc75a,0x4487a));function a177_0x1797(_0x22ddda,_0x2db2cf){_0x22ddda=_0x22ddda-0x1f2;const _0xc75a71=a177_0xc75a();let _0x1797f1=_0xc75a71[_0x22ddda];return _0x1797f1;}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(_0x1a6c40){const _0x839eaa=a177_0x1797;return SENSITIVE_PATTERNS[_0x839eaa(0x1f8)](_0x1b2426=>_0x1b2426['test'](_0x1a6c40));}function sanitizeFlags(_0x3c13bf){const _0x438f76=a177_0x1797,_0x17ecbf={};for(const [_0x5ec3ad,_0x48364a]of Object[_0x438f76(0x200)](_0x3c13bf)){isSensitiveKey(_0x5ec3ad)?_0x17ecbf[_0x5ec3ad]=_0x48364a!=null&&_0x48364a!==''?_0x438f76(0x207):_0x48364a:_0x17ecbf[_0x5ec3ad]=_0x48364a;}return _0x17ecbf;}function a177_0xc75a(){const _0x5844c8=['1286610MlmCuO','4377928KQAkGJ','flags','[REDACTED]','command','error','3356JJGcze','message','9XCbBCy','198732qsbIVm','895305rNPdgs','some','2189800QQCthN','3593lKagDZ','durationMs','146BFSyBS','1845RYTIvt','stringify','rabetbase.command','entries','7RuWUuB','671HHsQtj','service'];a177_0xc75a=function(){return _0x5844c8;};return a177_0xc75a();}export async function reportCommandTrace(_0x1b85f3){const _0x30776d=a177_0x1797;try{const _0x3ce96e=sanitizeFlags(_0x1b85f3[_0x30776d(0x206)]);await sendCliTraceLog({'spanName':_0x30776d(0x1ff),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1b85f3[_0x30776d(0x203)],'command.name':_0x1b85f3[_0x30776d(0x208)],'command.flags':JSON[_0x30776d(0x1fe)](_0x3ce96e),..._0x1b85f3[_0x30776d(0x1fb)]!=null?{'command.duration_ms':_0x1b85f3[_0x30776d(0x1fb)]}:{},..._0x1b85f3[_0x30776d(0x1f2)]?{'command.error':_0x1b85f3[_0x30776d(0x1f2)]instanceof Error?_0x1b85f3['error'][_0x30776d(0x1f4)]:String(_0x1b85f3[_0x30776d(0x1f2)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x76e22,_0x5443a5){var _0x409c25=a178_0x3ea7,_0x2def41=_0x76e22();while(!![]){try{var _0x4005fb=parseInt(_0x409c25(0x7f))/0x1+parseInt(_0x409c25(0x76))/0x2+-parseInt(_0x409c25(0x7e))/0x3+parseInt(_0x409c25(0x7d))/0x4+parseInt(_0x409c25(0x78))/0x5+-parseInt(_0x409c25(0x7a))/0x6+-parseInt(_0x409c25(0x77))/0x7;if(_0x4005fb===_0x5443a5)break;else _0x2def41['push'](_0x2def41['shift']());}catch(_0x5a3da1){_0x2def41['push'](_0x2def41['shift']());}}}(a178_0xda7b,0x6407a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1e77d9,_0x5ec507){var _0x77e820=a178_0x3ea7;try{await sendCliTraceLog({'spanName':_0x77e820(0x7c),'logData':{'rabetbase.help.kind':_0x1e77d9,..._0x5ec507?.[_0x77e820(0x7b)]&&{'rabetbase.help.service':_0x5ec507[_0x77e820(0x7b)]}}});}catch(_0x37d859){console[_0x77e820(0x79)](_0x77e820(0x80),_0x37d859);}}function a178_0x3ea7(_0x21ae39,_0x282bd8){_0x21ae39=_0x21ae39-0x76;var _0xda7b1d=a178_0xda7b();var _0x3ea765=_0xda7b1d[_0x21ae39];return _0x3ea765;}function a178_0xda7b(){var _0x2cbaee=['error','267726RksNvW','service','cli.help','2712840JndiNm','1388826lzMUsr','569791RfrCBg','Failed\x20to\x20report\x20CLI\x20help\x20trace:','428782yVIOcM','4112682zolauf','212095xMsdiv'];a178_0xda7b=function(){return _0x2cbaee;};return a178_0xda7b();}
1
+ function a178_0xa913(){var _0x212cbc=['5DPYYpL','1106562BeucGX','4360734dMpxCU','500264YSyNDu','cli.help','2882453rMdnfu','error','238794geiGpf','421505rBOLmv','8AivNcN','service','730548XQZOut','20dJtVfi','Failed\x20to\x20report\x20CLI\x20help\x20trace:','28cQlzTw','154TzUZzu'];a178_0xa913=function(){return _0x212cbc;};return a178_0xa913();}function a178_0x2a4d(_0x5866a7,_0x25aae2){_0x5866a7=_0x5866a7-0x117;var _0xa9131=a178_0xa913();var _0x2a4d6e=_0xa9131[_0x5866a7];return _0x2a4d6e;}(function(_0x867222,_0x31206e){var _0x3e142b=a178_0x2a4d,_0x2914a3=_0x867222();while(!![]){try{var _0x4d1306=parseInt(_0x3e142b(0x11a))/0x1+parseInt(_0x3e142b(0x125))/0x2+-parseInt(_0x3e142b(0x119))/0x3*(-parseInt(_0x3e142b(0x120))/0x4)+-parseInt(_0x3e142b(0x122))/0x5*(parseInt(_0x3e142b(0x123))/0x6)+-parseInt(_0x3e142b(0x117))/0x7*(parseInt(_0x3e142b(0x11b))/0x8)+-parseInt(_0x3e142b(0x124))/0x9*(parseInt(_0x3e142b(0x11e))/0xa)+parseInt(_0x3e142b(0x121))/0xb*(parseInt(_0x3e142b(0x11d))/0xc);if(_0x4d1306===_0x31206e)break;else _0x2914a3['push'](_0x2914a3['shift']());}catch(_0x5579e9){_0x2914a3['push'](_0x2914a3['shift']());}}}(a178_0xa913,0x7df1f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2ec7e1,_0x29cc7f){var _0x2e3497=a178_0x2a4d;try{await sendCliTraceLog({'spanName':_0x2e3497(0x126),'logData':{'rabetbase.help.kind':_0x2ec7e1,..._0x29cc7f?.[_0x2e3497(0x11c)]&&{'rabetbase.help.service':_0x29cc7f[_0x2e3497(0x11c)]}}});}catch(_0x4b15d7){console[_0x2e3497(0x118)](_0x2e3497(0x11f),_0x4b15d7);}}
@@ -1 +1 @@
1
- (function(_0x5ae222,_0x2c2231){const _0x4c394b=a179_0xbe0f,_0x1c2a4f=_0x5ae222();while(!![]){try{const _0x467b56=parseInt(_0x4c394b(0x19b))/0x1+parseInt(_0x4c394b(0x1a6))/0x2*(-parseInt(_0x4c394b(0x1a5))/0x3)+-parseInt(_0x4c394b(0x19c))/0x4*(-parseInt(_0x4c394b(0x197))/0x5)+parseInt(_0x4c394b(0x19e))/0x6+-parseInt(_0x4c394b(0x19d))/0x7*(-parseInt(_0x4c394b(0x19f))/0x8)+parseInt(_0x4c394b(0x1a3))/0x9*(parseInt(_0x4c394b(0x199))/0xa)+-parseInt(_0x4c394b(0x1a4))/0xb;if(_0x467b56===_0x2c2231)break;else _0x1c2a4f['push'](_0x1c2a4f['shift']());}catch(_0x43fb26){_0x1c2a4f['push'](_0x1c2a4f['shift']());}}}(a179_0x5c75,0x8e1e3));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a179_0xbe0f(_0x17148b,_0x2c65bd){_0x17148b=_0x17148b-0x197;const _0x5c7595=a179_0x5c75();let _0xbe0fe0=_0x5c7595[_0x17148b];return _0xbe0fe0;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a179_0x5c75(){const _0x5bb75b=['2362428tIUkSh','445664MsYZAg','tenant_code','production','username','7525719mLPWmQ','16825611dWXDCC','316704zdAzDT','20iAPDtg','243495pDPKGc','unknown','10QTDUHp','nickname','795635oMdbeD','16skRaDv','119ldygMZ'];a179_0x5c75=function(){return _0x5bb75b;};return a179_0x5c75();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x327d2a=a179_0xbe0f,_0x437ba2=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x216c46=_0x437ba2?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x327d2a(0x198)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x327d2a(0x1a1))}),setUserContext({'id':_0x216c46?.['id'],'username':_0x216c46?.[_0x327d2a(0x1a2)],'nickname':_0x216c46?.[_0x327d2a(0x19a)],'email':_0x216c46?.['email'],'tenantCode':_0x216c46?.['tenant'][_0x327d2a(0x1a0)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x437ba2;}
1
+ (function(_0x6b6a27,_0x3aefcf){const _0x21b135=a179_0x72f9,_0x57234b=_0x6b6a27();while(!![]){try{const _0x5e39de=parseInt(_0x21b135(0x10b))/0x1*(parseInt(_0x21b135(0x105))/0x2)+-parseInt(_0x21b135(0x109))/0x3*(-parseInt(_0x21b135(0x102))/0x4)+-parseInt(_0x21b135(0x104))/0x5+parseInt(_0x21b135(0x100))/0x6+parseInt(_0x21b135(0x101))/0x7+parseInt(_0x21b135(0x107))/0x8*(parseInt(_0x21b135(0x10c))/0x9)+-parseInt(_0x21b135(0xff))/0xa;if(_0x5e39de===_0x3aefcf)break;else _0x57234b['push'](_0x57234b['shift']());}catch(_0x564240){_0x57234b['push'](_0x57234b['shift']());}}}(a179_0x33b5,0x76ee0));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a179_0x72f9(_0x35e86f,_0x29b0f9){_0x35e86f=_0x35e86f-0xff;const _0x33b56b=a179_0x33b5();let _0x72f931=_0x33b56b[_0x35e86f];return _0x72f931;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a179_0x33b5(){const _0x4a20c1=['production','7726552IsQImD','tenant_code','1183344sqQfTW','unknown','38VRpChg','9qVVkkB','23084380RFYKga','3806514xujEwJ','3745581iJVRQt','8YDGFFL','email','1968845dqRfGv','13954EkXfQS'];a179_0x33b5=function(){return _0x4a20c1;};return a179_0x33b5();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3282e8=a179_0x72f9,_0x1d8f08=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x510cb7=_0x1d8f08?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3282e8(0x10a)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x3282e8(0x106))}),setUserContext({'id':_0x510cb7?.['id'],'username':_0x510cb7?.['username'],'nickname':_0x510cb7?.['nickname'],'email':_0x510cb7?.[_0x3282e8(0x103)],'tenantCode':_0x510cb7?.['tenant'][_0x3282e8(0x108)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1d8f08;}
@@ -1 +1 @@
1
- function a180_0x5296(_0x3c56d1,_0x54c9d5){_0x3c56d1=_0x3c56d1-0x68;const _0x4413b8=a180_0x4413();let _0x5296b2=_0x4413b8[_0x3c56d1];return _0x5296b2;}(function(_0x2a7243,_0xbbce6b){const _0x747389=a180_0x5296,_0x3ad81e=_0x2a7243();while(!![]){try{const _0x1deea5=parseInt(_0x747389(0x76))/0x1*(-parseInt(_0x747389(0x72))/0x2)+-parseInt(_0x747389(0x6a))/0x3*(parseInt(_0x747389(0x68))/0x4)+-parseInt(_0x747389(0x71))/0x5*(-parseInt(_0x747389(0x69))/0x6)+parseInt(_0x747389(0x6f))/0x7*(parseInt(_0x747389(0x79))/0x8)+-parseInt(_0x747389(0x75))/0x9*(parseInt(_0x747389(0x78))/0xa)+-parseInt(_0x747389(0x6c))/0xb*(-parseInt(_0x747389(0x74))/0xc)+parseInt(_0x747389(0x6d))/0xd;if(_0x1deea5===_0xbbce6b)break;else _0x3ad81e['push'](_0x3ad81e['shift']());}catch(_0x30c00f){_0x3ad81e['push'](_0x3ad81e['shift']());}}}(a180_0x4413,0x6a822));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 _0x1079cf=a180_0x5296;process[_0x1079cf(0x6e)](_0x1079cf(0x77),()=>{void flushOtelNodeIfUsed();});const _0x1e9c34=()=>{const _0x46c06b=_0x1079cf;void flushOtelNodeIfUsed()[_0x46c06b(0x6b)](()=>process[_0x46c06b(0x73)](0x0));};process[_0x1079cf(0x6e)](_0x1079cf(0x70),_0x1e9c34),process[_0x1079cf(0x6e)]('SIGTERM',_0x1e9c34);}function a180_0x4413(){const _0x27b870=['3354702WbCWVt','once','679iPcTtY','SIGINT','2270pOqKgk','2WzTvLi','exit','12MVjhWY','657rTxJwo','812191FLJrFh','beforeExit','37850ekwkzS','48728mWCiBL','212MtAfyh','4488ubKthB','17838gSycUM','then','7165609nbwzIy'];a180_0x4413=function(){return _0x27b870;};return a180_0x4413();}export async function exitWithOtelShutdown(_0x163cdd){await flushOtelNodeIfUsed(),process['exit'](_0x163cdd);}
1
+ (function(_0x3e3cc6,_0x107774){const _0x4c6c4d=a180_0x1d66,_0x3d5df1=_0x3e3cc6();while(!![]){try{const _0x289a69=parseInt(_0x4c6c4d(0x71))/0x1*(-parseInt(_0x4c6c4d(0x73))/0x2)+parseInt(_0x4c6c4d(0x72))/0x3+parseInt(_0x4c6c4d(0x70))/0x4+-parseInt(_0x4c6c4d(0x69))/0x5+parseInt(_0x4c6c4d(0x6d))/0x6+parseInt(_0x4c6c4d(0x6a))/0x7*(-parseInt(_0x4c6c4d(0x6f))/0x8)+parseInt(_0x4c6c4d(0x6c))/0x9*(parseInt(_0x4c6c4d(0x67))/0xa);if(_0x289a69===_0x107774)break;else _0x3d5df1['push'](_0x3d5df1['shift']());}catch(_0x1adfe7){_0x3d5df1['push'](_0x3d5df1['shift']());}}}(a180_0x4522,0x85a41));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a180_0x1d66(_0x4b3368,_0x785ad5){_0x4b3368=_0x4b3368-0x67;const _0x4522b9=a180_0x4522();let _0x1d663d=_0x4522b9[_0x4b3368];return _0x1d663d;}function a180_0x4522(){const _0x25f45f=['325832ubgpgu','40goCJOD','once','4628625MkDZih','3567221miauno','SIGINT','2519253KeEcVX','2235120MPSWkh','exit','8efGnmr','1012608SnCDxf','1WijkLN','1200891fWWFGm'];a180_0x4522=function(){return _0x25f45f;};return a180_0x4522();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x5660f9=a180_0x1d66;process[_0x5660f9(0x68)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0xc82324=()=>{const _0x3011e3=_0x5660f9;void flushOtelNodeIfUsed()['then'](()=>process[_0x3011e3(0x6e)](0x0));};process[_0x5660f9(0x68)](_0x5660f9(0x6b),_0xc82324),process[_0x5660f9(0x68)]('SIGTERM',_0xc82324);}export async function exitWithOtelShutdown(_0x57ff90){await flushOtelNodeIfUsed(),process['exit'](_0x57ff90);}
@@ -1 +1 @@
1
- const a181_0x326b6f=a181_0x172d;function a181_0x172d(_0xfa1f7d,_0x33404a){_0xfa1f7d=_0xfa1f7d-0x155;const _0x32f4c9=a181_0x32f4();let _0x172de0=_0x32f4c9[_0xfa1f7d];return _0x172de0;}(function(_0xb7319b,_0x182ea5){const _0xd4cd36=a181_0x172d,_0x2c495b=_0xb7319b();while(!![]){try{const _0x3b6ef4=parseInt(_0xd4cd36(0x166))/0x1*(parseInt(_0xd4cd36(0x162))/0x2)+-parseInt(_0xd4cd36(0x158))/0x3+-parseInt(_0xd4cd36(0x15a))/0x4*(parseInt(_0xd4cd36(0x15f))/0x5)+parseInt(_0xd4cd36(0x163))/0x6+-parseInt(_0xd4cd36(0x15e))/0x7*(-parseInt(_0xd4cd36(0x164))/0x8)+parseInt(_0xd4cd36(0x157))/0x9*(parseInt(_0xd4cd36(0x15b))/0xa)+-parseInt(_0xd4cd36(0x161))/0xb;if(_0x3b6ef4===_0x182ea5)break;else _0x2c495b['push'](_0x2c495b['shift']());}catch(_0x53f243){_0x2c495b['push'](_0x2c495b['shift']());}}}(a181_0x32f4,0xea719));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a181_0x326b6f(0x159);function a181_0x32f4(){const _0x446e53=['rabetbase-cli','68joIWXS','4310CwdWPX','spanName','version','7uRYSbS','342965GzfdLf','traceparent','14363723kFlcxv','2uvhQMh','4303188DhtewS','3535352xFnKvZ','traceName','1723198xwWdYX','logData','manual','37449rRlNqp','3730653moITbo'];a181_0x32f4=function(){return _0x446e53;};return a181_0x32f4();}export async function sendCliTraceLog(_0x513e6f){const _0x5af01d=a181_0x326b6f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x513e6f[_0x5af01d(0x165)]??DEFAULT_TRACE_NAME,'version':_0x513e6f[_0x5af01d(0x15d)]??getCliVersion(),'spanName':_0x513e6f[_0x5af01d(0x15c)],'eventType':_0x5af01d(0x156),'logData':_0x513e6f[_0x5af01d(0x155)],..._0x513e6f[_0x5af01d(0x160)]&&{'traceparent':_0x513e6f[_0x5af01d(0x160)]}});}
1
+ const a181_0x1c2480=a181_0x56b5;function a181_0x56b5(_0x1bcaf2,_0xf84ec3){_0x1bcaf2=_0x1bcaf2-0x188;const _0x2e13fb=a181_0x2e13();let _0x56b5ea=_0x2e13fb[_0x1bcaf2];return _0x56b5ea;}(function(_0xf9ada2,_0x2244ae){const _0xbd50a2=a181_0x56b5,_0x376a53=_0xf9ada2();while(!![]){try{const _0x381aab=-parseInt(_0xbd50a2(0x18c))/0x1+parseInt(_0xbd50a2(0x18b))/0x2+parseInt(_0xbd50a2(0x195))/0x3*(parseInt(_0xbd50a2(0x194))/0x4)+-parseInt(_0xbd50a2(0x18d))/0x5*(-parseInt(_0xbd50a2(0x191))/0x6)+-parseInt(_0xbd50a2(0x18e))/0x7+parseInt(_0xbd50a2(0x196))/0x8*(parseInt(_0xbd50a2(0x18f))/0x9)+parseInt(_0xbd50a2(0x197))/0xa*(-parseInt(_0xbd50a2(0x192))/0xb);if(_0x381aab===_0x2244ae)break;else _0x376a53['push'](_0x376a53['shift']());}catch(_0x26c19){_0x376a53['push'](_0x376a53['shift']());}}}(a181_0x2e13,0xc6c26));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a181_0x1c2480(0x190);function a181_0x2e13(){const _0x16fda1=['traceparent','16INhZlZ','762897Omfgha','8264UZAbye','10agMxdt','logData','version','traceName','2704916xfKESs','1057784EtrZYD','5XwZjAL','2904104rdorGG','1656zFGxLO','rabetbase-cli','6524484gDCuZC','14964026DxFbrz'];a181_0x2e13=function(){return _0x16fda1;};return a181_0x2e13();}export async function sendCliTraceLog(_0x252e5c){const _0x23fc69=a181_0x1c2480;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x252e5c[_0x23fc69(0x18a)]??DEFAULT_TRACE_NAME,'version':_0x252e5c[_0x23fc69(0x189)]??getCliVersion(),'spanName':_0x252e5c['spanName'],'eventType':'manual','logData':_0x252e5c[_0x23fc69(0x188)],..._0x252e5c[_0x23fc69(0x193)]&&{'traceparent':_0x252e5c[_0x23fc69(0x193)]}});}