@lovrabet/rabetbase-cli 2.2.4-beta.3 → 2.2.4-beta.4

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 (207) 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 +2 -2
  206. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
  207. package/templates/rules/lovrabet_rules.mdc.tpl +3 -1
@@ -1 +1 @@
1
- (function(_0x2a8686,_0x64c177){const _0x571750=a158_0x57d6,_0x1a9b10=_0x2a8686();while(!![]){try{const _0x289236=parseInt(_0x571750(0x83))/0x1*(-parseInt(_0x571750(0x8e))/0x2)+-parseInt(_0x571750(0x87))/0x3+-parseInt(_0x571750(0x8b))/0x4*(parseInt(_0x571750(0x7e))/0x5)+parseInt(_0x571750(0x93))/0x6*(-parseInt(_0x571750(0x81))/0x7)+parseInt(_0x571750(0x7d))/0x8*(parseInt(_0x571750(0x96))/0x9)+parseInt(_0x571750(0x79))/0xa*(-parseInt(_0x571750(0x85))/0xb)+parseInt(_0x571750(0x77))/0xc;if(_0x289236===_0x64c177)break;else _0x1a9b10['push'](_0x1a9b10['shift']());}catch(_0x424016){_0x1a9b10['push'](_0x1a9b10['shift']());}}}(a158_0x7a79,0x35dec));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x5aec7f){const _0x401334=a158_0x57d6;if(_0x5aec7f===_0x401334(0x76))return _0x401334(0x75);if(_0x5aec7f===_0x401334(0x88))return _0x401334(0x86);return undefined;}async function scanSqlFilesRecursively(_0x9bb68e,_0x2bf494){const _0x7322b7=a158_0x57d6,_0x1a8529=[];try{const _0x197e6d=await readdir(_0x9bb68e,{'withFileTypes':!![]});for(const _0x2870a0 of _0x197e6d){const _0x268430=join(_0x9bb68e,_0x2870a0['name']);if(_0x2870a0[_0x7322b7(0x8a)]()){_0x1a8529['push'](...await scanSqlFilesRecursively(_0x268430,_0x2bf494));continue;}if(!_0x2870a0[_0x7322b7(0x90)]())continue;const _0x12e2f4=extname(_0x2870a0[_0x7322b7(0x7f)])['toLowerCase'](),_0x31701f=extensionToMode(_0x12e2f4);if(!_0x31701f)continue;const _0x3521ad=relative(_0x2bf494,_0x268430)[_0x7322b7(0x92)](/\\/g,'/'),_0x37db59=_0x3521ad['split']('/')[_0x7322b7(0x91)](Boolean),_0x674e05=parseSqlPath(_0x37db59,_0x2870a0['name'],_0x12e2f4);if(!_0x674e05)continue;_0x1a8529[_0x7322b7(0x95)]({'sqlCode':_0x674e05[_0x7322b7(0x8f)],'sqlName':_0x674e05[_0x7322b7(0x7b)],'dbDirectory':_0x37db59[0x0],'filePath':_0x268430,'relativePath':_0x3521ad,'lockKey':_0x674e05['sqlCode'],'mode':_0x31701f});}}catch(_0x45cfa7){if(_0x45cfa7[_0x7322b7(0x78)]!==_0x7322b7(0x8c))throw _0x45cfa7;}return _0x1a8529;}function a158_0x57d6(_0x31e192,_0x1cb24f){_0x31e192=_0x31e192-0x75;const _0x7a7941=a158_0x7a79();let _0x57d6f7=_0x7a7941[_0x31e192];return _0x57d6f7;}export async function scanLocalSqlQueries(_0xd4dec3){const _0x34a31a=a158_0x57d6;return scanSqlFilesRecursively(_0xd4dec3['sqlRootDir'],_0xd4dec3[_0x34a31a(0x8d)]);}export function resolveLocalSqlFilePath(_0x3918ba,_0x46bb22,_0x1783d0){const _0x5360ef=a158_0x57d6,_0x47bdf7=_0x1783d0?.[_0x5360ef(0x84)]||(_0x1783d0?.[_0x5360ef(0x7b)]||_0x1783d0?.['dbName']?buildSqlRelativePath(_0x46bb22,_0x1783d0?.['sqlName'],_0x1783d0?.[_0x5360ef(0x7a)],_0x1783d0?.[_0x5360ef(0x89)]||_0x5360ef(0x75),_0x1783d0?.['dbId']):buildDefaultSqlFileName(_0x46bb22,_0x1783d0?.['mode']||_0x5360ef(0x75)));return join(_0x3918ba[_0x5360ef(0x8d)],_0x47bdf7);}export async function directoryExists(_0x5309b0){const _0x35c088=a158_0x57d6;try{const _0x1ffeee=await stat(_0x5309b0);return _0x1ffeee[_0x35c088(0x8a)]();}catch{return![];}}function parseSqlPath(_0x5bc303,_0x12a9a9,_0x4b18a7){const _0x29449b=a158_0x57d6,_0x255540=_0x12a9a9[_0x29449b(0x82)](0x0,-_0x4b18a7['length']);if(_0x5bc303[_0x29449b(0x7c)]<0x2)return null;const _0x2974fb=_0x255540[_0x29449b(0x80)]('_');if(_0x2974fb<=0x0||_0x2974fb>=_0x255540[_0x29449b(0x7c)]-0x1)return null;const _0xe048b7=_0x255540['slice'](0x0,_0x2974fb);if(!isLikelySqlCode(_0xe048b7))return null;return{'sqlCode':_0xe048b7,'sqlName':_0x255540['slice'](_0x2974fb+0x1)};}function a158_0x7a79(){const _0x4f16c8=['sql','.sql','11355744OAqpYB','code','970FMjMYH','dbName','sqlName','length','32YfKXFS','2290FkAgbD','name','indexOf','119cwrjAV','slice','87059xyzxkS','path','16973Nampuw','mybatisXml','1003965KxPCFx','.xml','mode','isDirectory','808xjeQxP','ENOENT','sqlRootDir','2vdgpoK','sqlCode','isFile','filter','replace','114306kPtsek','test','push','589743kEqItC'];a158_0x7a79=function(){return _0x4f16c8;};return a158_0x7a79();}function isLikelySqlCode(_0x4c6447){const _0x3fe7b0=a158_0x57d6;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x3fe7b0(0x94)](_0x4c6447);}
1
+ function a158_0x4989(){const _0x16c244=['2050254pllNLE','isDirectory','toLowerCase','push','slice','name','8yDFiwp','709EKpMgV','12DDROeh','.sql','test','8693628STzDlo','filter','replace','code','isFile','928361plbtkt','134212Pjkfxo','dbName','indexOf','length','sqlCode','39OtkHzV','sql','11UOMpOt','sqlRootDir','mybatisXml','sqlName','1084090JquQzT','split','1419450kBGNju','mode','.xml','1058WkkRmD'];a158_0x4989=function(){return _0x16c244;};return a158_0x4989();}(function(_0x14bc3b,_0xf7325e){const _0x6536df=a158_0xe706,_0x56f49f=_0x14bc3b();while(!![]){try{const _0x5ef596=parseInt(_0x6536df(0x89))/0x1*(-parseInt(_0x6536df(0x81))/0x2)+-parseInt(_0x6536df(0x98))/0x3*(parseInt(_0x6536df(0x93))/0x4)+parseInt(_0x6536df(0x7c))/0x5+parseInt(_0x6536df(0x8a))/0x6*(-parseInt(_0x6536df(0x92))/0x7)+-parseInt(_0x6536df(0x88))/0x8*(-parseInt(_0x6536df(0x82))/0x9)+parseInt(_0x6536df(0x7e))/0xa+parseInt(_0x6536df(0x9a))/0xb*(parseInt(_0x6536df(0x8d))/0xc);if(_0x5ef596===_0xf7325e)break;else _0x56f49f['push'](_0x56f49f['shift']());}catch(_0x5de15c){_0x56f49f['push'](_0x56f49f['shift']());}}}(a158_0x4989,0x3942e));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x1a99c6){const _0x293ed2=a158_0xe706;if(_0x1a99c6===_0x293ed2(0x8b))return _0x293ed2(0x99);if(_0x1a99c6===_0x293ed2(0x80))return _0x293ed2(0x7a);return undefined;}async function scanSqlFilesRecursively(_0xd2caa,_0x1ea45f){const _0x3da156=a158_0xe706,_0x22e9c2=[];try{const _0x5625fc=await readdir(_0xd2caa,{'withFileTypes':!![]});for(const _0xefe511 of _0x5625fc){const _0x529d78=join(_0xd2caa,_0xefe511[_0x3da156(0x87)]);if(_0xefe511[_0x3da156(0x83)]()){_0x22e9c2[_0x3da156(0x85)](...await scanSqlFilesRecursively(_0x529d78,_0x1ea45f));continue;}if(!_0xefe511[_0x3da156(0x91)]())continue;const _0x332bd0=extname(_0xefe511[_0x3da156(0x87)])[_0x3da156(0x84)](),_0x5b01de=extensionToMode(_0x332bd0);if(!_0x5b01de)continue;const _0x2eef96=relative(_0x1ea45f,_0x529d78)[_0x3da156(0x8f)](/\\/g,'/'),_0x2809c2=_0x2eef96[_0x3da156(0x7d)]('/')[_0x3da156(0x8e)](Boolean),_0x4ff35c=parseSqlPath(_0x2809c2,_0xefe511['name'],_0x332bd0);if(!_0x4ff35c)continue;_0x22e9c2[_0x3da156(0x85)]({'sqlCode':_0x4ff35c['sqlCode'],'sqlName':_0x4ff35c['sqlName'],'dbDirectory':_0x2809c2[0x0],'filePath':_0x529d78,'relativePath':_0x2eef96,'lockKey':_0x4ff35c[_0x3da156(0x97)],'mode':_0x5b01de});}}catch(_0x856daa){if(_0x856daa[_0x3da156(0x90)]!=='ENOENT')throw _0x856daa;}return _0x22e9c2;}export async function scanLocalSqlQueries(_0x11aa39){const _0x5b1176=a158_0xe706;return scanSqlFilesRecursively(_0x11aa39[_0x5b1176(0x9b)],_0x11aa39[_0x5b1176(0x9b)]);}export function resolveLocalSqlFilePath(_0x42054b,_0x2d7aed,_0x5145b5){const _0x27d64a=a158_0xe706,_0x393033=_0x5145b5?.['path']||(_0x5145b5?.['sqlName']||_0x5145b5?.['dbName']?buildSqlRelativePath(_0x2d7aed,_0x5145b5?.[_0x27d64a(0x7b)],_0x5145b5?.[_0x27d64a(0x94)],_0x5145b5?.[_0x27d64a(0x7f)]||_0x27d64a(0x99),_0x5145b5?.['dbId']):buildDefaultSqlFileName(_0x2d7aed,_0x5145b5?.[_0x27d64a(0x7f)]||_0x27d64a(0x99)));return join(_0x42054b['sqlRootDir'],_0x393033);}export async function directoryExists(_0x37b5ca){const _0x4ab012=a158_0xe706;try{const _0x2114de=await stat(_0x37b5ca);return _0x2114de[_0x4ab012(0x83)]();}catch{return![];}}function a158_0xe706(_0x2e5319,_0x3eb079){_0x2e5319=_0x2e5319-0x7a;const _0x498932=a158_0x4989();let _0xe70668=_0x498932[_0x2e5319];return _0xe70668;}function parseSqlPath(_0x3bba62,_0x2da92e,_0x5da102){const _0x5ecf4e=a158_0xe706,_0x18da7b=_0x2da92e[_0x5ecf4e(0x86)](0x0,-_0x5da102[_0x5ecf4e(0x96)]);if(_0x3bba62[_0x5ecf4e(0x96)]<0x2)return null;const _0xb1c356=_0x18da7b[_0x5ecf4e(0x95)]('_');if(_0xb1c356<=0x0||_0xb1c356>=_0x18da7b[_0x5ecf4e(0x96)]-0x1)return null;const _0x3145b3=_0x18da7b[_0x5ecf4e(0x86)](0x0,_0xb1c356);if(!isLikelySqlCode(_0x3145b3))return null;return{'sqlCode':_0x3145b3,'sqlName':_0x18da7b['slice'](_0xb1c356+0x1)};}function isLikelySqlCode(_0x4c9da2){const _0xc431ff=a158_0xe706;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xc431ff(0x8c)](_0x4c9da2);}
@@ -1 +1 @@
1
- function a159_0x3069(_0x50eab5,_0x1ecbda){_0x50eab5=_0x50eab5-0xd0;const _0x2dd399=a159_0x2dd3();let _0x306902=_0x2dd399[_0x50eab5];return _0x306902;}function a159_0x2dd3(){const _0x6652a4=['18844FzIGmU','digest','2238273IGQapX','2791968TZFDbv','createHash','hex','347606cHGcNM','md5','4841586wGSblX','729882Jzilyv','utf8','375IbBkUi','2614087ftEkfv'];a159_0x2dd3=function(){return _0x6652a4;};return a159_0x2dd3();}(function(_0x3cad93,_0x5389db){const _0x412acc=a159_0x3069,_0x3cd877=_0x3cad93();while(!![]){try{const _0x553930=-parseInt(_0x412acc(0xd1))/0x1+-parseInt(_0x412acc(0xd4))/0x2+-parseInt(_0x412acc(0xda))/0x3+-parseInt(_0x412acc(0xd8))/0x4*(-parseInt(_0x412acc(0xd6))/0x5)+parseInt(_0x412acc(0xd3))/0x6+parseInt(_0x412acc(0xd7))/0x7+parseInt(_0x412acc(0xdb))/0x8;if(_0x553930===_0x5389db)break;else _0x3cd877['push'](_0x3cd877['shift']());}catch(_0x81e5d4){_0x3cd877['push'](_0x3cd877['shift']());}}}(a159_0x2dd3,0x67877));import{readFile}from'node:fs/promises';import a159_0x35e8b8 from'node:crypto';export function computeSqlContentHash(_0x150411){const _0x1078e6=a159_0x3069;return a159_0x35e8b8[_0x1078e6(0xdc)](_0x1078e6(0xd2))['update'](_0x150411)[_0x1078e6(0xd9)](_0x1078e6(0xd0));}export async function computeSqlFileHash(_0x255115){const _0x45a72e=a159_0x3069,_0x595db1=await readFile(_0x255115,_0x45a72e(0xd5));return computeSqlContentHash(_0x595db1);}
1
+ (function(_0x2073bd,_0xb407a){const _0x98451b=a159_0x1bf0,_0x31401c=_0x2073bd();while(!![]){try{const _0x3a9172=-parseInt(_0x98451b(0x1d7))/0x1+parseInt(_0x98451b(0x1da))/0x2*(parseInt(_0x98451b(0x1d2))/0x3)+parseInt(_0x98451b(0x1de))/0x4*(-parseInt(_0x98451b(0x1d5))/0x5)+-parseInt(_0x98451b(0x1d1))/0x6+parseInt(_0x98451b(0x1db))/0x7*(parseInt(_0x98451b(0x1e0))/0x8)+-parseInt(_0x98451b(0x1d4))/0x9+parseInt(_0x98451b(0x1d3))/0xa*(parseInt(_0x98451b(0x1d8))/0xb);if(_0x3a9172===_0xb407a)break;else _0x31401c['push'](_0x31401c['shift']());}catch(_0x1ff00a){_0x31401c['push'](_0x31401c['shift']());}}}(a159_0x36b5,0xe7858));function a159_0x1bf0(_0x1bd13a,_0x25e652){_0x1bd13a=_0x1bd13a-0x1d0;const _0x36b5ad=a159_0x36b5();let _0x1bf01f=_0x36b5ad[_0x1bd13a];return _0x1bf01f;}import{readFile}from'node:fs/promises';import a159_0x17482d from'node:crypto';function a159_0x36b5(){const _0x364c48=['129fMukTB','516070AJCFIM','7966008bpSrSw','162535NAUGdI','createHash','609155HAhkcR','517nrKirD','utf8','50778WziVZS','14tGzsmj','update','hex','4XiZVVt','digest','633112VndLUf','md5','7202688hsFKid'];a159_0x36b5=function(){return _0x364c48;};return a159_0x36b5();}export function computeSqlContentHash(_0x1a97f5){const _0x1dd63f=a159_0x1bf0;return a159_0x17482d[_0x1dd63f(0x1d6)](_0x1dd63f(0x1d0))[_0x1dd63f(0x1dc)](_0x1a97f5)[_0x1dd63f(0x1df)](_0x1dd63f(0x1dd));}export async function computeSqlFileHash(_0x20b6c2){const _0x1ce738=a159_0x1bf0,_0x5e1c62=await readFile(_0x20b6c2,_0x1ce738(0x1d9));return computeSqlContentHash(_0x5e1c62);}
@@ -1 +1 @@
1
- (function(_0x14869d,_0x4bfe95){const _0x3c4f03=a160_0x35fc,_0x1f53e8=_0x14869d();while(!![]){try{const _0x32f334=parseInt(_0x3c4f03(0x110))/0x1*(parseInt(_0x3c4f03(0x10f))/0x2)+-parseInt(_0x3c4f03(0x109))/0x3*(parseInt(_0x3c4f03(0x11e))/0x4)+parseInt(_0x3c4f03(0x11b))/0x5+parseInt(_0x3c4f03(0x111))/0x6*(parseInt(_0x3c4f03(0x11f))/0x7)+-parseInt(_0x3c4f03(0x112))/0x8*(parseInt(_0x3c4f03(0x113))/0x9)+parseInt(_0x3c4f03(0x119))/0xa*(-parseInt(_0x3c4f03(0x114))/0xb)+parseInt(_0x3c4f03(0x108))/0xc;if(_0x32f334===_0x4bfe95)break;else _0x1f53e8['push'](_0x1f53e8['shift']());}catch(_0x2d245f){_0x1f53e8['push'](_0x1f53e8['shift']());}}}(a160_0x3383,0x5853d));function a160_0x3383(){const _0x5deaec=['parse','8WHxdwE','5293RksLsu','750fGoOBP','6248xazINe','7497qHyDIh','8338MKZDhj','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','lastSync',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','460PjfJGQ','sqlRoot','3186100tYzkur','sqls','stringify','2088916IlfKiK','15260QkLlqQ','apps','utf8','7662804HXzCGu','3YZqcpH','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','ENOENT','\x22.\x20','code'];a160_0x3383=function(){return _0x5deaec;};return a160_0x3383();}function a160_0x35fc(_0x2362cf,_0x2aa938){_0x2362cf=_0x2362cf-0x108;const _0x3383c8=a160_0x3383();let _0x35fcec=_0x3383c8[_0x2362cf];return _0x35fcec;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1d3ed0,_0x3c092d,_0x47c6a4,_0x55feaa){const _0x3f75bb=a160_0x35fc,_0x52aed0=_0x1d3ed0??createEmptySqlLock();let _0x116281=_0x52aed0[_0x3f75bb(0x120)][_0x3c092d];if(!_0x116281)return _0x116281={'sqlRoot':_0x47c6a4,'lastSync':'','sqls':{}},_0x52aed0[_0x3f75bb(0x120)][_0x3c092d]=_0x116281,{'lockData':_0x52aed0,'appLock':_0x116281};if(!_0x116281[_0x3f75bb(0x11a)])_0x116281['sqlRoot']=_0x47c6a4;else{if(_0x116281[_0x3f75bb(0x11a)]!==_0x47c6a4)throw new Error(_0x55feaa+_0x3f75bb(0x117)+_0x47c6a4+_0x3f75bb(0x118)+_0x116281[_0x3f75bb(0x11a)]+_0x3f75bb(0x10c)+_0x3f75bb(0x115));}return!_0x116281[_0x3f75bb(0x11c)]&&(_0x116281['sqls']={}),!_0x116281[_0x3f75bb(0x116)]&&(_0x116281[_0x3f75bb(0x116)]=''),{'lockData':_0x52aed0,'appLock':_0x116281};}export async function readSqlLockFile(_0x4293b6){const _0x58d17c=a160_0x35fc;try{const _0x442797=await readFile(_0x4293b6,_0x58d17c(0x121));return JSON[_0x58d17c(0x10e)](_0x442797);}catch(_0x2cbdff){if(_0x2cbdff[_0x58d17c(0x10d)]===_0x58d17c(0x10b))return null;throw new Error(_0x58d17c(0x10a)+String(_0x2cbdff));}}export async function writeSqlLockFile(_0x5860bc,_0x43de4b){const _0x1d8a6b=a160_0x35fc;await mkdir(dirname(_0x5860bc),{'recursive':!![]}),await writeFile(_0x5860bc,JSON[_0x1d8a6b(0x11d)](_0x43de4b,null,0x2),_0x1d8a6b(0x121));}
1
+ (function(_0x1197be,_0x1878d1){const _0x1549a0=a160_0x110a,_0x48b1fa=_0x1197be();while(!![]){try{const _0x4f607e=parseInt(_0x1549a0(0x127))/0x1+parseInt(_0x1549a0(0x12d))/0x2+parseInt(_0x1549a0(0x12a))/0x3*(-parseInt(_0x1549a0(0x131))/0x4)+parseInt(_0x1549a0(0x12c))/0x5*(-parseInt(_0x1549a0(0x135))/0x6)+parseInt(_0x1549a0(0x120))/0x7+-parseInt(_0x1549a0(0x132))/0x8*(-parseInt(_0x1549a0(0x125))/0x9)+parseInt(_0x1549a0(0x128))/0xa;if(_0x4f607e===_0x1878d1)break;else _0x48b1fa['push'](_0x48b1fa['shift']());}catch(_0x219346){_0x48b1fa['push'](_0x48b1fa['shift']());}}}(a160_0x1b14,0xf015a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a160_0x110a(_0xc8d6a5,_0x429c7e){_0xc8d6a5=_0xc8d6a5-0x120;const _0x1b147c=a160_0x1b14();let _0x110ae2=_0x1b147c[_0xc8d6a5];return _0x110ae2;}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x5c9b73,_0x27f63b,_0x545ed7,_0x5ac068){const _0x4f3354=a160_0x110a,_0x4dc97c=_0x5c9b73??createEmptySqlLock();let _0x3c1c85=_0x4dc97c[_0x4f3354(0x133)][_0x27f63b];if(!_0x3c1c85)return _0x3c1c85={'sqlRoot':_0x545ed7,'lastSync':'','sqls':{}},_0x4dc97c[_0x4f3354(0x133)][_0x27f63b]=_0x3c1c85,{'lockData':_0x4dc97c,'appLock':_0x3c1c85};if(!_0x3c1c85[_0x4f3354(0x124)])_0x3c1c85['sqlRoot']=_0x545ed7;else{if(_0x3c1c85[_0x4f3354(0x124)]!==_0x545ed7)throw new Error(_0x5ac068+_0x4f3354(0x123)+_0x545ed7+_0x4f3354(0x12b)+_0x3c1c85['sqlRoot']+_0x4f3354(0x129)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x3c1c85[_0x4f3354(0x126)]&&(_0x3c1c85[_0x4f3354(0x126)]={}),!_0x3c1c85[_0x4f3354(0x12f)]&&(_0x3c1c85[_0x4f3354(0x12f)]=''),{'lockData':_0x4dc97c,'appLock':_0x3c1c85};}function a160_0x1b14(){const _0x5be25b=['sqlRoot','66996VxJUVM','sqls','1899263RtrJWm','6300420LtDXOY','\x22.\x20','294909kggJlI','\x22\x20vs\x20lock\x20\x22','10AVUHlW','767100ndZltQ','code','lastSync','stringify','40KyJDpO','288OraRBn','apps','parse','5517786ZKyHNG','4373873oZQsLq','utf8','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'];a160_0x1b14=function(){return _0x5be25b;};return a160_0x1b14();}export async function readSqlLockFile(_0x23a658){const _0x458d25=a160_0x110a;try{const _0x22cec8=await readFile(_0x23a658,_0x458d25(0x121));return JSON[_0x458d25(0x134)](_0x22cec8);}catch(_0x1796f6){if(_0x1796f6[_0x458d25(0x12e)]==='ENOENT')return null;throw new Error(_0x458d25(0x122)+String(_0x1796f6));}}export async function writeSqlLockFile(_0x369ffd,_0x43d834){const _0x55b736=a160_0x110a;await mkdir(dirname(_0x369ffd),{'recursive':!![]}),await writeFile(_0x369ffd,JSON[_0x55b736(0x130)](_0x43d834,null,0x2),_0x55b736(0x121));}
@@ -1 +1 @@
1
- (function(_0x571ab0,_0x441c71){const _0x180400=a162_0x113f,_0x22dd0d=_0x571ab0();while(!![]){try{const _0x24ba25=-parseInt(_0x180400(0xd9))/0x1*(-parseInt(_0x180400(0xe0))/0x2)+parseInt(_0x180400(0xdb))/0x3+-parseInt(_0x180400(0xe5))/0x4+-parseInt(_0x180400(0xe2))/0x5+-parseInt(_0x180400(0xe4))/0x6+-parseInt(_0x180400(0xda))/0x7+parseInt(_0x180400(0xe6))/0x8;if(_0x24ba25===_0x441c71)break;else _0x22dd0d['push'](_0x22dd0d['shift']());}catch(_0x51ce5b){_0x22dd0d['push'](_0x22dd0d['shift']());}}}(a162_0x2432,0x8262f));export function detectSqlMode(_0x16aaa4){const _0x19c7cd=a162_0x113f,_0x189902=_0x16aaa4[_0x19c7cd(0xde)]();if(/^<(select|insert|update|delete)\b/i[_0x19c7cd(0xe3)](_0x189902))return _0x19c7cd(0xdc);return'sql';}export function getSqlFileExtension(_0x3fe10f){const _0x245d62=a162_0x113f;return _0x3fe10f===_0x245d62(0xdc)?'.xml':'.sql';}export function buildDefaultSqlFileName(_0x489006,_0x2c9037){return''+_0x489006+getSqlFileExtension(_0x2c9037);}export function sanitizeSqlPathSegment(_0x16ca99,_0x134d92){const _0x4b0db0=a162_0x113f,_0xb88cf9=String(_0x16ca99??'')['trim'](),_0x2d5d00=_0xb88cf9['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x4b0db0(0xe1)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')[_0x4b0db0(0xe1)](/\.+$/,'')[_0x4b0db0(0xe1)](/^-+/,'')[_0x4b0db0(0xe1)](/-+$/,'');return _0x2d5d00||_0x134d92;}function a162_0x113f(_0x25487e,_0x4e76cc){_0x25487e=_0x25487e-0xd9;const _0x24324c=a162_0x2432();let _0x113fe5=_0x24324c[_0x25487e];return _0x113fe5;}function a162_0x2432(){const _0x40c5b6=['mybatisXml','unknown-sql','trimStart','unknown-db','1146SqFXBC','replace','3436200gyNUeG','test','1493388UuulJM','473784uRssio','4795896HhFLQv','1793PXXLas','4547473EqdqDi','1834230qEsZxP'];a162_0x2432=function(){return _0x40c5b6;};return a162_0x2432();}export function buildDbDirectoryName(_0x1a5da3,_0x31eb9a){const _0x15f7f4=a162_0x113f;return sanitizeSqlPathSegment(_0x1a5da3,_0x31eb9a!=null?'db-'+_0x31eb9a:_0x15f7f4(0xdf));}export function buildSqlRelativePath(_0x50a7b8,_0x565935,_0x280d9c,_0x26c1fe,_0x41e758){const _0x21c090=a162_0x113f,_0x6de264=buildDbDirectoryName(_0x280d9c,_0x41e758),_0x2468e7=sanitizeSqlPathSegment(_0x50a7b8,_0x21c090(0xdd)),_0xac7241=sanitizeSqlPathSegment(_0x565935,_0x2468e7);return _0x6de264+'/'+_0x2468e7+'_'+_0xac7241+getSqlFileExtension(_0x26c1fe);}
1
+ (function(_0x45571c,_0x10b9f8){const _0x3885c5=a162_0x3d8a,_0x55d5eb=_0x45571c();while(!![]){try{const _0x2e39ba=parseInt(_0x3885c5(0x1b1))/0x1*(parseInt(_0x3885c5(0x1b0))/0x2)+-parseInt(_0x3885c5(0x1aa))/0x3+-parseInt(_0x3885c5(0x1ac))/0x4+-parseInt(_0x3885c5(0x1ad))/0x5*(parseInt(_0x3885c5(0x1a1))/0x6)+parseInt(_0x3885c5(0x1a6))/0x7+parseInt(_0x3885c5(0x1a7))/0x8+parseInt(_0x3885c5(0x1ab))/0x9;if(_0x2e39ba===_0x10b9f8)break;else _0x55d5eb['push'](_0x55d5eb['shift']());}catch(_0xd4c7ff){_0x55d5eb['push'](_0x55d5eb['shift']());}}}(a162_0x54b8,0x9bde2));export function detectSqlMode(_0x414732){const _0x2c601a=a162_0x3d8a,_0x33d55b=_0x414732[_0x2c601a(0x1ae)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x33d55b))return _0x2c601a(0x1a0);return _0x2c601a(0x1af);}export function getSqlFileExtension(_0x350fa9){const _0x16fbb0=a162_0x3d8a;return _0x350fa9===_0x16fbb0(0x1a0)?_0x16fbb0(0x1a8):_0x16fbb0(0x1a9);}function a162_0x3d8a(_0x219823,_0x4dca52){_0x219823=_0x219823-0x1a0;const _0x54b889=a162_0x54b8();let _0x3d8ae0=_0x54b889[_0x219823];return _0x3d8ae0;}export function buildDefaultSqlFileName(_0x2247b0,_0x29210b){return''+_0x2247b0+getSqlFileExtension(_0x29210b);}function a162_0x54b8(){const _0x158bb3=['1MGjFca','mybatisXml','6vqdADV','unknown-sql','db-','trim','replace','3457811iJaYkK','10129600xYgQwZ','.xml','.sql','3104352rovVJr','8617176CooJdc','4116416lFlWfa','1679285FGkYsF','trimStart','sql','641084NWHnUM'];a162_0x54b8=function(){return _0x158bb3;};return a162_0x54b8();}export function sanitizeSqlPathSegment(_0x5e5efe,_0x33f78d){const _0x1d641a=a162_0x3d8a,_0x27f3d2=String(_0x5e5efe??'')[_0x1d641a(0x1a4)](),_0x3754f7=_0x27f3d2[_0x1d641a(0x1a5)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1d641a(0x1a5)](/\s+/g,'-')[_0x1d641a(0x1a5)](/-+/g,'-')[_0x1d641a(0x1a5)](/^\.+/,'')[_0x1d641a(0x1a5)](/\.+$/,'')[_0x1d641a(0x1a5)](/^-+/,'')[_0x1d641a(0x1a5)](/-+$/,'');return _0x3754f7||_0x33f78d;}export function buildDbDirectoryName(_0x47834b,_0x36fa45){const _0x54ec86=a162_0x3d8a;return sanitizeSqlPathSegment(_0x47834b,_0x36fa45!=null?_0x54ec86(0x1a3)+_0x36fa45:'unknown-db');}export function buildSqlRelativePath(_0x43d53e,_0x48fe3a,_0x4e181c,_0x130652,_0x1c4f33){const _0x401ee3=a162_0x3d8a,_0x4c7a14=buildDbDirectoryName(_0x4e181c,_0x1c4f33),_0x251d43=sanitizeSqlPathSegment(_0x43d53e,_0x401ee3(0x1a2)),_0x1bedb2=sanitizeSqlPathSegment(_0x48fe3a,_0x251d43);return _0x4c7a14+'/'+_0x251d43+'_'+_0x1bedb2+getSqlFileExtension(_0x130652);}
@@ -1 +1 @@
1
- (function(_0x40c825,_0x19057c){const _0x247f58=a163_0x1bff,_0xc8e537=_0x40c825();while(!![]){try{const _0x18fe99=parseInt(_0x247f58(0xcd))/0x1*(-parseInt(_0x247f58(0xe1))/0x2)+-parseInt(_0x247f58(0xd8))/0x3*(-parseInt(_0x247f58(0xeb))/0x4)+parseInt(_0x247f58(0xed))/0x5*(parseInt(_0x247f58(0xee))/0x6)+-parseInt(_0x247f58(0xd4))/0x7+-parseInt(_0x247f58(0xdd))/0x8*(-parseInt(_0x247f58(0xdc))/0x9)+parseInt(_0x247f58(0xd1))/0xa+parseInt(_0x247f58(0xce))/0xb*(-parseInt(_0x247f58(0xd0))/0xc);if(_0x18fe99===_0x19057c)break;else _0xc8e537['push'](_0xc8e537['shift']());}catch(_0x517c99){_0xc8e537['push'](_0xc8e537['shift']());}}}(a163_0x1ec8,0x409d9));export function detectSqlType(_0x247bb4){const _0x3ffe8c=a163_0x1bff;if(!_0x247bb4?.[_0x3ffe8c(0xd6)]())return{'type':_0x3ffe8c(0xe6),'isSelectOnly':![],'isDangerous':![],'reason':_0x3ffe8c(0xe0)};const _0x127bd5=_0x247bb4[_0x3ffe8c(0xda)](/#\{[^}]*\}/g,'?')[_0x3ffe8c(0xda)](/\$\{[^}]*\}/g,'?')[_0x3ffe8c(0xda)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x3ffe8c(0xd6)](),_0x3fed31=_0x127bd5['split']('\x0a');let _0x3ec230='';for(const _0x5b33b6 of _0x3fed31){const _0x25eb39=_0x5b33b6['trim']();if(!_0x25eb39||_0x25eb39[_0x3ffe8c(0xcf)]('--')||_0x25eb39['startsWith']('/*'))continue;_0x3ec230=_0x25eb39;break;}const _0x30b55b=_0x3ec230[_0x3ffe8c(0xe3)]();if(_0x30b55b['startsWith']('SELECT')||_0x30b55b[_0x3ffe8c(0xcf)](_0x3ffe8c(0xd3))){const _0x33811f=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3ffe8c(0xdb)](_0x127bd5);return{'type':_0x3ffe8c(0xd7),'isSelectOnly':!_0x33811f,'isDangerous':_0x33811f,'reason':_0x33811f?_0x3ffe8c(0xc8):undefined};}if(_0x30b55b[_0x3ffe8c(0xcf)](_0x3ffe8c(0xd2)))return{'type':_0x3ffe8c(0xd2),'isSelectOnly':![],'isDangerous':![]};if(_0x30b55b[_0x3ffe8c(0xcf)](_0x3ffe8c(0xe2)))return{'type':_0x3ffe8c(0xe2),'isSelectOnly':![],'isDangerous':![]};if(_0x30b55b[_0x3ffe8c(0xcf)](_0x3ffe8c(0xe9)))return{'type':_0x3ffe8c(0xe9),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3ffe8c(0xc7)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x30b55b))return{'type':_0x3ffe8c(0xd5),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x3ffe8c(0xe6),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x453659){const _0x181d47=a163_0x1bff,_0x1f74fa=_0x453659['replace'](/#\{[^}]*\}/g,'?')[_0x181d47(0xda)](/\$\{[^}]*\}/g,'?')[_0x181d47(0xda)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x496cab=[],_0x5467d5=_0x1f74fa[_0x181d47(0xe5)](/FROM\s+([^\s,)(]+)/i);if(_0x5467d5?.[0x1])_0x496cab[_0x181d47(0xea)](_0x5467d5[0x1][_0x181d47(0xda)](/[`"]/g,''));for(const _0x3a4bdd of _0x1f74fa[_0x181d47(0xcc)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x29b67c=_0x3a4bdd[0x1]?.[_0x181d47(0xda)](/[`"]/g,'');if(_0x29b67c&&!_0x496cab['includes'](_0x29b67c))_0x496cab[_0x181d47(0xea)](_0x29b67c);}const _0x30cdc7=_0x1f74fa[_0x181d47(0xe5)](/INTO\s+([^\s(]+)/i);if(_0x30cdc7?.[0x1]){const _0x53d51c=_0x30cdc7[0x1][_0x181d47(0xda)](/[`"]/g,'');if(!_0x496cab[_0x181d47(0xe7)](_0x53d51c))_0x496cab[_0x181d47(0xea)](_0x53d51c);}const _0x738bef=_0x1f74fa[_0x181d47(0xe5)](/UPDATE\s+([^\s,)(]+)/i);if(_0x738bef?.[0x1]){const _0xd0daad=_0x738bef[0x1][_0x181d47(0xda)](/[`"]/g,'');if(!_0x496cab[_0x181d47(0xe7)](_0xd0daad))_0x496cab[_0x181d47(0xea)](_0xd0daad);}return _0x496cab;}function extractParameters(_0x1d640b){const _0x9f7997=a163_0x1bff,_0x2d3242=new Set();for(const _0x54f16c of _0x1d640b['matchAll'](/#\{(\w+)\}/g))if(_0x54f16c[0x1])_0x2d3242[_0x9f7997(0xc6)](_0x54f16c[0x1]);for(const _0x3f9014 of _0x1d640b[_0x9f7997(0xcc)](/\$\{(\w+)\}/g))if(_0x3f9014[0x1])_0x2d3242[_0x9f7997(0xc6)](_0x3f9014[0x1]);return Array[_0x9f7997(0xc9)](_0x2d3242);}function a163_0x1bff(_0x438058,_0x1da48c){_0x438058=_0x438058-0xc6;const _0x1ec829=a163_0x1ec8();let _0x1bffb3=_0x1ec829[_0x438058];return _0x1bffb3;}function a163_0x1ec8(){const _0x18f371=['\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','match','UNKNOWN','includes','join','DELETE','push','4FZfeIs','\x20query\x20targeting\x20','2055Rzmiyd','6918GygEYg','add','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','from','length','unknown\x20table(s)','matchAll','14LINFFY','87439ueNeHr','startsWith','300UdsPFj','827790bLYYcr','INSERT','WITH','3523961VhzUhV','DDL','trim','SELECT','359289SKrGUO','reason','replace','test','197874tahZno','168soMtDF','type','isDangerous','SQL\x20content\x20is\x20empty','24474FKDInn','UPDATE','toUpperCase'];a163_0x1ec8=function(){return _0x18f371;};return a163_0x1ec8();}export function validateSql(_0x1e86ad){const _0x54e13e=a163_0x1bff,_0x31cb02=detectSqlType(_0x1e86ad),_0x5eb7d2=extractTables(_0x1e86ad),_0x406d09=extractParameters(_0x1e86ad);if(_0x31cb02[_0x54e13e(0xdf)])return{'valid':![],'sqlType':_0x31cb02,'tables':_0x5eb7d2,'parameters':_0x406d09,'message':_0x31cb02[_0x54e13e(0xd9)]||_0x31cb02[_0x54e13e(0xde)]+_0x54e13e(0xe4)};if(_0x31cb02[_0x54e13e(0xde)]===_0x54e13e(0xe6))return{'valid':![],'sqlType':_0x31cb02,'tables':_0x5eb7d2,'parameters':_0x406d09,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x31cb02,'tables':_0x5eb7d2,'parameters':_0x406d09,'message':_0x31cb02[_0x54e13e(0xde)]+_0x54e13e(0xec)+(_0x5eb7d2[_0x54e13e(0xca)]?_0x5eb7d2['join'](',\x20'):_0x54e13e(0xcb))+(_0x406d09[_0x54e13e(0xca)]?'\x20with\x20parameters:\x20'+_0x406d09[_0x54e13e(0xe8)](',\x20'):'')};}
1
+ function a163_0x1732(_0x495a34,_0x49e8b1){_0x495a34=_0x495a34-0x181;const _0x41e808=a163_0x41e8();let _0x17327c=_0x41e808[_0x495a34];return _0x17327c;}(function(_0x286f07,_0x4bcd74){const _0x55c9db=a163_0x1732,_0x2c3945=_0x286f07();while(!![]){try{const _0x23b08a=-parseInt(_0x55c9db(0x1a9))/0x1+parseInt(_0x55c9db(0x197))/0x2+-parseInt(_0x55c9db(0x191))/0x3+-parseInt(_0x55c9db(0x18e))/0x4*(parseInt(_0x55c9db(0x1a8))/0x5)+-parseInt(_0x55c9db(0x190))/0x6+parseInt(_0x55c9db(0x195))/0x7+parseInt(_0x55c9db(0x187))/0x8;if(_0x23b08a===_0x4bcd74)break;else _0x2c3945['push'](_0x2c3945['shift']());}catch(_0x2035be){_0x2c3945['push'](_0x2c3945['shift']());}}}(a163_0x41e8,0x667d3));export function detectSqlType(_0x3c7cbf){const _0x41415c=a163_0x1732;if(!_0x3c7cbf?.[_0x41415c(0x19c)]())return{'type':_0x41415c(0x1a3),'isSelectOnly':![],'isDangerous':![],'reason':_0x41415c(0x18c)};const _0x35bb56=_0x3c7cbf['replace'](/#\{[^}]*\}/g,'?')[_0x41415c(0x198)](/\$\{[^}]*\}/g,'?')[_0x41415c(0x198)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x41415c(0x198)](/\/\*[\s\S]*?\*\//g,'')[_0x41415c(0x19c)](),_0x37b1b9=_0x35bb56[_0x41415c(0x194)]('\x0a');let _0xee1213='';for(const _0x12d067 of _0x37b1b9){const _0x222f0b=_0x12d067[_0x41415c(0x19c)]();if(!_0x222f0b||_0x222f0b['startsWith']('--')||_0x222f0b[_0x41415c(0x1a4)]('/*'))continue;_0xee1213=_0x222f0b;break;}const _0xd82b25=_0xee1213[_0x41415c(0x18d)]();if(_0xd82b25[_0x41415c(0x1a4)]('SELECT')||_0xd82b25[_0x41415c(0x1a4)](_0x41415c(0x1a6))){const _0xd21a7=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x41415c(0x18f)](_0x35bb56);return{'type':_0x41415c(0x19f),'isSelectOnly':!_0xd21a7,'isDangerous':_0xd21a7,'reason':_0xd21a7?_0x41415c(0x199):undefined};}if(_0xd82b25['startsWith']('INSERT'))return{'type':_0x41415c(0x184),'isSelectOnly':![],'isDangerous':![]};if(_0xd82b25['startsWith'](_0x41415c(0x196)))return{'type':_0x41415c(0x196),'isSelectOnly':![],'isDangerous':![]};if(_0xd82b25['startsWith'](_0x41415c(0x192)))return{'type':_0x41415c(0x192),'isSelectOnly':![],'isDangerous':!![],'reason':_0x41415c(0x193)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0xd82b25))return{'type':_0x41415c(0x188),'isSelectOnly':![],'isDangerous':!![],'reason':_0x41415c(0x19b)};return{'type':_0x41415c(0x1a3),'isSelectOnly':![],'isDangerous':![]};}function a163_0x41e8(){const _0x58c4bb=['455mqXAgJ','556211UWQydI','includes','\x20with\x20parameters:\x20','from','INSERT','match','unknown\x20table(s)','747992arcZGg','DDL','join','reason','isDangerous','SQL\x20content\x20is\x20empty','toUpperCase','460IHAbVY','test','293394fghkxd','593532UOivsK','DELETE','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','split','5018685cxZPLx','UPDATE','845520nNYeRH','replace','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','add','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','trim','type','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','SELECT','\x20query\x20targeting\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','matchAll','UNKNOWN','startsWith','push','WITH','length'];a163_0x41e8=function(){return _0x58c4bb;};return a163_0x41e8();}function extractTables(_0x183ab1){const _0x33ba20=a163_0x1732,_0x4e9d48=_0x183ab1[_0x33ba20(0x198)](/#\{[^}]*\}/g,'?')[_0x33ba20(0x198)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x33ba20(0x198)](/\/\*[\s\S]*?\*\//g,''),_0x1f5340=[],_0x44da64=_0x4e9d48[_0x33ba20(0x185)](/FROM\s+([^\s,)(]+)/i);if(_0x44da64?.[0x1])_0x1f5340[_0x33ba20(0x1a5)](_0x44da64[0x1][_0x33ba20(0x198)](/[`"]/g,''));for(const _0xa4bbe6 of _0x4e9d48[_0x33ba20(0x1a2)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1f5d2c=_0xa4bbe6[0x1]?.['replace'](/[`"]/g,'');if(_0x1f5d2c&&!_0x1f5340[_0x33ba20(0x181)](_0x1f5d2c))_0x1f5340[_0x33ba20(0x1a5)](_0x1f5d2c);}const _0x620596=_0x4e9d48[_0x33ba20(0x185)](/INTO\s+([^\s(]+)/i);if(_0x620596?.[0x1]){const _0x16c3bd=_0x620596[0x1][_0x33ba20(0x198)](/[`"]/g,'');if(!_0x1f5340[_0x33ba20(0x181)](_0x16c3bd))_0x1f5340[_0x33ba20(0x1a5)](_0x16c3bd);}const _0x38bcf9=_0x4e9d48[_0x33ba20(0x185)](/UPDATE\s+([^\s,)(]+)/i);if(_0x38bcf9?.[0x1]){const _0x3f60b4=_0x38bcf9[0x1][_0x33ba20(0x198)](/[`"]/g,'');if(!_0x1f5340[_0x33ba20(0x181)](_0x3f60b4))_0x1f5340[_0x33ba20(0x1a5)](_0x3f60b4);}return _0x1f5340;}function extractParameters(_0x1cc7fc){const _0x755e15=a163_0x1732,_0x56169a=new Set();for(const _0x26f7d1 of _0x1cc7fc[_0x755e15(0x1a2)](/#\{(\w+)\}/g))if(_0x26f7d1[0x1])_0x56169a[_0x755e15(0x19a)](_0x26f7d1[0x1]);for(const _0x5ebab1 of _0x1cc7fc[_0x755e15(0x1a2)](/\$\{(\w+)\}/g))if(_0x5ebab1[0x1])_0x56169a['add'](_0x5ebab1[0x1]);return Array[_0x755e15(0x183)](_0x56169a);}export function validateSql(_0x2b2ef1){const _0x31f151=a163_0x1732,_0x5a8ffe=detectSqlType(_0x2b2ef1),_0x264338=extractTables(_0x2b2ef1),_0x528f98=extractParameters(_0x2b2ef1);if(_0x5a8ffe[_0x31f151(0x18b)])return{'valid':![],'sqlType':_0x5a8ffe,'tables':_0x264338,'parameters':_0x528f98,'message':_0x5a8ffe[_0x31f151(0x18a)]||_0x5a8ffe[_0x31f151(0x19d)]+_0x31f151(0x19e)};if(_0x5a8ffe[_0x31f151(0x19d)]==='UNKNOWN')return{'valid':![],'sqlType':_0x5a8ffe,'tables':_0x264338,'parameters':_0x528f98,'message':_0x31f151(0x1a1)};return{'valid':!![],'sqlType':_0x5a8ffe,'tables':_0x264338,'parameters':_0x528f98,'message':_0x5a8ffe[_0x31f151(0x19d)]+_0x31f151(0x1a0)+(_0x264338[_0x31f151(0x1a7)]?_0x264338[_0x31f151(0x189)](',\x20'):_0x31f151(0x186))+(_0x528f98[_0x31f151(0x1a7)]?_0x31f151(0x182)+_0x528f98[_0x31f151(0x189)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a164_0x5223(){const _0x122fed=['44hoJTrE','1709246BsCkxb','30Gstwxn','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1831023AegzmD','16QBUnpT','1168890wzNPPh','80706AHNwmE','\x20auth`\x20to\x20login\x20first.','68138BgZzML','1734867ItchLK','11NzetLQ','Tip:\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x0a\x20\x20\x20\x20\x20\x20\x20','join','1458680VMzZTW'];a164_0x5223=function(){return _0x122fed;};return a164_0x5223();}const a164_0x537dcb=a164_0x3afb;(function(_0x4a5164,_0x54b6ec){const _0x41add4=a164_0x3afb,_0x1d8273=_0x4a5164();while(!![]){try{const _0x5bd26b=parseInt(_0x41add4(0x7b))/0x1*(parseInt(_0x41add4(0x8b))/0x2)+-parseInt(_0x41add4(0x7a))/0x3+-parseInt(_0x41add4(0x80))/0x4+parseInt(_0x41add4(0x83))/0x5*(parseInt(_0x41add4(0x89))/0x6)+parseInt(_0x41add4(0x82))/0x7+parseInt(_0x41add4(0x87))/0x8*(parseInt(_0x41add4(0x86))/0x9)+parseInt(_0x41add4(0x88))/0xa*(parseInt(_0x41add4(0x81))/0xb);if(_0x5bd26b===_0x54b6ec)break;else _0x1d8273['push'](_0x1d8273['shift']());}catch(_0x3cc4eb){_0x1d8273['push'](_0x1d8273['shift']());}}}(a164_0x5223,0x9a15e));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a164_0x3afb(_0x2fcddb,_0x5806fd){_0x2fcddb=_0x2fcddb-0x7a;const _0x5223d4=a164_0x5223();let _0x3afbda=_0x5223d4[_0x2fcddb];return _0x3afbda;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a164_0x537dcb(0x8a),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a164_0x537dcb(0x7d),a164_0x537dcb(0x7c)+CLI_BIN_NAME+a164_0x537dcb(0x85)][a164_0x537dcb(0x7f)](a164_0x537dcb(0x7e)),'notInProjectHint':a164_0x537dcb(0x84)});
1
+ function a164_0x58e5(){const _0xf88668=['31698EXsNPD','65aEubVv','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','2XzJvyA','join','242244aCzsfN','45dWTTDE','11ctgEoz','30702txwrTP','\x0a\x20\x20\x20\x20\x20\x20\x20','2191YScBLJ','206497yWSjqF','3070416PNfcAA','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','Set\x20appcode\x20via\x20`','2335143xBbrKe','Tip:\x20`','13788570IlKPMn','1608TxifKm'];a164_0x58e5=function(){return _0xf88668;};return a164_0x58e5();}const a164_0x1bc110=a164_0x562c;(function(_0x6343dd,_0x13c5c2){const _0x41421b=a164_0x562c,_0x458c20=_0x6343dd();while(!![]){try{const _0x41da9f=-parseInt(_0x41421b(0x90))/0x1*(parseInt(_0x41421b(0x88))/0x2)+parseInt(_0x41421b(0x81))/0x3+parseInt(_0x41421b(0x8a))/0x4*(-parseInt(_0x41421b(0x8b))/0x5)+-parseInt(_0x41421b(0x8d))/0x6*(-parseInt(_0x41421b(0x8f))/0x7)+-parseInt(_0x41421b(0x84))/0x8*(parseInt(_0x41421b(0x85))/0x9)+parseInt(_0x41421b(0x83))/0xa*(-parseInt(_0x41421b(0x8c))/0xb)+parseInt(_0x41421b(0x91))/0xc*(parseInt(_0x41421b(0x86))/0xd);if(_0x41da9f===_0x13c5c2)break;else _0x458c20['push'](_0x458c20['shift']());}catch(_0x469e06){_0x458c20['push'](_0x458c20['shift']());}}}(a164_0x58e5,0xc8719));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a164_0x562c(_0x212ea0,_0x4e1fb1){_0x212ea0=_0x212ea0-0x81;const _0x58e523=a164_0x58e5();let _0x562c16=_0x58e523[_0x212ea0];return _0x562c16;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a164_0x1bc110(0x93)+CLI_BIN_NAME+a164_0x1bc110(0x87),a164_0x1bc110(0x82)+CLI_BIN_NAME+a164_0x1bc110(0x92)][a164_0x1bc110(0x89)](a164_0x1bc110(0x8e)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- function a165_0x4dfb(_0x588e95,_0x337dcf){_0x588e95=_0x588e95-0xa6;var _0x2ad760=a165_0x2ad7();var _0x4dfb30=_0x2ad760[_0x588e95];return _0x4dfb30;}function a165_0x2ad7(){var _0x2191f2=['147713JazNZV','627648gqKGUj','560492MQEjzs','3tvCIKb','1279936cxoqld','469370wlNCLz','874938mbLQRm','249992Lfinlp'];a165_0x2ad7=function(){return _0x2191f2;};return a165_0x2ad7();}(function(_0x5521a7,_0xc347e3){var _0x5ad08f=a165_0x4dfb,_0x6e76a6=_0x5521a7();while(!![]){try{var _0x3da956=parseInt(_0x5ad08f(0xad))/0x1+parseInt(_0x5ad08f(0xac))/0x2+parseInt(_0x5ad08f(0xa8))/0x3*(parseInt(_0x5ad08f(0xa7))/0x4)+-parseInt(_0x5ad08f(0xaa))/0x5+-parseInt(_0x5ad08f(0xab))/0x6+parseInt(_0x5ad08f(0xa6))/0x7+-parseInt(_0x5ad08f(0xa9))/0x8;if(_0x3da956===_0xc347e3)break;else _0x6e76a6['push'](_0x6e76a6['shift']());}catch(_0x24186b){_0x6e76a6['push'](_0x6e76a6['shift']());}}}(a165_0x2ad7,0x19197));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x1e6d5b}from'@lovrabet/cli-framework';export function buildAllFlags(_0x1b4041){return a165_0x1e6d5b(_0x1b4041,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0xad621b,_0x156280){var _0x18b9be=a165_0x5233,_0x301cda=_0xad621b();while(!![]){try{var _0x50f1be=-parseInt(_0x18b9be(0x1a9))/0x1*(-parseInt(_0x18b9be(0x1a4))/0x2)+-parseInt(_0x18b9be(0x1a5))/0x3+parseInt(_0x18b9be(0x1aa))/0x4+parseInt(_0x18b9be(0x1a6))/0x5*(-parseInt(_0x18b9be(0x1ab))/0x6)+parseInt(_0x18b9be(0x1ac))/0x7+parseInt(_0x18b9be(0x1a8))/0x8+-parseInt(_0x18b9be(0x1a3))/0x9*(-parseInt(_0x18b9be(0x1a7))/0xa);if(_0x50f1be===_0x156280)break;else _0x301cda['push'](_0x301cda['shift']());}catch(_0x982ea2){_0x301cda['push'](_0x301cda['shift']());}}}(a165_0xe515,0x394b2));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x1546fa}from'@lovrabet/cli-framework';export function buildAllFlags(_0x2c88d1){return a165_0x1546fa(_0x2c88d1,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a165_0x5233(_0x294497,_0x1d53d7){_0x294497=_0x294497-0x1a3;var _0xe5150b=a165_0xe515();var _0x523383=_0xe5150b[_0x294497];return _0x523383;}function a165_0xe515(){var _0x5ebea6=['318484eDUcpX','2568gDHsFe','2308453ccICFc','18EJMtmO','71090jnhgLa','1144605adkzmS','1740WJmPZm','973970WtaDzE','1003312ymORtY','1iwooWv'];a165_0xe515=function(){return _0x5ebea6;};return a165_0xe515();}
@@ -1 +1 @@
1
- const a166_0x38a090=a166_0x5472;(function(_0x187b83,_0x3590fb){const _0x1b210b=a166_0x5472,_0x43f02a=_0x187b83();while(!![]){try{const _0x46cd98=parseInt(_0x1b210b(0x66))/0x1*(parseInt(_0x1b210b(0x6a))/0x2)+parseInt(_0x1b210b(0x67))/0x3*(parseInt(_0x1b210b(0x69))/0x4)+-parseInt(_0x1b210b(0x70))/0x5+-parseInt(_0x1b210b(0x68))/0x6*(parseInt(_0x1b210b(0x6c))/0x7)+parseInt(_0x1b210b(0x6b))/0x8+-parseInt(_0x1b210b(0x71))/0x9*(-parseInt(_0x1b210b(0x6f))/0xa)+parseInt(_0x1b210b(0x6d))/0xb;if(_0x46cd98===_0x3590fb)break;else _0x43f02a['push'](_0x43f02a['shift']());}catch(_0x267a19){_0x43f02a['push'](_0x43f02a['shift']());}}}(a166_0x5924,0x6bda6));import{createFlagHelpers}from'@lovrabet/cli-framework';function a166_0x5924(){const _0x390fa9=['6282hONyBS','3SRhbJl','447591fDuZIu','6KeTMSC','12NEWJsa','300968LrIMtG','2401216XxDiuA','3631873dwuPmX','4022623EdQOoO','parseFlags','3680aHQaaK','4305735YnSQlw'];a166_0x5924=function(){return _0x390fa9;};return a166_0x5924();}function a166_0x5472(_0x5e3d77,_0x53ce44){_0x5e3d77=_0x5e3d77-0x66;const _0x59248b=a166_0x5924();let _0x547282=_0x59248b[_0x5e3d77];return _0x547282;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a166_0x38a090(0x6e)];export const validateFlags=helpers['validateFlags'];
1
+ const a166_0x20b930=a166_0x49ee;(function(_0x280cdc,_0x5372ec){const _0xa52926=a166_0x49ee,_0x4b1efe=_0x280cdc();while(!![]){try{const _0xc7919c=-parseInt(_0xa52926(0x10d))/0x1*(-parseInt(_0xa52926(0x110))/0x2)+parseInt(_0xa52926(0x111))/0x3+-parseInt(_0xa52926(0x10f))/0x4+parseInt(_0xa52926(0x10b))/0x5+parseInt(_0xa52926(0x108))/0x6+parseInt(_0xa52926(0x10e))/0x7*(parseInt(_0xa52926(0x10c))/0x8)+-parseInt(_0xa52926(0x10a))/0x9;if(_0xc7919c===_0x5372ec)break;else _0x4b1efe['push'](_0x4b1efe['shift']());}catch(_0x574d57){_0x4b1efe['push'](_0x4b1efe['shift']());}}}(a166_0x3d2c,0xb5a46));import{createFlagHelpers}from'@lovrabet/cli-framework';function a166_0x3d2c(){const _0x5b0e8c=['2UTstjn','1729317lYjyKV','validateFlags','8772474SqleND','parseFlags','32564655UgzkpG','6076830qUKzLW','16JqBWas','1442759OQqLry','3217732TMGNlC','5014776uYYkLN'];a166_0x3d2c=function(){return _0x5b0e8c;};return a166_0x3d2c();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a166_0x49ee(_0x3b838e,_0x37bcf7){_0x3b838e=_0x3b838e-0x107;const _0x3d2c16=a166_0x3d2c();let _0x49ee14=_0x3d2c16[_0x3b838e];return _0x49ee14;}export const parseFlags=helpers[a166_0x20b930(0x109)];export const validateFlags=helpers[a166_0x20b930(0x107)];
@@ -1 +1 @@
1
- const a167_0x21ca89=a167_0x483b;(function(_0x1fcc2d,_0x462ce8){const _0x5201a6=a167_0x483b,_0x7c55d0=_0x1fcc2d();while(!![]){try{const _0x51ce47=-parseInt(_0x5201a6(0x109))/0x1*(-parseInt(_0x5201a6(0x10c))/0x2)+-parseInt(_0x5201a6(0x10e))/0x3*(parseInt(_0x5201a6(0x108))/0x4)+parseInt(_0x5201a6(0x10d))/0x5+parseInt(_0x5201a6(0x10f))/0x6*(parseInt(_0x5201a6(0x10a))/0x7)+-parseInt(_0x5201a6(0x105))/0x8*(-parseInt(_0x5201a6(0x110))/0x9)+parseInt(_0x5201a6(0x112))/0xa+-parseInt(_0x5201a6(0x111))/0xb;if(_0x51ce47===_0x462ce8)break;else _0x7c55d0['push'](_0x7c55d0['shift']());}catch(_0x35b4b3){_0x7c55d0['push'](_0x7c55d0['shift']());}}}(a167_0x17cb,0x2f703));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':_0x52de4e=>serviceGroups[a167_0x21ca89(0x107)](_0x52de4e),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a167_0x21ca89(0x104)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x391b92){const _0x889707=a167_0x21ca89;return generators[_0x889707(0x106)](_0x391b92);}function a167_0x483b(_0x5aa26c,_0x188ebf){_0x5aa26c=_0x5aa26c-0x104;const _0x17cb51=a167_0x17cb();let _0x483b4c=_0x17cb51[_0x5aa26c];return _0x483b4c;}function a167_0x17cb(){const _0x26133e=['Requires\x20appcode\x20(set\x20via\x20`','8auKXHr','generateCommandHelp','get','892whvcet','61ykcXgG','3101mnYuqM','generateFullHelp','214oSjYwg','450970PKmGiB','4191dvnxxA','390yfnKoF','2350332HUJUFk','860618PRiZQs','1974120MFwyRO'];a167_0x17cb=function(){return _0x26133e;};return a167_0x17cb();}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a167_0x21ca89(0x10b)];
1
+ const a167_0x1ea866=a167_0x17aa;(function(_0x3a7a30,_0xf65e89){const _0x2ac310=a167_0x17aa,_0x50f70d=_0x3a7a30();while(!![]){try{const _0x25520a=-parseInt(_0x2ac310(0x102))/0x1+-parseInt(_0x2ac310(0x104))/0x2*(parseInt(_0x2ac310(0x109))/0x3)+-parseInt(_0x2ac310(0x107))/0x4*(-parseInt(_0x2ac310(0x100))/0x5)+-parseInt(_0x2ac310(0x105))/0x6*(parseInt(_0x2ac310(0xfa))/0x7)+parseInt(_0x2ac310(0x101))/0x8*(parseInt(_0x2ac310(0xff))/0x9)+parseInt(_0x2ac310(0x103))/0xa*(parseInt(_0x2ac310(0x106))/0xb)+parseInt(_0x2ac310(0xfb))/0xc*(parseInt(_0x2ac310(0xfc))/0xd);if(_0x25520a===_0xf65e89)break;else _0x50f70d['push'](_0x50f70d['shift']());}catch(_0x422f6f){_0x50f70d['push'](_0x50f70d['shift']());}}}(a167_0x52df,0x513a6));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a167_0x17aa(_0x59723f,_0x3dfa22){_0x59723f=_0x59723f-0xfa;const _0x52dfe9=a167_0x52df();let _0x17aaaa=_0x52dfe9[_0x59723f];return _0x17aaaa;}function a167_0x52df(){const _0x4ad496=['generateCommandHelp','get','18eWJcAv','5LqQWUP','2273808WzARox','129172VfMQNB','10910rhaHOE','28874sGzjSA','442434lBQoFI','3509thSYDc','1183660iwaDgz','generateFullHelp','114fdnpKl','56LjMlcT','4656048VLvGnU','13vHNzGp'];a167_0x52df=function(){return _0x4ad496;};return a167_0x52df();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xc866c=>serviceGroups[a167_0x1ea866(0xfe)](_0xc866c),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x1e941e){const _0x4c3a8e=a167_0x1ea866;return generators[_0x4c3a8e(0xfd)](_0x1e941e);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a167_0x1ea866(0x108)];
@@ -1 +1 @@
1
- (function(_0x6b2904,_0x355eb1){var _0x17ac36=a168_0x3dd3,_0x1f4661=_0x6b2904();while(!![]){try{var _0x4bc3fb=parseInt(_0x17ac36(0x148))/0x1*(parseInt(_0x17ac36(0x14c))/0x2)+parseInt(_0x17ac36(0x14d))/0x3*(-parseInt(_0x17ac36(0x14a))/0x4)+parseInt(_0x17ac36(0x14f))/0x5*(parseInt(_0x17ac36(0x147))/0x6)+parseInt(_0x17ac36(0x14b))/0x7+-parseInt(_0x17ac36(0x151))/0x8+-parseInt(_0x17ac36(0x150))/0x9*(-parseInt(_0x17ac36(0x149))/0xa)+parseInt(_0x17ac36(0x152))/0xb*(-parseInt(_0x17ac36(0x14e))/0xc);if(_0x4bc3fb===_0x355eb1)break;else _0x1f4661['push'](_0x1f4661['shift']());}catch(_0x34ae46){_0x1f4661['push'](_0x1f4661['shift']());}}}(a168_0x1baf,0xa623f));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a168_0x3dd3(_0x223046,_0x2ba678){_0x223046=_0x223046-0x147;var _0x1bafec=a168_0x1baf();var _0x3dd36c=_0x1bafec[_0x223046];return _0x3dd36c;}export{extractList,extractPaging}from'../framework/response.js';function a168_0x1baf(){var _0x323346=['514giIuaD','3waDMCv','55812sHJquD','6428185irovjs','1413ttdMFB','651688BbcJKD','3707hlDMst','6ipgWSr','1567ccpySa','48770rFwfuA','1038704meettX','944930ehCgCR'];a168_0x1baf=function(){return _0x323346;};return a168_0x1baf();}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x5ae364,_0x189dc1){var _0x2e7eff=a168_0x54c1,_0x3fd020=_0x5ae364();while(!![]){try{var _0x2beabf=-parseInt(_0x2e7eff(0x1a3))/0x1*(-parseInt(_0x2e7eff(0x1a4))/0x2)+-parseInt(_0x2e7eff(0x1a7))/0x3+parseInt(_0x2e7eff(0x1a2))/0x4+-parseInt(_0x2e7eff(0x1a6))/0x5*(parseInt(_0x2e7eff(0x1a1))/0x6)+-parseInt(_0x2e7eff(0x1a5))/0x7+parseInt(_0x2e7eff(0x1a0))/0x8+parseInt(_0x2e7eff(0x19f))/0x9*(-parseInt(_0x2e7eff(0x1a8))/0xa);if(_0x2beabf===_0x189dc1)break;else _0x3fd020['push'](_0x3fd020['shift']());}catch(_0x3c8bda){_0x3fd020['push'](_0x3fd020['shift']());}}}(a168_0x1371,0x271bb));function a168_0x54c1(_0x159937,_0x3f3b78){_0x159937=_0x159937-0x19f;var _0x137169=a168_0x1371();var _0x54c11e=_0x137169[_0x159937];return _0x54c11e;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a168_0x1371(){var _0x5364ca=['13074iOnmEp','937960ARjWCf','288VQbLtk','308nIqiXL','522571jCIkjE','210nURxBO','103071djjMOn','10RfQOOk','654363RECNni','1236640ryVrdK'];a168_0x1371=function(){return _0x5364ca;};return a168_0x1371();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a169_0x4ddd(_0x97e80,_0x44c690){_0x97e80=_0x97e80-0x1ef;const _0x5d2d62=a169_0x5d2d();let _0x4ddd40=_0x5d2d62[_0x97e80];return _0x4ddd40;}(function(_0x374591,_0x1fc4cc){const _0x1e7f37=a169_0x4ddd,_0x12573c=_0x374591();while(!![]){try{const _0xfae343=parseInt(_0x1e7f37(0x1f0))/0x1+parseInt(_0x1e7f37(0x1fa))/0x2+parseInt(_0x1e7f37(0x1ef))/0x3*(-parseInt(_0x1e7f37(0x1f5))/0x4)+parseInt(_0x1e7f37(0x1f9))/0x5*(-parseInt(_0x1e7f37(0x1f8))/0x6)+-parseInt(_0x1e7f37(0x1fb))/0x7+parseInt(_0x1e7f37(0x1f7))/0x8*(-parseInt(_0x1e7f37(0x1f2))/0x9)+parseInt(_0x1e7f37(0x1f1))/0xa*(parseInt(_0x1e7f37(0x1f6))/0xb);if(_0xfae343===_0x1fc4cc)break;else _0x12573c['push'](_0x12573c['shift']());}catch(_0x59f4d7){_0x12573c['push'](_0x12573c['shift']());}}}(a169_0x5d2d,0xc2504));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x572731,_0x375753){const _0x5bee82=a169_0x4ddd,_0x84e622=_0x572731['_notice'],{_notice:_0x340ba1,..._0x1b50b2}=_0x572731;void _0x340ba1,baseFormatOutput(_0x1b50b2,_0x375753),_0x375753['format']===_0x5bee82(0x1fd)&&printPrettyNotice(_0x84e622);}function printPrettyNotice(_0x185784){const _0x17d786=a169_0x4ddd;if(!_0x185784?.[_0x17d786(0x1fe)])return;console[_0x17d786(0x1f3)](_0x185784[_0x17d786(0x1fe)][_0x17d786(0x1fc)]+'\x20('+_0x185784[_0x17d786(0x1fe)][_0x17d786(0x1f4)]+')');}function a169_0x5d2d(){const _0x1df4b1=['update','2721UaSDTh','1437204vaydUu','30cKjQNg','31356drgCIZ','error','url','6724kxFwjc','8356062hOCxxl','2296dVCeYI','996168XSwvae','5FFPtsx','1295420RMlFee','6141303PEdAKY','message','pretty'];a169_0x5d2d=function(){return _0x1df4b1;};return a169_0x5d2d();}
1
+ (function(_0x45d9e2,_0x49af03){const _0x17e0db=a169_0x1465,_0x2ac61c=_0x45d9e2();while(!![]){try{const _0xe570d=-parseInt(_0x17e0db(0x1c3))/0x1+parseInt(_0x17e0db(0x1bc))/0x2*(-parseInt(_0x17e0db(0x1bd))/0x3)+parseInt(_0x17e0db(0x1bb))/0x4*(-parseInt(_0x17e0db(0x1c7))/0x5)+parseInt(_0x17e0db(0x1c0))/0x6*(-parseInt(_0x17e0db(0x1c6))/0x7)+parseInt(_0x17e0db(0x1c8))/0x8+parseInt(_0x17e0db(0x1bf))/0x9*(-parseInt(_0x17e0db(0x1c9))/0xa)+parseInt(_0x17e0db(0x1c1))/0xb;if(_0xe570d===_0x49af03)break;else _0x2ac61c['push'](_0x2ac61c['shift']());}catch(_0x573729){_0x2ac61c['push'](_0x2ac61c['shift']());}}}(a169_0x43ed,0xcf2d0));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a169_0x1465(_0x14503d,_0x2322bd){_0x14503d=_0x14503d-0x1ba;const _0x43edc8=a169_0x43ed();let _0x14658f=_0x43edc8[_0x14503d];return _0x14658f;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0xc9d13a,_0x1f90fc){const _0x3b180e=a169_0x1465,_0x1786c0=_0xc9d13a['_notice'],{_notice:_0x1e12eb,..._0x1e9a9b}=_0xc9d13a;void _0x1e12eb,baseFormatOutput(_0x1e9a9b,_0x1f90fc),_0x1f90fc['format']===_0x3b180e(0x1c5)&&printPrettyNotice(_0x1786c0);}function printPrettyNotice(_0x3c385e){const _0x26ac52=a169_0x1465;if(!_0x3c385e?.[_0x26ac52(0x1be)])return;console[_0x26ac52(0x1c2)](_0x3c385e['update'][_0x26ac52(0x1c4)]+'\x20('+_0x3c385e[_0x26ac52(0x1be)][_0x26ac52(0x1ba)]+')');}function a169_0x43ed(){const _0x34e98b=['message','pretty','679301GIdZBR','5ZvYmMa','8453328EFAzYN','6470Ticdbr','url','3492172WetyLJ','26OsDrOs','123339frtWCk','update','1413qwZbyC','42NTXnOt','25912029digbBJ','error','375321DVNjFy'];a169_0x43ed=function(){return _0x34e98b;};return a169_0x43ed();}
@@ -1 +1 @@
1
- (function(_0xc60b1d,_0x504698){var _0x1b2c11=a170_0x303b,_0x38a370=_0xc60b1d();while(!![]){try{var _0x1920ca=-parseInt(_0x1b2c11(0x13e))/0x1*(parseInt(_0x1b2c11(0x13f))/0x2)+parseInt(_0x1b2c11(0x139))/0x3+parseInt(_0x1b2c11(0x13a))/0x4+parseInt(_0x1b2c11(0x13b))/0x5*(parseInt(_0x1b2c11(0x138))/0x6)+-parseInt(_0x1b2c11(0x141))/0x7+-parseInt(_0x1b2c11(0x13c))/0x8+-parseInt(_0x1b2c11(0x140))/0x9*(-parseInt(_0x1b2c11(0x13d))/0xa);if(_0x1920ca===_0x504698)break;else _0x38a370['push'](_0x38a370['shift']());}catch(_0x1f2e78){_0x38a370['push'](_0x38a370['shift']());}}}(a170_0x4201,0x99ae5));function a170_0x303b(_0xe53138,_0x5d92a3){_0xe53138=_0xe53138-0x138;var _0x4201c4=a170_0x4201();var _0x303bde=_0x4201c4[_0xe53138];return _0x303bde;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a170_0x4201(){var _0x5bee65=['10LPXCKc','185956CeocPD','2BnaaMR','5583105MHNzqg','4050998xLpZms','462414YcNhVs','575511nxhqms','4092332TOuvbT','5DzMKEh','4145496FswEKB'];a170_0x4201=function(){return _0x5bee65;};return a170_0x4201();}
1
+ (function(_0x4c6508,_0x51ddfb){var _0x180d92=a170_0xba8d,_0x9aeb57=_0x4c6508();while(!![]){try{var _0x2cba0c=parseInt(_0x180d92(0x189))/0x1+-parseInt(_0x180d92(0x184))/0x2+parseInt(_0x180d92(0x186))/0x3*(-parseInt(_0x180d92(0x183))/0x4)+parseInt(_0x180d92(0x18c))/0x5*(parseInt(_0x180d92(0x188))/0x6)+-parseInt(_0x180d92(0x185))/0x7*(parseInt(_0x180d92(0x18b))/0x8)+-parseInt(_0x180d92(0x18a))/0x9+parseInt(_0x180d92(0x187))/0xa;if(_0x2cba0c===_0x51ddfb)break;else _0x9aeb57['push'](_0x9aeb57['shift']());}catch(_0x59f7f3){_0x9aeb57['push'](_0x9aeb57['shift']());}}}(a170_0x256c,0x9ca1b));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a170_0xba8d(_0x50655d,_0x452f44){_0x50655d=_0x50655d-0x183;var _0x256c84=a170_0x256c();var _0xba8d47=_0x256c84[_0x50655d];return _0xba8d47;}function a170_0x256c(){var _0x323b25=['276444kzBvZJ','1260396BfOkJY','184luTiiq','2800bryCai','3607028gvtBls','1480184zzyDlv','374318lXEhjT','3BxLEYM','30969140ItyfAy','3000NJkLQP'];a170_0x256c=function(){return _0x323b25;};return a170_0x256c();}
@@ -1 +1 @@
1
- (function(_0x8da265,_0x5e5ac6){const _0x1ed614=a171_0x87c5,_0x26daf9=_0x8da265();while(!![]){try{const _0xf3ba8=-parseInt(_0x1ed614(0x127))/0x1+-parseInt(_0x1ed614(0x13b))/0x2+-parseInt(_0x1ed614(0x12f))/0x3+parseInt(_0x1ed614(0x129))/0x4*(parseInt(_0x1ed614(0x12d))/0x5)+-parseInt(_0x1ed614(0x133))/0x6+-parseInt(_0x1ed614(0x13c))/0x7*(parseInt(_0x1ed614(0x139))/0x8)+parseInt(_0x1ed614(0x134))/0x9;if(_0xf3ba8===_0x5e5ac6)break;else _0x26daf9['push'](_0x26daf9['shift']());}catch(_0x26f47a){_0x26daf9['push'](_0x26daf9['shift']());}}}(a171_0x2742,0xdc8f8));function a171_0x87c5(_0x392756,_0x2723d9){_0x392756=_0x392756-0x127;const _0x27422a=a171_0x2742();let _0x87c55e=_0x27422a[_0x392756];return _0x87c55e;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a171_0x2742(){const _0x2978eb=['.\x20Run\x20`','3361292mhtQHw','511yxmwKG','flags','238838QzMirN','length','507856ZEfEBA','`\x20requires\x20either\x20--code\x20or\x20--alias.','string','Unknown\x20alias\x20\x22','45KwJZpd','alias','1136301ErfUyR','type','join','\x22.\x20','2837508LuTvKN','34185474cyaKna','code','\x20api\x20pull`\x20first.','name','validation','138792CDdckX'];a171_0x2742=function(){return _0x2978eb;};return a171_0x2742();}export function resolveAliasToCode(_0x23529c,_0x335b6a,_0x571fc8,_0x4b7be7){const _0x452bb=a171_0x87c5,_0x49ede=_0x23529c[_0x452bb(0x13d)]['some'](_0x346111=>_0x346111[_0x452bb(0x137)]===_0x452bb(0x135)&&_0x346111[_0x452bb(0x130)]==='string'),_0x4bd510=_0x23529c[_0x452bb(0x13d)]['some'](_0x5d4e58=>_0x5d4e58['name']===_0x452bb(0x12e)&&_0x5d4e58[_0x452bb(0x130)]===_0x452bb(0x12b));if(!_0x49ede||!_0x4bd510)return;const _0x4e653e=_0x335b6a[_0x452bb(0x135)]?String(_0x335b6a[_0x452bb(0x135)]):'',_0x9b50b4=_0x335b6a[_0x452bb(0x12e)]?String(_0x335b6a[_0x452bb(0x12e)]):'';if(!_0x4e653e&&!_0x9b50b4)throw CliErrors['validation']('`'+_0x4b7be7+_0x452bb(0x12a));if(_0x9b50b4&&!_0x4e653e){const _0x189f20=resolveAlias(_0x571fc8,_0x9b50b4);if(!_0x189f20){const _0x491c44=listAliases(_0x571fc8)['map'](_0x264035=>_0x264035[_0x452bb(0x12e)]),_0xf02418=_0x491c44[_0x452bb(0x128)]?'Available\x20aliases:\x20'+_0x491c44[_0x452bb(0x131)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x571fc8+_0x452bb(0x13a)+CLI_BIN_NAME+_0x452bb(0x136);throw CliErrors[_0x452bb(0x138)](_0x452bb(0x12c)+_0x9b50b4+_0x452bb(0x132)+_0xf02418);}_0x335b6a[_0x452bb(0x135)]=_0x189f20;}}
1
+ (function(_0x21aa03,_0x3c1958){const _0x2334c8=a171_0x1126,_0x4c1e0a=_0x21aa03();while(!![]){try{const _0x15422c=parseInt(_0x2334c8(0x1a4))/0x1*(-parseInt(_0x2334c8(0x1ac))/0x2)+parseInt(_0x2334c8(0x1a9))/0x3*(parseInt(_0x2334c8(0x199))/0x4)+parseInt(_0x2334c8(0x19b))/0x5*(parseInt(_0x2334c8(0x193))/0x6)+-parseInt(_0x2334c8(0x19e))/0x7*(-parseInt(_0x2334c8(0x198))/0x8)+parseInt(_0x2334c8(0x1aa))/0x9*(parseInt(_0x2334c8(0x19c))/0xa)+-parseInt(_0x2334c8(0x195))/0xb*(parseInt(_0x2334c8(0x1a2))/0xc)+-parseInt(_0x2334c8(0x1a7))/0xd;if(_0x15422c===_0x3c1958)break;else _0x4c1e0a['push'](_0x4c1e0a['shift']());}catch(_0x3c3039){_0x4c1e0a['push'](_0x4c1e0a['shift']());}}}(a171_0x432f,0x71c51));function a171_0x432f(){const _0x3fc3bc=['name','761774jreJEX','No\x20api.ts\x20found\x20in\x20','2283rTjBUi','4378896TkcyRF','length','36412XXrMKC','\x20api\x20pull`\x20first.','some','102glNHPC','code','5038847kKorwN','.\x20Run\x20`','`\x20requires\x20either\x20--code\x20or\x20--alias.','8WsqMXf','1016jZWYIM','join','64115RUiCgF','10aOakCO','string','4672073yfMiyJ','\x22.\x20','alias','validation','12ivjhWT','map','32tvwWff','flags'];a171_0x432f=function(){return _0x3fc3bc;};return a171_0x432f();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a171_0x1126(_0x5881df,_0x5252ac){_0x5881df=_0x5881df-0x192;const _0x432faf=a171_0x432f();let _0x112653=_0x432faf[_0x5881df];return _0x112653;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2c6523,_0x45e74b,_0x2968c8,_0x169269){const _0x2f3ae4=a171_0x1126,_0x31e26d=_0x2c6523[_0x2f3ae4(0x1a5)][_0x2f3ae4(0x192)](_0x458846=>_0x458846[_0x2f3ae4(0x1a6)]===_0x2f3ae4(0x194)&&_0x458846['type']==='string'),_0x1517fa=_0x2c6523[_0x2f3ae4(0x1a5)]['some'](_0x19e816=>_0x19e816[_0x2f3ae4(0x1a6)]===_0x2f3ae4(0x1a0)&&_0x19e816['type']===_0x2f3ae4(0x19d));if(!_0x31e26d||!_0x1517fa)return;const _0x99886=_0x45e74b[_0x2f3ae4(0x194)]?String(_0x45e74b[_0x2f3ae4(0x194)]):'',_0x2c3978=_0x45e74b[_0x2f3ae4(0x1a0)]?String(_0x45e74b[_0x2f3ae4(0x1a0)]):'';if(!_0x99886&&!_0x2c3978)throw CliErrors['validation']('`'+_0x169269+_0x2f3ae4(0x197));if(_0x2c3978&&!_0x99886){const _0x3631d2=resolveAlias(_0x2968c8,_0x2c3978);if(!_0x3631d2){const _0x2d24d1=listAliases(_0x2968c8)[_0x2f3ae4(0x1a3)](_0x255496=>_0x255496[_0x2f3ae4(0x1a0)]),_0x58d6e2=_0x2d24d1[_0x2f3ae4(0x1ab)]?'Available\x20aliases:\x20'+_0x2d24d1[_0x2f3ae4(0x19a)](',\x20'):_0x2f3ae4(0x1a8)+_0x2968c8+_0x2f3ae4(0x196)+CLI_BIN_NAME+_0x2f3ae4(0x1ad);throw CliErrors[_0x2f3ae4(0x1a1)]('Unknown\x20alias\x20\x22'+_0x2c3978+_0x2f3ae4(0x19f)+_0x58d6e2);}_0x45e74b[_0x2f3ae4(0x194)]=_0x3631d2;}}
@@ -1 +1 @@
1
- const a172_0x122747=a172_0x93a0;function a172_0x93a0(_0x259b31,_0x5e1e8a){_0x259b31=_0x259b31-0x89;const _0x14e56f=a172_0x14e5();let _0x93a045=_0x14e56f[_0x259b31];return _0x93a045;}(function(_0x25dd7a,_0x293918){const _0x4a8a22=a172_0x93a0,_0x297179=_0x25dd7a();while(!![]){try{const _0x43719d=-parseInt(_0x4a8a22(0xb6))/0x1*(-parseInt(_0x4a8a22(0xb5))/0x2)+parseInt(_0x4a8a22(0xab))/0x3*(-parseInt(_0x4a8a22(0x8b))/0x4)+parseInt(_0x4a8a22(0xc2))/0x5+parseInt(_0x4a8a22(0xb7))/0x6*(-parseInt(_0x4a8a22(0x9b))/0x7)+-parseInt(_0x4a8a22(0xa5))/0x8*(-parseInt(_0x4a8a22(0x92))/0x9)+-parseInt(_0x4a8a22(0xa6))/0xa*(-parseInt(_0x4a8a22(0xc5))/0xb)+-parseInt(_0x4a8a22(0x9a))/0xc;if(_0x43719d===_0x293918)break;else _0x297179['push'](_0x297179['shift']());}catch(_0xbf184d){_0x297179['push'](_0x297179['shift']());}}}(a172_0x14e5,0x8316d));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_0x18f484}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1518e2){const _0x74223d=a172_0x93a0;return typeof _0x1518e2===_0x74223d(0x98)&&_0x1518e2[_0x74223d(0x95)]()?_0x1518e2[_0x74223d(0x95)]():undefined;}function resolveEnvAppCode(){const _0x323b2d=a172_0x93a0,_0x436de0=stringFlag(process.env.RABETBASE_APPCODE);if(_0x436de0)return{'name':'RABETBASE_APPCODE','value':_0x436de0};const _0x15cce4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x15cce4)return{'name':_0x323b2d(0xad),'value':_0x15cce4};return undefined;}function hasExplicitAppCode(_0x19035e,_0x1cc151){const _0x3154e0=a172_0x93a0;return!!(stringFlag(_0x19035e[_0x3154e0(0xb3)])||stringFlag(_0x1cc151[_0x3154e0(0xb3)]));}function assertEnvAppCodeNotIgnored(_0x2c4ae6,_0x57e7ee,_0x4be1dd){const _0x39768e=a172_0x93a0;if(!_0x57e7ee||_0x4be1dd||_0x2c4ae6===_0x57e7ee[_0x39768e(0xc0)])return;const _0x4b80fa=_0x2c4ae6?_0x39768e(0xc4)+_0x2c4ae6+'\x22.':_0x39768e(0xa7);throw CliErrors[_0x39768e(0xc6)](_0x57e7ee[_0x39768e(0xc3)]+'='+_0x57e7ee[_0x39768e(0xc0)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x4b80fa+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x57e7ee[_0x39768e(0xc3)]+'\x22.'));}export function createPipelineEnv(_0x3488f9,_0x43bdf6,_0x278e8e=[]){const _0x520373=a172_0x93a0;return{'rawFlags':_0x43bdf6,'args':_0x278e8e,'resolveAppCode':()=>_0x3488f9[_0x520373(0xa1)],'resolveCookie':()=>_0x3488f9[_0x520373(0xbf)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0x18f484(_0x43bdf6),'defaultFormat':_0x3488f9[_0x520373(0x89)],'defaultPageSize':_0x3488f9[_0x520373(0xae)],'defaultVerbose':_0x3488f9['verbose'],'apiDir':_0x3488f9['apiDir'],'riskLevel':_0x3488f9[_0x520373(0xc1)],'selectedAppName':_0x3488f9[_0x520373(0x9d)],'mergedCli':{'defaultApp':_0x3488f9[_0x520373(0xa3)],'currentApp':_0x3488f9[_0x520373(0xb8)],'appCode':_0x3488f9[_0x520373(0xa1)],'apps':_0x3488f9['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a172_0x122747(0x9f)](_0x156b87=>PIPELINE_FLAG_NAMES[a172_0x122747(0x8a)](_0x156b87[a172_0x122747(0xc3)]))[a172_0x122747(0xbb)](({name:_0x59808d,type:_0x4c0a4d,description:_0x453d25})=>({'name':_0x59808d,'type':_0x4c0a4d,'description':_0x453d25})),'formatOutput':formatOutput,'getCommandLabel'(_0x53e8ae){return CLI_BIN_NAME+'\x20'+_0x53e8ae['service']+'\x20'+_0x53e8ae['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x97c805){const _0x2eb1e8=a172_0x122747;return CliErrors[_0x2eb1e8(0xc6)](_0x97c805);}},async 'prepare'(_0x25cec0,_0xb097a4,_0x1e7688,_0x11e096){const _0x3d783d=a172_0x122747,_0x2cad1d=_0xb097a4[_0x3d783d(0x93)]||DEFAULT_API_DIR;resolveAliasToCode(_0x25cec0,_0x1e7688,_0x2cad1d,_0x11e096);let _0x217cc6='';if(_0x25cec0[_0x3d783d(0xbd)]!==![]){_0x217cc6=_0xb097a4['resolveCookie']();if(!_0x217cc6)throw CliErrors[_0x3d783d(0x9e)]();const {setActiveCookie:_0x22bb52}=await import(_0x3d783d(0xa4));_0x22bb52(_0x217cc6);}const _0x133ec0=_0xb097a4[_0x3d783d(0x8c)]()??'';if(_0x25cec0[_0x3d783d(0xa0)]!==![]){assertEnvAppCodeNotIgnored(_0x133ec0,resolveEnvAppCode(),hasExplicitAppCode(_0x1e7688,_0xb097a4[_0x3d783d(0xb2)]));if(!_0x133ec0)throw CliErrors[_0x3d783d(0x96)](_0x3d783d(0x8f)+CLI_BIN_NAME+_0x3d783d(0xba));}return{'defaults':{'booleans':{'verbose':_0xb097a4['defaultVerbose']},'numbers':{'pagesize':_0xb097a4[_0x3d783d(0xb4)]}},'extras':{'appCode':_0x133ec0,'cookie':_0x217cc6,'apiDomain':_0xb097a4[_0x3d783d(0xbc)](),'apiDir':_0x2cad1d,'selectedAppName':_0xb097a4[_0x3d783d(0x8e)],'mergedCli':_0xb097a4[_0x3d783d(0xaa)]}};},async 'confirmHighRisk'({env:_0x1ad582,commandLabel:_0x2c5910}){const _0x4b58c6=a172_0x122747;if(_0x1ad582[_0x4b58c6(0xa2)])throw CliErrors[_0x4b58c6(0xc6)](_0x4b58c6(0xb0)+_0x2c5910+_0x4b58c6(0xa8));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x2c5910,_0x4b58c6(0x97)],'createCancelledError':_0x497832=>CliErrors[_0x4b58c6(0x90)](_0x497832)});},async 'finalize'(){const {clearActiveCookie:_0x485c75}=await import('../core/api-client.js');_0x485c75();}};export async function runCommand(_0x4e483e,_0x31c960){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4e483e)?withUpdateNotice(_0x4e483e):_0x4e483e,_0x31c960,runnerAdapter);}function shouldAttachUpdateNotice(_0x1e3ed5){const _0x2e960e=a172_0x122747;if(_0x1e3ed5[_0x2e960e(0x8d)]===![])return![];return![_0x2e960e(0x9c),_0x2e960e(0xac),_0x2e960e(0x91)][_0x2e960e(0x99)](_0x1e3ed5[_0x2e960e(0xb9)]);}function withUpdateNotice(_0x139815){return{..._0x139815,async 'execute'(_0x368249){const _0x3c5ed9=a172_0x93a0,_0x22ab4a=shouldResolveUpdateNotice(_0x368249)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x3c5ed9(0x94)](null),_0x57009a=await _0x139815[_0x3c5ed9(0xaf)](_0x368249);return attachUpdateNotice(_0x57009a,await _0x22ab4a);}};}function shouldResolveUpdateNotice(_0x1f7612){const _0x216a05=a172_0x122747;return _0x1f7612['format']===_0x216a05(0xb1)&&!_0x1f7612['nonInteractive'];}function a172_0x14e5(){const _0x5de8d4=['selectedAppName','Set\x20appcode\x20via\x20`','cancelled','doctor','282816IADLgs','apiDir','resolve','trim','configMissing','\x20\x20\x20Continue?\x20[y/N]\x20','string','includes','3746952LmJpxM','54404cnLbbl','update','explicitAppName','authRequired','filter','requiresAppCode','appCode','isNonInteractive','defaultApp','../core/api-client.js','96ntsvmo','5750xHdeAV','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','_notice','mergedCli','372LqeeJR','schema','LOVRABET_APPCODE','pageSize','execute','High-risk\x20operation\x20`','pretty','rawFlags','appcode','defaultPageSize','2ShLdCZ','775673BPYlAh','504PsyEIJ','currentApp','service','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','map','resolveApiDomain','requiresAuth','object','cookie','value','riskLevel','365435GBrPEN','name','Current\x20resolved\x20appcode\x20is\x20\x22','10175WxzyNd','validation','format','has','8248JXUztt','resolveAppCode','hasFormat'];a172_0x14e5=function(){return _0x5de8d4;};return a172_0x14e5();}function attachUpdateNotice(_0x2b93e5,_0x4c00a5){const _0x1ef943=a172_0x122747;if(!_0x4c00a5||!_0x2b93e5||typeof _0x2b93e5!==_0x1ef943(0xbe))return _0x2b93e5;const _0x403c8f=_0x2b93e5,_0x161b79=typeof _0x403c8f['_notice']==='object'&&_0x403c8f['_notice']!==null?_0x403c8f[_0x1ef943(0xa9)]:{};return{..._0x403c8f,'_notice':{..._0x161b79,'update':_0x4c00a5}};}
1
+ const a172_0x1a42f=a172_0x1451;function a172_0x2437(){const _0x5804be=['resolve','appCode','catch','110472LOeKKs','verbose','riskLevel','cookie','currentApp','string','trim','authRequired','pageSize','map','requiresAppCode','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','hasFormat','2877132XKTgHp','cancelled','resolveApiDomain','defaultApp','object','apps','command','isNonInteractive','768030ogdHie','requiresAuth','validation','rawFlags','resolveCookie','⚠\x20\x20High-risk\x20operation:\x20','defaultVerbose','pretty','4355701ORLZAu','9JHHOcE','resolveAppCode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','name','value','735719LKJxIZ','../core/api-client.js','nonInteractive','filter','schema','High-risk\x20operation\x20`','6gADOLE','LOVRABET_APPCODE','service','appcode','Set\x20appcode\x20via\x20`','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','explicitAppName','_notice','Current\x20resolved\x20appcode\x20is\x20\x22','7363976VTjJzH','format','apiDir','497884WBPHOT','mergedCli'];a172_0x2437=function(){return _0x5804be;};return a172_0x2437();}(function(_0x1436e5,_0x256918){const _0x2bf241=a172_0x1451,_0x50fc4b=_0x1436e5();while(!![]){try{const _0x30565a=-parseInt(_0x2bf241(0xaa))/0x1+parseInt(_0x2bf241(0xbc))/0x2*(parseInt(_0x2bf241(0xb0))/0x3)+-parseInt(_0x2bf241(0x94))/0x4+-parseInt(_0x2bf241(0x9c))/0x5+parseInt(_0x2bf241(0xc1))/0x6+parseInt(_0x2bf241(0xa4))/0x7+-parseInt(_0x2bf241(0xb9))/0x8*(-parseInt(_0x2bf241(0xa5))/0x9);if(_0x30565a===_0x256918)break;else _0x50fc4b['push'](_0x50fc4b['shift']());}catch(_0x438a72){_0x50fc4b['push'](_0x50fc4b['shift']());}}}(a172_0x2437,0x6df7c));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_0xdbaa77}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1e1674){const _0x47c603=a172_0x1451;return typeof _0x1e1674===_0x47c603(0xc6)&&_0x1e1674[_0x47c603(0x8d)]()?_0x1e1674['trim']():undefined;}function resolveEnvAppCode(){const _0x8b128=a172_0x1451,_0x20ab42=stringFlag(process.env.RABETBASE_APPCODE);if(_0x20ab42)return{'name':'RABETBASE_APPCODE','value':_0x20ab42};const _0x114ec4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x114ec4)return{'name':_0x8b128(0xb1),'value':_0x114ec4};return undefined;}function a172_0x1451(_0x45b3df,_0x25f1eb){_0x45b3df=_0x45b3df-0x8d;const _0x24374d=a172_0x2437();let _0x1451ec=_0x24374d[_0x45b3df];return _0x1451ec;}function hasExplicitAppCode(_0x148395,_0x4e559c){const _0x53c7cd=a172_0x1451;return!!(stringFlag(_0x148395[_0x53c7cd(0xb3)])||stringFlag(_0x4e559c['appcode']));}function assertEnvAppCodeNotIgnored(_0x19ddc0,_0x20659d,_0x5a5b2b){const _0x37ef71=a172_0x1451;if(!_0x20659d||_0x5a5b2b||_0x19ddc0===_0x20659d[_0x37ef71(0xa9)])return;const _0x4b07e1=_0x19ddc0?_0x37ef71(0xb8)+_0x19ddc0+'\x22.':_0x37ef71(0x92);throw CliErrors[_0x37ef71(0x9e)](_0x20659d[_0x37ef71(0xa8)]+'='+_0x20659d[_0x37ef71(0xa9)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x4b07e1+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x20659d[_0x37ef71(0xa8)]+'\x22.'));}export function createPipelineEnv(_0x447821,_0x3d1324,_0x56e7b5=[]){const _0x1fe565=a172_0x1451;return{'rawFlags':_0x3d1324,'args':_0x56e7b5,'resolveAppCode':()=>_0x447821[_0x1fe565(0xbf)],'resolveCookie':()=>_0x447821[_0x1fe565(0xc4)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0xdbaa77(_0x3d1324),'defaultFormat':_0x447821['format'],'defaultPageSize':_0x447821[_0x1fe565(0x8f)],'defaultVerbose':_0x447821[_0x1fe565(0xc2)],'apiDir':_0x447821[_0x1fe565(0xbb)],'riskLevel':_0x447821[_0x1fe565(0xc3)],'selectedAppName':_0x447821[_0x1fe565(0xb6)],'mergedCli':{'defaultApp':_0x447821[_0x1fe565(0x97)],'currentApp':_0x447821[_0x1fe565(0xc5)],'appCode':_0x447821['appCode'],'apps':_0x447821[_0x1fe565(0x99)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a172_0x1a42f(0xad)](_0x564a7f=>PIPELINE_FLAG_NAMES['has'](_0x564a7f[a172_0x1a42f(0xa8)]))[a172_0x1a42f(0x90)](({name:_0x1bcb83,type:_0x4b6f0c,description:_0xe87460})=>({'name':_0x1bcb83,'type':_0x4b6f0c,'description':_0xe87460})),'formatOutput':formatOutput,'getCommandLabel'(_0x1b5c7a){const _0x53ec51=a172_0x1a42f;return CLI_BIN_NAME+'\x20'+_0x1b5c7a[_0x53ec51(0xb2)]+'\x20'+_0x1b5c7a[_0x53ec51(0x9a)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3b7164){const _0x59e2d5=a172_0x1a42f;return CliErrors[_0x59e2d5(0x9e)](_0x3b7164);}},async 'prepare'(_0x508f3b,_0x3bc10a,_0xcd1adf,_0x3da0fc){const _0x4ea2eb=a172_0x1a42f,_0x502144=_0x3bc10a['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x508f3b,_0xcd1adf,_0x502144,_0x3da0fc);let _0x11a577='';if(_0x508f3b[_0x4ea2eb(0x9d)]!==![]){_0x11a577=_0x3bc10a[_0x4ea2eb(0xa0)]();if(!_0x11a577)throw CliErrors[_0x4ea2eb(0x8e)]();const {setActiveCookie:_0x92ac37}=await import(_0x4ea2eb(0xab));_0x92ac37(_0x11a577);}const _0x3ab8b0=_0x3bc10a[_0x4ea2eb(0xa6)]()??'';if(_0x508f3b[_0x4ea2eb(0x91)]!==![]){assertEnvAppCodeNotIgnored(_0x3ab8b0,resolveEnvAppCode(),hasExplicitAppCode(_0xcd1adf,_0x3bc10a[_0x4ea2eb(0x9f)]));if(!_0x3ab8b0)throw CliErrors['configMissing'](_0x4ea2eb(0xb4)+CLI_BIN_NAME+_0x4ea2eb(0xa7));}return{'defaults':{'booleans':{'verbose':_0x3bc10a[_0x4ea2eb(0xa2)]},'numbers':{'pagesize':_0x3bc10a['defaultPageSize']}},'extras':{'appCode':_0x3ab8b0,'cookie':_0x11a577,'apiDomain':_0x3bc10a[_0x4ea2eb(0x96)](),'apiDir':_0x502144,'selectedAppName':_0x3bc10a['selectedAppName'],'mergedCli':_0x3bc10a[_0x4ea2eb(0xbd)]}};},async 'confirmHighRisk'({env:_0x185d80,commandLabel:_0x3ef3fa}){const _0x36db3b=a172_0x1a42f;if(_0x185d80[_0x36db3b(0x9b)])throw CliErrors[_0x36db3b(0x9e)](_0x36db3b(0xaf)+_0x3ef3fa+_0x36db3b(0xb5));await requireConfirmationPrompt({'lines':[_0x36db3b(0xa1)+_0x3ef3fa,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x2a2675=>CliErrors[_0x36db3b(0x95)](_0x2a2675)});},async 'finalize'(){const _0x102650=a172_0x1a42f,{clearActiveCookie:_0x217455}=await import(_0x102650(0xab));_0x217455();}};export async function runCommand(_0x4310ab,_0x7015b3){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4310ab)?withUpdateNotice(_0x4310ab):_0x4310ab,_0x7015b3,runnerAdapter);}function shouldAttachUpdateNotice(_0x3059bf){const _0xa36c65=a172_0x1a42f;if(_0x3059bf[_0xa36c65(0x93)]===![])return![];return!['update',_0xa36c65(0xae),'doctor']['includes'](_0x3059bf[_0xa36c65(0xb2)]);}function withUpdateNotice(_0x44b01c){return{..._0x44b01c,async 'execute'(_0x1833b1){const _0x538daf=a172_0x1451,_0x5f413e=shouldResolveUpdateNotice(_0x1833b1)?resolveLatestUpdateNotice()[_0x538daf(0xc0)](()=>null):Promise[_0x538daf(0xbe)](null),_0x3f14aa=await _0x44b01c['execute'](_0x1833b1);return attachUpdateNotice(_0x3f14aa,await _0x5f413e);}};}function shouldResolveUpdateNotice(_0x2b0b45){const _0x407bcf=a172_0x1a42f;return _0x2b0b45[_0x407bcf(0xba)]===_0x407bcf(0xa3)&&!_0x2b0b45[_0x407bcf(0xac)];}function attachUpdateNotice(_0x3c3a4c,_0x47348b){const _0x921137=a172_0x1a42f;if(!_0x47348b||!_0x3c3a4c||typeof _0x3c3a4c!==_0x921137(0x98))return _0x3c3a4c;const _0x23e82d=_0x3c3a4c,_0x3b5f2d=typeof _0x23e82d[_0x921137(0xb7)]===_0x921137(0x98)&&_0x23e82d[_0x921137(0xb7)]!==null?_0x23e82d[_0x921137(0xb7)]:{};return{..._0x23e82d,'_notice':{..._0x3b5f2d,'update':_0x47348b}};}
@@ -1 +1 @@
1
- function a173_0x3d1e(_0x20ccef,_0x5b1c39){_0x20ccef=_0x20ccef-0x1d5;const _0x2bc828=a173_0x2bc8();let _0x3d1e07=_0x2bc828[_0x20ccef];return _0x3d1e07;}(function(_0x392462,_0x3037c2){const _0x5f40b6=a173_0x3d1e,_0x4da308=_0x392462();while(!![]){try{const _0x463160=parseInt(_0x5f40b6(0x1db))/0x1+-parseInt(_0x5f40b6(0x1da))/0x2+parseInt(_0x5f40b6(0x1d8))/0x3+parseInt(_0x5f40b6(0x1d6))/0x4+-parseInt(_0x5f40b6(0x1d5))/0x5+-parseInt(_0x5f40b6(0x1d7))/0x6+parseInt(_0x5f40b6(0x1d9))/0x7;if(_0x463160===_0x3037c2)break;else _0x4da308['push'](_0x4da308['shift']());}catch(_0x5cffbf){_0x4da308['push'](_0x4da308['shift']());}}}(a173_0x2bc8,0xc1a89));import{buildSchemaPayload as a173_0x1c398b}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';function a173_0x2bc8(){const _0x27a712=['353148cEmRrt','24629437zvtMKB','2958040qzBjsW','443601VEkryu','6637825bFWJCG','1680892cvuGcw','5401326tSobyC'];a173_0x2bc8=function(){return _0x27a712;};return a173_0x2bc8();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x16dad9,findDefinition:_0x1c96bc}=await import('../commands/registry.js');return a173_0x1c398b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x16dad9,'buildAllFlags':buildAllFlags,'findDefinition':_0x1c96bc});}
1
+ (function(_0x7cc78,_0x1461c3){const _0x175aaa=a173_0xd2ee,_0x3f0a4c=_0x7cc78();while(!![]){try{const _0x29ba3f=parseInt(_0x175aaa(0x115))/0x1+-parseInt(_0x175aaa(0x113))/0x2*(parseInt(_0x175aaa(0x110))/0x3)+parseInt(_0x175aaa(0x114))/0x4*(parseInt(_0x175aaa(0x10e))/0x5)+parseInt(_0x175aaa(0x10f))/0x6*(-parseInt(_0x175aaa(0x117))/0x7)+parseInt(_0x175aaa(0x112))/0x8+-parseInt(_0x175aaa(0x111))/0x9+parseInt(_0x175aaa(0x116))/0xa;if(_0x29ba3f===_0x1461c3)break;else _0x3f0a4c['push'](_0x3f0a4c['shift']());}catch(_0x405150){_0x3f0a4c['push'](_0x3f0a4c['shift']());}}}(a173_0xf2e2,0x2bd6a));import{buildSchemaPayload as a173_0x31f2bc}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';function a173_0xf2e2(){const _0x3c68bb=['14935bRprwe','6TxTegV','177HbcLgc','217359DhAmFU','2758584bZKOeO','2678AhQLNq','180ukGbXV','14721ACEgSs','142670MYnuWx','1578584VYXrtG','../commands/registry.js'];a173_0xf2e2=function(){return _0x3c68bb;};return a173_0xf2e2();}import{getCliVersion}from'../utils/version.js';function a173_0xd2ee(_0x4f6942,_0x25771d){_0x4f6942=_0x4f6942-0x10d;const _0xf2e2b3=a173_0xf2e2();let _0xd2eed8=_0xf2e2b3[_0x4f6942];return _0xd2eed8;}export async function buildSchemaPayload(){const _0x11a3bf=a173_0xd2ee,{serviceRegistry:_0x28ebad,findDefinition:_0x3df56b}=await import(_0x11a3bf(0x10d));return a173_0x31f2bc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x28ebad,'buildAllFlags':buildAllFlags,'findDefinition':_0x3df56b});}
@@ -1 +1 @@
1
- (function(_0x25ba6d,_0x5d8683){var _0x467306=a174_0x2913,_0x575b20=_0x25ba6d();while(!![]){try{var _0x187a59=parseInt(_0x467306(0xc0))/0x1+-parseInt(_0x467306(0xc2))/0x2*(parseInt(_0x467306(0xc6))/0x3)+parseInt(_0x467306(0xc5))/0x4+-parseInt(_0x467306(0xc1))/0x5*(-parseInt(_0x467306(0xbf))/0x6)+-parseInt(_0x467306(0xbe))/0x7+-parseInt(_0x467306(0xc3))/0x8+parseInt(_0x467306(0xc4))/0x9;if(_0x187a59===_0x5d8683)break;else _0x575b20['push'](_0x575b20['shift']());}catch(_0x54ad1f){_0x575b20['push'](_0x575b20['shift']());}}}(a174_0x3392,0x6ea67));function a174_0x2913(_0x46fc24,_0x39f7c7){_0x46fc24=_0x46fc24-0xbe;var _0x339228=a174_0x3392();var _0x291312=_0x339228[_0x46fc24];return _0x291312;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a174_0x3392(){var _0x39ef63=['205KCyBDr','1348KneDWW','5794888OdjqVr','7403976uMRExm','767532jRqDET','2166nOAjSc','3947307UBSnQs','74622VgNvek','703649JgVOEj'];a174_0x3392=function(){return _0x39ef63;};return a174_0x3392();}
1
+ (function(_0x9ca3a,_0x50cefe){var _0x1da6df=a174_0x19e2,_0x7fa580=_0x9ca3a();while(!![]){try{var _0xbba727=parseInt(_0x1da6df(0x1a3))/0x1+-parseInt(_0x1da6df(0x1a2))/0x2*(parseInt(_0x1da6df(0x1a7))/0x3)+parseInt(_0x1da6df(0x19f))/0x4*(-parseInt(_0x1da6df(0x1a6))/0x5)+parseInt(_0x1da6df(0x1a1))/0x6+-parseInt(_0x1da6df(0x1a5))/0x7*(-parseInt(_0x1da6df(0x1a8))/0x8)+-parseInt(_0x1da6df(0x1a4))/0x9*(parseInt(_0x1da6df(0x1a0))/0xa)+parseInt(_0x1da6df(0x1a9))/0xb;if(_0xbba727===_0x50cefe)break;else _0x7fa580['push'](_0x7fa580['shift']());}catch(_0x393206){_0x7fa580['push'](_0x7fa580['shift']());}}}(a174_0x50f2,0xba28e));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a174_0x19e2(_0x4f9951,_0x8fe11){_0x4f9951=_0x4f9951-0x19f;var _0x50f275=a174_0x50f2();var _0x19e240=_0x50f275[_0x4f9951];return _0x19e240;}function a174_0x50f2(){var _0x33e412=['30YiuFpB','2794236ZMofMr','2991546thrXFs','92014GuOqSO','4476870VJSvqV','4006499KuhBBj','65UIiRga','3crqWlx','16bXuqKd','26980547rtZukh','124504TVfzJs'];a174_0x50f2=function(){return _0x33e412;};return a174_0x50f2();}
@@ -1 +1 @@
1
- function a175_0x5814(){const _0x44f1c3=['17631647BgVWHB','11140944qkTTnT','1iYbtDX','7MSbObL','836613TZRLDs','5MfPnWj','2.2.4-beta.3','10oWhaJs','2026-06-18T10:00:09.076Z','4016724dUPDUS','1760082OkDvZS','9205092icSNxK','9d0dd0b','8602623exVZZo'];a175_0x5814=function(){return _0x44f1c3;};return a175_0x5814();}const a175_0x5385a9=a175_0x556c;function a175_0x556c(_0x1c7f2f,_0x1a5f10){_0x1c7f2f=_0x1c7f2f-0x1d3;const _0x581427=a175_0x5814();let _0x556c39=_0x581427[_0x1c7f2f];return _0x556c39;}(function(_0x2fee5c,_0xac0a68){const _0x55c287=a175_0x556c,_0x4c48ca=_0x2fee5c();while(!![]){try{const _0x11e836=-parseInt(_0x55c287(0x1de))/0x1*(-parseInt(_0x55c287(0x1d8))/0x2)+-parseInt(_0x55c287(0x1e0))/0x3+-parseInt(_0x55c287(0x1d7))/0x4*(-parseInt(_0x55c287(0x1d3))/0x5)+-parseInt(_0x55c287(0x1d9))/0x6+-parseInt(_0x55c287(0x1df))/0x7*(-parseInt(_0x55c287(0x1dd))/0x8)+parseInt(_0x55c287(0x1db))/0x9*(parseInt(_0x55c287(0x1d5))/0xa)+-parseInt(_0x55c287(0x1dc))/0xb;if(_0x11e836===_0xac0a68)break;else _0x4c48ca['push'](_0x4c48ca['shift']());}catch(_0x1d51aa){_0x4c48ca['push'](_0x4c48ca['shift']());}}}(a175_0x5814,0xc7675));export const VERSION=a175_0x5385a9(0x1d4);export const GIT_TAG='v2.2.4-beta.3';export const GIT_COMMIT=a175_0x5385a9(0x1da);export const BUILD_TIME=a175_0x5385a9(0x1d6);
1
+ const a175_0x59bef1=a175_0x445d;function a175_0x445d(_0xf1f2ec,_0x181652){_0xf1f2ec=_0xf1f2ec-0x16e;const _0x4b1ad4=a175_0x4b1a();let _0x445d79=_0x4b1ad4[_0xf1f2ec];return _0x445d79;}(function(_0x26ebdf,_0x272ff9){const _0x50c832=a175_0x445d,_0x18eb1b=_0x26ebdf();while(!![]){try{const _0x524d4f=-parseInt(_0x50c832(0x172))/0x1*(-parseInt(_0x50c832(0x16f))/0x2)+-parseInt(_0x50c832(0x176))/0x3+parseInt(_0x50c832(0x170))/0x4*(-parseInt(_0x50c832(0x171))/0x5)+-parseInt(_0x50c832(0x17b))/0x6*(-parseInt(_0x50c832(0x173))/0x7)+-parseInt(_0x50c832(0x16e))/0x8*(-parseInt(_0x50c832(0x179))/0x9)+parseInt(_0x50c832(0x17d))/0xa*(parseInt(_0x50c832(0x175))/0xb)+-parseInt(_0x50c832(0x17c))/0xc;if(_0x524d4f===_0x272ff9)break;else _0x18eb1b['push'](_0x18eb1b['shift']());}catch(_0x1fbda5){_0x18eb1b['push'](_0x18eb1b['shift']());}}}(a175_0x4b1a,0x73195));function a175_0x4b1a(){const _0x1f2112=['v2.2.4-beta.4','132fayAQH','1360683KRTxMG','f542412','2026-06-27T16:19:15.535Z','9mfhUNe','2.2.4-beta.4','3454134nDNxYO','15172692zSjKnV','441780MxFvif','3110032VYSRum','4aIlyQQ','16RTVKAL','14320PSTfov','353137FmekOm','7BPKcSn'];a175_0x4b1a=function(){return _0x1f2112;};return a175_0x4b1a();}export const VERSION=a175_0x59bef1(0x17a);export const GIT_TAG=a175_0x59bef1(0x174);export const GIT_COMMIT=a175_0x59bef1(0x177);export const BUILD_TIME=a175_0x59bef1(0x178);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0xcad2ea,_0xbe4458){var _0x17f408=a176_0x2a02,_0x3e51f0=_0xcad2ea();while(!![]){try{var _0x4605ec=parseInt(_0x17f408(0x170))/0x1*(-parseInt(_0x17f408(0x174))/0x2)+parseInt(_0x17f408(0x177))/0x3+parseInt(_0x17f408(0x175))/0x4+-parseInt(_0x17f408(0x16f))/0x5+parseInt(_0x17f408(0x179))/0x6*(-parseInt(_0x17f408(0x173))/0x7)+parseInt(_0x17f408(0x17b))/0x8*(parseInt(_0x17f408(0x17c))/0x9)+parseInt(_0x17f408(0x176))/0xa;if(_0x4605ec===_0xbe4458)break;else _0x3e51f0['push'](_0x3e51f0['shift']());}catch(_0x97dd16){_0x3e51f0['push'](_0x3e51f0['shift']());}}}(a176_0x1e0b,0xdf74c));import a176_0x3bd01b from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a176_0x2a02(_0x1007d2,_0x3d0dea){_0x1007d2=_0x1007d2-0x16e;var _0x1e0b31=a176_0x1e0b();var _0x2a024a=_0x1e0b31[_0x1007d2];return _0x2a024a;}function a176_0x1e0b(){var _0x2fc8d2=['21gddiVv','2jglBbl','3606484QiXmqR','17922450jkBGyq','3310314CeiotD','\x20--help','3518202gxMTzy','\x20to\x20view\x20available\x20commands.','1055368Qkjfyb','45czuVvd','bold','1289830JWrWPF','1524566fAtVPi','log','green'];a176_0x1e0b=function(){return _0x2fc8d2;};return a176_0x1e0b();}export function showHelp(){var _0x2ff558=a176_0x2a02;console['log'](),console[_0x2ff558(0x171)](a176_0x3bd01b[_0x2ff558(0x172)][_0x2ff558(0x16e)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2ff558(0x171)](),console[_0x2ff558(0x171)]('\x20\x20Use\x20'+a176_0x3bd01b[_0x2ff558(0x172)][_0x2ff558(0x16e)](CLI_BIN_NAME+_0x2ff558(0x178))+_0x2ff558(0x17a)),console[_0x2ff558(0x171)]();}
1
+ function a176_0x1ae7(){var _0x32cf44=['1155613Pcxwfh','\x20--help','\x20to\x20view\x20available\x20commands.','942MxrdyR','3EKJuHM','8Vkwsuu','2569924zPGWry','9393201uHpcVX','log','11240070svFCJw','19516aBRjxw','bold','6446855NlfEwn','\x20\x20Use\x20','1707834oYSSAb','green'];a176_0x1ae7=function(){return _0x32cf44;};return a176_0x1ae7();}(function(_0x2dfcbd,_0x27daba){var _0x1067be=a176_0x5551,_0x53d6e2=_0x2dfcbd();while(!![]){try{var _0x383008=-parseInt(_0x1067be(0xb0))/0x1+parseInt(_0x1067be(0xae))/0x2+-parseInt(_0x1067be(0xb4))/0x3*(parseInt(_0x1067be(0xb6))/0x4)+parseInt(_0x1067be(0xbc))/0x5+-parseInt(_0x1067be(0xb3))/0x6*(-parseInt(_0x1067be(0xba))/0x7)+-parseInt(_0x1067be(0xb5))/0x8*(-parseInt(_0x1067be(0xb7))/0x9)+-parseInt(_0x1067be(0xb9))/0xa;if(_0x383008===_0x27daba)break;else _0x53d6e2['push'](_0x53d6e2['shift']());}catch(_0x131ab5){_0x53d6e2['push'](_0x53d6e2['shift']());}}}(a176_0x1ae7,0xab880));import a176_0x350557 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a176_0x5551(_0x5adfa0,_0x400ee8){_0x5adfa0=_0x5adfa0-0xae;var _0x1ae7d2=a176_0x1ae7();var _0x55515b=_0x1ae7d2[_0x5adfa0];return _0x55515b;}export function showHelp(){var _0x12790a=a176_0x5551;console['log'](),console[_0x12790a(0xb8)](a176_0x350557[_0x12790a(0xaf)][_0x12790a(0xbb)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x12790a(0xb8)](),console[_0x12790a(0xb8)](_0x12790a(0xbd)+a176_0x350557[_0x12790a(0xaf)]['bold'](CLI_BIN_NAME+_0x12790a(0xb1))+_0x12790a(0xb2)),console[_0x12790a(0xb8)]();}
@@ -1 +1 @@
1
- (function(_0x3723a1,_0x305b45){const _0x1d69bc=a177_0x3495,_0x5b4f4a=_0x3723a1();while(!![]){try{const _0x2a1334=-parseInt(_0x1d69bc(0x16d))/0x1+-parseInt(_0x1d69bc(0x170))/0x2*(-parseInt(_0x1d69bc(0x16b))/0x3)+parseInt(_0x1d69bc(0x17d))/0x4+parseInt(_0x1d69bc(0x189))/0x5+-parseInt(_0x1d69bc(0x180))/0x6+-parseInt(_0x1d69bc(0x16f))/0x7*(-parseInt(_0x1d69bc(0x185))/0x8)+parseInt(_0x1d69bc(0x171))/0x9;if(_0x2a1334===_0x305b45)break;else _0x5b4f4a['push'](_0x5b4f4a['shift']());}catch(_0x34d1e5){_0x5b4f4a['push'](_0x5b4f4a['shift']());}}}(a177_0x3cfa,0x7eec7));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(_0x21d44b){const _0x37182e=a177_0x3495,_0x361b56=[];for(const [_0x1e7aee,_0x1c264f]of Object[_0x37182e(0x182)](_0x21d44b)){if(_0x1c264f===!![]){const _0x5914f4=_0x1e7aee['replace'](/([A-Z])/g,_0x37182e(0x17c))[_0x37182e(0x18d)]();_0x361b56[_0x37182e(0x17a)](_0x5914f4);}}return _0x361b56;}export function parseDynamicFlags(){const _0x28c2c7=a177_0x3495,_0x57b286=[];for(let _0x427120=0x3;_0x427120<process[_0x28c2c7(0x178)][_0x28c2c7(0x17f)];_0x427120++){const _0x59855d=process['argv'][_0x427120];if(_0x59855d&&_0x59855d[_0x28c2c7(0x176)]('--')){const _0x420591=_0x59855d[_0x28c2c7(0x17b)](0x2);_0x420591&&!_0x420591[_0x28c2c7(0x18a)]('=')&&_0x57b286[_0x28c2c7(0x17a)](_0x420591);}}return _0x57b286;}export function getAllProvidedFlags(_0x57b67e){const _0x460a12=a177_0x3495,_0x4cb7b1=camelCaseFlagsToKebab(_0x57b67e),_0x5ad46d=parseDynamicFlags(),_0x67fc76=new Set([..._0x4cb7b1,..._0x5ad46d]);return Array[_0x460a12(0x16e)](_0x67fc76);}export function normalizeLegacyBffSaveFlags(_0x16e5fe){const _0x105358=a177_0x3495,_0x2b9c66=new Set(_0x16e5fe);return _0x2b9c66[_0x105358(0x179)]('dangerously-bff-save')&&_0x2b9c66[_0x105358(0x183)](_0x105358(0x186)),Array[_0x105358(0x16e)](_0x2b9c66);}function a177_0x3cfa(){const _0x2ee193=['has','push','slice','-$1','571744LjSMIL','(empty)','length','5433642FfBqoe','\x20skill\x20--help\x0a\x20\x20','entries','add','\x0aAvailable\x20commands:','8QZiKmy','enable-bff-save','log','skill','3817540qLgArh','includes','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','toLowerCase','6228ZHMDhE','error','689384QEKMEe','from','3068653AqvUAX','416iHkkSV','3044151TaKoCX','help','Equivalent\x20command:\x20','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','cwd','startsWith','Error:\x20Unsupported\x20command:\x20','argv'];a177_0x3cfa=function(){return _0x2ee193;};return a177_0x3cfa();}function a177_0x3495(_0x3dec9d,_0x26efa1){_0x3dec9d=_0x3dec9d-0x16b;const _0x3cfae6=a177_0x3cfa();let _0x3495bf=_0x3cfae6[_0x3dec9d];return _0x3495bf;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x52a1ad,_0x2741fd,_0x5f1023){const _0x5ca050=a177_0x3495;logger['setLogPath'](process[_0x5ca050(0x175)]());if(_0x5f1023?.[_0x5ca050(0x172)]||_0x52a1ad==='--help'){showHelp();return;}console[_0x5ca050(0x16c)](_0x5ca050(0x177)+(_0x52a1ad||_0x5ca050(0x17e))),console[_0x5ca050(0x187)](_0x5ca050(0x184)),console[_0x5ca050(0x187)]('\x20\x20'+CLI_BIN_NAME+_0x5ca050(0x174)),console[_0x5ca050(0x187)]('\x20\x20'+CLI_BIN_NAME+_0x5ca050(0x18b)),console[_0x5ca050(0x187)](''),console[_0x5ca050(0x187)](_0x5ca050(0x173)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5ca050(0x16c)](_0x5ca050(0x188),'不支持的命令:\x20'+_0x52a1ad),process['exit'](0x1);}function showHelp(){const _0x5481b2=a177_0x3495;console[_0x5481b2(0x187)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x5481b2(0x181)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x5481b2(0x18c));}
1
+ (function(_0x246374,_0x54596e){const _0x2afbda=a177_0x4733,_0xee7929=_0x246374();while(!![]){try{const _0x369c23=-parseInt(_0x2afbda(0x109))/0x1+-parseInt(_0x2afbda(0xff))/0x2*(parseInt(_0x2afbda(0x104))/0x3)+parseInt(_0x2afbda(0x107))/0x4*(-parseInt(_0x2afbda(0xec))/0x5)+parseInt(_0x2afbda(0xf9))/0x6+-parseInt(_0x2afbda(0xf0))/0x7+parseInt(_0x2afbda(0xef))/0x8+parseInt(_0x2afbda(0xea))/0x9*(parseInt(_0x2afbda(0xfd))/0xa);if(_0x369c23===_0x54596e)break;else _0xee7929['push'](_0xee7929['shift']());}catch(_0x40deda){_0xee7929['push'](_0xee7929['shift']());}}}(a177_0x1d9e,0x977de));import{logger}from'../utils/logger.js';function a177_0x4733(_0xae5a97,_0x1ce447){_0xae5a97=_0xae5a97-0xe5;const _0x1d9e04=a177_0x1d9e();let _0x47332e=_0x1d9e04[_0xae5a97];return _0x47332e;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2f90bf){const _0x337771=a177_0x4733,_0x49e13c=[];for(const [_0x53d45c,_0xf6dc51]of Object[_0x337771(0xe6)](_0x2f90bf)){if(_0xf6dc51===!![]){const _0x2e8828=_0x53d45c[_0x337771(0xfb)](/([A-Z])/g,_0x337771(0xe8))[_0x337771(0xe7)]();_0x49e13c[_0x337771(0xf3)](_0x2e8828);}}return _0x49e13c;}export function parseDynamicFlags(){const _0x5bccb5=a177_0x4733,_0x2220e4=[];for(let _0x45df09=0x3;_0x45df09<process[_0x5bccb5(0xeb)][_0x5bccb5(0x100)];_0x45df09++){const _0x2569cc=process[_0x5bccb5(0xeb)][_0x45df09];if(_0x2569cc&&_0x2569cc[_0x5bccb5(0x108)]('--')){const _0x21e70a=_0x2569cc[_0x5bccb5(0xfa)](0x2);_0x21e70a&&!_0x21e70a['includes']('=')&&_0x2220e4[_0x5bccb5(0xf3)](_0x21e70a);}}return _0x2220e4;}export function getAllProvidedFlags(_0x29d658){const _0x55cbcc=a177_0x4733,_0x4b08bd=camelCaseFlagsToKebab(_0x29d658),_0x26ba66=parseDynamicFlags(),_0x389e37=new Set([..._0x4b08bd,..._0x26ba66]);return Array[_0x55cbcc(0x102)](_0x389e37);}export function normalizeLegacyBffSaveFlags(_0x482287){const _0x4d8b9b=a177_0x4733,_0x46be6d=new Set(_0x482287);return _0x46be6d[_0x4d8b9b(0xfc)](_0x4d8b9b(0x103))&&_0x46be6d[_0x4d8b9b(0xfe)](_0x4d8b9b(0xe5)),Array[_0x4d8b9b(0x102)](_0x46be6d);}function a177_0x1d9e(){const _0x4cbfd3=['5804hoCLnl','length','Equivalent\x20command:\x20','from','dangerously-bff-save','369yBUHsE','(empty)','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','4wyWiaH','startsWith','1206454tiHhHC','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','enable-bff-save','entries','toLowerCase','-$1','cwd','9EQTzcw','argv','5904695zwXuCJ','skill','log','3063688xkWUle','170282wgITmK','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','Error:\x20Unsupported\x20command:\x20','push','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','error','\x20skill\x20--help\x0a\x20\x20','\x0aAvailable\x20commands:','setLogPath','5899530uplZyE','slice','replace','has','20229590deFCXP','add'];a177_0x1d9e=function(){return _0x4cbfd3;};return a177_0x1d9e();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x17788d,_0x2000d0,_0x5e3ae4){const _0x3dcd0d=a177_0x4733;logger[_0x3dcd0d(0xf8)](process[_0x3dcd0d(0xe9)]());if(_0x5e3ae4?.['help']||_0x17788d==='--help'){showHelp();return;}console[_0x3dcd0d(0xf5)](_0x3dcd0d(0xf2)+(_0x17788d||_0x3dcd0d(0x105))),console[_0x3dcd0d(0xee)](_0x3dcd0d(0xf7)),console[_0x3dcd0d(0xee)]('\x20\x20'+CLI_BIN_NAME+_0x3dcd0d(0x10a)),console[_0x3dcd0d(0xee)]('\x20\x20'+CLI_BIN_NAME+_0x3dcd0d(0x106)),console['log'](''),console[_0x3dcd0d(0xee)](_0x3dcd0d(0x101)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3dcd0d(0xf5)](_0x3dcd0d(0xed),'不支持的命令:\x20'+_0x17788d),process['exit'](0x1);}function showHelp(){const _0x258858=a177_0x4733;console[_0x258858(0xee)](_0x258858(0xf1)+CLI_BIN_NAME+_0x258858(0xf6)+CLI_BIN_NAME+_0x258858(0xf4)+SKILLS_INSTALL_COMMAND_LINE+_0x258858(0x10b));}
@@ -1 +1 @@
1
- const a178_0x48b3e0=a178_0x5913;(function(_0x762f73,_0x4da1af){const _0x57f3aa=a178_0x5913,_0x51afb1=_0x762f73();while(!![]){try{const _0x16dd6d=parseInt(_0x57f3aa(0xde))/0x1*(-parseInt(_0x57f3aa(0xd7))/0x2)+-parseInt(_0x57f3aa(0xda))/0x3+-parseInt(_0x57f3aa(0xd3))/0x4+parseInt(_0x57f3aa(0xe8))/0x5+-parseInt(_0x57f3aa(0xdf))/0x6*(parseInt(_0x57f3aa(0xd2))/0x7)+-parseInt(_0x57f3aa(0xe1))/0x8*(-parseInt(_0x57f3aa(0xd9))/0x9)+parseInt(_0x57f3aa(0xdb))/0xa*(parseInt(_0x57f3aa(0xd6))/0xb);if(_0x16dd6d===_0x4da1af)break;else _0x51afb1['push'](_0x51afb1['shift']());}catch(_0x1cc76a){_0x51afb1['push'](_0x51afb1['shift']());}}}(a178_0x9337,0x51677));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_0x48b3e0(0xdd);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a178_0x48b3e0(0xee);export const RABETBASE_SKILL_SOURCE=a178_0x48b3e0(0xe4);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a178_0x48b3e0(0xd8);function a178_0x5913(_0x1495a4,_0x10c93f){_0x1495a4=_0x1495a4-0xd2;const _0x93370f=a178_0x9337();let _0x59132c=_0x93370f[_0x1495a4];return _0x59132c;}export function buildNpxSkillsAddArgv(_0x24a98e){const _0x3b0738=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x24a98e&&_0x3b0738['push'](NPX_SKILLS_FLAG_SKILL,_0x24a98e),_0x3b0738;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a178_0x48b3e0(0xea)]('\x20');function a178_0x9337(){const _0x3a8ed6=['stdout','join','log','stderr','trim','--skill','skill','52766dIuEHO','1024512IPCIxM','pipe','stdio','22QnaAak','50jWmbBH','Lovrabet','9NGosYN','1396596tfbgSH','1406230qMJUDF','status','skills','10529TieDZP','138DUHFCh','yes','4841168bowYuS','inherit','unknown','lovrabet/rabetbase','exit\x20','npx','toString','3026490ElnaDU'];a178_0x9337=function(){return _0x3a8ed6;};return a178_0x9337();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a178_0x48b3e0(0xe6),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a178_0x48b3e0(0xea)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x16b9df,_0x3af548){const _0x525f83=a178_0x48b3e0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5ca2b2=_0x3af548?.[_0x525f83(0xd5)]??_0x525f83(0xe2),_0x56fb86=resolveNpmBin(_0x525f83(0xe6)),_0x1b2f8a=buildNpxSkillsAddArgv(_0x3af548?.[_0x525f83(0xef)]),_0xe80606=[_0x525f83(0xe6),..._0x1b2f8a][_0x525f83(0xea)]('\x20');console[_0x525f83(0xeb)]('*\x20'+_0xe80606);const _0x5c23ba=spawnSync(_0x56fb86,_0x1b2f8a,{'cwd':_0x16b9df,'stdio':_0x5ca2b2,'env':process.env,'shell':![]}),_0x474271=_0x5c23ba[_0x525f83(0xdc)];if(_0x474271===0x0)return{'ok':!![],'status':0x0};let _0x356c20='exit\x20'+(_0x474271??'unknown');if(_0x5ca2b2===_0x525f83(0xd4)){const _0x347018=_0x5c23ba[_0x525f83(0xec)]?_0x5c23ba['stderr']['toString']()[_0x525f83(0xed)]():'',_0x1e3546=_0x5c23ba[_0x525f83(0xe9)]?_0x5c23ba[_0x525f83(0xe9)][_0x525f83(0xe7)]()[_0x525f83(0xed)]():'';if(_0x347018)_0x356c20=_0x347018;else{if(_0x1e3546)_0x356c20=_0x1e3546;}}return{'ok':![],'status':_0x474271??null,'error':_0x356c20};}export function runNpxSkillsRemove(_0x52e3f1,_0x588b92,_0x2c15c4=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4ed38a=a178_0x48b3e0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x61a49f=_0x588b92?.[_0x4ed38a(0xd5)]??_0x4ed38a(0xe2),_0x225e99=resolveNpmBin(_0x4ed38a(0xe6)),_0x346d1b=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x2c15c4,NPX_SKILLS_FLAG_SKILL,_0x588b92?.[_0x4ed38a(0xef)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x588b92?.[_0x4ed38a(0xe0)]?['-y']:[]],_0x2cda9a=[_0x225e99,..._0x346d1b][_0x4ed38a(0xea)]('\x20');console['log']('*\x20'+_0x2cda9a);const _0x569faa=spawnSync(_0x225e99,_0x346d1b,{'cwd':_0x52e3f1,'stdio':_0x61a49f,'env':process.env,'shell':![]}),_0xab489e=_0x569faa[_0x4ed38a(0xdc)];if(_0xab489e===0x0)return{'ok':!![],'status':0x0};let _0x5c11b3='exit\x20'+(_0xab489e??_0x4ed38a(0xe3));if(_0x61a49f===_0x4ed38a(0xd4)){const _0x32574d=_0x569faa[_0x4ed38a(0xec)]?_0x569faa[_0x4ed38a(0xec)][_0x4ed38a(0xe7)]()[_0x4ed38a(0xed)]():'',_0x52f0b5=_0x569faa[_0x4ed38a(0xe9)]?_0x569faa[_0x4ed38a(0xe9)]['toString']()[_0x4ed38a(0xed)]():'';if(_0x32574d)_0x5c11b3=_0x32574d;else{if(_0x52f0b5)_0x5c11b3=_0x52f0b5;}}return{'ok':![],'status':_0xab489e??null,'error':_0x5c11b3};}export function runNpxSkillsAddGlobal(_0x30b19b,_0x5dada4,_0x2a665c){const _0x17e44a=a178_0x48b3e0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x10ff80=_0x2a665c?.['stdio']??_0x17e44a(0xe2),_0x325e4f=resolveNpmBin(_0x17e44a(0xe6)),_0x388bc7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5dada4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x17b006=[_0x17e44a(0xe6),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5dada4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x17e44a(0xea)]('\x20');console[_0x17e44a(0xeb)]('*\x20'+_0x17b006);const _0x2828f5=spawnSync(_0x325e4f,_0x388bc7,{'cwd':_0x30b19b,'stdio':_0x10ff80,'env':process.env,'shell':![]}),_0x10c2fe=_0x2828f5[_0x17e44a(0xdc)];if(_0x10c2fe===0x0)return{'ok':!![],'status':0x0};let _0x22bdfd=_0x17e44a(0xe5)+(_0x10c2fe??'unknown');if(_0x10ff80==='pipe'){const _0x3eb1d8=_0x2828f5[_0x17e44a(0xec)]?_0x2828f5[_0x17e44a(0xec)]['toString']()[_0x17e44a(0xed)]():'',_0x17165d=_0x2828f5[_0x17e44a(0xe9)]?_0x2828f5[_0x17e44a(0xe9)][_0x17e44a(0xe7)]()[_0x17e44a(0xed)]():'';if(_0x3eb1d8)_0x22bdfd=_0x3eb1d8;else{if(_0x17165d)_0x22bdfd=_0x17165d;}}return{'ok':![],'status':_0x10c2fe??null,'error':_0x22bdfd};}
1
+ const a178_0x335f57=a178_0x5a0f;(function(_0x29e846,_0x9359c){const _0x15d58f=a178_0x5a0f,_0x178688=_0x29e846();while(!![]){try{const _0x4b798e=-parseInt(_0x15d58f(0xe1))/0x1+parseInt(_0x15d58f(0xe6))/0x2+-parseInt(_0x15d58f(0xf6))/0x3*(-parseInt(_0x15d58f(0xee))/0x4)+-parseInt(_0x15d58f(0xf0))/0x5*(-parseInt(_0x15d58f(0xe3))/0x6)+parseInt(_0x15d58f(0xed))/0x7*(-parseInt(_0x15d58f(0xde))/0x8)+parseInt(_0x15d58f(0xe8))/0x9*(-parseInt(_0x15d58f(0xd7))/0xa)+-parseInt(_0x15d58f(0xda))/0xb*(parseInt(_0x15d58f(0xf5))/0xc);if(_0x4b798e===_0x9359c)break;else _0x178688['push'](_0x178688['shift']());}catch(_0x2ad94b){_0x178688['push'](_0x178688['shift']());}}}(a178_0x197a,0x2c9eb));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a178_0x335f57(0xe2);export const NPX_SKILLS_FLAG_SKILL=a178_0x335f57(0xf2);export const RABETBASE_SKILL_SOURCE=a178_0x335f57(0xe5);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a178_0x335f57(0xec);export function buildNpxSkillsAddArgv(_0x455f5a){const _0x40cb76=a178_0x335f57,_0x25ea4c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x455f5a&&_0x25ea4c[_0x40cb76(0xe7)](NPX_SKILLS_FLAG_SKILL,_0x455f5a),_0x25ea4c;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a178_0x335f57(0xdc)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a178_0x335f57(0xd9),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a178_0x335f57(0xdc)]('\x20');function a178_0x5a0f(_0x33ce5b,_0x25b372){_0x33ce5b=_0x33ce5b-0xd7;const _0x197a5c=a178_0x197a();let _0x5a0f39=_0x197a5c[_0x33ce5b];return _0x5a0f39;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3c0b4c,_0x6316d1){const _0x7dcd4c=a178_0x335f57;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4e3bca=_0x6316d1?.[_0x7dcd4c(0xef)]??_0x7dcd4c(0xeb),_0x27061e=resolveNpmBin('npx'),_0x4204cf=buildNpxSkillsAddArgv(_0x6316d1?.[_0x7dcd4c(0xdb)]),_0x1760bd=[_0x7dcd4c(0xd9),..._0x4204cf][_0x7dcd4c(0xdc)]('\x20');console[_0x7dcd4c(0xe9)]('*\x20'+_0x1760bd);const _0x159cbf=spawnSync(_0x27061e,_0x4204cf,{'cwd':_0x3c0b4c,'stdio':_0x4e3bca,'env':process.env,'shell':![]}),_0x23b87f=_0x159cbf[_0x7dcd4c(0xe0)];if(_0x23b87f===0x0)return{'ok':!![],'status':0x0};let _0x39cfbe=_0x7dcd4c(0xdf)+(_0x23b87f??_0x7dcd4c(0xf3));if(_0x4e3bca===_0x7dcd4c(0xe4)){const _0x16d526=_0x159cbf['stderr']?_0x159cbf[_0x7dcd4c(0xdd)][_0x7dcd4c(0xea)]()[_0x7dcd4c(0xd8)]():'',_0x3b7bcc=_0x159cbf[_0x7dcd4c(0xf4)]?_0x159cbf[_0x7dcd4c(0xf4)][_0x7dcd4c(0xea)]()[_0x7dcd4c(0xd8)]():'';if(_0x16d526)_0x39cfbe=_0x16d526;else{if(_0x3b7bcc)_0x39cfbe=_0x3b7bcc;}}return{'ok':![],'status':_0x23b87f??null,'error':_0x39cfbe};}function a178_0x197a(){const _0x3b0c15=['143011pAjjKH','skill','join','stderr','83896CIznta','exit\x20','status','91967igSGDY','add','222hoaxiw','pipe','lovrabet/rabetbase','638302DhEfIj','push','1009053OkPjAj','log','toString','inherit','Lovrabet','14MZBsHr','2620OaOWKs','stdio','15735RetHyQ','yes','--skill','unknown','stdout','48wxHrQV','111jvsyXT','10SvQxGD','trim','npx'];a178_0x197a=function(){return _0x3b0c15;};return a178_0x197a();}export function runNpxSkillsRemove(_0xa75b1b,_0x1cc9b9,_0x4e9ab0=LEGACY_RABETBASE_SKILL_SOURCE){const _0xefcb02=a178_0x335f57;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x10c314=_0x1cc9b9?.[_0xefcb02(0xef)]??_0xefcb02(0xeb),_0x584281=resolveNpmBin(_0xefcb02(0xd9)),_0x91c56f=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x4e9ab0,NPX_SKILLS_FLAG_SKILL,_0x1cc9b9?.[_0xefcb02(0xdb)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1cc9b9?.[_0xefcb02(0xf1)]?['-y']:[]],_0x33e5ae=[_0x584281,..._0x91c56f][_0xefcb02(0xdc)]('\x20');console['log']('*\x20'+_0x33e5ae);const _0x5b8a26=spawnSync(_0x584281,_0x91c56f,{'cwd':_0xa75b1b,'stdio':_0x10c314,'env':process.env,'shell':![]}),_0x37457f=_0x5b8a26['status'];if(_0x37457f===0x0)return{'ok':!![],'status':0x0};let _0x136a7a=_0xefcb02(0xdf)+(_0x37457f??_0xefcb02(0xf3));if(_0x10c314===_0xefcb02(0xe4)){const _0x21059a=_0x5b8a26[_0xefcb02(0xdd)]?_0x5b8a26[_0xefcb02(0xdd)][_0xefcb02(0xea)]()[_0xefcb02(0xd8)]():'',_0x62806f=_0x5b8a26[_0xefcb02(0xf4)]?_0x5b8a26[_0xefcb02(0xf4)]['toString']()[_0xefcb02(0xd8)]():'';if(_0x21059a)_0x136a7a=_0x21059a;else{if(_0x62806f)_0x136a7a=_0x62806f;}}return{'ok':![],'status':_0x37457f??null,'error':_0x136a7a};}export function runNpxSkillsAddGlobal(_0xc25f6e,_0x552488,_0x2369c5){const _0x14deba=a178_0x335f57;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5eeae4=_0x2369c5?.[_0x14deba(0xef)]??_0x14deba(0xeb),_0x5381c2=resolveNpmBin('npx'),_0x469767=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x552488,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x46512f=[_0x14deba(0xd9),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x552488,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x14deba(0xdc)]('\x20');console[_0x14deba(0xe9)]('*\x20'+_0x46512f);const _0x25142d=spawnSync(_0x5381c2,_0x469767,{'cwd':_0xc25f6e,'stdio':_0x5eeae4,'env':process.env,'shell':![]}),_0xf6afc9=_0x25142d[_0x14deba(0xe0)];if(_0xf6afc9===0x0)return{'ok':!![],'status':0x0};let _0xcb0293='exit\x20'+(_0xf6afc9??'unknown');if(_0x5eeae4===_0x14deba(0xe4)){const _0x59150c=_0x25142d[_0x14deba(0xdd)]?_0x25142d[_0x14deba(0xdd)][_0x14deba(0xea)]()[_0x14deba(0xd8)]():'',_0x509de1=_0x25142d['stdout']?_0x25142d[_0x14deba(0xf4)][_0x14deba(0xea)]()[_0x14deba(0xd8)]():'';if(_0x59150c)_0xcb0293=_0x59150c;else{if(_0x509de1)_0xcb0293=_0x509de1;}}return{'ok':![],'status':_0xf6afc9??null,'error':_0xcb0293};}
@@ -1 +1 @@
1
- function a179_0x1128(){const _0x2783b6=['stringify','8JKxmzE','2658845REdUkW','1089735tBgOaw','9XFrTwD','2724700BxCQWy','test','2pjDKIU','service','message','command','[REDACTED]','12vVAOSS','8907390pPLELZ','10378670qGEBSz','1314418EgQSko','2905PhhcYC','durationMs','28152zRAAiI','some','entries','error','flags'];a179_0x1128=function(){return _0x2783b6;};return a179_0x1128();}(function(_0xb13ed1,_0xeefbde){const _0x344f38=a179_0x2c91,_0x354350=_0xb13ed1();while(!![]){try{const _0x4c860=-parseInt(_0x344f38(0x1bb))/0x1*(-parseInt(_0x344f38(0x1c3))/0x2)+parseInt(_0x344f38(0x1ce))/0x3*(-parseInt(_0x344f38(0x1cc))/0x4)+-parseInt(_0x344f38(0x1cd))/0x5+-parseInt(_0x344f38(0x1c1))/0x6+-parseInt(_0x344f38(0x1c4))/0x7*(-parseInt(_0x344f38(0x1c6))/0x8)+parseInt(_0x344f38(0x1cf))/0x9*(parseInt(_0x344f38(0x1c2))/0xa)+-parseInt(_0x344f38(0x1b9))/0xb*(parseInt(_0x344f38(0x1c0))/0xc);if(_0x4c860===_0xeefbde)break;else _0x354350['push'](_0x354350['shift']());}catch(_0x1f6616){_0x354350['push'](_0x354350['shift']());}}}(a179_0x1128,0xc8b82));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(_0x211e7a){const _0xf7ba67=a179_0x2c91;return SENSITIVE_PATTERNS[_0xf7ba67(0x1c7)](_0x3ba215=>_0x3ba215[_0xf7ba67(0x1ba)](_0x211e7a));}function sanitizeFlags(_0x554043){const _0x4bad7a=a179_0x2c91,_0x39037b={};for(const [_0x3da692,_0xe7f156]of Object[_0x4bad7a(0x1c8)](_0x554043)){isSensitiveKey(_0x3da692)?_0x39037b[_0x3da692]=_0xe7f156!=null&&_0xe7f156!==''?_0x4bad7a(0x1bf):_0xe7f156:_0x39037b[_0x3da692]=_0xe7f156;}return _0x39037b;}function a179_0x2c91(_0x2d41e6,_0x519b85){_0x2d41e6=_0x2d41e6-0x1b9;const _0x1128d8=a179_0x1128();let _0x2c91c7=_0x1128d8[_0x2d41e6];return _0x2c91c7;}export async function reportCommandTrace(_0x2198c1){const _0x122905=a179_0x2c91;try{const _0x18c5a5=sanitizeFlags(_0x2198c1[_0x122905(0x1ca)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x2198c1[_0x122905(0x1bc)],'command.name':_0x2198c1[_0x122905(0x1be)],'command.flags':JSON[_0x122905(0x1cb)](_0x18c5a5),..._0x2198c1[_0x122905(0x1c5)]!=null?{'command.duration_ms':_0x2198c1[_0x122905(0x1c5)]}:{},..._0x2198c1[_0x122905(0x1c9)]?{'command.error':_0x2198c1[_0x122905(0x1c9)]instanceof Error?_0x2198c1['error'][_0x122905(0x1bd)]:String(_0x2198c1['error'])}:{}}});}catch{}}
1
+ (function(_0x24a6a2,_0x58c5d0){const _0x26bbf6=a179_0x3aa3,_0xbe3e49=_0x24a6a2();while(!![]){try{const _0x39532d=parseInt(_0x26bbf6(0x175))/0x1+-parseInt(_0x26bbf6(0x16e))/0x2+-parseInt(_0x26bbf6(0x16d))/0x3*(parseInt(_0x26bbf6(0x177))/0x4)+-parseInt(_0x26bbf6(0x174))/0x5+-parseInt(_0x26bbf6(0x178))/0x6*(parseInt(_0x26bbf6(0x16c))/0x7)+-parseInt(_0x26bbf6(0x176))/0x8*(parseInt(_0x26bbf6(0x16b))/0x9)+parseInt(_0x26bbf6(0x16f))/0xa;if(_0x39532d===_0x58c5d0)break;else _0xbe3e49['push'](_0xbe3e49['shift']());}catch(_0x194c47){_0xbe3e49['push'](_0xbe3e49['shift']());}}}(a179_0x239f,0xa33a9));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a179_0x3aa3(_0x3636e0,_0x232d06){_0x3636e0=_0x3636e0-0x16a;const _0x239ffa=a179_0x239f();let _0x3aa352=_0x239ffa[_0x3636e0];return _0x3aa352;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x18180d){return SENSITIVE_PATTERNS['some'](_0x328f32=>_0x328f32['test'](_0x18180d));}function sanitizeFlags(_0x571fac){const _0x2826d0=a179_0x3aa3,_0x12f765={};for(const [_0x4ee142,_0x299538]of Object[_0x2826d0(0x171)](_0x571fac)){isSensitiveKey(_0x4ee142)?_0x12f765[_0x4ee142]=_0x299538!=null&&_0x299538!==''?_0x2826d0(0x172):_0x299538:_0x12f765[_0x4ee142]=_0x299538;}return _0x12f765;}function a179_0x239f(){const _0xae5ed1=['[REDACTED]','error','5970040JCzBlC','915188ignphl','5616112UqebeD','768980HKjGuX','7986234pZRRhL','message','command','9jhhBSo','7bNmGct','3wIZuBc','386708rnukxi','33660570goDTCf','stringify','entries'];a179_0x239f=function(){return _0xae5ed1;};return a179_0x239f();}export async function reportCommandTrace(_0x4a6f32){const _0x568db5=a179_0x3aa3;try{const _0x58fd05=sanitizeFlags(_0x4a6f32['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x4a6f32['service'],'command.name':_0x4a6f32[_0x568db5(0x16a)],'command.flags':JSON[_0x568db5(0x170)](_0x58fd05),..._0x4a6f32['durationMs']!=null?{'command.duration_ms':_0x4a6f32['durationMs']}:{},..._0x4a6f32[_0x568db5(0x173)]?{'command.error':_0x4a6f32['error']instanceof Error?_0x4a6f32[_0x568db5(0x173)][_0x568db5(0x179)]:String(_0x4a6f32[_0x568db5(0x173)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x22989c,_0x1435be){var _0x1df265=a180_0x1faa,_0x34b775=_0x22989c();while(!![]){try{var _0x299056=parseInt(_0x1df265(0xe0))/0x1*(-parseInt(_0x1df265(0xd8))/0x2)+parseInt(_0x1df265(0xda))/0x3+parseInt(_0x1df265(0xdf))/0x4*(parseInt(_0x1df265(0xe1))/0x5)+parseInt(_0x1df265(0xdc))/0x6*(parseInt(_0x1df265(0xd9))/0x7)+-parseInt(_0x1df265(0xdb))/0x8+parseInt(_0x1df265(0xde))/0x9+-parseInt(_0x1df265(0xdd))/0xa*(parseInt(_0x1df265(0xe2))/0xb);if(_0x299056===_0x1435be)break;else _0x34b775['push'](_0x34b775['shift']());}catch(_0x11a5dd){_0x34b775['push'](_0x34b775['shift']());}}}(a180_0x226f,0x2c95d));function a180_0x1faa(_0x1011ad,_0x4dc788){_0x1011ad=_0x1011ad-0xd7;var _0x226f9b=a180_0x226f();var _0x1faab9=_0x226f9b[_0x1011ad];return _0x1faab9;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a180_0x226f(){var _0x1d6619=['72XAHNuJ','1362730eufKdc','633123twiMYx','4hMavNX','28151clvMev','1545090Xuiaqk','22CTiDII','cli.help','service','6QIeBSD','69097GuCvgY','299181RkHsra','463392bJsUsQ'];a180_0x226f=function(){return _0x1d6619;};return a180_0x226f();}export async function reportCliHelpTrace(_0x3f23fc,_0x18909a){var _0x4297bc=a180_0x1faa;try{await sendCliTraceLog({'spanName':_0x4297bc(0xe3),'logData':{'rabetbase.help.kind':_0x3f23fc,..._0x18909a?.[_0x4297bc(0xd7)]&&{'rabetbase.help.service':_0x18909a[_0x4297bc(0xd7)]}}});}catch(_0x5198bf){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x5198bf);}}
1
+ (function(_0x2a4fde,_0x1c6031){var _0x2970ce=a180_0x5712,_0x2ccd0e=_0x2a4fde();while(!![]){try{var _0x19468a=-parseInt(_0x2970ce(0x11b))/0x1+parseInt(_0x2970ce(0x115))/0x2*(parseInt(_0x2970ce(0x119))/0x3)+parseInt(_0x2970ce(0x117))/0x4+parseInt(_0x2970ce(0x114))/0x5*(parseInt(_0x2970ce(0x11a))/0x6)+parseInt(_0x2970ce(0x113))/0x7+parseInt(_0x2970ce(0x112))/0x8+-parseInt(_0x2970ce(0x11c))/0x9;if(_0x19468a===_0x1c6031)break;else _0x2ccd0e['push'](_0x2ccd0e['shift']());}catch(_0x2827dd){_0x2ccd0e['push'](_0x2ccd0e['shift']());}}}(a180_0x1be9,0x60f12));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1ee3d4,_0x410018){var _0x3099ce=a180_0x5712;try{await sendCliTraceLog({'spanName':_0x3099ce(0x118),'logData':{'rabetbase.help.kind':_0x1ee3d4,..._0x410018?.[_0x3099ce(0x111)]&&{'rabetbase.help.service':_0x410018[_0x3099ce(0x111)]}}});}catch(_0x586346){console[_0x3099ce(0x116)](_0x3099ce(0x110),_0x586346);}}function a180_0x5712(_0xfcee4,_0x1db38d){_0xfcee4=_0xfcee4-0x110;var _0x1be947=a180_0x1be9();var _0x571215=_0x1be947[_0xfcee4];return _0x571215;}function a180_0x1be9(){var _0x2eb740=['442892EGoEQR','8095653lsWRpa','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','1211768FDsPsN','4342926bgRZkg','5uJhvkd','164aoudGl','error','682116gDZFpa','cli.help','23991wkzZpv','847866CMXncz'];a180_0x1be9=function(){return _0x2eb740;};return a180_0x1be9();}
@@ -1 +1 @@
1
- (function(_0x42d231,_0x293a1c){const _0x4536ad=a181_0x3424,_0x4fe9cd=_0x42d231();while(!![]){try{const _0x20b858=-parseInt(_0x4536ad(0x71))/0x1+-parseInt(_0x4536ad(0x65))/0x2*(-parseInt(_0x4536ad(0x6f))/0x3)+parseInt(_0x4536ad(0x67))/0x4+parseInt(_0x4536ad(0x68))/0x5*(parseInt(_0x4536ad(0x72))/0x6)+-parseInt(_0x4536ad(0x6c))/0x7+-parseInt(_0x4536ad(0x74))/0x8*(-parseInt(_0x4536ad(0x69))/0x9)+-parseInt(_0x4536ad(0x66))/0xa*(parseInt(_0x4536ad(0x73))/0xb);if(_0x20b858===_0x293a1c)break;else _0x4fe9cd['push'](_0x4fe9cd['shift']());}catch(_0x8c7e37){_0x4fe9cd['push'](_0x4fe9cd['shift']());}}}(a181_0x3ac9,0x2760a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a181_0x3424(_0x561cf4,_0x2661be){_0x561cf4=_0x561cf4-0x65;const _0x3ac9bd=a181_0x3ac9();let _0x34246a=_0x3ac9bd[_0x561cf4];return _0x34246a;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2ef8ed=a181_0x3424,_0x26d4b8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1213e8=_0x26d4b8?.[_0x2ef8ed(0x70)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2ef8ed(0x6e):'production')}),setUserContext({'id':_0x1213e8?.['id'],'username':_0x1213e8?.[_0x2ef8ed(0x6d)],'nickname':_0x1213e8?.[_0x2ef8ed(0x75)],'email':_0x1213e8?.[_0x2ef8ed(0x6a)],'tenantCode':_0x1213e8?.['tenant'][_0x2ef8ed(0x6b)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x26d4b8;}function a181_0x3ac9(){const _0x10b35f=['email','tenant_code','193718YtTPIP','username','daily','17934IAUTzc','user','244541DMyekn','6606RyWnbF','352jjVMyS','211256OpTJhO','nickname','98eDPrCk','135230ppiARH','56792CUeGbB','1220DDLRbF','99pBSCeb'];a181_0x3ac9=function(){return _0x10b35f;};return a181_0x3ac9();}
1
+ (function(_0x5e1a37,_0x41973d){const _0x57e900=a181_0xf210,_0x3fc436=_0x5e1a37();while(!![]){try{const _0x24d625=-parseInt(_0x57e900(0x9f))/0x1*(-parseInt(_0x57e900(0x9e))/0x2)+parseInt(_0x57e900(0xac))/0x3*(parseInt(_0x57e900(0xab))/0x4)+-parseInt(_0x57e900(0xa5))/0x5*(parseInt(_0x57e900(0xa3))/0x6)+parseInt(_0x57e900(0xad))/0x7+parseInt(_0x57e900(0xa7))/0x8*(parseInt(_0x57e900(0xa8))/0x9)+parseInt(_0x57e900(0xa6))/0xa*(-parseInt(_0x57e900(0xae))/0xb)+-parseInt(_0x57e900(0xa1))/0xc;if(_0x24d625===_0x41973d)break;else _0x3fc436['push'](_0x3fc436['shift']());}catch(_0x2b14df){_0x3fc436['push'](_0x3fc436['shift']());}}}(a181_0xfa03,0x537e2));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a181_0xfa03(){const _0x1093c1=['3BXJFKS','username','5387796FFMyQL','unknown','46554UfkFUT','nickname','365tiqVAj','10010LVlaTi','62416yUMJsq','558IvmwtH','daily','user','2004VSmQqU','2913DJWLGd','4679787YlCKGp','6611rchIjx','tenant','production','213494cxZfeX'];a181_0xfa03=function(){return _0x1093c1;};return a181_0xfa03();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a181_0xf210(_0x53c2d8,_0x3c4714){_0x53c2d8=_0x53c2d8-0x9e;const _0xfa034e=a181_0xfa03();let _0xf2100a=_0xfa034e[_0x53c2d8];return _0xf2100a;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x143857=a181_0xf210,_0x166dc7=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x352dbc=_0x166dc7?.[_0x143857(0xaa)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x143857(0xa2)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x143857(0xa9):_0x143857(0xb0))}),setUserContext({'id':_0x352dbc?.['id'],'username':_0x352dbc?.[_0x143857(0xa0)],'nickname':_0x352dbc?.[_0x143857(0xa4)],'email':_0x352dbc?.['email'],'tenantCode':_0x352dbc?.[_0x143857(0xaf)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x166dc7;}
@@ -1 +1 @@
1
- (function(_0x44e417,_0x244f16){const _0x4c8f74=a182_0x1c32,_0x5c6b86=_0x44e417();while(!![]){try{const _0x4bd97f=parseInt(_0x4c8f74(0x145))/0x1*(-parseInt(_0x4c8f74(0x142))/0x2)+-parseInt(_0x4c8f74(0x138))/0x3*(-parseInt(_0x4c8f74(0x13e))/0x4)+parseInt(_0x4c8f74(0x139))/0x5*(-parseInt(_0x4c8f74(0x136))/0x6)+-parseInt(_0x4c8f74(0x141))/0x7+parseInt(_0x4c8f74(0x13f))/0x8+parseInt(_0x4c8f74(0x13a))/0x9*(parseInt(_0x4c8f74(0x13b))/0xa)+parseInt(_0x4c8f74(0x137))/0xb*(parseInt(_0x4c8f74(0x13c))/0xc);if(_0x4bd97f===_0x244f16)break;else _0x5c6b86['push'](_0x5c6b86['shift']());}catch(_0x2cdb5a){_0x5c6b86['push'](_0x5c6b86['shift']());}}}(a182_0x15ba,0xe1028));import{shutdownTraces}from'@lovrabet/otel-logger';function a182_0x1c32(_0x42d2de,_0x247eb8){_0x42d2de=_0x42d2de-0x136;const _0x15bab8=a182_0x15ba();let _0x1c3237=_0x15bab8[_0x42d2de];return _0x1c3237;}function a182_0x15ba(){const _0x915628=['once','188cpeDNk','6779248nlTEpw','beforeExit','3092824PybQRp','83026RIGbBq','SIGTERM','exit','23VynZbK','10786584meomdq','11qeWzAp','31098mGeZKs','5FDoFJK','2051541fhGiGp','10FvOaQR','30641736kOMDcR'];a182_0x15ba=function(){return _0x915628;};return a182_0x15ba();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x39a295=a182_0x1c32;process[_0x39a295(0x13d)](_0x39a295(0x140),()=>{void flushOtelNodeIfUsed();});const _0x5bd67d=()=>{const _0x2d4f70=_0x39a295;void flushOtelNodeIfUsed()['then'](()=>process[_0x2d4f70(0x144)](0x0));};process[_0x39a295(0x13d)]('SIGINT',_0x5bd67d),process[_0x39a295(0x13d)](_0x39a295(0x143),_0x5bd67d);}export async function exitWithOtelShutdown(_0x264b10){const _0x32f0f7=a182_0x1c32;await flushOtelNodeIfUsed(),process[_0x32f0f7(0x144)](_0x264b10);}
1
+ (function(_0x437b8f,_0x386281){const _0x49ce34=a182_0x35ae,_0x5c2139=_0x437b8f();while(!![]){try{const _0x34d8e8=parseInt(_0x49ce34(0xca))/0x1+-parseInt(_0x49ce34(0xc0))/0x2+parseInt(_0x49ce34(0xcb))/0x3+parseInt(_0x49ce34(0xc4))/0x4*(-parseInt(_0x49ce34(0xc2))/0x5)+parseInt(_0x49ce34(0xc6))/0x6+-parseInt(_0x49ce34(0xc3))/0x7+parseInt(_0x49ce34(0xc5))/0x8;if(_0x34d8e8===_0x386281)break;else _0x5c2139['push'](_0x5c2139['shift']());}catch(_0x2e9cf6){_0x5c2139['push'](_0x5c2139['shift']());}}}(a182_0x3f0c,0x250a3));function a182_0x35ae(_0x45c4e2,_0x222ec8){_0x45c4e2=_0x45c4e2-0xbf;const _0x3f0c16=a182_0x3f0c();let _0x35aefd=_0x3f0c16[_0x45c4e2];return _0x35aefd;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a182_0x3f0c(){const _0x5d6440=['SIGINT','575484CKmoZO','SIGTERM','10cIQfKA','1067738uTNPRp','220628CFJbdu','3485624PzAAaB','1207866WVWqgi','then','exit','once','48397umVFRV','50682hiWyji'];a182_0x3f0c=function(){return _0x5d6440;};return a182_0x3f0c();}export function registerOtelShutdownOnExit(){const _0x5304c0=a182_0x35ae;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x3b6ab1=()=>{const _0x55601c=a182_0x35ae;void flushOtelNodeIfUsed()[_0x55601c(0xc7)](()=>process[_0x55601c(0xc8)](0x0));};process[_0x5304c0(0xc9)](_0x5304c0(0xbf),_0x3b6ab1),process[_0x5304c0(0xc9)](_0x5304c0(0xc1),_0x3b6ab1);}export async function exitWithOtelShutdown(_0x4b9725){const _0x3646d0=a182_0x35ae;await flushOtelNodeIfUsed(),process[_0x3646d0(0xc8)](_0x4b9725);}