@lovrabet/rabetbase-cli 2.2.3-beta.2 → 2.2.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2c35b9,_0x400c9a){const _0x2e6067=a158_0x55dc,_0x1c9421=_0x2c35b9();while(!![]){try{const _0x528f6e=parseInt(_0x2e6067(0xef))/0x1+parseInt(_0x2e6067(0xf8))/0x2+-parseInt(_0x2e6067(0xfe))/0x3*(parseInt(_0x2e6067(0xe9))/0x4)+-parseInt(_0x2e6067(0xff))/0x5+parseInt(_0x2e6067(0xfd))/0x6*(-parseInt(_0x2e6067(0xe4))/0x7)+parseInt(_0x2e6067(0xe8))/0x8*(-parseInt(_0x2e6067(0xf4))/0x9)+parseInt(_0x2e6067(0xe5))/0xa*(parseInt(_0x2e6067(0x101))/0xb);if(_0x528f6e===_0x400c9a)break;else _0x1c9421['push'](_0x1c9421['shift']());}catch(_0x210c84){_0x1c9421['push'](_0x1c9421['shift']());}}}(a158_0x288d,0x7f14c));function a158_0x288d(){const _0x457d92=['dbId','11UVQfNJ','replace','dbName','sqlName','sqlCode','49EXpHIz','7889270pCBxrA','isDirectory','filter','2864EBchCx','1054828ipqjoa','code','sql','slice','push','toLowerCase','939684FsPYSM','.xml','path','ENOENT','name','729UwzKyc','mode','sqlRootDir','indexOf','176114ESfuwu','test','.sql','isFile','length','637854cEWKIi','3HdqKSa','1296380tygWnr'];a158_0x288d=function(){return _0x457d92;};return a158_0x288d();}import{readdir,stat}from'node:fs/promises';function a158_0x55dc(_0x4857f7,_0x49abe8){_0x4857f7=_0x4857f7-0xe1;const _0x288d36=a158_0x288d();let _0x55dcaf=_0x288d36[_0x4857f7];return _0x55dcaf;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x1aae1a){const _0x46340a=a158_0x55dc;if(_0x1aae1a===_0x46340a(0xfa))return _0x46340a(0xeb);if(_0x1aae1a===_0x46340a(0xf0))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x4f8d42,_0x54bf49){const _0xf4cd83=a158_0x55dc,_0x5b95bd=[];try{const _0x18b458=await readdir(_0x4f8d42,{'withFileTypes':!![]});for(const _0x32529a of _0x18b458){const _0x31ff6f=join(_0x4f8d42,_0x32529a[_0xf4cd83(0xf3)]);if(_0x32529a[_0xf4cd83(0xe6)]()){_0x5b95bd[_0xf4cd83(0xed)](...await scanSqlFilesRecursively(_0x31ff6f,_0x54bf49));continue;}if(!_0x32529a[_0xf4cd83(0xfb)]())continue;const _0x346ae6=extname(_0x32529a['name'])[_0xf4cd83(0xee)](),_0x4eb9ce=extensionToMode(_0x346ae6);if(!_0x4eb9ce)continue;const _0x2232b2=relative(_0x54bf49,_0x31ff6f)[_0xf4cd83(0x102)](/\\/g,'/'),_0x2939fd=_0x2232b2['split']('/')[_0xf4cd83(0xe7)](Boolean),_0x1a9b46=parseSqlPath(_0x2939fd,_0x32529a[_0xf4cd83(0xf3)],_0x346ae6);if(!_0x1a9b46)continue;_0x5b95bd[_0xf4cd83(0xed)]({'sqlCode':_0x1a9b46[_0xf4cd83(0xe3)],'sqlName':_0x1a9b46['sqlName'],'dbDirectory':_0x2939fd[0x0],'filePath':_0x31ff6f,'relativePath':_0x2232b2,'lockKey':_0x1a9b46[_0xf4cd83(0xe3)],'mode':_0x4eb9ce});}}catch(_0x581160){if(_0x581160[_0xf4cd83(0xea)]!==_0xf4cd83(0xf2))throw _0x581160;}return _0x5b95bd;}export async function scanLocalSqlQueries(_0x3d8d46){const _0x4c77b2=a158_0x55dc;return scanSqlFilesRecursively(_0x3d8d46[_0x4c77b2(0xf6)],_0x3d8d46[_0x4c77b2(0xf6)]);}export function resolveLocalSqlFilePath(_0x55ce06,_0x2915ef,_0x948d2e){const _0x608093=a158_0x55dc,_0x31b669=_0x948d2e?.[_0x608093(0xf1)]||(_0x948d2e?.[_0x608093(0xe2)]||_0x948d2e?.[_0x608093(0xe1)]?buildSqlRelativePath(_0x2915ef,_0x948d2e?.[_0x608093(0xe2)],_0x948d2e?.['dbName'],_0x948d2e?.[_0x608093(0xf5)]||'sql',_0x948d2e?.[_0x608093(0x100)]):buildDefaultSqlFileName(_0x2915ef,_0x948d2e?.['mode']||_0x608093(0xeb)));return join(_0x55ce06[_0x608093(0xf6)],_0x31b669);}export async function directoryExists(_0x1bb4d6){const _0x4385a1=a158_0x55dc;try{const _0x1d0e87=await stat(_0x1bb4d6);return _0x1d0e87[_0x4385a1(0xe6)]();}catch{return![];}}function parseSqlPath(_0x2ba670,_0x3d3a15,_0x111389){const _0x73c949=a158_0x55dc,_0x29371b=_0x3d3a15[_0x73c949(0xec)](0x0,-_0x111389[_0x73c949(0xfc)]);if(_0x2ba670[_0x73c949(0xfc)]<0x2)return null;const _0x368e0e=_0x29371b[_0x73c949(0xf7)]('_');if(_0x368e0e<=0x0||_0x368e0e>=_0x29371b['length']-0x1)return null;const _0x4ecd0a=_0x29371b[_0x73c949(0xec)](0x0,_0x368e0e);if(!isLikelySqlCode(_0x4ecd0a))return null;return{'sqlCode':_0x4ecd0a,'sqlName':_0x29371b[_0x73c949(0xec)](_0x368e0e+0x1)};}function isLikelySqlCode(_0x4cd580){const _0x57b4cb=a158_0x55dc;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x57b4cb(0xf9)](_0x4cd580);}
1
+ (function(_0x3e31dd,_0x4f56d7){const _0x41e558=a158_0x5496,_0x46f01f=_0x3e31dd();while(!![]){try{const _0x232ce3=-parseInt(_0x41e558(0x159))/0x1*(-parseInt(_0x41e558(0x160))/0x2)+parseInt(_0x41e558(0x147))/0x3+parseInt(_0x41e558(0x164))/0x4+-parseInt(_0x41e558(0x14c))/0x5*(parseInt(_0x41e558(0x158))/0x6)+-parseInt(_0x41e558(0x152))/0x7*(-parseInt(_0x41e558(0x156))/0x8)+parseInt(_0x41e558(0x14e))/0x9+parseInt(_0x41e558(0x154))/0xa*(-parseInt(_0x41e558(0x161))/0xb);if(_0x232ce3===_0x4f56d7)break;else _0x46f01f['push'](_0x46f01f['shift']());}catch(_0x23e027){_0x46f01f['push'](_0x46f01f['shift']());}}}(a158_0x37f6,0xc6daf));import{readdir,stat}from'node:fs/promises';function a158_0x37f6(){const _0x44ad74=['.xml','mode','push','575265jvJBET','dbId','11601612YkNFoF','isFile','ENOENT','isDirectory','1682457NordAU','name','20vUvgDj','code','8LdvPdF','sql','42ZtfIYy','1534325kDbttg','sqlCode','dbName','indexOf','test','length','slice','2eXJhyI','13546775ikSorz','sqlRootDir','sqlName','3768488ZzhAmt','toLowerCase','mybatisXml','.sql','231198PBZcjq','filter'];a158_0x37f6=function(){return _0x44ad74;};return a158_0x37f6();}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x144ddd){const _0x54ac3f=a158_0x5496;if(_0x144ddd===_0x54ac3f(0x146))return'sql';if(_0x144ddd===_0x54ac3f(0x149))return _0x54ac3f(0x145);return undefined;}async function scanSqlFilesRecursively(_0x357b1d,_0x69500c){const _0x1ef9a7=a158_0x5496,_0x2f2121=[];try{const _0x4a1d59=await readdir(_0x357b1d,{'withFileTypes':!![]});for(const _0x4f31d0 of _0x4a1d59){const _0x3ad094=join(_0x357b1d,_0x4f31d0[_0x1ef9a7(0x153)]);if(_0x4f31d0[_0x1ef9a7(0x151)]()){_0x2f2121['push'](...await scanSqlFilesRecursively(_0x3ad094,_0x69500c));continue;}if(!_0x4f31d0[_0x1ef9a7(0x14f)]())continue;const _0x321132=extname(_0x4f31d0[_0x1ef9a7(0x153)])[_0x1ef9a7(0x144)](),_0x2b6147=extensionToMode(_0x321132);if(!_0x2b6147)continue;const _0x5e3d65=relative(_0x69500c,_0x3ad094)['replace'](/\\/g,'/'),_0x1502d1=_0x5e3d65['split']('/')[_0x1ef9a7(0x148)](Boolean),_0x438f4a=parseSqlPath(_0x1502d1,_0x4f31d0['name'],_0x321132);if(!_0x438f4a)continue;_0x2f2121[_0x1ef9a7(0x14b)]({'sqlCode':_0x438f4a['sqlCode'],'sqlName':_0x438f4a[_0x1ef9a7(0x163)],'dbDirectory':_0x1502d1[0x0],'filePath':_0x3ad094,'relativePath':_0x5e3d65,'lockKey':_0x438f4a[_0x1ef9a7(0x15a)],'mode':_0x2b6147});}}catch(_0x388b51){if(_0x388b51[_0x1ef9a7(0x155)]!==_0x1ef9a7(0x150))throw _0x388b51;}return _0x2f2121;}export async function scanLocalSqlQueries(_0x4bb6be){const _0x370ed8=a158_0x5496;return scanSqlFilesRecursively(_0x4bb6be[_0x370ed8(0x162)],_0x4bb6be[_0x370ed8(0x162)]);}function a158_0x5496(_0x4c488b,_0x125141){_0x4c488b=_0x4c488b-0x144;const _0x37f6f5=a158_0x37f6();let _0x5496df=_0x37f6f5[_0x4c488b];return _0x5496df;}export function resolveLocalSqlFilePath(_0x74e810,_0x3c4ce7,_0x5375c1){const _0x177be7=a158_0x5496,_0x5ef644=_0x5375c1?.['path']||(_0x5375c1?.[_0x177be7(0x163)]||_0x5375c1?.[_0x177be7(0x15b)]?buildSqlRelativePath(_0x3c4ce7,_0x5375c1?.[_0x177be7(0x163)],_0x5375c1?.['dbName'],_0x5375c1?.[_0x177be7(0x14a)]||_0x177be7(0x157),_0x5375c1?.[_0x177be7(0x14d)]):buildDefaultSqlFileName(_0x3c4ce7,_0x5375c1?.[_0x177be7(0x14a)]||_0x177be7(0x157)));return join(_0x74e810[_0x177be7(0x162)],_0x5ef644);}export async function directoryExists(_0x499f98){try{const _0x5081a0=await stat(_0x499f98);return _0x5081a0['isDirectory']();}catch{return![];}}function parseSqlPath(_0xcf7056,_0x5e5548,_0x45c0d9){const _0x1e7a73=a158_0x5496,_0x409cee=_0x5e5548[_0x1e7a73(0x15f)](0x0,-_0x45c0d9[_0x1e7a73(0x15e)]);if(_0xcf7056[_0x1e7a73(0x15e)]<0x2)return null;const _0x4d5435=_0x409cee[_0x1e7a73(0x15c)]('_');if(_0x4d5435<=0x0||_0x4d5435>=_0x409cee[_0x1e7a73(0x15e)]-0x1)return null;const _0x4fc845=_0x409cee['slice'](0x0,_0x4d5435);if(!isLikelySqlCode(_0x4fc845))return null;return{'sqlCode':_0x4fc845,'sqlName':_0x409cee[_0x1e7a73(0x15f)](_0x4d5435+0x1)};}function isLikelySqlCode(_0x3269fd){const _0x2859cf=a158_0x5496;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x2859cf(0x15d)](_0x3269fd);}
@@ -1 +1 @@
1
- function a159_0x7337(_0x58c925,_0x22ec95){_0x58c925=_0x58c925-0x164;const _0x399c31=a159_0x399c();let _0x733784=_0x399c31[_0x58c925];return _0x733784;}(function(_0x34b02f,_0xd840f){const _0x5c6413=a159_0x7337,_0x2aed19=_0x34b02f();while(!![]){try{const _0x5bdb14=-parseInt(_0x5c6413(0x16a))/0x1*(parseInt(_0x5c6413(0x168))/0x2)+-parseInt(_0x5c6413(0x16b))/0x3+parseInt(_0x5c6413(0x16e))/0x4+parseInt(_0x5c6413(0x164))/0x5*(-parseInt(_0x5c6413(0x16c))/0x6)+-parseInt(_0x5c6413(0x16d))/0x7+-parseInt(_0x5c6413(0x166))/0x8+parseInt(_0x5c6413(0x171))/0x9*(parseInt(_0x5c6413(0x165))/0xa);if(_0x5bdb14===_0xd840f)break;else _0x2aed19['push'](_0x2aed19['shift']());}catch(_0x681506){_0x2aed19['push'](_0x2aed19['shift']());}}}(a159_0x399c,0x2fd26));function a159_0x399c(){const _0x2bcbd7=['2307558aeSFPu','1821652Vuoslz','899924DoBEHV','utf8','md5','159867oVdHnT','5Bhoqza','870pitKkK','2932840adMLUP','update','134666LISrde','createHash','5hNdumC','679155puDsPK'];a159_0x399c=function(){return _0x2bcbd7;};return a159_0x399c();}import{readFile}from'node:fs/promises';import a159_0xd33367 from'node:crypto';export function computeSqlContentHash(_0x21b3b7){const _0x513f2c=a159_0x7337;return a159_0xd33367[_0x513f2c(0x169)](_0x513f2c(0x170))[_0x513f2c(0x167)](_0x21b3b7)['digest']('hex');}export async function computeSqlFileHash(_0x6855bd){const _0x372fc8=a159_0x7337,_0x122b33=await readFile(_0x6855bd,_0x372fc8(0x16f));return computeSqlContentHash(_0x122b33);}
1
+ function a159_0x1431(){const _0x34cb48=['1088936QSbRHK','update','3904446JMYVgh','7ujBBiF','createHash','24577553ndzqic','504652EYjFjs','1172krjDnB','6poTtBA','md5','10KxQYQt','hex','utf8','7303950aLgism','10221IaOSup','14641731EPOnOb'];a159_0x1431=function(){return _0x34cb48;};return a159_0x1431();}(function(_0x583c11,_0x553eba){const _0x5b59ba=a159_0x40a6,_0x43f7c4=_0x583c11();while(!![]){try{const _0x26c20f=parseInt(_0x5b59ba(0x1b9))/0x1*(parseInt(_0x5b59ba(0x1c7))/0x2)+parseInt(_0x5b59ba(0x1bf))/0x3*(-parseInt(_0x5b59ba(0x1b8))/0x4)+parseInt(_0x5b59ba(0x1be))/0x5+-parseInt(_0x5b59ba(0x1c3))/0x6+parseInt(_0x5b59ba(0x1c4))/0x7*(parseInt(_0x5b59ba(0x1c1))/0x8)+parseInt(_0x5b59ba(0x1c0))/0x9+parseInt(_0x5b59ba(0x1bb))/0xa*(-parseInt(_0x5b59ba(0x1c6))/0xb);if(_0x26c20f===_0x553eba)break;else _0x43f7c4['push'](_0x43f7c4['shift']());}catch(_0x5e43ee){_0x43f7c4['push'](_0x43f7c4['shift']());}}}(a159_0x1431,0xd0987));import{readFile}from'node:fs/promises';import a159_0x2c1052 from'node:crypto';export function computeSqlContentHash(_0xe25ff){const _0xacd697=a159_0x40a6;return a159_0x2c1052[_0xacd697(0x1c5)](_0xacd697(0x1ba))[_0xacd697(0x1c2)](_0xe25ff)['digest'](_0xacd697(0x1bc));}function a159_0x40a6(_0x455079,_0x407cfe){_0x455079=_0x455079-0x1b8;const _0x14317c=a159_0x1431();let _0x40a681=_0x14317c[_0x455079];return _0x40a681;}export async function computeSqlFileHash(_0x315674){const _0x26efac=a159_0x40a6,_0x1fe0d2=await readFile(_0x315674,_0x26efac(0x1bd));return computeSqlContentHash(_0x1fe0d2);}
@@ -1 +1 @@
1
- (function(_0x116dd2,_0xb20f1a){const _0x240ff1=a160_0x31d8,_0x5ca88e=_0x116dd2();while(!![]){try{const _0x5908a2=parseInt(_0x240ff1(0x198))/0x1+parseInt(_0x240ff1(0x1a1))/0x2+parseInt(_0x240ff1(0x1a4))/0x3*(-parseInt(_0x240ff1(0x19b))/0x4)+parseInt(_0x240ff1(0x19d))/0x5+-parseInt(_0x240ff1(0x1a7))/0x6*(-parseInt(_0x240ff1(0x193))/0x7)+parseInt(_0x240ff1(0x19f))/0x8*(-parseInt(_0x240ff1(0x19c))/0x9)+parseInt(_0x240ff1(0x19e))/0xa*(-parseInt(_0x240ff1(0x1a2))/0xb);if(_0x5908a2===_0xb20f1a)break;else _0x5ca88e['push'](_0x5ca88e['shift']());}catch(_0xc65403){_0x5ca88e['push'](_0x5ca88e['shift']());}}}(a160_0x54b4,0xb3bf4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a160_0x31d8(_0x355c26,_0x22e813){_0x355c26=_0x355c26-0x192;const _0x54b445=a160_0x54b4();let _0x31d8a1=_0x54b445[_0x355c26];return _0x31d8a1;}export function ensureSqlLockScope(_0x2c19f4,_0x2fd8b7,_0x686273,_0x3a2b68){const _0x50188f=a160_0x31d8,_0x2c5e30=_0x2c19f4??createEmptySqlLock();let _0x335a1b=_0x2c5e30[_0x50188f(0x19a)][_0x2fd8b7];if(!_0x335a1b)return _0x335a1b={'sqlRoot':_0x686273,'lastSync':'','sqls':{}},_0x2c5e30[_0x50188f(0x19a)][_0x2fd8b7]=_0x335a1b,{'lockData':_0x2c5e30,'appLock':_0x335a1b};if(!_0x335a1b['sqlRoot'])_0x335a1b[_0x50188f(0x1a5)]=_0x686273;else{if(_0x335a1b[_0x50188f(0x1a5)]!==_0x686273)throw new Error(_0x3a2b68+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x686273+_0x50188f(0x1a0)+_0x335a1b[_0x50188f(0x1a5)]+_0x50188f(0x1a6)+_0x50188f(0x192));}return!_0x335a1b[_0x50188f(0x199)]&&(_0x335a1b[_0x50188f(0x199)]={}),!_0x335a1b['lastSync']&&(_0x335a1b['lastSync']=''),{'lockData':_0x2c5e30,'appLock':_0x335a1b};}export async function readSqlLockFile(_0x26e0d1){const _0x58bd24=a160_0x31d8;try{const _0x3475e1=await readFile(_0x26e0d1,_0x58bd24(0x194));return JSON['parse'](_0x3475e1);}catch(_0x559d6a){if(_0x559d6a[_0x58bd24(0x1a3)]===_0x58bd24(0x195))return null;throw new Error(_0x58bd24(0x196)+String(_0x559d6a));}}export async function writeSqlLockFile(_0x1c56eb,_0x472b39){const _0x4c5678=a160_0x31d8;await mkdir(dirname(_0x1c56eb),{'recursive':!![]}),await writeFile(_0x1c56eb,JSON[_0x4c5678(0x197)](_0x472b39,null,0x2),'utf8');}function a160_0x54b4(){const _0x332325=['476ENGMGp','utf8','ENOENT','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','stringify','716768mFuThd','sqls','apps','4VnxrCQ','9uXzNqf','3116185NUTztZ','90IJAwyb','9499352gtkBvm','\x22\x20vs\x20lock\x20\x22','2594116tQWsTV','1183677cSDfCr','code','3491475AksSzs','sqlRoot','\x22.\x20','125196kAZEbl','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a160_0x54b4=function(){return _0x332325;};return a160_0x54b4();}
1
+ (function(_0x124cf1,_0x3773c1){const _0x102f39=a160_0x1cfc,_0x33f8ea=_0x124cf1();while(!![]){try{const _0x3a2a50=-parseInt(_0x102f39(0x106))/0x1+parseInt(_0x102f39(0xf7))/0x2+parseInt(_0x102f39(0x103))/0x3*(parseInt(_0x102f39(0xfd))/0x4)+-parseInt(_0x102f39(0x109))/0x5+parseInt(_0x102f39(0x108))/0x6+-parseInt(_0x102f39(0x104))/0x7+parseInt(_0x102f39(0xfe))/0x8;if(_0x3a2a50===_0x3773c1)break;else _0x33f8ea['push'](_0x33f8ea['shift']());}catch(_0x3e78a9){_0x33f8ea['push'](_0x33f8ea['shift']());}}}(a160_0x557a,0x2c40b));function a160_0x557a(){const _0x2aaab2=['utf8','apps','481758CZRMun','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','\x22.\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','parse','sqlRoot','76sLNYCK','56648EzUbvA','lastSync','ENOENT','\x22\x20vs\x20lock\x20\x22','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','16659CXcYSf','1754207QpDSHp','stringify','243803lfODam','sqls','2142342YdyxmP','174305wvEUdq'];a160_0x557a=function(){return _0x2aaab2;};return a160_0x557a();}function a160_0x1cfc(_0x5e4aa3,_0x5dd950){_0x5e4aa3=_0x5e4aa3-0xf7;const _0x557afe=a160_0x557a();let _0x1cfcc5=_0x557afe[_0x5e4aa3];return _0x1cfcc5;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x4eb835,_0x25174e,_0x4de68d,_0x933291){const _0x1efd95=a160_0x1cfc,_0x4b144d=_0x4eb835??createEmptySqlLock();let _0x310a48=_0x4b144d[_0x1efd95(0x10b)][_0x25174e];if(!_0x310a48)return _0x310a48={'sqlRoot':_0x4de68d,'lastSync':'','sqls':{}},_0x4b144d[_0x1efd95(0x10b)][_0x25174e]=_0x310a48,{'lockData':_0x4b144d,'appLock':_0x310a48};if(!_0x310a48['sqlRoot'])_0x310a48[_0x1efd95(0xfc)]=_0x4de68d;else{if(_0x310a48[_0x1efd95(0xfc)]!==_0x4de68d)throw new Error(_0x933291+_0x1efd95(0xfa)+_0x4de68d+_0x1efd95(0x101)+_0x310a48[_0x1efd95(0xfc)]+_0x1efd95(0xf9)+_0x1efd95(0x102));}return!_0x310a48[_0x1efd95(0x107)]&&(_0x310a48['sqls']={}),!_0x310a48[_0x1efd95(0xff)]&&(_0x310a48[_0x1efd95(0xff)]=''),{'lockData':_0x4b144d,'appLock':_0x310a48};}export async function readSqlLockFile(_0x1b1c54){const _0x544154=a160_0x1cfc;try{const _0x1acac2=await readFile(_0x1b1c54,_0x544154(0x10a));return JSON[_0x544154(0xfb)](_0x1acac2);}catch(_0x33442f){if(_0x33442f['code']===_0x544154(0x100))return null;throw new Error(_0x544154(0xf8)+String(_0x33442f));}}export async function writeSqlLockFile(_0x3dc407,_0x4374d0){const _0x255a28=a160_0x1cfc;await mkdir(dirname(_0x3dc407),{'recursive':!![]}),await writeFile(_0x3dc407,JSON[_0x255a28(0x105)](_0x4374d0,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x244975,_0x5f2f55){const _0x2e18d4=a162_0x7d68,_0x4ed253=_0x244975();while(!![]){try{const _0x1b440c=parseInt(_0x2e18d4(0x197))/0x1*(parseInt(_0x2e18d4(0x199))/0x2)+-parseInt(_0x2e18d4(0x193))/0x3+parseInt(_0x2e18d4(0x196))/0x4+-parseInt(_0x2e18d4(0x19a))/0x5+parseInt(_0x2e18d4(0x18e))/0x6+-parseInt(_0x2e18d4(0x190))/0x7+parseInt(_0x2e18d4(0x195))/0x8;if(_0x1b440c===_0x5f2f55)break;else _0x4ed253['push'](_0x4ed253['shift']());}catch(_0x37f77e){_0x4ed253['push'](_0x4ed253['shift']());}}}(a162_0x4513,0x32861));export function detectSqlMode(_0x57b608){const _0x3c0fa5=a162_0x7d68,_0x25b5b0=_0x57b608['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x3c0fa5(0x18f)](_0x25b5b0))return'mybatisXml';return _0x3c0fa5(0x191);}export function getSqlFileExtension(_0xa4be58){const _0xbcc5cd=a162_0x7d68;return _0xa4be58==='mybatisXml'?_0xbcc5cd(0x18c):_0xbcc5cd(0x18a);}export function buildDefaultSqlFileName(_0x1d3190,_0x451a77){return''+_0x1d3190+getSqlFileExtension(_0x451a77);}export function sanitizeSqlPathSegment(_0x4c98e8,_0x175d77){const _0x35a5e8=a162_0x7d68,_0x5cb6f2=String(_0x4c98e8??'')[_0x35a5e8(0x198)](),_0x2c211e=_0x5cb6f2[_0x35a5e8(0x194)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x35a5e8(0x194)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x35a5e8(0x194)](/^\.+/,'')[_0x35a5e8(0x194)](/\.+$/,'')['replace'](/^-+/,'')[_0x35a5e8(0x194)](/-+$/,'');return _0x2c211e||_0x175d77;}export function buildDbDirectoryName(_0x931aa6,_0x1c8843){const _0x2bd906=a162_0x7d68;return sanitizeSqlPathSegment(_0x931aa6,_0x1c8843!=null?_0x2bd906(0x192)+_0x1c8843:_0x2bd906(0x18b));}export function buildSqlRelativePath(_0x161be2,_0x602d1f,_0x1a28a0,_0x47863b,_0x3f7d43){const _0xaaf528=a162_0x7d68,_0x28de2d=buildDbDirectoryName(_0x1a28a0,_0x3f7d43),_0x4aaf7a=sanitizeSqlPathSegment(_0x161be2,_0xaaf528(0x18d)),_0x504036=sanitizeSqlPathSegment(_0x602d1f,_0x4aaf7a);return _0x28de2d+'/'+_0x4aaf7a+'_'+_0x504036+getSqlFileExtension(_0x47863b);}function a162_0x7d68(_0x62d8cf,_0x297256){_0x62d8cf=_0x62d8cf-0x18a;const _0x4513d1=a162_0x4513();let _0x7d6837=_0x4513d1[_0x62d8cf];return _0x7d6837;}function a162_0x4513(){const _0x253751=['unknown-db','.xml','unknown-sql','540108YwcCAO','test','1129142kvtAea','sql','db-','1087398dzfYto','replace','1945056mMcsUM','1492860PUhrPz','57kIbSWH','trim','8878kSQAXp','1143355fNSyLl','.sql'];a162_0x4513=function(){return _0x253751;};return a162_0x4513();}
1
+ (function(_0x421a20,_0x420986){const _0x1f7281=a162_0xf44c,_0x2d2bff=_0x421a20();while(!![]){try{const _0x3ec28e=parseInt(_0x1f7281(0x160))/0x1+parseInt(_0x1f7281(0x161))/0x2*(parseInt(_0x1f7281(0x159))/0x3)+parseInt(_0x1f7281(0x153))/0x4+-parseInt(_0x1f7281(0x15c))/0x5*(parseInt(_0x1f7281(0x151))/0x6)+-parseInt(_0x1f7281(0x15d))/0x7+-parseInt(_0x1f7281(0x156))/0x8*(parseInt(_0x1f7281(0x15b))/0x9)+parseInt(_0x1f7281(0x15e))/0xa;if(_0x3ec28e===_0x420986)break;else _0x2d2bff['push'](_0x2d2bff['shift']());}catch(_0x280b97){_0x2d2bff['push'](_0x2d2bff['shift']());}}}(a162_0x5590,0x56b01));export function detectSqlMode(_0x16bf3e){const _0x29f654=a162_0xf44c,_0x2519ec=_0x16bf3e['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x29f654(0x152)](_0x2519ec))return _0x29f654(0x155);return'sql';}export function getSqlFileExtension(_0xe18fa4){const _0x382c7d=a162_0xf44c;return _0xe18fa4===_0x382c7d(0x155)?'.xml':_0x382c7d(0x15a);}function a162_0xf44c(_0x2f893e,_0x58c574){_0x2f893e=_0x2f893e-0x151;const _0x5590b6=a162_0x5590();let _0xf44c6e=_0x5590b6[_0x2f893e];return _0xf44c6e;}function a162_0x5590(){const _0x5b200f=['db-','291040ILBfpg','5798PfRdIX','174AxitiO','test','1338276WrGbUL','unknown-db','mybatisXml','216cFAfik','replace','unknown-sql','45kXhicw','.sql','46611fMtYXv','38795lvrwKu','3949792VlpAik','6150790bUlXVy'];a162_0x5590=function(){return _0x5b200f;};return a162_0x5590();}export function buildDefaultSqlFileName(_0xc938a,_0x539f60){return''+_0xc938a+getSqlFileExtension(_0x539f60);}export function sanitizeSqlPathSegment(_0x334acf,_0x101cf5){const _0x22bc2e=a162_0xf44c,_0x27a45b=String(_0x334acf??'')['trim'](),_0x35f7c6=_0x27a45b['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x22bc2e(0x157)](/-+/g,'-')[_0x22bc2e(0x157)](/^\.+/,'')[_0x22bc2e(0x157)](/\.+$/,'')[_0x22bc2e(0x157)](/^-+/,'')['replace'](/-+$/,'');return _0x35f7c6||_0x101cf5;}export function buildDbDirectoryName(_0x56cef5,_0x1d1d02){const _0x56b9a7=a162_0xf44c;return sanitizeSqlPathSegment(_0x56cef5,_0x1d1d02!=null?_0x56b9a7(0x15f)+_0x1d1d02:_0x56b9a7(0x154));}export function buildSqlRelativePath(_0x214ba8,_0x37b95f,_0x1ad6b5,_0x84f817,_0x5d4d97){const _0x5db166=a162_0xf44c,_0x52a59f=buildDbDirectoryName(_0x1ad6b5,_0x5d4d97),_0x4a3630=sanitizeSqlPathSegment(_0x214ba8,_0x5db166(0x158)),_0x6983d0=sanitizeSqlPathSegment(_0x37b95f,_0x4a3630);return _0x52a59f+'/'+_0x4a3630+'_'+_0x6983d0+getSqlFileExtension(_0x84f817);}
@@ -1 +1 @@
1
- (function(_0x2e3e3b,_0xca0726){const _0x60b4df=a163_0x57f2,_0x579c87=_0x2e3e3b();while(!![]){try{const _0x5b299f=-parseInt(_0x60b4df(0x147))/0x1+parseInt(_0x60b4df(0x14b))/0x2*(parseInt(_0x60b4df(0x14c))/0x3)+parseInt(_0x60b4df(0x13c))/0x4+-parseInt(_0x60b4df(0x13a))/0x5*(-parseInt(_0x60b4df(0x134))/0x6)+parseInt(_0x60b4df(0x155))/0x7*(parseInt(_0x60b4df(0x150))/0x8)+-parseInt(_0x60b4df(0x135))/0x9+-parseInt(_0x60b4df(0x14a))/0xa;if(_0x5b299f===_0xca0726)break;else _0x579c87['push'](_0x579c87['shift']());}catch(_0x2e47e2){_0x579c87['push'](_0x579c87['shift']());}}}(a163_0x51ab,0xc88e2));export function detectSqlType(_0x30586a){const _0x59840a=a163_0x57f2;if(!_0x30586a?.[_0x59840a(0x146)]())return{'type':_0x59840a(0x149),'isSelectOnly':![],'isDangerous':![],'reason':_0x59840a(0x140)};const _0x29502e=_0x30586a[_0x59840a(0x158)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x59840a(0x158)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x59840a(0x158)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x2dad46=_0x29502e[_0x59840a(0x159)]('\x0a');let _0x165717='';for(const _0x5f00fd of _0x2dad46){const _0x11cb95=_0x5f00fd[_0x59840a(0x146)]();if(!_0x11cb95||_0x11cb95[_0x59840a(0x15a)]('--')||_0x11cb95['startsWith']('/*'))continue;_0x165717=_0x11cb95;break;}const _0x5d8545=_0x165717[_0x59840a(0x148)]();if(_0x5d8545[_0x59840a(0x15a)](_0x59840a(0x139))||_0x5d8545[_0x59840a(0x15a)](_0x59840a(0x145))){const _0x504351=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x59840a(0x156)](_0x29502e);return{'type':_0x59840a(0x139),'isSelectOnly':!_0x504351,'isDangerous':_0x504351,'reason':_0x504351?_0x59840a(0x142):undefined};}if(_0x5d8545[_0x59840a(0x15a)]('INSERT'))return{'type':_0x59840a(0x143),'isSelectOnly':![],'isDangerous':![]};if(_0x5d8545[_0x59840a(0x15a)](_0x59840a(0x13d)))return{'type':_0x59840a(0x13d),'isSelectOnly':![],'isDangerous':![]};if(_0x5d8545[_0x59840a(0x15a)](_0x59840a(0x13f)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x59840a(0x156)](_0x5d8545))return{'type':_0x59840a(0x15b),'isSelectOnly':![],'isDangerous':!![],'reason':_0x59840a(0x13e)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x58ef51){const _0x3466fb=a163_0x57f2,_0x608494=_0x58ef51[_0x3466fb(0x158)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x3466fb(0x158)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4b6add=[],_0x2b2a78=_0x608494['match'](/FROM\s+([^\s,)(]+)/i);if(_0x2b2a78?.[0x1])_0x4b6add['push'](_0x2b2a78[0x1][_0x3466fb(0x158)](/[`"]/g,''));for(const _0x5deb72 of _0x608494[_0x3466fb(0x157)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4b87b2=_0x5deb72[0x1]?.[_0x3466fb(0x158)](/[`"]/g,'');if(_0x4b87b2&&!_0x4b6add[_0x3466fb(0x13b)](_0x4b87b2))_0x4b6add['push'](_0x4b87b2);}const _0x57999b=_0x608494[_0x3466fb(0x144)](/INTO\s+([^\s(]+)/i);if(_0x57999b?.[0x1]){const _0xa7ad16=_0x57999b[0x1][_0x3466fb(0x158)](/[`"]/g,'');if(!_0x4b6add[_0x3466fb(0x13b)](_0xa7ad16))_0x4b6add[_0x3466fb(0x138)](_0xa7ad16);}const _0x1ee1a9=_0x608494['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x1ee1a9?.[0x1]){const _0x29d46c=_0x1ee1a9[0x1][_0x3466fb(0x158)](/[`"]/g,'');if(!_0x4b6add[_0x3466fb(0x13b)](_0x29d46c))_0x4b6add[_0x3466fb(0x138)](_0x29d46c);}return _0x4b6add;}function extractParameters(_0x3e36f0){const _0x476756=a163_0x57f2,_0x2f2c80=new Set();for(const _0x3598bf of _0x3e36f0[_0x476756(0x157)](/#\{(\w+)\}/g))if(_0x3598bf[0x1])_0x2f2c80[_0x476756(0x15c)](_0x3598bf[0x1]);for(const _0xf9d2be of _0x3e36f0['matchAll'](/\$\{(\w+)\}/g))if(_0xf9d2be[0x1])_0x2f2c80[_0x476756(0x15c)](_0xf9d2be[0x1]);return Array[_0x476756(0x152)](_0x2f2c80);}function a163_0x51ab(){const _0x5ac0be=['match','WITH','trim','597658IVFaDY','toUpperCase','UNKNOWN','17105130jXhbPQ','1660bmNgSU','5481ceHqhv','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','type','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','4048awGZEH','join','from','reason','unknown\x20table(s)','8211qKYrAX','test','matchAll','replace','split','startsWith','DDL','add','137670wflALC','3202353TWvCyZ','\x20with\x20parameters:\x20','isDangerous','push','SELECT','195YXFVEy','includes','1922636uJVkzv','UPDATE','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','DELETE','SQL\x20content\x20is\x20empty','length','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','INSERT'];a163_0x51ab=function(){return _0x5ac0be;};return a163_0x51ab();}function a163_0x57f2(_0x381289,_0x46f05d){_0x381289=_0x381289-0x134;const _0x51abf7=a163_0x51ab();let _0x57f299=_0x51abf7[_0x381289];return _0x57f299;}export function validateSql(_0xcb210f){const _0x2a3c02=a163_0x57f2,_0x12b9cb=detectSqlType(_0xcb210f),_0x4d532e=extractTables(_0xcb210f),_0x4fc0ec=extractParameters(_0xcb210f);if(_0x12b9cb[_0x2a3c02(0x137)])return{'valid':![],'sqlType':_0x12b9cb,'tables':_0x4d532e,'parameters':_0x4fc0ec,'message':_0x12b9cb[_0x2a3c02(0x153)]||_0x12b9cb['type']+_0x2a3c02(0x14d)};if(_0x12b9cb[_0x2a3c02(0x14e)]===_0x2a3c02(0x149))return{'valid':![],'sqlType':_0x12b9cb,'tables':_0x4d532e,'parameters':_0x4fc0ec,'message':_0x2a3c02(0x14f)};return{'valid':!![],'sqlType':_0x12b9cb,'tables':_0x4d532e,'parameters':_0x4fc0ec,'message':_0x12b9cb[_0x2a3c02(0x14e)]+'\x20query\x20targeting\x20'+(_0x4d532e['length']?_0x4d532e[_0x2a3c02(0x151)](',\x20'):_0x2a3c02(0x154))+(_0x4fc0ec[_0x2a3c02(0x141)]?_0x2a3c02(0x136)+_0x4fc0ec[_0x2a3c02(0x151)](',\x20'):'')};}
1
+ (function(_0x53134c,_0x3b9fd0){const _0x374974=a163_0x3715,_0x332c97=_0x53134c();while(!![]){try{const _0x1957b=parseInt(_0x374974(0xee))/0x1*(-parseInt(_0x374974(0xff))/0x2)+-parseInt(_0x374974(0x104))/0x3+-parseInt(_0x374974(0x101))/0x4*(parseInt(_0x374974(0xfb))/0x5)+-parseInt(_0x374974(0xfc))/0x6+-parseInt(_0x374974(0x105))/0x7+-parseInt(_0x374974(0x112))/0x8+parseInt(_0x374974(0x100))/0x9;if(_0x1957b===_0x3b9fd0)break;else _0x332c97['push'](_0x332c97['shift']());}catch(_0x420b77){_0x332c97['push'](_0x332c97['shift']());}}}(a163_0x2e1f,0x82682));function a163_0x2e1f(){const _0x57faab=['UPDATE','1418RBbgky','INSERT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','test','push','DELETE','toUpperCase','type','\x20query\x20targeting\x20','from','replace','join','SQL\x20content\x20is\x20empty','5DYMywM','2928378lXPBSi','add','WITH','320EtKteA','32704389DlLCMd','4243172kdctdM','trim','match','771957kEvKhB','363552IcbjeK','DDL','\x20with\x20parameters:\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SELECT','isDangerous','length','split','includes','matchAll','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','8117472HvLVaB','unknown\x20table(s)','reason','UNKNOWN'];a163_0x2e1f=function(){return _0x57faab;};return a163_0x2e1f();}function a163_0x3715(_0x577844,_0xc8c9ca){_0x577844=_0x577844-0xee;const _0x2e1f52=a163_0x2e1f();let _0x3715c9=_0x2e1f52[_0x577844];return _0x3715c9;}export function detectSqlType(_0xb0bf8a){const _0xdf4581=a163_0x3715;if(!_0xb0bf8a?.[_0xdf4581(0x102)]())return{'type':_0xdf4581(0x115),'isSelectOnly':![],'isDangerous':![],'reason':_0xdf4581(0xfa)};const _0x4e67a2=_0xb0bf8a[_0xdf4581(0xf8)](/#\{[^}]*\}/g,'?')[_0xdf4581(0xf8)](/\$\{[^}]*\}/g,'?')[_0xdf4581(0xf8)](/@[^(\s]+(\([^)]*\))?/g,'')[_0xdf4581(0xf8)](/\/\*[\s\S]*?\*\//g,'')[_0xdf4581(0x102)](),_0x132e13=_0x4e67a2[_0xdf4581(0x10c)]('\x0a');let _0x20a50a='';for(const _0x293431 of _0x132e13){const _0x33fd1b=_0x293431[_0xdf4581(0x102)]();if(!_0x33fd1b||_0x33fd1b[_0xdf4581(0x110)]('--')||_0x33fd1b[_0xdf4581(0x110)]('/*'))continue;_0x20a50a=_0x33fd1b;break;}const _0x201842=_0x20a50a[_0xdf4581(0xf4)]();if(_0x201842[_0xdf4581(0x110)](_0xdf4581(0x109))||_0x201842['startsWith'](_0xdf4581(0xfe))){const _0x25fdaf=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0xdf4581(0xf1)](_0x4e67a2);return{'type':_0xdf4581(0x109),'isSelectOnly':!_0x25fdaf,'isDangerous':_0x25fdaf,'reason':_0x25fdaf?_0xdf4581(0x111):undefined};}if(_0x201842[_0xdf4581(0x110)](_0xdf4581(0xef)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x201842['startsWith'](_0xdf4581(0x116)))return{'type':_0xdf4581(0x116),'isSelectOnly':![],'isDangerous':![]};if(_0x201842[_0xdf4581(0x110)](_0xdf4581(0xf3)))return{'type':_0xdf4581(0xf3),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0xdf4581(0xf1)](_0x201842))return{'type':_0xdf4581(0x106),'isSelectOnly':![],'isDangerous':!![],'reason':_0xdf4581(0x10f)};return{'type':_0xdf4581(0x115),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5b32d1){const _0x43410b=a163_0x3715,_0x55bcc4=_0x5b32d1[_0x43410b(0xf8)](/#\{[^}]*\}/g,'?')[_0x43410b(0xf8)](/\$\{[^}]*\}/g,'?')[_0x43410b(0xf8)](/'[^']*'/g,'\x27\x27')[_0x43410b(0xf8)](/--.*$/gm,'')[_0x43410b(0xf8)](/\/\*[\s\S]*?\*\//g,''),_0x50fe23=[],_0x3981c4=_0x55bcc4[_0x43410b(0x103)](/FROM\s+([^\s,)(]+)/i);if(_0x3981c4?.[0x1])_0x50fe23[_0x43410b(0xf2)](_0x3981c4[0x1][_0x43410b(0xf8)](/[`"]/g,''));for(const _0x5b5669 of _0x55bcc4[_0x43410b(0x10e)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4ac827=_0x5b5669[0x1]?.[_0x43410b(0xf8)](/[`"]/g,'');if(_0x4ac827&&!_0x50fe23[_0x43410b(0x10d)](_0x4ac827))_0x50fe23[_0x43410b(0xf2)](_0x4ac827);}const _0x49d477=_0x55bcc4[_0x43410b(0x103)](/INTO\s+([^\s(]+)/i);if(_0x49d477?.[0x1]){const _0x425fc8=_0x49d477[0x1]['replace'](/[`"]/g,'');if(!_0x50fe23[_0x43410b(0x10d)](_0x425fc8))_0x50fe23['push'](_0x425fc8);}const _0x2d09ad=_0x55bcc4[_0x43410b(0x103)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2d09ad?.[0x1]){const _0x53082d=_0x2d09ad[0x1]['replace'](/[`"]/g,'');if(!_0x50fe23[_0x43410b(0x10d)](_0x53082d))_0x50fe23[_0x43410b(0xf2)](_0x53082d);}return _0x50fe23;}function extractParameters(_0xa2c0df){const _0x59fc17=a163_0x3715,_0x372008=new Set();for(const _0x45e675 of _0xa2c0df[_0x59fc17(0x10e)](/#\{(\w+)\}/g))if(_0x45e675[0x1])_0x372008['add'](_0x45e675[0x1]);for(const _0x3e28c0 of _0xa2c0df[_0x59fc17(0x10e)](/\$\{(\w+)\}/g))if(_0x3e28c0[0x1])_0x372008[_0x59fc17(0xfd)](_0x3e28c0[0x1]);return Array[_0x59fc17(0xf7)](_0x372008);}export function validateSql(_0x3bcd4a){const _0x3b6ca6=a163_0x3715,_0x58cdd5=detectSqlType(_0x3bcd4a),_0x208df7=extractTables(_0x3bcd4a),_0x4de95c=extractParameters(_0x3bcd4a);if(_0x58cdd5[_0x3b6ca6(0x10a)])return{'valid':![],'sqlType':_0x58cdd5,'tables':_0x208df7,'parameters':_0x4de95c,'message':_0x58cdd5[_0x3b6ca6(0x114)]||_0x58cdd5[_0x3b6ca6(0xf5)]+_0x3b6ca6(0xf0)};if(_0x58cdd5[_0x3b6ca6(0xf5)]===_0x3b6ca6(0x115))return{'valid':![],'sqlType':_0x58cdd5,'tables':_0x208df7,'parameters':_0x4de95c,'message':_0x3b6ca6(0x108)};return{'valid':!![],'sqlType':_0x58cdd5,'tables':_0x208df7,'parameters':_0x4de95c,'message':_0x58cdd5[_0x3b6ca6(0xf5)]+_0x3b6ca6(0xf6)+(_0x208df7[_0x3b6ca6(0x10b)]?_0x208df7[_0x3b6ca6(0xf9)](',\x20'):_0x3b6ca6(0x113))+(_0x4de95c[_0x3b6ca6(0x10b)]?_0x3b6ca6(0x107)+_0x4de95c['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a164_0x1784(_0xd16a6d,_0x16a314){_0xd16a6d=_0xd16a6d-0x69;const _0x40ead9=a164_0x40ea();let _0x1784af=_0x40ead9[_0xd16a6d];return _0x1784af;}const a164_0x36be4e=a164_0x1784;(function(_0x3f2a1e,_0x540aa4){const _0x17ca32=a164_0x1784,_0x30bb64=_0x3f2a1e();while(!![]){try{const _0x49aad4=parseInt(_0x17ca32(0x70))/0x1+parseInt(_0x17ca32(0x76))/0x2*(-parseInt(_0x17ca32(0x6f))/0x3)+parseInt(_0x17ca32(0x6a))/0x4+-parseInt(_0x17ca32(0x6c))/0x5*(-parseInt(_0x17ca32(0x71))/0x6)+-parseInt(_0x17ca32(0x69))/0x7*(parseInt(_0x17ca32(0x6b))/0x8)+-parseInt(_0x17ca32(0x77))/0x9+-parseInt(_0x17ca32(0x6e))/0xa*(-parseInt(_0x17ca32(0x72))/0xb);if(_0x49aad4===_0x540aa4)break;else _0x30bb64['push'](_0x30bb64['shift']());}catch(_0x43c45d){_0x30bb64['push'](_0x30bb64['shift']());}}}(a164_0x40ea,0x4190d));function a164_0x40ea(){const _0x555780=['17460qEqXoP','42wByCvj','22FoSFvg','\x0a\x20\x20\x20\x20\x20\x20\x20','Set\x20appcode\x20via\x20`','Run\x20`','1564XQVYwx','4491747TuKjnM','7GGTcsl','1805920VwcwIE','3597296GSykTL','212770YOBkyx','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','3429330aIThWi','903DHFgsF'];a164_0x40ea=function(){return _0x555780;};return a164_0x40ea();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a164_0x36be4e(0x75)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a164_0x36be4e(0x74)+CLI_BIN_NAME+a164_0x36be4e(0x6d),'Tip:\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a164_0x36be4e(0x73)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a164_0x267868=a164_0x3a17;(function(_0x4a0f05,_0x3819ae){const _0xfa73c7=a164_0x3a17,_0x377ada=_0x4a0f05();while(!![]){try{const _0x847e2a=parseInt(_0xfa73c7(0x1d5))/0x1+-parseInt(_0xfa73c7(0x1d2))/0x2*(parseInt(_0xfa73c7(0x1d0))/0x3)+-parseInt(_0xfa73c7(0x1d4))/0x4*(parseInt(_0xfa73c7(0x1db))/0x5)+-parseInt(_0xfa73c7(0x1da))/0x6+-parseInt(_0xfa73c7(0x1d8))/0x7+-parseInt(_0xfa73c7(0x1d7))/0x8+parseInt(_0xfa73c7(0x1d9))/0x9;if(_0x847e2a===_0x3819ae)break;else _0x377ada['push'](_0x377ada['shift']());}catch(_0x507b89){_0x377ada['push'](_0x377ada['shift']());}}}(a164_0x2a4f,0x91caa));function a164_0x2a4f(){const _0x39861d=['36dXyuNz','149074jMhOKI','Run\x20`','4413112WATEtB','5752705TsWFiO','23587416QLLDSA','199968HizLbO','148235GLFsVa','Tip:\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','Set\x20appcode\x20via\x20`','9SbyVVK','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','332754NsuxYS','join'];a164_0x2a4f=function(){return _0x39861d;};return a164_0x2a4f();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a164_0x3a17(_0x422ac3,_0x77c2c){_0x422ac3=_0x422ac3-0x1cd;const _0x2a4f63=a164_0x2a4f();let _0x3a176f=_0x2a4f63[_0x422ac3];return _0x3a176f;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a164_0x267868(0x1d6)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a164_0x267868(0x1cf)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a164_0x267868(0x1cd)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a164_0x267868(0x1d3)](a164_0x267868(0x1ce)),'notInProjectHint':a164_0x267868(0x1d1)});
@@ -1 +1 @@
1
- (function(_0x38c93c,_0x452ee0){var _0x58ea20=a165_0x370b,_0x35b946=_0x38c93c();while(!![]){try{var _0x491d8b=-parseInt(_0x58ea20(0x112))/0x1*(parseInt(_0x58ea20(0x110))/0x2)+parseInt(_0x58ea20(0x113))/0x3*(-parseInt(_0x58ea20(0x10d))/0x4)+-parseInt(_0x58ea20(0x111))/0x5*(-parseInt(_0x58ea20(0x10e))/0x6)+-parseInt(_0x58ea20(0x115))/0x7+parseInt(_0x58ea20(0x10c))/0x8+parseInt(_0x58ea20(0x114))/0x9+parseInt(_0x58ea20(0x10f))/0xa;if(_0x491d8b===_0x452ee0)break;else _0x35b946['push'](_0x35b946['shift']());}catch(_0x34e03e){_0x35b946['push'](_0x35b946['shift']());}}}(a165_0x3ff7,0xaa0c7));function a165_0x370b(_0x109ef6,_0x350c1d){_0x109ef6=_0x109ef6-0x10c;var _0x3ff7c2=a165_0x3ff7();var _0x370bf2=_0x3ff7c2[_0x109ef6];return _0x370bf2;}function a165_0x3ff7(){var _0x2ef925=['10931888SlxeOF','4vmzBLu','6flTAjr','3982510oyvkvu','2852ZDLDsh','2392175HbWlmI','259EfLFGa','396471sxuLNe','2074536JeJQzi','8929662tvfRHl'];a165_0x3ff7=function(){return _0x2ef925;};return a165_0x3ff7();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x2a5ea0}from'@lovrabet/cli-framework';export function buildAllFlags(_0xb7f634){return a165_0x2a5ea0(_0xb7f634,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a165_0x38a4(){var _0x3e5195=['7wQhXgR','2WDcxEn','4655124GSRGQK','1299614PsKPQM','33MoMODR','96650NCpVVH','18qxxJvP','212yYfudB','2823210rrKxrI','85220bWIIWP','2357064PRsUKh','6780712KmfTrA'];a165_0x38a4=function(){return _0x3e5195;};return a165_0x38a4();}(function(_0x313cc4,_0x1a9f34){var _0x3649e1=a165_0x2812,_0x33f669=_0x313cc4();while(!![]){try{var _0x5b7c7a=parseInt(_0x3649e1(0x159))/0x1*(-parseInt(_0x3649e1(0x15b))/0x2)+parseInt(_0x3649e1(0x160))/0x3+parseInt(_0x3649e1(0x15f))/0x4*(-parseInt(_0x3649e1(0x155))/0x5)+parseInt(_0x3649e1(0x15a))/0x6+parseInt(_0x3649e1(0x158))/0x7*(parseInt(_0x3649e1(0x157))/0x8)+-parseInt(_0x3649e1(0x15e))/0x9*(parseInt(_0x3649e1(0x15d))/0xa)+parseInt(_0x3649e1(0x15c))/0xb*(parseInt(_0x3649e1(0x156))/0xc);if(_0x5b7c7a===_0x1a9f34)break;else _0x33f669['push'](_0x33f669['shift']());}catch(_0xc2df86){_0x33f669['push'](_0x33f669['shift']());}}}(a165_0x38a4,0xe36af));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x498d40}from'@lovrabet/cli-framework';function a165_0x2812(_0x4de61b,_0x2ac2a0){_0x4de61b=_0x4de61b-0x155;var _0x38a4a5=a165_0x38a4();var _0x2812d2=_0x38a4a5[_0x4de61b];return _0x2812d2;}export function buildAllFlags(_0x1baf34){return a165_0x498d40(_0x1baf34,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a166_0x37b1c2=a166_0x52c5;function a166_0x52c5(_0x327496,_0x85f165){_0x327496=_0x327496-0x1ad;const _0x45bd93=a166_0x45bd();let _0x52c552=_0x45bd93[_0x327496];return _0x52c552;}(function(_0x995d39,_0x1cbc58){const _0x3a0a3c=a166_0x52c5,_0x34fdda=_0x995d39();while(!![]){try{const _0x164459=-parseInt(_0x3a0a3c(0x1b0))/0x1*(parseInt(_0x3a0a3c(0x1b4))/0x2)+-parseInt(_0x3a0a3c(0x1b1))/0x3*(parseInt(_0x3a0a3c(0x1b5))/0x4)+-parseInt(_0x3a0a3c(0x1ad))/0x5*(parseInt(_0x3a0a3c(0x1b6))/0x6)+-parseInt(_0x3a0a3c(0x1ae))/0x7+parseInt(_0x3a0a3c(0x1b8))/0x8+-parseInt(_0x3a0a3c(0x1b2))/0x9+parseInt(_0x3a0a3c(0x1b7))/0xa;if(_0x164459===_0x1cbc58)break;else _0x34fdda['push'](_0x34fdda['shift']());}catch(_0x744f18){_0x34fdda['push'](_0x34fdda['shift']());}}}(a166_0x45bd,0xf24d9));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a166_0x37b1c2(0x1b3)];export const validateFlags=helpers[a166_0x37b1c2(0x1af)];function a166_0x45bd(){const _0x418a34=['15085998gcydfI','parseFlags','5654hCbznd','4WpQZZy','159828bFvOfZ','63141750BSClfQ','4326232aUrbyz','315fZYhbP','8894207oFeesM','validateFlags','433jdcrzQ','40119JGgrnn'];a166_0x45bd=function(){return _0x418a34;};return a166_0x45bd();}
1
+ const a166_0x4ac507=a166_0x128b;(function(_0x40f56c,_0x5dcdab){const _0x24df28=a166_0x128b,_0x213bcb=_0x40f56c();while(!![]){try{const _0x4ab053=-parseInt(_0x24df28(0x1a1))/0x1+-parseInt(_0x24df28(0x1a3))/0x2+parseInt(_0x24df28(0x19b))/0x3+parseInt(_0x24df28(0x1a2))/0x4*(parseInt(_0x24df28(0x1a0))/0x5)+-parseInt(_0x24df28(0x199))/0x6*(-parseInt(_0x24df28(0x19c))/0x7)+-parseInt(_0x24df28(0x19a))/0x8+-parseInt(_0x24df28(0x19f))/0x9*(-parseInt(_0x24df28(0x19e))/0xa);if(_0x4ab053===_0x5dcdab)break;else _0x213bcb['push'](_0x213bcb['shift']());}catch(_0x27ad91){_0x213bcb['push'](_0x213bcb['shift']());}}}(a166_0x5c48,0x81e43));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a166_0x128b(_0x4d6749,_0x40dafb){_0x4d6749=_0x4d6749-0x199;const _0x5c486a=a166_0x5c48();let _0x128b8d=_0x5c486a[_0x4d6749];return _0x128b8d;}const helpers=createFlagHelpers(CliErrors);function a166_0x5c48(){const _0x5d2ba9=['996305VbbVVF','104nbQzXq','1271662vhbeqm','36iJwgLv','5719920cNGFPN','3053820yimhuj','950614oxRJzD','validateFlags','390sQEMbJ','1521ZVUsHG','199965sJhBJN'];a166_0x5c48=function(){return _0x5d2ba9;};return a166_0x5c48();}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a166_0x4ac507(0x19d)];
@@ -1 +1 @@
1
- const a167_0xcc1fa9=a167_0x2b5d;function a167_0x2b79(){const _0x522fae=['get','175980FDwlii','generateCommandHelp','\x20[args]\x20[flags]','275934ubVgiM','\x20project\x20init`\x20or\x20--appcode).','133TkOgit','105164ZoBtBy','Requires\x20appcode\x20(set\x20via\x20`','45STpvIF','785709SmCQAs','778767vnLJGm','generateServiceHelp','11293975RQawCF','144JghjqN','10RJQXmU','8484520gdUHBV'];a167_0x2b79=function(){return _0x522fae;};return a167_0x2b79();}(function(_0x4bc620,_0x266384){const _0x2dfb4c=a167_0x2b5d,_0x2bbd7e=_0x4bc620();while(!![]){try{const _0x3ec01f=-parseInt(_0x2dfb4c(0x15f))/0x1+parseInt(_0x2dfb4c(0x15c))/0x2*(parseInt(_0x2dfb4c(0x158))/0x3)+-parseInt(_0x2dfb4c(0x154))/0x4*(-parseInt(_0x2dfb4c(0x156))/0x5)+-parseInt(_0x2dfb4c(0x162))/0x6*(-parseInt(_0x2dfb4c(0x153))/0x7)+parseInt(_0x2dfb4c(0x15b))/0x8*(-parseInt(_0x2dfb4c(0x157))/0x9)+-parseInt(_0x2dfb4c(0x15d))/0xa+parseInt(_0x2dfb4c(0x15a))/0xb;if(_0x3ec01f===_0x266384)break;else _0x2bbd7e['push'](_0x2bbd7e['shift']());}catch(_0x349126){_0x2bbd7e['push'](_0x2bbd7e['shift']());}}}(a167_0x2b79,0xcce3e));import{createHelpGenerators}from'@lovrabet/cli-framework';function a167_0x2b5d(_0x17f13e,_0x59406a){_0x17f13e=_0x17f13e-0x153;const _0x2b7915=a167_0x2b79();let _0x2b5d87=_0x2b7915[_0x17f13e];return _0x2b5d87;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x543e6d=>serviceGroups[a167_0xcc1fa9(0x15e)](_0x543e6d),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a167_0xcc1fa9(0x155)+CLI_BIN_NAME+a167_0xcc1fa9(0x163),'serviceUsageSuffix':a167_0xcc1fa9(0x161),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2dab8e){const _0x427bef=a167_0xcc1fa9;return generators[_0x427bef(0x160)](_0x2dab8e);}export const generateServiceHelp=generators[a167_0xcc1fa9(0x159)];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a167_0x16c6d1=a167_0x470e;(function(_0x1cc74c,_0x27e1ba){const _0x3f921e=a167_0x470e,_0x5adfd0=_0x1cc74c();while(!![]){try{const _0x498d1b=parseInt(_0x3f921e(0x1ab))/0x1+-parseInt(_0x3f921e(0x1a7))/0x2+parseInt(_0x3f921e(0x1a1))/0x3*(parseInt(_0x3f921e(0x1a3))/0x4)+parseInt(_0x3f921e(0x1a4))/0x5*(parseInt(_0x3f921e(0x19c))/0x6)+-parseInt(_0x3f921e(0x19f))/0x7*(parseInt(_0x3f921e(0x1a5))/0x8)+-parseInt(_0x3f921e(0x19e))/0x9*(-parseInt(_0x3f921e(0x1a8))/0xa)+-parseInt(_0x3f921e(0x1a0))/0xb;if(_0x498d1b===_0x27e1ba)break;else _0x5adfd0['push'](_0x5adfd0['shift']());}catch(_0x2b78e7){_0x5adfd0['push'](_0x5adfd0['shift']());}}}(a167_0x4407,0xed97a));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x1669a5=>serviceGroups[a167_0x16c6d1(0x1a6)](_0x1669a5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a167_0x16c6d1(0x1a9),'serviceUsageSuffix':a167_0x16c6d1(0x1aa),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x59eb04){const _0x58693c=a167_0x16c6d1;return generators[_0x58693c(0x19b)](_0x59eb04);}function a167_0x4407(){const _0x519426=['18PmGtnw','generateFullHelp','576616iBKZQW','19070JLvreS','176SJJRDl','get','891502uamvDG','367190qfCqdn','\x20project\x20init`\x20or\x20--appcode).','\x20[args]\x20[flags]','1320308RoHtRq','generateCommandHelp','2478TadSRP','generateServiceHelp','315pVbmxd','294035tzsINm','29727940mvnfUC'];a167_0x4407=function(){return _0x519426;};return a167_0x4407();}function a167_0x470e(_0x255a41,_0x29f0dd){_0x255a41=_0x255a41-0x19b;const _0x440742=a167_0x4407();let _0x470e5e=_0x440742[_0x255a41];return _0x470e5e;}export const generateServiceHelp=generators[a167_0x16c6d1(0x19d)];export const generateFullHelp=generators[a167_0x16c6d1(0x1a2)];
@@ -1 +1 @@
1
- (function(_0x40af9e,_0x56633e){var _0x16cef4=a168_0x1967,_0x3d8656=_0x40af9e();while(!![]){try{var _0x4018b3=parseInt(_0x16cef4(0x1f2))/0x1*(-parseInt(_0x16cef4(0x1f4))/0x2)+-parseInt(_0x16cef4(0x1f6))/0x3*(-parseInt(_0x16cef4(0x1f7))/0x4)+-parseInt(_0x16cef4(0x1f3))/0x5+parseInt(_0x16cef4(0x1f8))/0x6*(parseInt(_0x16cef4(0x1f5))/0x7)+-parseInt(_0x16cef4(0x1f9))/0x8+-parseInt(_0x16cef4(0x1f1))/0x9*(parseInt(_0x16cef4(0x1ef))/0xa)+parseInt(_0x16cef4(0x1f0))/0xb;if(_0x4018b3===_0x56633e)break;else _0x3d8656['push'](_0x3d8656['shift']());}catch(_0x18d5b5){_0x3d8656['push'](_0x3d8656['shift']());}}}(a168_0x2a17,0x240b2));function a168_0x2a17(){var _0x500bba=['575310nUSuiA','8061746xQrpCb','45QMFVLS','7197YkfIbm','420125MiPoxy','78GWcRrF','28asOyZy','27ClJKJN','64632gMYGOT','318174hsvmRc','2323416xUvviZ'];a168_0x2a17=function(){return _0x500bba;};return a168_0x2a17();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a168_0x1967(_0x122015,_0x18b8f6){_0x122015=_0x122015-0x1ef;var _0x2a17f6=a168_0x2a17();var _0x1967a7=_0x2a17f6[_0x122015];return _0x1967a7;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4821d8,_0x4ce2f7){var _0x2a70f9=a168_0x4259,_0x234628=_0x4821d8();while(!![]){try{var _0x39542a=parseInt(_0x2a70f9(0x127))/0x1*(parseInt(_0x2a70f9(0x12e))/0x2)+-parseInt(_0x2a70f9(0x129))/0x3+-parseInt(_0x2a70f9(0x12a))/0x4+parseInt(_0x2a70f9(0x12d))/0x5+parseInt(_0x2a70f9(0x12b))/0x6+parseInt(_0x2a70f9(0x128))/0x7+-parseInt(_0x2a70f9(0x12c))/0x8;if(_0x39542a===_0x4ce2f7)break;else _0x234628['push'](_0x234628['shift']());}catch(_0x217bc6){_0x234628['push'](_0x234628['shift']());}}}(a168_0x3d68,0x4f62c));export{runCommand}from'../framework/runner.js';function a168_0x3d68(){var _0x204bf6=['2677605StzRiS','22xrBaoM','18161UkhtGV','1177393OvUFUg','688857iWdwWk','159240gQHCxh','2298750DFmuCP','5536184XvGNTd'];a168_0x3d68=function(){return _0x204bf6;};return a168_0x3d68();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a168_0x4259(_0x2861f5,_0x23744b){_0x2861f5=_0x2861f5-0x127;var _0x3d68fb=a168_0x3d68();var _0x4259c9=_0x3d68fb[_0x2861f5];return _0x4259c9;}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x4ba370,_0x15b6b7){const _0x254e56=a169_0x1ca2,_0xe38c7a=_0x4ba370();while(!![]){try{const _0x1f8773=parseInt(_0x254e56(0x1c4))/0x1+parseInt(_0x254e56(0x1ba))/0x2+-parseInt(_0x254e56(0x1b8))/0x3*(-parseInt(_0x254e56(0x1b9))/0x4)+parseInt(_0x254e56(0x1c1))/0x5*(parseInt(_0x254e56(0x1c3))/0x6)+-parseInt(_0x254e56(0x1bc))/0x7*(parseInt(_0x254e56(0x1c2))/0x8)+-parseInt(_0x254e56(0x1bf))/0x9+-parseInt(_0x254e56(0x1c0))/0xa;if(_0x1f8773===_0x15b6b7)break;else _0xe38c7a['push'](_0xe38c7a['shift']());}catch(_0x239cbd){_0xe38c7a['push'](_0xe38c7a['shift']());}}}(a169_0x580a,0xa6354));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a169_0x1ca2(_0x433a02,_0x21dece){_0x433a02=_0x433a02-0x1b6;const _0x580a58=a169_0x580a();let _0x1ca2d1=_0x580a58[_0x433a02];return _0x1ca2d1;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a169_0x580a(){const _0x258729=['4385hLxWLj','32ZFXyqA','8604QJEPJI','1110657bAYrPO','format','url','pretty','3hxHzis','4472948VgKEtW','409200KnMsNc','update','439453HICdgG','message','_notice','10560915pNbhUw','15857730dTiJKQ'];a169_0x580a=function(){return _0x258729;};return a169_0x580a();}export function formatOutput(_0x4d46cc,_0x392ee9){const _0x14ea68=a169_0x1ca2,_0x5d889d=_0x4d46cc[_0x14ea68(0x1be)],{_notice:_0x3346ba,..._0x5700e3}=_0x4d46cc;void _0x3346ba,baseFormatOutput(_0x5700e3,_0x392ee9),_0x392ee9[_0x14ea68(0x1c5)]===_0x14ea68(0x1b7)&&printPrettyNotice(_0x5d889d);}function printPrettyNotice(_0x4b77e9){const _0x258a16=a169_0x1ca2;if(!_0x4b77e9?.['update'])return;console['error'](_0x4b77e9[_0x258a16(0x1bb)][_0x258a16(0x1bd)]+'\x20('+_0x4b77e9[_0x258a16(0x1bb)][_0x258a16(0x1b6)]+')');}
1
+ (function(_0x46f17e,_0x2500a1){const _0x412ca9=a169_0x2eb6,_0x4ed979=_0x46f17e();while(!![]){try{const _0x21f9da=parseInt(_0x412ca9(0x87))/0x1*(parseInt(_0x412ca9(0x88))/0x2)+-parseInt(_0x412ca9(0x7b))/0x3*(-parseInt(_0x412ca9(0x89))/0x4)+parseInt(_0x412ca9(0x7f))/0x5+parseInt(_0x412ca9(0x7a))/0x6+-parseInt(_0x412ca9(0x7c))/0x7*(parseInt(_0x412ca9(0x7e))/0x8)+parseInt(_0x412ca9(0x82))/0x9*(-parseInt(_0x412ca9(0x83))/0xa)+-parseInt(_0x412ca9(0x84))/0xb;if(_0x21f9da===_0x2500a1)break;else _0x4ed979['push'](_0x4ed979['shift']());}catch(_0x2b9737){_0x4ed979['push'](_0x4ed979['shift']());}}}(a169_0x1f86,0x39de7));function a169_0x2eb6(_0x268c25,_0x5c8949){_0x268c25=_0x268c25-0x7a;const _0x1f86dd=a169_0x1f86();let _0x2eb63b=_0x1f86dd[_0x268c25];return _0x2eb63b;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a169_0x1f86(){const _0x157729=['917612IPfUmM','24852AhJQuJ','859764ZFmlBX','108RMJKwI','143500qgabEG','message','80ooIbdw','1642020tcemub','url','_notice','51732hmwCbM','160OTWQtf','6821903fyEAHX','pretty','format','1JMUBvt'];a169_0x1f86=function(){return _0x157729;};return a169_0x1f86();}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x412d0b,_0x1278f8){const _0x13322d=a169_0x2eb6,_0x2a9014=_0x412d0b[_0x13322d(0x81)],{_notice:_0x40f683,..._0x443e40}=_0x412d0b;void _0x40f683,baseFormatOutput(_0x443e40,_0x1278f8),_0x1278f8[_0x13322d(0x86)]===_0x13322d(0x85)&&printPrettyNotice(_0x2a9014);}function printPrettyNotice(_0x30fbc5){const _0xd64788=a169_0x2eb6;if(!_0x30fbc5?.['update'])return;console['error'](_0x30fbc5['update'][_0xd64788(0x7d)]+'\x20('+_0x30fbc5['update'][_0xd64788(0x80)]+')');}
@@ -1 +1 @@
1
- function a170_0x21c9(){var _0x137537=['2964330lfChbV','1012096JODfJD','2270485ylrBkT','3068NiDMbN','20yNiqat','473080ojwVcX','252714SVdtUZ','10XvQZGo','1074304lHzAYZ','1OxcstH','993miYqWM'];a170_0x21c9=function(){return _0x137537;};return a170_0x21c9();}function a170_0x3ecc(_0xb96972,_0x13de8c){_0xb96972=_0xb96972-0x13d;var _0x21c956=a170_0x21c9();var _0x3ecc8b=_0x21c956[_0xb96972];return _0x3ecc8b;}(function(_0x4103ec,_0x3bde87){var _0x3218b=a170_0x3ecc,_0x472310=_0x4103ec();while(!![]){try{var _0x4b8b65=parseInt(_0x3218b(0x145))/0x1*(-parseInt(_0x3218b(0x141))/0x2)+parseInt(_0x3218b(0x146))/0x3*(parseInt(_0x3218b(0x13f))/0x4)+parseInt(_0x3218b(0x143))/0x5*(parseInt(_0x3218b(0x142))/0x6)+parseInt(_0x3218b(0x13e))/0x7+-parseInt(_0x3218b(0x13d))/0x8+parseInt(_0x3218b(0x147))/0x9*(parseInt(_0x3218b(0x140))/0xa)+-parseInt(_0x3218b(0x144))/0xb;if(_0x4b8b65===_0x3bde87)break;else _0x472310['push'](_0x472310['shift']());}catch(_0x118007){_0x472310['push'](_0x472310['shift']());}}}(a170_0x21c9,0xd214e));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a170_0x3d29(){var _0x372ce5=['195146iWVcCo','2394zNviQE','9680dIzKDz','65074RahTKO','18GkVwfg','321570FjsYmi','177728tvVpum','307530ETOJeb','62080xfCqVy','16FVyhCp'];a170_0x3d29=function(){return _0x372ce5;};return a170_0x3d29();}(function(_0x5688df,_0x1b45c4){var _0x31f3c3=a170_0x1761,_0xdfc6f0=_0x5688df();while(!![]){try{var _0x49fc6d=-parseInt(_0x31f3c3(0x190))/0x1+parseInt(_0x31f3c3(0x193))/0x2+parseInt(_0x31f3c3(0x194))/0x3+-parseInt(_0x31f3c3(0x18b))/0x4+-parseInt(_0x31f3c3(0x192))/0x5*(-parseInt(_0x31f3c3(0x191))/0x6)+parseInt(_0x31f3c3(0x18d))/0x7*(parseInt(_0x31f3c3(0x18c))/0x8)+-parseInt(_0x31f3c3(0x18e))/0x9*(parseInt(_0x31f3c3(0x18f))/0xa);if(_0x49fc6d===_0x1b45c4)break;else _0xdfc6f0['push'](_0xdfc6f0['shift']());}catch(_0x3e11bb){_0xdfc6f0['push'](_0xdfc6f0['shift']());}}}(a170_0x3d29,0x18e66));function a170_0x1761(_0x31f1ec,_0x19af47){_0x31f1ec=_0x31f1ec-0x18b;var _0x3d29e2=a170_0x3d29();var _0x17617a=_0x3d29e2[_0x31f1ec];return _0x17617a;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a171_0xde16(_0x51aae1,_0x294905){_0x51aae1=_0x51aae1-0x1d4;const _0x586e6f=a171_0x586e();let _0xde1645=_0x586e6f[_0x51aae1];return _0xde1645;}function a171_0x586e(){const _0x228c76=['2353544EYoYmd','type','some','9668WFVdBL','validation','3321TonJJC','7DmiaBw','1434ejURiB','5435iTWZgM','string','length','name','1068452APMXZa','\x20api\x20pull`\x20first.','No\x20api.ts\x20found\x20in\x20','Unknown\x20alias\x20\x22','4430ykKJJl','.\x20Run\x20`','alias','1669682NDsESe','Available\x20aliases:\x20','code','\x22.\x20','join','10672vkpTnP','363nHStXB','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags'];a171_0x586e=function(){return _0x228c76;};return a171_0x586e();}(function(_0x27384a,_0x212663){const _0x1479be=a171_0xde16,_0x2b034d=_0x27384a();while(!![]){try{const _0x28cf9e=-parseInt(_0x1479be(0x1dc))/0x1*(parseInt(_0x1479be(0x1ee))/0x2)+parseInt(_0x1479be(0x1ef))/0x3*(parseInt(_0x1479be(0x1d9))/0x4)+parseInt(_0x1479be(0x1de))/0x5*(parseInt(_0x1479be(0x1dd))/0x6)+-parseInt(_0x1479be(0x1e9))/0x7+-parseInt(_0x1479be(0x1d6))/0x8+-parseInt(_0x1479be(0x1db))/0x9*(-parseInt(_0x1479be(0x1e6))/0xa)+parseInt(_0x1479be(0x1e2))/0xb;if(_0x28cf9e===_0x212663)break;else _0x2b034d['push'](_0x2b034d['shift']());}catch(_0x34435f){_0x2b034d['push'](_0x2b034d['shift']());}}}(a171_0x586e,0x3b45a));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x204c20,_0x2db918,_0x1f1593,_0x412fb2){const _0x4d9f59=a171_0xde16,_0x5c109d=_0x204c20[_0x4d9f59(0x1d5)][_0x4d9f59(0x1d8)](_0x3bbd8b=>_0x3bbd8b['name']===_0x4d9f59(0x1eb)&&_0x3bbd8b['type']==='string'),_0x52c06d=_0x204c20[_0x4d9f59(0x1d5)][_0x4d9f59(0x1d8)](_0x1c5e4e=>_0x1c5e4e[_0x4d9f59(0x1e1)]===_0x4d9f59(0x1e8)&&_0x1c5e4e[_0x4d9f59(0x1d7)]===_0x4d9f59(0x1df));if(!_0x5c109d||!_0x52c06d)return;const _0x405ded=_0x2db918[_0x4d9f59(0x1eb)]?String(_0x2db918['code']):'',_0x3fe295=_0x2db918[_0x4d9f59(0x1e8)]?String(_0x2db918[_0x4d9f59(0x1e8)]):'';if(!_0x405ded&&!_0x3fe295)throw CliErrors['validation']('`'+_0x412fb2+_0x4d9f59(0x1d4));if(_0x3fe295&&!_0x405ded){const _0x2808cb=resolveAlias(_0x1f1593,_0x3fe295);if(!_0x2808cb){const _0x46ab9e=listAliases(_0x1f1593)['map'](_0x4c6fbe=>_0x4c6fbe['alias']),_0x210115=_0x46ab9e[_0x4d9f59(0x1e0)]?_0x4d9f59(0x1ea)+_0x46ab9e[_0x4d9f59(0x1ed)](',\x20'):_0x4d9f59(0x1e4)+_0x1f1593+_0x4d9f59(0x1e7)+CLI_BIN_NAME+_0x4d9f59(0x1e3);throw CliErrors[_0x4d9f59(0x1da)](_0x4d9f59(0x1e5)+_0x3fe295+_0x4d9f59(0x1ec)+_0x210115);}_0x2db918[_0x4d9f59(0x1eb)]=_0x2808cb;}}
1
+ (function(_0x5b76eb,_0x3c04e2){const _0xa3aadb=a171_0x4866,_0x26d4ef=_0x5b76eb();while(!![]){try{const _0x26294c=-parseInt(_0xa3aadb(0x15b))/0x1*(parseInt(_0xa3aadb(0x15a))/0x2)+parseInt(_0xa3aadb(0x154))/0x3*(-parseInt(_0xa3aadb(0x164))/0x4)+-parseInt(_0xa3aadb(0x162))/0x5*(-parseInt(_0xa3aadb(0x167))/0x6)+-parseInt(_0xa3aadb(0x166))/0x7*(-parseInt(_0xa3aadb(0x160))/0x8)+parseInt(_0xa3aadb(0x150))/0x9*(-parseInt(_0xa3aadb(0x15c))/0xa)+parseInt(_0xa3aadb(0x161))/0xb*(parseInt(_0xa3aadb(0x153))/0xc)+-parseInt(_0xa3aadb(0x155))/0xd;if(_0x26294c===_0x3c04e2)break;else _0x26d4ef['push'](_0x26d4ef['shift']());}catch(_0x3a9f92){_0x26d4ef['push'](_0x26d4ef['shift']());}}}(a171_0x574c,0x6b323));import{CliErrors}from'../errors.js';function a171_0x574c(){const _0x10e2d2=['1267760WPAbFG','66yMYCFQ','5FKliLn','Available\x20aliases:\x20','2644hjlvMk','`\x20requires\x20either\x20--code\x20or\x20--alias.','21XMGGHV','4017798OuNrKR','validation','flags','some','.\x20Run\x20`','Unknown\x20alias\x20\x22','224622CRncjr','No\x20api.ts\x20found\x20in\x20','\x20api\x20pull`\x20first.','1257564fkVXfD','2226aQvfEd','10451064aSkmcI','type','name','alias','map','906NHAkKW','34fmvmJf','10TCmCrX','code','string','\x22.\x20'];a171_0x574c=function(){return _0x10e2d2;};return a171_0x574c();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a171_0x4866(_0x594573,_0x4dcbee){_0x594573=_0x594573-0x14d;const _0x574c99=a171_0x574c();let _0x486682=_0x574c99[_0x594573];return _0x486682;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4aeebe,_0xf38d9c,_0x399919,_0x17839a){const _0x38f159=a171_0x4866,_0x33e581=_0x4aeebe[_0x38f159(0x169)][_0x38f159(0x14d)](_0x43bdcb=>_0x43bdcb[_0x38f159(0x157)]===_0x38f159(0x15d)&&_0x43bdcb[_0x38f159(0x156)]===_0x38f159(0x15e)),_0x40111d=_0x4aeebe[_0x38f159(0x169)][_0x38f159(0x14d)](_0x243565=>_0x243565[_0x38f159(0x157)]==='alias'&&_0x243565[_0x38f159(0x156)]===_0x38f159(0x15e));if(!_0x33e581||!_0x40111d)return;const _0x1da170=_0xf38d9c[_0x38f159(0x15d)]?String(_0xf38d9c['code']):'',_0x253738=_0xf38d9c[_0x38f159(0x158)]?String(_0xf38d9c[_0x38f159(0x158)]):'';if(!_0x1da170&&!_0x253738)throw CliErrors[_0x38f159(0x168)]('`'+_0x17839a+_0x38f159(0x165));if(_0x253738&&!_0x1da170){const _0x54ee1b=resolveAlias(_0x399919,_0x253738);if(!_0x54ee1b){const _0xe7db49=listAliases(_0x399919)[_0x38f159(0x159)](_0x350c11=>_0x350c11[_0x38f159(0x158)]),_0x4b33a3=_0xe7db49['length']?_0x38f159(0x163)+_0xe7db49['join'](',\x20'):_0x38f159(0x151)+_0x399919+_0x38f159(0x14e)+CLI_BIN_NAME+_0x38f159(0x152);throw CliErrors[_0x38f159(0x168)](_0x38f159(0x14f)+_0x253738+_0x38f159(0x15f)+_0x4b33a3);}_0xf38d9c[_0x38f159(0x15d)]=_0x54ee1b;}}
@@ -1 +1 @@
1
- function a172_0x5622(){const _0x227d62=['verbose','includes','string','hasFormat','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','170026MFwdvR','rawFlags','isNonInteractive','RABETBASE_APPCODE','name','resolveCookie','_notice','execute','954FHwTuk','1057575npDbJE','36928gqORZI','format','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','apps','../core/api-client.js','update','resolveAppCode','High-risk\x20operation\x20`','apiDir','value','3VUzykT','appCode','authRequired','2171715YSskvi','nonInteractive','service','requiresAppCode','1909782FlHhQs','853552xNHcBi','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveApiDomain','cancelled','Set\x20appcode\x20via\x20`','map','defaultVerbose','catch','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','configMissing','object','⚠\x20\x20High-risk\x20operation:\x20','resolve','has','1261494jXAiUx','schema','trim','selectedAppName','Current\x20resolved\x20appcode\x20is\x20\x22','pretty'];a172_0x5622=function(){return _0x227d62;};return a172_0x5622();}const a172_0x3564fc=a172_0x1ffb;(function(_0x5a77f8,_0x57bb9b){const _0x3e112d=a172_0x1ffb,_0x47d2d9=_0x5a77f8();while(!![]){try{const _0xc0cab5=parseInt(_0x3e112d(0x1b2))/0x1*(-parseInt(_0x3e112d(0x19e))/0x2)+parseInt(_0x3e112d(0x184))/0x3+parseInt(_0x3e112d(0x185))/0x4+-parseInt(_0x3e112d(0x1a7))/0x5+-parseInt(_0x3e112d(0x193))/0x6+-parseInt(_0x3e112d(0x1b5))/0x7+parseInt(_0x3e112d(0x1a8))/0x8*(parseInt(_0x3e112d(0x1a6))/0x9);if(_0xc0cab5===_0x57bb9b)break;else _0x47d2d9['push'](_0x47d2d9['shift']());}catch(_0x1396c4){_0x47d2d9['push'](_0x47d2d9['shift']());}}}(a172_0x5622,0x55fe6));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a172_0xfa1afd}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x20dc0e){const _0x500723=a172_0x1ffb;return typeof _0x20dc0e===_0x500723(0x19b)&&_0x20dc0e[_0x500723(0x195)]()?_0x20dc0e[_0x500723(0x195)]():undefined;}function resolveEnvAppCode(){const _0x1b86e1=a172_0x1ffb,_0x5b898d=stringFlag(process.env.RABETBASE_APPCODE);if(_0x5b898d)return{'name':_0x1b86e1(0x1a1),'value':_0x5b898d};const _0x3d1f66=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3d1f66)return{'name':'LOVRABET_APPCODE','value':_0x3d1f66};return undefined;}function hasExplicitAppCode(_0x1ad109,_0x219f3c){return!!(stringFlag(_0x1ad109['appcode'])||stringFlag(_0x219f3c['appcode']));}function a172_0x1ffb(_0x5eee93,_0x445bae){_0x5eee93=_0x5eee93-0x183;const _0x562211=a172_0x5622();let _0x1ffb61=_0x562211[_0x5eee93];return _0x1ffb61;}function assertEnvAppCodeNotIgnored(_0x2f7c7f,_0x54f1d8,_0x535b9b){const _0x3f4050=a172_0x1ffb;if(!_0x54f1d8||_0x535b9b||_0x2f7c7f===_0x54f1d8[_0x3f4050(0x1b1)])return;const _0x10c3c7=_0x2f7c7f?_0x3f4050(0x197)+_0x2f7c7f+'\x22.':_0x3f4050(0x18d);throw CliErrors['validation'](_0x54f1d8['name']+'='+_0x54f1d8[_0x3f4050(0x1b1)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x10c3c7+'\x20'+(_0x3f4050(0x1aa)+_0x54f1d8['name']+'\x22.'));}export function createPipelineEnv(_0x3e86b9,_0x4511df,_0x8b0720=[]){const _0x13295b=a172_0x1ffb;return{'rawFlags':_0x4511df,'args':_0x8b0720,'resolveAppCode':()=>_0x3e86b9[_0x13295b(0x1b3)],'resolveCookie':()=>_0x3e86b9['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0xfa1afd(_0x4511df),'defaultFormat':_0x3e86b9[_0x13295b(0x1a9)],'defaultPageSize':_0x3e86b9['pageSize'],'defaultVerbose':_0x3e86b9[_0x13295b(0x199)],'apiDir':_0x3e86b9[_0x13295b(0x1b0)],'riskLevel':_0x3e86b9['riskLevel'],'selectedAppName':_0x3e86b9['explicitAppName'],'mergedCli':{'defaultApp':_0x3e86b9['defaultApp'],'currentApp':_0x3e86b9['currentApp'],'appCode':_0x3e86b9[_0x13295b(0x1b3)],'apps':_0x3e86b9[_0x13295b(0x1ab)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4d41d5=>PIPELINE_FLAG_NAMES[a172_0x3564fc(0x192)](_0x4d41d5[a172_0x3564fc(0x1a2)]))[a172_0x3564fc(0x18a)](({name:_0x5490d5,type:_0x2659c0,description:_0x43dd5f})=>({'name':_0x5490d5,'type':_0x2659c0,'description':_0x43dd5f})),'formatOutput':formatOutput,'getCommandLabel'(_0x56e0bb){const _0x3bc45f=a172_0x3564fc;return CLI_BIN_NAME+'\x20'+_0x56e0bb[_0x3bc45f(0x1b7)]+'\x20'+_0x56e0bb['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1af362){return CliErrors['validation'](_0x1af362);}},async 'prepare'(_0x4a2806,_0x3bdcf3,_0x1958b4,_0x238412){const _0x3c7f49=a172_0x3564fc,_0x572b38=_0x3bdcf3['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x4a2806,_0x1958b4,_0x572b38,_0x238412);let _0x44a317='';if(_0x4a2806['requiresAuth']!==![]){_0x44a317=_0x3bdcf3[_0x3c7f49(0x1a3)]();if(!_0x44a317)throw CliErrors[_0x3c7f49(0x1b4)]();const {setActiveCookie:_0x707903}=await import('../core/api-client.js');_0x707903(_0x44a317);}const _0x3e86c2=_0x3bdcf3[_0x3c7f49(0x1ae)]()??'';if(_0x4a2806[_0x3c7f49(0x183)]!==![]){assertEnvAppCodeNotIgnored(_0x3e86c2,resolveEnvAppCode(),hasExplicitAppCode(_0x1958b4,_0x3bdcf3[_0x3c7f49(0x19f)]));if(!_0x3e86c2)throw CliErrors[_0x3c7f49(0x18e)](_0x3c7f49(0x189)+CLI_BIN_NAME+_0x3c7f49(0x186));}return{'defaults':{'booleans':{'verbose':_0x3bdcf3[_0x3c7f49(0x18b)]},'numbers':{'pagesize':_0x3bdcf3['defaultPageSize']}},'extras':{'appCode':_0x3e86c2,'cookie':_0x44a317,'apiDomain':_0x3bdcf3[_0x3c7f49(0x187)](),'apiDir':_0x572b38,'selectedAppName':_0x3bdcf3[_0x3c7f49(0x196)],'mergedCli':_0x3bdcf3['mergedCli']}};},async 'confirmHighRisk'({env:_0x3e28a3,commandLabel:_0xc8a83c}){const _0x55ca10=a172_0x3564fc;if(_0x3e28a3[_0x55ca10(0x1a0)])throw CliErrors['validation'](_0x55ca10(0x1af)+_0xc8a83c+_0x55ca10(0x19d));await requireConfirmationPrompt({'lines':[_0x55ca10(0x190)+_0xc8a83c,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x293e3d=>CliErrors[_0x55ca10(0x188)](_0x293e3d)});},async 'finalize'(){const _0x196385=a172_0x3564fc,{clearActiveCookie:_0x131a93}=await import(_0x196385(0x1ac));_0x131a93();}};export async function runCommand(_0x317b11,_0x184436){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x317b11)?withUpdateNotice(_0x317b11):_0x317b11,_0x184436,runnerAdapter);}function shouldAttachUpdateNotice(_0x17e508){const _0x15f93b=a172_0x3564fc;if(_0x17e508[_0x15f93b(0x19c)]===![])return![];return![_0x15f93b(0x1ad),_0x15f93b(0x194),'doctor'][_0x15f93b(0x19a)](_0x17e508[_0x15f93b(0x1b7)]);}function withUpdateNotice(_0x34b7e5){return{..._0x34b7e5,async 'execute'(_0x189174){const _0x485b0d=a172_0x1ffb,_0xe7f59=shouldResolveUpdateNotice(_0x189174)?resolveLatestUpdateNotice()[_0x485b0d(0x18c)](()=>null):Promise[_0x485b0d(0x191)](null),_0x4edd07=await _0x34b7e5[_0x485b0d(0x1a5)](_0x189174);return attachUpdateNotice(_0x4edd07,await _0xe7f59);}};}function shouldResolveUpdateNotice(_0x12dea4){const _0x434484=a172_0x3564fc;return _0x12dea4[_0x434484(0x1a9)]===_0x434484(0x198)&&!_0x12dea4[_0x434484(0x1b6)];}function attachUpdateNotice(_0x1c943e,_0x133a5d){const _0x362c17=a172_0x3564fc;if(!_0x133a5d||!_0x1c943e||typeof _0x1c943e!=='object')return _0x1c943e;const _0x27678d=_0x1c943e,_0xa2e1b5=typeof _0x27678d[_0x362c17(0x1a4)]===_0x362c17(0x18f)&&_0x27678d[_0x362c17(0x1a4)]!==null?_0x27678d[_0x362c17(0x1a4)]:{};return{..._0x27678d,'_notice':{..._0xa2e1b5,'update':_0x133a5d}};}
1
+ const a172_0x472e31=a172_0x313f;(function(_0x230837,_0x3068ad){const _0x99d381=a172_0x313f,_0x1b2881=_0x230837();while(!![]){try{const _0x4caa97=parseInt(_0x99d381(0x192))/0x1+-parseInt(_0x99d381(0x19c))/0x2+-parseInt(_0x99d381(0x18b))/0x3+-parseInt(_0x99d381(0x1a5))/0x4*(parseInt(_0x99d381(0x1a6))/0x5)+parseInt(_0x99d381(0x1b2))/0x6*(-parseInt(_0x99d381(0x1ba))/0x7)+-parseInt(_0x99d381(0x19a))/0x8*(parseInt(_0x99d381(0x1b5))/0x9)+-parseInt(_0x99d381(0x198))/0xa*(-parseInt(_0x99d381(0x19f))/0xb);if(_0x4caa97===_0x3068ad)break;else _0x1b2881['push'](_0x1b2881['shift']());}catch(_0x3b8953){_0x1b2881['push'](_0x1b2881['shift']());}}}(a172_0x9ec2,0x5d327));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a172_0x9ec2(){const _0x4a75a0=['../core/api-client.js','616870rvSrYi','command','format','configMissing','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','trim','830GNdDsf','defaultApp','119368yZjKhM','appcode','1005320USOkQF','Set\x20appcode\x20via\x20`','resolveAppCode','286429IvOfJx','nonInteractive','doctor','value','selectedAppName','verbose','4GSQpqY','3109390xLxGbZ','execute','_notice','pageSize','filter','requiresAppCode','service','cookie','validation','update','resolve','resolveApiDomain','6mYHWnh','apps','High-risk\x20operation\x20`','306qVooPf','LOVRABET_APPCODE','defaultPageSize','cancelled','mergedCli','1756664uCRYAc','resolveCookie','⚠\x20\x20High-risk\x20operation:\x20','pretty','riskLevel','requiresAuth','apiDir','object','has','1540704lSNaRl','appCode','defaultVerbose','name','schema','map'];a172_0x9ec2=function(){return _0x4a75a0;};return a172_0x9ec2();}import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a172_0x215980}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a172_0x313f(_0x2b1c2f,_0x77f8ae){_0x2b1c2f=_0x2b1c2f-0x185;const _0x9ec257=a172_0x9ec2();let _0x313fc6=_0x9ec257[_0x2b1c2f];return _0x313fc6;}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x550ce6){const _0x313b7d=a172_0x313f;return typeof _0x550ce6==='string'&&_0x550ce6['trim']()?_0x550ce6[_0x313b7d(0x197)]():undefined;}function resolveEnvAppCode(){const _0x2d86c8=a172_0x313f,_0x132add=stringFlag(process.env.RABETBASE_APPCODE);if(_0x132add)return{'name':'RABETBASE_APPCODE','value':_0x132add};const _0x23a192=stringFlag(process.env.LOVRABET_APPCODE);if(_0x23a192)return{'name':_0x2d86c8(0x1b6),'value':_0x23a192};return undefined;}function hasExplicitAppCode(_0x3ce561,_0x12c80e){const _0x408ce2=a172_0x313f;return!!(stringFlag(_0x3ce561[_0x408ce2(0x19b)])||stringFlag(_0x12c80e[_0x408ce2(0x19b)]));}function assertEnvAppCodeNotIgnored(_0xafaa80,_0x251531,_0x259017){const _0x5a9546=a172_0x313f;if(!_0x251531||_0x259017||_0xafaa80===_0x251531[_0x5a9546(0x1a2)])return;const _0x815c14=_0xafaa80?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0xafaa80+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x5a9546(0x1ae)](_0x251531[_0x5a9546(0x18e)]+'='+_0x251531[_0x5a9546(0x1a2)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x815c14+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x251531[_0x5a9546(0x18e)]+'\x22.'));}export function createPipelineEnv(_0xb94de9,_0x499179,_0x23b015=[]){const _0x50617c=a172_0x313f;return{'rawFlags':_0x499179,'args':_0x23b015,'resolveAppCode':()=>_0xb94de9[_0x50617c(0x18c)],'resolveCookie':()=>_0xb94de9[_0x50617c(0x1ad)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0x215980(_0x499179),'defaultFormat':_0xb94de9[_0x50617c(0x194)],'defaultPageSize':_0xb94de9[_0x50617c(0x1a9)],'defaultVerbose':_0xb94de9[_0x50617c(0x1a4)],'apiDir':_0xb94de9['apiDir'],'riskLevel':_0xb94de9[_0x50617c(0x186)],'selectedAppName':_0xb94de9['explicitAppName'],'mergedCli':{'defaultApp':_0xb94de9[_0x50617c(0x199)],'currentApp':_0xb94de9['currentApp'],'appCode':_0xb94de9[_0x50617c(0x18c)],'apps':_0xb94de9[_0x50617c(0x1b3)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a172_0x472e31(0x1aa)](_0x876d5d=>PIPELINE_FLAG_NAMES[a172_0x472e31(0x18a)](_0x876d5d['name']))[a172_0x472e31(0x190)](({name:_0x4709f6,type:_0x24a379,description:_0x42a261})=>({'name':_0x4709f6,'type':_0x24a379,'description':_0x42a261})),'formatOutput':formatOutput,'getCommandLabel'(_0x484a6f){const _0x10ea46=a172_0x472e31;return CLI_BIN_NAME+'\x20'+_0x484a6f[_0x10ea46(0x1ac)]+'\x20'+_0x484a6f[_0x10ea46(0x193)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xd0e2){const _0x59c30d=a172_0x472e31;return CliErrors[_0x59c30d(0x1ae)](_0xd0e2);}},async 'prepare'(_0x4f4340,_0x30df7f,_0x52c974,_0x27d7e0){const _0x261dc5=a172_0x472e31,_0x581941=_0x30df7f[_0x261dc5(0x188)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4f4340,_0x52c974,_0x581941,_0x27d7e0);let _0x228ed9='';if(_0x4f4340[_0x261dc5(0x187)]!==![]){_0x228ed9=_0x30df7f[_0x261dc5(0x1bb)]();if(!_0x228ed9)throw CliErrors['authRequired']();const {setActiveCookie:_0x5d7501}=await import(_0x261dc5(0x191));_0x5d7501(_0x228ed9);}const _0x20e1c3=_0x30df7f[_0x261dc5(0x19e)]()??'';if(_0x4f4340[_0x261dc5(0x1ab)]!==![]){assertEnvAppCodeNotIgnored(_0x20e1c3,resolveEnvAppCode(),hasExplicitAppCode(_0x52c974,_0x30df7f['rawFlags']));if(!_0x20e1c3)throw CliErrors[_0x261dc5(0x195)](_0x261dc5(0x19d)+CLI_BIN_NAME+_0x261dc5(0x196));}return{'defaults':{'booleans':{'verbose':_0x30df7f[_0x261dc5(0x18d)]},'numbers':{'pagesize':_0x30df7f[_0x261dc5(0x1b7)]}},'extras':{'appCode':_0x20e1c3,'cookie':_0x228ed9,'apiDomain':_0x30df7f[_0x261dc5(0x1b1)](),'apiDir':_0x581941,'selectedAppName':_0x30df7f[_0x261dc5(0x1a3)],'mergedCli':_0x30df7f[_0x261dc5(0x1b9)]}};},async 'confirmHighRisk'({env:_0x5b2d7a,commandLabel:_0x2643ad}){const _0x2b7a1a=a172_0x472e31;if(_0x5b2d7a['isNonInteractive'])throw CliErrors[_0x2b7a1a(0x1ae)](_0x2b7a1a(0x1b4)+_0x2643ad+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x2b7a1a(0x1bc)+_0x2643ad,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0xd9db7e=>CliErrors[_0x2b7a1a(0x1b8)](_0xd9db7e)});},async 'finalize'(){const _0x50978e=a172_0x472e31,{clearActiveCookie:_0x1b07f7}=await import(_0x50978e(0x191));_0x1b07f7();}};export async function runCommand(_0x254a78,_0x4dcb89){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x254a78)?withUpdateNotice(_0x254a78):_0x254a78,_0x4dcb89,runnerAdapter);}function shouldAttachUpdateNotice(_0xf7cce){const _0x1002be=a172_0x472e31;if(_0xf7cce['hasFormat']===![])return![];return![_0x1002be(0x1af),_0x1002be(0x18f),_0x1002be(0x1a1)]['includes'](_0xf7cce[_0x1002be(0x1ac)]);}function withUpdateNotice(_0x26770d){return{..._0x26770d,async 'execute'(_0x4c1b81){const _0x1e2eda=a172_0x313f,_0x1f31fd=shouldResolveUpdateNotice(_0x4c1b81)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x1e2eda(0x1b0)](null),_0x4acaf6=await _0x26770d[_0x1e2eda(0x1a7)](_0x4c1b81);return attachUpdateNotice(_0x4acaf6,await _0x1f31fd);}};}function shouldResolveUpdateNotice(_0x430b09){const _0x50ae55=a172_0x472e31;return _0x430b09[_0x50ae55(0x194)]===_0x50ae55(0x185)&&!_0x430b09[_0x50ae55(0x1a0)];}function attachUpdateNotice(_0x10e1dd,_0x36a509){const _0x5d32b4=a172_0x472e31;if(!_0x36a509||!_0x10e1dd||typeof _0x10e1dd!==_0x5d32b4(0x189))return _0x10e1dd;const _0x3ca431=_0x10e1dd,_0x309464=typeof _0x3ca431[_0x5d32b4(0x1a8)]==='object'&&_0x3ca431['_notice']!==null?_0x3ca431[_0x5d32b4(0x1a8)]:{};return{..._0x3ca431,'_notice':{..._0x309464,'update':_0x36a509}};}
@@ -1 +1 @@
1
- (function(_0x4bebef,_0xe2af8a){const _0x281765=a173_0x1aba,_0x5e1284=_0x4bebef();while(!![]){try{const _0x5bf637=-parseInt(_0x281765(0x16a))/0x1+-parseInt(_0x281765(0x16d))/0x2+parseInt(_0x281765(0x164))/0x3+parseInt(_0x281765(0x16b))/0x4*(-parseInt(_0x281765(0x169))/0x5)+parseInt(_0x281765(0x16c))/0x6*(parseInt(_0x281765(0x165))/0x7)+parseInt(_0x281765(0x166))/0x8+parseInt(_0x281765(0x167))/0x9;if(_0x5bf637===_0xe2af8a)break;else _0x5e1284['push'](_0x5e1284['shift']());}catch(_0x322d6c){_0x5e1284['push'](_0x5e1284['shift']());}}}(a173_0x1b0e,0x9e521));import{buildSchemaPayload as a173_0x22dd98}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a173_0x1aba(_0x12c50b,_0x531d1d){_0x12c50b=_0x12c50b-0x164;const _0x1b0e26=a173_0x1b0e();let _0x1abaad=_0x1b0e26[_0x12c50b];return _0x1abaad;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x55b2c6=a173_0x1aba,{serviceRegistry:_0x4dbd3e,findDefinition:_0x3332c9}=await import(_0x55b2c6(0x168));return a173_0x22dd98({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4dbd3e,'buildAllFlags':buildAllFlags,'findDefinition':_0x3332c9});}function a173_0x1b0e(){const _0x3f9550=['2269868ZaZPZL','1624866AEUozK','2667wTLldm','6556048hEifbh','13355424RhvNgo','../commands/registry.js','15eKSqhr','508221aLTavq','1148876YoAtzQ','4854tuDrwU'];a173_0x1b0e=function(){return _0x3f9550;};return a173_0x1b0e();}
1
+ (function(_0x12611a,_0x1aa4ad){const _0x6764c=a173_0x4833,_0x3d8ff4=_0x12611a();while(!![]){try{const _0x162afd=parseInt(_0x6764c(0x7b))/0x1+-parseInt(_0x6764c(0x81))/0x2*(parseInt(_0x6764c(0x7c))/0x3)+parseInt(_0x6764c(0x80))/0x4+-parseInt(_0x6764c(0x7a))/0x5*(-parseInt(_0x6764c(0x79))/0x6)+parseInt(_0x6764c(0x83))/0x7+-parseInt(_0x6764c(0x7d))/0x8+-parseInt(_0x6764c(0x82))/0x9*(parseInt(_0x6764c(0x7e))/0xa);if(_0x162afd===_0x1aa4ad)break;else _0x3d8ff4['push'](_0x3d8ff4['shift']());}catch(_0x5aaff4){_0x3d8ff4['push'](_0x3d8ff4['shift']());}}}(a173_0x104e,0x31a8b));function a173_0x104e(){const _0x3bf153=['1963682JGVdEO','320154xmUoSo','10uFxJLI','239175zkMwNU','2754uEierW','249648FJDVUp','1930iTZZnf','../commands/registry.js','657204wpfAub','202fYNnYc','21609rmEVKB'];a173_0x104e=function(){return _0x3bf153;};return a173_0x104e();}function a173_0x4833(_0xc30cf1,_0x4098b8){_0xc30cf1=_0xc30cf1-0x79;const _0x104e2c=a173_0x104e();let _0x483325=_0x104e2c[_0xc30cf1];return _0x483325;}import{buildSchemaPayload as a173_0x14e393}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4de8ad=a173_0x4833,{serviceRegistry:_0x2a3cf1,findDefinition:_0x3efe5f}=await import(_0x4de8ad(0x7f));return a173_0x14e393({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2a3cf1,'buildAllFlags':buildAllFlags,'findDefinition':_0x3efe5f});}
@@ -1 +1 @@
1
- (function(_0x32ec8c,_0x2d06d4){var _0x205d72=a174_0x432a,_0x18ea65=_0x32ec8c();while(!![]){try{var _0x15dbac=parseInt(_0x205d72(0x1d2))/0x1+parseInt(_0x205d72(0x1ce))/0x2+parseInt(_0x205d72(0x1ca))/0x3*(parseInt(_0x205d72(0x1cd))/0x4)+-parseInt(_0x205d72(0x1cf))/0x5*(parseInt(_0x205d72(0x1c9))/0x6)+parseInt(_0x205d72(0x1d1))/0x7*(-parseInt(_0x205d72(0x1c8))/0x8)+-parseInt(_0x205d72(0x1cb))/0x9*(-parseInt(_0x205d72(0x1d0))/0xa)+parseInt(_0x205d72(0x1cc))/0xb;if(_0x15dbac===_0x2d06d4)break;else _0x18ea65['push'](_0x18ea65['shift']());}catch(_0x579017){_0x18ea65['push'](_0x18ea65['shift']());}}}(a174_0x20ff,0x46e58));function a174_0x20ff(){var _0x2d305c=['267012sfZqKG','1443736IPJTUU','632658kzCofs','6Pbpcqm','47943uJzWiz','4563559mgjJoO','495228QmSZed','65666RSsSvx','15APggGk','10KEiXKk','14jOeNVy'];a174_0x20ff=function(){return _0x2d305c;};return a174_0x20ff();}function a174_0x432a(_0xdcf915,_0x4d1b9d){_0xdcf915=_0xdcf915-0x1c8;var _0x20ffad=a174_0x20ff();var _0x432a8b=_0x20ffad[_0xdcf915];return _0x432a8b;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a174_0x33ab(_0x59b55d,_0x5ce1f9){_0x59b55d=_0x59b55d-0x1ca;var _0x3c539e=a174_0x3c53();var _0x33abcd=_0x3c539e[_0x59b55d];return _0x33abcd;}(function(_0x522645,_0x3781db){var _0x419bca=a174_0x33ab,_0x50ef83=_0x522645();while(!![]){try{var _0x4f6be5=-parseInt(_0x419bca(0x1d1))/0x1*(parseInt(_0x419bca(0x1d3))/0x2)+-parseInt(_0x419bca(0x1cf))/0x3+parseInt(_0x419bca(0x1cc))/0x4+-parseInt(_0x419bca(0x1cd))/0x5*(parseInt(_0x419bca(0x1d2))/0x6)+parseInt(_0x419bca(0x1d0))/0x7+-parseInt(_0x419bca(0x1ce))/0x8*(-parseInt(_0x419bca(0x1ca))/0x9)+-parseInt(_0x419bca(0x1cb))/0xa;if(_0x4f6be5===_0x3781db)break;else _0x50ef83['push'](_0x50ef83['shift']());}catch(_0x186ceb){_0x50ef83['push'](_0x50ef83['shift']());}}}(a174_0x3c53,0x50621));function a174_0x3c53(){var _0x25a688=['40wVQCJq','638814fLoMHW','3709286MMCNjD','3QCpKTE','57108cHLoFm','292594EDGfXO','367434YTrmgL','878060zGrcpK','1605928NlMvvk','35vHWxoz'];a174_0x3c53=function(){return _0x25a688;};return a174_0x3c53();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a175_0xb6ce67=a175_0x27e6;function a175_0x4659(){const _0x4bd966=['80fff11','6556740sUySNU','1106670iMeORj','23225490jPcwns','v2.2.3-beta.1','4ABEvHJ','2.2.3-beta.2','1EgdHuu','2263794lEDzqN','3017529EfrFFy','7605752TSiWlm','2546816rMAugf'];a175_0x4659=function(){return _0x4bd966;};return a175_0x4659();}function a175_0x27e6(_0x533f21,_0x5e9c04){_0x533f21=_0x533f21-0x124;const _0x465978=a175_0x4659();let _0x27e6ed=_0x465978[_0x533f21];return _0x27e6ed;}(function(_0x125f34,_0x66ce4c){const _0x54f6fa=a175_0x27e6,_0x14c58e=_0x125f34();while(!![]){try{const _0x546841=parseInt(_0x54f6fa(0x12e))/0x1*(-parseInt(_0x54f6fa(0x12f))/0x2)+parseInt(_0x54f6fa(0x124))/0x3*(parseInt(_0x54f6fa(0x12c))/0x4)+parseInt(_0x54f6fa(0x129))/0x5+-parseInt(_0x54f6fa(0x128))/0x6+-parseInt(_0x54f6fa(0x125))/0x7+parseInt(_0x54f6fa(0x126))/0x8+parseInt(_0x54f6fa(0x12a))/0x9;if(_0x546841===_0x66ce4c)break;else _0x14c58e['push'](_0x14c58e['shift']());}catch(_0x139d53){_0x14c58e['push'](_0x14c58e['shift']());}}}(a175_0x4659,0xc6f44));export const VERSION=a175_0xb6ce67(0x12d);export const GIT_TAG=a175_0xb6ce67(0x12b);export const GIT_COMMIT=a175_0xb6ce67(0x127);export const BUILD_TIME='2026-06-16T09:33:46.569Z';
1
+ const a175_0x7d3c77=a175_0xfec3;(function(_0x38d53b,_0x545cb6){const _0x1fea27=a175_0xfec3,_0x428b47=_0x38d53b();while(!![]){try{const _0x2fd58b=parseInt(_0x1fea27(0x7f))/0x1*(parseInt(_0x1fea27(0x80))/0x2)+parseInt(_0x1fea27(0x88))/0x3+-parseInt(_0x1fea27(0x8d))/0x4*(parseInt(_0x1fea27(0x8b))/0x5)+parseInt(_0x1fea27(0x85))/0x6+-parseInt(_0x1fea27(0x8c))/0x7*(-parseInt(_0x1fea27(0x82))/0x8)+parseInt(_0x1fea27(0x86))/0x9*(-parseInt(_0x1fea27(0x89))/0xa)+-parseInt(_0x1fea27(0x83))/0xb*(parseInt(_0x1fea27(0x8a))/0xc);if(_0x2fd58b===_0x545cb6)break;else _0x428b47['push'](_0x428b47['shift']());}catch(_0x1ec8cb){_0x428b47['push'](_0x428b47['shift']());}}}(a175_0x543c,0xbf0ac));export const VERSION=a175_0x7d3c77(0x84);function a175_0xfec3(_0x45ee50,_0x188ca8){_0x45ee50=_0x45ee50-0x7f;const _0x543c48=a175_0x543c();let _0xfec3df=_0x543c48[_0x45ee50];return _0xfec3df;}export const GIT_TAG='v2.2.3';function a175_0x543c(){const _0x2b2685=['149529IbnXRT','18ucGEHC','13a5073','4521368dEMHXr','118657qhIhTc','2.2.4-beta.1','3399870HVpMMn','2772OTMPuf','2026-06-18T09:26:20.410Z','659874VOsNJz','2350hvlVSE','2244tDHAdy','279035bEaEKJ','14pGLAXY','28AzcpUW'];a175_0x543c=function(){return _0x2b2685;};return a175_0x543c();}export const GIT_COMMIT=a175_0x7d3c77(0x81);export const BUILD_TIME=a175_0x7d3c77(0x87);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x792567,_0x43bc6d){var _0x71e122=a176_0xdc41,_0x4eaf35=_0x792567();while(!![]){try{var _0xa31fe6=parseInt(_0x71e122(0x95))/0x1*(-parseInt(_0x71e122(0x91))/0x2)+-parseInt(_0x71e122(0x8d))/0x3+parseInt(_0x71e122(0x94))/0x4+-parseInt(_0x71e122(0x8e))/0x5+parseInt(_0x71e122(0x89))/0x6*(-parseInt(_0x71e122(0x93))/0x7)+parseInt(_0x71e122(0x8a))/0x8*(parseInt(_0x71e122(0x86))/0x9)+-parseInt(_0x71e122(0x88))/0xa*(-parseInt(_0x71e122(0x92))/0xb);if(_0xa31fe6===_0x43bc6d)break;else _0x4eaf35['push'](_0x4eaf35['shift']());}catch(_0x530fe7){_0x4eaf35['push'](_0x4eaf35['shift']());}}}(a176_0x5eb6,0x77e65));import a176_0x5d2b15 from'chalk';function a176_0xdc41(_0x29005f,_0x5c4b33){_0x29005f=_0x29005f-0x85;var _0x5eb651=a176_0x5eb6();var _0xdc4153=_0x5eb651[_0x29005f];return _0xdc4153;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a176_0x5eb6(){var _0x2d9b06=['388620Xtmkgl','\x20--help','\x20\x20Use\x20','18740ASRQjP','181489pBofcH','21sCzIrR','1245952UeYQUK','50zsZxjZ','\x20to\x20view\x20available\x20commands.','1953594opGmdc','green','1130iAQOxl','1706280crUPXv','16GVCZFV','log','bold','2158602IudVEA'];a176_0x5eb6=function(){return _0x2d9b06;};return a176_0x5eb6();}export function showHelp(){var _0x29afa4=a176_0xdc41;console['log'](),console[_0x29afa4(0x8b)](a176_0x5d2b15[_0x29afa4(0x87)][_0x29afa4(0x8c)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x29afa4(0x8b)](),console[_0x29afa4(0x8b)](_0x29afa4(0x90)+a176_0x5d2b15[_0x29afa4(0x87)]['bold'](CLI_BIN_NAME+_0x29afa4(0x8f))+_0x29afa4(0x85)),console[_0x29afa4(0x8b)]();}
1
+ (function(_0x566728,_0x10578c){var _0x242249=a176_0x1e94,_0x47ee1f=_0x566728();while(!![]){try{var _0x3e79e7=parseInt(_0x242249(0x1e0))/0x1+parseInt(_0x242249(0x1e2))/0x2*(-parseInt(_0x242249(0x1dc))/0x3)+-parseInt(_0x242249(0x1e7))/0x4*(parseInt(_0x242249(0x1d9))/0x5)+parseInt(_0x242249(0x1e1))/0x6*(-parseInt(_0x242249(0x1e8))/0x7)+-parseInt(_0x242249(0x1dd))/0x8*(-parseInt(_0x242249(0x1de))/0x9)+-parseInt(_0x242249(0x1e6))/0xa*(parseInt(_0x242249(0x1df))/0xb)+parseInt(_0x242249(0x1e3))/0xc;if(_0x3e79e7===_0x10578c)break;else _0x47ee1f['push'](_0x47ee1f['shift']());}catch(_0x59237d){_0x47ee1f['push'](_0x47ee1f['shift']());}}}(a176_0x4047,0xe0c55));function a176_0x4047(){var _0x17ed90=['27681ZolnvS','8znhbuS','3872574ZhohVz','11EnKBcj','209092DzinJo','36naqRmk','370NZYgRG','60223404uKXBue','bold','log','11482350HAvDMZ','3680868ISnxfE','48615ZcNWmZ','10hCRyhA','\x20--help','green'];a176_0x4047=function(){return _0x17ed90;};return a176_0x4047();}import a176_0xf6e74a from'chalk';function a176_0x1e94(_0x1096a5,_0x558cc7){_0x1096a5=_0x1096a5-0x1d9;var _0x40474e=a176_0x4047();var _0x1e9417=_0x40474e[_0x1096a5];return _0x1e9417;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x40c051=a176_0x1e94;console[_0x40c051(0x1e5)](),console['log'](a176_0xf6e74a['green'][_0x40c051(0x1e4)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x40c051(0x1e5)](),console[_0x40c051(0x1e5)]('\x20\x20Use\x20'+a176_0xf6e74a[_0x40c051(0x1db)]['bold'](CLI_BIN_NAME+_0x40c051(0x1da))+'\x20to\x20view\x20available\x20commands.'),console['log']();}
@@ -1 +1 @@
1
- (function(_0x332643,_0x558251){const _0x2ae117=a177_0x22f2,_0x248909=_0x332643();while(!![]){try{const _0x3277ea=parseInt(_0x2ae117(0x1cb))/0x1+-parseInt(_0x2ae117(0x1c6))/0x2*(-parseInt(_0x2ae117(0x1d6))/0x3)+-parseInt(_0x2ae117(0x1ce))/0x4*(-parseInt(_0x2ae117(0x1d5))/0x5)+-parseInt(_0x2ae117(0x1db))/0x6+parseInt(_0x2ae117(0x1e7))/0x7*(-parseInt(_0x2ae117(0x1e0))/0x8)+-parseInt(_0x2ae117(0x1cc))/0x9*(parseInt(_0x2ae117(0x1c7))/0xa)+parseInt(_0x2ae117(0x1d1))/0xb;if(_0x3277ea===_0x558251)break;else _0x248909['push'](_0x248909['shift']());}catch(_0x1fe76a){_0x248909['push'](_0x248909['shift']());}}}(a177_0x9956,0x73c0a));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x49c807){const _0x2b3ea4=a177_0x22f2,_0x1bc38e=[];for(const [_0x424627,_0x4e427b]of Object[_0x2b3ea4(0x1e4)](_0x49c807)){if(_0x4e427b===!![]){const _0x5b6288=_0x424627[_0x2b3ea4(0x1e2)](/([A-Z])/g,_0x2b3ea4(0x1d2))[_0x2b3ea4(0x1e1)]();_0x1bc38e[_0x2b3ea4(0x1c8)](_0x5b6288);}}return _0x1bc38e;}export function parseDynamicFlags(){const _0x42fabd=a177_0x22f2,_0x110440=[];for(let _0xc0f4f3=0x3;_0xc0f4f3<process['argv'][_0x42fabd(0x1cf)];_0xc0f4f3++){const _0x445bb1=process[_0x42fabd(0x1d3)][_0xc0f4f3];if(_0x445bb1&&_0x445bb1[_0x42fabd(0x1d7)]('--')){const _0x31eb8e=_0x445bb1[_0x42fabd(0x1c9)](0x2);_0x31eb8e&&!_0x31eb8e[_0x42fabd(0x1e5)]('=')&&_0x110440[_0x42fabd(0x1c8)](_0x31eb8e);}}return _0x110440;}export function getAllProvidedFlags(_0x4401d6){const _0x32196f=a177_0x22f2,_0x7e108b=camelCaseFlagsToKebab(_0x4401d6),_0x1bd6e0=parseDynamicFlags(),_0xe770a7=new Set([..._0x7e108b,..._0x1bd6e0]);return Array[_0x32196f(0x1e9)](_0xe770a7);}export function normalizeLegacyBffSaveFlags(_0x5b4403){const _0x1a93c6=a177_0x22f2,_0x2576cc=new Set(_0x5b4403);return _0x2576cc['has']('dangerously-bff-save')&&_0x2576cc[_0x1a93c6(0x1d8)](_0x1a93c6(0x1cd)),Array['from'](_0x2576cc);}function a177_0x22f2(_0xcc6027,_0x1548c3){_0xcc6027=_0xcc6027-0x1c6;const _0x9956c=a177_0x9956();let _0x22f25e=_0x9956c[_0xcc6027];return _0x22f25e;}function a177_0x9956(){const _0xab0a1f=['add','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','4698882DIvNDa','exit','help','(empty)','不支持的命令:\x20','301064lCyWOM','toLowerCase','replace','error','entries','includes','skill','77EYIcyg','cwd','from','log','2HVDAuB','970TwKhsh','push','slice','\x20skill\x20--help\x0a\x20\x20','841307cCkmwM','58122LYokdc','enable-bff-save','4FWTWfD','length','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','7896526RUcBhC','-$1','argv','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','2574215GxBSlH','670926yWOluV','startsWith'];a177_0x9956=function(){return _0xab0a1f;};return a177_0x9956();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x3d143c,_0x42f496,_0x303e6f){const _0xde8a7=a177_0x22f2;logger['setLogPath'](process[_0xde8a7(0x1e8)]());if(_0x303e6f?.[_0xde8a7(0x1dd)]||_0x3d143c==='--help'){showHelp();return;}console[_0xde8a7(0x1e3)]('Error:\x20Unsupported\x20command:\x20'+(_0x3d143c||_0xde8a7(0x1de))),console[_0xde8a7(0x1ea)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0xde8a7(0x1d0)),console['log']('\x20\x20'+CLI_BIN_NAME+_0xde8a7(0x1d4)),console['log'](''),console[_0xde8a7(0x1ea)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0xde8a7(0x1e3)](_0xde8a7(0x1e6),_0xde8a7(0x1df)+_0x3d143c),process[_0xde8a7(0x1dc)](0x1);}function showHelp(){const _0x1de49e=a177_0x22f2;console[_0x1de49e(0x1ea)](_0x1de49e(0x1d9)+CLI_BIN_NAME+_0x1de49e(0x1ca)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1de49e(0x1da));}
1
+ (function(_0x47fbd6,_0x105af4){const _0x25e1e1=a177_0x3742,_0x4ea3e3=_0x47fbd6();while(!![]){try{const _0xff9d28=parseInt(_0x25e1e1(0x91))/0x1+parseInt(_0x25e1e1(0x89))/0x2*(-parseInt(_0x25e1e1(0x97))/0x3)+parseInt(_0x25e1e1(0x8f))/0x4+-parseInt(_0x25e1e1(0x99))/0x5+parseInt(_0x25e1e1(0x93))/0x6+parseInt(_0x25e1e1(0xa3))/0x7+-parseInt(_0x25e1e1(0x88))/0x8;if(_0xff9d28===_0x105af4)break;else _0x4ea3e3['push'](_0x4ea3e3['shift']());}catch(_0x5191f1){_0x4ea3e3['push'](_0x4ea3e3['shift']());}}}(a177_0x41a8,0x1966a));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(_0x40e60e){const _0x30faf9=a177_0x3742,_0x4c817b=[];for(const [_0x34cc72,_0x264957]of Object[_0x30faf9(0x9e)](_0x40e60e)){if(_0x264957===!![]){const _0x1172de=_0x34cc72[_0x30faf9(0x8a)](/([A-Z])/g,'-$1')[_0x30faf9(0x9f)]();_0x4c817b['push'](_0x1172de);}}return _0x4c817b;}function a177_0x3742(_0x4c5eab,_0x2a02e7){_0x4c5eab=_0x4c5eab-0x88;const _0x41a87d=a177_0x41a8();let _0x37427a=_0x41a87d[_0x4c5eab];return _0x37427a;}export function parseDynamicFlags(){const _0x13b43e=a177_0x3742,_0x1da1e3=[];for(let _0xc1ce61=0x3;_0xc1ce61<process['argv'][_0x13b43e(0x94)];_0xc1ce61++){const _0x4ac409=process[_0x13b43e(0x8d)][_0xc1ce61];if(_0x4ac409&&_0x4ac409[_0x13b43e(0x98)]('--')){const _0x5182a2=_0x4ac409[_0x13b43e(0xa2)](0x2);_0x5182a2&&!_0x5182a2[_0x13b43e(0xa9)]('=')&&_0x1da1e3['push'](_0x5182a2);}}return _0x1da1e3;}export function getAllProvidedFlags(_0x22eaeb){const _0x34075b=a177_0x3742,_0x5c8be0=camelCaseFlagsToKebab(_0x22eaeb),_0x18864e=parseDynamicFlags(),_0x46f3c5=new Set([..._0x5c8be0,..._0x18864e]);return Array[_0x34075b(0xa5)](_0x46f3c5);}export function normalizeLegacyBffSaveFlags(_0x12a02d){const _0x78cd8a=a177_0x3742,_0x56a263=new Set(_0x12a02d);return _0x56a263[_0x78cd8a(0xa6)](_0x78cd8a(0xaa))&&_0x56a263[_0x78cd8a(0x8c)]('enable-bff-save'),Array['from'](_0x56a263);}function a177_0x41a8(){const _0x2b9a6f=['141RzWQVl','startsWith','563420LlQxNM','Equivalent\x20command:\x20','error','(empty)','setLogPath','entries','toLowerCase','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','exit','slice','804720CLwsIA','help','from','has','log','Error:\x20Unsupported\x20command:\x20','includes','dangerously-bff-save','1214720RyGkOh','2138DytJDH','replace','\x0aAvailable\x20commands:','add','argv','cwd','443960MoGzwt','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','44569ZLbQZb','\x20skill\x20--help\x0a\x20\x20','889740wDpjjW','length','不支持的命令:\x20','skill'];a177_0x41a8=function(){return _0x2b9a6f;};return a177_0x41a8();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xd89590,_0x1f8d25,_0x1e7caf){const _0x110daa=a177_0x3742;logger[_0x110daa(0x9d)](process[_0x110daa(0x8e)]());if(_0x1e7caf?.[_0x110daa(0xa4)]||_0xd89590==='--help'){showHelp();return;}console[_0x110daa(0x9b)](_0x110daa(0xa8)+(_0xd89590||_0x110daa(0x9c))),console[_0x110daa(0xa7)](_0x110daa(0x8b)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x110daa(0xa0)),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console['log'](''),console['log'](_0x110daa(0x9a)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x110daa(0x9b)](_0x110daa(0x96),_0x110daa(0x95)+_0xd89590),process[_0x110daa(0xa1)](0x1);}function showHelp(){const _0x39e5e2=a177_0x3742;console[_0x39e5e2(0xa7)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x39e5e2(0x92)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x39e5e2(0x90));}
@@ -1 +1 @@
1
- function a178_0x147a(_0x4152a4,_0x355dc8){_0x4152a4=_0x4152a4-0xaf;const _0x4c1323=a178_0x4c13();let _0x147af9=_0x4c1323[_0x4152a4];return _0x147af9;}const a178_0x1adb39=a178_0x147a;(function(_0x21976c,_0x54f9ab){const _0x2f108e=a178_0x147a,_0x2c4be3=_0x21976c();while(!![]){try{const _0x301b55=-parseInt(_0x2f108e(0xb8))/0x1+parseInt(_0x2f108e(0xc1))/0x2+parseInt(_0x2f108e(0xb9))/0x3*(parseInt(_0x2f108e(0xc2))/0x4)+parseInt(_0x2f108e(0xc6))/0x5*(-parseInt(_0x2f108e(0xaf))/0x6)+parseInt(_0x2f108e(0xbd))/0x7*(-parseInt(_0x2f108e(0xc5))/0x8)+-parseInt(_0x2f108e(0xcc))/0x9+parseInt(_0x2f108e(0xb6))/0xa;if(_0x301b55===_0x54f9ab)break;else _0x2c4be3['push'](_0x2c4be3['shift']());}catch(_0x21d976){_0x2c4be3['push'](_0x2c4be3['shift']());}}}(a178_0x4c13,0x99686));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a178_0x1adb39(0xb2);export const NPX_SKILLS_SUBCOMMAND_ADD=a178_0x1adb39(0xc8);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a178_0x1adb39(0xc0);export const LEGACY_RABETBASE_SKILL_SOURCE=a178_0x1adb39(0xb7);export const DEFAULT_RABETBASE_SKILL_NAME=a178_0x1adb39(0xc9);export function buildNpxSkillsAddArgv(_0x44bb0c){const _0x29544b=a178_0x1adb39,_0x50e635=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x44bb0c&&_0x50e635[_0x29544b(0xbf)](NPX_SKILLS_FLAG_SKILL,_0x44bb0c),_0x50e635;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a178_0x1adb39(0xc7),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a178_0x1adb39(0xc7),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a178_0x1adb39(0xb0)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x296e5b,_0x4e2343){const _0x436155=a178_0x1adb39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1439ca=_0x4e2343?.['stdio']??'inherit',_0x5b514=resolveNpmBin('npx'),_0x9c6c2=buildNpxSkillsAddArgv(_0x4e2343?.[_0x436155(0xcb)]),_0x504127=[_0x436155(0xc7),..._0x9c6c2][_0x436155(0xb0)]('\x20');console[_0x436155(0xc3)]('*\x20'+_0x504127);const _0x3a60c8=spawnSync(_0x5b514,_0x9c6c2,{'cwd':_0x296e5b,'stdio':_0x1439ca,'env':process.env,'shell':![]}),_0x4a733e=_0x3a60c8[_0x436155(0xbb)];if(_0x4a733e===0x0)return{'ok':!![],'status':0x0};let _0x346aac=_0x436155(0xbe)+(_0x4a733e??_0x436155(0xcd));if(_0x1439ca==='pipe'){const _0x28abe9=_0x3a60c8['stderr']?_0x3a60c8[_0x436155(0xc4)][_0x436155(0xca)]()['trim']():'',_0x33a379=_0x3a60c8[_0x436155(0xbc)]?_0x3a60c8[_0x436155(0xbc)][_0x436155(0xca)]()[_0x436155(0xb5)]():'';if(_0x28abe9)_0x346aac=_0x28abe9;else{if(_0x33a379)_0x346aac=_0x33a379;}}return{'ok':![],'status':_0x4a733e??null,'error':_0x346aac};}export function runNpxSkillsRemove(_0x492356,_0xabe40,_0x5c1e2c=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4dcd49=a178_0x1adb39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x10e5d4=_0xabe40?.[_0x4dcd49(0xb4)]??_0x4dcd49(0xb3),_0x2a8b27=resolveNpmBin(_0x4dcd49(0xc7)),_0x4fe96c=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x5c1e2c,NPX_SKILLS_FLAG_SKILL,_0xabe40?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0xabe40?.[_0x4dcd49(0xba)]?['-y']:[]],_0x1f4f15=[_0x2a8b27,..._0x4fe96c][_0x4dcd49(0xb0)]('\x20');console['log']('*\x20'+_0x1f4f15);const _0x8876e5=spawnSync(_0x2a8b27,_0x4fe96c,{'cwd':_0x492356,'stdio':_0x10e5d4,'env':process.env,'shell':![]}),_0x443eb3=_0x8876e5[_0x4dcd49(0xbb)];if(_0x443eb3===0x0)return{'ok':!![],'status':0x0};let _0x30d78c=_0x4dcd49(0xbe)+(_0x443eb3??_0x4dcd49(0xcd));if(_0x10e5d4===_0x4dcd49(0xb1)){const _0x5539cd=_0x8876e5[_0x4dcd49(0xc4)]?_0x8876e5[_0x4dcd49(0xc4)][_0x4dcd49(0xca)]()[_0x4dcd49(0xb5)]():'',_0x56ccc2=_0x8876e5[_0x4dcd49(0xbc)]?_0x8876e5['stdout'][_0x4dcd49(0xca)]()[_0x4dcd49(0xb5)]():'';if(_0x5539cd)_0x30d78c=_0x5539cd;else{if(_0x56ccc2)_0x30d78c=_0x56ccc2;}}return{'ok':![],'status':_0x443eb3??null,'error':_0x30d78c};}function a178_0x4c13(){const _0x11d9a9=['4820040TGvIHp','unknown','1508898PbDLtZ','join','pipe','skills','inherit','stdio','trim','14552910BLcMGG','lovrabet/lovrabet-skill','491849MZpPkg','1437FOvehi','yes','status','stdout','263809XcmFGa','exit\x20','push','lovrabet/rabetbase','1296748EssjPC','1404rXiLYV','log','stderr','24vOKNhs','10mBmdij','npx','add','Lovrabet','toString','skill'];a178_0x4c13=function(){return _0x11d9a9;};return a178_0x4c13();}export function runNpxSkillsAddGlobal(_0x1adabe,_0x2d7eb1,_0x15a4f7){const _0x3e5953=a178_0x1adb39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1df8d0=_0x15a4f7?.['stdio']??_0x3e5953(0xb3),_0xcc6b48=resolveNpmBin('npx'),_0x569e38=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2d7eb1,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2ee946=[_0x3e5953(0xc7),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2d7eb1,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3e5953(0xb0)]('\x20');console[_0x3e5953(0xc3)]('*\x20'+_0x2ee946);const _0x33dd8d=spawnSync(_0xcc6b48,_0x569e38,{'cwd':_0x1adabe,'stdio':_0x1df8d0,'env':process.env,'shell':![]}),_0x33403e=_0x33dd8d[_0x3e5953(0xbb)];if(_0x33403e===0x0)return{'ok':!![],'status':0x0};let _0x279c06=_0x3e5953(0xbe)+(_0x33403e??_0x3e5953(0xcd));if(_0x1df8d0===_0x3e5953(0xb1)){const _0x495789=_0x33dd8d[_0x3e5953(0xc4)]?_0x33dd8d[_0x3e5953(0xc4)][_0x3e5953(0xca)]()[_0x3e5953(0xb5)]():'',_0x2694d8=_0x33dd8d[_0x3e5953(0xbc)]?_0x33dd8d[_0x3e5953(0xbc)][_0x3e5953(0xca)]()['trim']():'';if(_0x495789)_0x279c06=_0x495789;else{if(_0x2694d8)_0x279c06=_0x2694d8;}}return{'ok':![],'status':_0x33403e??null,'error':_0x279c06};}
1
+ const a178_0x87d777=a178_0x48a1;(function(_0x4dfbbc,_0x24d6c8){const _0x1fe653=a178_0x48a1,_0x421ab6=_0x4dfbbc();while(!![]){try{const _0x424840=-parseInt(_0x1fe653(0xf3))/0x1*(-parseInt(_0x1fe653(0xed))/0x2)+-parseInt(_0x1fe653(0xe3))/0x3*(parseInt(_0x1fe653(0xf1))/0x4)+parseInt(_0x1fe653(0xf8))/0x5+-parseInt(_0x1fe653(0xff))/0x6+-parseInt(_0x1fe653(0xfc))/0x7+parseInt(_0x1fe653(0xe5))/0x8*(-parseInt(_0x1fe653(0xe4))/0x9)+parseInt(_0x1fe653(0xf5))/0xa*(parseInt(_0x1fe653(0xf0))/0xb);if(_0x424840===_0x24d6c8)break;else _0x421ab6['push'](_0x421ab6['shift']());}catch(_0x53578f){_0x421ab6['push'](_0x421ab6['shift']());}}}(a178_0x20e1,0x6af53));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a178_0x20e1(){const _0x4fc423=['2463111nirAnu','inherit','trim','3100764nBaUWn','--skill','join','exit\x20','2745nzHJgr','963GYmfEM','51256sPfGir','pipe','add','toString','log','stderr','skill','stdout','1070nYBASs','stdio','lovrabet/rabetbase','11mZjiHr','452gxYgBd','yes','791wQrKqh','remove','12115270ufbjnA','unknown','npx','2304990XfBUdx','skills','push','status'];a178_0x20e1=function(){return _0x4fc423;};return a178_0x20e1();}function a178_0x48a1(_0x4ed31a,_0x419a1e){_0x4ed31a=_0x4ed31a-0xe2;const _0x20e125=a178_0x20e1();let _0x48a167=_0x20e125[_0x4ed31a];return _0x48a167;}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a178_0x87d777(0xf9);export const NPX_SKILLS_SUBCOMMAND_ADD=a178_0x87d777(0xe7);export const NPX_SKILLS_FLAG_SKILL=a178_0x87d777(0x100);export const RABETBASE_SKILL_SOURCE=a178_0x87d777(0xef);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x17788c){const _0x430a21=a178_0x87d777,_0xa7994d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x17788c&&_0xa7994d[_0x430a21(0xfa)](NPX_SKILLS_FLAG_SKILL,_0x17788c),_0xa7994d;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a178_0x87d777(0xf7),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a178_0x87d777(0x101)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x380379,_0x58f30e){const _0x405323=a178_0x87d777;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x516271=_0x58f30e?.[_0x405323(0xee)]??_0x405323(0xfd),_0x5be082=resolveNpmBin(_0x405323(0xf7)),_0x271505=buildNpxSkillsAddArgv(_0x58f30e?.[_0x405323(0xeb)]),_0x568133=['npx',..._0x271505][_0x405323(0x101)]('\x20');console[_0x405323(0xe9)]('*\x20'+_0x568133);const _0x4d89ed=spawnSync(_0x5be082,_0x271505,{'cwd':_0x380379,'stdio':_0x516271,'env':process.env,'shell':![]}),_0x3018fd=_0x4d89ed[_0x405323(0xfb)];if(_0x3018fd===0x0)return{'ok':!![],'status':0x0};let _0x285f2e='exit\x20'+(_0x3018fd??'unknown');if(_0x516271===_0x405323(0xe6)){const _0x1e369b=_0x4d89ed[_0x405323(0xea)]?_0x4d89ed[_0x405323(0xea)][_0x405323(0xe8)]()[_0x405323(0xfe)]():'',_0x3c3040=_0x4d89ed['stdout']?_0x4d89ed['stdout'][_0x405323(0xe8)]()[_0x405323(0xfe)]():'';if(_0x1e369b)_0x285f2e=_0x1e369b;else{if(_0x3c3040)_0x285f2e=_0x3c3040;}}return{'ok':![],'status':_0x3018fd??null,'error':_0x285f2e};}export function runNpxSkillsRemove(_0x464adf,_0x1c0510,_0x3e5b7f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x567d73=a178_0x87d777;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x23342c=_0x1c0510?.[_0x567d73(0xee)]??'inherit',_0x201c2f=resolveNpmBin(_0x567d73(0xf7)),_0x550724=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x567d73(0xf4),_0x3e5b7f,NPX_SKILLS_FLAG_SKILL,_0x1c0510?.[_0x567d73(0xeb)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1c0510?.[_0x567d73(0xf2)]?['-y']:[]],_0x313842=[_0x201c2f,..._0x550724][_0x567d73(0x101)]('\x20');console['log']('*\x20'+_0x313842);const _0xbafedc=spawnSync(_0x201c2f,_0x550724,{'cwd':_0x464adf,'stdio':_0x23342c,'env':process.env,'shell':![]}),_0x2bf071=_0xbafedc[_0x567d73(0xfb)];if(_0x2bf071===0x0)return{'ok':!![],'status':0x0};let _0x5576e7=_0x567d73(0xe2)+(_0x2bf071??_0x567d73(0xf6));if(_0x23342c===_0x567d73(0xe6)){const _0x107ae5=_0xbafedc[_0x567d73(0xea)]?_0xbafedc[_0x567d73(0xea)][_0x567d73(0xe8)]()[_0x567d73(0xfe)]():'',_0x301c56=_0xbafedc['stdout']?_0xbafedc['stdout'][_0x567d73(0xe8)]()['trim']():'';if(_0x107ae5)_0x5576e7=_0x107ae5;else{if(_0x301c56)_0x5576e7=_0x301c56;}}return{'ok':![],'status':_0x2bf071??null,'error':_0x5576e7};}export function runNpxSkillsAddGlobal(_0x3f4d1b,_0x5d1891,_0x549af4){const _0x4185af=a178_0x87d777;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3d99a8=_0x549af4?.[_0x4185af(0xee)]??_0x4185af(0xfd),_0x306b2d=resolveNpmBin('npx'),_0x36174b=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5d1891,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1d08fe=[_0x4185af(0xf7),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5d1891,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x4185af(0xe9)]('*\x20'+_0x1d08fe);const _0x2474d9=spawnSync(_0x306b2d,_0x36174b,{'cwd':_0x3f4d1b,'stdio':_0x3d99a8,'env':process.env,'shell':![]}),_0x2e17b4=_0x2474d9[_0x4185af(0xfb)];if(_0x2e17b4===0x0)return{'ok':!![],'status':0x0};let _0x1e8050=_0x4185af(0xe2)+(_0x2e17b4??'unknown');if(_0x3d99a8===_0x4185af(0xe6)){const _0xdb5a21=_0x2474d9[_0x4185af(0xea)]?_0x2474d9['stderr'][_0x4185af(0xe8)]()[_0x4185af(0xfe)]():'',_0x52c81d=_0x2474d9[_0x4185af(0xec)]?_0x2474d9[_0x4185af(0xec)]['toString']()[_0x4185af(0xfe)]():'';if(_0xdb5a21)_0x1e8050=_0xdb5a21;else{if(_0x52c81d)_0x1e8050=_0x52c81d;}}return{'ok':![],'status':_0x2e17b4??null,'error':_0x1e8050};}
@@ -1 +1 @@
1
- (function(_0x56041d,_0x102867){const _0x10264f=a179_0x2cb3,_0x145cbb=_0x56041d();while(!![]){try{const _0x5894f4=parseInt(_0x10264f(0x1e1))/0x1+parseInt(_0x10264f(0x1ee))/0x2*(parseInt(_0x10264f(0x1e3))/0x3)+parseInt(_0x10264f(0x1de))/0x4+parseInt(_0x10264f(0x1ed))/0x5*(parseInt(_0x10264f(0x1dd))/0x6)+parseInt(_0x10264f(0x1eb))/0x7+parseInt(_0x10264f(0x1e4))/0x8*(-parseInt(_0x10264f(0x1e5))/0x9)+-parseInt(_0x10264f(0x1e0))/0xa*(parseInt(_0x10264f(0x1e7))/0xb);if(_0x5894f4===_0x102867)break;else _0x145cbb['push'](_0x145cbb['shift']());}catch(_0x581fb9){_0x145cbb['push'](_0x145cbb['shift']());}}}(a179_0xba87,0xad93c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0xb8bda9){const _0x3391c6=a179_0x2cb3;return SENSITIVE_PATTERNS[_0x3391c6(0x1e9)](_0x1f2650=>_0x1f2650[_0x3391c6(0x1ec)](_0xb8bda9));}function sanitizeFlags(_0xed29cf){const _0xa6079a={};for(const [_0x123382,_0x5a6031]of Object['entries'](_0xed29cf)){isSensitiveKey(_0x123382)?_0xa6079a[_0x123382]=_0x5a6031!=null&&_0x5a6031!==''?'[REDACTED]':_0x5a6031:_0xa6079a[_0x123382]=_0x5a6031;}return _0xa6079a;}function a179_0x2cb3(_0x57f9d6,_0x3d4577){_0x57f9d6=_0x57f9d6-0x1dc;const _0xba87fd=a179_0xba87();let _0x2cb366=_0xba87fd[_0x57f9d6];return _0x2cb366;}export async function reportCommandTrace(_0x5aefa0){const _0x55c7e3=a179_0x2cb3;try{const _0x44e150=sanitizeFlags(_0x5aefa0[_0x55c7e3(0x1ef)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5aefa0[_0x55c7e3(0x1dc)],'command.name':_0x5aefa0[_0x55c7e3(0x1e2)],'command.flags':JSON[_0x55c7e3(0x1df)](_0x44e150),..._0x5aefa0[_0x55c7e3(0x1e8)]!=null?{'command.duration_ms':_0x5aefa0[_0x55c7e3(0x1e8)]}:{},..._0x5aefa0[_0x55c7e3(0x1ea)]?{'command.error':_0x5aefa0[_0x55c7e3(0x1ea)]instanceof Error?_0x5aefa0[_0x55c7e3(0x1ea)][_0x55c7e3(0x1e6)]:String(_0x5aefa0['error'])}:{}}});}catch{}}function a179_0xba87(){const _0x1cf788=['command','279765xCbAru','8iREYuJ','8895681AlAaoq','message','11RPjEZw','durationMs','some','error','9897741bOCxeg','test','4147195mGZuUo','6FTcBBv','flags','service','6RAiUlY','885932uZQBEK','stringify','19705160NNTokl','925247FPiuSq'];a179_0xba87=function(){return _0x1cf788;};return a179_0xba87();}
1
+ (function(_0x1a1992,_0x540a15){const _0x123833=a179_0x57db,_0x669dbc=_0x1a1992();while(!![]){try{const _0x1b2829=parseInt(_0x123833(0x14b))/0x1*(parseInt(_0x123833(0x144))/0x2)+parseInt(_0x123833(0x148))/0x3*(parseInt(_0x123833(0x147))/0x4)+-parseInt(_0x123833(0x13f))/0x5+parseInt(_0x123833(0x154))/0x6*(-parseInt(_0x123833(0x14e))/0x7)+-parseInt(_0x123833(0x14d))/0x8*(parseInt(_0x123833(0x150))/0x9)+-parseInt(_0x123833(0x14f))/0xa+-parseInt(_0x123833(0x145))/0xb*(-parseInt(_0x123833(0x151))/0xc);if(_0x1b2829===_0x540a15)break;else _0x669dbc['push'](_0x669dbc['shift']());}catch(_0x2e4eb3){_0x669dbc['push'](_0x669dbc['shift']());}}}(a179_0x11da,0x6b90e));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 a179_0x57db(_0x3d808e,_0x2672ec){_0x3d808e=_0x3d808e-0x13f;const _0x11dac7=a179_0x11da();let _0x57db3c=_0x11dac7[_0x3d808e];return _0x57db3c;}function a179_0x11da(){const _0x9443d4=['durationMs','32664BmQYgq','7tWnaXc','2620510gEznXb','1683WaLEWF','72pbkQGO','some','stringify','379866hLdiHA','2440555UAAoii','error','rabetbase.command','entries','test','164522gYVZIE','3115541CSFDlr','message','943748dhvRtn','3PcXXKg','flags','command','1HuMwhZ'];a179_0x11da=function(){return _0x9443d4;};return a179_0x11da();}function isSensitiveKey(_0x29cbb3){const _0x845768=a179_0x57db;return SENSITIVE_PATTERNS[_0x845768(0x152)](_0x25e75e=>_0x25e75e[_0x845768(0x143)](_0x29cbb3));}function sanitizeFlags(_0x4be386){const _0x2cdd98=a179_0x57db,_0x4856db={};for(const [_0x4635cc,_0x53da3b]of Object[_0x2cdd98(0x142)](_0x4be386)){isSensitiveKey(_0x4635cc)?_0x4856db[_0x4635cc]=_0x53da3b!=null&&_0x53da3b!==''?'[REDACTED]':_0x53da3b:_0x4856db[_0x4635cc]=_0x53da3b;}return _0x4856db;}export async function reportCommandTrace(_0xdc109e){const _0x28dff0=a179_0x57db;try{const _0x4384dd=sanitizeFlags(_0xdc109e[_0x28dff0(0x149)]);await sendCliTraceLog({'spanName':_0x28dff0(0x141),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xdc109e['service'],'command.name':_0xdc109e[_0x28dff0(0x14a)],'command.flags':JSON[_0x28dff0(0x153)](_0x4384dd),..._0xdc109e[_0x28dff0(0x14c)]!=null?{'command.duration_ms':_0xdc109e[_0x28dff0(0x14c)]}:{},..._0xdc109e[_0x28dff0(0x140)]?{'command.error':_0xdc109e['error']instanceof Error?_0xdc109e[_0x28dff0(0x140)][_0x28dff0(0x146)]:String(_0xdc109e[_0x28dff0(0x140)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x2720ac,_0x3f907f){var _0x185a02=a180_0x2b53,_0x199e11=_0x2720ac();while(!![]){try{var _0x5d61ad=parseInt(_0x185a02(0x154))/0x1*(-parseInt(_0x185a02(0x155))/0x2)+-parseInt(_0x185a02(0x156))/0x3*(parseInt(_0x185a02(0x153))/0x4)+-parseInt(_0x185a02(0x14a))/0x5*(-parseInt(_0x185a02(0x150))/0x6)+-parseInt(_0x185a02(0x152))/0x7*(-parseInt(_0x185a02(0x151))/0x8)+parseInt(_0x185a02(0x14e))/0x9*(-parseInt(_0x185a02(0x14b))/0xa)+parseInt(_0x185a02(0x157))/0xb*(-parseInt(_0x185a02(0x14c))/0xc)+parseInt(_0x185a02(0x158))/0xd;if(_0x5d61ad===_0x3f907f)break;else _0x199e11['push'](_0x199e11['shift']());}catch(_0x510c24){_0x199e11['push'](_0x199e11['shift']());}}}(a180_0x26a6,0x5e6b8));function a180_0x26a6(){var _0x52efbb=['4293711NiSVVq','cli.help','6YoQWVT','16ZdPhFJ','568981yqAKtn','580zVayIE','233KULJen','5498FMuyPU','5967NpJUjb','66Apiruh','18882370TPYTUd','service','3827905TsiVBI','10PJrKOo','1175784Xaumpq','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a180_0x26a6=function(){return _0x52efbb;};return a180_0x26a6();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a180_0x2b53(_0x405f1c,_0x166042){_0x405f1c=_0x405f1c-0x14a;var _0x26a6a5=a180_0x26a6();var _0x2b5339=_0x26a6a5[_0x405f1c];return _0x2b5339;}export async function reportCliHelpTrace(_0x4918b8,_0x497154){var _0x254718=a180_0x2b53;try{await sendCliTraceLog({'spanName':_0x254718(0x14f),'logData':{'rabetbase.help.kind':_0x4918b8,..._0x497154?.[_0x254718(0x159)]&&{'rabetbase.help.service':_0x497154['service']}}});}catch(_0x29754a){console['error'](_0x254718(0x14d),_0x29754a);}}
1
+ (function(_0x45aa5f,_0x15b495){var _0x904d6f=a180_0x1a97,_0x2d2d97=_0x45aa5f();while(!![]){try{var _0x2f8b74=parseInt(_0x904d6f(0x1e6))/0x1*(-parseInt(_0x904d6f(0x1df))/0x2)+-parseInt(_0x904d6f(0x1e5))/0x3+parseInt(_0x904d6f(0x1db))/0x4*(parseInt(_0x904d6f(0x1e7))/0x5)+-parseInt(_0x904d6f(0x1e0))/0x6+-parseInt(_0x904d6f(0x1de))/0x7*(-parseInt(_0x904d6f(0x1da))/0x8)+parseInt(_0x904d6f(0x1e4))/0x9+parseInt(_0x904d6f(0x1dd))/0xa*(parseInt(_0x904d6f(0x1e3))/0xb);if(_0x2f8b74===_0x15b495)break;else _0x2d2d97['push'](_0x2d2d97['shift']());}catch(_0x26cddb){_0x2d2d97['push'](_0x2d2d97['shift']());}}}(a180_0x238e,0x1a776));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a180_0x238e(){var _0x1870fe=['594396HCLeYL','4703hddrVV','12590GCRPYJ','496NgyXDl','8WjxLYi','cli.help','59750Uvnciy','16737JpHfii','8EHcsPV','156144qCDfzp','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','132DMkxpA','1137564hikLQA'];a180_0x238e=function(){return _0x1870fe;};return a180_0x238e();}function a180_0x1a97(_0x598b19,_0x497cf1){_0x598b19=_0x598b19-0x1da;var _0x238ef4=a180_0x238e();var _0x1a9754=_0x238ef4[_0x598b19];return _0x1a9754;}export async function reportCliHelpTrace(_0x58ca90,_0x4544cf){var _0x187731=a180_0x1a97;try{await sendCliTraceLog({'spanName':_0x187731(0x1dc),'logData':{'rabetbase.help.kind':_0x58ca90,..._0x4544cf?.['service']&&{'rabetbase.help.service':_0x4544cf[_0x187731(0x1e2)]}}});}catch(_0x1be0f8){console['error'](_0x187731(0x1e1),_0x1be0f8);}}
@@ -1 +1 @@
1
- (function(_0x48b319,_0x25b79e){const _0x6a9d63=a181_0x5061,_0x204956=_0x48b319();while(!![]){try{const _0x58d6ed=parseInt(_0x6a9d63(0x111))/0x1*(parseInt(_0x6a9d63(0x103))/0x2)+parseInt(_0x6a9d63(0x110))/0x3*(-parseInt(_0x6a9d63(0x105))/0x4)+-parseInt(_0x6a9d63(0x10c))/0x5+-parseInt(_0x6a9d63(0x10f))/0x6*(-parseInt(_0x6a9d63(0x104))/0x7)+parseInt(_0x6a9d63(0x112))/0x8+-parseInt(_0x6a9d63(0x10b))/0x9+-parseInt(_0x6a9d63(0x10e))/0xa;if(_0x58d6ed===_0x25b79e)break;else _0x204956['push'](_0x204956['shift']());}catch(_0xdce46){_0x204956['push'](_0x204956['shift']());}}}(a181_0x52e0,0x421e2));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a181_0x52e0(){const _0x321d98=['tenant','user','daily','email','1180125sylCJs','41440PulZUm','tenant_code','2033570UsWivd','1421340EOLoOk','211398cPAAbY','209394BgWYTx','2825680LqfObj','production','2wiFDFL','14YxDYac','24wstDPG','unknown'];a181_0x52e0=function(){return _0x321d98;};return a181_0x52e0();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a181_0x5061(_0x49cfa5,_0x48ac6b){_0x49cfa5=_0x49cfa5-0x103;const _0x52e055=a181_0x52e0();let _0x506111=_0x52e055[_0x49cfa5];return _0x506111;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3e615b=a181_0x5061,_0x3409d1=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3531a4=_0x3409d1?.[_0x3e615b(0x108)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3e615b(0x106)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3e615b(0x109):_0x3e615b(0x113))}),setUserContext({'id':_0x3531a4?.['id'],'username':_0x3531a4?.['username'],'nickname':_0x3531a4?.['nickname'],'email':_0x3531a4?.[_0x3e615b(0x10a)],'tenantCode':_0x3531a4?.[_0x3e615b(0x107)][_0x3e615b(0x10d)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3409d1;}
1
+ (function(_0xd94a79,_0x233b15){const _0x3cc904=a181_0x5df4,_0x101e69=_0xd94a79();while(!![]){try{const _0x4ab391=parseInt(_0x3cc904(0x178))/0x1+-parseInt(_0x3cc904(0x184))/0x2*(parseInt(_0x3cc904(0x183))/0x3)+-parseInt(_0x3cc904(0x17b))/0x4+-parseInt(_0x3cc904(0x185))/0x5+parseInt(_0x3cc904(0x187))/0x6+parseInt(_0x3cc904(0x17f))/0x7+parseInt(_0x3cc904(0x182))/0x8*(parseInt(_0x3cc904(0x17e))/0x9);if(_0x4ab391===_0x233b15)break;else _0x101e69['push'](_0x101e69['shift']());}catch(_0x4a7f58){_0x101e69['push'](_0x101e69['shift']());}}}(a181_0x2270,0xa8f47));function a181_0x5df4(_0x5c2ab8,_0x514950){_0x5c2ab8=_0x5c2ab8-0x178;const _0x227034=a181_0x2270();let _0x5df4db=_0x227034[_0x5c2ab8];return _0x5df4db;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a181_0x2270(){const _0x1775c4=['email','4685104UOPzBL','unknown','user','27Ybnkgs','3705401yzhimV','daily','username','4935736tLfnya','385731kLKkci','2tlbkEI','6523415aceNxL','nickname','3619656FrDxfw','313055OtwYoP','production'];a181_0x2270=function(){return _0x1775c4;};return a181_0x2270();}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 _0x57c97f=a181_0x5df4,_0x2196b0=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4dab27=_0x2196b0?.[_0x57c97f(0x17d)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x57c97f(0x17c)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x57c97f(0x180):_0x57c97f(0x179))}),setUserContext({'id':_0x4dab27?.['id'],'username':_0x4dab27?.[_0x57c97f(0x181)],'nickname':_0x4dab27?.[_0x57c97f(0x186)],'email':_0x4dab27?.[_0x57c97f(0x17a)],'tenantCode':_0x4dab27?.['tenant']['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2196b0;}
@@ -1 +1 @@
1
- (function(_0x1b38c0,_0x338ea0){const _0x28e240=a182_0x2c39,_0x2e28cd=_0x1b38c0();while(!![]){try{const _0x2af427=parseInt(_0x28e240(0x15b))/0x1*(parseInt(_0x28e240(0x15f))/0x2)+-parseInt(_0x28e240(0x165))/0x3*(-parseInt(_0x28e240(0x167))/0x4)+-parseInt(_0x28e240(0x166))/0x5*(parseInt(_0x28e240(0x162))/0x6)+parseInt(_0x28e240(0x15c))/0x7+parseInt(_0x28e240(0x163))/0x8+parseInt(_0x28e240(0x161))/0x9*(-parseInt(_0x28e240(0x15d))/0xa)+parseInt(_0x28e240(0x159))/0xb;if(_0x2af427===_0x338ea0)break;else _0x2e28cd['push'](_0x2e28cd['shift']());}catch(_0x24fe3e){_0x2e28cd['push'](_0x2e28cd['shift']());}}}(a182_0x3884,0x9301f));function a182_0x2c39(_0x3e4d99,_0x2359ca){_0x3e4d99=_0x3e4d99-0x159;const _0x38845a=a182_0x3884();let _0x2c3920=_0x38845a[_0x3e4d99];return _0x2c3920;}import{shutdownTraces}from'@lovrabet/otel-logger';function a182_0x3884(){const _0x540a88=['SIGINT','1006KZgaUh','once','8578863SROtdk','126fiOqAu','502872DQqIvG','exit','93192wLLucq','181745BaWyiv','72NYbEos','6188424SVyIIF','beforeExit','919Wtbfed','4702789YLzIse','10CsJFIu'];a182_0x3884=function(){return _0x540a88;};return a182_0x3884();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x191715=a182_0x2c39;process[_0x191715(0x160)](_0x191715(0x15a),()=>{void flushOtelNodeIfUsed();});const _0x56167f=()=>{const _0x3f3bd8=_0x191715;void flushOtelNodeIfUsed()['then'](()=>process[_0x3f3bd8(0x164)](0x0));};process['once'](_0x191715(0x15e),_0x56167f),process['once']('SIGTERM',_0x56167f);}export async function exitWithOtelShutdown(_0x1ea5f3){const _0x3abc65=a182_0x2c39;await flushOtelNodeIfUsed(),process[_0x3abc65(0x164)](_0x1ea5f3);}
1
+ (function(_0xa23f5d,_0x4385e4){const _0x27398c=a182_0x58b6,_0x5e3ec9=_0xa23f5d();while(!![]){try{const _0x36ee84=-parseInt(_0x27398c(0x90))/0x1+parseInt(_0x27398c(0x8c))/0x2*(parseInt(_0x27398c(0x8d))/0x3)+-parseInt(_0x27398c(0x92))/0x4+-parseInt(_0x27398c(0x89))/0x5+-parseInt(_0x27398c(0x97))/0x6+-parseInt(_0x27398c(0x8a))/0x7+-parseInt(_0x27398c(0x95))/0x8*(-parseInt(_0x27398c(0x94))/0x9);if(_0x36ee84===_0x4385e4)break;else _0x5e3ec9['push'](_0x5e3ec9['shift']());}catch(_0x4e4611){_0x5e3ec9['push'](_0x5e3ec9['shift']());}}}(a182_0x541e,0x410d9));function a182_0x58b6(_0x1134e9,_0x3ed654){_0x1134e9=_0x1134e9-0x89;const _0x541e30=a182_0x541e();let _0x58b6e7=_0x541e30[_0x1134e9];return _0x58b6e7;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x507b6d=a182_0x58b6;process[_0x507b6d(0x8b)](_0x507b6d(0x96),()=>{void flushOtelNodeIfUsed();});const _0x3bb2ff=()=>{const _0x182234=_0x507b6d;void flushOtelNodeIfUsed()[_0x182234(0x91)](()=>process[_0x182234(0x93)](0x0));};process[_0x507b6d(0x8b)](_0x507b6d(0x8f),_0x3bb2ff),process[_0x507b6d(0x8b)](_0x507b6d(0x8e),_0x3bb2ff);}function a182_0x541e(){const _0x4af336=['6WOcozw','SIGTERM','SIGINT','54435nihWGH','then','296396OliZZi','exit','2129643aKJGqE','24NUtWPT','beforeExit','1341096OGBSZD','1362555qTqCPA','164591huJGGC','once','204650mDNjSM'];a182_0x541e=function(){return _0x4af336;};return a182_0x541e();}export async function exitWithOtelShutdown(_0x2cd0ec){await flushOtelNodeIfUsed(),process['exit'](_0x2cd0ec);}