@lovrabet/rabetbase-cli 2.2.0-beta.1 → 2.2.0

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 (204) 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/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- function a157_0x49e5(_0x40a64a,_0x46441b){_0x40a64a=_0x40a64a-0xb5;const _0x1eb09c=a157_0x1eb0();let _0x49e5aa=_0x1eb09c[_0x40a64a];return _0x49e5aa;}(function(_0x5e263c,_0x1f07e8){const _0x5760b2=a157_0x49e5,_0x540840=_0x5e263c();while(!![]){try{const _0x4ed356=parseInt(_0x5760b2(0xc1))/0x1*(parseInt(_0x5760b2(0xc7))/0x2)+-parseInt(_0x5760b2(0xb7))/0x3+parseInt(_0x5760b2(0xc2))/0x4+-parseInt(_0x5760b2(0xcb))/0x5+parseInt(_0x5760b2(0xbd))/0x6+-parseInt(_0x5760b2(0xbb))/0x7*(parseInt(_0x5760b2(0xb5))/0x8)+parseInt(_0x5760b2(0xcd))/0x9*(parseInt(_0x5760b2(0xc9))/0xa);if(_0x4ed356===_0x1f07e8)break;else _0x540840['push'](_0x540840['shift']());}catch(_0x4a3ab9){_0x540840['push'](_0x540840['shift']());}}}(a157_0x1eb0,0x688e5));function a157_0x1eb0(){const _0x4b89fb=['split','.sql','33848BXwcVW','isDirectory','1145907PfkxVP','test','sqlRootDir','sql','1043kZUHjM','toLowerCase','4874142kbSaFu','dbName','slice','dbId','47iRTrCR','1518752dVbFMd','sqlCode','length','isFile','filter','29362exMDik','push','1061260lfGAqA','mode','2737645EZRuTw','name','9eKxvCo','mybatisXml','.xml','replace','sqlName'];a157_0x1eb0=function(){return _0x4b89fb;};return a157_0x1eb0();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x24ee74){const _0x37d740=a157_0x49e5;if(_0x24ee74===_0x37d740(0xd3))return _0x37d740(0xba);if(_0x24ee74===_0x37d740(0xcf))return _0x37d740(0xce);return undefined;}async function scanSqlFilesRecursively(_0xcf09d4,_0x2e450f){const _0x1a912d=a157_0x49e5,_0x387b79=[];try{const _0x533558=await readdir(_0xcf09d4,{'withFileTypes':!![]});for(const _0x29489b of _0x533558){const _0x5a7cb7=join(_0xcf09d4,_0x29489b[_0x1a912d(0xcc)]);if(_0x29489b[_0x1a912d(0xb6)]()){_0x387b79[_0x1a912d(0xc8)](...await scanSqlFilesRecursively(_0x5a7cb7,_0x2e450f));continue;}if(!_0x29489b[_0x1a912d(0xc5)]())continue;const _0x145a3e=extname(_0x29489b[_0x1a912d(0xcc)])[_0x1a912d(0xbc)](),_0x250dcf=extensionToMode(_0x145a3e);if(!_0x250dcf)continue;const _0x4a9b42=relative(_0x2e450f,_0x5a7cb7)[_0x1a912d(0xd0)](/\\/g,'/'),_0x3fa08e=_0x4a9b42[_0x1a912d(0xd2)]('/')[_0x1a912d(0xc6)](Boolean),_0x7c1a06=parseSqlPath(_0x3fa08e,_0x29489b[_0x1a912d(0xcc)],_0x145a3e);if(!_0x7c1a06)continue;_0x387b79[_0x1a912d(0xc8)]({'sqlCode':_0x7c1a06[_0x1a912d(0xc3)],'sqlName':_0x7c1a06[_0x1a912d(0xd1)],'dbDirectory':_0x3fa08e[0x0],'filePath':_0x5a7cb7,'relativePath':_0x4a9b42,'lockKey':_0x7c1a06[_0x1a912d(0xc3)],'mode':_0x250dcf});}}catch(_0xa06e08){if(_0xa06e08['code']!=='ENOENT')throw _0xa06e08;}return _0x387b79;}export async function scanLocalSqlQueries(_0x3a09cb){return scanSqlFilesRecursively(_0x3a09cb['sqlRootDir'],_0x3a09cb['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x372f9e,_0x29a86b,_0x3bad3d){const _0x574b4a=a157_0x49e5,_0x2a8ce4=_0x3bad3d?.['path']||(_0x3bad3d?.['sqlName']||_0x3bad3d?.[_0x574b4a(0xbe)]?buildSqlRelativePath(_0x29a86b,_0x3bad3d?.[_0x574b4a(0xd1)],_0x3bad3d?.['dbName'],_0x3bad3d?.[_0x574b4a(0xca)]||_0x574b4a(0xba),_0x3bad3d?.[_0x574b4a(0xc0)]):buildDefaultSqlFileName(_0x29a86b,_0x3bad3d?.['mode']||'sql'));return join(_0x372f9e[_0x574b4a(0xb9)],_0x2a8ce4);}export async function directoryExists(_0x124c3d){try{const _0x481dbc=await stat(_0x124c3d);return _0x481dbc['isDirectory']();}catch{return![];}}function parseSqlPath(_0x1bc33a,_0x4bda22,_0x480b3f){const _0x30ae74=a157_0x49e5,_0x1e17dd=_0x4bda22['slice'](0x0,-_0x480b3f[_0x30ae74(0xc4)]);if(_0x1bc33a[_0x30ae74(0xc4)]<0x2)return null;const _0x21884b=_0x1e17dd['indexOf']('_');if(_0x21884b<=0x0||_0x21884b>=_0x1e17dd[_0x30ae74(0xc4)]-0x1)return null;const _0x2a6da5=_0x1e17dd[_0x30ae74(0xbf)](0x0,_0x21884b);if(!isLikelySqlCode(_0x2a6da5))return null;return{'sqlCode':_0x2a6da5,'sqlName':_0x1e17dd[_0x30ae74(0xbf)](_0x21884b+0x1)};}function isLikelySqlCode(_0x582097){const _0x245121=a157_0x49e5;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x245121(0xb8)](_0x582097);}
1
+ (function(_0x5e5d92,_0x3ddb9f){const _0x51f5ef=a157_0x11ea,_0xb99477=_0x5e5d92();while(!![]){try{const _0x23450b=-parseInt(_0x51f5ef(0x1c3))/0x1*(parseInt(_0x51f5ef(0x1cd))/0x2)+parseInt(_0x51f5ef(0x1db))/0x3*(-parseInt(_0x51f5ef(0x1d5))/0x4)+-parseInt(_0x51f5ef(0x1d3))/0x5+parseInt(_0x51f5ef(0x1d0))/0x6+-parseInt(_0x51f5ef(0x1d4))/0x7+-parseInt(_0x51f5ef(0x1c6))/0x8*(parseInt(_0x51f5ef(0x1e0))/0x9)+parseInt(_0x51f5ef(0x1de))/0xa;if(_0x23450b===_0x3ddb9f)break;else _0xb99477['push'](_0xb99477['shift']());}catch(_0x7468a4){_0xb99477['push'](_0xb99477['shift']());}}}(a157_0x4687,0x9f90b));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x25dd3d){const _0x53de12=a157_0x11ea;if(_0x25dd3d==='.sql')return _0x53de12(0x1ca);if(_0x25dd3d==='.xml')return _0x53de12(0x1dc);return undefined;}async function scanSqlFilesRecursively(_0x483d40,_0x38ecb8){const _0x41ce65=a157_0x11ea,_0x11ca20=[];try{const _0x1d9975=await readdir(_0x483d40,{'withFileTypes':!![]});for(const _0x2f5d79 of _0x1d9975){const _0x4f1912=join(_0x483d40,_0x2f5d79[_0x41ce65(0x1c5)]);if(_0x2f5d79[_0x41ce65(0x1c4)]()){_0x11ca20[_0x41ce65(0x1d7)](...await scanSqlFilesRecursively(_0x4f1912,_0x38ecb8));continue;}if(!_0x2f5d79['isFile']())continue;const _0x1c92be=extname(_0x2f5d79[_0x41ce65(0x1c5)])[_0x41ce65(0x1ce)](),_0x569fb8=extensionToMode(_0x1c92be);if(!_0x569fb8)continue;const _0x3f7294=relative(_0x38ecb8,_0x4f1912)[_0x41ce65(0x1dd)](/\\/g,'/'),_0x1882c6=_0x3f7294[_0x41ce65(0x1cb)]('/')['filter'](Boolean),_0x767e86=parseSqlPath(_0x1882c6,_0x2f5d79[_0x41ce65(0x1c5)],_0x1c92be);if(!_0x767e86)continue;_0x11ca20[_0x41ce65(0x1d7)]({'sqlCode':_0x767e86[_0x41ce65(0x1df)],'sqlName':_0x767e86[_0x41ce65(0x1d8)],'dbDirectory':_0x1882c6[0x0],'filePath':_0x4f1912,'relativePath':_0x3f7294,'lockKey':_0x767e86[_0x41ce65(0x1df)],'mode':_0x569fb8});}}catch(_0x1640d5){if(_0x1640d5[_0x41ce65(0x1da)]!=='ENOENT')throw _0x1640d5;}return _0x11ca20;}export async function scanLocalSqlQueries(_0x124542){const _0x5181f2=a157_0x11ea;return scanSqlFilesRecursively(_0x124542[_0x5181f2(0x1cf)],_0x124542[_0x5181f2(0x1cf)]);}function a157_0x4687(){const _0x3155b2=['dbId','code','341433HiXDjk','mybatisXml','replace','43951280SABLum','sqlCode','36HeaUUy','24511rPjiAj','isDirectory','name','2591392CMeGXN','slice','test','mode','sql','split','indexOf','18YgnZHm','toLowerCase','sqlRootDir','553002uZOpRC','length','dbName','4695020rpTfQr','8852242QLMtGg','4dWdBJL','path','push','sqlName'];a157_0x4687=function(){return _0x3155b2;};return a157_0x4687();}export function resolveLocalSqlFilePath(_0x470b0a,_0x560dce,_0x33f800){const _0x4ecbd3=a157_0x11ea,_0x49fb6b=_0x33f800?.[_0x4ecbd3(0x1d6)]||(_0x33f800?.[_0x4ecbd3(0x1d8)]||_0x33f800?.[_0x4ecbd3(0x1d2)]?buildSqlRelativePath(_0x560dce,_0x33f800?.[_0x4ecbd3(0x1d8)],_0x33f800?.[_0x4ecbd3(0x1d2)],_0x33f800?.['mode']||'sql',_0x33f800?.[_0x4ecbd3(0x1d9)]):buildDefaultSqlFileName(_0x560dce,_0x33f800?.[_0x4ecbd3(0x1c9)]||'sql'));return join(_0x470b0a[_0x4ecbd3(0x1cf)],_0x49fb6b);}function a157_0x11ea(_0x54637f,_0xa0d07e){_0x54637f=_0x54637f-0x1c3;const _0x468722=a157_0x4687();let _0x11ea43=_0x468722[_0x54637f];return _0x11ea43;}export async function directoryExists(_0x13dbc6){const _0x3bfd32=a157_0x11ea;try{const _0x247f83=await stat(_0x13dbc6);return _0x247f83[_0x3bfd32(0x1c4)]();}catch{return![];}}function parseSqlPath(_0x45fb63,_0x38bb0c,_0x4bfa74){const _0x3532e5=a157_0x11ea,_0x31eeb3=_0x38bb0c['slice'](0x0,-_0x4bfa74[_0x3532e5(0x1d1)]);if(_0x45fb63[_0x3532e5(0x1d1)]<0x2)return null;const _0x39275b=_0x31eeb3[_0x3532e5(0x1cc)]('_');if(_0x39275b<=0x0||_0x39275b>=_0x31eeb3[_0x3532e5(0x1d1)]-0x1)return null;const _0x28b3da=_0x31eeb3[_0x3532e5(0x1c7)](0x0,_0x39275b);if(!isLikelySqlCode(_0x28b3da))return null;return{'sqlCode':_0x28b3da,'sqlName':_0x31eeb3['slice'](_0x39275b+0x1)};}function isLikelySqlCode(_0x19121e){const _0x2a418c=a157_0x11ea;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x2a418c(0x1c8)](_0x19121e);}
@@ -1 +1 @@
1
- (function(_0x34e847,_0x272f3f){const _0x13f7d3=a158_0x30c5,_0x351678=_0x34e847();while(!![]){try{const _0x5b467d=-parseInt(_0x13f7d3(0x111))/0x1*(-parseInt(_0x13f7d3(0x103))/0x2)+-parseInt(_0x13f7d3(0x10f))/0x3*(-parseInt(_0x13f7d3(0x107))/0x4)+parseInt(_0x13f7d3(0x10c))/0x5*(parseInt(_0x13f7d3(0x106))/0x6)+parseInt(_0x13f7d3(0x10a))/0x7*(parseInt(_0x13f7d3(0x101))/0x8)+-parseInt(_0x13f7d3(0x10b))/0x9+parseInt(_0x13f7d3(0x108))/0xa*(-parseInt(_0x13f7d3(0x110))/0xb)+-parseInt(_0x13f7d3(0x10e))/0xc;if(_0x5b467d===_0x272f3f)break;else _0x351678['push'](_0x351678['shift']());}catch(_0x1ec25c){_0x351678['push'](_0x351678['shift']());}}}(a158_0x2a0a,0x20326));import{readFile}from'node:fs/promises';import a158_0x52a1fa from'node:crypto';function a158_0x2a0a(){const _0x5c0c9c=['149374SPXFqs','update','md5','1312764VCCiRl','4QYfZXL','10LwdUjf','hex','7jdStyJ','28683TmokEf','5SgSCdn','utf8','2947152zqHKCs','600045rWVCDq','2450723DveSeJ','1PidOgt','digest','879664kjbUpc','createHash'];a158_0x2a0a=function(){return _0x5c0c9c;};return a158_0x2a0a();}export function computeSqlContentHash(_0x247db3){const _0x11b200=a158_0x30c5;return a158_0x52a1fa[_0x11b200(0x102)](_0x11b200(0x105))[_0x11b200(0x104)](_0x247db3)[_0x11b200(0x112)](_0x11b200(0x109));}function a158_0x30c5(_0x38ac79,_0x4a6ee2){_0x38ac79=_0x38ac79-0x101;const _0x2a0ab3=a158_0x2a0a();let _0x30c522=_0x2a0ab3[_0x38ac79];return _0x30c522;}export async function computeSqlFileHash(_0x28e3e4){const _0x5f535f=a158_0x30c5,_0x2190d4=await readFile(_0x28e3e4,_0x5f535f(0x10d));return computeSqlContentHash(_0x2190d4);}
1
+ function a158_0xdc25(){const _0x4b3889=['945434nEuCCQ','hex','384834gsfVhI','md5','1833166XYhTFK','64bvJVbd','23522970oMAMfe','9YysMGv','digest','3977928vtSsGi','update','25nEAOvn','154772pQfcmF','3049545HlHBaO'];a158_0xdc25=function(){return _0x4b3889;};return a158_0xdc25();}function a158_0x1f8a(_0x1466e3,_0x706d84){_0x1466e3=_0x1466e3-0x178;const _0xdc256c=a158_0xdc25();let _0x1f8a2a=_0xdc256c[_0x1466e3];return _0x1f8a2a;}(function(_0x3588c4,_0x227f83){const _0x2fa78e=a158_0x1f8a,_0x553163=_0x3588c4();while(!![]){try{const _0x26da09=parseInt(_0x2fa78e(0x185))/0x1+parseInt(_0x2fa78e(0x179))/0x2+parseInt(_0x2fa78e(0x182))/0x3+parseInt(_0x2fa78e(0x181))/0x4*(parseInt(_0x2fa78e(0x180))/0x5)+-parseInt(_0x2fa78e(0x17e))/0x6+-parseInt(_0x2fa78e(0x183))/0x7*(-parseInt(_0x2fa78e(0x17a))/0x8)+-parseInt(_0x2fa78e(0x17c))/0x9*(parseInt(_0x2fa78e(0x17b))/0xa);if(_0x26da09===_0x227f83)break;else _0x553163['push'](_0x553163['shift']());}catch(_0x9f30b1){_0x553163['push'](_0x553163['shift']());}}}(a158_0xdc25,0x8cc60));import{readFile}from'node:fs/promises';import a158_0x26ed6a from'node:crypto';export function computeSqlContentHash(_0x471e42){const _0xf9cb42=a158_0x1f8a;return a158_0x26ed6a['createHash'](_0xf9cb42(0x178))[_0xf9cb42(0x17f)](_0x471e42)[_0xf9cb42(0x17d)](_0xf9cb42(0x184));}export async function computeSqlFileHash(_0x10dbd9){const _0x1e769f=await readFile(_0x10dbd9,'utf8');return computeSqlContentHash(_0x1e769f);}
@@ -1 +1 @@
1
- (function(_0x17e704,_0xf7fe3b){const _0x2e3046=a159_0x3d82,_0x1e6497=_0x17e704();while(!![]){try{const _0x274859=-parseInt(_0x2e3046(0x19f))/0x1+parseInt(_0x2e3046(0x1ae))/0x2*(parseInt(_0x2e3046(0x19d))/0x3)+parseInt(_0x2e3046(0x1a9))/0x4+parseInt(_0x2e3046(0x19e))/0x5+-parseInt(_0x2e3046(0x1a1))/0x6*(parseInt(_0x2e3046(0x1a7))/0x7)+-parseInt(_0x2e3046(0x1ab))/0x8*(parseInt(_0x2e3046(0x1ad))/0x9)+parseInt(_0x2e3046(0x1a5))/0xa*(parseInt(_0x2e3046(0x1a8))/0xb);if(_0x274859===_0xf7fe3b)break;else _0x1e6497['push'](_0x1e6497['shift']());}catch(_0x401539){_0x1e6497['push'](_0x1e6497['shift']());}}}(a159_0x2b70,0x42563));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0x2b70(){const _0xaf3df=['Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','17610QRcKnS','lastSync','81970HfHaFR','2596zlhgXl','345568CVdQvD','stringify','17928wVJUox','apps','657MkCizM','280954zAJbyt','\x22.\x20','utf8','sqlRoot','6vJcvEC','1644565DPaQkz','477477WwmmsH','sqls','102bBpQAG',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'];a159_0x2b70=function(){return _0xaf3df;};return a159_0x2b70();}export function ensureSqlLockScope(_0x8ed11f,_0x510c17,_0x46b64a,_0x16eea8){const _0x24ed65=a159_0x3d82,_0x22f145=_0x8ed11f??createEmptySqlLock();let _0x1a3bb0=_0x22f145[_0x24ed65(0x1ac)][_0x510c17];if(!_0x1a3bb0)return _0x1a3bb0={'sqlRoot':_0x46b64a,'lastSync':'','sqls':{}},_0x22f145[_0x24ed65(0x1ac)][_0x510c17]=_0x1a3bb0,{'lockData':_0x22f145,'appLock':_0x1a3bb0};if(!_0x1a3bb0[_0x24ed65(0x19c)])_0x1a3bb0[_0x24ed65(0x19c)]=_0x46b64a;else{if(_0x1a3bb0['sqlRoot']!==_0x46b64a)throw new Error(_0x16eea8+_0x24ed65(0x1a2)+_0x46b64a+'\x22\x20vs\x20lock\x20\x22'+_0x1a3bb0[_0x24ed65(0x19c)]+_0x24ed65(0x1af)+_0x24ed65(0x1a3));}return!_0x1a3bb0[_0x24ed65(0x1a0)]&&(_0x1a3bb0[_0x24ed65(0x1a0)]={}),!_0x1a3bb0[_0x24ed65(0x1a6)]&&(_0x1a3bb0[_0x24ed65(0x1a6)]=''),{'lockData':_0x22f145,'appLock':_0x1a3bb0};}function a159_0x3d82(_0x3a6e26,_0x37e7c0){_0x3a6e26=_0x3a6e26-0x19b;const _0x2b7029=a159_0x2b70();let _0x3d820e=_0x2b7029[_0x3a6e26];return _0x3d820e;}export async function readSqlLockFile(_0x30f92b){const _0x3b1e6b=a159_0x3d82;try{const _0x5c4a17=await readFile(_0x30f92b,'utf8');return JSON[_0x3b1e6b(0x1a4)](_0x5c4a17);}catch(_0x4cd0a7){if(_0x4cd0a7['code']==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x4cd0a7));}}export async function writeSqlLockFile(_0x5d5f43,_0x1cfbab){const _0x275cfb=a159_0x3d82;await mkdir(dirname(_0x5d5f43),{'recursive':!![]}),await writeFile(_0x5d5f43,JSON[_0x275cfb(0x1aa)](_0x1cfbab,null,0x2),_0x275cfb(0x19b));}
1
+ (function(_0x2c4375,_0x3132bf){const _0x483648=a159_0x3557,_0x48cfa2=_0x2c4375();while(!![]){try{const _0x569281=-parseInt(_0x483648(0xfc))/0x1*(parseInt(_0x483648(0xeb))/0x2)+-parseInt(_0x483648(0xea))/0x3*(parseInt(_0x483648(0xfd))/0x4)+parseInt(_0x483648(0xf7))/0x5*(-parseInt(_0x483648(0xec))/0x6)+parseInt(_0x483648(0xf9))/0x7*(-parseInt(_0x483648(0xf5))/0x8)+parseInt(_0x483648(0xf4))/0x9*(-parseInt(_0x483648(0xf3))/0xa)+parseInt(_0x483648(0xee))/0xb+parseInt(_0x483648(0xf0))/0xc*(parseInt(_0x483648(0xe9))/0xd);if(_0x569281===_0x3132bf)break;else _0x48cfa2['push'](_0x48cfa2['shift']());}catch(_0x48ff2b){_0x48cfa2['push'](_0x48cfa2['shift']());}}}(a159_0x69c0,0x1d420));import{mkdir,readFile,writeFile}from'node:fs/promises';function a159_0x3557(_0x4a8f8d,_0x3a1e89){_0x4a8f8d=_0x4a8f8d-0xe9;const _0x69c041=a159_0x69c0();let _0x3557fb=_0x69c041[_0x4a8f8d];return _0x3557fb;}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0x69c0(){const _0x867cd9=['1558018bQTSjM','stringify','12aYYKkV','lastSync','sqls','9300GlNEAI','180oSwgOa','104HJpkun','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','20495QymZiM','apps','125419ibRBxs','sqlRoot','code','38543fjoHMg','94444Kouuzi','utf8','ENOENT','\x22\x20vs\x20lock\x20\x22','4881617gQiyvb','3pNcqpB','4gSTxuq','66UHKUiW','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a159_0x69c0=function(){return _0x867cd9;};return a159_0x69c0();}export function ensureSqlLockScope(_0x2fd6bd,_0x141220,_0xaba654,_0x4530b4){const _0x5a0d2e=a159_0x3557,_0x762ced=_0x2fd6bd??createEmptySqlLock();let _0xcf156c=_0x762ced[_0x5a0d2e(0xf8)][_0x141220];if(!_0xcf156c)return _0xcf156c={'sqlRoot':_0xaba654,'lastSync':'','sqls':{}},_0x762ced[_0x5a0d2e(0xf8)][_0x141220]=_0xcf156c,{'lockData':_0x762ced,'appLock':_0xcf156c};if(!_0xcf156c[_0x5a0d2e(0xfa)])_0xcf156c[_0x5a0d2e(0xfa)]=_0xaba654;else{if(_0xcf156c[_0x5a0d2e(0xfa)]!==_0xaba654)throw new Error(_0x4530b4+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0xaba654+_0x5a0d2e(0x100)+_0xcf156c[_0x5a0d2e(0xfa)]+'\x22.\x20'+_0x5a0d2e(0xed));}return!_0xcf156c[_0x5a0d2e(0xf2)]&&(_0xcf156c[_0x5a0d2e(0xf2)]={}),!_0xcf156c['lastSync']&&(_0xcf156c[_0x5a0d2e(0xf1)]=''),{'lockData':_0x762ced,'appLock':_0xcf156c};}export async function readSqlLockFile(_0x230f4c){const _0x14068c=a159_0x3557;try{const _0x2d538a=await readFile(_0x230f4c,_0x14068c(0xfe));return JSON['parse'](_0x2d538a);}catch(_0x4096c7){if(_0x4096c7[_0x14068c(0xfb)]===_0x14068c(0xff))return null;throw new Error(_0x14068c(0xf6)+String(_0x4096c7));}}export async function writeSqlLockFile(_0x5009a6,_0x2d234){const _0x6a86e3=a159_0x3557;await mkdir(dirname(_0x5009a6),{'recursive':!![]}),await writeFile(_0x5009a6,JSON[_0x6a86e3(0xef)](_0x2d234,null,0x2),_0x6a86e3(0xfe));}
@@ -1 +1 @@
1
- function a161_0x5a67(_0x4d6287,_0x278e0e){_0x4d6287=_0x4d6287-0x10f;const _0x43396f=a161_0x4339();let _0x5a6733=_0x43396f[_0x4d6287];return _0x5a6733;}(function(_0x7ea224,_0x492763){const _0x27485e=a161_0x5a67,_0x372955=_0x7ea224();while(!![]){try{const _0x46a9d4=-parseInt(_0x27485e(0x11a))/0x1+parseInt(_0x27485e(0x11c))/0x2+parseInt(_0x27485e(0x119))/0x3*(parseInt(_0x27485e(0x10f))/0x4)+-parseInt(_0x27485e(0x110))/0x5+parseInt(_0x27485e(0x113))/0x6+parseInt(_0x27485e(0x116))/0x7+-parseInt(_0x27485e(0x114))/0x8*(-parseInt(_0x27485e(0x11d))/0x9);if(_0x46a9d4===_0x492763)break;else _0x372955['push'](_0x372955['shift']());}catch(_0x33f7ac){_0x372955['push'](_0x372955['shift']());}}}(a161_0x4339,0x5526b));export function detectSqlMode(_0x4566dd){const _0x2ecf21=a161_0x5a67,_0x4101e3=_0x4566dd[_0x2ecf21(0x11b)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x4101e3))return'mybatisXml';return _0x2ecf21(0x111);}export function getSqlFileExtension(_0x2e8fb5){const _0x15134b=a161_0x5a67;return _0x2e8fb5==='mybatisXml'?_0x15134b(0x118):_0x15134b(0x112);}export function buildDefaultSqlFileName(_0x3f5976,_0x45adb3){return''+_0x3f5976+getSqlFileExtension(_0x45adb3);}export function sanitizeSqlPathSegment(_0x4f30c6,_0xa7eeef){const _0x5bf209=a161_0x5a67,_0xe46f81=String(_0x4f30c6??'')[_0x5bf209(0x117)](),_0xf5d910=_0xe46f81[_0x5bf209(0x115)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5bf209(0x115)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')[_0x5bf209(0x115)](/^-+/,'')[_0x5bf209(0x115)](/-+$/,'');return _0xf5d910||_0xa7eeef;}function a161_0x4339(){const _0x32ad29=['2442625yNdvFA','sql','.sql','1400304McWutU','411904faGKHD','replace','755643sUMbdq','trim','.xml','3dvXOxC','29749vJXQyt','trimStart','257400VGVqzY','36rtCkWL','unknown-sql','764272HKFlOk'];a161_0x4339=function(){return _0x32ad29;};return a161_0x4339();}export function buildDbDirectoryName(_0x4099f8,_0x1609bc){return sanitizeSqlPathSegment(_0x4099f8,_0x1609bc!=null?'db-'+_0x1609bc:'unknown-db');}export function buildSqlRelativePath(_0x21e02e,_0x4a29eb,_0x41dbec,_0x3e62b1,_0x153d1b){const _0x179d64=a161_0x5a67,_0xae86c0=buildDbDirectoryName(_0x41dbec,_0x153d1b),_0x39dfd3=sanitizeSqlPathSegment(_0x21e02e,_0x179d64(0x11e)),_0xb07cd8=sanitizeSqlPathSegment(_0x4a29eb,_0x39dfd3);return _0xae86c0+'/'+_0x39dfd3+'_'+_0xb07cd8+getSqlFileExtension(_0x3e62b1);}
1
+ (function(_0x45530a,_0xa8793c){const _0x547d1c=a161_0x53a9,_0x699fab=_0x45530a();while(!![]){try{const _0x3cc72e=-parseInt(_0x547d1c(0xc6))/0x1+-parseInt(_0x547d1c(0xc7))/0x2+-parseInt(_0x547d1c(0xc2))/0x3*(parseInt(_0x547d1c(0xc5))/0x4)+parseInt(_0x547d1c(0xcb))/0x5+-parseInt(_0x547d1c(0xc8))/0x6+-parseInt(_0x547d1c(0xc3))/0x7*(parseInt(_0x547d1c(0xce))/0x8)+parseInt(_0x547d1c(0xd0))/0x9;if(_0x3cc72e===_0xa8793c)break;else _0x699fab['push'](_0x699fab['shift']());}catch(_0x215eab){_0x699fab['push'](_0x699fab['shift']());}}}(a161_0x829a,0x2b61c));function a161_0x829a(){const _0x170501=['replace','test','867200fPpCBX','trimStart','trim','8zGRRVS','unknown-db','7037307OUEFic','.sql','627zzMqvf','96488VbqnNn','db-','5116ugYIdN','122652MkGknY','339206vddhtp','1225926qUaZOL'];a161_0x829a=function(){return _0x170501;};return a161_0x829a();}export function detectSqlMode(_0x580ce7){const _0x3c3d33=a161_0x53a9,_0x59c15d=_0x580ce7[_0x3c3d33(0xcc)]();if(/^<(select|insert|update|delete)\b/i[_0x3c3d33(0xca)](_0x59c15d))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x35b048){const _0x1d1308=a161_0x53a9;return _0x35b048==='mybatisXml'?'.xml':_0x1d1308(0xd1);}export function buildDefaultSqlFileName(_0x1b727d,_0x16e510){return''+_0x1b727d+getSqlFileExtension(_0x16e510);}export function sanitizeSqlPathSegment(_0x2b2a03,_0x3a8618){const _0x3684da=a161_0x53a9,_0x2edf90=String(_0x2b2a03??'')[_0x3684da(0xcd)](),_0x252155=_0x2edf90['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x3684da(0xc9)](/\s+/g,'-')[_0x3684da(0xc9)](/-+/g,'-')[_0x3684da(0xc9)](/^\.+/,'')[_0x3684da(0xc9)](/\.+$/,'')[_0x3684da(0xc9)](/^-+/,'')['replace'](/-+$/,'');return _0x252155||_0x3a8618;}function a161_0x53a9(_0x47bad3,_0x1cc563){_0x47bad3=_0x47bad3-0xc2;const _0x829a34=a161_0x829a();let _0x53a993=_0x829a34[_0x47bad3];return _0x53a993;}export function buildDbDirectoryName(_0x47a3d8,_0x4bd9ce){const _0x33f153=a161_0x53a9;return sanitizeSqlPathSegment(_0x47a3d8,_0x4bd9ce!=null?_0x33f153(0xc4)+_0x4bd9ce:_0x33f153(0xcf));}export function buildSqlRelativePath(_0x367057,_0x252bf9,_0x361d31,_0xfa1f78,_0x1033dd){const _0x46e5ef=buildDbDirectoryName(_0x361d31,_0x1033dd),_0x76d3ea=sanitizeSqlPathSegment(_0x367057,'unknown-sql'),_0x2d3467=sanitizeSqlPathSegment(_0x252bf9,_0x76d3ea);return _0x46e5ef+'/'+_0x76d3ea+'_'+_0x2d3467+getSqlFileExtension(_0xfa1f78);}
@@ -1 +1 @@
1
- (function(_0x387d5e,_0x3be06c){const _0x840d20=a162_0x1d25,_0x228323=_0x387d5e();while(!![]){try{const _0x33c712=parseInt(_0x840d20(0x1be))/0x1+-parseInt(_0x840d20(0x1c1))/0x2*(parseInt(_0x840d20(0x1c7))/0x3)+parseInt(_0x840d20(0x1db))/0x4+-parseInt(_0x840d20(0x1dd))/0x5*(parseInt(_0x840d20(0x1cc))/0x6)+-parseInt(_0x840d20(0x1d7))/0x7+-parseInt(_0x840d20(0x1d1))/0x8+parseInt(_0x840d20(0x1dc))/0x9;if(_0x33c712===_0x3be06c)break;else _0x228323['push'](_0x228323['shift']());}catch(_0x78c3d){_0x228323['push'](_0x228323['shift']());}}}(a162_0xc50d,0x38fd9));export function detectSqlType(_0x436d81){const _0x31941f=a162_0x1d25;if(!_0x436d81?.[_0x31941f(0x1ba)]())return{'type':_0x31941f(0x1ce),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x56f689=_0x436d81['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x31941f(0x1d8)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x31941f(0x1d8)](/\/\*[\s\S]*?\*\//g,'')[_0x31941f(0x1ba)](),_0xa96eb6=_0x56f689[_0x31941f(0x1c9)]('\x0a');let _0x258efb='';for(const _0x528f61 of _0xa96eb6){const _0x278d43=_0x528f61['trim']();if(!_0x278d43||_0x278d43['startsWith']('--')||_0x278d43[_0x31941f(0x1b8)]('/*'))continue;_0x258efb=_0x278d43;break;}const _0x1b322c=_0x258efb[_0x31941f(0x1c4)]();if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d2))||_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1ca))){const _0x4eb3a1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x31941f(0x1d4)](_0x56f689);return{'type':_0x31941f(0x1d2),'isSelectOnly':!_0x4eb3a1,'isDangerous':_0x4eb3a1,'reason':_0x4eb3a1?_0x31941f(0x1c3):undefined};}if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d9)))return{'type':_0x31941f(0x1d9),'isSelectOnly':![],'isDangerous':![]};if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d6)))return{'type':_0x31941f(0x1d6),'isSelectOnly':![],'isDangerous':![]};if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1bd)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x31941f(0x1bb)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x31941f(0x1d4)](_0x1b322c))return{'type':_0x31941f(0x1cb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x31941f(0x1c2)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x404698){const _0x394c5e=a162_0x1d25,_0x4792be=_0x404698[_0x394c5e(0x1d8)](/#\{[^}]*\}/g,'?')[_0x394c5e(0x1d8)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x394c5e(0x1d8)](/\/\*[\s\S]*?\*\//g,''),_0x16b82d=[],_0x2bc285=_0x4792be['match'](/FROM\s+([^\s,)(]+)/i);if(_0x2bc285?.[0x1])_0x16b82d[_0x394c5e(0x1d3)](_0x2bc285[0x1][_0x394c5e(0x1d8)](/[`"]/g,''));for(const _0x171532 of _0x4792be[_0x394c5e(0x1c8)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x27744f=_0x171532[0x1]?.['replace'](/[`"]/g,'');if(_0x27744f&&!_0x16b82d[_0x394c5e(0x1de)](_0x27744f))_0x16b82d['push'](_0x27744f);}const _0x32d74b=_0x4792be['match'](/INTO\s+([^\s(]+)/i);if(_0x32d74b?.[0x1]){const _0xcf7300=_0x32d74b[0x1][_0x394c5e(0x1d8)](/[`"]/g,'');if(!_0x16b82d[_0x394c5e(0x1de)](_0xcf7300))_0x16b82d[_0x394c5e(0x1d3)](_0xcf7300);}const _0x590222=_0x4792be[_0x394c5e(0x1d5)](/UPDATE\s+([^\s,)(]+)/i);if(_0x590222?.[0x1]){const _0x15ef96=_0x590222[0x1]['replace'](/[`"]/g,'');if(!_0x16b82d[_0x394c5e(0x1de)](_0x15ef96))_0x16b82d['push'](_0x15ef96);}return _0x16b82d;}function extractParameters(_0x354fb0){const _0x7a23e3=a162_0x1d25,_0x5cc1e6=new Set();for(const _0x1d8ec4 of _0x354fb0[_0x7a23e3(0x1c8)](/#\{(\w+)\}/g))if(_0x1d8ec4[0x1])_0x5cc1e6[_0x7a23e3(0x1c5)](_0x1d8ec4[0x1]);for(const _0x40fcef of _0x354fb0[_0x7a23e3(0x1c8)](/\$\{(\w+)\}/g))if(_0x40fcef[0x1])_0x5cc1e6['add'](_0x40fcef[0x1]);return Array[_0x7a23e3(0x1cf)](_0x5cc1e6);}function a162_0xc50d(){const _0x778881=['from','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','1256888VcPRZf','SELECT','push','test','match','UPDATE','619234kyHlCv','replace','INSERT','length','1140588FeCczt','6057306nyjkWT','85wyLhMv','includes','startsWith','\x20query\x20targeting\x20','trim','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','isDangerous','DELETE','146211SvFtwZ','type','reason','2KZKGyh','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','toUpperCase','add','join','1025376aEUSeO','matchAll','split','WITH','DDL','100092RQMXJx','\x20with\x20parameters:\x20','UNKNOWN'];a162_0xc50d=function(){return _0x778881;};return a162_0xc50d();}function a162_0x1d25(_0xcdae35,_0x265758){_0xcdae35=_0xcdae35-0x1b8;const _0xc50dc3=a162_0xc50d();let _0x1d2526=_0xc50dc3[_0xcdae35];return _0x1d2526;}export function validateSql(_0x30b4cd){const _0x1973bf=a162_0x1d25,_0x579ec8=detectSqlType(_0x30b4cd),_0x46bb79=extractTables(_0x30b4cd),_0x246881=extractParameters(_0x30b4cd);if(_0x579ec8[_0x1973bf(0x1bc)])return{'valid':![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x579ec8[_0x1973bf(0x1c0)]||_0x579ec8[_0x1973bf(0x1bf)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x579ec8[_0x1973bf(0x1bf)]===_0x1973bf(0x1ce))return{'valid':![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x1973bf(0x1d0)};return{'valid':!![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x579ec8[_0x1973bf(0x1bf)]+_0x1973bf(0x1b9)+(_0x46bb79[_0x1973bf(0x1da)]?_0x46bb79[_0x1973bf(0x1c6)](',\x20'):'unknown\x20table(s)')+(_0x246881[_0x1973bf(0x1da)]?_0x1973bf(0x1cd)+_0x246881[_0x1973bf(0x1c6)](',\x20'):'')};}
1
+ function a162_0x5dda(_0x41b5e3,_0x660c93){_0x41b5e3=_0x41b5e3-0x9b;const _0x3cf6e6=a162_0x3cf6();let _0x5dda13=_0x3cf6e6[_0x41b5e3];return _0x5dda13;}function a162_0x3cf6(){const _0x4cb7ed=['\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','reason','isDangerous','matchAll','24906iEnMQp','join','type','1571427VUisHR','match','550nBuuPh','replace','1521vNfZbl','143150CezrPq','UPDATE','add','878oAHNKZ','startsWith','60oPgFHE','SQL\x20content\x20is\x20empty','SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','length','4076941cJPWUX','test','includes','push','1504TFIxIf','5076728cIlrhS','DDL','INSERT','876xfXnyQ','trim','WITH','split','36DzLsmt'];a162_0x3cf6=function(){return _0x4cb7ed;};return a162_0x3cf6();}(function(_0x1c2cd6,_0x25894b){const _0x302553=a162_0x5dda,_0x4a13dd=_0x1c2cd6();while(!![]){try{const _0x448c0c=parseInt(_0x302553(0x9f))/0x1*(-parseInt(_0x302553(0xb7))/0x2)+parseInt(_0x302553(0xaf))/0x3+parseInt(_0x302553(0xb9))/0x4*(parseInt(_0x302553(0xb4))/0x5)+parseInt(_0x302553(0xa3))/0x6*(parseInt(_0x302553(0xac))/0x7)+parseInt(_0x302553(0xa0))/0x8+parseInt(_0x302553(0xb3))/0x9*(parseInt(_0x302553(0xb1))/0xa)+parseInt(_0x302553(0x9b))/0xb*(-parseInt(_0x302553(0xa7))/0xc);if(_0x448c0c===_0x25894b)break;else _0x4a13dd['push'](_0x4a13dd['shift']());}catch(_0x9a3914){_0x4a13dd['push'](_0x4a13dd['shift']());}}}(a162_0x3cf6,0x54190));export function detectSqlType(_0x8ff19c){const _0x44a8a6=a162_0x5dda;if(!_0x8ff19c?.[_0x44a8a6(0xa4)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x44a8a6(0xba)};const _0x57ad5=_0x8ff19c[_0x44a8a6(0xb2)](/#\{[^}]*\}/g,'?')[_0x44a8a6(0xb2)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x44a8a6(0xb2)](/\/\*[\s\S]*?\*\//g,'')[_0x44a8a6(0xa4)](),_0x57ab64=_0x57ad5[_0x44a8a6(0xa6)]('\x0a');let _0x584698='';for(const _0x5d4d87 of _0x57ab64){const _0x5c8fa2=_0x5d4d87['trim']();if(!_0x5c8fa2||_0x5c8fa2['startsWith']('--')||_0x5c8fa2[_0x44a8a6(0xb8)]('/*'))continue;_0x584698=_0x5c8fa2;break;}const _0x2b1c34=_0x584698['toUpperCase']();if(_0x2b1c34[_0x44a8a6(0xb8)]('SELECT')||_0x2b1c34['startsWith'](_0x44a8a6(0xa5))){const _0x29d8ad=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x44a8a6(0x9c)](_0x57ad5);return{'type':_0x44a8a6(0xbb),'isSelectOnly':!_0x29d8ad,'isDangerous':_0x29d8ad,'reason':_0x29d8ad?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x2b1c34[_0x44a8a6(0xb8)](_0x44a8a6(0xa2)))return{'type':_0x44a8a6(0xa2),'isSelectOnly':![],'isDangerous':![]};if(_0x2b1c34[_0x44a8a6(0xb8)](_0x44a8a6(0xb5)))return{'type':_0x44a8a6(0xb5),'isSelectOnly':![],'isDangerous':![]};if(_0x2b1c34['startsWith']('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x44a8a6(0x9c)](_0x2b1c34))return{'type':_0x44a8a6(0xa1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x44a8a6(0xbc)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x1d02d1){const _0xe9f330=a162_0x5dda,_0x4b5619=_0x1d02d1[_0xe9f330(0xb2)](/#\{[^}]*\}/g,'?')[_0xe9f330(0xb2)](/\$\{[^}]*\}/g,'?')[_0xe9f330(0xb2)](/'[^']*'/g,'\x27\x27')[_0xe9f330(0xb2)](/--.*$/gm,'')[_0xe9f330(0xb2)](/\/\*[\s\S]*?\*\//g,''),_0x1d1389=[],_0xfda84d=_0x4b5619[_0xe9f330(0xb0)](/FROM\s+([^\s,)(]+)/i);if(_0xfda84d?.[0x1])_0x1d1389['push'](_0xfda84d[0x1][_0xe9f330(0xb2)](/[`"]/g,''));for(const _0xeb11cd of _0x4b5619[_0xe9f330(0xab)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x660d37=_0xeb11cd[0x1]?.[_0xe9f330(0xb2)](/[`"]/g,'');if(_0x660d37&&!_0x1d1389[_0xe9f330(0x9d)](_0x660d37))_0x1d1389[_0xe9f330(0x9e)](_0x660d37);}const _0x1f1242=_0x4b5619[_0xe9f330(0xb0)](/INTO\s+([^\s(]+)/i);if(_0x1f1242?.[0x1]){const _0x3baf7b=_0x1f1242[0x1][_0xe9f330(0xb2)](/[`"]/g,'');if(!_0x1d1389[_0xe9f330(0x9d)](_0x3baf7b))_0x1d1389['push'](_0x3baf7b);}const _0x4f0351=_0x4b5619[_0xe9f330(0xb0)](/UPDATE\s+([^\s,)(]+)/i);if(_0x4f0351?.[0x1]){const _0x45142c=_0x4f0351[0x1][_0xe9f330(0xb2)](/[`"]/g,'');if(!_0x1d1389[_0xe9f330(0x9d)](_0x45142c))_0x1d1389['push'](_0x45142c);}return _0x1d1389;}function extractParameters(_0x30bf78){const _0x2e7309=a162_0x5dda,_0x5d4b77=new Set();for(const _0x4505b2 of _0x30bf78[_0x2e7309(0xab)](/#\{(\w+)\}/g))if(_0x4505b2[0x1])_0x5d4b77[_0x2e7309(0xb6)](_0x4505b2[0x1]);for(const _0x4f3d2d of _0x30bf78[_0x2e7309(0xab)](/\$\{(\w+)\}/g))if(_0x4f3d2d[0x1])_0x5d4b77['add'](_0x4f3d2d[0x1]);return Array['from'](_0x5d4b77);}export function validateSql(_0x3bc5d9){const _0x56e3d5=a162_0x5dda,_0x4072f6=detectSqlType(_0x3bc5d9),_0x2743fa=extractTables(_0x3bc5d9),_0x388438=extractParameters(_0x3bc5d9);if(_0x4072f6[_0x56e3d5(0xaa)])return{'valid':![],'sqlType':_0x4072f6,'tables':_0x2743fa,'parameters':_0x388438,'message':_0x4072f6[_0x56e3d5(0xa9)]||_0x4072f6[_0x56e3d5(0xae)]+_0x56e3d5(0xa8)};if(_0x4072f6[_0x56e3d5(0xae)]==='UNKNOWN')return{'valid':![],'sqlType':_0x4072f6,'tables':_0x2743fa,'parameters':_0x388438,'message':_0x56e3d5(0xbd)};return{'valid':!![],'sqlType':_0x4072f6,'tables':_0x2743fa,'parameters':_0x388438,'message':_0x4072f6[_0x56e3d5(0xae)]+'\x20query\x20targeting\x20'+(_0x2743fa[_0x56e3d5(0xbe)]?_0x2743fa['join'](',\x20'):'unknown\x20table(s)')+(_0x388438[_0x56e3d5(0xbe)]?'\x20with\x20parameters:\x20'+_0x388438[_0x56e3d5(0xad)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a163_0x5dd2(_0x305521,_0x362003){_0x305521=_0x305521-0x88;const _0xa04e10=a163_0xa04e();let _0x5dd244=_0xa04e10[_0x305521];return _0x5dd244;}const a163_0x33c194=a163_0x5dd2;(function(_0x2726c3,_0x13f24e){const _0x38dd3b=a163_0x5dd2,_0x511770=_0x2726c3();while(!![]){try{const _0x4825d7=parseInt(_0x38dd3b(0x99))/0x1+-parseInt(_0x38dd3b(0x8b))/0x2*(parseInt(_0x38dd3b(0x9a))/0x3)+parseInt(_0x38dd3b(0x93))/0x4*(parseInt(_0x38dd3b(0x98))/0x5)+-parseInt(_0x38dd3b(0x90))/0x6*(-parseInt(_0x38dd3b(0x8c))/0x7)+-parseInt(_0x38dd3b(0x8f))/0x8*(parseInt(_0x38dd3b(0x8a))/0x9)+parseInt(_0x38dd3b(0x9b))/0xa+parseInt(_0x38dd3b(0x8d))/0xb*(-parseInt(_0x38dd3b(0x8e))/0xc);if(_0x4825d7===_0x13f24e)break;else _0x511770['push'](_0x511770['shift']());}catch(_0x4de50d){_0x511770['push'](_0x511770['shift']());}}}(a163_0xa04e,0xf21ba));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a163_0xa04e(){const _0x3ec1de=['16433910ZBcFkB','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','27756oyNuLi','54554LaYtHW','1211ATkJXd','11KAVITM','33200724icMQQZ','4064FbuihS','28068sxADZc','Run\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','108VvdiGJ','join','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Tip:\x20`','\x20auth`\x20to\x20login\x20first.','338515CxqIqK','1180792OwAazz','15PbXhet'];a163_0xa04e=function(){return _0x3ec1de;};return a163_0xa04e();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x33c194(0x91)+CLI_BIN_NAME+a163_0x33c194(0x97),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a163_0x33c194(0x92),a163_0x33c194(0x96)+CLI_BIN_NAME+a163_0x33c194(0x89)][a163_0x33c194(0x94)](a163_0x33c194(0x88)),'notInProjectHint':a163_0x33c194(0x95)});
1
+ function a163_0xbb04(_0x3c3435,_0x18ff25){_0x3c3435=_0x3c3435-0xde;const _0x2c33a5=a163_0x2c33();let _0xbb04e8=_0x2c33a5[_0x3c3435];return _0xbb04e8;}function a163_0x2c33(){const _0xf49575=['2999862QweXUw','572860sSndOS','1874245uYsfyR','Tip:\x20`','1927701DWORcV','Run\x20`','3hwXGxA','Set\x20appcode\x20via\x20`','2207611pPCKgQ','394056KpupIy','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','join','659328janxfZ','4bBudvE'];a163_0x2c33=function(){return _0xf49575;};return a163_0x2c33();}const a163_0xcac258=a163_0xbb04;(function(_0x17607a,_0x4e4287){const _0x1de48f=a163_0xbb04,_0xc9d3a=_0x17607a();while(!![]){try{const _0x11685d=parseInt(_0x1de48f(0xe6))/0x1+-parseInt(_0x1de48f(0xde))/0x2*(-parseInt(_0x1de48f(0xe3))/0x3)+-parseInt(_0x1de48f(0xea))/0x4*(parseInt(_0x1de48f(0xdf))/0x5)+-parseInt(_0x1de48f(0xeb))/0x6+parseInt(_0x1de48f(0xe5))/0x7+-parseInt(_0x1de48f(0xe9))/0x8+parseInt(_0x1de48f(0xe1))/0x9;if(_0x11685d===_0x4e4287)break;else _0xc9d3a['push'](_0xc9d3a['shift']());}catch(_0x425a3e){_0xc9d3a['push'](_0xc9d3a['shift']());}}}(a163_0x2c33,0x3db86));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':a163_0xcac258(0xe2)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a163_0xcac258(0xe4)+CLI_BIN_NAME+a163_0xcac258(0xe7),a163_0xcac258(0xe0)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a163_0xcac258(0xe8)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- function a164_0x3ca8(){var _0x433b7d=['310116uePgLX','941eqmLlz','379505XlptMf','705441YcMLRH','858NibSHH','1771070gmaTDy','42PbFhBh','32cJtYTw','84JHKSzU','6DMeWYB','946917RExiMN','4615565snPQLk'];a164_0x3ca8=function(){return _0x433b7d;};return a164_0x3ca8();}(function(_0x6a96de,_0x381703){var _0x363fff=a164_0x5ef2,_0x57e63a=_0x6a96de();while(!![]){try{var _0x53c6df=-parseInt(_0x363fff(0x9a))/0x1*(-parseInt(_0x363fff(0x9d))/0x2)+-parseInt(_0x363fff(0x9f))/0x3*(-parseInt(_0x363fff(0x99))/0x4)+-parseInt(_0x363fff(0x98))/0x5*(parseInt(_0x363fff(0x96))/0x6)+-parseInt(_0x363fff(0x9b))/0x7+parseInt(_0x363fff(0xa0))/0x8*(parseInt(_0x363fff(0x97))/0x9)+parseInt(_0x363fff(0x9e))/0xa+parseInt(_0x363fff(0x9c))/0xb*(-parseInt(_0x363fff(0x95))/0xc);if(_0x53c6df===_0x381703)break;else _0x57e63a['push'](_0x57e63a['shift']());}catch(_0x5717fc){_0x57e63a['push'](_0x57e63a['shift']());}}}(a164_0x3ca8,0xa1549));function a164_0x5ef2(_0x2d6be1,_0xa72627){_0x2d6be1=_0x2d6be1-0x95;var _0x3ca8f4=a164_0x3ca8();var _0x5ef2c9=_0x3ca8f4[_0x2d6be1];return _0x5ef2c9;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a164_0x485f8d}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3d5dfa){return a164_0x485f8d(_0x3d5dfa,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x40524a,_0x316377){var _0x3e14ac=a164_0x5198,_0x5488cd=_0x40524a();while(!![]){try{var _0x2ff293=parseInt(_0x3e14ac(0x11d))/0x1*(-parseInt(_0x3e14ac(0x120))/0x2)+-parseInt(_0x3e14ac(0x11f))/0x3+parseInt(_0x3e14ac(0x125))/0x4*(-parseInt(_0x3e14ac(0x124))/0x5)+parseInt(_0x3e14ac(0x122))/0x6*(-parseInt(_0x3e14ac(0x123))/0x7)+parseInt(_0x3e14ac(0x11e))/0x8+-parseInt(_0x3e14ac(0x121))/0x9+parseInt(_0x3e14ac(0x11c))/0xa;if(_0x2ff293===_0x316377)break;else _0x5488cd['push'](_0x5488cd['shift']());}catch(_0x4c5f96){_0x5488cd['push'](_0x5488cd['shift']());}}}(a164_0x3ccc,0x30f0e));function a164_0x3ccc(){var _0x397ab2=['3129616GsfjMd','577065TDoeod','87426MDMfpt','1744974MFioqX','15636XLCGkR','329qYrIbJ','40IpQnZL','138884nOcvbg','8580290zwvVQt','6CMbgAv'];a164_0x3ccc=function(){return _0x397ab2;};return a164_0x3ccc();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a164_0x4d8552}from'@lovrabet/cli-framework';function a164_0x5198(_0xe90af8,_0x37ea14){_0xe90af8=_0xe90af8-0x11c;var _0x3ccc5c=a164_0x3ccc();var _0x51983a=_0x3ccc5c[_0xe90af8];return _0x51983a;}export function buildAllFlags(_0x4c48e6){return a164_0x4d8552(_0x4c48e6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a165_0xb2b160=a165_0x761d;(function(_0x2f5b64,_0x1d00df){const _0xdfe65a=a165_0x761d,_0xa40714=_0x2f5b64();while(!![]){try{const _0x41705c=-parseInt(_0xdfe65a(0x73))/0x1*(parseInt(_0xdfe65a(0x77))/0x2)+-parseInt(_0xdfe65a(0x7a))/0x3*(-parseInt(_0xdfe65a(0x78))/0x4)+-parseInt(_0xdfe65a(0x6f))/0x5*(-parseInt(_0xdfe65a(0x71))/0x6)+parseInt(_0xdfe65a(0x72))/0x7+-parseInt(_0xdfe65a(0x76))/0x8*(-parseInt(_0xdfe65a(0x79))/0x9)+-parseInt(_0xdfe65a(0x74))/0xa+parseInt(_0xdfe65a(0x75))/0xb*(parseInt(_0xdfe65a(0x70))/0xc);if(_0x41705c===_0x1d00df)break;else _0xa40714['push'](_0xa40714['shift']());}catch(_0x1021da){_0xa40714['push'](_0xa40714['shift']());}}}(a165_0x535b,0xcc7bf));function a165_0x535b(){const _0x2cc26c=['65956SZHqgC','441zEPnhC','177yZtSPL','validateFlags','383905mMOrJp','420aDecnd','30lRpzMa','155659vHzpdN','34giVckV','13784820eXvefO','370425JgwHPo','168456lIlZtm','80786AjjeKg'];a165_0x535b=function(){return _0x2cc26c;};return a165_0x535b();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a165_0x761d(_0x2167d1,_0x3f9a01){_0x2167d1=_0x2167d1-0x6f;const _0x535bd0=a165_0x535b();let _0x761df1=_0x535bd0[_0x2167d1];return _0x761df1;}export const validateFlags=helpers[a165_0xb2b160(0x7b)];
1
+ const a165_0x19bd93=a165_0x27a8;(function(_0x6b886e,_0x32422e){const _0x1b6086=a165_0x27a8,_0x497b9c=_0x6b886e();while(!![]){try{const _0x496944=parseInt(_0x1b6086(0x9e))/0x1*(parseInt(_0x1b6086(0x9f))/0x2)+-parseInt(_0x1b6086(0xa4))/0x3+-parseInt(_0x1b6086(0xa5))/0x4+-parseInt(_0x1b6086(0x9d))/0x5+parseInt(_0x1b6086(0xa0))/0x6+-parseInt(_0x1b6086(0xa2))/0x7*(parseInt(_0x1b6086(0xa1))/0x8)+parseInt(_0x1b6086(0xa3))/0x9;if(_0x496944===_0x32422e)break;else _0x497b9c['push'](_0x497b9c['shift']());}catch(_0x596bf6){_0x497b9c['push'](_0x497b9c['shift']());}}}(a165_0x5e95,0xe58c8));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a165_0x5e95(){const _0xf08c6f=['22942845wtWZhs','3645147NIlDjk','2333576wljFPv','parseFlags','validateFlags','7739080RLJDUj','550QIckHs','4138QhzCVC','6915774vgJplN','113496nyfEik','273HVBRvk'];a165_0x5e95=function(){return _0xf08c6f;};return a165_0x5e95();}function a165_0x27a8(_0x3440ca,_0x2f4d0b){_0x3440ca=_0x3440ca-0x9d;const _0x5e950f=a165_0x5e95();let _0x27a8f8=_0x5e950f[_0x3440ca];return _0x27a8f8;}export const parseFlags=helpers[a165_0x19bd93(0xa6)];export const validateFlags=helpers[a165_0x19bd93(0xa7)];
@@ -1 +1 @@
1
- const a166_0x14ed50=a166_0x336f;(function(_0x472e2b,_0x58e92b){const _0x589e65=a166_0x336f,_0x30882e=_0x472e2b();while(!![]){try{const _0x551a67=parseInt(_0x589e65(0xb2))/0x1*(parseInt(_0x589e65(0xa6))/0x2)+-parseInt(_0x589e65(0xa4))/0x3*(-parseInt(_0x589e65(0xb0))/0x4)+parseInt(_0x589e65(0xaa))/0x5+-parseInt(_0x589e65(0xa3))/0x6*(-parseInt(_0x589e65(0xb1))/0x7)+parseInt(_0x589e65(0xab))/0x8*(parseInt(_0x589e65(0xb3))/0x9)+parseInt(_0x589e65(0xa5))/0xa+-parseInt(_0x589e65(0xa8))/0xb;if(_0x551a67===_0x58e92b)break;else _0x30882e['push'](_0x30882e['shift']());}catch(_0x50b2c0){_0x30882e['push'](_0x30882e['shift']());}}}(a166_0x3d5c,0x61cca));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a166_0x336f(_0x5c10b0,_0x5a409e){_0x5c10b0=_0x5c10b0-0xa3;const _0x3d5cad=a166_0x3d5c();let _0x336f8b=_0x3d5cad[_0x5c10b0];return _0x336f8b;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x4b4dbc=>serviceGroups[a166_0x14ed50(0xa7)](_0x4b4dbc),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a166_0x14ed50(0xac),'serviceUsageSuffix':a166_0x14ed50(0xad),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x319f49){const _0x47ad9e=a166_0x14ed50;return generators[_0x47ad9e(0xae)](_0x319f49);}export const generateServiceHelp=generators[a166_0x14ed50(0xa9)];function a166_0x3d5c(){const _0x5091cc=['6202430ifFpXX','653192ZWPLng','get','31576017NKNLtD','generateServiceHelp','1832950mjNyDw','19528vYbQRx','\x20project\x20init`\x20or\x20--appcode).','\x20[args]\x20[flags]','generateCommandHelp','generateFullHelp','445316eisFOa','4797233INkPsI','1SFYemk','1818yxycVC','6rTqhzX','21CRposJ'];a166_0x3d5c=function(){return _0x5091cc;};return a166_0x3d5c();}export const generateFullHelp=generators[a166_0x14ed50(0xaf)];
1
+ const a166_0x5ce981=a166_0x4aeb;(function(_0x1f5821,_0x3de171){const _0x4bf30f=a166_0x4aeb,_0x1e08f2=_0x1f5821();while(!![]){try{const _0x5ca70c=-parseInt(_0x4bf30f(0x135))/0x1*(-parseInt(_0x4bf30f(0x13c))/0x2)+parseInt(_0x4bf30f(0x139))/0x3+parseInt(_0x4bf30f(0x137))/0x4+parseInt(_0x4bf30f(0x13b))/0x5+-parseInt(_0x4bf30f(0x13f))/0x6*(-parseInt(_0x4bf30f(0x143))/0x7)+-parseInt(_0x4bf30f(0x13e))/0x8+parseInt(_0x4bf30f(0x142))/0x9*(-parseInt(_0x4bf30f(0x140))/0xa);if(_0x5ca70c===_0x3de171)break;else _0x1e08f2['push'](_0x1e08f2['shift']());}catch(_0x39aaa1){_0x1e08f2['push'](_0x1e08f2['shift']());}}}(a166_0x3f47,0x8c192));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a166_0x4aeb(_0x54f706,_0x486c38){_0x54f706=_0x54f706-0x135;const _0x3f47f7=a166_0x3f47();let _0x4aeb9a=_0x3f47f7[_0x54f706];return _0x4aeb9a;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a166_0x3f47(){const _0x7fd821=['223524NOFESN','generateFullHelp','4279020OcbaDf','593238bAbndW','\x20project\x20init`\x20or\x20--appcode).','7761624DRLmiE','24yFazCH','4206520kYvFse','Requires\x20appcode\x20(set\x20via\x20`','9yetVnG','287021YkDMVk','get','1TXuFIo','generateCommandHelp','2295016XJdueV','generateServiceHelp'];a166_0x3f47=function(){return _0x7fd821;};return a166_0x3f47();}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':_0x36ca03=>serviceGroups[a166_0x5ce981(0x144)](_0x36ca03),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a166_0x5ce981(0x141)+CLI_BIN_NAME+a166_0x5ce981(0x13d),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x1ad277){const _0x4f0598=a166_0x5ce981;return generators[_0x4f0598(0x136)](_0x1ad277);}export const generateServiceHelp=generators[a166_0x5ce981(0x138)];export const generateFullHelp=generators[a166_0x5ce981(0x13a)];
@@ -1 +1 @@
1
- function a167_0x187a(_0x38c9d9,_0x4a20b4){_0x38c9d9=_0x38c9d9-0xb3;var _0x22d11a=a167_0x22d1();var _0x187a54=_0x22d11a[_0x38c9d9];return _0x187a54;}(function(_0xfc2f10,_0x3f81d3){var _0x5a6273=a167_0x187a,_0x7d9668=_0xfc2f10();while(!![]){try{var _0x33d239=-parseInt(_0x5a6273(0xb7))/0x1*(-parseInt(_0x5a6273(0xb5))/0x2)+-parseInt(_0x5a6273(0xb9))/0x3+parseInt(_0x5a6273(0xbc))/0x4*(parseInt(_0x5a6273(0xb3))/0x5)+parseInt(_0x5a6273(0xb8))/0x6+parseInt(_0x5a6273(0xba))/0x7*(-parseInt(_0x5a6273(0xb6))/0x8)+-parseInt(_0x5a6273(0xbb))/0x9+-parseInt(_0x5a6273(0xbd))/0xa*(parseInt(_0x5a6273(0xb4))/0xb);if(_0x33d239===_0x3f81d3)break;else _0x7d9668['push'](_0x7d9668['shift']());}catch(_0x52e670){_0x7d9668['push'](_0x7d9668['shift']());}}}(a167_0x22d1,0x3b457));function a167_0x22d1(){var _0x4e0e3b=['92905TMWzCU','269797fZtpGQ','140254UinFQy','968KOLtmX','3XmclAe','2347860wDUmKH','600795FjmSrG','4711aOTWOD','1651509oEPxzF','44ZoOiAU','40MMRwwx'];a167_0x22d1=function(){return _0x4e0e3b;};return a167_0x22d1();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ function a167_0x58e8(){var _0x13d2c4=['50TxvGqp','12596976mPcGkM','207768ZQXvxh','6744JfGYTb','4356dEpiRs','7370pmZFJX','1626YplLHf','21466iBFukD','9qeJZau','4efRNqW','1337028JUSyQl','82665PkDjbE'];a167_0x58e8=function(){return _0x13d2c4;};return a167_0x58e8();}(function(_0x28ee4c,_0x3ef94d){var _0x37cc19=a167_0x1cee,_0x185aed=_0x28ee4c();while(!![]){try{var _0x4e4636=-parseInt(_0x37cc19(0x1c9))/0x1*(-parseInt(_0x37cc19(0x1c8))/0x2)+-parseInt(_0x37cc19(0x1cf))/0x3*(-parseInt(_0x37cc19(0x1ca))/0x4)+parseInt(_0x37cc19(0x1c6))/0x5*(-parseInt(_0x37cc19(0x1c7))/0x6)+-parseInt(_0x37cc19(0x1cb))/0x7+-parseInt(_0x37cc19(0x1c4))/0x8*(parseInt(_0x37cc19(0x1c5))/0x9)+-parseInt(_0x37cc19(0x1cd))/0xa*(-parseInt(_0x37cc19(0x1cc))/0xb)+parseInt(_0x37cc19(0x1ce))/0xc;if(_0x4e4636===_0x3ef94d)break;else _0x185aed['push'](_0x185aed['shift']());}catch(_0x4bb957){_0x185aed['push'](_0x185aed['shift']());}}}(a167_0x58e8,0x3e2f2));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a167_0x1cee(_0x4e4878,_0x16c405){_0x4e4878=_0x4e4878-0x1c4;var _0x58e8f9=a167_0x58e8();var _0x1cee6d=_0x58e8f9[_0x4e4878];return _0x1cee6d;}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(_0x2d63e5,_0x1a8491){const _0x277797=a168_0x3ed4,_0x1ba215=_0x2d63e5();while(!![]){try{const _0x5e2eb9=-parseInt(_0x277797(0x17d))/0x1*(-parseInt(_0x277797(0x178))/0x2)+-parseInt(_0x277797(0x176))/0x3+-parseInt(_0x277797(0x175))/0x4*(-parseInt(_0x277797(0x17b))/0x5)+parseInt(_0x277797(0x173))/0x6*(-parseInt(_0x277797(0x17a))/0x7)+-parseInt(_0x277797(0x174))/0x8*(parseInt(_0x277797(0x172))/0x9)+-parseInt(_0x277797(0x17c))/0xa+parseInt(_0x277797(0x179))/0xb;if(_0x5e2eb9===_0x1a8491)break;else _0x1ba215['push'](_0x1ba215['shift']());}catch(_0x33492a){_0x1ba215['push'](_0x1ba215['shift']());}}}(a168_0x1e36,0xcbbff));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x1e36(){const _0xeaaf48=['1796tzjEQq','3309165cJnJNt','pretty','596nWbpQt','37199976qaRUxR','476EsciCp','5345bMOVFt','13540380WygMMU','5371zriwoY','url','error','_notice','update','16407vIYmqr','51108XNWFse','6984wMTmHz'];a168_0x1e36=function(){return _0xeaaf48;};return a168_0x1e36();}function a168_0x3ed4(_0x53b24a,_0x3f7402){_0x53b24a=_0x53b24a-0x16f;const _0x1e3638=a168_0x1e36();let _0x3ed471=_0x1e3638[_0x53b24a];return _0x3ed471;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4cd5b8,_0xa8eaf4){const _0xe92167=a168_0x3ed4,_0x21b132=_0x4cd5b8[_0xe92167(0x170)],{_notice:_0x29b38d,..._0x503a66}=_0x4cd5b8;void _0x29b38d,baseFormatOutput(_0x503a66,_0xa8eaf4),_0xa8eaf4['format']===_0xe92167(0x177)&&printPrettyNotice(_0x21b132);}function printPrettyNotice(_0xc0d41e){const _0x464a3d=a168_0x3ed4;if(!_0xc0d41e?.['update'])return;console[_0x464a3d(0x16f)](_0xc0d41e[_0x464a3d(0x171)]['message']+'\x20('+_0xc0d41e[_0x464a3d(0x171)][_0x464a3d(0x17e)]+')');}
1
+ (function(_0x394722,_0x261114){const _0x166532=a168_0x29b9,_0x2349ac=_0x394722();while(!![]){try{const _0x128c49=parseInt(_0x166532(0x165))/0x1+parseInt(_0x166532(0x166))/0x2*(-parseInt(_0x166532(0x160))/0x3)+parseInt(_0x166532(0x164))/0x4*(-parseInt(_0x166532(0x167))/0x5)+parseInt(_0x166532(0x15f))/0x6*(-parseInt(_0x166532(0x16b))/0x7)+-parseInt(_0x166532(0x16e))/0x8+-parseInt(_0x166532(0x163))/0x9+parseInt(_0x166532(0x162))/0xa;if(_0x128c49===_0x261114)break;else _0x2349ac['push'](_0x2349ac['shift']());}catch(_0x375628){_0x2349ac['push'](_0x2349ac['shift']());}}}(a168_0x1843,0xef11c));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a168_0x29b9(_0x34098d,_0x48219c){_0x34098d=_0x34098d-0x15f;const _0x184325=a168_0x1843();let _0x29b91f=_0x184325[_0x34098d];return _0x29b91f;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a168_0x1843(){const _0x46f107=['format','pretty','14252608irrqMm','12BNuDPO','64467VqNeRA','message','72067990EmwMuC','8249787LcEOxy','4522060WGlrSr','760090gBOSKn','154TqJpkx','5aeNxpc','update','error','url','5264959QmpMpx'];a168_0x1843=function(){return _0x46f107;};return a168_0x1843();}export function formatOutput(_0x60e5b3,_0x6d85b6){const _0x3fdfd2=a168_0x29b9,_0xd31d3=_0x60e5b3['_notice'],{_notice:_0x4d7a4f,..._0x516c23}=_0x60e5b3;void _0x4d7a4f,baseFormatOutput(_0x516c23,_0x6d85b6),_0x6d85b6[_0x3fdfd2(0x16c)]===_0x3fdfd2(0x16d)&&printPrettyNotice(_0xd31d3);}function printPrettyNotice(_0x29655c){const _0x2e88da=a168_0x29b9;if(!_0x29655c?.[_0x2e88da(0x168)])return;console[_0x2e88da(0x169)](_0x29655c[_0x2e88da(0x168)][_0x2e88da(0x161)]+'\x20('+_0x29655c[_0x2e88da(0x168)][_0x2e88da(0x16a)]+')');}
@@ -1 +1 @@
1
- (function(_0x3b7083,_0x4d2aea){var _0x12c730=a169_0x25b9,_0xca349c=_0x3b7083();while(!![]){try{var _0x40c1f7=-parseInt(_0x12c730(0x1d1))/0x1*(parseInt(_0x12c730(0x1d0))/0x2)+parseInt(_0x12c730(0x1d4))/0x3*(parseInt(_0x12c730(0x1d2))/0x4)+-parseInt(_0x12c730(0x1ce))/0x5+parseInt(_0x12c730(0x1cd))/0x6*(parseInt(_0x12c730(0x1d7))/0x7)+-parseInt(_0x12c730(0x1cf))/0x8*(-parseInt(_0x12c730(0x1cc))/0x9)+-parseInt(_0x12c730(0x1d3))/0xa+parseInt(_0x12c730(0x1d5))/0xb*(-parseInt(_0x12c730(0x1d6))/0xc);if(_0x40c1f7===_0x4d2aea)break;else _0xca349c['push'](_0xca349c['shift']());}catch(_0x1eafb0){_0xca349c['push'](_0xca349c['shift']());}}}(a169_0x4bfe,0xb6426));function a169_0x25b9(_0x35e590,_0x198180){_0x35e590=_0x35e590-0x1cc;var _0x4bfe87=a169_0x4bfe();var _0x25b9bf=_0x4bfe87[_0x35e590];return _0x25b9bf;}function a169_0x4bfe(){var _0x25be9e=['2079ohnyNR','42zTKJuL','1739310LveiCY','39264xkYVwA','2yQtyNS','335695vItwDy','1172SClthi','5694450pdMNSx','14961tSzqNj','66jilrcR','2688120kdcNLB','748657ByPOyY'];a169_0x4bfe=function(){return _0x25be9e;};return a169_0x4bfe();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x3fe187,_0x163e2d){var _0x4a0f3b=a169_0x3b16,_0x1ab3a4=_0x3fe187();while(!![]){try{var _0x52656f=parseInt(_0x4a0f3b(0xb8))/0x1*(parseInt(_0x4a0f3b(0xb3))/0x2)+parseInt(_0x4a0f3b(0xae))/0x3*(parseInt(_0x4a0f3b(0xb0))/0x4)+parseInt(_0x4a0f3b(0xb6))/0x5+parseInt(_0x4a0f3b(0xaf))/0x6+-parseInt(_0x4a0f3b(0xb2))/0x7+-parseInt(_0x4a0f3b(0xb1))/0x8*(-parseInt(_0x4a0f3b(0xb4))/0x9)+-parseInt(_0x4a0f3b(0xb5))/0xa*(parseInt(_0x4a0f3b(0xb7))/0xb);if(_0x52656f===_0x163e2d)break;else _0x1ab3a4['push'](_0x1ab3a4['shift']());}catch(_0x29bee9){_0x1ab3a4['push'](_0x1ab3a4['shift']());}}}(a169_0x560c,0xc45f9));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a169_0x3b16(_0x45b50a,_0x420481){_0x45b50a=_0x45b50a-0xae;var _0x560c7d=a169_0x560c();var _0x3b16c4=_0x560c7d[_0x45b50a];return _0x3b16c4;}function a169_0x560c(){var _0x51ae8c=['16EJeRFT','3609NjtqZY','147270LfncmJ','88965HlJfsT','1881mJUIWi','134735ITfuma','3SNDESn','2683698rRubms','5451688tRzoZZ','20600dFNUAd','4310537ABZQQl'];a169_0x560c=function(){return _0x51ae8c;};return a169_0x560c();}
@@ -1 +1 @@
1
- (function(_0x1872f7,_0x1c6e8b){const _0x29f8bb=a170_0x3093,_0x540500=_0x1872f7();while(!![]){try{const _0x4ffbf7=-parseInt(_0x29f8bb(0x191))/0x1*(-parseInt(_0x29f8bb(0x188))/0x2)+parseInt(_0x29f8bb(0x185))/0x3+-parseInt(_0x29f8bb(0x193))/0x4*(-parseInt(_0x29f8bb(0x18b))/0x5)+parseInt(_0x29f8bb(0x192))/0x6*(-parseInt(_0x29f8bb(0x183))/0x7)+-parseInt(_0x29f8bb(0x181))/0x8*(parseInt(_0x29f8bb(0x18d))/0x9)+-parseInt(_0x29f8bb(0x195))/0xa+-parseInt(_0x29f8bb(0x199))/0xb*(-parseInt(_0x29f8bb(0x186))/0xc);if(_0x4ffbf7===_0x1c6e8b)break;else _0x540500['push'](_0x540500['shift']());}catch(_0x265a94){_0x540500['push'](_0x540500['shift']());}}}(a170_0x521c,0xf172b));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a170_0x521c(){const _0x48c4b6=['alias','\x20api\x20pull`\x20first.','50104bpMEsi','type','1778nUwseC','string','440361kKPvBg','1388688ubuddN','flags','30eeOxeK','Available\x20aliases:\x20','validation','5ZkzNIw','Unknown\x20alias\x20\x22','2736HdFXgp','some','length','name','10655PXdanS','34128YIdTqu','7733216XaejDr','map','12582370pdBgby','code','join','`\x20requires\x20either\x20--code\x20or\x20--alias.','319tLKWVT'];a170_0x521c=function(){return _0x48c4b6;};return a170_0x521c();}function a170_0x3093(_0x524e09,_0x220fcd){_0x524e09=_0x524e09-0x17f;const _0x521ccc=a170_0x521c();let _0x3093a4=_0x521ccc[_0x524e09];return _0x3093a4;}export function resolveAliasToCode(_0x2c9745,_0x356daf,_0x4ce2fb,_0x5eed68){const _0x69544d=a170_0x3093,_0x91d428=_0x2c9745['flags'][_0x69544d(0x18e)](_0x3a93bb=>_0x3a93bb[_0x69544d(0x190)]===_0x69544d(0x196)&&_0x3a93bb[_0x69544d(0x182)]==='string'),_0x203c48=_0x2c9745[_0x69544d(0x187)][_0x69544d(0x18e)](_0x41d1bf=>_0x41d1bf[_0x69544d(0x190)]===_0x69544d(0x17f)&&_0x41d1bf[_0x69544d(0x182)]===_0x69544d(0x184));if(!_0x91d428||!_0x203c48)return;const _0x508575=_0x356daf[_0x69544d(0x196)]?String(_0x356daf[_0x69544d(0x196)]):'',_0x20d557=_0x356daf[_0x69544d(0x17f)]?String(_0x356daf[_0x69544d(0x17f)]):'';if(!_0x508575&&!_0x20d557)throw CliErrors[_0x69544d(0x18a)]('`'+_0x5eed68+_0x69544d(0x198));if(_0x20d557&&!_0x508575){const _0x5af77b=resolveAlias(_0x4ce2fb,_0x20d557);if(!_0x5af77b){const _0x508ce2=listAliases(_0x4ce2fb)[_0x69544d(0x194)](_0x50861b=>_0x50861b['alias']),_0x4b5f12=_0x508ce2[_0x69544d(0x18f)]?_0x69544d(0x189)+_0x508ce2[_0x69544d(0x197)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x4ce2fb+'.\x20Run\x20`'+CLI_BIN_NAME+_0x69544d(0x180);throw CliErrors[_0x69544d(0x18a)](_0x69544d(0x18c)+_0x20d557+'\x22.\x20'+_0x4b5f12);}_0x356daf[_0x69544d(0x196)]=_0x5af77b;}}
1
+ (function(_0x40de38,_0x423ada){const _0x555e0a=a170_0xdbf6,_0x3140a4=_0x40de38();while(!![]){try{const _0x586e88=-parseInt(_0x555e0a(0x1ad))/0x1*(parseInt(_0x555e0a(0x1af))/0x2)+-parseInt(_0x555e0a(0x1a8))/0x3*(parseInt(_0x555e0a(0x1b1))/0x4)+parseInt(_0x555e0a(0x1a1))/0x5*(-parseInt(_0x555e0a(0x1a9))/0x6)+parseInt(_0x555e0a(0x1a0))/0x7+parseInt(_0x555e0a(0x1a2))/0x8*(-parseInt(_0x555e0a(0x1a6))/0x9)+-parseInt(_0x555e0a(0x1b2))/0xa+parseInt(_0x555e0a(0x1a4))/0xb;if(_0x586e88===_0x423ada)break;else _0x3140a4['push'](_0x3140a4['shift']());}catch(_0x70f6e9){_0x3140a4['push'](_0x3140a4['shift']());}}}(a170_0x5139,0xb8c6f));import{CliErrors}from'../errors.js';function a170_0xdbf6(_0x30cefa,_0x444ede){_0x30cefa=_0x30cefa-0x198;const _0x5139be=a170_0x5139();let _0xdbf615=_0x5139be[_0x30cefa];return _0xdbf615;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a170_0x5139(){const _0x2a4785=['85bigWup','808sOmGEN','Unknown\x20alias\x20\x22','31356094ZcCVnb','`\x20requires\x20either\x20--code\x20or\x20--alias.','129501pwoFZU','length','3yLEZkL','70206uMiPJW','alias','some','type','550eYaJGY','map','964RQbcFD','.\x20Run\x20`','1404772HtoBiB','7216190yYFEvB','validation','\x20api\x20pull`\x20first.','No\x20api.ts\x20found\x20in\x20','name','code','flags','\x22.\x20','string','6274877GIisKL'];a170_0x5139=function(){return _0x2a4785;};return a170_0x5139();}export function resolveAliasToCode(_0x49ee1c,_0x337f54,_0x4a7ecd,_0x442568){const _0x1a8977=a170_0xdbf6,_0x1a67e9=_0x49ee1c[_0x1a8977(0x19d)][_0x1a8977(0x1ab)](_0x35f9c8=>_0x35f9c8[_0x1a8977(0x19b)]===_0x1a8977(0x19c)&&_0x35f9c8['type']===_0x1a8977(0x19f)),_0x24d532=_0x49ee1c[_0x1a8977(0x19d)]['some'](_0x2debc0=>_0x2debc0['name']==='alias'&&_0x2debc0[_0x1a8977(0x1ac)]===_0x1a8977(0x19f));if(!_0x1a67e9||!_0x24d532)return;const _0x16ed98=_0x337f54[_0x1a8977(0x19c)]?String(_0x337f54['code']):'',_0x3bc4c2=_0x337f54[_0x1a8977(0x1aa)]?String(_0x337f54['alias']):'';if(!_0x16ed98&&!_0x3bc4c2)throw CliErrors[_0x1a8977(0x198)]('`'+_0x442568+_0x1a8977(0x1a5));if(_0x3bc4c2&&!_0x16ed98){const _0x5e2e5c=resolveAlias(_0x4a7ecd,_0x3bc4c2);if(!_0x5e2e5c){const _0x5ed804=listAliases(_0x4a7ecd)[_0x1a8977(0x1ae)](_0x1a6da2=>_0x1a6da2[_0x1a8977(0x1aa)]),_0x4bbcdc=_0x5ed804[_0x1a8977(0x1a7)]?'Available\x20aliases:\x20'+_0x5ed804['join'](',\x20'):_0x1a8977(0x19a)+_0x4a7ecd+_0x1a8977(0x1b0)+CLI_BIN_NAME+_0x1a8977(0x199);throw CliErrors[_0x1a8977(0x198)](_0x1a8977(0x1a3)+_0x3bc4c2+_0x1a8977(0x19e)+_0x4bbcdc);}_0x337f54[_0x1a8977(0x19c)]=_0x5e2e5c;}}
@@ -1 +1 @@
1
- const a171_0x35702f=a171_0x3c8b;(function(_0x519940,_0x27467e){const _0x1476eb=a171_0x3c8b,_0x88c17=_0x519940();while(!![]){try{const _0xde51ab=parseInt(_0x1476eb(0x8a))/0x1*(-parseInt(_0x1476eb(0x84))/0x2)+parseInt(_0x1476eb(0x85))/0x3+parseInt(_0x1476eb(0x97))/0x4*(-parseInt(_0x1476eb(0x94))/0x5)+parseInt(_0x1476eb(0xa4))/0x6*(-parseInt(_0x1476eb(0x93))/0x7)+parseInt(_0x1476eb(0x88))/0x8*(-parseInt(_0x1476eb(0x92))/0x9)+parseInt(_0x1476eb(0x7f))/0xa*(-parseInt(_0x1476eb(0xa3))/0xb)+-parseInt(_0x1476eb(0x7d))/0xc*(-parseInt(_0x1476eb(0x99))/0xd);if(_0xde51ab===_0x27467e)break;else _0x88c17['push'](_0x88c17['shift']());}catch(_0x5258c1){_0x88c17['push'](_0x88c17['shift']());}}}(a171_0x36f4,0x30d2c));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';function a171_0x36f4(){const _0x1304c1=['High-risk\x20operation\x20`','resolve','⚠\x20\x20High-risk\x20operation:\x20','name','3236913Nyndjs','49LylogY','410iExcbk','Set\x20appcode\x20via\x20`','requiresAppCode','3004kQDrXp','object','1066MOGFJB','authRequired','map','cookie','has','defaultVerbose','defaultApp','command','nonInteractive','schema','1221GWajVx','273558tnCYdT','apps','validation','mergedCli','doctor','riskLevel','appCode','cancelled','includes','explicitAppName','update','filter','resolveApiDomain','resolveCookie','format','_notice','196572SjRxza','selectedAppName','34360WRRetp','\x20\x20\x20Continue?\x20[y/N]\x20','currentApp','requiresAuth','isNonInteractive','789638ZgjMhG','1120029ZYeYaX','service','pretty','8oZBwDr','defaultPageSize','1HCAfif','pageSize','configMissing','../core/api-client.js'];a171_0x36f4=function(){return _0x1304c1;};return a171_0x36f4();}import{isNonInteractive as a171_0x124b40}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';export function createPipelineEnv(_0x1134f9,_0x5c85d2,_0x16372f=[]){const _0x6e8b3e=a171_0x3c8b;return{'rawFlags':_0x5c85d2,'args':_0x16372f,'resolveAppCode':()=>_0x1134f9[_0x6e8b3e(0x73)]||_0x5c85d2['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x1134f9[_0x6e8b3e(0x9c)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x124b40(_0x5c85d2),'defaultFormat':_0x1134f9[_0x6e8b3e(0x7b)],'defaultPageSize':_0x1134f9[_0x6e8b3e(0x8b)],'defaultVerbose':_0x1134f9['verbose'],'apiDir':_0x1134f9['apiDir'],'riskLevel':_0x1134f9[_0x6e8b3e(0x72)],'selectedAppName':_0x1134f9[_0x6e8b3e(0x76)],'mergedCli':{'defaultApp':_0x1134f9[_0x6e8b3e(0x9f)],'currentApp':_0x1134f9[_0x6e8b3e(0x81)],'appCode':_0x1134f9[_0x6e8b3e(0x73)],'apps':_0x1134f9[_0x6e8b3e(0xa5)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x35702f(0x78)](_0xff043f=>PIPELINE_FLAG_NAMES[a171_0x35702f(0x9d)](_0xff043f[a171_0x35702f(0x91)]))[a171_0x35702f(0x9b)](({name:_0x3079be,type:_0x434e2e,description:_0xbc0911})=>({'name':_0x3079be,'type':_0x434e2e,'description':_0xbc0911})),'formatOutput':formatOutput,'getCommandLabel'(_0x597670){const _0x3ec20e=a171_0x35702f;return CLI_BIN_NAME+'\x20'+_0x597670[_0x3ec20e(0x86)]+'\x20'+_0x597670[_0x3ec20e(0xa0)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4e7cae){const _0x2280ef=a171_0x35702f;return CliErrors[_0x2280ef(0xa6)](_0x4e7cae);}},async 'prepare'(_0x407550,_0x2dfec9,_0x372967,_0x2813fc){const _0x4859ec=a171_0x35702f,_0x210bd0=_0x2dfec9['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x407550,_0x372967,_0x210bd0,_0x2813fc);let _0x15ddff='';if(_0x407550[_0x4859ec(0x82)]!==![]){_0x15ddff=_0x2dfec9[_0x4859ec(0x7a)]();if(!_0x15ddff)throw CliErrors[_0x4859ec(0x9a)]();const {setActiveCookie:_0x52a254}=await import(_0x4859ec(0x8d));_0x52a254(_0x15ddff);}const _0x327336=_0x2dfec9['resolveAppCode']()??'';if(_0x407550[_0x4859ec(0x96)]!==![]){if(!_0x327336)throw CliErrors[_0x4859ec(0x8c)](_0x4859ec(0x95)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x2dfec9[_0x4859ec(0x9e)]},'numbers':{'pagesize':_0x2dfec9[_0x4859ec(0x89)]}},'extras':{'appCode':_0x327336,'cookie':_0x15ddff,'apiDomain':_0x2dfec9[_0x4859ec(0x79)](),'apiDir':_0x210bd0,'selectedAppName':_0x2dfec9[_0x4859ec(0x7e)],'mergedCli':_0x2dfec9[_0x4859ec(0xa7)]}};},async 'confirmHighRisk'({env:_0x5c8a6b,commandLabel:_0x4b58e5}){const _0xca3936=a171_0x35702f;if(_0x5c8a6b[_0xca3936(0x83)])throw CliErrors[_0xca3936(0xa6)](_0xca3936(0x8e)+_0x4b58e5+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0xca3936(0x90)+_0x4b58e5,_0xca3936(0x80)],'createCancelledError':_0x5c33b9=>CliErrors[_0xca3936(0x74)](_0x5c33b9)});},async 'finalize'(){const _0x38d183=a171_0x35702f,{clearActiveCookie:_0x585997}=await import(_0x38d183(0x8d));_0x585997();}};export async function runCommand(_0x22bdb9,_0x53b503){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x22bdb9)?withUpdateNotice(_0x22bdb9):_0x22bdb9,_0x53b503,runnerAdapter);}function shouldAttachUpdateNotice(_0xeea821){const _0x2ffe7b=a171_0x35702f;return![_0x2ffe7b(0x77),_0x2ffe7b(0xa2),_0x2ffe7b(0xa8)][_0x2ffe7b(0x75)](_0xeea821[_0x2ffe7b(0x86)]);}function withUpdateNotice(_0x2edf19){return{..._0x2edf19,async 'execute'(_0x4f6db2){const _0x46c88c=a171_0x3c8b,_0x84fadb=shouldResolveUpdateNotice(_0x4f6db2)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x46c88c(0x8f)](null),_0x236b78=await _0x2edf19['execute'](_0x4f6db2);return attachUpdateNotice(_0x236b78,await _0x84fadb);}};}function a171_0x3c8b(_0x5cc735,_0x48e3b4){_0x5cc735=_0x5cc735-0x72;const _0x36f45c=a171_0x36f4();let _0x3c8b9b=_0x36f45c[_0x5cc735];return _0x3c8b9b;}function shouldResolveUpdateNotice(_0x567b60){const _0x2f951f=a171_0x35702f;return _0x567b60[_0x2f951f(0x7b)]===_0x2f951f(0x87)&&!_0x567b60[_0x2f951f(0xa1)];}function attachUpdateNotice(_0x235310,_0xa66bc5){const _0x496610=a171_0x35702f;if(!_0xa66bc5||!_0x235310||typeof _0x235310!==_0x496610(0x98))return _0x235310;const _0x4c6948=_0x235310,_0x7505e5=typeof _0x4c6948[_0x496610(0x7c)]===_0x496610(0x98)&&_0x4c6948[_0x496610(0x7c)]!==null?_0x4c6948[_0x496610(0x7c)]:{};return{..._0x4c6948,'_notice':{..._0x7505e5,'update':_0xa66bc5}};}
1
+ const a171_0x466771=a171_0xb06b;(function(_0x4ad59c,_0x3436df){const _0x4ec621=a171_0xb06b,_0x1b7f46=_0x4ad59c();while(!![]){try{const _0x278797=-parseInt(_0x4ec621(0x1e7))/0x1+parseInt(_0x4ec621(0x1d6))/0x2*(parseInt(_0x4ec621(0x1c1))/0x3)+parseInt(_0x4ec621(0x1c0))/0x4+parseInt(_0x4ec621(0x1e1))/0x5+parseInt(_0x4ec621(0x1e3))/0x6+-parseInt(_0x4ec621(0x1db))/0x7*(-parseInt(_0x4ec621(0x1d1))/0x8)+-parseInt(_0x4ec621(0x1c8))/0x9;if(_0x278797===_0x3436df)break;else _0x1b7f46['push'](_0x1b7f46['shift']());}catch(_0x3c2211){_0x1b7f46['push'](_0x1b7f46['shift']());}}}(a171_0x3e1f,0x1a916));function a171_0xb06b(_0x7ded93,_0xd7a85a){_0x7ded93=_0x7ded93-0x1be;const _0x3e1f5f=a171_0x3e1f();let _0xb06b1a=_0x3e1f5f[_0x7ded93];return _0xb06b1a;}import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';function a171_0x3e1f(){const _0x29243e=['name','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','riskLevel','3153348IVnwMa','format','nonInteractive','map','configMissing','../core/api-client.js','catch','selectedAppName','⚠\x20\x20High-risk\x20operation:\x20','132328IJvXZB','Set\x20appcode\x20via\x20`','validation','defaultPageSize','doctor','68zxWRsx','update','defaultVerbose','_notice','pageSize','49TivUmX','resolveApiDomain','execute','explicitAppName','resolveCookie','verbose','995760RahLNG','service','609390NHEiNQ','appcode','isNonInteractive','appCode','140851WdoyUM','schema','pretty','object','defaultApp','cancelled','High-risk\x20operation\x20`','requiresAppCode','filter','mergedCli','39612ZqXlet','15321xgvAlV','command','authRequired'];a171_0x3e1f=function(){return _0x29243e;};return a171_0x3e1f();}import{isNonInteractive as a171_0x9a7825}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';export function createPipelineEnv(_0x177b4e,_0x4890a5,_0x287986=[]){const _0x2e0d23=a171_0xb06b;return{'rawFlags':_0x4890a5,'args':_0x287986,'resolveAppCode':()=>_0x177b4e[_0x2e0d23(0x1e6)]||_0x4890a5[_0x2e0d23(0x1e4)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x177b4e['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x9a7825(_0x4890a5),'defaultFormat':_0x177b4e[_0x2e0d23(0x1c9)],'defaultPageSize':_0x177b4e[_0x2e0d23(0x1da)],'defaultVerbose':_0x177b4e[_0x2e0d23(0x1e0)],'apiDir':_0x177b4e['apiDir'],'riskLevel':_0x177b4e[_0x2e0d23(0x1c7)],'selectedAppName':_0x177b4e[_0x2e0d23(0x1de)],'mergedCli':{'defaultApp':_0x177b4e[_0x2e0d23(0x1eb)],'currentApp':_0x177b4e['currentApp'],'appCode':_0x177b4e[_0x2e0d23(0x1e6)],'apps':_0x177b4e['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x466771(0x1be)](_0x1cba31=>PIPELINE_FLAG_NAMES['has'](_0x1cba31[a171_0x466771(0x1c4)]))[a171_0x466771(0x1cb)](({name:_0x4c5aff,type:_0x2efd63,description:_0x5b9043})=>({'name':_0x4c5aff,'type':_0x2efd63,'description':_0x5b9043})),'formatOutput':formatOutput,'getCommandLabel'(_0x1761f3){const _0x3216f0=a171_0x466771;return CLI_BIN_NAME+'\x20'+_0x1761f3[_0x3216f0(0x1e2)]+'\x20'+_0x1761f3[_0x3216f0(0x1c2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x10cbd8){const _0xae881c=a171_0x466771;return CliErrors[_0xae881c(0x1d3)](_0x10cbd8);}},async 'prepare'(_0x480233,_0x50e0f6,_0x11d77e,_0x2c7c4a){const _0x40d3bd=a171_0x466771,_0x27336b=_0x50e0f6['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x480233,_0x11d77e,_0x27336b,_0x2c7c4a);let _0x27f3a1='';if(_0x480233['requiresAuth']!==![]){_0x27f3a1=_0x50e0f6[_0x40d3bd(0x1df)]();if(!_0x27f3a1)throw CliErrors[_0x40d3bd(0x1c3)]();const {setActiveCookie:_0x3b2c8e}=await import(_0x40d3bd(0x1cd));_0x3b2c8e(_0x27f3a1);}const _0x244db4=_0x50e0f6['resolveAppCode']()??'';if(_0x480233[_0x40d3bd(0x1ee)]!==![]){if(!_0x244db4)throw CliErrors[_0x40d3bd(0x1cc)](_0x40d3bd(0x1d2)+CLI_BIN_NAME+_0x40d3bd(0x1c5));}return{'defaults':{'booleans':{'verbose':_0x50e0f6[_0x40d3bd(0x1d8)]},'numbers':{'pagesize':_0x50e0f6[_0x40d3bd(0x1d4)]}},'extras':{'appCode':_0x244db4,'cookie':_0x27f3a1,'apiDomain':_0x50e0f6[_0x40d3bd(0x1dc)](),'apiDir':_0x27336b,'selectedAppName':_0x50e0f6[_0x40d3bd(0x1cf)],'mergedCli':_0x50e0f6[_0x40d3bd(0x1bf)]}};},async 'confirmHighRisk'({env:_0x5ec7fe,commandLabel:_0x5c9bf4}){const _0x426546=a171_0x466771;if(_0x5ec7fe[_0x426546(0x1e5)])throw CliErrors['validation'](_0x426546(0x1ed)+_0x5c9bf4+_0x426546(0x1c6));await requireConfirmationPrompt({'lines':[_0x426546(0x1d0)+_0x5c9bf4,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x302da6=>CliErrors[_0x426546(0x1ec)](_0x302da6)});},async 'finalize'(){const _0x4cd2b2=a171_0x466771,{clearActiveCookie:_0x3a394f}=await import(_0x4cd2b2(0x1cd));_0x3a394f();}};export async function runCommand(_0x29b586,_0x555cfc){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x29b586)?withUpdateNotice(_0x29b586):_0x29b586,_0x555cfc,runnerAdapter);}function shouldAttachUpdateNotice(_0x400561){const _0x35fa9b=a171_0x466771;return![_0x35fa9b(0x1d7),_0x35fa9b(0x1e8),_0x35fa9b(0x1d5)]['includes'](_0x400561[_0x35fa9b(0x1e2)]);}function withUpdateNotice(_0x43e4af){return{..._0x43e4af,async 'execute'(_0x3dccd4){const _0x2e66c5=a171_0xb06b,_0x299a53=shouldResolveUpdateNotice(_0x3dccd4)?resolveLatestUpdateNotice()[_0x2e66c5(0x1ce)](()=>null):Promise['resolve'](null),_0x205f13=await _0x43e4af[_0x2e66c5(0x1dd)](_0x3dccd4);return attachUpdateNotice(_0x205f13,await _0x299a53);}};}function shouldResolveUpdateNotice(_0x2c07d1){const _0x445222=a171_0x466771;return _0x2c07d1['format']===_0x445222(0x1e9)&&!_0x2c07d1[_0x445222(0x1ca)];}function attachUpdateNotice(_0x7543d0,_0x18a095){const _0x23f260=a171_0x466771;if(!_0x18a095||!_0x7543d0||typeof _0x7543d0!==_0x23f260(0x1ea))return _0x7543d0;const _0x4dd37f=_0x7543d0,_0x4e4182=typeof _0x4dd37f['_notice']===_0x23f260(0x1ea)&&_0x4dd37f[_0x23f260(0x1d9)]!==null?_0x4dd37f[_0x23f260(0x1d9)]:{};return{..._0x4dd37f,'_notice':{..._0x4e4182,'update':_0x18a095}};}
@@ -1 +1 @@
1
- (function(_0x1f1f36,_0x587854){const _0xec30e6=a172_0x727c,_0xd63362=_0x1f1f36();while(!![]){try{const _0x1704a9=parseInt(_0xec30e6(0x168))/0x1*(parseInt(_0xec30e6(0x173))/0x2)+-parseInt(_0xec30e6(0x16a))/0x3*(-parseInt(_0xec30e6(0x171))/0x4)+parseInt(_0xec30e6(0x170))/0x5*(-parseInt(_0xec30e6(0x16c))/0x6)+parseInt(_0xec30e6(0x169))/0x7*(-parseInt(_0xec30e6(0x166))/0x8)+parseInt(_0xec30e6(0x16d))/0x9*(-parseInt(_0xec30e6(0x172))/0xa)+parseInt(_0xec30e6(0x167))/0xb+parseInt(_0xec30e6(0x16b))/0xc*(-parseInt(_0xec30e6(0x16f))/0xd);if(_0x1704a9===_0x587854)break;else _0xd63362['push'](_0xd63362['shift']());}catch(_0x4b86b3){_0xd63362['push'](_0xd63362['shift']());}}}(a172_0x243a,0x5242f));import{buildSchemaPayload as a172_0x44561d}from'@lovrabet/cli-framework';function a172_0x727c(_0x15597f,_0xedd2cd){_0x15597f=_0x15597f-0x166;const _0x243ad2=a172_0x243a();let _0x727c7e=_0x243ad2[_0x15597f];return _0x727c7e;}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 _0x15bb7b=a172_0x727c,{serviceRegistry:_0x380893,findDefinition:_0x2fd913}=await import(_0x15bb7b(0x16e));return a172_0x44561d({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x380893,'buildAllFlags':buildAllFlags,'findDefinition':_0x2fd913});}function a172_0x243a(){const _0x2bedc7=['1123829YhuwAR','6cyUiSD','4258932PVIPLe','6WbhsgE','131391GUkyTQ','../commands/registry.js','13AdaCdA','1760170aLKPxC','1123916KpKqXc','110QLrzGD','975336rBuYzg','24TGvhas','7001412iVLVsy','1VLLlQO'];a172_0x243a=function(){return _0x2bedc7;};return a172_0x243a();}
1
+ (function(_0x5214c9,_0x258c3f){const _0x3e0fca=a172_0x26b6,_0x943f88=_0x5214c9();while(!![]){try{const _0x2a09c2=-parseInt(_0x3e0fca(0x170))/0x1*(-parseInt(_0x3e0fca(0x175))/0x2)+parseInt(_0x3e0fca(0x171))/0x3*(-parseInt(_0x3e0fca(0x16c))/0x4)+parseInt(_0x3e0fca(0x172))/0x5*(-parseInt(_0x3e0fca(0x16e))/0x6)+-parseInt(_0x3e0fca(0x16f))/0x7*(parseInt(_0x3e0fca(0x16a))/0x8)+parseInt(_0x3e0fca(0x173))/0x9+parseInt(_0x3e0fca(0x16d))/0xa+parseInt(_0x3e0fca(0x174))/0xb;if(_0x2a09c2===_0x258c3f)break;else _0x943f88['push'](_0x943f88['shift']());}catch(_0x408384){_0x943f88['push'](_0x943f88['shift']());}}}(a172_0x5df2,0x38525));function a172_0x26b6(_0x1478a6,_0x22859e){_0x1478a6=_0x1478a6-0x16a;const _0x5df2db=a172_0x5df2();let _0x26b674=_0x5df2db[_0x1478a6];return _0x26b674;}import{buildSchemaPayload as a172_0x1a9a3f}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a172_0x5df2(){const _0x3b7047=['2736819vvMZnc','3150719AGTcRk','10ToOkso','56vPKdOI','../commands/registry.js','8VqBtpy','446490qZMgNW','6lLGksM','322931uvDpwV','14159JlLNiY','110601oxLhEb','393030uTYapZ'];a172_0x5df2=function(){return _0x3b7047;};return a172_0x5df2();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4d128b=a172_0x26b6,{serviceRegistry:_0x7aed80,findDefinition:_0x52ae66}=await import(_0x4d128b(0x16b));return a172_0x1a9a3f({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x7aed80,'buildAllFlags':buildAllFlags,'findDefinition':_0x52ae66});}
@@ -1 +1 @@
1
- function a173_0x40b7(_0x42ba9c,_0x1d78b1){_0x42ba9c=_0x42ba9c-0x110;var _0x4b304a=a173_0x4b30();var _0x40b725=_0x4b304a[_0x42ba9c];return _0x40b725;}(function(_0x4b6bfa,_0x114803){var _0x5958b3=a173_0x40b7,_0x495dec=_0x4b6bfa();while(!![]){try{var _0xb4efa5=parseInt(_0x5958b3(0x112))/0x1*(parseInt(_0x5958b3(0x110))/0x2)+parseInt(_0x5958b3(0x117))/0x3+parseInt(_0x5958b3(0x111))/0x4*(-parseInt(_0x5958b3(0x116))/0x5)+parseInt(_0x5958b3(0x114))/0x6+parseInt(_0x5958b3(0x119))/0x7+-parseInt(_0x5958b3(0x118))/0x8+parseInt(_0x5958b3(0x115))/0x9*(-parseInt(_0x5958b3(0x113))/0xa);if(_0xb4efa5===_0x114803)break;else _0x495dec['push'](_0x495dec['shift']());}catch(_0x2b0433){_0x495dec['push'](_0x495dec['shift']());}}}(a173_0x4b30,0x81425));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a173_0x4b30(){var _0x40788d=['5346612ayRfSm','99xmpKni','5OyvXBc','2056914GtZKit','1231976ankuXM','6197219ppnnIx','16THtQBv','1954572kdBUje','96621sRYyNy','1875400jcLjoS'];a173_0x4b30=function(){return _0x40788d;};return a173_0x4b30();}
1
+ (function(_0x3c20b3,_0x1ccbfb){var _0x2e13b6=a173_0xc967,_0x2a1144=_0x3c20b3();while(!![]){try{var _0x3c28f6=parseInt(_0x2e13b6(0xbc))/0x1*(parseInt(_0x2e13b6(0xbb))/0x2)+parseInt(_0x2e13b6(0xb9))/0x3+-parseInt(_0x2e13b6(0xbd))/0x4*(parseInt(_0x2e13b6(0xb7))/0x5)+parseInt(_0x2e13b6(0xc2))/0x6*(-parseInt(_0x2e13b6(0xbf))/0x7)+parseInt(_0x2e13b6(0xc0))/0x8*(-parseInt(_0x2e13b6(0xbe))/0x9)+parseInt(_0x2e13b6(0xba))/0xa*(-parseInt(_0x2e13b6(0xb8))/0xb)+parseInt(_0x2e13b6(0xc1))/0xc;if(_0x3c28f6===_0x1ccbfb)break;else _0x2a1144['push'](_0x2a1144['shift']());}catch(_0x4b44b9){_0x2a1144['push'](_0x2a1144['shift']());}}}(a173_0x23dc,0x75f4f));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a173_0xc967(_0x27f609,_0x4f6624){_0x27f609=_0x27f609-0xb7;var _0x23dc49=a173_0x23dc();var _0xc9679d=_0x23dc49[_0x27f609];return _0xc9679d;}function a173_0x23dc(){var _0x536515=['752085eccmCE','77RAWuZj','1505175aCFXCB','1049340elxTwr','1103384bSQPWK','1NhqTEV','12ZNGhjO','294228UYfSkK','504VtYxBb','232deuABt','27942228cFQrfw','63744xzGGbG'];a173_0x23dc=function(){return _0x536515;};return a173_0x23dc();}
@@ -1 +1 @@
1
- const a174_0x3ddf44=a174_0x57d9;(function(_0x2d097a,_0x15f774){const _0x476a80=a174_0x57d9,_0x2a2b60=_0x2d097a();while(!![]){try{const _0xd8a886=parseInt(_0x476a80(0x186))/0x1+parseInt(_0x476a80(0x183))/0x2*(-parseInt(_0x476a80(0x189))/0x3)+-parseInt(_0x476a80(0x188))/0x4+parseInt(_0x476a80(0x184))/0x5+parseInt(_0x476a80(0x182))/0x6*(parseInt(_0x476a80(0x180))/0x7)+-parseInt(_0x476a80(0x187))/0x8*(parseInt(_0x476a80(0x18a))/0x9)+-parseInt(_0x476a80(0x181))/0xa;if(_0xd8a886===_0x15f774)break;else _0x2a2b60['push'](_0x2a2b60['shift']());}catch(_0x545084){_0x2a2b60['push'](_0x2a2b60['shift']());}}}(a174_0x3276,0x6047a));function a174_0x57d9(_0x1a3d0b,_0x2b3a21){_0x1a3d0b=_0x1a3d0b-0x17f;const _0x327622=a174_0x3276();let _0x57d9a2=_0x327622[_0x1a3d0b];return _0x57d9a2;}export const VERSION=a174_0x3ddf44(0x17f);export const GIT_TAG=a174_0x3ddf44(0x185);function a174_0x3276(){const _0x357776=['63390mcXqem','482sGVDRM','1905875ctostM','v2.1.14-beta.3','85107dvMMUw','482960MSfPiO','1145236vNdqlb','1563ERyNZh','9LWFyzG','2.2.0-beta.1','371oohlkj','1596250Hkukxw'];a174_0x3276=function(){return _0x357776;};return a174_0x3276();}export const GIT_COMMIT='a3a6b69';export const BUILD_TIME='2026-06-11T08:31:23.680Z';
1
+ const a174_0x330f05=a174_0x4468;(function(_0x5b50ac,_0x358493){const _0x21e33c=a174_0x4468,_0x203a6c=_0x5b50ac();while(!![]){try{const _0x4754b3=-parseInt(_0x21e33c(0xbd))/0x1+parseInt(_0x21e33c(0xb6))/0x2+parseInt(_0x21e33c(0xb5))/0x3*(-parseInt(_0x21e33c(0xb8))/0x4)+-parseInt(_0x21e33c(0xb9))/0x5*(parseInt(_0x21e33c(0xbb))/0x6)+parseInt(_0x21e33c(0xb7))/0x7+-parseInt(_0x21e33c(0xbc))/0x8+parseInt(_0x21e33c(0xb4))/0x9;if(_0x4754b3===_0x358493)break;else _0x203a6c['push'](_0x203a6c['shift']());}catch(_0x2ded96){_0x203a6c['push'](_0x203a6c['shift']());}}}(a174_0x1f46,0x89d9b));function a174_0x1f46(){const _0x37e6f0=['6UqQKSh','252000XwUlMr','19517vQOvkw','2.2.0','a3a6b69','8782200DSGIsU','12924vBksRi','379894vxjOyO','6783280PEsnQo','968kzIloS','2382995iZrruF','v2.2.0-beta.1'];a174_0x1f46=function(){return _0x37e6f0;};return a174_0x1f46();}export const VERSION=a174_0x330f05(0xbe);export const GIT_TAG=a174_0x330f05(0xba);export const GIT_COMMIT=a174_0x330f05(0xbf);function a174_0x4468(_0xeeba50,_0x227e91){_0xeeba50=_0xeeba50-0xb4;const _0x1f46a3=a174_0x1f46();let _0x446847=_0x1f46a3[_0xeeba50];return _0x446847;}export const BUILD_TIME='2026-06-11T08:59:05.741Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a175_0x534e(_0x57b95d,_0x12f001){_0x57b95d=_0x57b95d-0xdf;var _0x2efb68=a175_0x2efb();var _0x534eee=_0x2efb68[_0x57b95d];return _0x534eee;}(function(_0x40f6b2,_0x3099a3){var _0x318955=a175_0x534e,_0x4733f0=_0x40f6b2();while(!![]){try{var _0x2d0b47=parseInt(_0x318955(0xe0))/0x1+parseInt(_0x318955(0xdf))/0x2*(parseInt(_0x318955(0xe8))/0x3)+-parseInt(_0x318955(0xeb))/0x4+-parseInt(_0x318955(0xe3))/0x5+parseInt(_0x318955(0xe5))/0x6+parseInt(_0x318955(0xe4))/0x7*(parseInt(_0x318955(0xec))/0x8)+-parseInt(_0x318955(0xe2))/0x9*(-parseInt(_0x318955(0xe7))/0xa);if(_0x2d0b47===_0x3099a3)break;else _0x4733f0['push'](_0x4733f0['shift']());}catch(_0xbff1c){_0x4733f0['push'](_0x4733f0['shift']());}}}(a175_0x2efb,0x76f50));import a175_0x409550 from'chalk';function a175_0x2efb(){var _0x14fa43=['\x20to\x20view\x20available\x20commands.','24921tYTgcT','815140xWuHPI','275261crsmDA','428166jEFGwz','bold','830YreIki','15bmaDRq','\x20--help','green','2737808knBVdP','8cEsffv','log','318238IheODI','198622hdicfE'];a175_0x2efb=function(){return _0x14fa43;};return a175_0x2efb();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4a9a69=a175_0x534e;console[_0x4a9a69(0xed)](),console[_0x4a9a69(0xed)](a175_0x409550[_0x4a9a69(0xea)][_0x4a9a69(0xe6)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4a9a69(0xed)](),console['log']('\x20\x20Use\x20'+a175_0x409550[_0x4a9a69(0xea)][_0x4a9a69(0xe6)](CLI_BIN_NAME+_0x4a9a69(0xe9))+_0x4a9a69(0xe1)),console[_0x4a9a69(0xed)]();}
1
+ (function(_0x4a625a,_0x139a44){var _0x2cb5ca=a175_0x3403,_0x39ca3d=_0x4a625a();while(!![]){try{var _0x3a86f0=-parseInt(_0x2cb5ca(0x16f))/0x1+-parseInt(_0x2cb5ca(0x16e))/0x2+parseInt(_0x2cb5ca(0x170))/0x3*(-parseInt(_0x2cb5ca(0x175))/0x4)+-parseInt(_0x2cb5ca(0x169))/0x5*(parseInt(_0x2cb5ca(0x16a))/0x6)+parseInt(_0x2cb5ca(0x168))/0x7+parseInt(_0x2cb5ca(0x167))/0x8+parseInt(_0x2cb5ca(0x172))/0x9*(parseInt(_0x2cb5ca(0x173))/0xa);if(_0x3a86f0===_0x139a44)break;else _0x39ca3d['push'](_0x39ca3d['shift']());}catch(_0x29ff39){_0x39ca3d['push'](_0x39ca3d['shift']());}}}(a175_0x14be,0xaa947));import a175_0xd7672b from'chalk';function a175_0x3403(_0x2d894a,_0x153560){_0x2d894a=_0x2d894a-0x166;var _0x14be1a=a175_0x14be();var _0x34034b=_0x14be1a[_0x2d894a];return _0x34034b;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x25b610=a175_0x3403;console[_0x25b610(0x16c)](),console[_0x25b610(0x16c)](a175_0xd7672b[_0x25b610(0x16b)][_0x25b610(0x174)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x25b610(0x16c)](),console['log'](_0x25b610(0x16d)+a175_0xd7672b['green'][_0x25b610(0x174)](CLI_BIN_NAME+_0x25b610(0x166))+_0x25b610(0x171)),console[_0x25b610(0x16c)]();}function a175_0x14be(){var _0x360888=['5664280GWsXSq','bold','45696feGpBv','\x20--help','263480CKERvP','2260839hyQLEC','2083805THVKFb','18Ndduwg','green','log','\x20\x20Use\x20','1324620qvNqbC','996560llVSDL','336hgxcyj','\x20to\x20view\x20available\x20commands.','72GFYguX'];a175_0x14be=function(){return _0x360888;};return a175_0x14be();}
@@ -1 +1 @@
1
- (function(_0x517e02,_0x20fbb5){const _0x212f59=a176_0x2f13,_0x3690bd=_0x517e02();while(!![]){try{const _0x359509=parseInt(_0x212f59(0x1da))/0x1+parseInt(_0x212f59(0x1e6))/0x2+-parseInt(_0x212f59(0x1db))/0x3*(parseInt(_0x212f59(0x1d3))/0x4)+parseInt(_0x212f59(0x1cc))/0x5*(parseInt(_0x212f59(0x1dd))/0x6)+parseInt(_0x212f59(0x1cb))/0x7+-parseInt(_0x212f59(0x1d4))/0x8+-parseInt(_0x212f59(0x1e1))/0x9;if(_0x359509===_0x20fbb5)break;else _0x3690bd['push'](_0x3690bd['shift']());}catch(_0x2f7a79){_0x3690bd['push'](_0x3690bd['shift']());}}}(a176_0x26e6,0xcc0dd));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(_0x32d7f4){const _0x3d1af3=a176_0x2f13,_0x354f7b=[];for(const [_0x6cf436,_0x20adfa]of Object[_0x3d1af3(0x1d6)](_0x32d7f4)){if(_0x20adfa===!![]){const _0x504025=_0x6cf436['replace'](/([A-Z])/g,_0x3d1af3(0x1e3))[_0x3d1af3(0x1d2)]();_0x354f7b[_0x3d1af3(0x1e9)](_0x504025);}}return _0x354f7b;}export function parseDynamicFlags(){const _0x3b96cf=a176_0x2f13,_0x2ca8d4=[];for(let _0xffa818=0x3;_0xffa818<process[_0x3b96cf(0x1de)][_0x3b96cf(0x1c9)];_0xffa818++){const _0x1919d7=process[_0x3b96cf(0x1de)][_0xffa818];if(_0x1919d7&&_0x1919d7[_0x3b96cf(0x1d8)]('--')){const _0x3f93f9=_0x1919d7[_0x3b96cf(0x1ea)](0x2);_0x3f93f9&&!_0x3f93f9[_0x3b96cf(0x1d9)]('=')&&_0x2ca8d4[_0x3b96cf(0x1e9)](_0x3f93f9);}}return _0x2ca8d4;}export function getAllProvidedFlags(_0x2d87ab){const _0x911f04=a176_0x2f13,_0x457e00=camelCaseFlagsToKebab(_0x2d87ab),_0x20d132=parseDynamicFlags(),_0x464501=new Set([..._0x457e00,..._0x20d132]);return Array[_0x911f04(0x1d1)](_0x464501);}export function normalizeLegacyBffSaveFlags(_0x5cc3e5){const _0x376c1e=a176_0x2f13,_0x58e305=new Set(_0x5cc3e5);return _0x58e305['has'](_0x376c1e(0x1d7))&&_0x58e305['add'](_0x376c1e(0x1ec)),Array[_0x376c1e(0x1d1)](_0x58e305);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x285c9b,_0x12ae52,_0x1bea4a){const _0xd425cb=a176_0x2f13;logger[_0xd425cb(0x1eb)](process[_0xd425cb(0x1e0)]());if(_0x1bea4a?.['help']||_0x285c9b===_0xd425cb(0x1e2)){showHelp();return;}console[_0xd425cb(0x1cf)]('Error:\x20Unsupported\x20command:\x20'+(_0x285c9b||_0xd425cb(0x1e8))),console[_0xd425cb(0x1ca)](_0xd425cb(0x1df)),console[_0xd425cb(0x1ca)]('\x20\x20'+CLI_BIN_NAME+_0xd425cb(0x1e7)),console[_0xd425cb(0x1ca)]('\x20\x20'+CLI_BIN_NAME+_0xd425cb(0x1d5)),console[_0xd425cb(0x1ca)](''),console[_0xd425cb(0x1ca)](_0xd425cb(0x1cd)+SKILLS_INSTALL_COMMAND_LINE),logger[_0xd425cb(0x1cf)](_0xd425cb(0x1ce),_0xd425cb(0x1dc)+_0x285c9b),process[_0xd425cb(0x1e5)](0x1);}function a176_0x2f13(_0x45945a,_0x39e7b5){_0x45945a=_0x45945a-0x1c9;const _0x26e63a=a176_0x26e6();let _0x2f1333=_0x26e63a[_0x45945a];return _0x2f1333;}function a176_0x26e6(){const _0x308f13=['3152138oOfrrd','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','(empty)','push','slice','setLogPath','enable-bff-save','length','log','10341219AiQnOG','1181735BpUqTs','Equivalent\x20command:\x20','skill','error','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','from','toLowerCase','3415764AbRCoe','12476496SPDSkG','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','entries','dangerously-bff-save','startsWith','includes','1596750HVuuIs','3hoMOiE','不支持的命令:\x20','30KiZOVC','argv','\x0aAvailable\x20commands:','cwd','23243067iwrRMh','--help','-$1','\x20skill\x20--help\x0a\x20\x20','exit'];a176_0x26e6=function(){return _0x308f13;};return a176_0x26e6();}function showHelp(){const _0x1a381d=a176_0x2f13;console[_0x1a381d(0x1ca)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x1a381d(0x1e4)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1a381d(0x1d0));}
1
+ (function(_0x213893,_0x11eed9){const _0x328836=a176_0x547f,_0x2ab856=_0x213893();while(!![]){try{const _0x302e3a=-parseInt(_0x328836(0x19c))/0x1*(parseInt(_0x328836(0x186))/0x2)+parseInt(_0x328836(0x182))/0x3+-parseInt(_0x328836(0x18a))/0x4+-parseInt(_0x328836(0x198))/0x5+-parseInt(_0x328836(0x193))/0x6+parseInt(_0x328836(0x184))/0x7+parseInt(_0x328836(0x185))/0x8;if(_0x302e3a===_0x11eed9)break;else _0x2ab856['push'](_0x2ab856['shift']());}catch(_0x50a670){_0x2ab856['push'](_0x2ab856['shift']());}}}(a176_0x1b95,0xaa729));import{logger}from'../utils/logger.js';function a176_0x1b95(){const _0x4d4f31=['includes','Equivalent\x20command:\x20','--help','has','push','270456NgpZPd','exit','2618112zEpRpm','25107728qwqlTA','595240WjockO','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','-$1','log','5438456rjBXnA','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','\x20skill\x20--help\x0a\x20\x20','setLogPath','slice','from','dangerously-bff-save','不支持的命令:\x20','3568242QlVYqw','\x0aAvailable\x20commands:','cwd','argv','error','3262700kHWqYE','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','skill','replace','1oBnyCz'];a176_0x1b95=function(){return _0x4d4f31;};return a176_0x1b95();}import{CLI_BIN_NAME}from'../constant/cli.js';function a176_0x547f(_0x3e3982,_0x195075){_0x3e3982=_0x3e3982-0x17d;const _0x1b9570=a176_0x1b95();let _0x547faa=_0x1b9570[_0x3e3982];return _0x547faa;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x299cf){const _0x5a98fe=a176_0x547f,_0x3458a3=[];for(const [_0x3e11a5,_0x3f103c]of Object['entries'](_0x299cf)){if(_0x3f103c===!![]){const _0x92ca48=_0x3e11a5[_0x5a98fe(0x19b)](/([A-Z])/g,_0x5a98fe(0x188))['toLowerCase']();_0x3458a3[_0x5a98fe(0x181)](_0x92ca48);}}return _0x3458a3;}export function parseDynamicFlags(){const _0x25bfca=a176_0x547f,_0x42ea37=[];for(let _0x22b92c=0x3;_0x22b92c<process[_0x25bfca(0x196)]['length'];_0x22b92c++){const _0x8e7d3e=process[_0x25bfca(0x196)][_0x22b92c];if(_0x8e7d3e&&_0x8e7d3e['startsWith']('--')){const _0x35130e=_0x8e7d3e[_0x25bfca(0x18f)](0x2);_0x35130e&&!_0x35130e[_0x25bfca(0x17d)]('=')&&_0x42ea37['push'](_0x35130e);}}return _0x42ea37;}export function getAllProvidedFlags(_0x3fff4c){const _0x128633=a176_0x547f,_0x178f1e=camelCaseFlagsToKebab(_0x3fff4c),_0x2160e5=parseDynamicFlags(),_0x3ec0ee=new Set([..._0x178f1e,..._0x2160e5]);return Array[_0x128633(0x190)](_0x3ec0ee);}export function normalizeLegacyBffSaveFlags(_0x78118){const _0x1f1673=a176_0x547f,_0x545810=new Set(_0x78118);return _0x545810[_0x1f1673(0x180)](_0x1f1673(0x191))&&_0x545810['add']('enable-bff-save'),Array[_0x1f1673(0x190)](_0x545810);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x43964e,_0x534b55,_0x4ab919){const _0x27fc86=a176_0x547f;logger[_0x27fc86(0x18e)](process[_0x27fc86(0x195)]());if(_0x4ab919?.['help']||_0x43964e===_0x27fc86(0x17f)){showHelp();return;}console[_0x27fc86(0x197)]('Error:\x20Unsupported\x20command:\x20'+(_0x43964e||'(empty)')),console[_0x27fc86(0x189)](_0x27fc86(0x194)),console[_0x27fc86(0x189)]('\x20\x20'+CLI_BIN_NAME+_0x27fc86(0x187)),console[_0x27fc86(0x189)]('\x20\x20'+CLI_BIN_NAME+_0x27fc86(0x18b)),console['log'](''),console['log'](_0x27fc86(0x17e)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x27fc86(0x19a),_0x27fc86(0x192)+_0x43964e),process[_0x27fc86(0x183)](0x1);}function showHelp(){const _0x13ccba=a176_0x547f;console['log']('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x13ccba(0x18d)+CLI_BIN_NAME+_0x13ccba(0x199)+SKILLS_INSTALL_COMMAND_LINE+_0x13ccba(0x18c));}
@@ -1 +1 @@
1
- const a177_0x3aac95=a177_0x26c1;(function(_0x4b7784,_0x52fd3f){const _0x54a60c=a177_0x26c1,_0x5c7433=_0x4b7784();while(!![]){try{const _0x502c73=parseInt(_0x54a60c(0x163))/0x1+parseInt(_0x54a60c(0x15b))/0x2+-parseInt(_0x54a60c(0x169))/0x3+parseInt(_0x54a60c(0x168))/0x4*(-parseInt(_0x54a60c(0x16b))/0x5)+-parseInt(_0x54a60c(0x15d))/0x6+-parseInt(_0x54a60c(0x157))/0x7+parseInt(_0x54a60c(0x154))/0x8;if(_0x502c73===_0x52fd3f)break;else _0x5c7433['push'](_0x5c7433['shift']());}catch(_0xa2ba4b){_0x5c7433['push'](_0x5c7433['shift']());}}}(a177_0x487f,0xe5a13));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=a177_0x3aac95(0x162);export const NPX_SKILLS_SUBCOMMAND_ADD=a177_0x3aac95(0x160);export const NPX_SKILLS_FLAG_SKILL=a177_0x3aac95(0x16f);function a177_0x487f(){const _0xe65f4e=['skills','1392027YiEGHz','stderr','inherit','lovrabet/rabetbase','exit\x20','4FZWEqi','5224329MJkdQT','yes','6746010KWyXCP','npx','unknown','stdio','--skill','log','toString','27446872NOeMnn','lovrabet/lovrabet-skill','join','3014214tpaqmE','pipe','skill','push','2391420PHEHJU','Lovrabet','9340716pfgLbu','stdout','trim','add','status'];a177_0x487f=function(){return _0xe65f4e;};return a177_0x487f();}export const RABETBASE_SKILL_SOURCE=a177_0x3aac95(0x166);export const LEGACY_RABETBASE_SKILL_SOURCE=a177_0x3aac95(0x155);function a177_0x26c1(_0x5240a1,_0x14e6cf){_0x5240a1=_0x5240a1-0x154;const _0x487f60=a177_0x487f();let _0x26c17d=_0x487f60[_0x5240a1];return _0x26c17d;}export const DEFAULT_RABETBASE_SKILL_NAME=a177_0x3aac95(0x15c);export function buildNpxSkillsAddArgv(_0x36ec74){const _0x12c2b7=a177_0x3aac95,_0x4c9682=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x36ec74&&_0x4c9682[_0x12c2b7(0x15a)](NPX_SKILLS_FLAG_SKILL,_0x36ec74),_0x4c9682;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x3aac95(0x16c),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x15fd3c,_0x3e88b6){const _0x25be2c=a177_0x3aac95;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1a5c2f=_0x3e88b6?.['stdio']??'inherit',_0x227a0b=resolveNpmBin('npx'),_0x37fdc2=buildNpxSkillsAddArgv(_0x3e88b6?.[_0x25be2c(0x159)]),_0x53e06e=[_0x25be2c(0x16c),..._0x37fdc2]['join']('\x20');console[_0x25be2c(0x170)]('*\x20'+_0x53e06e);const _0x44410a=spawnSync(_0x227a0b,_0x37fdc2,{'cwd':_0x15fd3c,'stdio':_0x1a5c2f,'env':process.env,'shell':![]}),_0x3b5f3d=_0x44410a[_0x25be2c(0x161)];if(_0x3b5f3d===0x0)return{'ok':!![],'status':0x0};let _0x2ed365=_0x25be2c(0x167)+(_0x3b5f3d??_0x25be2c(0x16d));if(_0x1a5c2f===_0x25be2c(0x158)){const _0x4f7a23=_0x44410a[_0x25be2c(0x164)]?_0x44410a['stderr'][_0x25be2c(0x171)]()['trim']():'',_0xdeab3b=_0x44410a[_0x25be2c(0x15e)]?_0x44410a[_0x25be2c(0x15e)][_0x25be2c(0x171)]()[_0x25be2c(0x15f)]():'';if(_0x4f7a23)_0x2ed365=_0x4f7a23;else{if(_0xdeab3b)_0x2ed365=_0xdeab3b;}}return{'ok':![],'status':_0x3b5f3d??null,'error':_0x2ed365};}export function runNpxSkillsRemove(_0x3c0401,_0x42287b,_0x37ea4d=LEGACY_RABETBASE_SKILL_SOURCE){const _0x3a66eb=a177_0x3aac95;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57d198=_0x42287b?.[_0x3a66eb(0x16e)]??'inherit',_0xf32acf=resolveNpmBin(_0x3a66eb(0x16c)),_0x3651cd=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x37ea4d,NPX_SKILLS_FLAG_SKILL,_0x42287b?.[_0x3a66eb(0x159)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x42287b?.[_0x3a66eb(0x16a)]?['-y']:[]],_0x311f6e=[_0xf32acf,..._0x3651cd][_0x3a66eb(0x156)]('\x20');console[_0x3a66eb(0x170)]('*\x20'+_0x311f6e);const _0x4f1d7b=spawnSync(_0xf32acf,_0x3651cd,{'cwd':_0x3c0401,'stdio':_0x57d198,'env':process.env,'shell':![]}),_0x13a670=_0x4f1d7b[_0x3a66eb(0x161)];if(_0x13a670===0x0)return{'ok':!![],'status':0x0};let _0x50485e=_0x3a66eb(0x167)+(_0x13a670??'unknown');if(_0x57d198==='pipe'){const _0x270861=_0x4f1d7b[_0x3a66eb(0x164)]?_0x4f1d7b[_0x3a66eb(0x164)][_0x3a66eb(0x171)]()['trim']():'',_0x56fa16=_0x4f1d7b['stdout']?_0x4f1d7b[_0x3a66eb(0x15e)][_0x3a66eb(0x171)]()[_0x3a66eb(0x15f)]():'';if(_0x270861)_0x50485e=_0x270861;else{if(_0x56fa16)_0x50485e=_0x56fa16;}}return{'ok':![],'status':_0x13a670??null,'error':_0x50485e};}export function runNpxSkillsAddGlobal(_0x1f3a4b,_0x5ddc97,_0x5b930e){const _0x835d55=a177_0x3aac95;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4ea9ea=_0x5b930e?.[_0x835d55(0x16e)]??_0x835d55(0x165),_0x258809=resolveNpmBin('npx'),_0x451fc9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5ddc97,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3f8421=[_0x835d55(0x16c),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5ddc97,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x835d55(0x156)]('\x20');console[_0x835d55(0x170)]('*\x20'+_0x3f8421);const _0x435876=spawnSync(_0x258809,_0x451fc9,{'cwd':_0x1f3a4b,'stdio':_0x4ea9ea,'env':process.env,'shell':![]}),_0x508951=_0x435876[_0x835d55(0x161)];if(_0x508951===0x0)return{'ok':!![],'status':0x0};let _0x2e04b8=_0x835d55(0x167)+(_0x508951??_0x835d55(0x16d));if(_0x4ea9ea===_0x835d55(0x158)){const _0x2a2b4b=_0x435876[_0x835d55(0x164)]?_0x435876[_0x835d55(0x164)][_0x835d55(0x171)]()[_0x835d55(0x15f)]():'',_0x10eb0e=_0x435876[_0x835d55(0x15e)]?_0x435876[_0x835d55(0x15e)][_0x835d55(0x171)]()[_0x835d55(0x15f)]():'';if(_0x2a2b4b)_0x2e04b8=_0x2a2b4b;else{if(_0x10eb0e)_0x2e04b8=_0x10eb0e;}}return{'ok':![],'status':_0x508951??null,'error':_0x2e04b8};}
1
+ function a177_0x1ceb(_0x335dc7,_0x3cf440){_0x335dc7=_0x335dc7-0x16d;const _0x3ff3b0=a177_0x3ff3();let _0x1cebe4=_0x3ff3b0[_0x335dc7];return _0x1cebe4;}const a177_0x4e0043=a177_0x1ceb;(function(_0x56dd65,_0x34abd7){const _0x33591e=a177_0x1ceb,_0x27ac51=_0x56dd65();while(!![]){try{const _0x43b64a=-parseInt(_0x33591e(0x17a))/0x1*(-parseInt(_0x33591e(0x181))/0x2)+-parseInt(_0x33591e(0x187))/0x3*(parseInt(_0x33591e(0x185))/0x4)+-parseInt(_0x33591e(0x16d))/0x5+parseInt(_0x33591e(0x174))/0x6+parseInt(_0x33591e(0x17c))/0x7*(parseInt(_0x33591e(0x17d))/0x8)+-parseInt(_0x33591e(0x184))/0x9+parseInt(_0x33591e(0x178))/0xa;if(_0x43b64a===_0x34abd7)break;else _0x27ac51['push'](_0x27ac51['shift']());}catch(_0x5c97dc){_0x27ac51['push'](_0x27ac51['shift']());}}}(a177_0x3ff3,0xa72c2));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a177_0x4e0043(0x17f);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a177_0x4e0043(0x176);function a177_0x3ff3(){const _0x4ad679=['10395660BuPYJu','log','108AFvzsI','pipe','7twwFgb','3027816xuJfxs','remove','add','inherit','24474gKFrvn','push','stderr','12135078TxUyeA','9148PuCWTA','unknown','75zUNJbZ','toString','6123855KGWKkq','stdout','status','stdio','skill','trim','exit\x20','3452322eFcvjB','join','lovrabet/lovrabet-skill','npx'];a177_0x3ff3=function(){return _0x4ad679;};return a177_0x3ff3();}export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x558358){const _0x4e0025=a177_0x4e0043,_0xb9eecd=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x558358&&_0xb9eecd[_0x4e0025(0x182)](NPX_SKILLS_FLAG_SKILL,_0x558358),_0xb9eecd;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a177_0x4e0043(0x177),...buildNpxSkillsAddArgv()][a177_0x4e0043(0x175)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x4e0043(0x177),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a177_0x4e0043(0x175)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2d4df7,_0x260d55){const _0x5d4d0d=a177_0x4e0043;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xd5e09f=_0x260d55?.[_0x5d4d0d(0x170)]??_0x5d4d0d(0x180),_0x1e26ff=resolveNpmBin(_0x5d4d0d(0x177)),_0x1ebb3c=buildNpxSkillsAddArgv(_0x260d55?.[_0x5d4d0d(0x171)]),_0xdee9ff=[_0x5d4d0d(0x177),..._0x1ebb3c][_0x5d4d0d(0x175)]('\x20');console['log']('*\x20'+_0xdee9ff);const _0x38f1f1=spawnSync(_0x1e26ff,_0x1ebb3c,{'cwd':_0x2d4df7,'stdio':_0xd5e09f,'env':process.env,'shell':![]}),_0x1749f2=_0x38f1f1[_0x5d4d0d(0x16f)];if(_0x1749f2===0x0)return{'ok':!![],'status':0x0};let _0x15baef=_0x5d4d0d(0x173)+(_0x1749f2??'unknown');if(_0xd5e09f===_0x5d4d0d(0x17b)){const _0xca6fa9=_0x38f1f1[_0x5d4d0d(0x183)]?_0x38f1f1[_0x5d4d0d(0x183)][_0x5d4d0d(0x188)]()[_0x5d4d0d(0x172)]():'',_0x54ddbb=_0x38f1f1['stdout']?_0x38f1f1['stdout'][_0x5d4d0d(0x188)]()[_0x5d4d0d(0x172)]():'';if(_0xca6fa9)_0x15baef=_0xca6fa9;else{if(_0x54ddbb)_0x15baef=_0x54ddbb;}}return{'ok':![],'status':_0x1749f2??null,'error':_0x15baef};}export function runNpxSkillsRemove(_0x586a86,_0x59799a,_0x163798=LEGACY_RABETBASE_SKILL_SOURCE){const _0x290b4b=a177_0x4e0043;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x112d11=_0x59799a?.[_0x290b4b(0x170)]??_0x290b4b(0x180),_0xa1fb33=resolveNpmBin('npx'),_0x374031=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x290b4b(0x17e),_0x163798,NPX_SKILLS_FLAG_SKILL,_0x59799a?.[_0x290b4b(0x171)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x59799a?.['yes']?['-y']:[]],_0x5beb51=[_0xa1fb33,..._0x374031][_0x290b4b(0x175)]('\x20');console['log']('*\x20'+_0x5beb51);const _0x4f67e2=spawnSync(_0xa1fb33,_0x374031,{'cwd':_0x586a86,'stdio':_0x112d11,'env':process.env,'shell':![]}),_0x132448=_0x4f67e2[_0x290b4b(0x16f)];if(_0x132448===0x0)return{'ok':!![],'status':0x0};let _0x2218ed=_0x290b4b(0x173)+(_0x132448??_0x290b4b(0x186));if(_0x112d11===_0x290b4b(0x17b)){const _0x560006=_0x4f67e2[_0x290b4b(0x183)]?_0x4f67e2[_0x290b4b(0x183)][_0x290b4b(0x188)]()[_0x290b4b(0x172)]():'',_0x503f1b=_0x4f67e2[_0x290b4b(0x16e)]?_0x4f67e2[_0x290b4b(0x16e)][_0x290b4b(0x188)]()[_0x290b4b(0x172)]():'';if(_0x560006)_0x2218ed=_0x560006;else{if(_0x503f1b)_0x2218ed=_0x503f1b;}}return{'ok':![],'status':_0x132448??null,'error':_0x2218ed};}export function runNpxSkillsAddGlobal(_0x3a5524,_0x513dda,_0x19e11f){const _0x3f417b=a177_0x4e0043;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5af704=_0x19e11f?.[_0x3f417b(0x170)]??_0x3f417b(0x180),_0x9d3b3d=resolveNpmBin(_0x3f417b(0x177)),_0x517a0e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x513dda,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1d73e5=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x513dda,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3f417b(0x175)]('\x20');console[_0x3f417b(0x179)]('*\x20'+_0x1d73e5);const _0x316da2=spawnSync(_0x9d3b3d,_0x517a0e,{'cwd':_0x3a5524,'stdio':_0x5af704,'env':process.env,'shell':![]}),_0x1a2d6a=_0x316da2[_0x3f417b(0x16f)];if(_0x1a2d6a===0x0)return{'ok':!![],'status':0x0};let _0x3f0acc='exit\x20'+(_0x1a2d6a??_0x3f417b(0x186));if(_0x5af704===_0x3f417b(0x17b)){const _0x1d4d3d=_0x316da2[_0x3f417b(0x183)]?_0x316da2[_0x3f417b(0x183)]['toString']()[_0x3f417b(0x172)]():'',_0x512ccf=_0x316da2[_0x3f417b(0x16e)]?_0x316da2[_0x3f417b(0x16e)][_0x3f417b(0x188)]()[_0x3f417b(0x172)]():'';if(_0x1d4d3d)_0x3f0acc=_0x1d4d3d;else{if(_0x512ccf)_0x3f0acc=_0x512ccf;}}return{'ok':![],'status':_0x1a2d6a??null,'error':_0x3f0acc};}
@@ -1 +1 @@
1
- (function(_0x40a86d,_0x226c7c){const _0x21558f=a178_0x31ca,_0x33fc35=_0x40a86d();while(!![]){try{const _0x2a6beb=-parseInt(_0x21558f(0x133))/0x1*(-parseInt(_0x21558f(0x12a))/0x2)+-parseInt(_0x21558f(0x136))/0x3*(parseInt(_0x21558f(0x12b))/0x4)+parseInt(_0x21558f(0x134))/0x5*(-parseInt(_0x21558f(0x12e))/0x6)+parseInt(_0x21558f(0x131))/0x7+parseInt(_0x21558f(0x135))/0x8+-parseInt(_0x21558f(0x12d))/0x9+parseInt(_0x21558f(0x130))/0xa;if(_0x2a6beb===_0x226c7c)break;else _0x33fc35['push'](_0x33fc35['shift']());}catch(_0x2473dc){_0x33fc35['push'](_0x33fc35['shift']());}}}(a178_0x4da7,0x905a1));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 a178_0x31ca(_0x36c87e,_0xf05786){_0x36c87e=_0x36c87e-0x128;const _0x4da795=a178_0x4da7();let _0x31cad6=_0x4da795[_0x36c87e];return _0x31cad6;}function a178_0x4da7(){const _0x28753c=['2pkKOBH','5aHHCFp','5731912lhlvkQ','939789uOxxex','durationMs','some','rabetbase.command','flags','[REDACTED]','168268GWiePg','8nWpHeW','message','2240532hnppWy','1429926gQtvCr','command','1545110Sgtujx','4660544VsdzsZ','error'];a178_0x4da7=function(){return _0x28753c;};return a178_0x4da7();}function isSensitiveKey(_0x425eef){const _0x4b7fc7=a178_0x31ca;return SENSITIVE_PATTERNS[_0x4b7fc7(0x138)](_0x2be956=>_0x2be956['test'](_0x425eef));}function sanitizeFlags(_0x15a6d1){const _0x30f0b9=a178_0x31ca,_0x25701f={};for(const [_0x3313f4,_0x485ef2]of Object['entries'](_0x15a6d1)){isSensitiveKey(_0x3313f4)?_0x25701f[_0x3313f4]=_0x485ef2!=null&&_0x485ef2!==''?_0x30f0b9(0x129):_0x485ef2:_0x25701f[_0x3313f4]=_0x485ef2;}return _0x25701f;}export async function reportCommandTrace(_0x33669c){const _0x3309e2=a178_0x31ca;try{const _0x2e1b73=sanitizeFlags(_0x33669c[_0x3309e2(0x128)]);await sendCliTraceLog({'spanName':_0x3309e2(0x139),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x33669c['service'],'command.name':_0x33669c[_0x3309e2(0x12f)],'command.flags':JSON['stringify'](_0x2e1b73),..._0x33669c['durationMs']!=null?{'command.duration_ms':_0x33669c[_0x3309e2(0x137)]}:{},..._0x33669c[_0x3309e2(0x132)]?{'command.error':_0x33669c[_0x3309e2(0x132)]instanceof Error?_0x33669c[_0x3309e2(0x132)][_0x3309e2(0x12c)]:String(_0x33669c['error'])}:{}}});}catch{}}
1
+ function a178_0x334f(){const _0x160019=['3220086rRvKaH','flags','error','some','60eZpjJj','stringify','90vGmKwo','2885LmVezu','2181802JFDIeW','4exaIiX','durationMs','814088ryOlOX','command','entries','rabetbase.command','4386560PKrANt','[REDACTED]','service','56200KaKQOf','1067170duavmn'];a178_0x334f=function(){return _0x160019;};return a178_0x334f();}(function(_0xaa5682,_0x476728){const _0x7b9a32=a178_0x1ac8,_0x136971=_0xaa5682();while(!![]){try{const _0xaf32e4=-parseInt(_0x7b9a32(0x145))/0x1+parseInt(_0x7b9a32(0x13d))/0x2+parseInt(_0x7b9a32(0x146))/0x3*(parseInt(_0x7b9a32(0x14f))/0x4)+parseInt(_0x7b9a32(0x14d))/0x5*(-parseInt(_0x7b9a32(0x14a))/0x6)+-parseInt(_0x7b9a32(0x14e))/0x7+-parseInt(_0x7b9a32(0x144))/0x8*(-parseInt(_0x7b9a32(0x14c))/0x9)+parseInt(_0x7b9a32(0x141))/0xa;if(_0xaf32e4===_0x476728)break;else _0x136971['push'](_0x136971['shift']());}catch(_0x268b9b){_0x136971['push'](_0x136971['shift']());}}}(a178_0x334f,0x93a0e));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(_0x331b43){const _0xdbd152=a178_0x1ac8;return SENSITIVE_PATTERNS[_0xdbd152(0x149)](_0x19c398=>_0x19c398['test'](_0x331b43));}function a178_0x1ac8(_0x10eb2a,_0x530851){_0x10eb2a=_0x10eb2a-0x13c;const _0x334ff7=a178_0x334f();let _0x1ac829=_0x334ff7[_0x10eb2a];return _0x1ac829;}function sanitizeFlags(_0x47a518){const _0x4d6f06=a178_0x1ac8,_0x18b827={};for(const [_0x4d33e6,_0x276d4d]of Object[_0x4d6f06(0x13f)](_0x47a518)){isSensitiveKey(_0x4d33e6)?_0x18b827[_0x4d33e6]=_0x276d4d!=null&&_0x276d4d!==''?_0x4d6f06(0x142):_0x276d4d:_0x18b827[_0x4d33e6]=_0x276d4d;}return _0x18b827;}export async function reportCommandTrace(_0x3d5a37){const _0xdeefbc=a178_0x1ac8;try{const _0x3ce9c1=sanitizeFlags(_0x3d5a37[_0xdeefbc(0x147)]);await sendCliTraceLog({'spanName':_0xdeefbc(0x140),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3d5a37[_0xdeefbc(0x143)],'command.name':_0x3d5a37[_0xdeefbc(0x13e)],'command.flags':JSON[_0xdeefbc(0x14b)](_0x3ce9c1),..._0x3d5a37[_0xdeefbc(0x13c)]!=null?{'command.duration_ms':_0x3d5a37[_0xdeefbc(0x13c)]}:{},..._0x3d5a37[_0xdeefbc(0x148)]?{'command.error':_0x3d5a37['error']instanceof Error?_0x3d5a37[_0xdeefbc(0x148)]['message']:String(_0x3d5a37[_0xdeefbc(0x148)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x17c6c7,_0x1ee465){var _0x47cf96=a179_0x56a2,_0x1465e9=_0x17c6c7();while(!![]){try{var _0x484724=-parseInt(_0x47cf96(0xc9))/0x1+-parseInt(_0x47cf96(0xd1))/0x2+-parseInt(_0x47cf96(0xd2))/0x3*(parseInt(_0x47cf96(0xcb))/0x4)+-parseInt(_0x47cf96(0xd0))/0x5+-parseInt(_0x47cf96(0xca))/0x6+-parseInt(_0x47cf96(0xc8))/0x7+parseInt(_0x47cf96(0xcc))/0x8*(parseInt(_0x47cf96(0xce))/0x9);if(_0x484724===_0x1ee465)break;else _0x1465e9['push'](_0x1465e9['shift']());}catch(_0x477ff0){_0x1465e9['push'](_0x1465e9['shift']());}}}(a179_0xe45a,0xed7ac));function a179_0xe45a(){var _0x417051=['454559FAuElF','1384418NqxQgE','8822820cvmbyo','12SLynbs','96emYznW','cli.help','5428206ZNqAhb','Failed\x20to\x20report\x20CLI\x20help\x20trace:','4347890kHwbOg','3223344qgyLfp','863817yKPfmv','error','service'];a179_0xe45a=function(){return _0x417051;};return a179_0xe45a();}function a179_0x56a2(_0x11cdd3,_0x1bb6e8){_0x11cdd3=_0x11cdd3-0xc8;var _0xe45a5a=a179_0xe45a();var _0x56a200=_0xe45a5a[_0x11cdd3];return _0x56a200;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x569615,_0x52cd31){var _0x2e07ab=a179_0x56a2;try{await sendCliTraceLog({'spanName':_0x2e07ab(0xcd),'logData':{'rabetbase.help.kind':_0x569615,..._0x52cd31?.[_0x2e07ab(0xd4)]&&{'rabetbase.help.service':_0x52cd31[_0x2e07ab(0xd4)]}}});}catch(_0x39feff){console[_0x2e07ab(0xd3)](_0x2e07ab(0xcf),_0x39feff);}}
1
+ function a179_0x3619(_0x5cefb6,_0x2e62fe){_0x5cefb6=_0x5cefb6-0x1e0;var _0x106594=a179_0x1065();var _0x3619c6=_0x106594[_0x5cefb6];return _0x3619c6;}function a179_0x1065(){var _0x1091c2=['3683xNOEeo','230aUnxUL','10020542IpMKcd','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','77336aXLcXD','477mMfzCM','11875380LouODk','6SLQAPT','8270QnFtWP','3lTjvZo','5924488JKYDVZ','21817411iydYWY'];a179_0x1065=function(){return _0x1091c2;};return a179_0x1065();}(function(_0x40c88f,_0x3ef17f){var _0x5f52ce=a179_0x3619,_0x523ef0=_0x40c88f();while(!![]){try{var _0x3541c5=parseInt(_0x5f52ce(0x1e6))/0x1*(parseInt(_0x5f52ce(0x1e7))/0x2)+parseInt(_0x5f52ce(0x1e3))/0x3*(parseInt(_0x5f52ce(0x1e4))/0x4)+-parseInt(_0x5f52ce(0x1e2))/0x5*(-parseInt(_0x5f52ce(0x1e1))/0x6)+-parseInt(_0x5f52ce(0x1e8))/0x7+parseInt(_0x5f52ce(0x1ec))/0x8*(-parseInt(_0x5f52ce(0x1ed))/0x9)+-parseInt(_0x5f52ce(0x1e0))/0xa+parseInt(_0x5f52ce(0x1e5))/0xb;if(_0x3541c5===_0x3ef17f)break;else _0x523ef0['push'](_0x523ef0['shift']());}catch(_0x296b0f){_0x523ef0['push'](_0x523ef0['shift']());}}}(a179_0x1065,0xb9237));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x3038f5,_0x32f36d){var _0x38d56f=a179_0x3619;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x3038f5,..._0x32f36d?.[_0x38d56f(0x1e9)]&&{'rabetbase.help.service':_0x32f36d[_0x38d56f(0x1e9)]}}});}catch(_0x1182c8){console[_0x38d56f(0x1eb)](_0x38d56f(0x1ea),_0x1182c8);}}
@@ -1 +1 @@
1
- (function(_0x304019,_0x2e9ae6){const _0x10ebc6=a180_0x2e77,_0x1e609b=_0x304019();while(!![]){try{const _0x1fc86b=-parseInt(_0x10ebc6(0x1e9))/0x1+parseInt(_0x10ebc6(0x1f3))/0x2+parseInt(_0x10ebc6(0x1f8))/0x3+-parseInt(_0x10ebc6(0x1ef))/0x4*(parseInt(_0x10ebc6(0x1f4))/0x5)+parseInt(_0x10ebc6(0x1eb))/0x6+parseInt(_0x10ebc6(0x1ee))/0x7+-parseInt(_0x10ebc6(0x1ea))/0x8;if(_0x1fc86b===_0x2e9ae6)break;else _0x1e609b['push'](_0x1e609b['shift']());}catch(_0x437f66){_0x1e609b['push'](_0x1e609b['shift']());}}}(a180_0x3133,0xac763));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a180_0x2e77(_0x4225df,_0x4b95dc){_0x4225df=_0x4225df-0x1e9;const _0x3133e0=a180_0x3133();let _0x2e77e0=_0x3133e0[_0x4225df];return _0x2e77e0;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a180_0x3133(){const _0x213490=['tenant_code','username','1922028DbpSiC','5eOSsRF','email','user','unknown','2707635brICAR','290508WFREwI','13510760EiLviQ','3792306krMQyy','tenant','daily','5049128ZvkjtW','2124632nCksGV','nickname'];a180_0x3133=function(){return _0x213490;};return a180_0x3133();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x4b52eb=a180_0x2e77,_0x285ffd=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x35ef95=_0x285ffd?.[_0x4b52eb(0x1f6)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4b52eb(0x1f7)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4b52eb(0x1ed):'production')}),setUserContext({'id':_0x35ef95?.['id'],'username':_0x35ef95?.[_0x4b52eb(0x1f2)],'nickname':_0x35ef95?.[_0x4b52eb(0x1f0)],'email':_0x35ef95?.[_0x4b52eb(0x1f5)],'tenantCode':_0x35ef95?.[_0x4b52eb(0x1ec)][_0x4b52eb(0x1f1)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x285ffd;}
1
+ function a180_0x5333(_0x56043f,_0x9d3dfd){_0x56043f=_0x56043f-0xd1;const _0x455a57=a180_0x455a();let _0x533332=_0x455a57[_0x56043f];return _0x533332;}(function(_0x1f7192,_0x3bcb70){const _0x1fa65f=a180_0x5333,_0x233d07=_0x1f7192();while(!![]){try{const _0x501d21=-parseInt(_0x1fa65f(0xe1))/0x1+-parseInt(_0x1fa65f(0xe2))/0x2*(parseInt(_0x1fa65f(0xdb))/0x3)+parseInt(_0x1fa65f(0xd1))/0x4+-parseInt(_0x1fa65f(0xe0))/0x5*(-parseInt(_0x1fa65f(0xd9))/0x6)+-parseInt(_0x1fa65f(0xd4))/0x7*(parseInt(_0x1fa65f(0xdf))/0x8)+-parseInt(_0x1fa65f(0xd7))/0x9*(parseInt(_0x1fa65f(0xde))/0xa)+-parseInt(_0x1fa65f(0xdd))/0xb*(-parseInt(_0x1fa65f(0xe3))/0xc);if(_0x501d21===_0x3bcb70)break;else _0x233d07['push'](_0x233d07['shift']());}catch(_0x11ec84){_0x233d07['push'](_0x233d07['shift']());}}}(a180_0x455a,0x1bdbb));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=![];export async function ensureCliOtelTraceConfig(){const _0x4e6dd4=a180_0x5333,_0x510e38=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5ad0f5=_0x510e38?.[_0x4e6dd4(0xd8)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4e6dd4(0xe4)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4e6dd4(0xd2):'production')}),setUserContext({'id':_0x5ad0f5?.['id'],'username':_0x5ad0f5?.[_0x4e6dd4(0xdc)],'nickname':_0x5ad0f5?.[_0x4e6dd4(0xd5)],'email':_0x5ad0f5?.[_0x4e6dd4(0xda)],'tenantCode':_0x5ad0f5?.[_0x4e6dd4(0xd6)][_0x4e6dd4(0xd3)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x510e38;}function a180_0x455a(){const _0xba079f=['909951iAzSml','nickname','tenant','1278kyQHBa','user','78GVqwyI','email','654KURqhu','username','88BtQilf','1780DlsQTy','8gYGbFb','47330pOaKAp','200782RcTBcz','1974FaCmiJ','763212FuGoaK','unknown','213832FVydDR','daily','tenant_code'];a180_0x455a=function(){return _0xba079f;};return a180_0x455a();}
@@ -1 +1 @@
1
- function a181_0x5070(_0x4555a2,_0x453be5){_0x4555a2=_0x4555a2-0x120;const _0x2466b2=a181_0x2466();let _0x5070a2=_0x2466b2[_0x4555a2];return _0x5070a2;}(function(_0x1be9ba,_0x5b7179){const _0x9eee01=a181_0x5070,_0x4dfc75=_0x1be9ba();while(!![]){try{const _0x588d68=parseInt(_0x9eee01(0x124))/0x1*(-parseInt(_0x9eee01(0x12a))/0x2)+parseInt(_0x9eee01(0x12b))/0x3+-parseInt(_0x9eee01(0x129))/0x4*(-parseInt(_0x9eee01(0x123))/0x5)+-parseInt(_0x9eee01(0x127))/0x6+-parseInt(_0x9eee01(0x120))/0x7*(parseInt(_0x9eee01(0x12d))/0x8)+-parseInt(_0x9eee01(0x128))/0x9+-parseInt(_0x9eee01(0x125))/0xa*(-parseInt(_0x9eee01(0x122))/0xb);if(_0x588d68===_0x5b7179)break;else _0x4dfc75['push'](_0x4dfc75['shift']());}catch(_0x3bb401){_0x4dfc75['push'](_0x4dfc75['shift']());}}}(a181_0x2466,0xedede));import{shutdownTraces}from'@lovrabet/otel-logger';function a181_0x2466(){const _0x4edaf7=['4dGByAG','310wGTYdM','once','5035038wEfsPo','9245385IuzmIt','3915068dFkccp','372354vflnwZ','2951892PPPtZu','SIGTERM','200EYRuGA','27811jEYIgi','beforeExit','611138OGGres','5bXVEQW'];a181_0x2466=function(){return _0x4edaf7;};return a181_0x2466();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3cfd18=a181_0x5070;process[_0x3cfd18(0x126)](_0x3cfd18(0x121),()=>{void flushOtelNodeIfUsed();});const _0x595350=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process['once']('SIGINT',_0x595350),process[_0x3cfd18(0x126)](_0x3cfd18(0x12c),_0x595350);}export async function exitWithOtelShutdown(_0xc5fc43){await flushOtelNodeIfUsed(),process['exit'](_0xc5fc43);}
1
+ (function(_0x6f40ed,_0x4ae941){const _0x3393fd=a181_0x98d3,_0x3a37a2=_0x6f40ed();while(!![]){try{const _0x5510bf=parseInt(_0x3393fd(0x141))/0x1+parseInt(_0x3393fd(0x140))/0x2*(parseInt(_0x3393fd(0x13d))/0x3)+-parseInt(_0x3393fd(0x13c))/0x4*(parseInt(_0x3393fd(0x138))/0x5)+parseInt(_0x3393fd(0x13e))/0x6*(parseInt(_0x3393fd(0x135))/0x7)+-parseInt(_0x3393fd(0x137))/0x8*(parseInt(_0x3393fd(0x13b))/0x9)+-parseInt(_0x3393fd(0x142))/0xa+parseInt(_0x3393fd(0x139))/0xb*(parseInt(_0x3393fd(0x13a))/0xc);if(_0x5510bf===_0x4ae941)break;else _0x3a37a2['push'](_0x3a37a2['shift']());}catch(_0x1e28c6){_0x3a37a2['push'](_0x3a37a2['shift']());}}}(a181_0x4eb1,0x76d7b));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a181_0x98d3(_0x2fc3cd,_0x4d99e6){_0x2fc3cd=_0x2fc3cd-0x134;const _0x4eb156=a181_0x4eb1();let _0x98d3d3=_0x4eb156[_0x2fc3cd];return _0x98d3d3;}function a181_0x4eb1(){const _0x4b9e5b=['183096YXwlBT','306148gLKdlY','27924eQxfrQ','12GEcRID','exit','34ZDmOLT','94034GyOepM','5559200kCBrOt','beforeExit','SIGTERM','395731hdCsWK','once','72cYllbd','15bUyzRs','2398154XBSXNF','60yLtZpm'];a181_0x4eb1=function(){return _0x4b9e5b;};return a181_0x4eb1();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0xa6468b=a181_0x98d3;process[_0xa6468b(0x136)](_0xa6468b(0x143),()=>{void flushOtelNodeIfUsed();});const _0x44c6b5=()=>{const _0xe131fa=_0xa6468b;void flushOtelNodeIfUsed()['then'](()=>process[_0xe131fa(0x13f)](0x0));};process[_0xa6468b(0x136)]('SIGINT',_0x44c6b5),process[_0xa6468b(0x136)](_0xa6468b(0x134),_0x44c6b5);}export async function exitWithOtelShutdown(_0x28d6af){const _0x36a767=a181_0x98d3;await flushOtelNodeIfUsed(),process[_0x36a767(0x13f)](_0x28d6af);}
@@ -1 +1 @@
1
- (function(_0x253781,_0x5bd08f){const _0x375e25=a182_0x5830,_0x5d0198=_0x253781();while(!![]){try{const _0xc3821e=-parseInt(_0x375e25(0x105))/0x1+parseInt(_0x375e25(0x109))/0x2*(-parseInt(_0x375e25(0x10c))/0x3)+-parseInt(_0x375e25(0x10b))/0x4*(-parseInt(_0x375e25(0x111))/0x5)+-parseInt(_0x375e25(0x102))/0x6+-parseInt(_0x375e25(0x10a))/0x7*(-parseInt(_0x375e25(0x110))/0x8)+-parseInt(_0x375e25(0x108))/0x9+parseInt(_0x375e25(0x103))/0xa*(parseInt(_0x375e25(0x104))/0xb);if(_0xc3821e===_0x5bd08f)break;else _0x5d0198['push'](_0x5d0198['shift']());}catch(_0x4a6e38){_0x5d0198['push'](_0x5d0198['shift']());}}}(a182_0x4aeb,0x93ac4));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a182_0x4aeb(){const _0x2e0415=['19903862lFGRzB','792048bsYPaa','logData','traceName','3648645kHhwvK','586778lsTDbM','49rxtdYj','64pyRHUe','6sUKxSR','traceparent','version','spanName','138824PiZFlH','162455NHpEuP','370020jNxQhj','10qBLOpp'];a182_0x4aeb=function(){return _0x2e0415;};return a182_0x4aeb();}const DEFAULT_TRACE_NAME='rabetbase-cli';function a182_0x5830(_0x5337ca,_0x230647){_0x5337ca=_0x5337ca-0x102;const _0x4aeb1c=a182_0x4aeb();let _0x583082=_0x4aeb1c[_0x5337ca];return _0x583082;}export async function sendCliTraceLog(_0x1b71f6){const _0x37782e=a182_0x5830;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1b71f6[_0x37782e(0x107)]??DEFAULT_TRACE_NAME,'version':_0x1b71f6[_0x37782e(0x10e)]??getCliVersion(),'spanName':_0x1b71f6[_0x37782e(0x10f)],'eventType':'manual','logData':_0x1b71f6[_0x37782e(0x106)],..._0x1b71f6['traceparent']&&{'traceparent':_0x1b71f6[_0x37782e(0x10d)]}});}
1
+ const a182_0x2f23cf=a182_0x5611;function a182_0x4f77(){const _0x49e70a=['rabetbase-cli','manual','logData','465789SvRyPq','848870fPsYIt','2657960MUnDjg','18jLJxeF','467915vzXGkC','9whVUDT','211410FiQUxw','140945VnRker','697720uhswMw','traceparent','76PxJpii','version','33GbDnia'];a182_0x4f77=function(){return _0x49e70a;};return a182_0x4f77();}(function(_0x3a9e54,_0x294d15){const _0x52f033=a182_0x5611,_0xee3532=_0x3a9e54();while(!![]){try{const _0x453b9f=parseInt(_0x52f033(0x183))/0x1+-parseInt(_0x52f033(0x188))/0x2+parseInt(_0x52f033(0x182))/0x3+parseInt(_0x52f033(0x18c))/0x4*(-parseInt(_0x52f033(0x189))/0x5)+-parseInt(_0x52f033(0x185))/0x6*(parseInt(_0x52f033(0x186))/0x7)+parseInt(_0x52f033(0x18a))/0x8*(-parseInt(_0x52f033(0x187))/0x9)+parseInt(_0x52f033(0x184))/0xa*(parseInt(_0x52f033(0x18e))/0xb);if(_0x453b9f===_0x294d15)break;else _0xee3532['push'](_0xee3532['shift']());}catch(_0x3327c6){_0xee3532['push'](_0xee3532['shift']());}}}(a182_0x4f77,0xd501b));function a182_0x5611(_0x47367c,_0x3354b2){_0x47367c=_0x47367c-0x182;const _0x4f7746=a182_0x4f77();let _0x561174=_0x4f7746[_0x47367c];return _0x561174;}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=a182_0x2f23cf(0x18f);export async function sendCliTraceLog(_0x355fac){const _0x846c=a182_0x2f23cf;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x355fac['traceName']??DEFAULT_TRACE_NAME,'version':_0x355fac[_0x846c(0x18d)]??getCliVersion(),'spanName':_0x355fac['spanName'],'eventType':_0x846c(0x190),'logData':_0x355fac[_0x846c(0x191)],..._0x355fac[_0x846c(0x18b)]&&{'traceparent':_0x355fac[_0x846c(0x18b)]}});}