@lovrabet/rabetbase-cli 2.2.3-beta.2 → 2.2.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 (205) 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/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.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/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2c35b9,_0x400c9a){const _0x2e6067=a158_0x55dc,_0x1c9421=_0x2c35b9();while(!![]){try{const _0x528f6e=parseInt(_0x2e6067(0xef))/0x1+parseInt(_0x2e6067(0xf8))/0x2+-parseInt(_0x2e6067(0xfe))/0x3*(parseInt(_0x2e6067(0xe9))/0x4)+-parseInt(_0x2e6067(0xff))/0x5+parseInt(_0x2e6067(0xfd))/0x6*(-parseInt(_0x2e6067(0xe4))/0x7)+parseInt(_0x2e6067(0xe8))/0x8*(-parseInt(_0x2e6067(0xf4))/0x9)+parseInt(_0x2e6067(0xe5))/0xa*(parseInt(_0x2e6067(0x101))/0xb);if(_0x528f6e===_0x400c9a)break;else _0x1c9421['push'](_0x1c9421['shift']());}catch(_0x210c84){_0x1c9421['push'](_0x1c9421['shift']());}}}(a158_0x288d,0x7f14c));function a158_0x288d(){const _0x457d92=['dbId','11UVQfNJ','replace','dbName','sqlName','sqlCode','49EXpHIz','7889270pCBxrA','isDirectory','filter','2864EBchCx','1054828ipqjoa','code','sql','slice','push','toLowerCase','939684FsPYSM','.xml','path','ENOENT','name','729UwzKyc','mode','sqlRootDir','indexOf','176114ESfuwu','test','.sql','isFile','length','637854cEWKIi','3HdqKSa','1296380tygWnr'];a158_0x288d=function(){return _0x457d92;};return a158_0x288d();}import{readdir,stat}from'node:fs/promises';function a158_0x55dc(_0x4857f7,_0x49abe8){_0x4857f7=_0x4857f7-0xe1;const _0x288d36=a158_0x288d();let _0x55dcaf=_0x288d36[_0x4857f7];return _0x55dcaf;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x1aae1a){const _0x46340a=a158_0x55dc;if(_0x1aae1a===_0x46340a(0xfa))return _0x46340a(0xeb);if(_0x1aae1a===_0x46340a(0xf0))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x4f8d42,_0x54bf49){const _0xf4cd83=a158_0x55dc,_0x5b95bd=[];try{const _0x18b458=await readdir(_0x4f8d42,{'withFileTypes':!![]});for(const _0x32529a of _0x18b458){const _0x31ff6f=join(_0x4f8d42,_0x32529a[_0xf4cd83(0xf3)]);if(_0x32529a[_0xf4cd83(0xe6)]()){_0x5b95bd[_0xf4cd83(0xed)](...await scanSqlFilesRecursively(_0x31ff6f,_0x54bf49));continue;}if(!_0x32529a[_0xf4cd83(0xfb)]())continue;const _0x346ae6=extname(_0x32529a['name'])[_0xf4cd83(0xee)](),_0x4eb9ce=extensionToMode(_0x346ae6);if(!_0x4eb9ce)continue;const _0x2232b2=relative(_0x54bf49,_0x31ff6f)[_0xf4cd83(0x102)](/\\/g,'/'),_0x2939fd=_0x2232b2['split']('/')[_0xf4cd83(0xe7)](Boolean),_0x1a9b46=parseSqlPath(_0x2939fd,_0x32529a[_0xf4cd83(0xf3)],_0x346ae6);if(!_0x1a9b46)continue;_0x5b95bd[_0xf4cd83(0xed)]({'sqlCode':_0x1a9b46[_0xf4cd83(0xe3)],'sqlName':_0x1a9b46['sqlName'],'dbDirectory':_0x2939fd[0x0],'filePath':_0x31ff6f,'relativePath':_0x2232b2,'lockKey':_0x1a9b46[_0xf4cd83(0xe3)],'mode':_0x4eb9ce});}}catch(_0x581160){if(_0x581160[_0xf4cd83(0xea)]!==_0xf4cd83(0xf2))throw _0x581160;}return _0x5b95bd;}export async function scanLocalSqlQueries(_0x3d8d46){const _0x4c77b2=a158_0x55dc;return scanSqlFilesRecursively(_0x3d8d46[_0x4c77b2(0xf6)],_0x3d8d46[_0x4c77b2(0xf6)]);}export function resolveLocalSqlFilePath(_0x55ce06,_0x2915ef,_0x948d2e){const _0x608093=a158_0x55dc,_0x31b669=_0x948d2e?.[_0x608093(0xf1)]||(_0x948d2e?.[_0x608093(0xe2)]||_0x948d2e?.[_0x608093(0xe1)]?buildSqlRelativePath(_0x2915ef,_0x948d2e?.[_0x608093(0xe2)],_0x948d2e?.['dbName'],_0x948d2e?.[_0x608093(0xf5)]||'sql',_0x948d2e?.[_0x608093(0x100)]):buildDefaultSqlFileName(_0x2915ef,_0x948d2e?.['mode']||_0x608093(0xeb)));return join(_0x55ce06[_0x608093(0xf6)],_0x31b669);}export async function directoryExists(_0x1bb4d6){const _0x4385a1=a158_0x55dc;try{const _0x1d0e87=await stat(_0x1bb4d6);return _0x1d0e87[_0x4385a1(0xe6)]();}catch{return![];}}function parseSqlPath(_0x2ba670,_0x3d3a15,_0x111389){const _0x73c949=a158_0x55dc,_0x29371b=_0x3d3a15[_0x73c949(0xec)](0x0,-_0x111389[_0x73c949(0xfc)]);if(_0x2ba670[_0x73c949(0xfc)]<0x2)return null;const _0x368e0e=_0x29371b[_0x73c949(0xf7)]('_');if(_0x368e0e<=0x0||_0x368e0e>=_0x29371b['length']-0x1)return null;const _0x4ecd0a=_0x29371b[_0x73c949(0xec)](0x0,_0x368e0e);if(!isLikelySqlCode(_0x4ecd0a))return null;return{'sqlCode':_0x4ecd0a,'sqlName':_0x29371b[_0x73c949(0xec)](_0x368e0e+0x1)};}function isLikelySqlCode(_0x4cd580){const _0x57b4cb=a158_0x55dc;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x57b4cb(0xf9)](_0x4cd580);}
1
+ (function(_0x34292a,_0x4ca792){const _0x173053=a158_0x36be,_0x59d9a0=_0x34292a();while(!![]){try{const _0x30a67e=parseInt(_0x173053(0xb3))/0x1+-parseInt(_0x173053(0xac))/0x2*(parseInt(_0x173053(0xa9))/0x3)+-parseInt(_0x173053(0x9a))/0x4*(-parseInt(_0x173053(0xb8))/0x5)+-parseInt(_0x173053(0xb5))/0x6+parseInt(_0x173053(0xb1))/0x7+parseInt(_0x173053(0xa4))/0x8*(-parseInt(_0x173053(0xa7))/0x9)+parseInt(_0x173053(0xa6))/0xa;if(_0x30a67e===_0x4ca792)break;else _0x59d9a0['push'](_0x59d9a0['shift']());}catch(_0x319ae7){_0x59d9a0['push'](_0x59d9a0['shift']());}}}(a158_0x4e0a,0x8e41e));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x592487){const _0x290f6c=a158_0x36be;if(_0x592487===_0x290f6c(0xaf))return _0x290f6c(0xb2);if(_0x592487===_0x290f6c(0xb0))return _0x290f6c(0xad);return undefined;}async function scanSqlFilesRecursively(_0x37e044,_0x474f6b){const _0x1a1bfd=a158_0x36be,_0x25815f=[];try{const _0x10fe00=await readdir(_0x37e044,{'withFileTypes':!![]});for(const _0x5e22ff of _0x10fe00){const _0x51d59e=join(_0x37e044,_0x5e22ff[_0x1a1bfd(0xab)]);if(_0x5e22ff['isDirectory']()){_0x25815f[_0x1a1bfd(0xaa)](...await scanSqlFilesRecursively(_0x51d59e,_0x474f6b));continue;}if(!_0x5e22ff[_0x1a1bfd(0xb6)]())continue;const _0xb87455=extname(_0x5e22ff[_0x1a1bfd(0xab)])['toLowerCase'](),_0x49292e=extensionToMode(_0xb87455);if(!_0x49292e)continue;const _0x47e6c4=relative(_0x474f6b,_0x51d59e)[_0x1a1bfd(0x9b)](/\\/g,'/'),_0x1538cb=_0x47e6c4['split']('/')[_0x1a1bfd(0x99)](Boolean),_0x123c8b=parseSqlPath(_0x1538cb,_0x5e22ff[_0x1a1bfd(0xab)],_0xb87455);if(!_0x123c8b)continue;_0x25815f[_0x1a1bfd(0xaa)]({'sqlCode':_0x123c8b[_0x1a1bfd(0xae)],'sqlName':_0x123c8b['sqlName'],'dbDirectory':_0x1538cb[0x0],'filePath':_0x51d59e,'relativePath':_0x47e6c4,'lockKey':_0x123c8b[_0x1a1bfd(0xae)],'mode':_0x49292e});}}catch(_0x4f0607){if(_0x4f0607[_0x1a1bfd(0xb4)]!==_0x1a1bfd(0xa5))throw _0x4f0607;}return _0x25815f;}export async function scanLocalSqlQueries(_0x21b02d){const _0x1fa800=a158_0x36be;return scanSqlFilesRecursively(_0x21b02d['sqlRootDir'],_0x21b02d[_0x1fa800(0xa3)]);}export function resolveLocalSqlFilePath(_0x31aa23,_0x37f663,_0x12cb7c){const _0x6a55aa=a158_0x36be,_0x6c7c4c=_0x12cb7c?.[_0x6a55aa(0xa8)]||(_0x12cb7c?.[_0x6a55aa(0xa1)]||_0x12cb7c?.['dbName']?buildSqlRelativePath(_0x37f663,_0x12cb7c?.[_0x6a55aa(0xa1)],_0x12cb7c?.[_0x6a55aa(0x9d)],_0x12cb7c?.['mode']||'sql',_0x12cb7c?.[_0x6a55aa(0xa2)]):buildDefaultSqlFileName(_0x37f663,_0x12cb7c?.['mode']||_0x6a55aa(0xb2)));return join(_0x31aa23[_0x6a55aa(0xa3)],_0x6c7c4c);}function a158_0x4e0a(){const _0x4f157f=['32EkmbCz','mybatisXml','sqlCode','.sql','.xml','4573457eLjBpc','sql','541515bbWhJJ','code','2791374CyvLDF','isFile','test','4135wWXkgR','filter','1776AJJsDJ','replace','slice','dbName','indexOf','length','isDirectory','sqlName','dbId','sqlRootDir','8aZFcfy','ENOENT','8650000AboEyp','8858907CUJAlQ','path','74028vflqDX','push','name'];a158_0x4e0a=function(){return _0x4f157f;};return a158_0x4e0a();}export async function directoryExists(_0x17df5a){const _0xd199ba=a158_0x36be;try{const _0x112b5a=await stat(_0x17df5a);return _0x112b5a[_0xd199ba(0xa0)]();}catch{return![];}}function parseSqlPath(_0x476860,_0x51a10d,_0x395f37){const _0x175a5f=a158_0x36be,_0x3d0581=_0x51a10d[_0x175a5f(0x9c)](0x0,-_0x395f37['length']);if(_0x476860['length']<0x2)return null;const _0x3a6988=_0x3d0581[_0x175a5f(0x9e)]('_');if(_0x3a6988<=0x0||_0x3a6988>=_0x3d0581[_0x175a5f(0x9f)]-0x1)return null;const _0x11bc4c=_0x3d0581[_0x175a5f(0x9c)](0x0,_0x3a6988);if(!isLikelySqlCode(_0x11bc4c))return null;return{'sqlCode':_0x11bc4c,'sqlName':_0x3d0581[_0x175a5f(0x9c)](_0x3a6988+0x1)};}function a158_0x36be(_0x4b7228,_0x162a38){_0x4b7228=_0x4b7228-0x99;const _0x4e0a3b=a158_0x4e0a();let _0x36be9e=_0x4e0a3b[_0x4b7228];return _0x36be9e;}function isLikelySqlCode(_0x40eae3){const _0x25f88a=a158_0x36be;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x25f88a(0xb7)](_0x40eae3);}
@@ -1 +1 @@
1
- function a159_0x7337(_0x58c925,_0x22ec95){_0x58c925=_0x58c925-0x164;const _0x399c31=a159_0x399c();let _0x733784=_0x399c31[_0x58c925];return _0x733784;}(function(_0x34b02f,_0xd840f){const _0x5c6413=a159_0x7337,_0x2aed19=_0x34b02f();while(!![]){try{const _0x5bdb14=-parseInt(_0x5c6413(0x16a))/0x1*(parseInt(_0x5c6413(0x168))/0x2)+-parseInt(_0x5c6413(0x16b))/0x3+parseInt(_0x5c6413(0x16e))/0x4+parseInt(_0x5c6413(0x164))/0x5*(-parseInt(_0x5c6413(0x16c))/0x6)+-parseInt(_0x5c6413(0x16d))/0x7+-parseInt(_0x5c6413(0x166))/0x8+parseInt(_0x5c6413(0x171))/0x9*(parseInt(_0x5c6413(0x165))/0xa);if(_0x5bdb14===_0xd840f)break;else _0x2aed19['push'](_0x2aed19['shift']());}catch(_0x681506){_0x2aed19['push'](_0x2aed19['shift']());}}}(a159_0x399c,0x2fd26));function a159_0x399c(){const _0x2bcbd7=['2307558aeSFPu','1821652Vuoslz','899924DoBEHV','utf8','md5','159867oVdHnT','5Bhoqza','870pitKkK','2932840adMLUP','update','134666LISrde','createHash','5hNdumC','679155puDsPK'];a159_0x399c=function(){return _0x2bcbd7;};return a159_0x399c();}import{readFile}from'node:fs/promises';import a159_0xd33367 from'node:crypto';export function computeSqlContentHash(_0x21b3b7){const _0x513f2c=a159_0x7337;return a159_0xd33367[_0x513f2c(0x169)](_0x513f2c(0x170))[_0x513f2c(0x167)](_0x21b3b7)['digest']('hex');}export async function computeSqlFileHash(_0x6855bd){const _0x372fc8=a159_0x7337,_0x122b33=await readFile(_0x6855bd,_0x372fc8(0x16f));return computeSqlContentHash(_0x122b33);}
1
+ (function(_0x342a38,_0x904886){const _0x4b0ce4=a159_0x36cf,_0x75f0f9=_0x342a38();while(!![]){try{const _0x5eee0a=parseInt(_0x4b0ce4(0x1d6))/0x1+parseInt(_0x4b0ce4(0x1e0))/0x2+-parseInt(_0x4b0ce4(0x1df))/0x3+parseInt(_0x4b0ce4(0x1d7))/0x4+parseInt(_0x4b0ce4(0x1db))/0x5+-parseInt(_0x4b0ce4(0x1e1))/0x6*(-parseInt(_0x4b0ce4(0x1de))/0x7)+-parseInt(_0x4b0ce4(0x1d8))/0x8;if(_0x5eee0a===_0x904886)break;else _0x75f0f9['push'](_0x75f0f9['shift']());}catch(_0x8c81b7){_0x75f0f9['push'](_0x75f0f9['shift']());}}}(a159_0x25ad,0xd529a));import{readFile}from'node:fs/promises';function a159_0x36cf(_0x68ac62,_0x2751ef){_0x68ac62=_0x68ac62-0x1d6;const _0x25ad54=a159_0x25ad();let _0x36cffd=_0x25ad54[_0x68ac62];return _0x36cffd;}import a159_0x7cd76a from'node:crypto';export function computeSqlContentHash(_0x406acf){const _0x5ccc26=a159_0x36cf;return a159_0x7cd76a[_0x5ccc26(0x1d9)]('md5')[_0x5ccc26(0x1dc)](_0x406acf)['digest'](_0x5ccc26(0x1da));}export async function computeSqlFileHash(_0x10bb5a){const _0x208ff4=a159_0x36cf,_0x107bb4=await readFile(_0x10bb5a,_0x208ff4(0x1dd));return computeSqlContentHash(_0x107bb4);}function a159_0x25ad(){const _0x244aa5=['1758156HznKiU','12486lLtWQC','118158OzxOkM','2170976SAFVkU','5998216xkytwY','createHash','hex','2820435qEAkOI','update','utf8','1141AXmUun','2461137QqDvFs'];a159_0x25ad=function(){return _0x244aa5;};return a159_0x25ad();}
@@ -1 +1 @@
1
- (function(_0x116dd2,_0xb20f1a){const _0x240ff1=a160_0x31d8,_0x5ca88e=_0x116dd2();while(!![]){try{const _0x5908a2=parseInt(_0x240ff1(0x198))/0x1+parseInt(_0x240ff1(0x1a1))/0x2+parseInt(_0x240ff1(0x1a4))/0x3*(-parseInt(_0x240ff1(0x19b))/0x4)+parseInt(_0x240ff1(0x19d))/0x5+-parseInt(_0x240ff1(0x1a7))/0x6*(-parseInt(_0x240ff1(0x193))/0x7)+parseInt(_0x240ff1(0x19f))/0x8*(-parseInt(_0x240ff1(0x19c))/0x9)+parseInt(_0x240ff1(0x19e))/0xa*(-parseInt(_0x240ff1(0x1a2))/0xb);if(_0x5908a2===_0xb20f1a)break;else _0x5ca88e['push'](_0x5ca88e['shift']());}catch(_0xc65403){_0x5ca88e['push'](_0x5ca88e['shift']());}}}(a160_0x54b4,0xb3bf4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a160_0x31d8(_0x355c26,_0x22e813){_0x355c26=_0x355c26-0x192;const _0x54b445=a160_0x54b4();let _0x31d8a1=_0x54b445[_0x355c26];return _0x31d8a1;}export function ensureSqlLockScope(_0x2c19f4,_0x2fd8b7,_0x686273,_0x3a2b68){const _0x50188f=a160_0x31d8,_0x2c5e30=_0x2c19f4??createEmptySqlLock();let _0x335a1b=_0x2c5e30[_0x50188f(0x19a)][_0x2fd8b7];if(!_0x335a1b)return _0x335a1b={'sqlRoot':_0x686273,'lastSync':'','sqls':{}},_0x2c5e30[_0x50188f(0x19a)][_0x2fd8b7]=_0x335a1b,{'lockData':_0x2c5e30,'appLock':_0x335a1b};if(!_0x335a1b['sqlRoot'])_0x335a1b[_0x50188f(0x1a5)]=_0x686273;else{if(_0x335a1b[_0x50188f(0x1a5)]!==_0x686273)throw new Error(_0x3a2b68+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x686273+_0x50188f(0x1a0)+_0x335a1b[_0x50188f(0x1a5)]+_0x50188f(0x1a6)+_0x50188f(0x192));}return!_0x335a1b[_0x50188f(0x199)]&&(_0x335a1b[_0x50188f(0x199)]={}),!_0x335a1b['lastSync']&&(_0x335a1b['lastSync']=''),{'lockData':_0x2c5e30,'appLock':_0x335a1b};}export async function readSqlLockFile(_0x26e0d1){const _0x58bd24=a160_0x31d8;try{const _0x3475e1=await readFile(_0x26e0d1,_0x58bd24(0x194));return JSON['parse'](_0x3475e1);}catch(_0x559d6a){if(_0x559d6a[_0x58bd24(0x1a3)]===_0x58bd24(0x195))return null;throw new Error(_0x58bd24(0x196)+String(_0x559d6a));}}export async function writeSqlLockFile(_0x1c56eb,_0x472b39){const _0x4c5678=a160_0x31d8;await mkdir(dirname(_0x1c56eb),{'recursive':!![]}),await writeFile(_0x1c56eb,JSON[_0x4c5678(0x197)](_0x472b39,null,0x2),'utf8');}function a160_0x54b4(){const _0x332325=['476ENGMGp','utf8','ENOENT','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','stringify','716768mFuThd','sqls','apps','4VnxrCQ','9uXzNqf','3116185NUTztZ','90IJAwyb','9499352gtkBvm','\x22\x20vs\x20lock\x20\x22','2594116tQWsTV','1183677cSDfCr','code','3491475AksSzs','sqlRoot','\x22.\x20','125196kAZEbl','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a160_0x54b4=function(){return _0x332325;};return a160_0x54b4();}
1
+ function a160_0x1ca0(){const _0x56c87c=['utf8','1495141tEvhGn','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','apps','4UsnpNC',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','1258071dXtMFn','sqlRoot','10493100XlNaFu','77TMwxEF','6538756kgPwLn','28180tbWfsh','code','\x22\x20vs\x20lock\x20\x22','6582800RjcOGU','3596885dTpJGY','ENOENT','sqls','parse','lastSync','2JLasCM','6yGQFbE'];a160_0x1ca0=function(){return _0x56c87c;};return a160_0x1ca0();}(function(_0x580d52,_0x4f6a13){const _0x233f9f=a160_0x523a,_0x487ddc=_0x580d52();while(!![]){try{const _0x2ee816=parseInt(_0x233f9f(0xf3))/0x1*(parseInt(_0x233f9f(0xf0))/0x2)+parseInt(_0x233f9f(0xf8))/0x3*(-parseInt(_0x233f9f(0xf6))/0x4)+-parseInt(_0x233f9f(0xeb))/0x5*(-parseInt(_0x233f9f(0xf1))/0x6)+parseInt(_0x233f9f(0xe6))/0x7+-parseInt(_0x233f9f(0xea))/0x8+-parseInt(_0x233f9f(0xe4))/0x9+-parseInt(_0x233f9f(0xe7))/0xa*(-parseInt(_0x233f9f(0xe5))/0xb);if(_0x2ee816===_0x4f6a13)break;else _0x487ddc['push'](_0x487ddc['shift']());}catch(_0x4e810e){_0x487ddc['push'](_0x487ddc['shift']());}}}(a160_0x1ca0,0xb99b5));function a160_0x523a(_0x8cc4db,_0x2af740){_0x8cc4db=_0x8cc4db-0xe3;const _0x1ca002=a160_0x1ca0();let _0x523a6a=_0x1ca002[_0x8cc4db];return _0x523a6a;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x4a5cd8,_0x40534e,_0x5b9dcd,_0x7fdce1){const _0x373377=a160_0x523a,_0x1a259e=_0x4a5cd8??createEmptySqlLock();let _0x18d8d8=_0x1a259e[_0x373377(0xf5)][_0x40534e];if(!_0x18d8d8)return _0x18d8d8={'sqlRoot':_0x5b9dcd,'lastSync':'','sqls':{}},_0x1a259e[_0x373377(0xf5)][_0x40534e]=_0x18d8d8,{'lockData':_0x1a259e,'appLock':_0x18d8d8};if(!_0x18d8d8[_0x373377(0xe3)])_0x18d8d8['sqlRoot']=_0x5b9dcd;else{if(_0x18d8d8['sqlRoot']!==_0x5b9dcd)throw new Error(_0x7fdce1+_0x373377(0xf7)+_0x5b9dcd+_0x373377(0xe9)+_0x18d8d8[_0x373377(0xe3)]+'\x22.\x20'+_0x373377(0xf4));}return!_0x18d8d8['sqls']&&(_0x18d8d8[_0x373377(0xed)]={}),!_0x18d8d8['lastSync']&&(_0x18d8d8[_0x373377(0xef)]=''),{'lockData':_0x1a259e,'appLock':_0x18d8d8};}export async function readSqlLockFile(_0x5d30c4){const _0x15f80e=a160_0x523a;try{const _0x465f2b=await readFile(_0x5d30c4,_0x15f80e(0xf2));return JSON[_0x15f80e(0xee)](_0x465f2b);}catch(_0x5d86d1){if(_0x5d86d1[_0x15f80e(0xe8)]===_0x15f80e(0xec))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x5d86d1));}}export async function writeSqlLockFile(_0x125b62,_0x3c40b3){const _0x37ced9=a160_0x523a;await mkdir(dirname(_0x125b62),{'recursive':!![]}),await writeFile(_0x125b62,JSON['stringify'](_0x3c40b3,null,0x2),_0x37ced9(0xf2));}
@@ -1 +1 @@
1
- (function(_0x244975,_0x5f2f55){const _0x2e18d4=a162_0x7d68,_0x4ed253=_0x244975();while(!![]){try{const _0x1b440c=parseInt(_0x2e18d4(0x197))/0x1*(parseInt(_0x2e18d4(0x199))/0x2)+-parseInt(_0x2e18d4(0x193))/0x3+parseInt(_0x2e18d4(0x196))/0x4+-parseInt(_0x2e18d4(0x19a))/0x5+parseInt(_0x2e18d4(0x18e))/0x6+-parseInt(_0x2e18d4(0x190))/0x7+parseInt(_0x2e18d4(0x195))/0x8;if(_0x1b440c===_0x5f2f55)break;else _0x4ed253['push'](_0x4ed253['shift']());}catch(_0x37f77e){_0x4ed253['push'](_0x4ed253['shift']());}}}(a162_0x4513,0x32861));export function detectSqlMode(_0x57b608){const _0x3c0fa5=a162_0x7d68,_0x25b5b0=_0x57b608['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x3c0fa5(0x18f)](_0x25b5b0))return'mybatisXml';return _0x3c0fa5(0x191);}export function getSqlFileExtension(_0xa4be58){const _0xbcc5cd=a162_0x7d68;return _0xa4be58==='mybatisXml'?_0xbcc5cd(0x18c):_0xbcc5cd(0x18a);}export function buildDefaultSqlFileName(_0x1d3190,_0x451a77){return''+_0x1d3190+getSqlFileExtension(_0x451a77);}export function sanitizeSqlPathSegment(_0x4c98e8,_0x175d77){const _0x35a5e8=a162_0x7d68,_0x5cb6f2=String(_0x4c98e8??'')[_0x35a5e8(0x198)](),_0x2c211e=_0x5cb6f2[_0x35a5e8(0x194)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x35a5e8(0x194)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x35a5e8(0x194)](/^\.+/,'')[_0x35a5e8(0x194)](/\.+$/,'')['replace'](/^-+/,'')[_0x35a5e8(0x194)](/-+$/,'');return _0x2c211e||_0x175d77;}export function buildDbDirectoryName(_0x931aa6,_0x1c8843){const _0x2bd906=a162_0x7d68;return sanitizeSqlPathSegment(_0x931aa6,_0x1c8843!=null?_0x2bd906(0x192)+_0x1c8843:_0x2bd906(0x18b));}export function buildSqlRelativePath(_0x161be2,_0x602d1f,_0x1a28a0,_0x47863b,_0x3f7d43){const _0xaaf528=a162_0x7d68,_0x28de2d=buildDbDirectoryName(_0x1a28a0,_0x3f7d43),_0x4aaf7a=sanitizeSqlPathSegment(_0x161be2,_0xaaf528(0x18d)),_0x504036=sanitizeSqlPathSegment(_0x602d1f,_0x4aaf7a);return _0x28de2d+'/'+_0x4aaf7a+'_'+_0x504036+getSqlFileExtension(_0x47863b);}function a162_0x7d68(_0x62d8cf,_0x297256){_0x62d8cf=_0x62d8cf-0x18a;const _0x4513d1=a162_0x4513();let _0x7d6837=_0x4513d1[_0x62d8cf];return _0x7d6837;}function a162_0x4513(){const _0x253751=['unknown-db','.xml','unknown-sql','540108YwcCAO','test','1129142kvtAea','sql','db-','1087398dzfYto','replace','1945056mMcsUM','1492860PUhrPz','57kIbSWH','trim','8878kSQAXp','1143355fNSyLl','.sql'];a162_0x4513=function(){return _0x253751;};return a162_0x4513();}
1
+ (function(_0x49ed4f,_0x361b78){const _0x1ec1a5=a162_0x26b1,_0x23886e=_0x49ed4f();while(!![]){try{const _0xe025c7=parseInt(_0x1ec1a5(0x19f))/0x1+parseInt(_0x1ec1a5(0x1ac))/0x2+parseInt(_0x1ec1a5(0x1a4))/0x3+-parseInt(_0x1ec1a5(0x1a6))/0x4+parseInt(_0x1ec1a5(0x1a2))/0x5*(parseInt(_0x1ec1a5(0x1a9))/0x6)+-parseInt(_0x1ec1a5(0x1a0))/0x7+parseInt(_0x1ec1a5(0x1a5))/0x8;if(_0xe025c7===_0x361b78)break;else _0x23886e['push'](_0x23886e['shift']());}catch(_0xf95019){_0x23886e['push'](_0x23886e['shift']());}}}(a162_0x5079,0x1c867));function a162_0x26b1(_0x73e6dd,_0x5d2866){_0x73e6dd=_0x73e6dd-0x19f;const _0x507992=a162_0x5079();let _0x26b12d=_0x507992[_0x73e6dd];return _0x26b12d;}export function detectSqlMode(_0x3838bf){const _0x4c366c=a162_0x26b1,_0x5403ec=_0x3838bf[_0x4c366c(0x1aa)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x5403ec))return _0x4c366c(0x1a1);return _0x4c366c(0x1a7);}export function getSqlFileExtension(_0x45fbea){const _0x1612fa=a162_0x26b1;return _0x45fbea===_0x1612fa(0x1a1)?'.xml':'.sql';}export function buildDefaultSqlFileName(_0x4b75ed,_0x1abeaf){return''+_0x4b75ed+getSqlFileExtension(_0x1abeaf);}export function sanitizeSqlPathSegment(_0x5f11d9,_0x56ee68){const _0x5d8847=a162_0x26b1,_0x4f7ef3=String(_0x5f11d9??'')[_0x5d8847(0x1a3)](),_0x469814=_0x4f7ef3[_0x5d8847(0x1ab)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x5d8847(0x1ab)](/-+/g,'-')['replace'](/^\.+/,'')[_0x5d8847(0x1ab)](/\.+$/,'')['replace'](/^-+/,'')[_0x5d8847(0x1ab)](/-+$/,'');return _0x469814||_0x56ee68;}export function buildDbDirectoryName(_0xaa1932,_0x1e37af){const _0x580ab8=a162_0x26b1;return sanitizeSqlPathSegment(_0xaa1932,_0x1e37af!=null?_0x580ab8(0x1a8)+_0x1e37af:'unknown-db');}export function buildSqlRelativePath(_0x4f0a47,_0x1c2863,_0x59670a,_0x1e9aa3,_0x52c925){const _0x1f875a=buildDbDirectoryName(_0x59670a,_0x52c925),_0x2b676a=sanitizeSqlPathSegment(_0x4f0a47,'unknown-sql'),_0x515e16=sanitizeSqlPathSegment(_0x1c2863,_0x2b676a);return _0x1f875a+'/'+_0x2b676a+'_'+_0x515e16+getSqlFileExtension(_0x1e9aa3);}function a162_0x5079(){const _0x6a5040=['969204ALPkek','trimStart','replace','151948VprlQj','9821HeZLZB','1003569wURAFj','mybatisXml','5FfBUNz','trim','143814vtPZXn','611144MUiLWh','445816FwRwBD','sql','db-'];a162_0x5079=function(){return _0x6a5040;};return a162_0x5079();}
@@ -1 +1 @@
1
- (function(_0x2e3e3b,_0xca0726){const _0x60b4df=a163_0x57f2,_0x579c87=_0x2e3e3b();while(!![]){try{const _0x5b299f=-parseInt(_0x60b4df(0x147))/0x1+parseInt(_0x60b4df(0x14b))/0x2*(parseInt(_0x60b4df(0x14c))/0x3)+parseInt(_0x60b4df(0x13c))/0x4+-parseInt(_0x60b4df(0x13a))/0x5*(-parseInt(_0x60b4df(0x134))/0x6)+parseInt(_0x60b4df(0x155))/0x7*(parseInt(_0x60b4df(0x150))/0x8)+-parseInt(_0x60b4df(0x135))/0x9+-parseInt(_0x60b4df(0x14a))/0xa;if(_0x5b299f===_0xca0726)break;else _0x579c87['push'](_0x579c87['shift']());}catch(_0x2e47e2){_0x579c87['push'](_0x579c87['shift']());}}}(a163_0x51ab,0xc88e2));export function detectSqlType(_0x30586a){const _0x59840a=a163_0x57f2;if(!_0x30586a?.[_0x59840a(0x146)]())return{'type':_0x59840a(0x149),'isSelectOnly':![],'isDangerous':![],'reason':_0x59840a(0x140)};const _0x29502e=_0x30586a[_0x59840a(0x158)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x59840a(0x158)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x59840a(0x158)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x2dad46=_0x29502e[_0x59840a(0x159)]('\x0a');let _0x165717='';for(const _0x5f00fd of _0x2dad46){const _0x11cb95=_0x5f00fd[_0x59840a(0x146)]();if(!_0x11cb95||_0x11cb95[_0x59840a(0x15a)]('--')||_0x11cb95['startsWith']('/*'))continue;_0x165717=_0x11cb95;break;}const _0x5d8545=_0x165717[_0x59840a(0x148)]();if(_0x5d8545[_0x59840a(0x15a)](_0x59840a(0x139))||_0x5d8545[_0x59840a(0x15a)](_0x59840a(0x145))){const _0x504351=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x59840a(0x156)](_0x29502e);return{'type':_0x59840a(0x139),'isSelectOnly':!_0x504351,'isDangerous':_0x504351,'reason':_0x504351?_0x59840a(0x142):undefined};}if(_0x5d8545[_0x59840a(0x15a)]('INSERT'))return{'type':_0x59840a(0x143),'isSelectOnly':![],'isDangerous':![]};if(_0x5d8545[_0x59840a(0x15a)](_0x59840a(0x13d)))return{'type':_0x59840a(0x13d),'isSelectOnly':![],'isDangerous':![]};if(_0x5d8545[_0x59840a(0x15a)](_0x59840a(0x13f)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x59840a(0x156)](_0x5d8545))return{'type':_0x59840a(0x15b),'isSelectOnly':![],'isDangerous':!![],'reason':_0x59840a(0x13e)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x58ef51){const _0x3466fb=a163_0x57f2,_0x608494=_0x58ef51[_0x3466fb(0x158)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x3466fb(0x158)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4b6add=[],_0x2b2a78=_0x608494['match'](/FROM\s+([^\s,)(]+)/i);if(_0x2b2a78?.[0x1])_0x4b6add['push'](_0x2b2a78[0x1][_0x3466fb(0x158)](/[`"]/g,''));for(const _0x5deb72 of _0x608494[_0x3466fb(0x157)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4b87b2=_0x5deb72[0x1]?.[_0x3466fb(0x158)](/[`"]/g,'');if(_0x4b87b2&&!_0x4b6add[_0x3466fb(0x13b)](_0x4b87b2))_0x4b6add['push'](_0x4b87b2);}const _0x57999b=_0x608494[_0x3466fb(0x144)](/INTO\s+([^\s(]+)/i);if(_0x57999b?.[0x1]){const _0xa7ad16=_0x57999b[0x1][_0x3466fb(0x158)](/[`"]/g,'');if(!_0x4b6add[_0x3466fb(0x13b)](_0xa7ad16))_0x4b6add[_0x3466fb(0x138)](_0xa7ad16);}const _0x1ee1a9=_0x608494['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x1ee1a9?.[0x1]){const _0x29d46c=_0x1ee1a9[0x1][_0x3466fb(0x158)](/[`"]/g,'');if(!_0x4b6add[_0x3466fb(0x13b)](_0x29d46c))_0x4b6add[_0x3466fb(0x138)](_0x29d46c);}return _0x4b6add;}function extractParameters(_0x3e36f0){const _0x476756=a163_0x57f2,_0x2f2c80=new Set();for(const _0x3598bf of _0x3e36f0[_0x476756(0x157)](/#\{(\w+)\}/g))if(_0x3598bf[0x1])_0x2f2c80[_0x476756(0x15c)](_0x3598bf[0x1]);for(const _0xf9d2be of _0x3e36f0['matchAll'](/\$\{(\w+)\}/g))if(_0xf9d2be[0x1])_0x2f2c80[_0x476756(0x15c)](_0xf9d2be[0x1]);return Array[_0x476756(0x152)](_0x2f2c80);}function a163_0x51ab(){const _0x5ac0be=['match','WITH','trim','597658IVFaDY','toUpperCase','UNKNOWN','17105130jXhbPQ','1660bmNgSU','5481ceHqhv','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','type','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','4048awGZEH','join','from','reason','unknown\x20table(s)','8211qKYrAX','test','matchAll','replace','split','startsWith','DDL','add','137670wflALC','3202353TWvCyZ','\x20with\x20parameters:\x20','isDangerous','push','SELECT','195YXFVEy','includes','1922636uJVkzv','UPDATE','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','DELETE','SQL\x20content\x20is\x20empty','length','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','INSERT'];a163_0x51ab=function(){return _0x5ac0be;};return a163_0x51ab();}function a163_0x57f2(_0x381289,_0x46f05d){_0x381289=_0x381289-0x134;const _0x51abf7=a163_0x51ab();let _0x57f299=_0x51abf7[_0x381289];return _0x57f299;}export function validateSql(_0xcb210f){const _0x2a3c02=a163_0x57f2,_0x12b9cb=detectSqlType(_0xcb210f),_0x4d532e=extractTables(_0xcb210f),_0x4fc0ec=extractParameters(_0xcb210f);if(_0x12b9cb[_0x2a3c02(0x137)])return{'valid':![],'sqlType':_0x12b9cb,'tables':_0x4d532e,'parameters':_0x4fc0ec,'message':_0x12b9cb[_0x2a3c02(0x153)]||_0x12b9cb['type']+_0x2a3c02(0x14d)};if(_0x12b9cb[_0x2a3c02(0x14e)]===_0x2a3c02(0x149))return{'valid':![],'sqlType':_0x12b9cb,'tables':_0x4d532e,'parameters':_0x4fc0ec,'message':_0x2a3c02(0x14f)};return{'valid':!![],'sqlType':_0x12b9cb,'tables':_0x4d532e,'parameters':_0x4fc0ec,'message':_0x12b9cb[_0x2a3c02(0x14e)]+'\x20query\x20targeting\x20'+(_0x4d532e['length']?_0x4d532e[_0x2a3c02(0x151)](',\x20'):_0x2a3c02(0x154))+(_0x4fc0ec[_0x2a3c02(0x141)]?_0x2a3c02(0x136)+_0x4fc0ec[_0x2a3c02(0x151)](',\x20'):'')};}
1
+ function a163_0x5ac9(){const _0x38695c=['replace','trim','test','UPDATE','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','reason','1713788kgXOuF','\x20query\x20targeting\x20','length','WITH','SELECT','UNKNOWN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','add','toUpperCase','from','push','76070HUCvpt','\x20with\x20parameters:\x20','3781832OwugoN','match','5rArefB','447349omMiyZ','includes','4IIyvQn','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','matchAll','startsWith','join','1287iBxUpw','split','DELETE','2878687wGPCbN','isDangerous','4349712UZgMjz','138594kMjqUU','unknown\x20table(s)','type'];a163_0x5ac9=function(){return _0x38695c;};return a163_0x5ac9();}(function(_0x54bbff,_0x5d1ad4){const _0x55f1c1=a163_0x38f7,_0x1b8862=_0x54bbff();while(!![]){try{const _0x5d0054=-parseInt(_0x55f1c1(0x1ab))/0x1+parseInt(_0x55f1c1(0x1ad))/0x2*(-parseInt(_0x55f1c1(0x1b9))/0x3)+parseInt(_0x55f1c1(0x1c2))/0x4+-parseInt(_0x55f1c1(0x1d1))/0x5*(-parseInt(_0x55f1c1(0x1b8))/0x6)+parseInt(_0x55f1c1(0x1b6))/0x7+parseInt(_0x55f1c1(0x1cf))/0x8+parseInt(_0x55f1c1(0x1b3))/0x9*(-parseInt(_0x55f1c1(0x1cd))/0xa);if(_0x5d0054===_0x5d1ad4)break;else _0x1b8862['push'](_0x1b8862['shift']());}catch(_0x443624){_0x1b8862['push'](_0x1b8862['shift']());}}}(a163_0x5ac9,0x640df));export function detectSqlType(_0x50e904){const _0x4a420d=a163_0x38f7;if(!_0x50e904?.[_0x4a420d(0x1bd)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x2ab3a8=_0x50e904[_0x4a420d(0x1bc)](/#\{[^}]*\}/g,'?')[_0x4a420d(0x1bc)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x880d49=_0x2ab3a8[_0x4a420d(0x1b4)]('\x0a');let _0x333971='';for(const _0x47cfcb of _0x880d49){const _0x3e7996=_0x47cfcb['trim']();if(!_0x3e7996||_0x3e7996[_0x4a420d(0x1b1)]('--')||_0x3e7996['startsWith']('/*'))continue;_0x333971=_0x3e7996;break;}const _0xe3828b=_0x333971[_0x4a420d(0x1ca)]();if(_0xe3828b[_0x4a420d(0x1b1)](_0x4a420d(0x1c6))||_0xe3828b[_0x4a420d(0x1b1)](_0x4a420d(0x1c5))){const _0x4cbb95=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4a420d(0x1be)](_0x2ab3a8);return{'type':_0x4a420d(0x1c6),'isSelectOnly':!_0x4cbb95,'isDangerous':_0x4cbb95,'reason':_0x4cbb95?_0x4a420d(0x1c8):undefined};}if(_0xe3828b[_0x4a420d(0x1b1)]('INSERT'))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0xe3828b[_0x4a420d(0x1b1)](_0x4a420d(0x1bf)))return{'type':_0x4a420d(0x1bf),'isSelectOnly':![],'isDangerous':![]};if(_0xe3828b[_0x4a420d(0x1b1)](_0x4a420d(0x1b5)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x4a420d(0x1c0)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0xe3828b))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x4a420d(0x1af)};return{'type':_0x4a420d(0x1c7),'isSelectOnly':![],'isDangerous':![]};}function a163_0x38f7(_0x87a9d9,_0x7b02cd){_0x87a9d9=_0x87a9d9-0x1ab;const _0x5ac90a=a163_0x5ac9();let _0x38f7ea=_0x5ac90a[_0x87a9d9];return _0x38f7ea;}function extractTables(_0x5e2243){const _0x52e8c5=a163_0x38f7,_0x5cff78=_0x5e2243[_0x52e8c5(0x1bc)](/#\{[^}]*\}/g,'?')[_0x52e8c5(0x1bc)](/\$\{[^}]*\}/g,'?')[_0x52e8c5(0x1bc)](/'[^']*'/g,'\x27\x27')[_0x52e8c5(0x1bc)](/--.*$/gm,'')[_0x52e8c5(0x1bc)](/\/\*[\s\S]*?\*\//g,''),_0x2b4d96=[],_0x1429b0=_0x5cff78[_0x52e8c5(0x1d0)](/FROM\s+([^\s,)(]+)/i);if(_0x1429b0?.[0x1])_0x2b4d96[_0x52e8c5(0x1cc)](_0x1429b0[0x1]['replace'](/[`"]/g,''));for(const _0x2a0694 of _0x5cff78[_0x52e8c5(0x1b0)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x446f33=_0x2a0694[0x1]?.[_0x52e8c5(0x1bc)](/[`"]/g,'');if(_0x446f33&&!_0x2b4d96[_0x52e8c5(0x1ac)](_0x446f33))_0x2b4d96[_0x52e8c5(0x1cc)](_0x446f33);}const _0x38ca49=_0x5cff78['match'](/INTO\s+([^\s(]+)/i);if(_0x38ca49?.[0x1]){const _0x43b992=_0x38ca49[0x1][_0x52e8c5(0x1bc)](/[`"]/g,'');if(!_0x2b4d96[_0x52e8c5(0x1ac)](_0x43b992))_0x2b4d96[_0x52e8c5(0x1cc)](_0x43b992);}const _0xd552fc=_0x5cff78[_0x52e8c5(0x1d0)](/UPDATE\s+([^\s,)(]+)/i);if(_0xd552fc?.[0x1]){const _0x2b3151=_0xd552fc[0x1][_0x52e8c5(0x1bc)](/[`"]/g,'');if(!_0x2b4d96['includes'](_0x2b3151))_0x2b4d96[_0x52e8c5(0x1cc)](_0x2b3151);}return _0x2b4d96;}function extractParameters(_0x1efbc2){const _0x5cebd2=a163_0x38f7,_0x1a6661=new Set();for(const _0x5ba322 of _0x1efbc2['matchAll'](/#\{(\w+)\}/g))if(_0x5ba322[0x1])_0x1a6661[_0x5cebd2(0x1c9)](_0x5ba322[0x1]);for(const _0x3008bc of _0x1efbc2[_0x5cebd2(0x1b0)](/\$\{(\w+)\}/g))if(_0x3008bc[0x1])_0x1a6661['add'](_0x3008bc[0x1]);return Array[_0x5cebd2(0x1cb)](_0x1a6661);}export function validateSql(_0x2d6f11){const _0x1ba196=a163_0x38f7,_0xd5c6c6=detectSqlType(_0x2d6f11),_0x3882ce=extractTables(_0x2d6f11),_0x5b23ab=extractParameters(_0x2d6f11);if(_0xd5c6c6[_0x1ba196(0x1b7)])return{'valid':![],'sqlType':_0xd5c6c6,'tables':_0x3882ce,'parameters':_0x5b23ab,'message':_0xd5c6c6[_0x1ba196(0x1c1)]||_0xd5c6c6['type']+_0x1ba196(0x1ae)};if(_0xd5c6c6['type']===_0x1ba196(0x1c7))return{'valid':![],'sqlType':_0xd5c6c6,'tables':_0x3882ce,'parameters':_0x5b23ab,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0xd5c6c6,'tables':_0x3882ce,'parameters':_0x5b23ab,'message':_0xd5c6c6[_0x1ba196(0x1bb)]+_0x1ba196(0x1c3)+(_0x3882ce['length']?_0x3882ce[_0x1ba196(0x1b2)](',\x20'):_0x1ba196(0x1ba))+(_0x5b23ab[_0x1ba196(0x1c4)]?_0x1ba196(0x1ce)+_0x5b23ab[_0x1ba196(0x1b2)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a164_0x1784(_0xd16a6d,_0x16a314){_0xd16a6d=_0xd16a6d-0x69;const _0x40ead9=a164_0x40ea();let _0x1784af=_0x40ead9[_0xd16a6d];return _0x1784af;}const a164_0x36be4e=a164_0x1784;(function(_0x3f2a1e,_0x540aa4){const _0x17ca32=a164_0x1784,_0x30bb64=_0x3f2a1e();while(!![]){try{const _0x49aad4=parseInt(_0x17ca32(0x70))/0x1+parseInt(_0x17ca32(0x76))/0x2*(-parseInt(_0x17ca32(0x6f))/0x3)+parseInt(_0x17ca32(0x6a))/0x4+-parseInt(_0x17ca32(0x6c))/0x5*(-parseInt(_0x17ca32(0x71))/0x6)+-parseInt(_0x17ca32(0x69))/0x7*(parseInt(_0x17ca32(0x6b))/0x8)+-parseInt(_0x17ca32(0x77))/0x9+-parseInt(_0x17ca32(0x6e))/0xa*(-parseInt(_0x17ca32(0x72))/0xb);if(_0x49aad4===_0x540aa4)break;else _0x30bb64['push'](_0x30bb64['shift']());}catch(_0x43c45d){_0x30bb64['push'](_0x30bb64['shift']());}}}(a164_0x40ea,0x4190d));function a164_0x40ea(){const _0x555780=['17460qEqXoP','42wByCvj','22FoSFvg','\x0a\x20\x20\x20\x20\x20\x20\x20','Set\x20appcode\x20via\x20`','Run\x20`','1564XQVYwx','4491747TuKjnM','7GGTcsl','1805920VwcwIE','3597296GSykTL','212770YOBkyx','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','3429330aIThWi','903DHFgsF'];a164_0x40ea=function(){return _0x555780;};return a164_0x40ea();}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':a164_0x36be4e(0x75)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a164_0x36be4e(0x74)+CLI_BIN_NAME+a164_0x36be4e(0x6d),'Tip:\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a164_0x36be4e(0x73)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a164_0x4ffc9d=a164_0x16dc;(function(_0x45dbd4,_0x1fa8d4){const _0x42b37d=a164_0x16dc,_0x3f16ef=_0x45dbd4();while(!![]){try{const _0x51fa85=parseInt(_0x42b37d(0x1e4))/0x1*(-parseInt(_0x42b37d(0x1f4))/0x2)+-parseInt(_0x42b37d(0x1f3))/0x3*(parseInt(_0x42b37d(0x1ee))/0x4)+-parseInt(_0x42b37d(0x1e8))/0x5*(-parseInt(_0x42b37d(0x1eb))/0x6)+-parseInt(_0x42b37d(0x1e5))/0x7*(-parseInt(_0x42b37d(0x1f1))/0x8)+parseInt(_0x42b37d(0x1ea))/0x9*(parseInt(_0x42b37d(0x1e3))/0xa)+-parseInt(_0x42b37d(0x1e9))/0xb*(-parseInt(_0x42b37d(0x1e1))/0xc)+-parseInt(_0x42b37d(0x1ed))/0xd*(parseInt(_0x42b37d(0x1e7))/0xe);if(_0x51fa85===_0x1fa8d4)break;else _0x3f16ef['push'](_0x3f16ef['shift']());}catch(_0x5ad351){_0x3f16ef['push'](_0x3f16ef['shift']());}}}(a164_0x2d5f,0x9bbd1));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a164_0x2d5f(){const _0x54886e=['Run\x20`','610NXiGdb','1761oIUqhM','116711jHsJqZ','Set\x20appcode\x20via\x20`','4816oFzKeQ','1886635CPXVAP','11ohDSmg','154881szHkXM','6ZYacVD','join','45682woykqF','20924dBUNTa','\x0a\x20\x20\x20\x20\x20\x20\x20','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','248vBCQVq','\x20auth`\x20to\x20login\x20first.','363HztzIc','668uDTlXR','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','13486884XiMQEU'];a164_0x2d5f=function(){return _0x54886e;};return a164_0x2d5f();}function a164_0x16dc(_0x4784ba,_0x5ba605){_0x4784ba=_0x4784ba-0x1e0;const _0x2d5f28=a164_0x2d5f();let _0x16dcfb=_0x2d5f28[_0x4784ba];return _0x16dcfb;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a164_0x4ffc9d(0x1e2)+CLI_BIN_NAME+a164_0x4ffc9d(0x1f2),'configMissingHint':[a164_0x4ffc9d(0x1e6)+CLI_BIN_NAME+a164_0x4ffc9d(0x1f5),'Tip:\x20`'+CLI_BIN_NAME+a164_0x4ffc9d(0x1e0)][a164_0x4ffc9d(0x1ec)](a164_0x4ffc9d(0x1ef)),'notInProjectHint':a164_0x4ffc9d(0x1f0)});
@@ -1 +1 @@
1
- (function(_0x38c93c,_0x452ee0){var _0x58ea20=a165_0x370b,_0x35b946=_0x38c93c();while(!![]){try{var _0x491d8b=-parseInt(_0x58ea20(0x112))/0x1*(parseInt(_0x58ea20(0x110))/0x2)+parseInt(_0x58ea20(0x113))/0x3*(-parseInt(_0x58ea20(0x10d))/0x4)+-parseInt(_0x58ea20(0x111))/0x5*(-parseInt(_0x58ea20(0x10e))/0x6)+-parseInt(_0x58ea20(0x115))/0x7+parseInt(_0x58ea20(0x10c))/0x8+parseInt(_0x58ea20(0x114))/0x9+parseInt(_0x58ea20(0x10f))/0xa;if(_0x491d8b===_0x452ee0)break;else _0x35b946['push'](_0x35b946['shift']());}catch(_0x34e03e){_0x35b946['push'](_0x35b946['shift']());}}}(a165_0x3ff7,0xaa0c7));function a165_0x370b(_0x109ef6,_0x350c1d){_0x109ef6=_0x109ef6-0x10c;var _0x3ff7c2=a165_0x3ff7();var _0x370bf2=_0x3ff7c2[_0x109ef6];return _0x370bf2;}function a165_0x3ff7(){var _0x2ef925=['10931888SlxeOF','4vmzBLu','6flTAjr','3982510oyvkvu','2852ZDLDsh','2392175HbWlmI','259EfLFGa','396471sxuLNe','2074536JeJQzi','8929662tvfRHl'];a165_0x3ff7=function(){return _0x2ef925;};return a165_0x3ff7();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x2a5ea0}from'@lovrabet/cli-framework';export function buildAllFlags(_0xb7f634){return a165_0x2a5ea0(_0xb7f634,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a165_0x24ef(_0x4e9bc2,_0x13e568){_0x4e9bc2=_0x4e9bc2-0x108;var _0x1fdd06=a165_0x1fdd();var _0x24ef30=_0x1fdd06[_0x4e9bc2];return _0x24ef30;}(function(_0x14807b,_0x2efb5d){var _0x1ffaed=a165_0x24ef,_0x2cf8c7=_0x14807b();while(!![]){try{var _0x1109c8=-parseInt(_0x1ffaed(0x10f))/0x1*(parseInt(_0x1ffaed(0x10c))/0x2)+-parseInt(_0x1ffaed(0x10e))/0x3*(parseInt(_0x1ffaed(0x10b))/0x4)+-parseInt(_0x1ffaed(0x111))/0x5+-parseInt(_0x1ffaed(0x112))/0x6*(-parseInt(_0x1ffaed(0x10d))/0x7)+-parseInt(_0x1ffaed(0x108))/0x8*(parseInt(_0x1ffaed(0x110))/0x9)+-parseInt(_0x1ffaed(0x109))/0xa+parseInt(_0x1ffaed(0x10a))/0xb;if(_0x1109c8===_0x2efb5d)break;else _0x2cf8c7['push'](_0x2cf8c7['shift']());}catch(_0x2c7052){_0x2cf8c7['push'](_0x2cf8c7['shift']());}}}(a165_0x1fdd,0x36a25));function a165_0x1fdd(){var _0x683e21=['49368dGDCbL','2638904RpirTY','2788840mIibcF','16423693iJVEna','8164wSUEHy','4808gwLuPY','84ayEBgL','267DoxyJY','74coFTDL','9zslmbf','1998630XlIndE'];a165_0x1fdd=function(){return _0x683e21;};return a165_0x1fdd();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x5e3e08}from'@lovrabet/cli-framework';export function buildAllFlags(_0x40d115){return a165_0x5e3e08(_0x40d115,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a166_0x37b1c2=a166_0x52c5;function a166_0x52c5(_0x327496,_0x85f165){_0x327496=_0x327496-0x1ad;const _0x45bd93=a166_0x45bd();let _0x52c552=_0x45bd93[_0x327496];return _0x52c552;}(function(_0x995d39,_0x1cbc58){const _0x3a0a3c=a166_0x52c5,_0x34fdda=_0x995d39();while(!![]){try{const _0x164459=-parseInt(_0x3a0a3c(0x1b0))/0x1*(parseInt(_0x3a0a3c(0x1b4))/0x2)+-parseInt(_0x3a0a3c(0x1b1))/0x3*(parseInt(_0x3a0a3c(0x1b5))/0x4)+-parseInt(_0x3a0a3c(0x1ad))/0x5*(parseInt(_0x3a0a3c(0x1b6))/0x6)+-parseInt(_0x3a0a3c(0x1ae))/0x7+parseInt(_0x3a0a3c(0x1b8))/0x8+-parseInt(_0x3a0a3c(0x1b2))/0x9+parseInt(_0x3a0a3c(0x1b7))/0xa;if(_0x164459===_0x1cbc58)break;else _0x34fdda['push'](_0x34fdda['shift']());}catch(_0x744f18){_0x34fdda['push'](_0x34fdda['shift']());}}}(a166_0x45bd,0xf24d9));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a166_0x37b1c2(0x1b3)];export const validateFlags=helpers[a166_0x37b1c2(0x1af)];function a166_0x45bd(){const _0x418a34=['15085998gcydfI','parseFlags','5654hCbznd','4WpQZZy','159828bFvOfZ','63141750BSClfQ','4326232aUrbyz','315fZYhbP','8894207oFeesM','validateFlags','433jdcrzQ','40119JGgrnn'];a166_0x45bd=function(){return _0x418a34;};return a166_0x45bd();}
1
+ const a166_0x33cbf3=a166_0x50e4;function a166_0x2300(){const _0x3606ba=['428330mIqzDJ','576260iVnrOB','47076mgbXdS','40iKIVVq','286386izQfvE','3377OxQvvk','parseFlags','345159HhNDpf','validateFlags','1976492znhgSW','232338FIbGQO','18iqfCbY','190eLOoSh','3jAXiZv'];a166_0x2300=function(){return _0x3606ba;};return a166_0x2300();}function a166_0x50e4(_0x2d48f4,_0x33dfe1){_0x2d48f4=_0x2d48f4-0xe5;const _0x2300ea=a166_0x2300();let _0x50e490=_0x2300ea[_0x2d48f4];return _0x50e490;}(function(_0x2315dd,_0x28b698){const _0x1f142f=a166_0x50e4,_0x114c62=_0x2315dd();while(!![]){try{const _0x3565ae=parseInt(_0x1f142f(0xe6))/0x1+parseInt(_0x1f142f(0xec))/0x2+-parseInt(_0x1f142f(0xef))/0x3*(parseInt(_0x1f142f(0xeb))/0x4)+-parseInt(_0x1f142f(0xf1))/0x5*(-parseInt(_0x1f142f(0xed))/0x6)+-parseInt(_0x1f142f(0xf0))/0x7*(parseInt(_0x1f142f(0xe5))/0x8)+parseInt(_0x1f142f(0xe9))/0x9*(-parseInt(_0x1f142f(0xee))/0xa)+-parseInt(_0x1f142f(0xe7))/0xb*(-parseInt(_0x1f142f(0xf2))/0xc);if(_0x3565ae===_0x28b698)break;else _0x114c62['push'](_0x114c62['shift']());}catch(_0x3cc029){_0x114c62['push'](_0x114c62['shift']());}}}(a166_0x2300,0x677fa));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a166_0x33cbf3(0xe8)];export const validateFlags=helpers[a166_0x33cbf3(0xea)];
@@ -1 +1 @@
1
- const a167_0xcc1fa9=a167_0x2b5d;function a167_0x2b79(){const _0x522fae=['get','175980FDwlii','generateCommandHelp','\x20[args]\x20[flags]','275934ubVgiM','\x20project\x20init`\x20or\x20--appcode).','133TkOgit','105164ZoBtBy','Requires\x20appcode\x20(set\x20via\x20`','45STpvIF','785709SmCQAs','778767vnLJGm','generateServiceHelp','11293975RQawCF','144JghjqN','10RJQXmU','8484520gdUHBV'];a167_0x2b79=function(){return _0x522fae;};return a167_0x2b79();}(function(_0x4bc620,_0x266384){const _0x2dfb4c=a167_0x2b5d,_0x2bbd7e=_0x4bc620();while(!![]){try{const _0x3ec01f=-parseInt(_0x2dfb4c(0x15f))/0x1+parseInt(_0x2dfb4c(0x15c))/0x2*(parseInt(_0x2dfb4c(0x158))/0x3)+-parseInt(_0x2dfb4c(0x154))/0x4*(-parseInt(_0x2dfb4c(0x156))/0x5)+-parseInt(_0x2dfb4c(0x162))/0x6*(-parseInt(_0x2dfb4c(0x153))/0x7)+parseInt(_0x2dfb4c(0x15b))/0x8*(-parseInt(_0x2dfb4c(0x157))/0x9)+-parseInt(_0x2dfb4c(0x15d))/0xa+parseInt(_0x2dfb4c(0x15a))/0xb;if(_0x3ec01f===_0x266384)break;else _0x2bbd7e['push'](_0x2bbd7e['shift']());}catch(_0x349126){_0x2bbd7e['push'](_0x2bbd7e['shift']());}}}(a167_0x2b79,0xcce3e));import{createHelpGenerators}from'@lovrabet/cli-framework';function a167_0x2b5d(_0x17f13e,_0x59406a){_0x17f13e=_0x17f13e-0x153;const _0x2b7915=a167_0x2b79();let _0x2b5d87=_0x2b7915[_0x17f13e];return _0x2b5d87;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x543e6d=>serviceGroups[a167_0xcc1fa9(0x15e)](_0x543e6d),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a167_0xcc1fa9(0x155)+CLI_BIN_NAME+a167_0xcc1fa9(0x163),'serviceUsageSuffix':a167_0xcc1fa9(0x161),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2dab8e){const _0x427bef=a167_0xcc1fa9;return generators[_0x427bef(0x160)](_0x2dab8e);}export const generateServiceHelp=generators[a167_0xcc1fa9(0x159)];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a167_0x1a484e=a167_0x3d2f;(function(_0x31d5b2,_0x395d1c){const _0x4ad663=a167_0x3d2f,_0x27b2cd=_0x31d5b2();while(!![]){try{const _0x2743c8=-parseInt(_0x4ad663(0x7a))/0x1*(parseInt(_0x4ad663(0x77))/0x2)+parseInt(_0x4ad663(0x75))/0x3*(-parseInt(_0x4ad663(0x78))/0x4)+parseInt(_0x4ad663(0x74))/0x5*(-parseInt(_0x4ad663(0x7c))/0x6)+-parseInt(_0x4ad663(0x79))/0x7+-parseInt(_0x4ad663(0x71))/0x8*(-parseInt(_0x4ad663(0x6f))/0x9)+-parseInt(_0x4ad663(0x73))/0xa+-parseInt(_0x4ad663(0x6e))/0xb*(-parseInt(_0x4ad663(0x70))/0xc);if(_0x2743c8===_0x395d1c)break;else _0x27b2cd['push'](_0x27b2cd['shift']());}catch(_0x59769b){_0x27b2cd['push'](_0x27b2cd['shift']());}}}(a167_0x4495,0x37fbf));import{createHelpGenerators}from'@lovrabet/cli-framework';function a167_0x4495(){const _0x11576b=['312BOratS','generateCommandHelp','134710HMqKNC','181635nefkmu','9czmGls','\x20[args]\x20[flags]','962wHIIqS','539140tksmpr','1460193uZFqsc','370nOugAN','generateServiceHelp','42wOyYMF','11MFgzGT','24912hbOzgF','14160516FMmyMr'];a167_0x4495=function(){return _0x11576b;};return a167_0x4495();}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a167_0x3d2f(_0xc6e554,_0xbcbf17){_0xc6e554=_0xc6e554-0x6e;const _0x44957d=a167_0x4495();let _0x3d2f29=_0x44957d[_0xc6e554];return _0x3d2f29;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x5c1d71=>serviceGroups['get'](_0x5c1d71),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a167_0x1a484e(0x76),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x11f2e4){const _0x1d9609=a167_0x1a484e;return generators[_0x1d9609(0x72)](_0x11f2e4);}export const generateServiceHelp=generators[a167_0x1a484e(0x7b)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x40af9e,_0x56633e){var _0x16cef4=a168_0x1967,_0x3d8656=_0x40af9e();while(!![]){try{var _0x4018b3=parseInt(_0x16cef4(0x1f2))/0x1*(-parseInt(_0x16cef4(0x1f4))/0x2)+-parseInt(_0x16cef4(0x1f6))/0x3*(-parseInt(_0x16cef4(0x1f7))/0x4)+-parseInt(_0x16cef4(0x1f3))/0x5+parseInt(_0x16cef4(0x1f8))/0x6*(parseInt(_0x16cef4(0x1f5))/0x7)+-parseInt(_0x16cef4(0x1f9))/0x8+-parseInt(_0x16cef4(0x1f1))/0x9*(parseInt(_0x16cef4(0x1ef))/0xa)+parseInt(_0x16cef4(0x1f0))/0xb;if(_0x4018b3===_0x56633e)break;else _0x3d8656['push'](_0x3d8656['shift']());}catch(_0x18d5b5){_0x3d8656['push'](_0x3d8656['shift']());}}}(a168_0x2a17,0x240b2));function a168_0x2a17(){var _0x500bba=['575310nUSuiA','8061746xQrpCb','45QMFVLS','7197YkfIbm','420125MiPoxy','78GWcRrF','28asOyZy','27ClJKJN','64632gMYGOT','318174hsvmRc','2323416xUvviZ'];a168_0x2a17=function(){return _0x500bba;};return a168_0x2a17();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a168_0x1967(_0x122015,_0x18b8f6){_0x122015=_0x122015-0x1ef;var _0x2a17f6=a168_0x2a17();var _0x1967a7=_0x2a17f6[_0x122015];return _0x1967a7;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ function a168_0x2916(){var _0x1c55e5=['459036PLwDHw','8fCwasc','1478760WsZoIe','29472WTYNFs','8953064QmAasZ','4806858ILnrct','7157936IeovMA','2689525RguEbe'];a168_0x2916=function(){return _0x1c55e5;};return a168_0x2916();}(function(_0x5c129f,_0x145985){var _0xaa64d2=a168_0x58ef,_0x5700b9=_0x5c129f();while(!![]){try{var _0x303d93=parseInt(_0xaa64d2(0xd6))/0x1+-parseInt(_0xaa64d2(0xd5))/0x2*(-parseInt(_0xaa64d2(0xd7))/0x3)+-parseInt(_0xaa64d2(0xd2))/0x4+-parseInt(_0xaa64d2(0xd3))/0x5+-parseInt(_0xaa64d2(0xd4))/0x6+parseInt(_0xaa64d2(0xd1))/0x7+parseInt(_0xaa64d2(0xd0))/0x8;if(_0x303d93===_0x145985)break;else _0x5700b9['push'](_0x5700b9['shift']());}catch(_0x466096){_0x5700b9['push'](_0x5700b9['shift']());}}}(a168_0x2916,0xe09b4));function a168_0x58ef(_0x5e1076,_0x3b2aa1){_0x5e1076=_0x5e1076-0xd0;var _0x2916b2=a168_0x2916();var _0x58efd6=_0x2916b2[_0x5e1076];return _0x58efd6;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x4ba370,_0x15b6b7){const _0x254e56=a169_0x1ca2,_0xe38c7a=_0x4ba370();while(!![]){try{const _0x1f8773=parseInt(_0x254e56(0x1c4))/0x1+parseInt(_0x254e56(0x1ba))/0x2+-parseInt(_0x254e56(0x1b8))/0x3*(-parseInt(_0x254e56(0x1b9))/0x4)+parseInt(_0x254e56(0x1c1))/0x5*(parseInt(_0x254e56(0x1c3))/0x6)+-parseInt(_0x254e56(0x1bc))/0x7*(parseInt(_0x254e56(0x1c2))/0x8)+-parseInt(_0x254e56(0x1bf))/0x9+-parseInt(_0x254e56(0x1c0))/0xa;if(_0x1f8773===_0x15b6b7)break;else _0xe38c7a['push'](_0xe38c7a['shift']());}catch(_0x239cbd){_0xe38c7a['push'](_0xe38c7a['shift']());}}}(a169_0x580a,0xa6354));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a169_0x1ca2(_0x433a02,_0x21dece){_0x433a02=_0x433a02-0x1b6;const _0x580a58=a169_0x580a();let _0x1ca2d1=_0x580a58[_0x433a02];return _0x1ca2d1;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a169_0x580a(){const _0x258729=['4385hLxWLj','32ZFXyqA','8604QJEPJI','1110657bAYrPO','format','url','pretty','3hxHzis','4472948VgKEtW','409200KnMsNc','update','439453HICdgG','message','_notice','10560915pNbhUw','15857730dTiJKQ'];a169_0x580a=function(){return _0x258729;};return a169_0x580a();}export function formatOutput(_0x4d46cc,_0x392ee9){const _0x14ea68=a169_0x1ca2,_0x5d889d=_0x4d46cc[_0x14ea68(0x1be)],{_notice:_0x3346ba,..._0x5700e3}=_0x4d46cc;void _0x3346ba,baseFormatOutput(_0x5700e3,_0x392ee9),_0x392ee9[_0x14ea68(0x1c5)]===_0x14ea68(0x1b7)&&printPrettyNotice(_0x5d889d);}function printPrettyNotice(_0x4b77e9){const _0x258a16=a169_0x1ca2;if(!_0x4b77e9?.['update'])return;console['error'](_0x4b77e9[_0x258a16(0x1bb)][_0x258a16(0x1bd)]+'\x20('+_0x4b77e9[_0x258a16(0x1bb)][_0x258a16(0x1b6)]+')');}
1
+ (function(_0x379d87,_0x4f897b){const _0x2a7d44=a169_0x25bd,_0x5c5e81=_0x379d87();while(!![]){try{const _0x25354a=parseInt(_0x2a7d44(0xfe))/0x1+-parseInt(_0x2a7d44(0x101))/0x2*(-parseInt(_0x2a7d44(0x107))/0x3)+parseInt(_0x2a7d44(0xfd))/0x4*(-parseInt(_0x2a7d44(0x102))/0x5)+parseInt(_0x2a7d44(0x100))/0x6+-parseInt(_0x2a7d44(0x106))/0x7+-parseInt(_0x2a7d44(0xff))/0x8+parseInt(_0x2a7d44(0x104))/0x9*(parseInt(_0x2a7d44(0x108))/0xa);if(_0x25354a===_0x4f897b)break;else _0x5c5e81['push'](_0x5c5e81['shift']());}catch(_0x2ed6bf){_0x5c5e81['push'](_0x5c5e81['shift']());}}}(a169_0x1dda,0xe6e14));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a169_0x25bd(_0x27700a,_0x3d6bd5){_0x27700a=_0x27700a-0xfb;const _0x1dda38=a169_0x1dda();let _0x25bd08=_0x1dda38[_0x27700a];return _0x25bd08;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x78c877,_0x1296b6){const _0x47aed3=a169_0x25bd,_0x3f6419=_0x78c877[_0x47aed3(0x103)],{_notice:_0x5d86d7,..._0x4a9c31}=_0x78c877;void _0x5d86d7,baseFormatOutput(_0x4a9c31,_0x1296b6),_0x1296b6[_0x47aed3(0x10a)]===_0x47aed3(0xfb)&&printPrettyNotice(_0x3f6419);}function printPrettyNotice(_0x492cdb){const _0x4a1649=a169_0x25bd;if(!_0x492cdb?.[_0x4a1649(0xfc)])return;console['error'](_0x492cdb['update'][_0x4a1649(0x109)]+'\x20('+_0x492cdb['update'][_0x4a1649(0x105)]+')');}function a169_0x1dda(){const _0x52bbd1=['format','pretty','update','6476cowsbL','595960LkgFaU','8427496CQuzFD','150600EqNqVl','11560JqoFnm','25iXftIf','_notice','9djLbQs','url','1415925jZCkXQ','615OXHaxz','4035310INkBwX','message'];a169_0x1dda=function(){return _0x52bbd1;};return a169_0x1dda();}
@@ -1 +1 @@
1
- function a170_0x21c9(){var _0x137537=['2964330lfChbV','1012096JODfJD','2270485ylrBkT','3068NiDMbN','20yNiqat','473080ojwVcX','252714SVdtUZ','10XvQZGo','1074304lHzAYZ','1OxcstH','993miYqWM'];a170_0x21c9=function(){return _0x137537;};return a170_0x21c9();}function a170_0x3ecc(_0xb96972,_0x13de8c){_0xb96972=_0xb96972-0x13d;var _0x21c956=a170_0x21c9();var _0x3ecc8b=_0x21c956[_0xb96972];return _0x3ecc8b;}(function(_0x4103ec,_0x3bde87){var _0x3218b=a170_0x3ecc,_0x472310=_0x4103ec();while(!![]){try{var _0x4b8b65=parseInt(_0x3218b(0x145))/0x1*(-parseInt(_0x3218b(0x141))/0x2)+parseInt(_0x3218b(0x146))/0x3*(parseInt(_0x3218b(0x13f))/0x4)+parseInt(_0x3218b(0x143))/0x5*(parseInt(_0x3218b(0x142))/0x6)+parseInt(_0x3218b(0x13e))/0x7+-parseInt(_0x3218b(0x13d))/0x8+parseInt(_0x3218b(0x147))/0x9*(parseInt(_0x3218b(0x140))/0xa)+-parseInt(_0x3218b(0x144))/0xb;if(_0x4b8b65===_0x3bde87)break;else _0x472310['push'](_0x472310['shift']());}catch(_0x118007){_0x472310['push'](_0x472310['shift']());}}}(a170_0x21c9,0xd214e));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x161a53,_0x22750c){var _0x10f7cc=a170_0x1ba9,_0x3a830c=_0x161a53();while(!![]){try{var _0x433260=parseInt(_0x10f7cc(0xfc))/0x1*(parseInt(_0x10f7cc(0xf7))/0x2)+parseInt(_0x10f7cc(0x101))/0x3+parseInt(_0x10f7cc(0xff))/0x4*(parseInt(_0x10f7cc(0xfb))/0x5)+parseInt(_0x10f7cc(0xf8))/0x6*(parseInt(_0x10f7cc(0x102))/0x7)+-parseInt(_0x10f7cc(0xfe))/0x8*(-parseInt(_0x10f7cc(0xfa))/0x9)+parseInt(_0x10f7cc(0x100))/0xa+-parseInt(_0x10f7cc(0xfd))/0xb*(parseInt(_0x10f7cc(0xf9))/0xc);if(_0x433260===_0x22750c)break;else _0x3a830c['push'](_0x3a830c['shift']());}catch(_0x540410){_0x3a830c['push'](_0x3a830c['shift']());}}}(a170_0x5694,0x9a458));function a170_0x1ba9(_0x2f5856,_0x505168){_0x2f5856=_0x2f5856-0xf7;var _0x56943e=a170_0x5694();var _0x1ba978=_0x56943e[_0x2f5856];return _0x1ba978;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a170_0x5694(){var _0xda1fdf=['6iOpjzr','6tgPvmy','12yCEQiL','9JwjZws','770020fKyLsu','1963XauZcE','20013884LFcEqL','4541520osvmPj','8hWFPiK','4004590XLwEVW','2439981EtvemG','2491769AldkQF'];a170_0x5694=function(){return _0xda1fdf;};return a170_0x5694();}
@@ -1 +1 @@
1
- function a171_0xde16(_0x51aae1,_0x294905){_0x51aae1=_0x51aae1-0x1d4;const _0x586e6f=a171_0x586e();let _0xde1645=_0x586e6f[_0x51aae1];return _0xde1645;}function a171_0x586e(){const _0x228c76=['2353544EYoYmd','type','some','9668WFVdBL','validation','3321TonJJC','7DmiaBw','1434ejURiB','5435iTWZgM','string','length','name','1068452APMXZa','\x20api\x20pull`\x20first.','No\x20api.ts\x20found\x20in\x20','Unknown\x20alias\x20\x22','4430ykKJJl','.\x20Run\x20`','alias','1669682NDsESe','Available\x20aliases:\x20','code','\x22.\x20','join','10672vkpTnP','363nHStXB','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags'];a171_0x586e=function(){return _0x228c76;};return a171_0x586e();}(function(_0x27384a,_0x212663){const _0x1479be=a171_0xde16,_0x2b034d=_0x27384a();while(!![]){try{const _0x28cf9e=-parseInt(_0x1479be(0x1dc))/0x1*(parseInt(_0x1479be(0x1ee))/0x2)+parseInt(_0x1479be(0x1ef))/0x3*(parseInt(_0x1479be(0x1d9))/0x4)+parseInt(_0x1479be(0x1de))/0x5*(parseInt(_0x1479be(0x1dd))/0x6)+-parseInt(_0x1479be(0x1e9))/0x7+-parseInt(_0x1479be(0x1d6))/0x8+-parseInt(_0x1479be(0x1db))/0x9*(-parseInt(_0x1479be(0x1e6))/0xa)+parseInt(_0x1479be(0x1e2))/0xb;if(_0x28cf9e===_0x212663)break;else _0x2b034d['push'](_0x2b034d['shift']());}catch(_0x34435f){_0x2b034d['push'](_0x2b034d['shift']());}}}(a171_0x586e,0x3b45a));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x204c20,_0x2db918,_0x1f1593,_0x412fb2){const _0x4d9f59=a171_0xde16,_0x5c109d=_0x204c20[_0x4d9f59(0x1d5)][_0x4d9f59(0x1d8)](_0x3bbd8b=>_0x3bbd8b['name']===_0x4d9f59(0x1eb)&&_0x3bbd8b['type']==='string'),_0x52c06d=_0x204c20[_0x4d9f59(0x1d5)][_0x4d9f59(0x1d8)](_0x1c5e4e=>_0x1c5e4e[_0x4d9f59(0x1e1)]===_0x4d9f59(0x1e8)&&_0x1c5e4e[_0x4d9f59(0x1d7)]===_0x4d9f59(0x1df));if(!_0x5c109d||!_0x52c06d)return;const _0x405ded=_0x2db918[_0x4d9f59(0x1eb)]?String(_0x2db918['code']):'',_0x3fe295=_0x2db918[_0x4d9f59(0x1e8)]?String(_0x2db918[_0x4d9f59(0x1e8)]):'';if(!_0x405ded&&!_0x3fe295)throw CliErrors['validation']('`'+_0x412fb2+_0x4d9f59(0x1d4));if(_0x3fe295&&!_0x405ded){const _0x2808cb=resolveAlias(_0x1f1593,_0x3fe295);if(!_0x2808cb){const _0x46ab9e=listAliases(_0x1f1593)['map'](_0x4c6fbe=>_0x4c6fbe['alias']),_0x210115=_0x46ab9e[_0x4d9f59(0x1e0)]?_0x4d9f59(0x1ea)+_0x46ab9e[_0x4d9f59(0x1ed)](',\x20'):_0x4d9f59(0x1e4)+_0x1f1593+_0x4d9f59(0x1e7)+CLI_BIN_NAME+_0x4d9f59(0x1e3);throw CliErrors[_0x4d9f59(0x1da)](_0x4d9f59(0x1e5)+_0x3fe295+_0x4d9f59(0x1ec)+_0x210115);}_0x2db918[_0x4d9f59(0x1eb)]=_0x2808cb;}}
1
+ (function(_0x3905bf,_0x13f644){const _0x3ddfee=a171_0x4cfa,_0x4bd9c7=_0x3905bf();while(!![]){try{const _0x5b04a7=-parseInt(_0x3ddfee(0x116))/0x1*(-parseInt(_0x3ddfee(0x119))/0x2)+parseInt(_0x3ddfee(0x10d))/0x3*(-parseInt(_0x3ddfee(0x113))/0x4)+-parseInt(_0x3ddfee(0x10a))/0x5+-parseInt(_0x3ddfee(0x11c))/0x6*(-parseInt(_0x3ddfee(0x11d))/0x7)+parseInt(_0x3ddfee(0x109))/0x8+parseInt(_0x3ddfee(0x118))/0x9*(parseInt(_0x3ddfee(0x122))/0xa)+-parseInt(_0x3ddfee(0x123))/0xb;if(_0x5b04a7===_0x13f644)break;else _0x4bd9c7['push'](_0x4bd9c7['shift']());}catch(_0x203576){_0x4bd9c7['push'](_0x4bd9c7['shift']());}}}(a171_0xc6cb,0x1c850));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a171_0x4cfa(_0x1b4a62,_0x1760dd){_0x1b4a62=_0x1b4a62-0x108;const _0xc6cb9a=a171_0xc6cb();let _0x4cfa66=_0xc6cb9a[_0x1b4a62];return _0x4cfa66;}function a171_0xc6cb(){const _0x2c77a3=['flags','type','code','4nNQUXO','length','some','5iRXNoA','`\x20requires\x20either\x20--code\x20or\x20--alias.','9tnZNDI','62142TmPedO','\x22.\x20','.\x20Run\x20`','221322gNNVoT','7qbJCEz','string','validation','name','No\x20api.ts\x20found\x20in\x20','1837660cXksat','3303201FMyUSe','alias','1547408ldgUYN','757455dRpXyi','Unknown\x20alias\x20\x22','\x20api\x20pull`\x20first.','2508xCyglS','Available\x20aliases:\x20','join'];a171_0xc6cb=function(){return _0x2c77a3;};return a171_0xc6cb();}export function resolveAliasToCode(_0x2b56f4,_0x143c71,_0x41c29f,_0x294d9b){const _0x1eccf8=a171_0x4cfa,_0x3b83df=_0x2b56f4[_0x1eccf8(0x110)][_0x1eccf8(0x115)](_0x394736=>_0x394736[_0x1eccf8(0x120)]===_0x1eccf8(0x112)&&_0x394736[_0x1eccf8(0x111)]===_0x1eccf8(0x11e)),_0x4ed4ae=_0x2b56f4[_0x1eccf8(0x110)][_0x1eccf8(0x115)](_0x1d8846=>_0x1d8846[_0x1eccf8(0x120)]==='alias'&&_0x1d8846[_0x1eccf8(0x111)]==='string');if(!_0x3b83df||!_0x4ed4ae)return;const _0xa61c15=_0x143c71[_0x1eccf8(0x112)]?String(_0x143c71[_0x1eccf8(0x112)]):'',_0x2b7058=_0x143c71[_0x1eccf8(0x108)]?String(_0x143c71[_0x1eccf8(0x108)]):'';if(!_0xa61c15&&!_0x2b7058)throw CliErrors[_0x1eccf8(0x11f)]('`'+_0x294d9b+_0x1eccf8(0x117));if(_0x2b7058&&!_0xa61c15){const _0x5a0f4d=resolveAlias(_0x41c29f,_0x2b7058);if(!_0x5a0f4d){const _0x33a498=listAliases(_0x41c29f)['map'](_0x2041a5=>_0x2041a5[_0x1eccf8(0x108)]),_0x351c6c=_0x33a498[_0x1eccf8(0x114)]?_0x1eccf8(0x10e)+_0x33a498[_0x1eccf8(0x10f)](',\x20'):_0x1eccf8(0x121)+_0x41c29f+_0x1eccf8(0x11b)+CLI_BIN_NAME+_0x1eccf8(0x10c);throw CliErrors[_0x1eccf8(0x11f)](_0x1eccf8(0x10b)+_0x2b7058+_0x1eccf8(0x11a)+_0x351c6c);}_0x143c71['code']=_0x5a0f4d;}}
@@ -1 +1 @@
1
- function a172_0x5622(){const _0x227d62=['verbose','includes','string','hasFormat','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','170026MFwdvR','rawFlags','isNonInteractive','RABETBASE_APPCODE','name','resolveCookie','_notice','execute','954FHwTuk','1057575npDbJE','36928gqORZI','format','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','apps','../core/api-client.js','update','resolveAppCode','High-risk\x20operation\x20`','apiDir','value','3VUzykT','appCode','authRequired','2171715YSskvi','nonInteractive','service','requiresAppCode','1909782FlHhQs','853552xNHcBi','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveApiDomain','cancelled','Set\x20appcode\x20via\x20`','map','defaultVerbose','catch','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','configMissing','object','⚠\x20\x20High-risk\x20operation:\x20','resolve','has','1261494jXAiUx','schema','trim','selectedAppName','Current\x20resolved\x20appcode\x20is\x20\x22','pretty'];a172_0x5622=function(){return _0x227d62;};return a172_0x5622();}const a172_0x3564fc=a172_0x1ffb;(function(_0x5a77f8,_0x57bb9b){const _0x3e112d=a172_0x1ffb,_0x47d2d9=_0x5a77f8();while(!![]){try{const _0xc0cab5=parseInt(_0x3e112d(0x1b2))/0x1*(-parseInt(_0x3e112d(0x19e))/0x2)+parseInt(_0x3e112d(0x184))/0x3+parseInt(_0x3e112d(0x185))/0x4+-parseInt(_0x3e112d(0x1a7))/0x5+-parseInt(_0x3e112d(0x193))/0x6+-parseInt(_0x3e112d(0x1b5))/0x7+parseInt(_0x3e112d(0x1a8))/0x8*(parseInt(_0x3e112d(0x1a6))/0x9);if(_0xc0cab5===_0x57bb9b)break;else _0x47d2d9['push'](_0x47d2d9['shift']());}catch(_0x1396c4){_0x47d2d9['push'](_0x47d2d9['shift']());}}}(a172_0x5622,0x55fe6));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a172_0xfa1afd}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x20dc0e){const _0x500723=a172_0x1ffb;return typeof _0x20dc0e===_0x500723(0x19b)&&_0x20dc0e[_0x500723(0x195)]()?_0x20dc0e[_0x500723(0x195)]():undefined;}function resolveEnvAppCode(){const _0x1b86e1=a172_0x1ffb,_0x5b898d=stringFlag(process.env.RABETBASE_APPCODE);if(_0x5b898d)return{'name':_0x1b86e1(0x1a1),'value':_0x5b898d};const _0x3d1f66=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3d1f66)return{'name':'LOVRABET_APPCODE','value':_0x3d1f66};return undefined;}function hasExplicitAppCode(_0x1ad109,_0x219f3c){return!!(stringFlag(_0x1ad109['appcode'])||stringFlag(_0x219f3c['appcode']));}function a172_0x1ffb(_0x5eee93,_0x445bae){_0x5eee93=_0x5eee93-0x183;const _0x562211=a172_0x5622();let _0x1ffb61=_0x562211[_0x5eee93];return _0x1ffb61;}function assertEnvAppCodeNotIgnored(_0x2f7c7f,_0x54f1d8,_0x535b9b){const _0x3f4050=a172_0x1ffb;if(!_0x54f1d8||_0x535b9b||_0x2f7c7f===_0x54f1d8[_0x3f4050(0x1b1)])return;const _0x10c3c7=_0x2f7c7f?_0x3f4050(0x197)+_0x2f7c7f+'\x22.':_0x3f4050(0x18d);throw CliErrors['validation'](_0x54f1d8['name']+'='+_0x54f1d8[_0x3f4050(0x1b1)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x10c3c7+'\x20'+(_0x3f4050(0x1aa)+_0x54f1d8['name']+'\x22.'));}export function createPipelineEnv(_0x3e86b9,_0x4511df,_0x8b0720=[]){const _0x13295b=a172_0x1ffb;return{'rawFlags':_0x4511df,'args':_0x8b0720,'resolveAppCode':()=>_0x3e86b9[_0x13295b(0x1b3)],'resolveCookie':()=>_0x3e86b9['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0xfa1afd(_0x4511df),'defaultFormat':_0x3e86b9[_0x13295b(0x1a9)],'defaultPageSize':_0x3e86b9['pageSize'],'defaultVerbose':_0x3e86b9[_0x13295b(0x199)],'apiDir':_0x3e86b9[_0x13295b(0x1b0)],'riskLevel':_0x3e86b9['riskLevel'],'selectedAppName':_0x3e86b9['explicitAppName'],'mergedCli':{'defaultApp':_0x3e86b9['defaultApp'],'currentApp':_0x3e86b9['currentApp'],'appCode':_0x3e86b9[_0x13295b(0x1b3)],'apps':_0x3e86b9[_0x13295b(0x1ab)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4d41d5=>PIPELINE_FLAG_NAMES[a172_0x3564fc(0x192)](_0x4d41d5[a172_0x3564fc(0x1a2)]))[a172_0x3564fc(0x18a)](({name:_0x5490d5,type:_0x2659c0,description:_0x43dd5f})=>({'name':_0x5490d5,'type':_0x2659c0,'description':_0x43dd5f})),'formatOutput':formatOutput,'getCommandLabel'(_0x56e0bb){const _0x3bc45f=a172_0x3564fc;return CLI_BIN_NAME+'\x20'+_0x56e0bb[_0x3bc45f(0x1b7)]+'\x20'+_0x56e0bb['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1af362){return CliErrors['validation'](_0x1af362);}},async 'prepare'(_0x4a2806,_0x3bdcf3,_0x1958b4,_0x238412){const _0x3c7f49=a172_0x3564fc,_0x572b38=_0x3bdcf3['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x4a2806,_0x1958b4,_0x572b38,_0x238412);let _0x44a317='';if(_0x4a2806['requiresAuth']!==![]){_0x44a317=_0x3bdcf3[_0x3c7f49(0x1a3)]();if(!_0x44a317)throw CliErrors[_0x3c7f49(0x1b4)]();const {setActiveCookie:_0x707903}=await import('../core/api-client.js');_0x707903(_0x44a317);}const _0x3e86c2=_0x3bdcf3[_0x3c7f49(0x1ae)]()??'';if(_0x4a2806[_0x3c7f49(0x183)]!==![]){assertEnvAppCodeNotIgnored(_0x3e86c2,resolveEnvAppCode(),hasExplicitAppCode(_0x1958b4,_0x3bdcf3[_0x3c7f49(0x19f)]));if(!_0x3e86c2)throw CliErrors[_0x3c7f49(0x18e)](_0x3c7f49(0x189)+CLI_BIN_NAME+_0x3c7f49(0x186));}return{'defaults':{'booleans':{'verbose':_0x3bdcf3[_0x3c7f49(0x18b)]},'numbers':{'pagesize':_0x3bdcf3['defaultPageSize']}},'extras':{'appCode':_0x3e86c2,'cookie':_0x44a317,'apiDomain':_0x3bdcf3[_0x3c7f49(0x187)](),'apiDir':_0x572b38,'selectedAppName':_0x3bdcf3[_0x3c7f49(0x196)],'mergedCli':_0x3bdcf3['mergedCli']}};},async 'confirmHighRisk'({env:_0x3e28a3,commandLabel:_0xc8a83c}){const _0x55ca10=a172_0x3564fc;if(_0x3e28a3[_0x55ca10(0x1a0)])throw CliErrors['validation'](_0x55ca10(0x1af)+_0xc8a83c+_0x55ca10(0x19d));await requireConfirmationPrompt({'lines':[_0x55ca10(0x190)+_0xc8a83c,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x293e3d=>CliErrors[_0x55ca10(0x188)](_0x293e3d)});},async 'finalize'(){const _0x196385=a172_0x3564fc,{clearActiveCookie:_0x131a93}=await import(_0x196385(0x1ac));_0x131a93();}};export async function runCommand(_0x317b11,_0x184436){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x317b11)?withUpdateNotice(_0x317b11):_0x317b11,_0x184436,runnerAdapter);}function shouldAttachUpdateNotice(_0x17e508){const _0x15f93b=a172_0x3564fc;if(_0x17e508[_0x15f93b(0x19c)]===![])return![];return![_0x15f93b(0x1ad),_0x15f93b(0x194),'doctor'][_0x15f93b(0x19a)](_0x17e508[_0x15f93b(0x1b7)]);}function withUpdateNotice(_0x34b7e5){return{..._0x34b7e5,async 'execute'(_0x189174){const _0x485b0d=a172_0x1ffb,_0xe7f59=shouldResolveUpdateNotice(_0x189174)?resolveLatestUpdateNotice()[_0x485b0d(0x18c)](()=>null):Promise[_0x485b0d(0x191)](null),_0x4edd07=await _0x34b7e5[_0x485b0d(0x1a5)](_0x189174);return attachUpdateNotice(_0x4edd07,await _0xe7f59);}};}function shouldResolveUpdateNotice(_0x12dea4){const _0x434484=a172_0x3564fc;return _0x12dea4[_0x434484(0x1a9)]===_0x434484(0x198)&&!_0x12dea4[_0x434484(0x1b6)];}function attachUpdateNotice(_0x1c943e,_0x133a5d){const _0x362c17=a172_0x3564fc;if(!_0x133a5d||!_0x1c943e||typeof _0x1c943e!=='object')return _0x1c943e;const _0x27678d=_0x1c943e,_0xa2e1b5=typeof _0x27678d[_0x362c17(0x1a4)]===_0x362c17(0x18f)&&_0x27678d[_0x362c17(0x1a4)]!==null?_0x27678d[_0x362c17(0x1a4)]:{};return{..._0x27678d,'_notice':{..._0xa2e1b5,'update':_0x133a5d}};}
1
+ function a172_0x516e(_0x32c7b8,_0x18b4eb){_0x32c7b8=_0x32c7b8-0x1bf;const _0x2b0679=a172_0x2b06();let _0x516e62=_0x2b0679[_0x32c7b8];return _0x516e62;}const a172_0x38c854=a172_0x516e;(function(_0x175a11,_0x571a3a){const _0x25ee10=a172_0x516e,_0x5951bf=_0x175a11();while(!![]){try{const _0x5b03d1=parseInt(_0x25ee10(0x1c8))/0x1+-parseInt(_0x25ee10(0x1de))/0x2+parseInt(_0x25ee10(0x1ee))/0x3+parseInt(_0x25ee10(0x1f4))/0x4*(parseInt(_0x25ee10(0x1e6))/0x5)+-parseInt(_0x25ee10(0x1c4))/0x6*(-parseInt(_0x25ee10(0x1f2))/0x7)+parseInt(_0x25ee10(0x1f6))/0x8*(parseInt(_0x25ee10(0x1ce))/0x9)+-parseInt(_0x25ee10(0x1d3))/0xa;if(_0x5b03d1===_0x571a3a)break;else _0x5951bf['push'](_0x5951bf['shift']());}catch(_0xbf94a6){_0x5951bf['push'](_0x5951bf['shift']());}}}(a172_0x2b06,0x9a66c));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a172_0x579dba}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2addcd){const _0x3a406a=a172_0x516e;return typeof _0x2addcd===_0x3a406a(0x1df)&&_0x2addcd[_0x3a406a(0x1ec)]()?_0x2addcd['trim']():undefined;}function resolveEnvAppCode(){const _0x55cffc=a172_0x516e,_0x54327a=stringFlag(process.env.RABETBASE_APPCODE);if(_0x54327a)return{'name':_0x55cffc(0x1cb),'value':_0x54327a};const _0x4045c4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x4045c4)return{'name':_0x55cffc(0x1f3),'value':_0x4045c4};return undefined;}function hasExplicitAppCode(_0x3c5ffd,_0x52f707){const _0x4ebbf1=a172_0x516e;return!!(stringFlag(_0x3c5ffd[_0x4ebbf1(0x1e5)])||stringFlag(_0x52f707[_0x4ebbf1(0x1e5)]));}function assertEnvAppCodeNotIgnored(_0x16b133,_0x11c7cd,_0x2d4ebf){const _0x45cb17=a172_0x516e;if(!_0x11c7cd||_0x2d4ebf||_0x16b133===_0x11c7cd[_0x45cb17(0x1d5)])return;const _0x2410ce=_0x16b133?_0x45cb17(0x1e1)+_0x16b133+'\x22.':_0x45cb17(0x1d9);throw CliErrors[_0x45cb17(0x1f1)](_0x11c7cd[_0x45cb17(0x1e0)]+'='+_0x11c7cd[_0x45cb17(0x1d5)]+_0x45cb17(0x1c9)+_0x2410ce+'\x20'+(_0x45cb17(0x1e9)+_0x11c7cd[_0x45cb17(0x1e0)]+'\x22.'));}export function createPipelineEnv(_0xf3813b,_0x591cab,_0x133723=[]){const _0x3e6f8f=a172_0x516e;return{'rawFlags':_0x591cab,'args':_0x133723,'resolveAppCode':()=>_0xf3813b[_0x3e6f8f(0x1da)],'resolveCookie':()=>_0xf3813b[_0x3e6f8f(0x1c0)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0x579dba(_0x591cab),'defaultFormat':_0xf3813b[_0x3e6f8f(0x1f5)],'defaultPageSize':_0xf3813b['pageSize'],'defaultVerbose':_0xf3813b['verbose'],'apiDir':_0xf3813b['apiDir'],'riskLevel':_0xf3813b['riskLevel'],'selectedAppName':_0xf3813b[_0x3e6f8f(0x1e8)],'mergedCli':{'defaultApp':_0xf3813b[_0x3e6f8f(0x1c6)],'currentApp':_0xf3813b[_0x3e6f8f(0x1c7)],'appCode':_0xf3813b[_0x3e6f8f(0x1da)],'apps':_0xf3813b[_0x3e6f8f(0x1db)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a172_0x38c854(0x1d7)](_0x5af23b=>PIPELINE_FLAG_NAMES['has'](_0x5af23b['name']))[a172_0x38c854(0x1ea)](({name:_0x3ce0a3,type:_0x337b18,description:_0x312457})=>({'name':_0x3ce0a3,'type':_0x337b18,'description':_0x312457})),'formatOutput':formatOutput,'getCommandLabel'(_0x19a62b){const _0x571183=a172_0x38c854;return CLI_BIN_NAME+'\x20'+_0x19a62b[_0x571183(0x1cc)]+'\x20'+_0x19a62b[_0x571183(0x1eb)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x580c75){return CliErrors['validation'](_0x580c75);}},async 'prepare'(_0x4dc7c5,_0x5c81d9,_0x2e3d37,_0x25a63e){const _0x1a4a21=a172_0x38c854,_0x2c8c7b=_0x5c81d9[_0x1a4a21(0x1d8)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4dc7c5,_0x2e3d37,_0x2c8c7b,_0x25a63e);let _0x46b044='';if(_0x4dc7c5[_0x1a4a21(0x1e3)]!==![]){_0x46b044=_0x5c81d9[_0x1a4a21(0x1c5)]();if(!_0x46b044)throw CliErrors[_0x1a4a21(0x1d1)]();const {setActiveCookie:_0x5af5fe}=await import('../core/api-client.js');_0x5af5fe(_0x46b044);}const _0x4d4c64=_0x5c81d9[_0x1a4a21(0x1bf)]()??'';if(_0x4dc7c5['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x4d4c64,resolveEnvAppCode(),hasExplicitAppCode(_0x2e3d37,_0x5c81d9['rawFlags']));if(!_0x4d4c64)throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x5c81d9['defaultVerbose']},'numbers':{'pagesize':_0x5c81d9['defaultPageSize']}},'extras':{'appCode':_0x4d4c64,'cookie':_0x46b044,'apiDomain':_0x5c81d9[_0x1a4a21(0x1f0)](),'apiDir':_0x2c8c7b,'selectedAppName':_0x5c81d9['selectedAppName'],'mergedCli':_0x5c81d9[_0x1a4a21(0x1c2)]}};},async 'confirmHighRisk'({env:_0x52f297,commandLabel:_0x422f62}){const _0x2f1118=a172_0x38c854;if(_0x52f297['isNonInteractive'])throw CliErrors['validation'](_0x2f1118(0x1d2)+_0x422f62+_0x2f1118(0x1cd));await requireConfirmationPrompt({'lines':[_0x2f1118(0x1d6)+_0x422f62,_0x2f1118(0x1cf)],'createCancelledError':_0x76913c=>CliErrors[_0x2f1118(0x1ef)](_0x76913c)});},async 'finalize'(){const _0x44e056=a172_0x38c854,{clearActiveCookie:_0x1123f1}=await import(_0x44e056(0x1e7));_0x1123f1();}};export async function runCommand(_0x149ffe,_0x3b480b){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x149ffe)?withUpdateNotice(_0x149ffe):_0x149ffe,_0x3b480b,runnerAdapter);}function shouldAttachUpdateNotice(_0x1a9c31){const _0x13a45b=a172_0x38c854;if(_0x1a9c31['hasFormat']===![])return![];return![_0x13a45b(0x1dd),_0x13a45b(0x1ca),_0x13a45b(0x1dc)][_0x13a45b(0x1e2)](_0x1a9c31[_0x13a45b(0x1cc)]);}function withUpdateNotice(_0x58ff7a){return{..._0x58ff7a,async 'execute'(_0x2b543b){const _0x42a783=a172_0x516e,_0x4dea2f=shouldResolveUpdateNotice(_0x2b543b)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x42a783(0x1c1)](null),_0x4d323e=await _0x58ff7a[_0x42a783(0x1c3)](_0x2b543b);return attachUpdateNotice(_0x4d323e,await _0x4dea2f);}};}function shouldResolveUpdateNotice(_0x34e937){const _0x41846a=a172_0x38c854;return _0x34e937['format']===_0x41846a(0x1d4)&&!_0x34e937[_0x41846a(0x1e4)];}function a172_0x2b06(){const _0x1705c4=['defaultApp','currentApp','286103YreQTU','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','schema','RABETBASE_APPCODE','service','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','9Iuhfed','\x20\x20\x20Continue?\x20[y/N]\x20','_notice','authRequired','High-risk\x20operation\x20`','21859220ekejIy','pretty','value','⚠\x20\x20High-risk\x20operation:\x20','filter','apiDir','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','appCode','apps','doctor','update','940556ztKpCr','string','name','Current\x20resolved\x20appcode\x20is\x20\x22','includes','requiresAuth','nonInteractive','appcode','5kBYZIr','../core/api-client.js','explicitAppName','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','map','command','trim','object','1379028VDnAbL','cancelled','resolveApiDomain','validation','7cuXKPt','LOVRABET_APPCODE','3396332wFleLd','format','8288376VedIvd','resolveAppCode','cookie','resolve','mergedCli','execute','3946314zKDotK','resolveCookie'];a172_0x2b06=function(){return _0x1705c4;};return a172_0x2b06();}function attachUpdateNotice(_0x37eaf3,_0x389006){const _0x11e908=a172_0x38c854;if(!_0x389006||!_0x37eaf3||typeof _0x37eaf3!==_0x11e908(0x1ed))return _0x37eaf3;const _0x13f0d5=_0x37eaf3,_0xaa9066=typeof _0x13f0d5[_0x11e908(0x1d0)]===_0x11e908(0x1ed)&&_0x13f0d5[_0x11e908(0x1d0)]!==null?_0x13f0d5[_0x11e908(0x1d0)]:{};return{..._0x13f0d5,'_notice':{..._0xaa9066,'update':_0x389006}};}
@@ -1 +1 @@
1
- (function(_0x4bebef,_0xe2af8a){const _0x281765=a173_0x1aba,_0x5e1284=_0x4bebef();while(!![]){try{const _0x5bf637=-parseInt(_0x281765(0x16a))/0x1+-parseInt(_0x281765(0x16d))/0x2+parseInt(_0x281765(0x164))/0x3+parseInt(_0x281765(0x16b))/0x4*(-parseInt(_0x281765(0x169))/0x5)+parseInt(_0x281765(0x16c))/0x6*(parseInt(_0x281765(0x165))/0x7)+parseInt(_0x281765(0x166))/0x8+parseInt(_0x281765(0x167))/0x9;if(_0x5bf637===_0xe2af8a)break;else _0x5e1284['push'](_0x5e1284['shift']());}catch(_0x322d6c){_0x5e1284['push'](_0x5e1284['shift']());}}}(a173_0x1b0e,0x9e521));import{buildSchemaPayload as a173_0x22dd98}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a173_0x1aba(_0x12c50b,_0x531d1d){_0x12c50b=_0x12c50b-0x164;const _0x1b0e26=a173_0x1b0e();let _0x1abaad=_0x1b0e26[_0x12c50b];return _0x1abaad;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x55b2c6=a173_0x1aba,{serviceRegistry:_0x4dbd3e,findDefinition:_0x3332c9}=await import(_0x55b2c6(0x168));return a173_0x22dd98({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4dbd3e,'buildAllFlags':buildAllFlags,'findDefinition':_0x3332c9});}function a173_0x1b0e(){const _0x3f9550=['2269868ZaZPZL','1624866AEUozK','2667wTLldm','6556048hEifbh','13355424RhvNgo','../commands/registry.js','15eKSqhr','508221aLTavq','1148876YoAtzQ','4854tuDrwU'];a173_0x1b0e=function(){return _0x3f9550;};return a173_0x1b0e();}
1
+ function a173_0x4aa8(){const _0x5eb2f3=['25965990oUthfA','2091708cpYAde','131eZovrK','7ldmacS','16034bTFDJr','70esuWbN','262380LfQYZh','7154154gJjWAi','127616GYigUN','3650499ShMUPT'];a173_0x4aa8=function(){return _0x5eb2f3;};return a173_0x4aa8();}(function(_0x578d45,_0x413d33){const _0x2ec3df=a173_0x26ba,_0x228d14=_0x578d45();while(!![]){try{const _0x486ce2=-parseInt(_0x2ec3df(0xb2))/0x1*(parseInt(_0x2ec3df(0xb4))/0x2)+-parseInt(_0x2ec3df(0xb1))/0x3+parseInt(_0x2ec3df(0xb6))/0x4*(-parseInt(_0x2ec3df(0xb5))/0x5)+parseInt(_0x2ec3df(0xb7))/0x6+-parseInt(_0x2ec3df(0xb3))/0x7*(-parseInt(_0x2ec3df(0xb8))/0x8)+-parseInt(_0x2ec3df(0xb9))/0x9+parseInt(_0x2ec3df(0xba))/0xa;if(_0x486ce2===_0x413d33)break;else _0x228d14['push'](_0x228d14['shift']());}catch(_0x246686){_0x228d14['push'](_0x228d14['shift']());}}}(a173_0x4aa8,0xb3142));function a173_0x26ba(_0x2029d0,_0x56c68b){_0x2029d0=_0x2029d0-0xb1;const _0x4aa8d7=a173_0x4aa8();let _0x26ba89=_0x4aa8d7[_0x2029d0];return _0x26ba89;}import{buildSchemaPayload as a173_0x13aded}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x2f896b,findDefinition:_0x1bb38e}=await import('../commands/registry.js');return a173_0x13aded({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2f896b,'buildAllFlags':buildAllFlags,'findDefinition':_0x1bb38e});}
@@ -1 +1 @@
1
- (function(_0x32ec8c,_0x2d06d4){var _0x205d72=a174_0x432a,_0x18ea65=_0x32ec8c();while(!![]){try{var _0x15dbac=parseInt(_0x205d72(0x1d2))/0x1+parseInt(_0x205d72(0x1ce))/0x2+parseInt(_0x205d72(0x1ca))/0x3*(parseInt(_0x205d72(0x1cd))/0x4)+-parseInt(_0x205d72(0x1cf))/0x5*(parseInt(_0x205d72(0x1c9))/0x6)+parseInt(_0x205d72(0x1d1))/0x7*(-parseInt(_0x205d72(0x1c8))/0x8)+-parseInt(_0x205d72(0x1cb))/0x9*(-parseInt(_0x205d72(0x1d0))/0xa)+parseInt(_0x205d72(0x1cc))/0xb;if(_0x15dbac===_0x2d06d4)break;else _0x18ea65['push'](_0x18ea65['shift']());}catch(_0x579017){_0x18ea65['push'](_0x18ea65['shift']());}}}(a174_0x20ff,0x46e58));function a174_0x20ff(){var _0x2d305c=['267012sfZqKG','1443736IPJTUU','632658kzCofs','6Pbpcqm','47943uJzWiz','4563559mgjJoO','495228QmSZed','65666RSsSvx','15APggGk','10KEiXKk','14jOeNVy'];a174_0x20ff=function(){return _0x2d305c;};return a174_0x20ff();}function a174_0x432a(_0xdcf915,_0x4d1b9d){_0xdcf915=_0xdcf915-0x1c8;var _0x20ffad=a174_0x20ff();var _0x432a8b=_0x20ffad[_0xdcf915];return _0x432a8b;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x5efb73,_0x275573){var _0x5404d8=a174_0x19f3,_0x50f3f2=_0x5efb73();while(!![]){try{var _0x299978=parseInt(_0x5404d8(0xbf))/0x1+-parseInt(_0x5404d8(0xb8))/0x2*(-parseInt(_0x5404d8(0xbb))/0x3)+-parseInt(_0x5404d8(0xc1))/0x4*(-parseInt(_0x5404d8(0xc0))/0x5)+parseInt(_0x5404d8(0xb9))/0x6*(parseInt(_0x5404d8(0xbe))/0x7)+parseInt(_0x5404d8(0xbc))/0x8+-parseInt(_0x5404d8(0xbd))/0x9*(parseInt(_0x5404d8(0xb7))/0xa)+-parseInt(_0x5404d8(0xba))/0xb;if(_0x299978===_0x275573)break;else _0x50f3f2['push'](_0x50f3f2['shift']());}catch(_0x2268c5){_0x50f3f2['push'](_0x50f3f2['shift']());}}}(a174_0x4a6d,0xc8664));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a174_0x19f3(_0x558128,_0x16a69a){_0x558128=_0x558128-0xb7;var _0x4a6d96=a174_0x4a6d();var _0x19f3be=_0x4a6d96[_0x558128];return _0x19f3be;}function a174_0x4a6d(){var _0x4989b6=['17124LLCCNM','46523378JNBofx','9kbnQfV','7120688LHlPRg','1449JNpeSk','3787mTBFIR','1175651WgPdRi','4435UxTKNT','6932xtUfri','89510sVsaCY','896282vdORpX'];a174_0x4a6d=function(){return _0x4989b6;};return a174_0x4a6d();}
@@ -1 +1 @@
1
- const a175_0xb6ce67=a175_0x27e6;function a175_0x4659(){const _0x4bd966=['80fff11','6556740sUySNU','1106670iMeORj','23225490jPcwns','v2.2.3-beta.1','4ABEvHJ','2.2.3-beta.2','1EgdHuu','2263794lEDzqN','3017529EfrFFy','7605752TSiWlm','2546816rMAugf'];a175_0x4659=function(){return _0x4bd966;};return a175_0x4659();}function a175_0x27e6(_0x533f21,_0x5e9c04){_0x533f21=_0x533f21-0x124;const _0x465978=a175_0x4659();let _0x27e6ed=_0x465978[_0x533f21];return _0x27e6ed;}(function(_0x125f34,_0x66ce4c){const _0x54f6fa=a175_0x27e6,_0x14c58e=_0x125f34();while(!![]){try{const _0x546841=parseInt(_0x54f6fa(0x12e))/0x1*(-parseInt(_0x54f6fa(0x12f))/0x2)+parseInt(_0x54f6fa(0x124))/0x3*(parseInt(_0x54f6fa(0x12c))/0x4)+parseInt(_0x54f6fa(0x129))/0x5+-parseInt(_0x54f6fa(0x128))/0x6+-parseInt(_0x54f6fa(0x125))/0x7+parseInt(_0x54f6fa(0x126))/0x8+parseInt(_0x54f6fa(0x12a))/0x9;if(_0x546841===_0x66ce4c)break;else _0x14c58e['push'](_0x14c58e['shift']());}catch(_0x139d53){_0x14c58e['push'](_0x14c58e['shift']());}}}(a175_0x4659,0xc6f44));export const VERSION=a175_0xb6ce67(0x12d);export const GIT_TAG=a175_0xb6ce67(0x12b);export const GIT_COMMIT=a175_0xb6ce67(0x127);export const BUILD_TIME='2026-06-16T09:33:46.569Z';
1
+ const a175_0x4a24ba=a175_0x25c7;(function(_0x19b894,_0x383820){const _0x23879f=a175_0x25c7,_0x212170=_0x19b894();while(!![]){try{const _0x99dad0=parseInt(_0x23879f(0xec))/0x1+parseInt(_0x23879f(0xf0))/0x2*(-parseInt(_0x23879f(0xee))/0x3)+parseInt(_0x23879f(0xea))/0x4+parseInt(_0x23879f(0xe9))/0x5+-parseInt(_0x23879f(0xed))/0x6+-parseInt(_0x23879f(0xf1))/0x7+parseInt(_0x23879f(0xe8))/0x8;if(_0x99dad0===_0x383820)break;else _0x212170['push'](_0x212170['shift']());}catch(_0x20d240){_0x212170['push'](_0x212170['shift']());}}}(a175_0xa07f,0x1edc2));export const VERSION=a175_0x4a24ba(0xeb);export const GIT_TAG=a175_0x4a24ba(0xef);export const GIT_COMMIT='c92e3b5';function a175_0xa07f(){const _0x3917fd=['2.2.3','150828dblbOU','58764aXAXtL','536226NGyUcB','v2.2.3-beta.2','2NcesdN','897421feTIhB','2026-06-16T10:25:43.500Z','8984YsKcSb','1174240RUFvwP','225368PbLtRk'];a175_0xa07f=function(){return _0x3917fd;};return a175_0xa07f();}function a175_0x25c7(_0x334fa7,_0x5e106c){_0x334fa7=_0x334fa7-0xe7;const _0xa07f95=a175_0xa07f();let _0x25c7be=_0xa07f95[_0x334fa7];return _0x25c7be;}export const BUILD_TIME=a175_0x4a24ba(0xe7);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x792567,_0x43bc6d){var _0x71e122=a176_0xdc41,_0x4eaf35=_0x792567();while(!![]){try{var _0xa31fe6=parseInt(_0x71e122(0x95))/0x1*(-parseInt(_0x71e122(0x91))/0x2)+-parseInt(_0x71e122(0x8d))/0x3+parseInt(_0x71e122(0x94))/0x4+-parseInt(_0x71e122(0x8e))/0x5+parseInt(_0x71e122(0x89))/0x6*(-parseInt(_0x71e122(0x93))/0x7)+parseInt(_0x71e122(0x8a))/0x8*(parseInt(_0x71e122(0x86))/0x9)+-parseInt(_0x71e122(0x88))/0xa*(-parseInt(_0x71e122(0x92))/0xb);if(_0xa31fe6===_0x43bc6d)break;else _0x4eaf35['push'](_0x4eaf35['shift']());}catch(_0x530fe7){_0x4eaf35['push'](_0x4eaf35['shift']());}}}(a176_0x5eb6,0x77e65));import a176_0x5d2b15 from'chalk';function a176_0xdc41(_0x29005f,_0x5c4b33){_0x29005f=_0x29005f-0x85;var _0x5eb651=a176_0x5eb6();var _0xdc4153=_0x5eb651[_0x29005f];return _0xdc4153;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a176_0x5eb6(){var _0x2d9b06=['388620Xtmkgl','\x20--help','\x20\x20Use\x20','18740ASRQjP','181489pBofcH','21sCzIrR','1245952UeYQUK','50zsZxjZ','\x20to\x20view\x20available\x20commands.','1953594opGmdc','green','1130iAQOxl','1706280crUPXv','16GVCZFV','log','bold','2158602IudVEA'];a176_0x5eb6=function(){return _0x2d9b06;};return a176_0x5eb6();}export function showHelp(){var _0x29afa4=a176_0xdc41;console['log'](),console[_0x29afa4(0x8b)](a176_0x5d2b15[_0x29afa4(0x87)][_0x29afa4(0x8c)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x29afa4(0x8b)](),console[_0x29afa4(0x8b)](_0x29afa4(0x90)+a176_0x5d2b15[_0x29afa4(0x87)]['bold'](CLI_BIN_NAME+_0x29afa4(0x8f))+_0x29afa4(0x85)),console[_0x29afa4(0x8b)]();}
1
+ function a176_0x23a6(_0x5d07b0,_0x46d50f){_0x5d07b0=_0x5d07b0-0xb5;var _0x40e7c2=a176_0x40e7();var _0x23a6b9=_0x40e7c2[_0x5d07b0];return _0x23a6b9;}(function(_0x319297,_0x476275){var _0x3c2179=a176_0x23a6,_0x310950=_0x319297();while(!![]){try{var _0x4366ca=parseInt(_0x3c2179(0xb7))/0x1*(-parseInt(_0x3c2179(0xc4))/0x2)+parseInt(_0x3c2179(0xbd))/0x3+-parseInt(_0x3c2179(0xc0))/0x4+-parseInt(_0x3c2179(0xc2))/0x5*(-parseInt(_0x3c2179(0xb8))/0x6)+-parseInt(_0x3c2179(0xbb))/0x7+parseInt(_0x3c2179(0xc3))/0x8+-parseInt(_0x3c2179(0xb6))/0x9*(parseInt(_0x3c2179(0xba))/0xa);if(_0x4366ca===_0x476275)break;else _0x310950['push'](_0x310950['shift']());}catch(_0x2c7331){_0x310950['push'](_0x310950['shift']());}}}(a176_0x40e7,0xc10a1));import a176_0x56578e from'chalk';function a176_0x40e7(){var _0x4a4cb6=['7276euEeXM','bold','37026JQgFqF','20onEkIA','90pCNmRg','green','2710ZzKAan','1431010FsLZTr','\x20\x20Use\x20','2767797PErMHJ','log','\x20to\x20view\x20available\x20commands.','1208844eDhDoi','\x20--help','108475pudMJG','9895680LfOvvO'];a176_0x40e7=function(){return _0x4a4cb6;};return a176_0x40e7();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3de82c=a176_0x23a6;console[_0x3de82c(0xbe)](),console[_0x3de82c(0xbe)](a176_0x56578e[_0x3de82c(0xb9)][_0x3de82c(0xb5)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3de82c(0xbe)](),console[_0x3de82c(0xbe)](_0x3de82c(0xbc)+a176_0x56578e[_0x3de82c(0xb9)]['bold'](CLI_BIN_NAME+_0x3de82c(0xc1))+_0x3de82c(0xbf)),console[_0x3de82c(0xbe)]();}
@@ -1 +1 @@
1
- (function(_0x332643,_0x558251){const _0x2ae117=a177_0x22f2,_0x248909=_0x332643();while(!![]){try{const _0x3277ea=parseInt(_0x2ae117(0x1cb))/0x1+-parseInt(_0x2ae117(0x1c6))/0x2*(-parseInt(_0x2ae117(0x1d6))/0x3)+-parseInt(_0x2ae117(0x1ce))/0x4*(-parseInt(_0x2ae117(0x1d5))/0x5)+-parseInt(_0x2ae117(0x1db))/0x6+parseInt(_0x2ae117(0x1e7))/0x7*(-parseInt(_0x2ae117(0x1e0))/0x8)+-parseInt(_0x2ae117(0x1cc))/0x9*(parseInt(_0x2ae117(0x1c7))/0xa)+parseInt(_0x2ae117(0x1d1))/0xb;if(_0x3277ea===_0x558251)break;else _0x248909['push'](_0x248909['shift']());}catch(_0x1fe76a){_0x248909['push'](_0x248909['shift']());}}}(a177_0x9956,0x73c0a));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(_0x49c807){const _0x2b3ea4=a177_0x22f2,_0x1bc38e=[];for(const [_0x424627,_0x4e427b]of Object[_0x2b3ea4(0x1e4)](_0x49c807)){if(_0x4e427b===!![]){const _0x5b6288=_0x424627[_0x2b3ea4(0x1e2)](/([A-Z])/g,_0x2b3ea4(0x1d2))[_0x2b3ea4(0x1e1)]();_0x1bc38e[_0x2b3ea4(0x1c8)](_0x5b6288);}}return _0x1bc38e;}export function parseDynamicFlags(){const _0x42fabd=a177_0x22f2,_0x110440=[];for(let _0xc0f4f3=0x3;_0xc0f4f3<process['argv'][_0x42fabd(0x1cf)];_0xc0f4f3++){const _0x445bb1=process[_0x42fabd(0x1d3)][_0xc0f4f3];if(_0x445bb1&&_0x445bb1[_0x42fabd(0x1d7)]('--')){const _0x31eb8e=_0x445bb1[_0x42fabd(0x1c9)](0x2);_0x31eb8e&&!_0x31eb8e[_0x42fabd(0x1e5)]('=')&&_0x110440[_0x42fabd(0x1c8)](_0x31eb8e);}}return _0x110440;}export function getAllProvidedFlags(_0x4401d6){const _0x32196f=a177_0x22f2,_0x7e108b=camelCaseFlagsToKebab(_0x4401d6),_0x1bd6e0=parseDynamicFlags(),_0xe770a7=new Set([..._0x7e108b,..._0x1bd6e0]);return Array[_0x32196f(0x1e9)](_0xe770a7);}export function normalizeLegacyBffSaveFlags(_0x5b4403){const _0x1a93c6=a177_0x22f2,_0x2576cc=new Set(_0x5b4403);return _0x2576cc['has']('dangerously-bff-save')&&_0x2576cc[_0x1a93c6(0x1d8)](_0x1a93c6(0x1cd)),Array['from'](_0x2576cc);}function a177_0x22f2(_0xcc6027,_0x1548c3){_0xcc6027=_0xcc6027-0x1c6;const _0x9956c=a177_0x9956();let _0x22f25e=_0x9956c[_0xcc6027];return _0x22f25e;}function a177_0x9956(){const _0xab0a1f=['add','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','4698882DIvNDa','exit','help','(empty)','不支持的命令:\x20','301064lCyWOM','toLowerCase','replace','error','entries','includes','skill','77EYIcyg','cwd','from','log','2HVDAuB','970TwKhsh','push','slice','\x20skill\x20--help\x0a\x20\x20','841307cCkmwM','58122LYokdc','enable-bff-save','4FWTWfD','length','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','7896526RUcBhC','-$1','argv','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','2574215GxBSlH','670926yWOluV','startsWith'];a177_0x9956=function(){return _0xab0a1f;};return a177_0x9956();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x3d143c,_0x42f496,_0x303e6f){const _0xde8a7=a177_0x22f2;logger['setLogPath'](process[_0xde8a7(0x1e8)]());if(_0x303e6f?.[_0xde8a7(0x1dd)]||_0x3d143c==='--help'){showHelp();return;}console[_0xde8a7(0x1e3)]('Error:\x20Unsupported\x20command:\x20'+(_0x3d143c||_0xde8a7(0x1de))),console[_0xde8a7(0x1ea)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0xde8a7(0x1d0)),console['log']('\x20\x20'+CLI_BIN_NAME+_0xde8a7(0x1d4)),console['log'](''),console[_0xde8a7(0x1ea)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0xde8a7(0x1e3)](_0xde8a7(0x1e6),_0xde8a7(0x1df)+_0x3d143c),process[_0xde8a7(0x1dc)](0x1);}function showHelp(){const _0x1de49e=a177_0x22f2;console[_0x1de49e(0x1ea)](_0x1de49e(0x1d9)+CLI_BIN_NAME+_0x1de49e(0x1ca)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1de49e(0x1da));}
1
+ (function(_0x12d620,_0x5f03d5){const _0x5a86d9=a177_0x40a8,_0x54e2a3=_0x12d620();while(!![]){try{const _0x18ee09=parseInt(_0x5a86d9(0x134))/0x1*(parseInt(_0x5a86d9(0x13a))/0x2)+parseInt(_0x5a86d9(0x143))/0x3+-parseInt(_0x5a86d9(0x14a))/0x4*(-parseInt(_0x5a86d9(0x145))/0x5)+-parseInt(_0x5a86d9(0x144))/0x6+-parseInt(_0x5a86d9(0x150))/0x7*(parseInt(_0x5a86d9(0x136))/0x8)+parseInt(_0x5a86d9(0x155))/0x9+-parseInt(_0x5a86d9(0x13b))/0xa*(-parseInt(_0x5a86d9(0x132))/0xb);if(_0x18ee09===_0x5f03d5)break;else _0x54e2a3['push'](_0x54e2a3['shift']());}catch(_0x51c2fa){_0x54e2a3['push'](_0x54e2a3['shift']());}}}(a177_0x556c,0xde18a));function a177_0x556c(){const _0x27bb31=['2782710fbfPRY','includes','7612jsfDqu','skill','3290EkpPxJ','log','82728wUbMCn','--help','replace','toLowerCase','242DIxlIq','4190jNEZkn','has','setLogPath','enable-bff-save','\x20skill\x20--help\x0a\x20\x20','startsWith','不支持的命令:\x20','\x0aAvailable\x20commands:','1974093FgGEYt','869412jOJBKH','30zduqDD','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','length','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','dangerously-bff-save','20100AzSSeF','error','Error:\x20Unsupported\x20command:\x20','-$1','push','(empty)','427AKhnfB','add','cwd','from','exit'];a177_0x556c=function(){return _0x27bb31;};return a177_0x556c();}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(_0x310c84){const _0x224c62=a177_0x40a8,_0x1a8647=[];for(const [_0x3ce91e,_0x4f7e0e]of Object['entries'](_0x310c84)){if(_0x4f7e0e===!![]){const _0x2c483c=_0x3ce91e[_0x224c62(0x138)](/([A-Z])/g,_0x224c62(0x14d))[_0x224c62(0x139)]();_0x1a8647[_0x224c62(0x14e)](_0x2c483c);}}return _0x1a8647;}export function parseDynamicFlags(){const _0x19690a=a177_0x40a8,_0x52b967=[];for(let _0x17cd38=0x3;_0x17cd38<process['argv'][_0x19690a(0x147)];_0x17cd38++){const _0x3b6884=process['argv'][_0x17cd38];if(_0x3b6884&&_0x3b6884[_0x19690a(0x140)]('--')){const _0x5d7fac=_0x3b6884['slice'](0x2);_0x5d7fac&&!_0x5d7fac[_0x19690a(0x131)]('=')&&_0x52b967[_0x19690a(0x14e)](_0x5d7fac);}}return _0x52b967;}export function getAllProvidedFlags(_0x572454){const _0x1b3de5=a177_0x40a8,_0x272c4f=camelCaseFlagsToKebab(_0x572454),_0x48e9=parseDynamicFlags(),_0x4c2b0e=new Set([..._0x272c4f,..._0x48e9]);return Array[_0x1b3de5(0x153)](_0x4c2b0e);}export function normalizeLegacyBffSaveFlags(_0x428743){const _0x855f9c=a177_0x40a8,_0x1ab67e=new Set(_0x428743);return _0x1ab67e[_0x855f9c(0x13c)](_0x855f9c(0x149))&&_0x1ab67e[_0x855f9c(0x151)](_0x855f9c(0x13e)),Array[_0x855f9c(0x153)](_0x1ab67e);}function a177_0x40a8(_0x28341a,_0x374d8d){_0x28341a=_0x28341a-0x131;const _0x556c8b=a177_0x556c();let _0x40a80d=_0x556c8b[_0x28341a];return _0x40a80d;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x13a765,_0x386774,_0x14440f){const _0x5d57a9=a177_0x40a8;logger[_0x5d57a9(0x13d)](process[_0x5d57a9(0x152)]());if(_0x14440f?.['help']||_0x13a765===_0x5d57a9(0x137)){showHelp();return;}console['error'](_0x5d57a9(0x14c)+(_0x13a765||_0x5d57a9(0x14f))),console[_0x5d57a9(0x135)](_0x5d57a9(0x142)),console[_0x5d57a9(0x135)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x5d57a9(0x135)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x5d57a9(0x135)](''),console['log']('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5d57a9(0x14b)](_0x5d57a9(0x133),_0x5d57a9(0x141)+_0x13a765),process[_0x5d57a9(0x154)](0x1);}function showHelp(){const _0x4ac213=a177_0x40a8;console['log'](_0x4ac213(0x148)+CLI_BIN_NAME+_0x4ac213(0x13f)+CLI_BIN_NAME+_0x4ac213(0x146)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
@@ -1 +1 @@
1
- function a178_0x147a(_0x4152a4,_0x355dc8){_0x4152a4=_0x4152a4-0xaf;const _0x4c1323=a178_0x4c13();let _0x147af9=_0x4c1323[_0x4152a4];return _0x147af9;}const a178_0x1adb39=a178_0x147a;(function(_0x21976c,_0x54f9ab){const _0x2f108e=a178_0x147a,_0x2c4be3=_0x21976c();while(!![]){try{const _0x301b55=-parseInt(_0x2f108e(0xb8))/0x1+parseInt(_0x2f108e(0xc1))/0x2+parseInt(_0x2f108e(0xb9))/0x3*(parseInt(_0x2f108e(0xc2))/0x4)+parseInt(_0x2f108e(0xc6))/0x5*(-parseInt(_0x2f108e(0xaf))/0x6)+parseInt(_0x2f108e(0xbd))/0x7*(-parseInt(_0x2f108e(0xc5))/0x8)+-parseInt(_0x2f108e(0xcc))/0x9+parseInt(_0x2f108e(0xb6))/0xa;if(_0x301b55===_0x54f9ab)break;else _0x2c4be3['push'](_0x2c4be3['shift']());}catch(_0x21d976){_0x2c4be3['push'](_0x2c4be3['shift']());}}}(a178_0x4c13,0x99686));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=a178_0x1adb39(0xb2);export const NPX_SKILLS_SUBCOMMAND_ADD=a178_0x1adb39(0xc8);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a178_0x1adb39(0xc0);export const LEGACY_RABETBASE_SKILL_SOURCE=a178_0x1adb39(0xb7);export const DEFAULT_RABETBASE_SKILL_NAME=a178_0x1adb39(0xc9);export function buildNpxSkillsAddArgv(_0x44bb0c){const _0x29544b=a178_0x1adb39,_0x50e635=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x44bb0c&&_0x50e635[_0x29544b(0xbf)](NPX_SKILLS_FLAG_SKILL,_0x44bb0c),_0x50e635;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a178_0x1adb39(0xc7),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a178_0x1adb39(0xc7),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a178_0x1adb39(0xb0)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x296e5b,_0x4e2343){const _0x436155=a178_0x1adb39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1439ca=_0x4e2343?.['stdio']??'inherit',_0x5b514=resolveNpmBin('npx'),_0x9c6c2=buildNpxSkillsAddArgv(_0x4e2343?.[_0x436155(0xcb)]),_0x504127=[_0x436155(0xc7),..._0x9c6c2][_0x436155(0xb0)]('\x20');console[_0x436155(0xc3)]('*\x20'+_0x504127);const _0x3a60c8=spawnSync(_0x5b514,_0x9c6c2,{'cwd':_0x296e5b,'stdio':_0x1439ca,'env':process.env,'shell':![]}),_0x4a733e=_0x3a60c8[_0x436155(0xbb)];if(_0x4a733e===0x0)return{'ok':!![],'status':0x0};let _0x346aac=_0x436155(0xbe)+(_0x4a733e??_0x436155(0xcd));if(_0x1439ca==='pipe'){const _0x28abe9=_0x3a60c8['stderr']?_0x3a60c8[_0x436155(0xc4)][_0x436155(0xca)]()['trim']():'',_0x33a379=_0x3a60c8[_0x436155(0xbc)]?_0x3a60c8[_0x436155(0xbc)][_0x436155(0xca)]()[_0x436155(0xb5)]():'';if(_0x28abe9)_0x346aac=_0x28abe9;else{if(_0x33a379)_0x346aac=_0x33a379;}}return{'ok':![],'status':_0x4a733e??null,'error':_0x346aac};}export function runNpxSkillsRemove(_0x492356,_0xabe40,_0x5c1e2c=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4dcd49=a178_0x1adb39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x10e5d4=_0xabe40?.[_0x4dcd49(0xb4)]??_0x4dcd49(0xb3),_0x2a8b27=resolveNpmBin(_0x4dcd49(0xc7)),_0x4fe96c=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x5c1e2c,NPX_SKILLS_FLAG_SKILL,_0xabe40?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0xabe40?.[_0x4dcd49(0xba)]?['-y']:[]],_0x1f4f15=[_0x2a8b27,..._0x4fe96c][_0x4dcd49(0xb0)]('\x20');console['log']('*\x20'+_0x1f4f15);const _0x8876e5=spawnSync(_0x2a8b27,_0x4fe96c,{'cwd':_0x492356,'stdio':_0x10e5d4,'env':process.env,'shell':![]}),_0x443eb3=_0x8876e5[_0x4dcd49(0xbb)];if(_0x443eb3===0x0)return{'ok':!![],'status':0x0};let _0x30d78c=_0x4dcd49(0xbe)+(_0x443eb3??_0x4dcd49(0xcd));if(_0x10e5d4===_0x4dcd49(0xb1)){const _0x5539cd=_0x8876e5[_0x4dcd49(0xc4)]?_0x8876e5[_0x4dcd49(0xc4)][_0x4dcd49(0xca)]()[_0x4dcd49(0xb5)]():'',_0x56ccc2=_0x8876e5[_0x4dcd49(0xbc)]?_0x8876e5['stdout'][_0x4dcd49(0xca)]()[_0x4dcd49(0xb5)]():'';if(_0x5539cd)_0x30d78c=_0x5539cd;else{if(_0x56ccc2)_0x30d78c=_0x56ccc2;}}return{'ok':![],'status':_0x443eb3??null,'error':_0x30d78c};}function a178_0x4c13(){const _0x11d9a9=['4820040TGvIHp','unknown','1508898PbDLtZ','join','pipe','skills','inherit','stdio','trim','14552910BLcMGG','lovrabet/lovrabet-skill','491849MZpPkg','1437FOvehi','yes','status','stdout','263809XcmFGa','exit\x20','push','lovrabet/rabetbase','1296748EssjPC','1404rXiLYV','log','stderr','24vOKNhs','10mBmdij','npx','add','Lovrabet','toString','skill'];a178_0x4c13=function(){return _0x11d9a9;};return a178_0x4c13();}export function runNpxSkillsAddGlobal(_0x1adabe,_0x2d7eb1,_0x15a4f7){const _0x3e5953=a178_0x1adb39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1df8d0=_0x15a4f7?.['stdio']??_0x3e5953(0xb3),_0xcc6b48=resolveNpmBin('npx'),_0x569e38=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2d7eb1,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2ee946=[_0x3e5953(0xc7),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2d7eb1,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3e5953(0xb0)]('\x20');console[_0x3e5953(0xc3)]('*\x20'+_0x2ee946);const _0x33dd8d=spawnSync(_0xcc6b48,_0x569e38,{'cwd':_0x1adabe,'stdio':_0x1df8d0,'env':process.env,'shell':![]}),_0x33403e=_0x33dd8d[_0x3e5953(0xbb)];if(_0x33403e===0x0)return{'ok':!![],'status':0x0};let _0x279c06=_0x3e5953(0xbe)+(_0x33403e??_0x3e5953(0xcd));if(_0x1df8d0===_0x3e5953(0xb1)){const _0x495789=_0x33dd8d[_0x3e5953(0xc4)]?_0x33dd8d[_0x3e5953(0xc4)][_0x3e5953(0xca)]()[_0x3e5953(0xb5)]():'',_0x2694d8=_0x33dd8d[_0x3e5953(0xbc)]?_0x33dd8d[_0x3e5953(0xbc)][_0x3e5953(0xca)]()['trim']():'';if(_0x495789)_0x279c06=_0x495789;else{if(_0x2694d8)_0x279c06=_0x2694d8;}}return{'ok':![],'status':_0x33403e??null,'error':_0x279c06};}
1
+ const a178_0xf57d47=a178_0x2efe;(function(_0x4ab807,_0x53bc1e){const _0x5f0770=a178_0x2efe,_0x42189b=_0x4ab807();while(!![]){try{const _0x5e345e=-parseInt(_0x5f0770(0x1db))/0x1+-parseInt(_0x5f0770(0x1dd))/0x2+-parseInt(_0x5f0770(0x1e2))/0x3+parseInt(_0x5f0770(0x1d2))/0x4*(-parseInt(_0x5f0770(0x1da))/0x5)+-parseInt(_0x5f0770(0x1d1))/0x6*(-parseInt(_0x5f0770(0x1d9))/0x7)+-parseInt(_0x5f0770(0x1d4))/0x8*(parseInt(_0x5f0770(0x1d3))/0x9)+-parseInt(_0x5f0770(0x1df))/0xa*(-parseInt(_0x5f0770(0x1e3))/0xb);if(_0x5e345e===_0x53bc1e)break;else _0x42189b['push'](_0x42189b['shift']());}catch(_0x172d3c){_0x42189b['push'](_0x42189b['shift']());}}}(a178_0x47ec,0x593b4));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';function a178_0x47ec(){const _0x3c59ff=['join','lovrabet/rabetbase','57774vZZpZl','76tLQgqA','153rUrCHV','48992ElrEwq','status','--skill','stderr','log','385BJsFIZ','2065YvJOSW','33677NAngHq','lovrabet/lovrabet-skill','878720CUzKOG','unknown','271060NCCHPo','inherit','toString','1095555iqXEWn','319lpUkso','pipe','remove','add','exit\x20','stdio','push','trim','npx','skill','stdout'];a178_0x47ec=function(){return _0x3c59ff;};return a178_0x47ec();}export const NPX_SKILLS_SUBCOMMAND_ADD=a178_0xf57d47(0x1e6);export const NPX_SKILLS_FLAG_SKILL=a178_0xf57d47(0x1d6);export const RABETBASE_SKILL_SOURCE=a178_0xf57d47(0x1d0);export const LEGACY_RABETBASE_SKILL_SOURCE=a178_0xf57d47(0x1dc);function a178_0x2efe(_0xa2534c,_0x15dc10){_0xa2534c=_0xa2534c-0x1ca;const _0x47ec36=a178_0x47ec();let _0x2efe92=_0x47ec36[_0xa2534c];return _0x2efe92;}export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x1a8ac1){const _0x27be84=a178_0xf57d47,_0x319ee2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1a8ac1&&_0x319ee2[_0x27be84(0x1ca)](NPX_SKILLS_FLAG_SKILL,_0x1a8ac1),_0x319ee2;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a178_0xf57d47(0x1cc),...buildNpxSkillsAddArgv()][a178_0xf57d47(0x1cf)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a178_0xf57d47(0x1cc),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a178_0xf57d47(0x1cf)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x288823,_0x450a00){const _0x20267c=a178_0xf57d47;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20bbf9=_0x450a00?.[_0x20267c(0x1e8)]??'inherit',_0x2328f5=resolveNpmBin(_0x20267c(0x1cc)),_0x4cda05=buildNpxSkillsAddArgv(_0x450a00?.[_0x20267c(0x1cd)]),_0x27f546=[_0x20267c(0x1cc),..._0x4cda05][_0x20267c(0x1cf)]('\x20');console['log']('*\x20'+_0x27f546);const _0x542134=spawnSync(_0x2328f5,_0x4cda05,{'cwd':_0x288823,'stdio':_0x20bbf9,'env':process.env,'shell':![]}),_0x3c262f=_0x542134['status'];if(_0x3c262f===0x0)return{'ok':!![],'status':0x0};let _0x21fe92=_0x20267c(0x1e7)+(_0x3c262f??_0x20267c(0x1de));if(_0x20bbf9==='pipe'){const _0x5c5bee=_0x542134['stderr']?_0x542134['stderr']['toString']()[_0x20267c(0x1cb)]():'',_0x170f8e=_0x542134[_0x20267c(0x1ce)]?_0x542134['stdout'][_0x20267c(0x1e1)]()[_0x20267c(0x1cb)]():'';if(_0x5c5bee)_0x21fe92=_0x5c5bee;else{if(_0x170f8e)_0x21fe92=_0x170f8e;}}return{'ok':![],'status':_0x3c262f??null,'error':_0x21fe92};}export function runNpxSkillsRemove(_0x3d6047,_0x244e2d,_0xe8e1d6=LEGACY_RABETBASE_SKILL_SOURCE){const _0x68b055=a178_0xf57d47;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1c47e4=_0x244e2d?.[_0x68b055(0x1e8)]??_0x68b055(0x1e0),_0x2f17ba=resolveNpmBin(_0x68b055(0x1cc)),_0x10ffbc=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x68b055(0x1e5),_0xe8e1d6,NPX_SKILLS_FLAG_SKILL,_0x244e2d?.[_0x68b055(0x1cd)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x244e2d?.['yes']?['-y']:[]],_0x2738c0=[_0x2f17ba,..._0x10ffbc][_0x68b055(0x1cf)]('\x20');console[_0x68b055(0x1d8)]('*\x20'+_0x2738c0);const _0x1c482d=spawnSync(_0x2f17ba,_0x10ffbc,{'cwd':_0x3d6047,'stdio':_0x1c47e4,'env':process.env,'shell':![]}),_0x2ed8e4=_0x1c482d[_0x68b055(0x1d5)];if(_0x2ed8e4===0x0)return{'ok':!![],'status':0x0};let _0x3ed036=_0x68b055(0x1e7)+(_0x2ed8e4??_0x68b055(0x1de));if(_0x1c47e4===_0x68b055(0x1e4)){const _0x2214be=_0x1c482d[_0x68b055(0x1d7)]?_0x1c482d[_0x68b055(0x1d7)]['toString']()[_0x68b055(0x1cb)]():'',_0x29c9ca=_0x1c482d[_0x68b055(0x1ce)]?_0x1c482d[_0x68b055(0x1ce)][_0x68b055(0x1e1)]()[_0x68b055(0x1cb)]():'';if(_0x2214be)_0x3ed036=_0x2214be;else{if(_0x29c9ca)_0x3ed036=_0x29c9ca;}}return{'ok':![],'status':_0x2ed8e4??null,'error':_0x3ed036};}export function runNpxSkillsAddGlobal(_0x23fb8a,_0x298b29,_0x314790){const _0x350240=a178_0xf57d47;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3977e1=_0x314790?.[_0x350240(0x1e8)]??_0x350240(0x1e0),_0x1e99cf=resolveNpmBin(_0x350240(0x1cc)),_0x292913=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x298b29,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x411b64=[_0x350240(0x1cc),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x298b29,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x350240(0x1cf)]('\x20');console[_0x350240(0x1d8)]('*\x20'+_0x411b64);const _0x58566d=spawnSync(_0x1e99cf,_0x292913,{'cwd':_0x23fb8a,'stdio':_0x3977e1,'env':process.env,'shell':![]}),_0x1b4ec7=_0x58566d[_0x350240(0x1d5)];if(_0x1b4ec7===0x0)return{'ok':!![],'status':0x0};let _0x222a09='exit\x20'+(_0x1b4ec7??_0x350240(0x1de));if(_0x3977e1==='pipe'){const _0x16ddd7=_0x58566d[_0x350240(0x1d7)]?_0x58566d['stderr']['toString']()[_0x350240(0x1cb)]():'',_0x5afccc=_0x58566d[_0x350240(0x1ce)]?_0x58566d[_0x350240(0x1ce)][_0x350240(0x1e1)]()[_0x350240(0x1cb)]():'';if(_0x16ddd7)_0x222a09=_0x16ddd7;else{if(_0x5afccc)_0x222a09=_0x5afccc;}}return{'ok':![],'status':_0x1b4ec7??null,'error':_0x222a09};}
@@ -1 +1 @@
1
- (function(_0x56041d,_0x102867){const _0x10264f=a179_0x2cb3,_0x145cbb=_0x56041d();while(!![]){try{const _0x5894f4=parseInt(_0x10264f(0x1e1))/0x1+parseInt(_0x10264f(0x1ee))/0x2*(parseInt(_0x10264f(0x1e3))/0x3)+parseInt(_0x10264f(0x1de))/0x4+parseInt(_0x10264f(0x1ed))/0x5*(parseInt(_0x10264f(0x1dd))/0x6)+parseInt(_0x10264f(0x1eb))/0x7+parseInt(_0x10264f(0x1e4))/0x8*(-parseInt(_0x10264f(0x1e5))/0x9)+-parseInt(_0x10264f(0x1e0))/0xa*(parseInt(_0x10264f(0x1e7))/0xb);if(_0x5894f4===_0x102867)break;else _0x145cbb['push'](_0x145cbb['shift']());}catch(_0x581fb9){_0x145cbb['push'](_0x145cbb['shift']());}}}(a179_0xba87,0xad93c));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(_0xb8bda9){const _0x3391c6=a179_0x2cb3;return SENSITIVE_PATTERNS[_0x3391c6(0x1e9)](_0x1f2650=>_0x1f2650[_0x3391c6(0x1ec)](_0xb8bda9));}function sanitizeFlags(_0xed29cf){const _0xa6079a={};for(const [_0x123382,_0x5a6031]of Object['entries'](_0xed29cf)){isSensitiveKey(_0x123382)?_0xa6079a[_0x123382]=_0x5a6031!=null&&_0x5a6031!==''?'[REDACTED]':_0x5a6031:_0xa6079a[_0x123382]=_0x5a6031;}return _0xa6079a;}function a179_0x2cb3(_0x57f9d6,_0x3d4577){_0x57f9d6=_0x57f9d6-0x1dc;const _0xba87fd=a179_0xba87();let _0x2cb366=_0xba87fd[_0x57f9d6];return _0x2cb366;}export async function reportCommandTrace(_0x5aefa0){const _0x55c7e3=a179_0x2cb3;try{const _0x44e150=sanitizeFlags(_0x5aefa0[_0x55c7e3(0x1ef)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5aefa0[_0x55c7e3(0x1dc)],'command.name':_0x5aefa0[_0x55c7e3(0x1e2)],'command.flags':JSON[_0x55c7e3(0x1df)](_0x44e150),..._0x5aefa0[_0x55c7e3(0x1e8)]!=null?{'command.duration_ms':_0x5aefa0[_0x55c7e3(0x1e8)]}:{},..._0x5aefa0[_0x55c7e3(0x1ea)]?{'command.error':_0x5aefa0[_0x55c7e3(0x1ea)]instanceof Error?_0x5aefa0[_0x55c7e3(0x1ea)][_0x55c7e3(0x1e6)]:String(_0x5aefa0['error'])}:{}}});}catch{}}function a179_0xba87(){const _0x1cf788=['command','279765xCbAru','8iREYuJ','8895681AlAaoq','message','11RPjEZw','durationMs','some','error','9897741bOCxeg','test','4147195mGZuUo','6FTcBBv','flags','service','6RAiUlY','885932uZQBEK','stringify','19705160NNTokl','925247FPiuSq'];a179_0xba87=function(){return _0x1cf788;};return a179_0xba87();}
1
+ (function(_0x48032d,_0x22f347){const _0x110e61=a179_0x3951,_0x37b0ee=_0x48032d();while(!![]){try{const _0x1f97f7=-parseInt(_0x110e61(0x1af))/0x1*(parseInt(_0x110e61(0x1ab))/0x2)+-parseInt(_0x110e61(0x1a3))/0x3+parseInt(_0x110e61(0x1a7))/0x4+-parseInt(_0x110e61(0x19f))/0x5*(-parseInt(_0x110e61(0x1ac))/0x6)+-parseInt(_0x110e61(0x1a0))/0x7*(parseInt(_0x110e61(0x1aa))/0x8)+parseInt(_0x110e61(0x1ae))/0x9+parseInt(_0x110e61(0x19c))/0xa;if(_0x1f97f7===_0x22f347)break;else _0x37b0ee['push'](_0x37b0ee['shift']());}catch(_0x1eac5a){_0x37b0ee['push'](_0x37b0ee['shift']());}}}(a179_0x3542,0xf366a));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(_0x1864fb){const _0x18bb50=a179_0x3951;return SENSITIVE_PATTERNS[_0x18bb50(0x1a5)](_0x306e92=>_0x306e92[_0x18bb50(0x1a8)](_0x1864fb));}function sanitizeFlags(_0x529f67){const _0x5b9a82=a179_0x3951,_0x44bb5e={};for(const [_0x287ec5,_0x3a41e7]of Object[_0x5b9a82(0x19d)](_0x529f67)){isSensitiveKey(_0x287ec5)?_0x44bb5e[_0x287ec5]=_0x3a41e7!=null&&_0x3a41e7!==''?_0x5b9a82(0x1a4):_0x3a41e7:_0x44bb5e[_0x287ec5]=_0x3a41e7;}return _0x44bb5e;}function a179_0x3542(){const _0x188d62=['durationMs','6366240XITtDn','19896jxsarq','rabetbase.command','10820500jQReCZ','entries','stringify','3790wIFXfK','7omxQnt','command','service','1675581OFaSHb','[REDACTED]','some','flags','195780yzkuni','test','error','1220672symkMc','136TMMHmr','9678KCyCCn'];a179_0x3542=function(){return _0x188d62;};return a179_0x3542();}function a179_0x3951(_0x39c032,_0x23cb95){_0x39c032=_0x39c032-0x19c;const _0x3542a4=a179_0x3542();let _0x39518f=_0x3542a4[_0x39c032];return _0x39518f;}export async function reportCommandTrace(_0xca6858){const _0x129468=a179_0x3951;try{const _0x44a10b=sanitizeFlags(_0xca6858[_0x129468(0x1a6)]);await sendCliTraceLog({'spanName':_0x129468(0x1b0),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xca6858[_0x129468(0x1a2)],'command.name':_0xca6858[_0x129468(0x1a1)],'command.flags':JSON[_0x129468(0x19e)](_0x44a10b),..._0xca6858[_0x129468(0x1ad)]!=null?{'command.duration_ms':_0xca6858['durationMs']}:{},..._0xca6858['error']?{'command.error':_0xca6858[_0x129468(0x1a9)]instanceof Error?_0xca6858[_0x129468(0x1a9)]['message']:String(_0xca6858[_0x129468(0x1a9)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x2720ac,_0x3f907f){var _0x185a02=a180_0x2b53,_0x199e11=_0x2720ac();while(!![]){try{var _0x5d61ad=parseInt(_0x185a02(0x154))/0x1*(-parseInt(_0x185a02(0x155))/0x2)+-parseInt(_0x185a02(0x156))/0x3*(parseInt(_0x185a02(0x153))/0x4)+-parseInt(_0x185a02(0x14a))/0x5*(-parseInt(_0x185a02(0x150))/0x6)+-parseInt(_0x185a02(0x152))/0x7*(-parseInt(_0x185a02(0x151))/0x8)+parseInt(_0x185a02(0x14e))/0x9*(-parseInt(_0x185a02(0x14b))/0xa)+parseInt(_0x185a02(0x157))/0xb*(-parseInt(_0x185a02(0x14c))/0xc)+parseInt(_0x185a02(0x158))/0xd;if(_0x5d61ad===_0x3f907f)break;else _0x199e11['push'](_0x199e11['shift']());}catch(_0x510c24){_0x199e11['push'](_0x199e11['shift']());}}}(a180_0x26a6,0x5e6b8));function a180_0x26a6(){var _0x52efbb=['4293711NiSVVq','cli.help','6YoQWVT','16ZdPhFJ','568981yqAKtn','580zVayIE','233KULJen','5498FMuyPU','5967NpJUjb','66Apiruh','18882370TPYTUd','service','3827905TsiVBI','10PJrKOo','1175784Xaumpq','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a180_0x26a6=function(){return _0x52efbb;};return a180_0x26a6();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a180_0x2b53(_0x405f1c,_0x166042){_0x405f1c=_0x405f1c-0x14a;var _0x26a6a5=a180_0x26a6();var _0x2b5339=_0x26a6a5[_0x405f1c];return _0x2b5339;}export async function reportCliHelpTrace(_0x4918b8,_0x497154){var _0x254718=a180_0x2b53;try{await sendCliTraceLog({'spanName':_0x254718(0x14f),'logData':{'rabetbase.help.kind':_0x4918b8,..._0x497154?.[_0x254718(0x159)]&&{'rabetbase.help.service':_0x497154['service']}}});}catch(_0x29754a){console['error'](_0x254718(0x14d),_0x29754a);}}
1
+ (function(_0xc8432,_0x107233){var _0x42e433=a180_0x25d6,_0x20e751=_0xc8432();while(!![]){try{var _0x27b290=parseInt(_0x42e433(0x80))/0x1*(parseInt(_0x42e433(0x79))/0x2)+-parseInt(_0x42e433(0x75))/0x3*(parseInt(_0x42e433(0x74))/0x4)+parseInt(_0x42e433(0x7c))/0x5*(parseInt(_0x42e433(0x7f))/0x6)+-parseInt(_0x42e433(0x76))/0x7+-parseInt(_0x42e433(0x7e))/0x8+-parseInt(_0x42e433(0x7a))/0x9+parseInt(_0x42e433(0x7d))/0xa*(parseInt(_0x42e433(0x77))/0xb);if(_0x27b290===_0x107233)break;else _0x20e751['push'](_0x20e751['shift']());}catch(_0x2c404b){_0x20e751['push'](_0x20e751['shift']());}}}(a180_0x441f,0x945c7));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x40f3e8,_0x42150d){var _0x34b8fb=a180_0x25d6;try{await sendCliTraceLog({'spanName':_0x34b8fb(0x78),'logData':{'rabetbase.help.kind':_0x40f3e8,..._0x42150d?.[_0x34b8fb(0x7b)]&&{'rabetbase.help.service':_0x42150d[_0x34b8fb(0x7b)]}}});}catch(_0x3c8bc8){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x3c8bc8);}}function a180_0x25d6(_0x2ab59b,_0x2d7ecb){_0x2ab59b=_0x2ab59b-0x74;var _0x441f4a=a180_0x441f();var _0x25d675=_0x441f4a[_0x2ab59b];return _0x25d675;}function a180_0x441f(){var _0x3c7b5d=['cli.help','15874jMqkOu','10132731tnhuQl','service','25FweHBJ','590BSHwEc','1396696WcWWVI','406542nhSGsA','10DFbaEc','161924eXkWFw','87PZeIrp','4379739qENbjm','613316XSbAHL'];a180_0x441f=function(){return _0x3c7b5d;};return a180_0x441f();}
@@ -1 +1 @@
1
- (function(_0x48b319,_0x25b79e){const _0x6a9d63=a181_0x5061,_0x204956=_0x48b319();while(!![]){try{const _0x58d6ed=parseInt(_0x6a9d63(0x111))/0x1*(parseInt(_0x6a9d63(0x103))/0x2)+parseInt(_0x6a9d63(0x110))/0x3*(-parseInt(_0x6a9d63(0x105))/0x4)+-parseInt(_0x6a9d63(0x10c))/0x5+-parseInt(_0x6a9d63(0x10f))/0x6*(-parseInt(_0x6a9d63(0x104))/0x7)+parseInt(_0x6a9d63(0x112))/0x8+-parseInt(_0x6a9d63(0x10b))/0x9+-parseInt(_0x6a9d63(0x10e))/0xa;if(_0x58d6ed===_0x25b79e)break;else _0x204956['push'](_0x204956['shift']());}catch(_0xdce46){_0x204956['push'](_0x204956['shift']());}}}(a181_0x52e0,0x421e2));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a181_0x52e0(){const _0x321d98=['tenant','user','daily','email','1180125sylCJs','41440PulZUm','tenant_code','2033570UsWivd','1421340EOLoOk','211398cPAAbY','209394BgWYTx','2825680LqfObj','production','2wiFDFL','14YxDYac','24wstDPG','unknown'];a181_0x52e0=function(){return _0x321d98;};return a181_0x52e0();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a181_0x5061(_0x49cfa5,_0x48ac6b){_0x49cfa5=_0x49cfa5-0x103;const _0x52e055=a181_0x52e0();let _0x506111=_0x52e055[_0x49cfa5];return _0x506111;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3e615b=a181_0x5061,_0x3409d1=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3531a4=_0x3409d1?.[_0x3e615b(0x108)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3e615b(0x106)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3e615b(0x109):_0x3e615b(0x113))}),setUserContext({'id':_0x3531a4?.['id'],'username':_0x3531a4?.['username'],'nickname':_0x3531a4?.['nickname'],'email':_0x3531a4?.[_0x3e615b(0x10a)],'tenantCode':_0x3531a4?.[_0x3e615b(0x107)][_0x3e615b(0x10d)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3409d1;}
1
+ (function(_0x41d7e8,_0x5afb52){const _0x455c75=a181_0x5d4b,_0x4ced22=_0x41d7e8();while(!![]){try{const _0x5df523=parseInt(_0x455c75(0x12a))/0x1*(parseInt(_0x455c75(0x126))/0x2)+-parseInt(_0x455c75(0x12e))/0x3+-parseInt(_0x455c75(0x12b))/0x4+parseInt(_0x455c75(0x133))/0x5*(-parseInt(_0x455c75(0x131))/0x6)+parseInt(_0x455c75(0x128))/0x7*(parseInt(_0x455c75(0x12c))/0x8)+-parseInt(_0x455c75(0x132))/0x9+parseInt(_0x455c75(0x127))/0xa;if(_0x5df523===_0x5afb52)break;else _0x4ced22['push'](_0x4ced22['shift']());}catch(_0x27633f){_0x4ced22['push'](_0x4ced22['shift']());}}}(a181_0x5595,0x7aa62));function a181_0x5595(){const _0x1b862f=['606ESzXdy','6109290nTUAWt','34070qhdnvn','unknown','tenant','598614fIPFFP','14072780YeWrgo','1029YNghNe','username','3OLlmGE','3184196uPofrm','44328HWeiXW','tenant_code','1362849mRPrFE','nickname','production'];a181_0x5595=function(){return _0x1b862f;};return a181_0x5595();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a181_0x5d4b(_0x2dca96,_0x394b67){_0x2dca96=_0x2dca96-0x125;const _0x55959c=a181_0x5595();let _0x5d4b7d=_0x55959c[_0x2dca96];return _0x5d4b7d;}export async function ensureCliOtelTraceConfig(){const _0x2f6cd7=a181_0x5d4b,_0x46b735=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x8a9282=_0x46b735?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2f6cd7(0x134)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x2f6cd7(0x130))}),setUserContext({'id':_0x8a9282?.['id'],'username':_0x8a9282?.[_0x2f6cd7(0x129)],'nickname':_0x8a9282?.[_0x2f6cd7(0x12f)],'email':_0x8a9282?.['email'],'tenantCode':_0x8a9282?.[_0x2f6cd7(0x125)][_0x2f6cd7(0x12d)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x46b735;}
@@ -1 +1 @@
1
- (function(_0x1b38c0,_0x338ea0){const _0x28e240=a182_0x2c39,_0x2e28cd=_0x1b38c0();while(!![]){try{const _0x2af427=parseInt(_0x28e240(0x15b))/0x1*(parseInt(_0x28e240(0x15f))/0x2)+-parseInt(_0x28e240(0x165))/0x3*(-parseInt(_0x28e240(0x167))/0x4)+-parseInt(_0x28e240(0x166))/0x5*(parseInt(_0x28e240(0x162))/0x6)+parseInt(_0x28e240(0x15c))/0x7+parseInt(_0x28e240(0x163))/0x8+parseInt(_0x28e240(0x161))/0x9*(-parseInt(_0x28e240(0x15d))/0xa)+parseInt(_0x28e240(0x159))/0xb;if(_0x2af427===_0x338ea0)break;else _0x2e28cd['push'](_0x2e28cd['shift']());}catch(_0x24fe3e){_0x2e28cd['push'](_0x2e28cd['shift']());}}}(a182_0x3884,0x9301f));function a182_0x2c39(_0x3e4d99,_0x2359ca){_0x3e4d99=_0x3e4d99-0x159;const _0x38845a=a182_0x3884();let _0x2c3920=_0x38845a[_0x3e4d99];return _0x2c3920;}import{shutdownTraces}from'@lovrabet/otel-logger';function a182_0x3884(){const _0x540a88=['SIGINT','1006KZgaUh','once','8578863SROtdk','126fiOqAu','502872DQqIvG','exit','93192wLLucq','181745BaWyiv','72NYbEos','6188424SVyIIF','beforeExit','919Wtbfed','4702789YLzIse','10CsJFIu'];a182_0x3884=function(){return _0x540a88;};return a182_0x3884();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x191715=a182_0x2c39;process[_0x191715(0x160)](_0x191715(0x15a),()=>{void flushOtelNodeIfUsed();});const _0x56167f=()=>{const _0x3f3bd8=_0x191715;void flushOtelNodeIfUsed()['then'](()=>process[_0x3f3bd8(0x164)](0x0));};process['once'](_0x191715(0x15e),_0x56167f),process['once']('SIGTERM',_0x56167f);}export async function exitWithOtelShutdown(_0x1ea5f3){const _0x3abc65=a182_0x2c39;await flushOtelNodeIfUsed(),process[_0x3abc65(0x164)](_0x1ea5f3);}
1
+ (function(_0x4f749a,_0x36e108){const _0x4ae8ee=a182_0x78ac,_0x3f8d38=_0x4f749a();while(!![]){try{const _0x2565c0=parseInt(_0x4ae8ee(0xc6))/0x1+-parseInt(_0x4ae8ee(0xc9))/0x2*(-parseInt(_0x4ae8ee(0xcb))/0x3)+-parseInt(_0x4ae8ee(0xc3))/0x4+parseInt(_0x4ae8ee(0xbf))/0x5+-parseInt(_0x4ae8ee(0xc5))/0x6+-parseInt(_0x4ae8ee(0xc8))/0x7+parseInt(_0x4ae8ee(0xc2))/0x8*(parseInt(_0x4ae8ee(0xca))/0x9);if(_0x2565c0===_0x36e108)break;else _0x3f8d38['push'](_0x3f8d38['shift']());}catch(_0x3236a7){_0x3f8d38['push'](_0x3f8d38['shift']());}}}(a182_0x8ab0,0xaaef8));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 _0x1359c6=a182_0x78ac;process[_0x1359c6(0xc1)](_0x1359c6(0xc7),()=>{void flushOtelNodeIfUsed();});const _0x5499d7=()=>{const _0x48e1af=_0x1359c6;void flushOtelNodeIfUsed()[_0x48e1af(0xc4)](()=>process['exit'](0x0));};process[_0x1359c6(0xc1)](_0x1359c6(0xc0),_0x5499d7),process[_0x1359c6(0xc1)](_0x1359c6(0xcc),_0x5499d7);}function a182_0x8ab0(){const _0x2a62a5=['SIGINT','once','9287624mLRXwj','5557500lQlhCk','then','1454052KTcACo','814406mZclpQ','beforeExit','9579584sCmJPV','11324LcjzXP','9eOKHsd','189EebkoV','SIGTERM','exit','6841580XvUFcI'];a182_0x8ab0=function(){return _0x2a62a5;};return a182_0x8ab0();}function a182_0x78ac(_0x5bceaf,_0x340b6c){_0x5bceaf=_0x5bceaf-0xbf;const _0x8ab0dd=a182_0x8ab0();let _0x78ac6d=_0x8ab0dd[_0x5bceaf];return _0x78ac6d;}export async function exitWithOtelShutdown(_0x15b36b){const _0x3c4a8d=a182_0x78ac;await flushOtelNodeIfUsed(),process[_0x3c4a8d(0xcd)](_0x15b36b);}
@@ -1 +1 @@
1
- (function(_0x356c02,_0x1097fe){const _0x41d324=a183_0x7743,_0x404531=_0x356c02();while(!![]){try{const _0x5e96dc=parseInt(_0x41d324(0x7e))/0x1*(parseInt(_0x41d324(0x72))/0x2)+parseInt(_0x41d324(0x7a))/0x3+-parseInt(_0x41d324(0x73))/0x4+parseInt(_0x41d324(0x71))/0x5+parseInt(_0x41d324(0x78))/0x6*(parseInt(_0x41d324(0x7c))/0x7)+-parseInt(_0x41d324(0x74))/0x8*(parseInt(_0x41d324(0x75))/0x9)+-parseInt(_0x41d324(0x70))/0xa;if(_0x5e96dc===_0x1097fe)break;else _0x404531['push'](_0x404531['shift']());}catch(_0x374a3e){_0x404531['push'](_0x404531['shift']());}}}(a183_0x4041,0x2f7f2));function a183_0x7743(_0x5ab6cc,_0xd8f522){_0x5ab6cc=_0x5ab6cc-0x70;const _0x404132=a183_0x4041();let _0x774303=_0x404132[_0x5ab6cc];return _0x774303;}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='rabetbase-cli';function a183_0x4041(){const _0x3dd70e=['9314170lMYHcs','1907110Lphlrz','7138BoNGmO','124760KUPlMw','16FHdYvx','171081EHgTLa','logData','version','6qssiha','manual','860679NKJjUF','spanName','1664369FEfMzI','traceparent','81rcFXfT'];a183_0x4041=function(){return _0x3dd70e;};return a183_0x4041();}export async function sendCliTraceLog(_0x36d0f3){const _0x5983c3=a183_0x7743;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x36d0f3['traceName']??DEFAULT_TRACE_NAME,'version':_0x36d0f3[_0x5983c3(0x77)]??getCliVersion(),'spanName':_0x36d0f3[_0x5983c3(0x7b)],'eventType':_0x5983c3(0x79),'logData':_0x36d0f3[_0x5983c3(0x76)],..._0x36d0f3[_0x5983c3(0x7d)]&&{'traceparent':_0x36d0f3['traceparent']}});}
1
+ (function(_0x3bc008,_0x2650c9){const _0x45e9ad=a183_0x54dc,_0x10d4ed=_0x3bc008();while(!![]){try{const _0x441ffa=parseInt(_0x45e9ad(0x1ea))/0x1*(parseInt(_0x45e9ad(0x1f3))/0x2)+-parseInt(_0x45e9ad(0x1ee))/0x3*(-parseInt(_0x45e9ad(0x1ef))/0x4)+parseInt(_0x45e9ad(0x1f0))/0x5*(parseInt(_0x45e9ad(0x1f4))/0x6)+parseInt(_0x45e9ad(0x1e8))/0x7*(parseInt(_0x45e9ad(0x1ed))/0x8)+-parseInt(_0x45e9ad(0x1ec))/0x9+parseInt(_0x45e9ad(0x1e6))/0xa*(parseInt(_0x45e9ad(0x1eb))/0xb)+-parseInt(_0x45e9ad(0x1f5))/0xc;if(_0x441ffa===_0x2650c9)break;else _0x10d4ed['push'](_0x10d4ed['shift']());}catch(_0x1bafbd){_0x10d4ed['push'](_0x10d4ed['shift']());}}}(a183_0x29d5,0xbb622));import{sendTraceLog}from'@lovrabet/otel-logger';function a183_0x54dc(_0x44876e,_0x513bf2){_0x44876e=_0x44876e-0x1e5;const _0x29d5f3=a183_0x29d5();let _0x54dc40=_0x29d5f3[_0x44876e];return _0x54dc40;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a183_0x29d5(){const _0xac5e9e=['2238183LQCLsy','428432lsEaJb','3FlBUeW','4268116FdiBWB','1471335AVRpNX','version','logData','6RePZtm','24upIHnq','55567092ueSVDc','traceName','6243610QfmVuC','traceparent','119hSYSSw','spanName','414521BsxZdi','22wQYnmy'];a183_0x29d5=function(){return _0xac5e9e;};return a183_0x29d5();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5a67b3){const _0x20c31c=a183_0x54dc;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5a67b3[_0x20c31c(0x1e5)]??DEFAULT_TRACE_NAME,'version':_0x5a67b3[_0x20c31c(0x1f1)]??getCliVersion(),'spanName':_0x5a67b3[_0x20c31c(0x1e9)],'eventType':'manual','logData':_0x5a67b3[_0x20c31c(0x1f2)],..._0x5a67b3[_0x20c31c(0x1e7)]&&{'traceparent':_0x5a67b3['traceparent']}});}