@lovrabet/rabetbase-cli 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4c6212,_0x5b4065){const _0x39241b=a157_0x2a69,_0xcad8e6=_0x4c6212();while(!![]){try{const _0x1ecbe6=parseInt(_0x39241b(0xb0))/0x1+-parseInt(_0x39241b(0xac))/0x2*(parseInt(_0x39241b(0xb4))/0x3)+-parseInt(_0x39241b(0xb1))/0x4+-parseInt(_0x39241b(0xb2))/0x5+-parseInt(_0x39241b(0xbf))/0x6+parseInt(_0x39241b(0xc0))/0x7*(-parseInt(_0x39241b(0xba))/0x8)+parseInt(_0x39241b(0xa9))/0x9;if(_0x1ecbe6===_0x5b4065)break;else _0xcad8e6['push'](_0xcad8e6['shift']());}catch(_0x580148){_0xcad8e6['push'](_0xcad8e6['shift']());}}}(a157_0xa298,0xf3f56));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x156a60){const _0x3f7cb4=a157_0x2a69;if(_0x156a60==='.sql')return _0x3f7cb4(0xc5);if(_0x156a60===_0x3f7cb4(0xad))return _0x3f7cb4(0xae);return undefined;}async function scanSqlFilesRecursively(_0x4c50e5,_0x1cc8b8){const _0x8c449f=a157_0x2a69,_0x2111a3=[];try{const _0x42e073=await readdir(_0x4c50e5,{'withFileTypes':!![]});for(const _0x3a22d8 of _0x42e073){const _0x18c2f9=join(_0x4c50e5,_0x3a22d8[_0x8c449f(0xb9)]);if(_0x3a22d8[_0x8c449f(0xc3)]()){_0x2111a3[_0x8c449f(0xc1)](...await scanSqlFilesRecursively(_0x18c2f9,_0x1cc8b8));continue;}if(!_0x3a22d8[_0x8c449f(0xb3)]())continue;const _0x58beb7=extname(_0x3a22d8['name'])['toLowerCase'](),_0x3eaf0f=extensionToMode(_0x58beb7);if(!_0x3eaf0f)continue;const _0x374b8d=relative(_0x1cc8b8,_0x18c2f9)[_0x8c449f(0xab)](/\\/g,'/'),_0x5c6220=_0x374b8d[_0x8c449f(0xc6)]('/')[_0x8c449f(0xb6)](Boolean),_0x44aeee=parseSqlPath(_0x5c6220,_0x3a22d8[_0x8c449f(0xb9)],_0x58beb7);if(!_0x44aeee)continue;_0x2111a3[_0x8c449f(0xc1)]({'sqlCode':_0x44aeee[_0x8c449f(0xc4)],'sqlName':_0x44aeee[_0x8c449f(0xc7)],'dbDirectory':_0x5c6220[0x0],'filePath':_0x18c2f9,'relativePath':_0x374b8d,'lockKey':_0x44aeee['sqlCode'],'mode':_0x3eaf0f});}}catch(_0x3a3f73){if(_0x3a3f73[_0x8c449f(0xb7)]!==_0x8c449f(0xc8))throw _0x3a3f73;}return _0x2111a3;}export async function scanLocalSqlQueries(_0x11cace){const _0x3c399d=a157_0x2a69;return scanSqlFilesRecursively(_0x11cace[_0x3c399d(0xaa)],_0x11cace[_0x3c399d(0xaa)]);}function a157_0x2a69(_0x95321f,_0x1f344f){_0x95321f=_0x95321f-0xa9;const _0xa29854=a157_0xa298();let _0x2a6961=_0xa29854[_0x95321f];return _0x2a6961;}function a157_0xa298(){const _0x4f4329=['sql','split','sqlName','ENOENT','63365499UlmnFA','sqlRootDir','replace','12lNfwUX','.xml','mybatisXml','dbId','284851LmfYOJ','3247716UNoMbz','8085830eNiryA','isFile','774612YpJsqL','length','filter','code','slice','name','1352DiWjjk','path','dbName','mode','indexOf','8719218fGhAQi','37058EkOLsG','push','test','isDirectory','sqlCode'];a157_0xa298=function(){return _0x4f4329;};return a157_0xa298();}export function resolveLocalSqlFilePath(_0x2ba8d8,_0x5c1038,_0x1c6453){const _0x1c30d7=a157_0x2a69,_0x4fb29c=_0x1c6453?.[_0x1c30d7(0xbb)]||(_0x1c6453?.[_0x1c30d7(0xc7)]||_0x1c6453?.[_0x1c30d7(0xbc)]?buildSqlRelativePath(_0x5c1038,_0x1c6453?.[_0x1c30d7(0xc7)],_0x1c6453?.[_0x1c30d7(0xbc)],_0x1c6453?.[_0x1c30d7(0xbd)]||_0x1c30d7(0xc5),_0x1c6453?.[_0x1c30d7(0xaf)]):buildDefaultSqlFileName(_0x5c1038,_0x1c6453?.[_0x1c30d7(0xbd)]||'sql'));return join(_0x2ba8d8[_0x1c30d7(0xaa)],_0x4fb29c);}export async function directoryExists(_0x376acc){try{const _0x5abddb=await stat(_0x376acc);return _0x5abddb['isDirectory']();}catch{return![];}}function parseSqlPath(_0x201201,_0x39628c,_0x1844e2){const _0x37dee1=a157_0x2a69,_0x2e0ce0=_0x39628c[_0x37dee1(0xb8)](0x0,-_0x1844e2[_0x37dee1(0xb5)]);if(_0x201201[_0x37dee1(0xb5)]<0x2)return null;const _0x56aeac=_0x2e0ce0[_0x37dee1(0xbe)]('_');if(_0x56aeac<=0x0||_0x56aeac>=_0x2e0ce0[_0x37dee1(0xb5)]-0x1)return null;const _0x59d66f=_0x2e0ce0[_0x37dee1(0xb8)](0x0,_0x56aeac);if(!isLikelySqlCode(_0x59d66f))return null;return{'sqlCode':_0x59d66f,'sqlName':_0x2e0ce0['slice'](_0x56aeac+0x1)};}function isLikelySqlCode(_0x474460){const _0x3e4b08=a157_0x2a69;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x3e4b08(0xc2)](_0x474460);}
1
+ (function(_0x5a7db7,_0x458797){const _0xb0e103=a157_0xbffd,_0x310f9a=_0x5a7db7();while(!![]){try{const _0x53ab6b=-parseInt(_0xb0e103(0x151))/0x1+parseInt(_0xb0e103(0x15c))/0x2*(parseInt(_0xb0e103(0x159))/0x3)+-parseInt(_0xb0e103(0x163))/0x4*(-parseInt(_0xb0e103(0x168))/0x5)+parseInt(_0xb0e103(0x167))/0x6+parseInt(_0xb0e103(0x14d))/0x7*(parseInt(_0xb0e103(0x14e))/0x8)+-parseInt(_0xb0e103(0x153))/0x9+parseInt(_0xb0e103(0x160))/0xa;if(_0x53ab6b===_0x458797)break;else _0x310f9a['push'](_0x310f9a['shift']());}catch(_0x563916){_0x310f9a['push'](_0x310f9a['shift']());}}}(a157_0x58df,0xe84d6));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4705b9){const _0x32fd3e=a157_0xbffd;if(_0x4705b9===_0x32fd3e(0x16a))return _0x32fd3e(0x15d);if(_0x4705b9===_0x32fd3e(0x150))return _0x32fd3e(0x155);return undefined;}async function scanSqlFilesRecursively(_0x209336,_0x373218){const _0x52bed6=a157_0xbffd,_0x23ea79=[];try{const _0x16a021=await readdir(_0x209336,{'withFileTypes':!![]});for(const _0x2822b5 of _0x16a021){const _0x2ad2cd=join(_0x209336,_0x2822b5[_0x52bed6(0x166)]);if(_0x2822b5[_0x52bed6(0x15f)]()){_0x23ea79[_0x52bed6(0x15a)](...await scanSqlFilesRecursively(_0x2ad2cd,_0x373218));continue;}if(!_0x2822b5['isFile']())continue;const _0x2e4660=extname(_0x2822b5[_0x52bed6(0x166)])[_0x52bed6(0x16c)](),_0x5dd86c=extensionToMode(_0x2e4660);if(!_0x5dd86c)continue;const _0x583c16=relative(_0x373218,_0x2ad2cd)[_0x52bed6(0x14f)](/\\/g,'/'),_0x5df8d8=_0x583c16[_0x52bed6(0x169)]('/')[_0x52bed6(0x15b)](Boolean),_0x17eac0=parseSqlPath(_0x5df8d8,_0x2822b5['name'],_0x2e4660);if(!_0x17eac0)continue;_0x23ea79[_0x52bed6(0x15a)]({'sqlCode':_0x17eac0[_0x52bed6(0x152)],'sqlName':_0x17eac0[_0x52bed6(0x164)],'dbDirectory':_0x5df8d8[0x0],'filePath':_0x2ad2cd,'relativePath':_0x583c16,'lockKey':_0x17eac0[_0x52bed6(0x152)],'mode':_0x5dd86c});}}catch(_0x4f086f){if(_0x4f086f[_0x52bed6(0x154)]!=='ENOENT')throw _0x4f086f;}return _0x23ea79;}function a157_0x58df(){const _0x5c4c4c=['7pZFOEH','10011352yBgAME','replace','.xml','1643329Xhdefg','sqlCode','3835926TvvoMu','code','mybatisXml','slice','dbId','mode','834969ABzKGI','push','filter','4jCYpXj','sql','sqlRootDir','isDirectory','3544390mTrpNj','dbName','indexOf','28wLoULr','sqlName','length','name','4473960zhOwvy','80635mxPOfM','split','.sql','test','toLowerCase'];a157_0x58df=function(){return _0x5c4c4c;};return a157_0x58df();}export async function scanLocalSqlQueries(_0x4fca26){const _0x4540fb=a157_0xbffd;return scanSqlFilesRecursively(_0x4fca26[_0x4540fb(0x15e)],_0x4fca26['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x55526f,_0x5400e5,_0x535892){const _0x558827=a157_0xbffd,_0x3d40ad=_0x535892?.['path']||(_0x535892?.[_0x558827(0x164)]||_0x535892?.[_0x558827(0x161)]?buildSqlRelativePath(_0x5400e5,_0x535892?.[_0x558827(0x164)],_0x535892?.[_0x558827(0x161)],_0x535892?.[_0x558827(0x158)]||_0x558827(0x15d),_0x535892?.[_0x558827(0x157)]):buildDefaultSqlFileName(_0x5400e5,_0x535892?.[_0x558827(0x158)]||'sql'));return join(_0x55526f[_0x558827(0x15e)],_0x3d40ad);}export async function directoryExists(_0x1bf381){const _0x351be0=a157_0xbffd;try{const _0x20c165=await stat(_0x1bf381);return _0x20c165[_0x351be0(0x15f)]();}catch{return![];}}function parseSqlPath(_0x15244f,_0x590a5c,_0x212235){const _0x2ab978=a157_0xbffd,_0x12ea80=_0x590a5c[_0x2ab978(0x156)](0x0,-_0x212235[_0x2ab978(0x165)]);if(_0x15244f[_0x2ab978(0x165)]<0x2)return null;const _0x8a4c68=_0x12ea80[_0x2ab978(0x162)]('_');if(_0x8a4c68<=0x0||_0x8a4c68>=_0x12ea80['length']-0x1)return null;const _0x2e51e4=_0x12ea80['slice'](0x0,_0x8a4c68);if(!isLikelySqlCode(_0x2e51e4))return null;return{'sqlCode':_0x2e51e4,'sqlName':_0x12ea80['slice'](_0x8a4c68+0x1)};}function a157_0xbffd(_0x1318d7,_0x33fc70){_0x1318d7=_0x1318d7-0x14d;const _0x58df8c=a157_0x58df();let _0xbffda6=_0x58df8c[_0x1318d7];return _0xbffda6;}function isLikelySqlCode(_0x46cc63){const _0x3f49b3=a157_0xbffd;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x3f49b3(0x16b)](_0x46cc63);}
@@ -1 +1 @@
1
- function a158_0x1a13(){const _0x220adb=['159481eqgtJc','113308sfmGRb','33dfXjzG','2350ZmBpou','74wjxpoI','md5','2049381HvDqdX','6065280uoerUT','1657565xcrpAo','createHash','utf8','82907VZadwc','update','186EMNhZO','3664TPyYGT'];a158_0x1a13=function(){return _0x220adb;};return a158_0x1a13();}(function(_0x1ad3a9,_0x5d9669){const _0x52c593=a158_0xfe75,_0x413dbe=_0x1ad3a9();while(!![]){try{const _0x4c26e1=parseInt(_0x52c593(0xca))/0x1*(parseInt(_0x52c593(0xc5))/0x2)+parseInt(_0x52c593(0xc8))/0x3*(parseInt(_0x52c593(0xc7))/0x4)+-parseInt(_0x52c593(0xce))/0x5+-parseInt(_0x52c593(0xd3))/0x6*(parseInt(_0x52c593(0xc6))/0x7)+-parseInt(_0x52c593(0xcd))/0x8+parseInt(_0x52c593(0xcc))/0x9+-parseInt(_0x52c593(0xc9))/0xa*(-parseInt(_0x52c593(0xd1))/0xb);if(_0x4c26e1===_0x5d9669)break;else _0x413dbe['push'](_0x413dbe['shift']());}catch(_0x4e2b69){_0x413dbe['push'](_0x413dbe['shift']());}}}(a158_0x1a13,0x9eb8b));function a158_0xfe75(_0x28c1f8,_0x34f3be){_0x28c1f8=_0x28c1f8-0xc5;const _0x1a1366=a158_0x1a13();let _0xfe757a=_0x1a1366[_0x28c1f8];return _0xfe757a;}import{readFile}from'node:fs/promises';import a158_0x30d150 from'node:crypto';export function computeSqlContentHash(_0x3df4d9){const _0x4af772=a158_0xfe75;return a158_0x30d150[_0x4af772(0xcf)](_0x4af772(0xcb))[_0x4af772(0xd2)](_0x3df4d9)['digest']('hex');}export async function computeSqlFileHash(_0x2cb9f6){const _0x4f114b=a158_0xfe75,_0x1a9ca9=await readFile(_0x2cb9f6,_0x4f114b(0xd0));return computeSqlContentHash(_0x1a9ca9);}
1
+ function a158_0x5db3(){const _0x30fc74=['235912KHzTzP','9SbUGhF','12qedSyi','764BkLeuk','createHash','hex','digest','179278xuCOQe','120GjSaVH','1519ISHsTY','2318966IuGoRa','utf8','709032TiCigu','5bWcfLg','2723832GfXxSs','974134tDBUqp','md5','24mQCZBw'];a158_0x5db3=function(){return _0x30fc74;};return a158_0x5db3();}function a158_0x592e(_0x5d6b59,_0x4ef4f7){_0x5d6b59=_0x5d6b59-0x1b4;const _0x5db306=a158_0x5db3();let _0x592e32=_0x5db306[_0x5d6b59];return _0x592e32;}(function(_0x5b4ff9,_0x241e01){const _0x8489d9=a158_0x592e,_0x32cfd9=_0x5b4ff9();while(!![]){try{const _0x2665a6=-parseInt(_0x8489d9(0x1bf))/0x1*(-parseInt(_0x8489d9(0x1b9))/0x2)+parseInt(_0x8489d9(0x1c4))/0x3+parseInt(_0x8489d9(0x1b6))/0x4*(-parseInt(_0x8489d9(0x1c3))/0x5)+parseInt(_0x8489d9(0x1b8))/0x6*(-parseInt(_0x8489d9(0x1c5))/0x7)+-parseInt(_0x8489d9(0x1c2))/0x8*(parseInt(_0x8489d9(0x1b7))/0x9)+-parseInt(_0x8489d9(0x1be))/0xa*(parseInt(_0x8489d9(0x1bd))/0xb)+-parseInt(_0x8489d9(0x1b5))/0xc*(parseInt(_0x8489d9(0x1c0))/0xd);if(_0x2665a6===_0x241e01)break;else _0x32cfd9['push'](_0x32cfd9['shift']());}catch(_0x245300){_0x32cfd9['push'](_0x32cfd9['shift']());}}}(a158_0x5db3,0x7c7eb));import{readFile}from'node:fs/promises';import a158_0x2b571e from'node:crypto';export function computeSqlContentHash(_0x584a70){const _0x562067=a158_0x592e;return a158_0x2b571e[_0x562067(0x1ba)](_0x562067(0x1b4))['update'](_0x584a70)[_0x562067(0x1bc)](_0x562067(0x1bb));}export async function computeSqlFileHash(_0x225c63){const _0x1b4028=a158_0x592e,_0x11dd7f=await readFile(_0x225c63,_0x1b4028(0x1c1));return computeSqlContentHash(_0x11dd7f);}
@@ -1 +1 @@
1
- function a159_0x53da(_0x47d443,_0x21e647){_0x47d443=_0x47d443-0x121;const _0x460a57=a159_0x460a();let _0x53da21=_0x460a57[_0x47d443];return _0x53da21;}(function(_0x535b14,_0x343277){const _0x4b2c5e=a159_0x53da,_0x59a19d=_0x535b14();while(!![]){try{const _0xc35f74=-parseInt(_0x4b2c5e(0x133))/0x1+parseInt(_0x4b2c5e(0x12a))/0x2+-parseInt(_0x4b2c5e(0x129))/0x3+-parseInt(_0x4b2c5e(0x135))/0x4*(parseInt(_0x4b2c5e(0x122))/0x5)+-parseInt(_0x4b2c5e(0x127))/0x6+parseInt(_0x4b2c5e(0x121))/0x7*(parseInt(_0x4b2c5e(0x12b))/0x8)+-parseInt(_0x4b2c5e(0x124))/0x9*(-parseInt(_0x4b2c5e(0x137))/0xa);if(_0xc35f74===_0x343277)break;else _0x59a19d['push'](_0x59a19d['shift']());}catch(_0x337cc9){_0x59a19d['push'](_0x59a19d['shift']());}}}(a159_0x460a,0xb89e0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0x460a(){const _0x109cff=['\x22.\x20','7816uYeRxs','sqls','3470sAmjdA','stringify','7FGcNpE','415EvAUAc','parse','50094ydkTuW','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','code','4311012FWtnrn','apps','2049792GPMihz','744548TvKwuM','1925728mWnWev','ENOENT','lastSync',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','utf8','\x22\x20vs\x20lock\x20\x22','sqlRoot','224252gkddCD'];a159_0x460a=function(){return _0x109cff;};return a159_0x460a();}export function ensureSqlLockScope(_0x505ac6,_0x473d12,_0x1f0fe0,_0x2f6e61){const _0xe12dc2=a159_0x53da,_0x285d3a=_0x505ac6??createEmptySqlLock();let _0x28786e=_0x285d3a[_0xe12dc2(0x128)][_0x473d12];if(!_0x28786e)return _0x28786e={'sqlRoot':_0x1f0fe0,'lastSync':'','sqls':{}},_0x285d3a['apps'][_0x473d12]=_0x28786e,{'lockData':_0x285d3a,'appLock':_0x28786e};if(!_0x28786e[_0xe12dc2(0x132)])_0x28786e[_0xe12dc2(0x132)]=_0x1f0fe0;else{if(_0x28786e[_0xe12dc2(0x132)]!==_0x1f0fe0)throw new Error(_0x2f6e61+_0xe12dc2(0x12e)+_0x1f0fe0+_0xe12dc2(0x131)+_0x28786e[_0xe12dc2(0x132)]+_0xe12dc2(0x134)+_0xe12dc2(0x12f));}return!_0x28786e[_0xe12dc2(0x136)]&&(_0x28786e[_0xe12dc2(0x136)]={}),!_0x28786e[_0xe12dc2(0x12d)]&&(_0x28786e[_0xe12dc2(0x12d)]=''),{'lockData':_0x285d3a,'appLock':_0x28786e};}export async function readSqlLockFile(_0xc7b093){const _0x240f66=a159_0x53da;try{const _0x4dba8d=await readFile(_0xc7b093,_0x240f66(0x130));return JSON[_0x240f66(0x123)](_0x4dba8d);}catch(_0x23205b){if(_0x23205b[_0x240f66(0x126)]===_0x240f66(0x12c))return null;throw new Error(_0x240f66(0x125)+String(_0x23205b));}}export async function writeSqlLockFile(_0x304496,_0x54b9ba){const _0x20f860=a159_0x53da;await mkdir(dirname(_0x304496),{'recursive':!![]}),await writeFile(_0x304496,JSON[_0x20f860(0x138)](_0x54b9ba,null,0x2),_0x20f860(0x130));}
1
+ (function(_0x150913,_0x23dfe2){const _0x215bd1=a159_0x144c,_0x4de75e=_0x150913();while(!![]){try{const _0x4764b8=-parseInt(_0x215bd1(0x134))/0x1+-parseInt(_0x215bd1(0x13a))/0x2*(parseInt(_0x215bd1(0x125))/0x3)+-parseInt(_0x215bd1(0x138))/0x4*(parseInt(_0x215bd1(0x12a))/0x5)+parseInt(_0x215bd1(0x139))/0x6*(-parseInt(_0x215bd1(0x123))/0x7)+parseInt(_0x215bd1(0x132))/0x8*(parseInt(_0x215bd1(0x129))/0x9)+-parseInt(_0x215bd1(0x126))/0xa*(-parseInt(_0x215bd1(0x135))/0xb)+parseInt(_0x215bd1(0x12e))/0xc*(parseInt(_0x215bd1(0x128))/0xd);if(_0x4764b8===_0x23dfe2)break;else _0x4de75e['push'](_0x4de75e['shift']());}catch(_0x478ce0){_0x4de75e['push'](_0x4de75e['shift']());}}}(a159_0x3c73,0xac86c));import{mkdir,readFile,writeFile}from'node:fs/promises';function a159_0x3c73(){const _0x50800f=[':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','93288uwNxVK','apps','lastSync','parse','10632uftZOf','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','1083187yEBMtK','26015hZtOtP','sqlRoot','ENOENT','8cCyjqI','6LixTme','52PLlAkp','5519528GYLFmF','utf8','88821twEPbS','1180lboMny','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','5707XASCEv','603tAaqFN','1081895jxemsG','stringify'];a159_0x3c73=function(){return _0x50800f;};return a159_0x3c73();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0x144c(_0x1581a2,_0x3c1ea9){_0x1581a2=_0x1581a2-0x123;const _0x3c73ff=a159_0x3c73();let _0x144c18=_0x3c73ff[_0x1581a2];return _0x144c18;}export function ensureSqlLockScope(_0x18c472,_0x32f651,_0x58040f,_0x5a9045){const _0x401e33=a159_0x144c,_0x4d22d4=_0x18c472??createEmptySqlLock();let _0x17bfba=_0x4d22d4[_0x401e33(0x12f)][_0x32f651];if(!_0x17bfba)return _0x17bfba={'sqlRoot':_0x58040f,'lastSync':'','sqls':{}},_0x4d22d4[_0x401e33(0x12f)][_0x32f651]=_0x17bfba,{'lockData':_0x4d22d4,'appLock':_0x17bfba};if(!_0x17bfba[_0x401e33(0x136)])_0x17bfba[_0x401e33(0x136)]=_0x58040f;else{if(_0x17bfba[_0x401e33(0x136)]!==_0x58040f)throw new Error(_0x5a9045+_0x401e33(0x12c)+_0x58040f+_0x401e33(0x12d)+_0x17bfba[_0x401e33(0x136)]+'\x22.\x20'+_0x401e33(0x133));}return!_0x17bfba['sqls']&&(_0x17bfba['sqls']={}),!_0x17bfba[_0x401e33(0x130)]&&(_0x17bfba[_0x401e33(0x130)]=''),{'lockData':_0x4d22d4,'appLock':_0x17bfba};}export async function readSqlLockFile(_0x3df7b3){const _0x560257=a159_0x144c;try{const _0x4f3840=await readFile(_0x3df7b3,'utf8');return JSON[_0x560257(0x131)](_0x4f3840);}catch(_0x52010d){if(_0x52010d['code']===_0x560257(0x137))return null;throw new Error(_0x560257(0x127)+String(_0x52010d));}}export async function writeSqlLockFile(_0xf0aefd,_0x16a49d){const _0x542000=a159_0x144c;await mkdir(dirname(_0xf0aefd),{'recursive':!![]}),await writeFile(_0xf0aefd,JSON[_0x542000(0x12b)](_0x16a49d,null,0x2),_0x542000(0x124));}
@@ -1 +1 @@
1
- (function(_0x29a557,_0x3a71cb){const _0x297946=a161_0x16cf,_0x2616e5=_0x29a557();while(!![]){try{const _0x36952a=-parseInt(_0x297946(0x1ab))/0x1+-parseInt(_0x297946(0x1ae))/0x2*(parseInt(_0x297946(0x19f))/0x3)+-parseInt(_0x297946(0x1ac))/0x4*(-parseInt(_0x297946(0x1a8))/0x5)+-parseInt(_0x297946(0x1b2))/0x6*(parseInt(_0x297946(0x1a3))/0x7)+-parseInt(_0x297946(0x1aa))/0x8+parseInt(_0x297946(0x1a6))/0x9*(parseInt(_0x297946(0x1a9))/0xa)+parseInt(_0x297946(0x1a7))/0xb*(parseInt(_0x297946(0x1a2))/0xc);if(_0x36952a===_0x3a71cb)break;else _0x2616e5['push'](_0x2616e5['shift']());}catch(_0xa5dfad){_0x2616e5['push'](_0x2616e5['shift']());}}}(a161_0x3feb,0x5bf77));function a161_0x16cf(_0x31ce00,_0x271325){_0x31ce00=_0x31ce00-0x19e;const _0x3feb66=a161_0x3feb();let _0x16cfa2=_0x3feb66[_0x31ce00];return _0x16cfa2;}export function detectSqlMode(_0x5d55bb){const _0x5bb0e8=a161_0x16cf,_0x46df1e=_0x5d55bb[_0x5bb0e8(0x1b0)]();if(/^<(select|insert|update|delete)\b/i[_0x5bb0e8(0x1b3)](_0x46df1e))return _0x5bb0e8(0x1a1);return _0x5bb0e8(0x1af);}export function getSqlFileExtension(_0x41ea61){const _0x24b78b=a161_0x16cf;return _0x41ea61===_0x24b78b(0x1a1)?_0x24b78b(0x1a5):_0x24b78b(0x1b1);}function a161_0x3feb(){const _0x551285=['4UCYMSF','unknown-sql','236636gVQMOX','sql','trimStart','.sql','6QUSHha','test','replace','3OKdfEA','db-','mybatisXml','87036kTWHdR','3812018NnfybU','trim','.xml','4705488RAirhO','143QjIazj','2333585kOVcxE','10PotIzJ','348488IablFS','690EbZjQl'];a161_0x3feb=function(){return _0x551285;};return a161_0x3feb();}export function buildDefaultSqlFileName(_0xfa938a,_0x63550f){return''+_0xfa938a+getSqlFileExtension(_0x63550f);}export function sanitizeSqlPathSegment(_0x5f3505,_0x2e3a3a){const _0x843520=a161_0x16cf,_0x3784ed=String(_0x5f3505??'')[_0x843520(0x1a4)](),_0x2bee60=_0x3784ed[_0x843520(0x19e)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x843520(0x19e)](/\s+/g,'-')[_0x843520(0x19e)](/-+/g,'-')[_0x843520(0x19e)](/^\.+/,'')['replace'](/\.+$/,'')[_0x843520(0x19e)](/^-+/,'')[_0x843520(0x19e)](/-+$/,'');return _0x2bee60||_0x2e3a3a;}export function buildDbDirectoryName(_0x4d6fa1,_0x2f94f9){const _0x28cba8=a161_0x16cf;return sanitizeSqlPathSegment(_0x4d6fa1,_0x2f94f9!=null?_0x28cba8(0x1a0)+_0x2f94f9:'unknown-db');}export function buildSqlRelativePath(_0x3ae68f,_0x195695,_0x285c41,_0x1e3ead,_0x30ee8e){const _0x5ae5af=a161_0x16cf,_0xd52207=buildDbDirectoryName(_0x285c41,_0x30ee8e),_0x21ceab=sanitizeSqlPathSegment(_0x3ae68f,_0x5ae5af(0x1ad)),_0x3c89e8=sanitizeSqlPathSegment(_0x195695,_0x21ceab);return _0xd52207+'/'+_0x21ceab+'_'+_0x3c89e8+getSqlFileExtension(_0x1e3ead);}
1
+ (function(_0x571aa8,_0x160056){const _0x4ec9d6=a161_0x25fa,_0x4bfbf4=_0x571aa8();while(!![]){try{const _0x16b912=parseInt(_0x4ec9d6(0x1b7))/0x1*(parseInt(_0x4ec9d6(0x1bf))/0x2)+-parseInt(_0x4ec9d6(0x1be))/0x3+parseInt(_0x4ec9d6(0x1b9))/0x4+parseInt(_0x4ec9d6(0x1bc))/0x5*(-parseInt(_0x4ec9d6(0x1ba))/0x6)+-parseInt(_0x4ec9d6(0x1bd))/0x7+parseInt(_0x4ec9d6(0x1c1))/0x8+parseInt(_0x4ec9d6(0x1b5))/0x9;if(_0x16b912===_0x160056)break;else _0x4bfbf4['push'](_0x4bfbf4['shift']());}catch(_0x69211){_0x4bfbf4['push'](_0x4bfbf4['shift']());}}}(a161_0x12be,0xd89de));function a161_0x25fa(_0x4e161e,_0x371c93){_0x4e161e=_0x4e161e-0x1b4;const _0x12be5d=a161_0x12be();let _0x25fac6=_0x12be5d[_0x4e161e];return _0x25fac6;}export function detectSqlMode(_0x47a9fb){const _0x1cb15c=a161_0x25fa,_0x69e55=_0x47a9fb['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x1cb15c(0x1b6)](_0x69e55))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x4a8db0){const _0x82f958=a161_0x25fa;return _0x4a8db0==='mybatisXml'?'.xml':_0x82f958(0x1c0);}export function buildDefaultSqlFileName(_0x14eed9,_0xe88be9){return''+_0x14eed9+getSqlFileExtension(_0xe88be9);}export function sanitizeSqlPathSegment(_0x3d4240,_0x4f3742){const _0x58b19c=a161_0x25fa,_0x203077=String(_0x3d4240??'')['trim'](),_0x4167fc=_0x203077[_0x58b19c(0x1b8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x58b19c(0x1b8)](/\s+/g,'-')[_0x58b19c(0x1b8)](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')[_0x58b19c(0x1b8)](/^-+/,'')['replace'](/-+$/,'');return _0x4167fc||_0x4f3742;}export function buildDbDirectoryName(_0x3d9fa7,_0x48b1f9){const _0x478269=a161_0x25fa;return sanitizeSqlPathSegment(_0x3d9fa7,_0x48b1f9!=null?_0x478269(0x1bb)+_0x48b1f9:'unknown-db');}function a161_0x12be(){const _0x16554f=['10218342mlCqLB','db-','5SBEhXb','9372545vqoBhd','517878TvCAei','2162duNltN','.sql','12480552MKlTiw','unknown-sql','6499800VJXZNV','test','412MPxYxt','replace','5496956bKqPnn'];a161_0x12be=function(){return _0x16554f;};return a161_0x12be();}export function buildSqlRelativePath(_0x2472fa,_0x4ab8ee,_0x4607ae,_0x176612,_0x410555){const _0x2d7fd3=a161_0x25fa,_0x222a46=buildDbDirectoryName(_0x4607ae,_0x410555),_0x4379d6=sanitizeSqlPathSegment(_0x2472fa,_0x2d7fd3(0x1b4)),_0xeb7504=sanitizeSqlPathSegment(_0x4ab8ee,_0x4379d6);return _0x222a46+'/'+_0x4379d6+'_'+_0xeb7504+getSqlFileExtension(_0x176612);}
@@ -1 +1 @@
1
- (function(_0x307c50,_0x4ee4cf){const _0x4ce272=a162_0x585e,_0x282865=_0x307c50();while(!![]){try{const _0x226f94=parseInt(_0x4ce272(0x16b))/0x1*(parseInt(_0x4ce272(0x175))/0x2)+-parseInt(_0x4ce272(0x173))/0x3*(-parseInt(_0x4ce272(0x16e))/0x4)+parseInt(_0x4ce272(0x166))/0x5*(-parseInt(_0x4ce272(0x188))/0x6)+-parseInt(_0x4ce272(0x17b))/0x7*(-parseInt(_0x4ce272(0x164))/0x8)+parseInt(_0x4ce272(0x17c))/0x9+parseInt(_0x4ce272(0x16a))/0xa+-parseInt(_0x4ce272(0x185))/0xb*(parseInt(_0x4ce272(0x17f))/0xc);if(_0x226f94===_0x4ee4cf)break;else _0x282865['push'](_0x282865['shift']());}catch(_0x1c39b9){_0x282865['push'](_0x282865['shift']());}}}(a162_0x2798,0x8f189));export function detectSqlType(_0x4c3e77){const _0x1f80e5=a162_0x585e;if(!_0x4c3e77?.[_0x1f80e5(0x178)]())return{'type':_0x1f80e5(0x181),'isSelectOnly':![],'isDangerous':![],'reason':_0x1f80e5(0x16c)};const _0x1831cb=_0x4c3e77[_0x1f80e5(0x174)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x1f80e5(0x174)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x32ebba=_0x1831cb[_0x1f80e5(0x17d)]('\x0a');let _0x31954e='';for(const _0x5b00e7 of _0x32ebba){const _0x202fba=_0x5b00e7[_0x1f80e5(0x178)]();if(!_0x202fba||_0x202fba[_0x1f80e5(0x168)]('--')||_0x202fba[_0x1f80e5(0x168)]('/*'))continue;_0x31954e=_0x202fba;break;}const _0x42bfd7=_0x31954e[_0x1f80e5(0x170)]();if(_0x42bfd7[_0x1f80e5(0x168)]('SELECT')||_0x42bfd7[_0x1f80e5(0x168)]('WITH')){const _0x4d0cd6=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x1f80e5(0x184)](_0x1831cb);return{'type':_0x1f80e5(0x187),'isSelectOnly':!_0x4d0cd6,'isDangerous':_0x4d0cd6,'reason':_0x4d0cd6?_0x1f80e5(0x16f):undefined};}if(_0x42bfd7[_0x1f80e5(0x168)](_0x1f80e5(0x17a)))return{'type':_0x1f80e5(0x17a),'isSelectOnly':![],'isDangerous':![]};if(_0x42bfd7[_0x1f80e5(0x168)]('UPDATE'))return{'type':_0x1f80e5(0x180),'isSelectOnly':![],'isDangerous':![]};if(_0x42bfd7[_0x1f80e5(0x168)](_0x1f80e5(0x189)))return{'type':_0x1f80e5(0x189),'isSelectOnly':![],'isDangerous':!![],'reason':_0x1f80e5(0x176)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x1f80e5(0x184)](_0x42bfd7))return{'type':_0x1f80e5(0x172),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x1f80e5(0x181),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x43af22){const _0x54c014=a162_0x585e,_0x1a976b=_0x43af22[_0x54c014(0x174)](/#\{[^}]*\}/g,'?')[_0x54c014(0x174)](/\$\{[^}]*\}/g,'?')[_0x54c014(0x174)](/'[^']*'/g,'\x27\x27')[_0x54c014(0x174)](/--.*$/gm,'')[_0x54c014(0x174)](/\/\*[\s\S]*?\*\//g,''),_0x4a445b=[],_0x202cad=_0x1a976b[_0x54c014(0x177)](/FROM\s+([^\s,)(]+)/i);if(_0x202cad?.[0x1])_0x4a445b[_0x54c014(0x169)](_0x202cad[0x1][_0x54c014(0x174)](/[`"]/g,''));for(const _0x1a0f4d of _0x1a976b[_0x54c014(0x183)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0xa1d2d1=_0x1a0f4d[0x1]?.['replace'](/[`"]/g,'');if(_0xa1d2d1&&!_0x4a445b['includes'](_0xa1d2d1))_0x4a445b[_0x54c014(0x169)](_0xa1d2d1);}const _0x1c8b80=_0x1a976b[_0x54c014(0x177)](/INTO\s+([^\s(]+)/i);if(_0x1c8b80?.[0x1]){const _0x5f57ca=_0x1c8b80[0x1]['replace'](/[`"]/g,'');if(!_0x4a445b[_0x54c014(0x171)](_0x5f57ca))_0x4a445b['push'](_0x5f57ca);}const _0x233b8c=_0x1a976b[_0x54c014(0x177)](/UPDATE\s+([^\s,)(]+)/i);if(_0x233b8c?.[0x1]){const _0x26ad54=_0x233b8c[0x1][_0x54c014(0x174)](/[`"]/g,'');if(!_0x4a445b['includes'](_0x26ad54))_0x4a445b[_0x54c014(0x169)](_0x26ad54);}return _0x4a445b;}function extractParameters(_0x3e3587){const _0x991e43=a162_0x585e,_0x4fcba8=new Set();for(const _0x4c2111 of _0x3e3587[_0x991e43(0x183)](/#\{(\w+)\}/g))if(_0x4c2111[0x1])_0x4fcba8['add'](_0x4c2111[0x1]);for(const _0x133a2b of _0x3e3587[_0x991e43(0x183)](/\$\{(\w+)\}/g))if(_0x133a2b[0x1])_0x4fcba8[_0x991e43(0x17e)](_0x133a2b[0x1]);return Array['from'](_0x4fcba8);}function a162_0x2798(){const _0x4550ab=['replace','4qAPUaw','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','match','trim','type','INSERT','1256633iqMwFS','5390415UwawAC','split','add','12VIcorC','UPDATE','UNKNOWN','unknown\x20table(s)','matchAll','test','12031492mxsAoe','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','SELECT','906arbjkX','DELETE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','24sfnVrH','length','32905CnrMJb','join','startsWith','push','2746050GwyVLO','277701MqGhgF','SQL\x20content\x20is\x20empty','isDangerous','4HahpBz','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','toUpperCase','includes','DDL','2118375DMGJzy'];a162_0x2798=function(){return _0x4550ab;};return a162_0x2798();}function a162_0x585e(_0x50ad32,_0x4d77bb){_0x50ad32=_0x50ad32-0x163;const _0x279818=a162_0x2798();let _0x585e84=_0x279818[_0x50ad32];return _0x585e84;}export function validateSql(_0x1e666f){const _0x5eef81=a162_0x585e,_0x24d31e=detectSqlType(_0x1e666f),_0x3d2291=extractTables(_0x1e666f),_0x25e06b=extractParameters(_0x1e666f);if(_0x24d31e[_0x5eef81(0x16d)])return{'valid':![],'sqlType':_0x24d31e,'tables':_0x3d2291,'parameters':_0x25e06b,'message':_0x24d31e['reason']||_0x24d31e['type']+_0x5eef81(0x186)};if(_0x24d31e[_0x5eef81(0x179)]===_0x5eef81(0x181))return{'valid':![],'sqlType':_0x24d31e,'tables':_0x3d2291,'parameters':_0x25e06b,'message':_0x5eef81(0x163)};return{'valid':!![],'sqlType':_0x24d31e,'tables':_0x3d2291,'parameters':_0x25e06b,'message':_0x24d31e[_0x5eef81(0x179)]+'\x20query\x20targeting\x20'+(_0x3d2291[_0x5eef81(0x165)]?_0x3d2291[_0x5eef81(0x167)](',\x20'):_0x5eef81(0x182))+(_0x25e06b[_0x5eef81(0x165)]?'\x20with\x20parameters:\x20'+_0x25e06b['join'](',\x20'):'')};}
1
+ function a162_0x20cb(){const _0x43facc=['split','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','SELECT','push','replace','5392ikkVHA','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','2682KfLSnC','reason','161379MetLZH','1HEdUUs','length','1029338pWIvao','toUpperCase','UPDATE','from','matchAll','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','join','unknown\x20table(s)','INSERT','WITH','845HKCCIz','\x20with\x20parameters:\x20','match','DELETE','trim','2002WBUYhR','1008380mTWSRE','3992OtdnwB','test','startsWith','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','40200gRDhKX','type','isDangerous','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','6feaFkl','add','4845519AsNBLn','includes'];a162_0x20cb=function(){return _0x43facc;};return a162_0x20cb();}(function(_0xe62bed,_0x8a31e3){const _0x56b257=a162_0x1cd4,_0x16382b=_0xe62bed();while(!![]){try{const _0x40c651=-parseInt(_0x56b257(0xa7))/0x1*(-parseInt(_0x56b257(0xa9))/0x2)+-parseInt(_0x56b257(0xa6))/0x3+-parseInt(_0x56b257(0xa2))/0x4*(parseInt(_0x56b257(0x8a))/0x5)+parseInt(_0x56b257(0x99))/0x6*(-parseInt(_0x56b257(0x9b))/0x7)+-parseInt(_0x56b257(0x91))/0x8*(-parseInt(_0x56b257(0xa4))/0x9)+parseInt(_0x56b257(0x90))/0xa+-parseInt(_0x56b257(0x8f))/0xb*(-parseInt(_0x56b257(0x95))/0xc);if(_0x40c651===_0x8a31e3)break;else _0x16382b['push'](_0x16382b['shift']());}catch(_0x3ec17b){_0x16382b['push'](_0x16382b['shift']());}}}(a162_0x20cb,0x61ad7));export function detectSqlType(_0x2e826e){const _0x2603de=a162_0x1cd4;if(!_0x2e826e?.['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x3bacef=_0x2e826e[_0x2603de(0xa1)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x2603de(0xa1)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x2603de(0xa1)](/\/\*[\s\S]*?\*\//g,'')[_0x2603de(0x8e)](),_0x139db5=_0x3bacef[_0x2603de(0x9d)]('\x0a');let _0x46b8cf='';for(const _0x1795fd of _0x139db5){const _0x4e2358=_0x1795fd['trim']();if(!_0x4e2358||_0x4e2358['startsWith']('--')||_0x4e2358[_0x2603de(0x93)]('/*'))continue;_0x46b8cf=_0x4e2358;break;}const _0x27a2ee=_0x46b8cf[_0x2603de(0xaa)]();if(_0x27a2ee['startsWith']('SELECT')||_0x27a2ee[_0x2603de(0x93)](_0x2603de(0x89))){const _0x30be2b=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2603de(0x92)](_0x3bacef);return{'type':_0x2603de(0x9f),'isSelectOnly':!_0x30be2b,'isDangerous':_0x30be2b,'reason':_0x30be2b?_0x2603de(0x98):undefined};}if(_0x27a2ee['startsWith'](_0x2603de(0x88)))return{'type':_0x2603de(0x88),'isSelectOnly':![],'isDangerous':![]};if(_0x27a2ee['startsWith']('UPDATE'))return{'type':_0x2603de(0xab),'isSelectOnly':![],'isDangerous':![]};if(_0x27a2ee[_0x2603de(0x93)](_0x2603de(0x8d)))return{'type':_0x2603de(0x8d),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2603de(0x9e)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2603de(0x92)](_0x27a2ee))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x2603de(0x85)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x1ff1d1){const _0x2fc433=a162_0x1cd4,_0x4d7e40=_0x1ff1d1[_0x2fc433(0xa1)](/#\{[^}]*\}/g,'?')[_0x2fc433(0xa1)](/\$\{[^}]*\}/g,'?')[_0x2fc433(0xa1)](/'[^']*'/g,'\x27\x27')[_0x2fc433(0xa1)](/--.*$/gm,'')[_0x2fc433(0xa1)](/\/\*[\s\S]*?\*\//g,''),_0x4e38b5=[],_0x469f5a=_0x4d7e40[_0x2fc433(0x8c)](/FROM\s+([^\s,)(]+)/i);if(_0x469f5a?.[0x1])_0x4e38b5[_0x2fc433(0xa0)](_0x469f5a[0x1][_0x2fc433(0xa1)](/[`"]/g,''));for(const _0x293175 of _0x4d7e40[_0x2fc433(0xad)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2b4c0c=_0x293175[0x1]?.[_0x2fc433(0xa1)](/[`"]/g,'');if(_0x2b4c0c&&!_0x4e38b5[_0x2fc433(0x9c)](_0x2b4c0c))_0x4e38b5[_0x2fc433(0xa0)](_0x2b4c0c);}const _0x591d41=_0x4d7e40[_0x2fc433(0x8c)](/INTO\s+([^\s(]+)/i);if(_0x591d41?.[0x1]){const _0x51a75c=_0x591d41[0x1]['replace'](/[`"]/g,'');if(!_0x4e38b5[_0x2fc433(0x9c)](_0x51a75c))_0x4e38b5[_0x2fc433(0xa0)](_0x51a75c);}const _0x32af41=_0x4d7e40[_0x2fc433(0x8c)](/UPDATE\s+([^\s,)(]+)/i);if(_0x32af41?.[0x1]){const _0x2207d4=_0x32af41[0x1][_0x2fc433(0xa1)](/[`"]/g,'');if(!_0x4e38b5[_0x2fc433(0x9c)](_0x2207d4))_0x4e38b5[_0x2fc433(0xa0)](_0x2207d4);}return _0x4e38b5;}function a162_0x1cd4(_0x9d0d0d,_0x44f236){_0x9d0d0d=_0x9d0d0d-0x85;const _0x20cb2a=a162_0x20cb();let _0x1cd443=_0x20cb2a[_0x9d0d0d];return _0x1cd443;}function extractParameters(_0x1ff248){const _0x47dfc1=a162_0x1cd4,_0x1414bd=new Set();for(const _0x2ff487 of _0x1ff248[_0x47dfc1(0xad)](/#\{(\w+)\}/g))if(_0x2ff487[0x1])_0x1414bd[_0x47dfc1(0x9a)](_0x2ff487[0x1]);for(const _0x1e31df of _0x1ff248[_0x47dfc1(0xad)](/\$\{(\w+)\}/g))if(_0x1e31df[0x1])_0x1414bd[_0x47dfc1(0x9a)](_0x1e31df[0x1]);return Array[_0x47dfc1(0xac)](_0x1414bd);}export function validateSql(_0x39d705){const _0x51a580=a162_0x1cd4,_0x1922f6=detectSqlType(_0x39d705),_0x3b61e6=extractTables(_0x39d705),_0x119f2a=extractParameters(_0x39d705);if(_0x1922f6[_0x51a580(0x97)])return{'valid':![],'sqlType':_0x1922f6,'tables':_0x3b61e6,'parameters':_0x119f2a,'message':_0x1922f6[_0x51a580(0xa5)]||_0x1922f6[_0x51a580(0x96)]+_0x51a580(0x94)};if(_0x1922f6[_0x51a580(0x96)]==='UNKNOWN')return{'valid':![],'sqlType':_0x1922f6,'tables':_0x3b61e6,'parameters':_0x119f2a,'message':_0x51a580(0xa3)};return{'valid':!![],'sqlType':_0x1922f6,'tables':_0x3b61e6,'parameters':_0x119f2a,'message':_0x1922f6[_0x51a580(0x96)]+'\x20query\x20targeting\x20'+(_0x3b61e6[_0x51a580(0xa8)]?_0x3b61e6[_0x51a580(0x86)](',\x20'):_0x51a580(0x87))+(_0x119f2a[_0x51a580(0xa8)]?_0x51a580(0x8b)+_0x119f2a[_0x51a580(0x86)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a163_0x5a6e7e=a163_0x4915;(function(_0x3f8729,_0x417ee1){const _0x57788a=a163_0x4915,_0x3b0dda=_0x3f8729();while(!![]){try{const _0x33db2e=parseInt(_0x57788a(0x15f))/0x1+-parseInt(_0x57788a(0x16a))/0x2*(-parseInt(_0x57788a(0x15d))/0x3)+parseInt(_0x57788a(0x15a))/0x4*(parseInt(_0x57788a(0x162))/0x5)+-parseInt(_0x57788a(0x165))/0x6+parseInt(_0x57788a(0x15c))/0x7*(parseInt(_0x57788a(0x169))/0x8)+parseInt(_0x57788a(0x163))/0x9+-parseInt(_0x57788a(0x160))/0xa;if(_0x33db2e===_0x417ee1)break;else _0x3b0dda['push'](_0x3b0dda['shift']());}catch(_0x13d788){_0x3b0dda['push'](_0x3b0dda['shift']());}}}(a163_0x3f3f,0xe8522));function a163_0x3f3f(){const _0x352206=['162735DtWddH','7128315ggIFcQ','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','6257052CLBSSf','Set\x20appcode\x20via\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','305528UWLwAW','3730KCrNZR','16fExYLB','Tip:\x20`','7mxKkIw','2676rGnOEP','\x0a\x20\x20\x20\x20\x20\x20\x20','873015KeHiGB','15025810VfBRWw','Run\x20`'];a163_0x3f3f=function(){return _0x352206;};return a163_0x3f3f();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a163_0x4915(_0x3955bd,_0x15d118){_0x3955bd=_0x3955bd-0x15a;const _0x3f3f36=a163_0x3f3f();let _0x491524=_0x3f3f36[_0x3955bd];return _0x491524;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x5a6e7e(0x161)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a163_0x5a6e7e(0x166)+CLI_BIN_NAME+a163_0x5a6e7e(0x167),a163_0x5a6e7e(0x15b)+CLI_BIN_NAME+a163_0x5a6e7e(0x168)]['join'](a163_0x5a6e7e(0x15e)),'notInProjectHint':a163_0x5a6e7e(0x164)});
1
+ const a163_0x257292=a163_0x3488;(function(_0x1511ce,_0x1fe077){const _0x1f1844=a163_0x3488,_0x26f9bd=_0x1511ce();while(!![]){try{const _0x484017=parseInt(_0x1f1844(0x1d5))/0x1*(-parseInt(_0x1f1844(0x1d3))/0x2)+parseInt(_0x1f1844(0x1dd))/0x3*(-parseInt(_0x1f1844(0x1da))/0x4)+-parseInt(_0x1f1844(0x1e3))/0x5+-parseInt(_0x1f1844(0x1d6))/0x6*(parseInt(_0x1f1844(0x1df))/0x7)+-parseInt(_0x1f1844(0x1e0))/0x8+parseInt(_0x1f1844(0x1d7))/0x9+parseInt(_0x1f1844(0x1de))/0xa*(parseInt(_0x1f1844(0x1d4))/0xb);if(_0x484017===_0x1fe077)break;else _0x26f9bd['push'](_0x26f9bd['shift']());}catch(_0x1e10ea){_0x26f9bd['push'](_0x26f9bd['shift']());}}}(a163_0x3f02,0xd7cba));function a163_0x3f02(){const _0x3780a7=['1bhnscP','6ZYGRzR','4047363pIWSPn','\x20auth`\x20to\x20login\x20first.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','1788nuONYN','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Tip:\x20`','1614fWCgcx','46023610sxZocv','2556491vBrkJL','2315760AXUYyb','join','Run\x20`','7680840bdRdmQ','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','3473666PqJpbv','11BvhNQD'];a163_0x3f02=function(){return _0x3780a7;};return a163_0x3f02();}function a163_0x3488(_0x2d841a,_0x2d8233){_0x2d841a=_0x2d841a-0x1d2;const _0x3f02f7=a163_0x3f02();let _0x348810=_0x3f02f7[_0x2d841a];return _0x348810;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x257292(0x1e2)+CLI_BIN_NAME+a163_0x257292(0x1d8),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a163_0x257292(0x1db),a163_0x257292(0x1dc)+CLI_BIN_NAME+a163_0x257292(0x1d2)][a163_0x257292(0x1e1)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a163_0x257292(0x1d9)});
@@ -1 +1 @@
1
- (function(_0x16cce9,_0x3b3103){var _0x42be2b=a164_0x55e8,_0x4182f7=_0x16cce9();while(!![]){try{var _0x2fe010=-parseInt(_0x42be2b(0x1ea))/0x1+parseInt(_0x42be2b(0x1ef))/0x2*(-parseInt(_0x42be2b(0x1ee))/0x3)+-parseInt(_0x42be2b(0x1ec))/0x4+parseInt(_0x42be2b(0x1f2))/0x5*(parseInt(_0x42be2b(0x1ed))/0x6)+-parseInt(_0x42be2b(0x1f0))/0x7+-parseInt(_0x42be2b(0x1f3))/0x8*(-parseInt(_0x42be2b(0x1eb))/0x9)+-parseInt(_0x42be2b(0x1f1))/0xa*(-parseInt(_0x42be2b(0x1e9))/0xb);if(_0x2fe010===_0x3b3103)break;else _0x4182f7['push'](_0x4182f7['shift']());}catch(_0xb8a1e5){_0x4182f7['push'](_0x4182f7['shift']());}}}(a164_0x51d8,0x834ba));function a164_0x55e8(_0x56c0db,_0x597b58){_0x56c0db=_0x56c0db-0x1e9;var _0x51d810=a164_0x51d8();var _0x55e8a4=_0x51d810[_0x56c0db];return _0x55e8a4;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a164_0x144ed3}from'@lovrabet/cli-framework';export function buildAllFlags(_0x28043b){return a164_0x144ed3(_0x28043b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a164_0x51d8(){var _0x28c59b=['18RUuByh','3563840sqVOxp','4473336rIRjkD','6SArmPp','1067036clcNdD','3027465SDNVIt','710qxcEjc','5MCmgeU','8352lhIIfp','415294DpftVd','499901cZFZti'];a164_0x51d8=function(){return _0x28c59b;};return a164_0x51d8();}
1
+ function a164_0x4020(_0x2c2570,_0x1e3a63){_0x2c2570=_0x2c2570-0xcf;var _0x48f818=a164_0x48f8();var _0x40201e=_0x48f818[_0x2c2570];return _0x40201e;}(function(_0xad12b7,_0x45551c){var _0x54409a=a164_0x4020,_0x1d1bbd=_0xad12b7();while(!![]){try{var _0x2b9e8e=-parseInt(_0x54409a(0xd3))/0x1+-parseInt(_0x54409a(0xd6))/0x2+-parseInt(_0x54409a(0xd2))/0x3*(parseInt(_0x54409a(0xd7))/0x4)+parseInt(_0x54409a(0xd1))/0x5+parseInt(_0x54409a(0xcf))/0x6+parseInt(_0x54409a(0xd0))/0x7*(parseInt(_0x54409a(0xd4))/0x8)+parseInt(_0x54409a(0xd5))/0x9;if(_0x2b9e8e===_0x45551c)break;else _0x1d1bbd['push'](_0x1d1bbd['shift']());}catch(_0x800915){_0x1d1bbd['push'](_0x1d1bbd['shift']());}}}(a164_0x48f8,0x53957));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a164_0x519854}from'@lovrabet/cli-framework';function a164_0x48f8(){var _0x23e425=['1164292QcxzDL','4lJSuyq','55212XrMEbZ','21lektlr','2604265OoTODy','1293324FvjLoB','483591OffycB','1372120ZrMVyR','7151436BzpnIb'];a164_0x48f8=function(){return _0x23e425;};return a164_0x48f8();}export function buildAllFlags(_0x47a6a0){return a164_0x519854(_0x47a6a0,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a165_0x3c5793=a165_0x3804;function a165_0x3804(_0x5b6707,_0xed4bb5){_0x5b6707=_0x5b6707-0x1a9;const _0x5abefc=a165_0x5abe();let _0x38045d=_0x5abefc[_0x5b6707];return _0x38045d;}function a165_0x5abe(){const _0x1864c7=['373740oKAXtw','165122uRzKfb','2943335hehAOR','7tUqKoL','validateFlags','21Fiiwth','79503QMvJsV','1985157bfloer','2525664plvIEJ','410008THNabS'];a165_0x5abe=function(){return _0x1864c7;};return a165_0x5abe();}(function(_0x1e5ed2,_0x53e4df){const _0x2e3350=a165_0x3804,_0x2135cd=_0x1e5ed2();while(!![]){try{const _0x30eb6e=-parseInt(_0x2e3350(0x1b2))/0x1+-parseInt(_0x2e3350(0x1ad))/0x2*(-parseInt(_0x2e3350(0x1b1))/0x3)+-parseInt(_0x2e3350(0x1ac))/0x4+parseInt(_0x2e3350(0x1ae))/0x5+-parseInt(_0x2e3350(0x1aa))/0x6+parseInt(_0x2e3350(0x1af))/0x7*(-parseInt(_0x2e3350(0x1ab))/0x8)+-parseInt(_0x2e3350(0x1a9))/0x9;if(_0x30eb6e===_0x53e4df)break;else _0x2135cd['push'](_0x2135cd['shift']());}catch(_0xa05e74){_0x2135cd['push'](_0x2135cd['shift']());}}}(a165_0x5abe,0x49758));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a165_0x3c5793(0x1b0)];
1
+ const a165_0x360173=a165_0x4c3c;(function(_0x109419,_0x2a5fc5){const _0x575133=a165_0x4c3c,_0x7533f0=_0x109419();while(!![]){try{const _0x2e3e7d=-parseInt(_0x575133(0x16c))/0x1*(-parseInt(_0x575133(0x16f))/0x2)+-parseInt(_0x575133(0x166))/0x3+parseInt(_0x575133(0x169))/0x4*(parseInt(_0x575133(0x16d))/0x5)+-parseInt(_0x575133(0x16b))/0x6*(-parseInt(_0x575133(0x170))/0x7)+parseInt(_0x575133(0x164))/0x8+parseInt(_0x575133(0x16e))/0x9*(-parseInt(_0x575133(0x16a))/0xa)+-parseInt(_0x575133(0x167))/0xb*(-parseInt(_0x575133(0x163))/0xc);if(_0x2e3e7d===_0x2a5fc5)break;else _0x7533f0['push'](_0x7533f0['shift']());}catch(_0x1478ff){_0x7533f0['push'](_0x7533f0['shift']());}}}(a165_0x8797,0xe5c23));function a165_0x4c3c(_0x81eda7,_0x2c8fc5){_0x81eda7=_0x81eda7-0x163;const _0x87970=a165_0x8797();let _0x4c3ce7=_0x87970[_0x81eda7];return _0x4c3ce7;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a165_0x8797(){const _0xf697dd=['35304HwnKoP','1452824uxWVOi','parseFlags','3985035WYJDPK','825tVzSBX','validateFlags','175704vkHqcQ','342230zihnsr','18030FYdZij','1249242pzrTWb','15KFwMwj','306blSWDS','2gogTrQ','3843HnZMCC'];a165_0x8797=function(){return _0xf697dd;};return a165_0x8797();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a165_0x360173(0x165)];export const validateFlags=helpers[a165_0x360173(0x168)];
@@ -1 +1 @@
1
- const a166_0x105f27=a166_0x4839;(function(_0xc4400d,_0x1c2194){const _0x578c7c=a166_0x4839,_0x4e6e18=_0xc4400d();while(!![]){try{const _0x41ce6a=-parseInt(_0x578c7c(0x189))/0x1*(-parseInt(_0x578c7c(0x18a))/0x2)+parseInt(_0x578c7c(0x190))/0x3+-parseInt(_0x578c7c(0x195))/0x4*(parseInt(_0x578c7c(0x198))/0x5)+-parseInt(_0x578c7c(0x18c))/0x6*(-parseInt(_0x578c7c(0x18d))/0x7)+-parseInt(_0x578c7c(0x196))/0x8*(parseInt(_0x578c7c(0x18e))/0x9)+parseInt(_0x578c7c(0x199))/0xa+-parseInt(_0x578c7c(0x192))/0xb;if(_0x41ce6a===_0x1c2194)break;else _0x4e6e18['push'](_0x4e6e18['shift']());}catch(_0xd42154){_0x4e6e18['push'](_0x4e6e18['shift']());}}}(a166_0x159e,0x99967));function a166_0x4839(_0x1655a9,_0x4221b6){_0x1655a9=_0x1655a9-0x189;const _0x159e6c=a166_0x159e();let _0x483902=_0x159e6c[_0x1655a9];return _0x483902;}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':_0x48911a=>serviceGroups[a166_0x105f27(0x197)](_0x48911a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a166_0x105f27(0x18f),'serviceUsageSuffix':a166_0x105f27(0x191),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x28f1b5){const _0x54bd78=a166_0x105f27;return generators[_0x54bd78(0x194)](_0x28f1b5);}export const generateServiceHelp=generators[a166_0x105f27(0x193)];export const generateFullHelp=generators[a166_0x105f27(0x18b)];function a166_0x159e(){const _0x1dd90e=['generateFullHelp','63750lhARHb','602LOGHyb','9lBMWZh','\x20project\x20init`\x20or\x20--appcode).','2817534aDPZUO','\x20[args]\x20[flags]','26254525LRrdYY','generateServiceHelp','generateCommandHelp','12AvdjJs','2980120OUzjdJ','get','354430ctSPhT','11569420UrTpLN','2651qANzLY','446FQdaem'];a166_0x159e=function(){return _0x1dd90e;};return a166_0x159e();}
1
+ const a166_0x1618e3=a166_0x6a40;function a166_0x6a40(_0x5b73cc,_0x1e0ded){_0x5b73cc=_0x5b73cc-0x12a;const _0x17e1fc=a166_0x17e1();let _0x6a40be=_0x17e1fc[_0x5b73cc];return _0x6a40be;}(function(_0x32c767,_0x5b8737){const _0x3be3af=a166_0x6a40,_0x3f4e6f=_0x32c767();while(!![]){try{const _0xa68362=parseInt(_0x3be3af(0x133))/0x1+parseInt(_0x3be3af(0x12f))/0x2*(parseInt(_0x3be3af(0x138))/0x3)+parseInt(_0x3be3af(0x136))/0x4+parseInt(_0x3be3af(0x12d))/0x5+parseInt(_0x3be3af(0x130))/0x6+-parseInt(_0x3be3af(0x12e))/0x7*(-parseInt(_0x3be3af(0x132))/0x8)+-parseInt(_0x3be3af(0x12a))/0x9*(parseInt(_0x3be3af(0x12b))/0xa);if(_0xa68362===_0x5b8737)break;else _0x3f4e6f['push'](_0x3f4e6f['shift']());}catch(_0x239de2){_0x3f4e6f['push'](_0x3f4e6f['shift']());}}}(a166_0x17e1,0x5a4f6));function a166_0x17e1(){const _0x57d6c9=['generateCommandHelp','154065XBJCvO','7BGnMER','48HLnvAb','2788428QfFijx','generateServiceHelp','117168MYdruK','537995NvnsOk','Requires\x20appcode\x20(set\x20via\x20`','\x20[args]\x20[flags]','340396iEhLxN','\x20project\x20init`\x20or\x20--appcode).','597MNKaXI','117cggZpf','590890LPrFZH'];a166_0x17e1=function(){return _0x57d6c9;};return a166_0x17e1();}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':_0x4a7364=>serviceGroups['get'](_0x4a7364),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a166_0x1618e3(0x134)+CLI_BIN_NAME+a166_0x1618e3(0x137),'serviceUsageSuffix':a166_0x1618e3(0x135),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x19977e){const _0xa75def=a166_0x1618e3;return generators[_0xa75def(0x12c)](_0x19977e);}export const generateServiceHelp=generators[a166_0x1618e3(0x131)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x39424f,_0x374634){var _0x3531fe=a167_0x1e60,_0x14d09b=_0x39424f();while(!![]){try{var _0x5a17d9=parseInt(_0x3531fe(0x14c))/0x1*(-parseInt(_0x3531fe(0x14d))/0x2)+-parseInt(_0x3531fe(0x14e))/0x3+parseInt(_0x3531fe(0x14f))/0x4+parseInt(_0x3531fe(0x154))/0x5+-parseInt(_0x3531fe(0x152))/0x6*(parseInt(_0x3531fe(0x151))/0x7)+parseInt(_0x3531fe(0x14b))/0x8+-parseInt(_0x3531fe(0x153))/0x9*(-parseInt(_0x3531fe(0x150))/0xa);if(_0x5a17d9===_0x374634)break;else _0x14d09b['push'](_0x14d09b['shift']());}catch(_0xe6ffff){_0x14d09b['push'](_0x14d09b['shift']());}}}(a167_0x7d22,0xc0e11));function a167_0x1e60(_0x1255d7,_0x9db545){_0x1255d7=_0x1255d7-0x14b;var _0x7d22f9=a167_0x7d22();var _0x1e6004=_0x7d22f9[_0x1255d7];return _0x1e6004;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a167_0x7d22(){var _0x4db522=['7416qIneUC','856257vfmOHa','4207716wrgCuW','730CJwLqU','63yWKsex','672774AnaKAa','63009ybAOyN','55745DeUOqu','8236656Nydwjn','140ufJwnz'];a167_0x7d22=function(){return _0x4db522;};return a167_0x7d22();}
1
+ (function(_0x4a3bf0,_0x3811d4){var _0x136310=a167_0x31d7,_0x3c4b7a=_0x4a3bf0();while(!![]){try{var _0x1cef89=parseInt(_0x136310(0xb7))/0x1*(parseInt(_0x136310(0xb4))/0x2)+-parseInt(_0x136310(0xb3))/0x3+-parseInt(_0x136310(0xb0))/0x4*(parseInt(_0x136310(0xb2))/0x5)+-parseInt(_0x136310(0xb1))/0x6*(parseInt(_0x136310(0xb6))/0x7)+parseInt(_0x136310(0xb8))/0x8+parseInt(_0x136310(0xaf))/0x9+parseInt(_0x136310(0xb5))/0xa;if(_0x1cef89===_0x3811d4)break;else _0x3c4b7a['push'](_0x3c4b7a['shift']());}catch(_0xf4925){_0x3c4b7a['push'](_0x3c4b7a['shift']());}}}(a167_0x42c3,0xaa24b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a167_0x31d7(_0x22323d,_0x570e3b){_0x22323d=_0x22323d-0xaf;var _0x42c319=a167_0x42c3();var _0x31d745=_0x42c319[_0x22323d];return _0x31d745;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a167_0x42c3(){var _0x5cfed1=['1398825fETKgm','485142AgRrmW','7951570zrturD','9742355GjRdLE','2AqszXF','5191008bxUnJW','12320847znxQqg','4RBQGxX','6jdFykG','3716055GfEIMJ'];a167_0x42c3=function(){return _0x5cfed1;};return a167_0x42c3();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x5aa8f8,_0x53b397){const _0x1b1648=a168_0x509f,_0x4c5b0e=_0x5aa8f8();while(!![]){try{const _0x58736d=-parseInt(_0x1b1648(0xc0))/0x1*(parseInt(_0x1b1648(0xc9))/0x2)+parseInt(_0x1b1648(0xc7))/0x3*(parseInt(_0x1b1648(0xc3))/0x4)+-parseInt(_0x1b1648(0xc2))/0x5+parseInt(_0x1b1648(0xcd))/0x6*(parseInt(_0x1b1648(0xc1))/0x7)+parseInt(_0x1b1648(0xc6))/0x8*(parseInt(_0x1b1648(0xcb))/0x9)+parseInt(_0x1b1648(0xce))/0xa*(-parseInt(_0x1b1648(0xca))/0xb)+parseInt(_0x1b1648(0xc5))/0xc;if(_0x58736d===_0x53b397)break;else _0x4c5b0e['push'](_0x4c5b0e['shift']());}catch(_0x4b0a06){_0x4c5b0e['push'](_0x4c5b0e['shift']());}}}(a168_0x1a5d,0xc5149));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x1a5d(){const _0x34af8b=['11015nNferB','9933zpQptt','2691175FtwzRk','88rPZTHJ','update','8458800MIISTd','5315384YIKGxY','40635NknhBU','url','198GAMepY','2057ameZGu','18RZLCYn','pretty','1452NjoYJC','12790ybViBD'];a168_0x1a5d=function(){return _0x34af8b;};return a168_0x1a5d();}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x14b07e,_0x4c92ab){const _0x4f6ad9=a168_0x509f,_0x33358d=_0x14b07e['_notice'],{_notice:_0x3fb678,..._0x5c03c7}=_0x14b07e;void _0x3fb678,baseFormatOutput(_0x5c03c7,_0x4c92ab),_0x4c92ab['format']===_0x4f6ad9(0xcc)&&printPrettyNotice(_0x33358d);}function a168_0x509f(_0x6957f0,_0x128c42){_0x6957f0=_0x6957f0-0xc0;const _0x1a5d15=a168_0x1a5d();let _0x509f2d=_0x1a5d15[_0x6957f0];return _0x509f2d;}function printPrettyNotice(_0x975bab){const _0x3c5a42=a168_0x509f;if(!_0x975bab?.['update'])return;console['error'](_0x975bab[_0x3c5a42(0xc4)]['message']+'\x20('+_0x975bab[_0x3c5a42(0xc4)][_0x3c5a42(0xc8)]+')');}
1
+ (function(_0x2c3f95,_0x4f95ed){const _0x19c313=a168_0x1144,_0x50b087=_0x2c3f95();while(!![]){try{const _0x217fed=parseInt(_0x19c313(0x174))/0x1+-parseInt(_0x19c313(0x17d))/0x2*(parseInt(_0x19c313(0x176))/0x3)+-parseInt(_0x19c313(0x17c))/0x4+-parseInt(_0x19c313(0x17f))/0x5*(parseInt(_0x19c313(0x173))/0x6)+parseInt(_0x19c313(0x182))/0x7+-parseInt(_0x19c313(0x180))/0x8*(-parseInt(_0x19c313(0x178))/0x9)+parseInt(_0x19c313(0x179))/0xa;if(_0x217fed===_0x4f95ed)break;else _0x50b087['push'](_0x50b087['shift']());}catch(_0x43391b){_0x50b087['push'](_0x50b087['shift']());}}}(a168_0x23fa,0xc3e0d));function a168_0x23fa(){const _0x259c41=['pretty','5shaUgn','184kfBlFp','message','6057401ITEEpT','1521420kXkaOr','51969lSSUhW','_notice','12273WrimdI','format','404595DblXDG','20374670NjHuwn','update','url','5954936JQNpCa','706zSHKAG'];a168_0x23fa=function(){return _0x259c41;};return a168_0x23fa();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x303810,_0x27b02b){const _0x54df21=a168_0x1144,_0x5394aa=_0x303810[_0x54df21(0x175)],{_notice:_0xabf3df,..._0x480381}=_0x303810;void _0xabf3df,baseFormatOutput(_0x480381,_0x27b02b),_0x27b02b[_0x54df21(0x177)]===_0x54df21(0x17e)&&printPrettyNotice(_0x5394aa);}function a168_0x1144(_0x2f29c4,_0x32fde0){_0x2f29c4=_0x2f29c4-0x173;const _0x23fa81=a168_0x23fa();let _0x114409=_0x23fa81[_0x2f29c4];return _0x114409;}function printPrettyNotice(_0x3c0711){const _0x41b489=a168_0x1144;if(!_0x3c0711?.[_0x41b489(0x17a)])return;console['error'](_0x3c0711[_0x41b489(0x17a)][_0x41b489(0x181)]+'\x20('+_0x3c0711[_0x41b489(0x17a)][_0x41b489(0x17b)]+')');}
@@ -1 +1 @@
1
- (function(_0x146437,_0x54dcd3){var _0x1fe435=a169_0x3e27,_0x3e83b0=_0x146437();while(!![]){try{var _0x34f985=parseInt(_0x1fe435(0xdb))/0x1*(parseInt(_0x1fe435(0xde))/0x2)+-parseInt(_0x1fe435(0xda))/0x3+-parseInt(_0x1fe435(0xd9))/0x4*(-parseInt(_0x1fe435(0xd7))/0x5)+-parseInt(_0x1fe435(0xdf))/0x6+-parseInt(_0x1fe435(0xe0))/0x7*(-parseInt(_0x1fe435(0xdd))/0x8)+parseInt(_0x1fe435(0xdc))/0x9+-parseInt(_0x1fe435(0xd8))/0xa*(parseInt(_0x1fe435(0xd6))/0xb);if(_0x34f985===_0x54dcd3)break;else _0x3e83b0['push'](_0x3e83b0['shift']());}catch(_0x40fa64){_0x3e83b0['push'](_0x3e83b0['shift']());}}}(a169_0x2b52,0xe66a1));function a169_0x2b52(){var _0xe6f770=['175819fvVodq','33TfXPdm','110ZGrvzE','1244690wuLGmq','31532rEmltk','4976652yuPWjJ','3KyCiPJ','15669675HYlczu','472kXMarj','796156KlevDO','9687420sdrCZq'];a169_0x2b52=function(){return _0xe6f770;};return a169_0x2b52();}function a169_0x3e27(_0x19d664,_0x262b8a){_0x19d664=_0x19d664-0xd6;var _0x2b52ff=a169_0x2b52();var _0x3e272b=_0x2b52ff[_0x19d664];return _0x3e272b;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a169_0x77e2(_0x1fd7bf,_0x5e666b){_0x1fd7bf=_0x1fd7bf-0xab;var _0x55d5b1=a169_0x55d5();var _0x77e240=_0x55d5b1[_0x1fd7bf];return _0x77e240;}(function(_0x5219f2,_0xf4fcba){var _0x540efe=a169_0x77e2,_0x5e66d6=_0x5219f2();while(!![]){try{var _0x7b1c2b=-parseInt(_0x540efe(0xb1))/0x1*(-parseInt(_0x540efe(0xad))/0x2)+-parseInt(_0x540efe(0xae))/0x3+-parseInt(_0x540efe(0xb2))/0x4+parseInt(_0x540efe(0xab))/0x5*(-parseInt(_0x540efe(0xb3))/0x6)+parseInt(_0x540efe(0xb4))/0x7*(-parseInt(_0x540efe(0xaf))/0x8)+-parseInt(_0x540efe(0xac))/0x9*(parseInt(_0x540efe(0xb5))/0xa)+parseInt(_0x540efe(0xb0))/0xb;if(_0x7b1c2b===_0xf4fcba)break;else _0x5e66d6['push'](_0x5e66d6['shift']());}catch(_0x5ddb16){_0x5e66d6['push'](_0x5e66d6['shift']());}}}(a169_0x55d5,0x3d7fb));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a169_0x55d5(){var _0x552fcf=['1103427xRZMVb','26ULyMVn','1309965LPFCMl','313304SNwhcC','19842009DptCZG','5107sgrXnN','1230988bVnRXT','42KsJHkg','63dduQxr','10uMMoNd','284885mpFwxg'];a169_0x55d5=function(){return _0x552fcf;};return a169_0x55d5();}
@@ -1 +1 @@
1
- function a170_0x2eeb(_0x4eb5f4,_0x40046c){_0x4eb5f4=_0x4eb5f4-0x169;const _0x45d2e8=a170_0x45d2();let _0x2eeb33=_0x45d2e8[_0x4eb5f4];return _0x2eeb33;}(function(_0x111041,_0x191512){const _0x567d59=a170_0x2eeb,_0x256a2b=_0x111041();while(!![]){try{const _0x1606d4=-parseInt(_0x567d59(0x169))/0x1*(parseInt(_0x567d59(0x176))/0x2)+parseInt(_0x567d59(0x17d))/0x3+-parseInt(_0x567d59(0x16b))/0x4+parseInt(_0x567d59(0x175))/0x5+parseInt(_0x567d59(0x17a))/0x6+parseInt(_0x567d59(0x170))/0x7+parseInt(_0x567d59(0x16c))/0x8;if(_0x1606d4===_0x191512)break;else _0x256a2b['push'](_0x256a2b['shift']());}catch(_0x261280){_0x256a2b['push'](_0x256a2b['shift']());}}}(a170_0x45d2,0xcb906));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2d92ab,_0x33d88f,_0x51564c,_0x41ed83){const _0x1ad559=a170_0x2eeb,_0x59052=_0x2d92ab['flags'][_0x1ad559(0x173)](_0x25806d=>_0x25806d['name']==='code'&&_0x25806d['type']==='string'),_0xfd70fe=_0x2d92ab[_0x1ad559(0x17c)][_0x1ad559(0x173)](_0x63a76b=>_0x63a76b[_0x1ad559(0x16e)]==='alias'&&_0x63a76b[_0x1ad559(0x179)]==='string');if(!_0x59052||!_0xfd70fe)return;const _0x1411ae=_0x33d88f[_0x1ad559(0x171)]?String(_0x33d88f[_0x1ad559(0x171)]):'',_0x50ae10=_0x33d88f[_0x1ad559(0x17e)]?String(_0x33d88f[_0x1ad559(0x17e)]):'';if(!_0x1411ae&&!_0x50ae10)throw CliErrors[_0x1ad559(0x16f)]('`'+_0x41ed83+_0x1ad559(0x17b));if(_0x50ae10&&!_0x1411ae){const _0x3c57ec=resolveAlias(_0x51564c,_0x50ae10);if(!_0x3c57ec){const _0x5f441e=listAliases(_0x51564c)[_0x1ad559(0x16a)](_0xedf564=>_0xedf564['alias']),_0x399a00=_0x5f441e[_0x1ad559(0x174)]?_0x1ad559(0x16d)+_0x5f441e[_0x1ad559(0x172)](',\x20'):_0x1ad559(0x177)+_0x51564c+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x1ad559(0x178)+_0x50ae10+'\x22.\x20'+_0x399a00);}_0x33d88f[_0x1ad559(0x171)]=_0x3c57ec;}}function a170_0x45d2(){const _0x4014ba=['1948023gKnMUh','alias','1HVcxFe','map','5890416nXABnY','1840472TwskEn','Available\x20aliases:\x20','name','validation','11416370iZjPiW','code','join','some','length','1299840pwsTKE','1255288cuRjJt','No\x20api.ts\x20found\x20in\x20','Unknown\x20alias\x20\x22','type','982608mJIgfG','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags'];a170_0x45d2=function(){return _0x4014ba;};return a170_0x45d2();}
1
+ (function(_0x21dbb4,_0x2013d1){const _0x433b64=a170_0x403e,_0x5b3443=_0x21dbb4();while(!![]){try{const _0x565eba=-parseInt(_0x433b64(0x74))/0x1*(parseInt(_0x433b64(0x70))/0x2)+-parseInt(_0x433b64(0x7c))/0x3*(-parseInt(_0x433b64(0x81))/0x4)+-parseInt(_0x433b64(0x6f))/0x5*(-parseInt(_0x433b64(0x82))/0x6)+parseInt(_0x433b64(0x6d))/0x7*(-parseInt(_0x433b64(0x75))/0x8)+parseInt(_0x433b64(0x84))/0x9*(-parseInt(_0x433b64(0x83))/0xa)+parseInt(_0x433b64(0x85))/0xb+parseInt(_0x433b64(0x7a))/0xc*(parseInt(_0x433b64(0x78))/0xd);if(_0x565eba===_0x2013d1)break;else _0x5b3443['push'](_0x5b3443['shift']());}catch(_0x1f996e){_0x5b3443['push'](_0x5b3443['shift']());}}}(a170_0x5c84,0x7cd08));function a170_0x403e(_0x4670b1,_0x193708){_0x4670b1=_0x4670b1-0x6c;const _0x5c8449=a170_0x5c84();let _0x403e14=_0x5c8449[_0x4670b1];return _0x403e14;}function a170_0x5c84(){const _0xbf5f69=['235611MAqdBO','1344123TQDiSd','alias','string','147119mmETRX','.\x20Run\x20`','11810NeQNhy','94ZdPLft','`\x20requires\x20either\x20--code\x20or\x20--alias.','No\x20api.ts\x20found\x20in\x20','some','7757OppZbn','8WpmuVY','name','code','11063bvZSmY','map','12108FyEMAz','\x22.\x20','90579TkjDbe','flags','validation','Available\x20aliases:\x20','type','12WXFbFf','1086qlRivY','230quiqxR'];a170_0x5c84=function(){return _0xbf5f69;};return a170_0x5c84();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0xd6537d,_0x4d0149,_0x3d95d2,_0x168ceb){const _0x2507be=a170_0x403e,_0x437a77=_0xd6537d[_0x2507be(0x7d)][_0x2507be(0x73)](_0x4a46ee=>_0x4a46ee[_0x2507be(0x76)]==='code'&&_0x4a46ee['type']===_0x2507be(0x6c)),_0x3ffddc=_0xd6537d[_0x2507be(0x7d)][_0x2507be(0x73)](_0x438b66=>_0x438b66['name']===_0x2507be(0x86)&&_0x438b66[_0x2507be(0x80)]===_0x2507be(0x6c));if(!_0x437a77||!_0x3ffddc)return;const _0x2ffc48=_0x4d0149[_0x2507be(0x77)]?String(_0x4d0149['code']):'',_0xb3f2d1=_0x4d0149[_0x2507be(0x86)]?String(_0x4d0149['alias']):'';if(!_0x2ffc48&&!_0xb3f2d1)throw CliErrors[_0x2507be(0x7e)]('`'+_0x168ceb+_0x2507be(0x71));if(_0xb3f2d1&&!_0x2ffc48){const _0x3e4042=resolveAlias(_0x3d95d2,_0xb3f2d1);if(!_0x3e4042){const _0x4fe752=listAliases(_0x3d95d2)[_0x2507be(0x79)](_0x14a03a=>_0x14a03a['alias']),_0x1bb158=_0x4fe752['length']?_0x2507be(0x7f)+_0x4fe752['join'](',\x20'):_0x2507be(0x72)+_0x3d95d2+_0x2507be(0x6e)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x2507be(0x7e)]('Unknown\x20alias\x20\x22'+_0xb3f2d1+_0x2507be(0x7b)+_0x1bb158);}_0x4d0149[_0x2507be(0x77)]=_0x3e4042;}}
@@ -1 +1 @@
1
- const a171_0x20a7c1=a171_0x950c;function a171_0x3c33(){const _0x308c48=['validation','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','pretty','riskLevel','pageSize','1031OMBrrY','5085450oRERBn','selectedAppName','\x20\x20\x20Continue?\x20[y/N]\x20','604590YfwNSe','doctor','name','rawFlags','update','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','appCode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','has','currentApp','../core/api-client.js','204520UTyWwp','resolveAppCode','configMissing','catch','appcode','RABETBASE_APPCODE','147yrjsaV','explicitAppName','defaultVerbose','format','⚠\x20\x20High-risk\x20operation:\x20','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','34IEHpZQ','execute','resolveCookie','Set\x20appcode\x20via\x20`','trim','schema','isNonInteractive','Current\x20resolved\x20appcode\x20is\x20\x22','187XBYwif','authRequired','value','4633389RYGjEP','_notice','includes','798035DZwYjp','service','verbose','apps','defaultApp','cookie','apiDir','resolveApiDomain','resolve','294EnQwnw','command','object','filter','18312ychIYd'];a171_0x3c33=function(){return _0x308c48;};return a171_0x3c33();}(function(_0x50821d,_0x44609){const _0x5e3d6d=a171_0x950c,_0x387049=_0x50821d();while(!![]){try{const _0x1f5bb0=-parseInt(_0x5e3d6d(0x146))/0x1*(-parseInt(_0x5e3d6d(0x161))/0x2)+-parseInt(_0x5e3d6d(0x178))/0x3*(parseInt(_0x5e3d6d(0x17c))/0x4)+-parseInt(_0x5e3d6d(0x16f))/0x5+-parseInt(_0x5e3d6d(0x147))/0x6+-parseInt(_0x5e3d6d(0x15b))/0x7*(-parseInt(_0x5e3d6d(0x155))/0x8)+parseInt(_0x5e3d6d(0x16c))/0x9+parseInt(_0x5e3d6d(0x14a))/0xa*(parseInt(_0x5e3d6d(0x169))/0xb);if(_0x1f5bb0===_0x44609)break;else _0x387049['push'](_0x387049['shift']());}catch(_0x2323a0){_0x387049['push'](_0x387049['shift']());}}}(a171_0x3c33,0x9c8a6));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 a171_0x21d9ef}from'../utils/is-non-interactive.js';function a171_0x950c(_0x20f434,_0x261e33){_0x20f434=_0x20f434-0x145;const _0x3c3330=a171_0x3c33();let _0x950c1f=_0x3c3330[_0x20f434];return _0x950c1f;}import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x48845b){const _0x22453b=a171_0x950c;return typeof _0x48845b==='string'&&_0x48845b[_0x22453b(0x165)]()?_0x48845b[_0x22453b(0x165)]():undefined;}function resolveEnvAppCode(){const _0x583143=a171_0x950c,_0x170469=stringFlag(process.env.RABETBASE_APPCODE);if(_0x170469)return{'name':_0x583143(0x15a),'value':_0x170469};const _0x1de7fa=stringFlag(process.env.LOVRABET_APPCODE);if(_0x1de7fa)return{'name':'LOVRABET_APPCODE','value':_0x1de7fa};return undefined;}function hasExplicitAppCode(_0x5e4c8b,_0x3f2aff){const _0x933b57=a171_0x950c;return!!(stringFlag(_0x5e4c8b[_0x933b57(0x159)])||stringFlag(_0x3f2aff['appcode']));}function assertEnvAppCodeNotIgnored(_0xbfbfe3,_0x24346b,_0xc0a93c){const _0x5a6b6c=a171_0x950c;if(!_0x24346b||_0xc0a93c||_0xbfbfe3===_0x24346b[_0x5a6b6c(0x16b)])return;const _0x2e8501=_0xbfbfe3?_0x5a6b6c(0x168)+_0xbfbfe3+'\x22.':_0x5a6b6c(0x17e);throw CliErrors[_0x5a6b6c(0x17d)](_0x24346b[_0x5a6b6c(0x14c)]+'='+_0x24346b[_0x5a6b6c(0x16b)]+_0x5a6b6c(0x160)+_0x2e8501+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x24346b[_0x5a6b6c(0x14c)]+'\x22.'));}export function createPipelineEnv(_0x220485,_0x54e3aa,_0x3a133a=[]){const _0x47e07b=a171_0x950c;return{'rawFlags':_0x54e3aa,'args':_0x3a133a,'resolveAppCode':()=>_0x220485[_0x47e07b(0x150)],'resolveCookie':()=>_0x220485[_0x47e07b(0x174)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x21d9ef(_0x54e3aa),'defaultFormat':_0x220485['format'],'defaultPageSize':_0x220485[_0x47e07b(0x145)],'defaultVerbose':_0x220485[_0x47e07b(0x171)],'apiDir':_0x220485[_0x47e07b(0x175)],'riskLevel':_0x220485[_0x47e07b(0x180)],'selectedAppName':_0x220485[_0x47e07b(0x15c)],'mergedCli':{'defaultApp':_0x220485[_0x47e07b(0x173)],'currentApp':_0x220485[_0x47e07b(0x153)],'appCode':_0x220485['appCode'],'apps':_0x220485[_0x47e07b(0x172)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x20a7c1(0x17b)](_0x6e74e7=>PIPELINE_FLAG_NAMES[a171_0x20a7c1(0x152)](_0x6e74e7[a171_0x20a7c1(0x14c)]))['map'](({name:_0x3a8fe8,type:_0x487994,description:_0x471a6e})=>({'name':_0x3a8fe8,'type':_0x487994,'description':_0x471a6e})),'formatOutput':formatOutput,'getCommandLabel'(_0x183b88){const _0x50a6ef=a171_0x20a7c1;return CLI_BIN_NAME+'\x20'+_0x183b88[_0x50a6ef(0x170)]+'\x20'+_0x183b88[_0x50a6ef(0x179)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x183bd4){const _0x19753f=a171_0x20a7c1;return CliErrors[_0x19753f(0x17d)](_0x183bd4);}},async 'prepare'(_0x515b21,_0x457d61,_0x14e439,_0x2d8de0){const _0x134709=a171_0x20a7c1,_0x2a8a71=_0x457d61['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x515b21,_0x14e439,_0x2a8a71,_0x2d8de0);let _0x4298b6='';if(_0x515b21['requiresAuth']!==![]){_0x4298b6=_0x457d61[_0x134709(0x163)]();if(!_0x4298b6)throw CliErrors[_0x134709(0x16a)]();const {setActiveCookie:_0x332302}=await import(_0x134709(0x154));_0x332302(_0x4298b6);}const _0x146359=_0x457d61[_0x134709(0x156)]()??'';if(_0x515b21['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x146359,resolveEnvAppCode(),hasExplicitAppCode(_0x14e439,_0x457d61[_0x134709(0x14d)]));if(!_0x146359)throw CliErrors[_0x134709(0x157)](_0x134709(0x164)+CLI_BIN_NAME+_0x134709(0x151));}return{'defaults':{'booleans':{'verbose':_0x457d61[_0x134709(0x15d)]},'numbers':{'pagesize':_0x457d61['defaultPageSize']}},'extras':{'appCode':_0x146359,'cookie':_0x4298b6,'apiDomain':_0x457d61[_0x134709(0x176)](),'apiDir':_0x2a8a71,'selectedAppName':_0x457d61[_0x134709(0x148)],'mergedCli':_0x457d61['mergedCli']}};},async 'confirmHighRisk'({env:_0x133aff,commandLabel:_0x310f4b}){const _0x506ec7=a171_0x20a7c1;if(_0x133aff[_0x506ec7(0x167)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x310f4b+_0x506ec7(0x14f));await requireConfirmationPrompt({'lines':[_0x506ec7(0x15f)+_0x310f4b,_0x506ec7(0x149)],'createCancelledError':_0x586291=>CliErrors['cancelled'](_0x586291)});},async 'finalize'(){const _0x26c4f0=a171_0x20a7c1,{clearActiveCookie:_0xdf127c}=await import(_0x26c4f0(0x154));_0xdf127c();}};export async function runCommand(_0x33af5e,_0x494424){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x33af5e)?withUpdateNotice(_0x33af5e):_0x33af5e,_0x494424,runnerAdapter);}function shouldAttachUpdateNotice(_0xf3d75){const _0xcad914=a171_0x20a7c1;return![_0xcad914(0x14e),_0xcad914(0x166),_0xcad914(0x14b)][_0xcad914(0x16e)](_0xf3d75['service']);}function withUpdateNotice(_0x4ffc7f){return{..._0x4ffc7f,async 'execute'(_0x366f85){const _0x387594=a171_0x950c,_0x19cb39=shouldResolveUpdateNotice(_0x366f85)?resolveLatestUpdateNotice()[_0x387594(0x158)](()=>null):Promise[_0x387594(0x177)](null),_0x182ef4=await _0x4ffc7f[_0x387594(0x162)](_0x366f85);return attachUpdateNotice(_0x182ef4,await _0x19cb39);}};}function shouldResolveUpdateNotice(_0xf40625){const _0x39baab=a171_0x20a7c1;return _0xf40625[_0x39baab(0x15e)]===_0x39baab(0x17f)&&!_0xf40625['nonInteractive'];}function attachUpdateNotice(_0x1b13a3,_0x3bf7c3){const _0x303f8f=a171_0x20a7c1;if(!_0x3bf7c3||!_0x1b13a3||typeof _0x1b13a3!==_0x303f8f(0x17a))return _0x1b13a3;const _0x44bc58=_0x1b13a3,_0x1a0253=typeof _0x44bc58[_0x303f8f(0x16d)]===_0x303f8f(0x17a)&&_0x44bc58[_0x303f8f(0x16d)]!==null?_0x44bc58[_0x303f8f(0x16d)]:{};return{..._0x44bc58,'_notice':{..._0x1a0253,'update':_0x3bf7c3}};}
1
+ const a171_0x4204ca=a171_0x36d4;(function(_0x35d098,_0x4a509f){const _0x1d1cf5=a171_0x36d4,_0x371c18=_0x35d098();while(!![]){try{const _0x28b144=-parseInt(_0x1d1cf5(0x1e2))/0x1+-parseInt(_0x1d1cf5(0x1d8))/0x2+parseInt(_0x1d1cf5(0x1d6))/0x3+-parseInt(_0x1d1cf5(0x205))/0x4+-parseInt(_0x1d1cf5(0x1f5))/0x5+-parseInt(_0x1d1cf5(0x1d2))/0x6+-parseInt(_0x1d1cf5(0x1f8))/0x7*(-parseInt(_0x1d1cf5(0x200))/0x8);if(_0x28b144===_0x4a509f)break;else _0x371c18['push'](_0x371c18['shift']());}catch(_0x1cb141){_0x371c18['push'](_0x371c18['shift']());}}}(a171_0x4830,0x9fdf9));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a171_0x36d4(_0x335fef,_0x4c81ad){_0x335fef=_0x335fef-0x1d0;const _0x483060=a171_0x4830();let _0x36d4e1=_0x483060[_0x335fef];return _0x36d4e1;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a171_0x4830(){const _0x58fd88=['No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','catch','validation','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','16qDotLi','authRequired','value','LOVRABET_APPCODE','requiresAuth','793216ZlUCBG','resolve','includes','doctor','riskLevel','5423802qrMCpw','trim','execute','_notice','2249259TjoaDi','has','1956466uAfcYe','filter','verbose','nonInteractive','appCode','currentApp','explicitAppName','hasFormat','update','cancelled','1038140qSWhCx','defaultPageSize','cookie','map','Set\x20appcode\x20via\x20`','RABETBASE_APPCODE','format','rawFlags','apps','pageSize','selectedAppName','\x20\x20\x20Continue?\x20[y/N]\x20','defaultApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','appcode','defaultVerbose','High-risk\x20operation\x20`','string','service','2751060WryUhB','../core/api-client.js','schema','12508804cMsEUc','name'];a171_0x4830=function(){return _0x58fd88;};return a171_0x4830();}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 a171_0x4cd6e9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x158a76){const _0x3d05ea=a171_0x36d4;return typeof _0x158a76===_0x3d05ea(0x1f3)&&_0x158a76[_0x3d05ea(0x1d3)]()?_0x158a76[_0x3d05ea(0x1d3)]():undefined;}function resolveEnvAppCode(){const _0x369bec=a171_0x36d4,_0x1a370c=stringFlag(process.env.RABETBASE_APPCODE);if(_0x1a370c)return{'name':_0x369bec(0x1e7),'value':_0x1a370c};const _0x47fbbe=stringFlag(process.env.LOVRABET_APPCODE);if(_0x47fbbe)return{'name':_0x369bec(0x203),'value':_0x47fbbe};return undefined;}function hasExplicitAppCode(_0x47ecc2,_0x4cecc4){const _0x13160e=a171_0x36d4;return!!(stringFlag(_0x47ecc2[_0x13160e(0x1f0)])||stringFlag(_0x4cecc4[_0x13160e(0x1f0)]));}function assertEnvAppCodeNotIgnored(_0x571cc4,_0x2711b2,_0x1f7b4b){const _0x567346=a171_0x36d4;if(!_0x2711b2||_0x1f7b4b||_0x571cc4===_0x2711b2['value'])return;const _0x192073=_0x571cc4?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x571cc4+'\x22.':_0x567346(0x1fa);throw CliErrors[_0x567346(0x1fe)](_0x2711b2[_0x567346(0x1f9)]+'='+_0x2711b2[_0x567346(0x202)]+_0x567346(0x1fb)+_0x192073+'\x20'+(_0x567346(0x1ff)+_0x2711b2[_0x567346(0x1f9)]+'\x22.'));}export function createPipelineEnv(_0x2382cc,_0x305883,_0x2c5c35=[]){const _0x540fa5=a171_0x36d4;return{'rawFlags':_0x305883,'args':_0x2c5c35,'resolveAppCode':()=>_0x2382cc[_0x540fa5(0x1dc)],'resolveCookie':()=>_0x2382cc[_0x540fa5(0x1e4)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x4cd6e9(_0x305883),'defaultFormat':_0x2382cc[_0x540fa5(0x1e8)],'defaultPageSize':_0x2382cc[_0x540fa5(0x1eb)],'defaultVerbose':_0x2382cc[_0x540fa5(0x1da)],'apiDir':_0x2382cc['apiDir'],'riskLevel':_0x2382cc[_0x540fa5(0x1d1)],'selectedAppName':_0x2382cc[_0x540fa5(0x1de)],'mergedCli':{'defaultApp':_0x2382cc[_0x540fa5(0x1ee)],'currentApp':_0x2382cc[_0x540fa5(0x1dd)],'appCode':_0x2382cc['appCode'],'apps':_0x2382cc[_0x540fa5(0x1ea)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x4204ca(0x1d9)](_0x594989=>PIPELINE_FLAG_NAMES[a171_0x4204ca(0x1d7)](_0x594989[a171_0x4204ca(0x1f9)]))[a171_0x4204ca(0x1e5)](({name:_0x57ba8f,type:_0x328365,description:_0x45910d})=>({'name':_0x57ba8f,'type':_0x328365,'description':_0x45910d})),'formatOutput':formatOutput,'getCommandLabel'(_0x75e791){return CLI_BIN_NAME+'\x20'+_0x75e791['service']+'\x20'+_0x75e791['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x22702f){const _0x19875b=a171_0x4204ca;return CliErrors[_0x19875b(0x1fe)](_0x22702f);}},async 'prepare'(_0x158d21,_0x17a37a,_0x3c2baa,_0x10fafe){const _0x4bede2=a171_0x4204ca,_0x284a50=_0x17a37a['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x158d21,_0x3c2baa,_0x284a50,_0x10fafe);let _0x4db898='';if(_0x158d21[_0x4bede2(0x204)]!==![]){_0x4db898=_0x17a37a['resolveCookie']();if(!_0x4db898)throw CliErrors[_0x4bede2(0x201)]();const {setActiveCookie:_0x41e3ad}=await import(_0x4bede2(0x1f6));_0x41e3ad(_0x4db898);}const _0x28e384=_0x17a37a['resolveAppCode']()??'';if(_0x158d21['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x28e384,resolveEnvAppCode(),hasExplicitAppCode(_0x3c2baa,_0x17a37a[_0x4bede2(0x1e9)]));if(!_0x28e384)throw CliErrors['configMissing'](_0x4bede2(0x1e6)+CLI_BIN_NAME+_0x4bede2(0x1fc));}return{'defaults':{'booleans':{'verbose':_0x17a37a[_0x4bede2(0x1f1)]},'numbers':{'pagesize':_0x17a37a[_0x4bede2(0x1e3)]}},'extras':{'appCode':_0x28e384,'cookie':_0x4db898,'apiDomain':_0x17a37a['resolveApiDomain'](),'apiDir':_0x284a50,'selectedAppName':_0x17a37a[_0x4bede2(0x1ec)],'mergedCli':_0x17a37a['mergedCli']}};},async 'confirmHighRisk'({env:_0x497388,commandLabel:_0x2be5ec}){const _0x15c61e=a171_0x4204ca;if(_0x497388['isNonInteractive'])throw CliErrors[_0x15c61e(0x1fe)](_0x15c61e(0x1f2)+_0x2be5ec+_0x15c61e(0x1ef));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x2be5ec,_0x15c61e(0x1ed)],'createCancelledError':_0x4e93dc=>CliErrors[_0x15c61e(0x1e1)](_0x4e93dc)});},async 'finalize'(){const _0x3908cf=a171_0x4204ca,{clearActiveCookie:_0x2c75bd}=await import(_0x3908cf(0x1f6));_0x2c75bd();}};export async function runCommand(_0x2b06de,_0x808c8b){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2b06de)?withUpdateNotice(_0x2b06de):_0x2b06de,_0x808c8b,runnerAdapter);}function shouldAttachUpdateNotice(_0x3aa3ac){const _0x4d71d7=a171_0x4204ca;if(_0x3aa3ac[_0x4d71d7(0x1df)]===![])return![];return![_0x4d71d7(0x1e0),_0x4d71d7(0x1f7),_0x4d71d7(0x1d0)][_0x4d71d7(0x207)](_0x3aa3ac[_0x4d71d7(0x1f4)]);}function withUpdateNotice(_0xb37dd3){return{..._0xb37dd3,async 'execute'(_0x55e68e){const _0x3e7002=a171_0x36d4,_0x340efc=shouldResolveUpdateNotice(_0x55e68e)?resolveLatestUpdateNotice()[_0x3e7002(0x1fd)](()=>null):Promise[_0x3e7002(0x206)](null),_0x2f5729=await _0xb37dd3[_0x3e7002(0x1d4)](_0x55e68e);return attachUpdateNotice(_0x2f5729,await _0x340efc);}};}function shouldResolveUpdateNotice(_0x3604ae){const _0x21a4e4=a171_0x4204ca;return _0x3604ae['format']==='pretty'&&!_0x3604ae[_0x21a4e4(0x1db)];}function attachUpdateNotice(_0x43da8a,_0x467eec){const _0x4ae6ba=a171_0x4204ca;if(!_0x467eec||!_0x43da8a||typeof _0x43da8a!=='object')return _0x43da8a;const _0x1d12e5=_0x43da8a,_0x1b5739=typeof _0x1d12e5[_0x4ae6ba(0x1d5)]==='object'&&_0x1d12e5[_0x4ae6ba(0x1d5)]!==null?_0x1d12e5['_notice']:{};return{..._0x1d12e5,'_notice':{..._0x1b5739,'update':_0x467eec}};}
@@ -1 +1 @@
1
- (function(_0x559ff5,_0x30a591){const _0x2c8fb8=a172_0x3542,_0x410fa2=_0x559ff5();while(!![]){try{const _0x3b15f1=-parseInt(_0x2c8fb8(0xee))/0x1*(-parseInt(_0x2c8fb8(0xed))/0x2)+parseInt(_0x2c8fb8(0xec))/0x3+-parseInt(_0x2c8fb8(0xf1))/0x4+parseInt(_0x2c8fb8(0xef))/0x5*(parseInt(_0x2c8fb8(0xf3))/0x6)+parseInt(_0x2c8fb8(0xf4))/0x7+-parseInt(_0x2c8fb8(0xf0))/0x8+-parseInt(_0x2c8fb8(0xf2))/0x9*(-parseInt(_0x2c8fb8(0xf5))/0xa);if(_0x3b15f1===_0x30a591)break;else _0x410fa2['push'](_0x410fa2['shift']());}catch(_0x4fe15d){_0x410fa2['push'](_0x410fa2['shift']());}}}(a172_0x1340,0x202d3));import{buildSchemaPayload as a172_0x326751}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a172_0x1340(){const _0x583392=['541568qKdWXO','45zyWLpn','936966ctsVlh','1453501Rlmghb','76420KCqoEr','../commands/registry.js','265230yOHQoV','74WZTeFC','283wEojiP','5aPWKmP','1869664gqfJjU'];a172_0x1340=function(){return _0x583392;};return a172_0x1340();}function a172_0x3542(_0x3f635a,_0x4473a9){_0x3f635a=_0x3f635a-0xeb;const _0x134084=a172_0x1340();let _0x354207=_0x134084[_0x3f635a];return _0x354207;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5a2809=a172_0x3542,{serviceRegistry:_0x59e72e,findDefinition:_0x557315}=await import(_0x5a2809(0xeb));return a172_0x326751({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x59e72e,'buildAllFlags':buildAllFlags,'findDefinition':_0x557315});}
1
+ function a172_0x37c7(_0x2fe1d6,_0xce9fcb){_0x2fe1d6=_0x2fe1d6-0x119;const _0x151c68=a172_0x151c();let _0x37c7b7=_0x151c68[_0x2fe1d6];return _0x37c7b7;}function a172_0x151c(){const _0x2c9c8d=['84406UZeotB','980348lDKrSA','150HOyUYy','390885kuivWH','895168Jhdnle','1349439GlBDZx','3342345GHEjFe','81hDJDmY','1630956AEnKHb','../commands/registry.js'];a172_0x151c=function(){return _0x2c9c8d;};return a172_0x151c();}(function(_0x22272d,_0x18cd04){const _0x2de5fd=a172_0x37c7,_0x1158c8=_0x22272d();while(!![]){try{const _0xcf2dd0=parseInt(_0x2de5fd(0x11a))/0x1+-parseInt(_0x2de5fd(0x122))/0x2+-parseInt(_0x2de5fd(0x11c))/0x3+parseInt(_0x2de5fd(0x11f))/0x4+-parseInt(_0x2de5fd(0x11d))/0x5+-parseInt(_0x2de5fd(0x119))/0x6*(-parseInt(_0x2de5fd(0x121))/0x7)+parseInt(_0x2de5fd(0x11b))/0x8*(parseInt(_0x2de5fd(0x11e))/0x9);if(_0xcf2dd0===_0x18cd04)break;else _0x1158c8['push'](_0x1158c8['shift']());}catch(_0x1dbf0e){_0x1158c8['push'](_0x1158c8['shift']());}}}(a172_0x151c,0x79bfa));import{buildSchemaPayload as a172_0x3b1185}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x3373f8=a172_0x37c7,{serviceRegistry:_0x2ee155,findDefinition:_0x4f2f20}=await import(_0x3373f8(0x120));return a172_0x3b1185({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2ee155,'buildAllFlags':buildAllFlags,'findDefinition':_0x4f2f20});}
@@ -1 +1 @@
1
- (function(_0x2ce1a1,_0x16780d){var _0x59935b=a173_0x530b,_0x352596=_0x2ce1a1();while(!![]){try{var _0x1a6436=parseInt(_0x59935b(0x1a8))/0x1+-parseInt(_0x59935b(0x1ae))/0x2+parseInt(_0x59935b(0x1ab))/0x3+parseInt(_0x59935b(0x1a6))/0x4+-parseInt(_0x59935b(0x1a9))/0x5*(parseInt(_0x59935b(0x1a7))/0x6)+parseInt(_0x59935b(0x1ad))/0x7*(parseInt(_0x59935b(0x1aa))/0x8)+-parseInt(_0x59935b(0x1af))/0x9*(parseInt(_0x59935b(0x1ac))/0xa);if(_0x1a6436===_0x16780d)break;else _0x352596['push'](_0x352596['shift']());}catch(_0x2d8431){_0x352596['push'](_0x352596['shift']());}}}(a173_0x3a01,0x82a06));function a173_0x530b(_0x2a865c,_0x5acb36){_0x2a865c=_0x2a865c-0x1a6;var _0x3a013e=a173_0x3a01();var _0x530b37=_0x3a013e[_0x2a865c];return _0x530b37;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a173_0x3a01(){var _0x398af6=['2421396VQVcld','429114yHvNZu','514910rxSJjJ','10WkuqLb','1002032wyckik','1166259NWYIZr','15970kgwigq','49qJChAS','1518176kWkyZQ','5346tweovf'];a173_0x3a01=function(){return _0x398af6;};return a173_0x3a01();}
1
+ function a173_0x268d(_0x393735,_0x11bd2b){_0x393735=_0x393735-0x14f;var _0xf82eed=a173_0xf82e();var _0x268dfe=_0xf82eed[_0x393735];return _0x268dfe;}(function(_0x53f6e8,_0x2efdfa){var _0x2a750f=a173_0x268d,_0x5dda5a=_0x53f6e8();while(!![]){try{var _0x4f15c9=parseInt(_0x2a750f(0x156))/0x1*(-parseInt(_0x2a750f(0x154))/0x2)+parseInt(_0x2a750f(0x159))/0x3*(-parseInt(_0x2a750f(0x150))/0x4)+-parseInt(_0x2a750f(0x151))/0x5+parseInt(_0x2a750f(0x152))/0x6+-parseInt(_0x2a750f(0x14f))/0x7*(parseInt(_0x2a750f(0x157))/0x8)+parseInt(_0x2a750f(0x155))/0x9+parseInt(_0x2a750f(0x153))/0xa*(parseInt(_0x2a750f(0x158))/0xb);if(_0x4f15c9===_0x2efdfa)break;else _0x5dda5a['push'](_0x5dda5a['shift']());}catch(_0x35a3f2){_0x5dda5a['push'](_0x5dda5a['shift']());}}}(a173_0xf82e,0xd4540));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a173_0xf82e(){var _0x386a46=['224YhYyLs','7540SRNUCN','4374645ZuhJms','7285716aESXii','2943370QOqTzm','106OGKOSd','13157415uUnEog','8861IMjCLO','422288tBZeVm','77NnpXpS','1326SCTmFj'];a173_0xf82e=function(){return _0x386a46;};return a173_0xf82e();}
@@ -1 +1 @@
1
- function a174_0x3e82(_0x4e1878,_0x336767){_0x4e1878=_0x4e1878-0x12c;const _0xc728c5=a174_0xc728();let _0x3e821c=_0xc728c5[_0x4e1878];return _0x3e821c;}const a174_0x7620d7=a174_0x3e82;(function(_0x41419b,_0x1e7077){const _0x252125=a174_0x3e82,_0x29307d=_0x41419b();while(!![]){try{const _0x1bcfb8=-parseInt(_0x252125(0x132))/0x1+parseInt(_0x252125(0x12e))/0x2+parseInt(_0x252125(0x136))/0x3+parseInt(_0x252125(0x12f))/0x4*(-parseInt(_0x252125(0x131))/0x5)+parseInt(_0x252125(0x135))/0x6+-parseInt(_0x252125(0x12c))/0x7*(parseInt(_0x252125(0x137))/0x8)+parseInt(_0x252125(0x138))/0x9*(parseInt(_0x252125(0x133))/0xa);if(_0x1bcfb8===_0x1e7077)break;else _0x29307d['push'](_0x29307d['shift']());}catch(_0x2e6e9a){_0x29307d['push'](_0x29307d['shift']());}}}(a174_0xc728,0xe67a2));export const VERSION=a174_0x7620d7(0x134);function a174_0xc728(){const _0x1d5e37=['84d8842','2885570mznZqm','1232068ukZIoa','2026-06-12T03:14:05.404Z','5CsKlHy','504641CvWNKX','538840FcSkmT','2.2.1','2475144BIXekF','1067652Cyxlvl','96104aHDZRZ','207XyKRHh','987rkqaEj'];a174_0xc728=function(){return _0x1d5e37;};return a174_0xc728();}export const GIT_TAG='v2.2.1-beta.2';export const GIT_COMMIT=a174_0x7620d7(0x12d);export const BUILD_TIME=a174_0x7620d7(0x130);
1
+ const a174_0x540fee=a174_0x111e;(function(_0x7e5a6c,_0x17e5ff){const _0x35b679=a174_0x111e,_0x10f976=_0x7e5a6c();while(!![]){try{const _0x5a3e06=-parseInt(_0x35b679(0x142))/0x1*(parseInt(_0x35b679(0x14a))/0x2)+parseInt(_0x35b679(0x148))/0x3*(parseInt(_0x35b679(0x146))/0x4)+-parseInt(_0x35b679(0x13d))/0x5+-parseInt(_0x35b679(0x14b))/0x6*(-parseInt(_0x35b679(0x149))/0x7)+-parseInt(_0x35b679(0x13e))/0x8*(-parseInt(_0x35b679(0x141))/0x9)+parseInt(_0x35b679(0x13f))/0xa*(parseInt(_0x35b679(0x147))/0xb)+-parseInt(_0x35b679(0x13c))/0xc;if(_0x5a3e06===_0x17e5ff)break;else _0x10f976['push'](_0x10f976['shift']());}catch(_0x8a2b51){_0x10f976['push'](_0x10f976['shift']());}}}(a174_0x55ae,0x89089));function a174_0x111e(_0xfce3c7,_0x5f178f){_0xfce3c7=_0xfce3c7-0x13c;const _0x55ae1b=a174_0x55ae();let _0x111ebb=_0x55ae1b[_0xfce3c7];return _0x111ebb;}export const VERSION=a174_0x540fee(0x140);export const GIT_TAG=a174_0x540fee(0x143);function a174_0x55ae(){const _0x3d0b90=['275019WYSDfv','3800755ZKsEBP','6voOmXK','6EBluSc','18828348MDYHsa','552520zyLSbl','6548648WapioM','7247770QiZlxO','2.2.2','9LFNOdp','70731sjVkON','v2.2.2-beta.1','2026-06-13T05:45:04.865Z','c34a96a','16AcLTRM','11sVAalE'];a174_0x55ae=function(){return _0x3d0b90;};return a174_0x55ae();}export const GIT_COMMIT=a174_0x540fee(0x145);export const BUILD_TIME=a174_0x540fee(0x144);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a175_0x2716(_0x3350c7,_0x52536c){_0x3350c7=_0x3350c7-0x134;var _0x3301b5=a175_0x3301();var _0x2716e9=_0x3301b5[_0x3350c7];return _0x2716e9;}(function(_0x3236cd,_0x1c5950){var _0x4b89c8=a175_0x2716,_0x5801aa=_0x3236cd();while(!![]){try{var _0x76960=parseInt(_0x4b89c8(0x13c))/0x1*(parseInt(_0x4b89c8(0x135))/0x2)+-parseInt(_0x4b89c8(0x13a))/0x3+parseInt(_0x4b89c8(0x140))/0x4+parseInt(_0x4b89c8(0x139))/0x5+parseInt(_0x4b89c8(0x13f))/0x6+-parseInt(_0x4b89c8(0x134))/0x7*(-parseInt(_0x4b89c8(0x13d))/0x8)+-parseInt(_0x4b89c8(0x142))/0x9*(parseInt(_0x4b89c8(0x141))/0xa);if(_0x76960===_0x1c5950)break;else _0x5801aa['push'](_0x5801aa['shift']());}catch(_0x5949f8){_0x5801aa['push'](_0x5801aa['shift']());}}}(a175_0x3301,0x291ed));import a175_0x410a42 from'chalk';function a175_0x3301(){var _0x13cef6=['bold','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','563135JKEFdO','463536aOvlam','green','47QXaQQt','8ndPRMd','log','306240QFqySx','485088uKIcfi','10eqHStW','2809773HxZcog','1012676CBitjL','8746EcBrAk'];a175_0x3301=function(){return _0x13cef6;};return a175_0x3301();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x5b62c8=a175_0x2716;console[_0x5b62c8(0x13e)](),console[_0x5b62c8(0x13e)](a175_0x410a42[_0x5b62c8(0x13b)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x5b62c8(0x13e)](),console['log'](_0x5b62c8(0x138)+a175_0x410a42[_0x5b62c8(0x13b)][_0x5b62c8(0x136)](CLI_BIN_NAME+'\x20--help')+_0x5b62c8(0x137)),console[_0x5b62c8(0x13e)]();}
1
+ function a175_0x4e2a(_0x2ded9b,_0x252e7a){_0x2ded9b=_0x2ded9b-0x192;var _0x2a7e8b=a175_0x2a7e();var _0x4e2ad0=_0x2a7e8b[_0x2ded9b];return _0x4e2ad0;}function a175_0x2a7e(){var _0x3ad615=['40PPnuhq','249648hOSTqv','\x20to\x20view\x20available\x20commands.','208yKCvpL','\x20\x20Use\x20','598656SMfIKU','11eIYmQC','3673686VBOVGB','bold','1uMkdif','green','log','2020UEpozj','10iJvcNn','7080108pKuyLH','747081OEagJl','982284aJWnlD','\x20--help'];a175_0x2a7e=function(){return _0x3ad615;};return a175_0x2a7e();}(function(_0x138d51,_0x179dd0){var _0xe0197a=a175_0x4e2a,_0x28d133=_0x138d51();while(!![]){try{var _0x46b876=parseInt(_0xe0197a(0x19c))/0x1*(parseInt(_0xe0197a(0x198))/0x2)+parseInt(_0xe0197a(0x1a3))/0x3+parseInt(_0xe0197a(0x196))/0x4*(-parseInt(_0xe0197a(0x19f))/0x5)+-parseInt(_0xe0197a(0x19a))/0x6+parseInt(_0xe0197a(0x194))/0x7*(-parseInt(_0xe0197a(0x193))/0x8)+parseInt(_0xe0197a(0x1a2))/0x9*(-parseInt(_0xe0197a(0x1a0))/0xa)+parseInt(_0xe0197a(0x199))/0xb*(parseInt(_0xe0197a(0x1a1))/0xc);if(_0x46b876===_0x179dd0)break;else _0x28d133['push'](_0x28d133['shift']());}catch(_0x10a5f1){_0x28d133['push'](_0x28d133['shift']());}}}(a175_0x2a7e,0x4ea63));import a175_0x23e5dc from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x440e82=a175_0x4e2a;console['log'](),console[_0x440e82(0x19e)](a175_0x23e5dc['green'][_0x440e82(0x19b)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x440e82(0x19e)](),console[_0x440e82(0x19e)](_0x440e82(0x197)+a175_0x23e5dc[_0x440e82(0x19d)]['bold'](CLI_BIN_NAME+_0x440e82(0x192))+_0x440e82(0x195)),console[_0x440e82(0x19e)]();}
@@ -1 +1 @@
1
- function a176_0x3137(){const _0x1b0c74=['from','help','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','dangerously-bff-save','631823ltQvOf','2605526OmAqdp','17312czHjaJ','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','log','2DmoDAs','length','Error:\x20Unsupported\x20command:\x20','111965txNwJK','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','2259vuwDGz','Equivalent\x20command:\x20','replace','has','push','\x0aAvailable\x20commands:','不支持的命令:\x20','entries','exit','skill','cwd','add','argv','1137378ayebZg','21794320uuTWKp','148CAsSFn','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','(empty)','setLogPath','enable-bff-save','4676220LzONYv','-$1','toLowerCase','error'];a176_0x3137=function(){return _0x1b0c74;};return a176_0x3137();}(function(_0x1b4eac,_0xa6b52){const _0x11e8cf=a176_0x5559,_0x30bf75=_0x1b4eac();while(!![]){try{const _0x5520e8=-parseInt(_0x11e8cf(0x8a))/0x1*(parseInt(_0x11e8cf(0x8f))/0x2)+-parseInt(_0x11e8cf(0xa8))/0x3+parseInt(_0x11e8cf(0xa3))/0x4*(parseInt(_0x11e8cf(0x92))/0x5)+parseInt(_0x11e8cf(0xa1))/0x6+parseInt(_0x11e8cf(0x8b))/0x7+-parseInt(_0x11e8cf(0x8c))/0x8*(parseInt(_0x11e8cf(0x94))/0x9)+parseInt(_0x11e8cf(0xa2))/0xa;if(_0x5520e8===_0xa6b52)break;else _0x30bf75['push'](_0x30bf75['shift']());}catch(_0x7a1cb1){_0x30bf75['push'](_0x30bf75['shift']());}}}(a176_0x3137,0xcc1bb));function a176_0x5559(_0x1bffac,_0x16915d){_0x1bffac=_0x1bffac-0x84;const _0x313727=a176_0x3137();let _0x555921=_0x313727[_0x1bffac];return _0x555921;}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(_0x48cb46){const _0x497521=a176_0x5559,_0x80c7b7=[];for(const [_0x21f2bd,_0x2b368c]of Object[_0x497521(0x9b)](_0x48cb46)){if(_0x2b368c===!![]){const _0x69f0e4=_0x21f2bd[_0x497521(0x96)](/([A-Z])/g,_0x497521(0xa9))[_0x497521(0x84)]();_0x80c7b7[_0x497521(0x98)](_0x69f0e4);}}return _0x80c7b7;}export function parseDynamicFlags(){const _0x7f2e05=a176_0x5559,_0x402702=[];for(let _0x16b3ec=0x3;_0x16b3ec<process[_0x7f2e05(0xa0)][_0x7f2e05(0x90)];_0x16b3ec++){const _0x5abf66=process[_0x7f2e05(0xa0)][_0x16b3ec];if(_0x5abf66&&_0x5abf66['startsWith']('--')){const _0x4ac0a7=_0x5abf66['slice'](0x2);_0x4ac0a7&&!_0x4ac0a7['includes']('=')&&_0x402702[_0x7f2e05(0x98)](_0x4ac0a7);}}return _0x402702;}export function getAllProvidedFlags(_0x165527){const _0x10e224=a176_0x5559,_0xae38d1=camelCaseFlagsToKebab(_0x165527),_0x4de679=parseDynamicFlags(),_0x3ed0ae=new Set([..._0xae38d1,..._0x4de679]);return Array[_0x10e224(0x86)](_0x3ed0ae);}export function normalizeLegacyBffSaveFlags(_0x24455b){const _0x8e984d=a176_0x5559,_0x283bde=new Set(_0x24455b);return _0x283bde[_0x8e984d(0x97)](_0x8e984d(0x89))&&_0x283bde[_0x8e984d(0x9f)](_0x8e984d(0xa7)),Array[_0x8e984d(0x86)](_0x283bde);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x455c07,_0x13567b,_0x283017){const _0x5cbb1f=a176_0x5559;logger[_0x5cbb1f(0xa6)](process[_0x5cbb1f(0x9e)]());if(_0x283017?.[_0x5cbb1f(0x87)]||_0x455c07==='--help'){showHelp();return;}console['error'](_0x5cbb1f(0x91)+(_0x455c07||_0x5cbb1f(0xa5))),console[_0x5cbb1f(0x8e)](_0x5cbb1f(0x99)),console[_0x5cbb1f(0x8e)]('\x20\x20'+CLI_BIN_NAME+_0x5cbb1f(0xa4)),console[_0x5cbb1f(0x8e)]('\x20\x20'+CLI_BIN_NAME+_0x5cbb1f(0x88)),console[_0x5cbb1f(0x8e)](''),console[_0x5cbb1f(0x8e)](_0x5cbb1f(0x95)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5cbb1f(0x85)](_0x5cbb1f(0x9d),_0x5cbb1f(0x9a)+_0x455c07),process[_0x5cbb1f(0x9c)](0x1);}function showHelp(){const _0xa0645e=a176_0x5559;console[_0xa0645e(0x8e)](_0xa0645e(0x93)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0xa0645e(0x8d)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x511861,_0x340811){const _0x261543=a176_0xb39c,_0x4fa8fa=_0x511861();while(!![]){try{const _0x2797f9=parseInt(_0x261543(0x135))/0x1*(-parseInt(_0x261543(0x124))/0x2)+-parseInt(_0x261543(0x134))/0x3*(parseInt(_0x261543(0x120))/0x4)+parseInt(_0x261543(0x117))/0x5+parseInt(_0x261543(0x127))/0x6*(parseInt(_0x261543(0x125))/0x7)+-parseInt(_0x261543(0x116))/0x8+-parseInt(_0x261543(0x11a))/0x9*(parseInt(_0x261543(0x123))/0xa)+-parseInt(_0x261543(0x130))/0xb*(-parseInt(_0x261543(0x12d))/0xc);if(_0x2797f9===_0x340811)break;else _0x4fa8fa['push'](_0x4fa8fa['shift']());}catch(_0x3b54ea){_0x4fa8fa['push'](_0x4fa8fa['shift']());}}}(a176_0x1f4f,0xb2d55));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a176_0x1f4f(){const _0x1254df=['不支持的命令:\x20','2936442qnooey','1646qscKLA','push','argv','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','--help','has','\x20skill\x20--help\x0a\x20\x20','11438256lMarDt','259335vqzhto','includes','length','2685762pBveep','replace','dangerously-bff-save','from','entries','slice','4laiYqb','-$1','Error:\x20Unsupported\x20command:\x20','40ayWEAe','1598DwNbmL','14ebiYEW','startsWith','3378894AGnKoI','exit','log','Equivalent\x20command:\x20','enable-bff-save','\x0aAvailable\x20commands:','36UlBHyT','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','setLogPath','16396446FDbhqa','cwd','help'];a176_0x1f4f=function(){return _0x1254df;};return a176_0x1f4f();}function a176_0xb39c(_0x33e1d7,_0x4c4d4f){_0x33e1d7=_0x33e1d7-0x112;const _0x1f4f52=a176_0x1f4f();let _0xb39c05=_0x1f4f52[_0x33e1d7];return _0xb39c05;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x4ac9df){const _0x18f77b=a176_0xb39c,_0x31e8d5=[];for(const [_0x5c5e11,_0xea729e]of Object[_0x18f77b(0x11e)](_0x4ac9df)){if(_0xea729e===!![]){const _0x2d624e=_0x5c5e11[_0x18f77b(0x11b)](/([A-Z])/g,_0x18f77b(0x121))['toLowerCase']();_0x31e8d5[_0x18f77b(0x136)](_0x2d624e);}}return _0x31e8d5;}export function parseDynamicFlags(){const _0x3310ed=a176_0xb39c,_0x52cb3c=[];for(let _0x1b6f70=0x3;_0x1b6f70<process[_0x3310ed(0x137)][_0x3310ed(0x119)];_0x1b6f70++){const _0x55d522=process['argv'][_0x1b6f70];if(_0x55d522&&_0x55d522[_0x3310ed(0x126)]('--')){const _0x558e79=_0x55d522[_0x3310ed(0x11f)](0x2);_0x558e79&&!_0x558e79[_0x3310ed(0x118)]('=')&&_0x52cb3c['push'](_0x558e79);}}return _0x52cb3c;}export function getAllProvidedFlags(_0x632b2){const _0x1019b4=a176_0xb39c,_0x4b03f9=camelCaseFlagsToKebab(_0x632b2),_0x4e2640=parseDynamicFlags(),_0x4d8cd7=new Set([..._0x4b03f9,..._0x4e2640]);return Array[_0x1019b4(0x11d)](_0x4d8cd7);}export function normalizeLegacyBffSaveFlags(_0x59732e){const _0x296431=a176_0xb39c,_0x46e2b8=new Set(_0x59732e);return _0x46e2b8[_0x296431(0x114)](_0x296431(0x11c))&&_0x46e2b8['add'](_0x296431(0x12b)),Array[_0x296431(0x11d)](_0x46e2b8);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x491bdf,_0x44d0db,_0x3894a4){const _0x27d1ad=a176_0xb39c;logger[_0x27d1ad(0x12f)](process[_0x27d1ad(0x131)]());if(_0x3894a4?.[_0x27d1ad(0x132)]||_0x491bdf===_0x27d1ad(0x113)){showHelp();return;}console['error'](_0x27d1ad(0x122)+(_0x491bdf||'(empty)')),console[_0x27d1ad(0x129)](_0x27d1ad(0x12c)),console[_0x27d1ad(0x129)]('\x20\x20'+CLI_BIN_NAME+_0x27d1ad(0x12e)),console[_0x27d1ad(0x129)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x27d1ad(0x129)](''),console[_0x27d1ad(0x129)](_0x27d1ad(0x12a)+SKILLS_INSTALL_COMMAND_LINE),logger['error']('skill',_0x27d1ad(0x133)+_0x491bdf),process[_0x27d1ad(0x128)](0x1);}function showHelp(){const _0x564a16=a176_0xb39c;console[_0x564a16(0x129)](_0x564a16(0x138)+CLI_BIN_NAME+_0x564a16(0x115)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x564a16(0x112));}
@@ -1 +1 @@
1
- const a177_0x5e20ce=a177_0x392f;(function(_0x28aef7,_0x1643da){const _0xfec3a0=a177_0x392f,_0x50ba06=_0x28aef7();while(!![]){try{const _0x443118=parseInt(_0xfec3a0(0x1e6))/0x1*(-parseInt(_0xfec3a0(0x1cd))/0x2)+parseInt(_0xfec3a0(0x1de))/0x3+parseInt(_0xfec3a0(0x1c9))/0x4*(-parseInt(_0xfec3a0(0x1d5))/0x5)+parseInt(_0xfec3a0(0x1d3))/0x6*(parseInt(_0xfec3a0(0x1c6))/0x7)+-parseInt(_0xfec3a0(0x1e3))/0x8+-parseInt(_0xfec3a0(0x1ca))/0x9*(parseInt(_0xfec3a0(0x1dc))/0xa)+parseInt(_0xfec3a0(0x1c7))/0xb;if(_0x443118===_0x1643da)break;else _0x50ba06['push'](_0x50ba06['shift']());}catch(_0x37e69d){_0x50ba06['push'](_0x50ba06['shift']());}}}(a177_0x1951,0x82708));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a177_0x5e20ce(0x1d9);function a177_0x392f(_0x2d1530,_0x5ad8b0){_0x2d1530=_0x2d1530-0x1c5;const _0x1951f8=a177_0x1951();let _0x392f19=_0x1951f8[_0x2d1530];return _0x392f19;}export const NPX_SKILLS_SUBCOMMAND_ADD=a177_0x5e20ce(0x1d0);export const NPX_SKILLS_FLAG_SKILL=a177_0x5e20ce(0x1db);export const RABETBASE_SKILL_SOURCE=a177_0x5e20ce(0x1d6);export const LEGACY_RABETBASE_SKILL_SOURCE=a177_0x5e20ce(0x1c8);export const DEFAULT_RABETBASE_SKILL_NAME=a177_0x5e20ce(0x1c5);export function buildNpxSkillsAddArgv(_0x15196f){const _0x58a175=a177_0x5e20ce,_0x5a1f45=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x15196f&&_0x5a1f45[_0x58a175(0x1e5)](NPX_SKILLS_FLAG_SKILL,_0x15196f),_0x5a1f45;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a177_0x5e20ce(0x1e2),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x5e20ce(0x1e2),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a177_0x5e20ce(0x1e4)]('\x20');function a177_0x1951(){const _0x1b1aaa=['push','110769WDozsW','Lovrabet','7PyDZIh','26347376SPmSxW','lovrabet/lovrabet-skill','568euejrq','321039zGoEFh','toString','log','14jzcYeV','pipe','trim','add','status','yes','2340366YhpTot','remove','6315HlGmOC','lovrabet/rabetbase','unknown','stdout','skills','stdio','--skill','150NOFAFh','inherit','571407BtbeIu','skill','exit\x20','stderr','npx','7613376xaGQbk','join'];a177_0x1951=function(){return _0x1b1aaa;};return a177_0x1951();}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x212f71,_0x41e2b5){const _0x24feda=a177_0x5e20ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x268274=_0x41e2b5?.['stdio']??_0x24feda(0x1dd),_0x35110e=resolveNpmBin('npx'),_0x4b2c7d=buildNpxSkillsAddArgv(_0x41e2b5?.['skill']),_0x415abb=['npx',..._0x4b2c7d][_0x24feda(0x1e4)]('\x20');console['log']('*\x20'+_0x415abb);const _0x10edd9=spawnSync(_0x35110e,_0x4b2c7d,{'cwd':_0x212f71,'stdio':_0x268274,'env':process.env,'shell':![]}),_0x5797e3=_0x10edd9[_0x24feda(0x1d1)];if(_0x5797e3===0x0)return{'ok':!![],'status':0x0};let _0x28ca52='exit\x20'+(_0x5797e3??_0x24feda(0x1d7));if(_0x268274===_0x24feda(0x1ce)){const _0x29e100=_0x10edd9[_0x24feda(0x1e1)]?_0x10edd9[_0x24feda(0x1e1)][_0x24feda(0x1cb)]()['trim']():'',_0x5eed74=_0x10edd9['stdout']?_0x10edd9[_0x24feda(0x1d8)]['toString']()[_0x24feda(0x1cf)]():'';if(_0x29e100)_0x28ca52=_0x29e100;else{if(_0x5eed74)_0x28ca52=_0x5eed74;}}return{'ok':![],'status':_0x5797e3??null,'error':_0x28ca52};}export function runNpxSkillsRemove(_0x2dd126,_0x37aa8f,_0x2eb4d0=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4a1e30=a177_0x5e20ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x356ee3=_0x37aa8f?.[_0x4a1e30(0x1da)]??_0x4a1e30(0x1dd),_0x590c41=resolveNpmBin('npx'),_0x1643c8=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4a1e30(0x1d4),_0x2eb4d0,NPX_SKILLS_FLAG_SKILL,_0x37aa8f?.[_0x4a1e30(0x1df)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x37aa8f?.[_0x4a1e30(0x1d2)]?['-y']:[]],_0x487d5c=[_0x590c41,..._0x1643c8][_0x4a1e30(0x1e4)]('\x20');console[_0x4a1e30(0x1cc)]('*\x20'+_0x487d5c);const _0x14885e=spawnSync(_0x590c41,_0x1643c8,{'cwd':_0x2dd126,'stdio':_0x356ee3,'env':process.env,'shell':![]}),_0x1e827d=_0x14885e[_0x4a1e30(0x1d1)];if(_0x1e827d===0x0)return{'ok':!![],'status':0x0};let _0x37747d=_0x4a1e30(0x1e0)+(_0x1e827d??_0x4a1e30(0x1d7));if(_0x356ee3===_0x4a1e30(0x1ce)){const _0x48ffb6=_0x14885e[_0x4a1e30(0x1e1)]?_0x14885e[_0x4a1e30(0x1e1)][_0x4a1e30(0x1cb)]()[_0x4a1e30(0x1cf)]():'',_0x58f8d8=_0x14885e[_0x4a1e30(0x1d8)]?_0x14885e['stdout'][_0x4a1e30(0x1cb)]()[_0x4a1e30(0x1cf)]():'';if(_0x48ffb6)_0x37747d=_0x48ffb6;else{if(_0x58f8d8)_0x37747d=_0x58f8d8;}}return{'ok':![],'status':_0x1e827d??null,'error':_0x37747d};}export function runNpxSkillsAddGlobal(_0x5c2ce4,_0x36dd65,_0x1e8025){const _0x49b909=a177_0x5e20ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5c2d33=_0x1e8025?.[_0x49b909(0x1da)]??_0x49b909(0x1dd),_0x1d545c=resolveNpmBin(_0x49b909(0x1e2)),_0x1f0583=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x36dd65,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x970197=[_0x49b909(0x1e2),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x36dd65,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x49b909(0x1e4)]('\x20');console[_0x49b909(0x1cc)]('*\x20'+_0x970197);const _0xba7e1f=spawnSync(_0x1d545c,_0x1f0583,{'cwd':_0x5c2ce4,'stdio':_0x5c2d33,'env':process.env,'shell':![]}),_0x4819d5=_0xba7e1f[_0x49b909(0x1d1)];if(_0x4819d5===0x0)return{'ok':!![],'status':0x0};let _0x1f63c2='exit\x20'+(_0x4819d5??_0x49b909(0x1d7));if(_0x5c2d33===_0x49b909(0x1ce)){const _0x1e0e50=_0xba7e1f[_0x49b909(0x1e1)]?_0xba7e1f[_0x49b909(0x1e1)][_0x49b909(0x1cb)]()[_0x49b909(0x1cf)]():'',_0x198850=_0xba7e1f[_0x49b909(0x1d8)]?_0xba7e1f[_0x49b909(0x1d8)][_0x49b909(0x1cb)]()['trim']():'';if(_0x1e0e50)_0x1f63c2=_0x1e0e50;else{if(_0x198850)_0x1f63c2=_0x198850;}}return{'ok':![],'status':_0x4819d5??null,'error':_0x1f63c2};}
1
+ const a177_0x398c18=a177_0x10dc;(function(_0x4b76e0,_0x2b9670){const _0x16c17c=a177_0x10dc,_0x43bfb3=_0x4b76e0();while(!![]){try{const _0x563cb7=parseInt(_0x16c17c(0x1e5))/0x1*(-parseInt(_0x16c17c(0x1da))/0x2)+parseInt(_0x16c17c(0x1d9))/0x3*(parseInt(_0x16c17c(0x1e1))/0x4)+parseInt(_0x16c17c(0x1d5))/0x5+-parseInt(_0x16c17c(0x1ea))/0x6*(-parseInt(_0x16c17c(0x1d6))/0x7)+parseInt(_0x16c17c(0x1e2))/0x8+-parseInt(_0x16c17c(0x1de))/0x9+-parseInt(_0x16c17c(0x1dd))/0xa;if(_0x563cb7===_0x2b9670)break;else _0x43bfb3['push'](_0x43bfb3['shift']());}catch(_0x5ca367){_0x43bfb3['push'](_0x43bfb3['shift']());}}}(a177_0x31e4,0x9ec28));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a177_0x398c18(0x1e3);export const NPX_SKILLS_SUBCOMMAND_ADD=a177_0x398c18(0x1e9);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a177_0x398c18(0x1eb);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a177_0x398c18(0x1df);export function buildNpxSkillsAddArgv(_0x3c30a6){const _0x31fe65=a177_0x398c18,_0x305cdc=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3c30a6&&_0x305cdc[_0x31fe65(0x1d7)](NPX_SKILLS_FLAG_SKILL,_0x3c30a6),_0x305cdc;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a177_0x398c18(0x1e4),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x398c18(0x1e4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a177_0x398c18(0x1f3)]('\x20');function a177_0x10dc(_0x258616,_0x11b66f){_0x258616=_0x258616-0x1d5;const _0x31e431=a177_0x31e4();let _0x10dc56=_0x31e431[_0x258616];return _0x10dc56;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x382cd0,_0x2f07aa){const _0x580750=a177_0x398c18;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1d8e92=_0x2f07aa?.[_0x580750(0x1d8)]??_0x580750(0x1ed),_0x4a9c9d=resolveNpmBin(_0x580750(0x1e4)),_0xc4db26=buildNpxSkillsAddArgv(_0x2f07aa?.[_0x580750(0x1e0)]),_0x4cca88=[_0x580750(0x1e4),..._0xc4db26][_0x580750(0x1f3)]('\x20');console['log']('*\x20'+_0x4cca88);const _0x14c578=spawnSync(_0x4a9c9d,_0xc4db26,{'cwd':_0x382cd0,'stdio':_0x1d8e92,'env':process.env,'shell':![]}),_0x1b289d=_0x14c578[_0x580750(0x1ef)];if(_0x1b289d===0x0)return{'ok':!![],'status':0x0};let _0x147f88=_0x580750(0x1e8)+(_0x1b289d??_0x580750(0x1dc));if(_0x1d8e92===_0x580750(0x1f2)){const _0x1ecea5=_0x14c578['stderr']?_0x14c578[_0x580750(0x1f1)][_0x580750(0x1db)]()[_0x580750(0x1ec)]():'',_0x1e9d06=_0x14c578[_0x580750(0x1e6)]?_0x14c578[_0x580750(0x1e6)][_0x580750(0x1db)]()[_0x580750(0x1ec)]():'';if(_0x1ecea5)_0x147f88=_0x1ecea5;else{if(_0x1e9d06)_0x147f88=_0x1e9d06;}}return{'ok':![],'status':_0x1b289d??null,'error':_0x147f88};}export function runNpxSkillsRemove(_0x943cee,_0x5b4917,_0x180067=LEGACY_RABETBASE_SKILL_SOURCE){const _0x272c9a=a177_0x398c18;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x177ffd=_0x5b4917?.[_0x272c9a(0x1d8)]??_0x272c9a(0x1ed),_0x319a4=resolveNpmBin(_0x272c9a(0x1e4)),_0x35e262=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x272c9a(0x1e7),_0x180067,NPX_SKILLS_FLAG_SKILL,_0x5b4917?.[_0x272c9a(0x1e0)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x5b4917?.[_0x272c9a(0x1ee)]?['-y']:[]],_0x264773=[_0x319a4,..._0x35e262][_0x272c9a(0x1f3)]('\x20');console[_0x272c9a(0x1f0)]('*\x20'+_0x264773);const _0x184178=spawnSync(_0x319a4,_0x35e262,{'cwd':_0x943cee,'stdio':_0x177ffd,'env':process.env,'shell':![]}),_0x5567a1=_0x184178[_0x272c9a(0x1ef)];if(_0x5567a1===0x0)return{'ok':!![],'status':0x0};let _0xf3dedc=_0x272c9a(0x1e8)+(_0x5567a1??_0x272c9a(0x1dc));if(_0x177ffd==='pipe'){const _0x422e4c=_0x184178[_0x272c9a(0x1f1)]?_0x184178[_0x272c9a(0x1f1)][_0x272c9a(0x1db)]()[_0x272c9a(0x1ec)]():'',_0x583c99=_0x184178['stdout']?_0x184178['stdout'][_0x272c9a(0x1db)]()[_0x272c9a(0x1ec)]():'';if(_0x422e4c)_0xf3dedc=_0x422e4c;else{if(_0x583c99)_0xf3dedc=_0x583c99;}}return{'ok':![],'status':_0x5567a1??null,'error':_0xf3dedc};}export function runNpxSkillsAddGlobal(_0x3cb492,_0x1421bc,_0x1010cf){const _0x1f4949=a177_0x398c18;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5842c6=_0x1010cf?.['stdio']??_0x1f4949(0x1ed),_0x15407e=resolveNpmBin(_0x1f4949(0x1e4)),_0x4d0333=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1421bc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x35b218=[_0x1f4949(0x1e4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1421bc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1f4949(0x1f3)]('\x20');console['log']('*\x20'+_0x35b218);const _0x2fdd70=spawnSync(_0x15407e,_0x4d0333,{'cwd':_0x3cb492,'stdio':_0x5842c6,'env':process.env,'shell':![]}),_0x4d0561=_0x2fdd70[_0x1f4949(0x1ef)];if(_0x4d0561===0x0)return{'ok':!![],'status':0x0};let _0x2b50c4=_0x1f4949(0x1e8)+(_0x4d0561??_0x1f4949(0x1dc));if(_0x5842c6===_0x1f4949(0x1f2)){const _0x46a4f5=_0x2fdd70[_0x1f4949(0x1f1)]?_0x2fdd70[_0x1f4949(0x1f1)][_0x1f4949(0x1db)]()[_0x1f4949(0x1ec)]():'',_0x5d00a3=_0x2fdd70['stdout']?_0x2fdd70[_0x1f4949(0x1e6)][_0x1f4949(0x1db)]()['trim']():'';if(_0x46a4f5)_0x2b50c4=_0x46a4f5;else{if(_0x5d00a3)_0x2b50c4=_0x5d00a3;}}return{'ok':![],'status':_0x4d0561??null,'error':_0x2b50c4};}function a177_0x31e4(){const _0x7dfd05=['lovrabet/rabetbase','trim','inherit','yes','status','log','stderr','pipe','join','1433195ekXsBH','959861sQgmai','push','stdio','119358OEBgDa','734JmnVbu','toString','unknown','23414280gJzSyV','1763829OojXYQ','Lovrabet','skill','124rBppsp','4314184EyViKH','skills','npx','288lSGUWQ','stdout','remove','exit\x20','add','54PGaJKQ'];a177_0x31e4=function(){return _0x7dfd05;};return a177_0x31e4();}
@@ -1 +1 @@
1
- (function(_0x3f0dd4,_0xecdce){const _0x487fde=a178_0x2392,_0x1f41f1=_0x3f0dd4();while(!![]){try{const _0x43913e=-parseInt(_0x487fde(0x6d))/0x1+-parseInt(_0x487fde(0x78))/0x2*(parseInt(_0x487fde(0x74))/0x3)+-parseInt(_0x487fde(0x6e))/0x4+parseInt(_0x487fde(0x73))/0x5+parseInt(_0x487fde(0x70))/0x6+parseInt(_0x487fde(0x71))/0x7+-parseInt(_0x487fde(0x7a))/0x8*(-parseInt(_0x487fde(0x77))/0x9);if(_0x43913e===_0xecdce)break;else _0x1f41f1['push'](_0x1f41f1['shift']());}catch(_0x1a20fb){_0x1f41f1['push'](_0x1f41f1['shift']());}}}(a178_0x32fa,0xe4b7e));function a178_0x2392(_0x1fd42a,_0x336f2f){_0x1fd42a=_0x1fd42a-0x6c;const _0x32fae2=a178_0x32fa();let _0x239271=_0x32fae2[_0x1fd42a];return _0x239271;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a178_0x32fa(){const _0xe12473=['36NmWlRu','56354FGXEOn','entries','3202448KzRblS','flags','service','rabetbase.command','some','1126798Dvxftv','6115176QryqQJ','durationMs','2091930cjNqab','8152053TFlZJR','command','6757255EnafNY','93hpmZlh','error','test'];a178_0x32fa=function(){return _0xe12473;};return a178_0x32fa();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x47a6ee){const _0x21f7c0=a178_0x2392;return SENSITIVE_PATTERNS[_0x21f7c0(0x6c)](_0x5157af=>_0x5157af[_0x21f7c0(0x76)](_0x47a6ee));}function sanitizeFlags(_0x3a103a){const _0x52de64=a178_0x2392,_0x1c8f32={};for(const [_0x281b7d,_0x278c37]of Object[_0x52de64(0x79)](_0x3a103a)){isSensitiveKey(_0x281b7d)?_0x1c8f32[_0x281b7d]=_0x278c37!=null&&_0x278c37!==''?'[REDACTED]':_0x278c37:_0x1c8f32[_0x281b7d]=_0x278c37;}return _0x1c8f32;}export async function reportCommandTrace(_0x107e65){const _0x32b1fa=a178_0x2392;try{const _0x15eea1=sanitizeFlags(_0x107e65[_0x32b1fa(0x7b)]);await sendCliTraceLog({'spanName':_0x32b1fa(0x7d),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x107e65[_0x32b1fa(0x7c)],'command.name':_0x107e65[_0x32b1fa(0x72)],'command.flags':JSON['stringify'](_0x15eea1),..._0x107e65[_0x32b1fa(0x6f)]!=null?{'command.duration_ms':_0x107e65[_0x32b1fa(0x6f)]}:{},..._0x107e65[_0x32b1fa(0x75)]?{'command.error':_0x107e65[_0x32b1fa(0x75)]instanceof Error?_0x107e65[_0x32b1fa(0x75)]['message']:String(_0x107e65[_0x32b1fa(0x75)])}:{}}});}catch{}}
1
+ (function(_0x1f470b,_0x69f097){const _0x9e4c5=a178_0x5d64,_0x4fe547=_0x1f470b();while(!![]){try{const _0x5c9c23=-parseInt(_0x9e4c5(0x199))/0x1+parseInt(_0x9e4c5(0x19a))/0x2*(-parseInt(_0x9e4c5(0x1a0))/0x3)+parseInt(_0x9e4c5(0x191))/0x4+parseInt(_0x9e4c5(0x19f))/0x5*(-parseInt(_0x9e4c5(0x197))/0x6)+-parseInt(_0x9e4c5(0x196))/0x7*(-parseInt(_0x9e4c5(0x1a1))/0x8)+parseInt(_0x9e4c5(0x194))/0x9+-parseInt(_0x9e4c5(0x1a3))/0xa*(-parseInt(_0x9e4c5(0x195))/0xb);if(_0x5c9c23===_0x69f097)break;else _0x4fe547['push'](_0x4fe547['shift']());}catch(_0x1061b1){_0x4fe547['push'](_0x4fe547['shift']());}}}(a178_0x1f8a,0x813ca));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a178_0x1f8a(){const _0x5d3a9b=['test','3444850hqjTbK','flags','rabetbase.command','message','2414680RJpPod','some','entries','4878873acIYlR','22nXNHXY','777gZLzmJ','318gkrAUO','stringify','246750PummoF','870186MlWQcF','command','service','durationMs','error','88805ZsqdcB','3ttbzXA','22904bGytwb'];a178_0x1f8a=function(){return _0x5d3a9b;};return a178_0x1f8a();}function a178_0x5d64(_0x3be940,_0x4af8bc){_0x3be940=_0x3be940-0x191;const _0x1f8a18=a178_0x1f8a();let _0x5d645a=_0x1f8a18[_0x3be940];return _0x5d645a;}function isSensitiveKey(_0x5ba3b1){const _0x1a62f4=a178_0x5d64;return SENSITIVE_PATTERNS[_0x1a62f4(0x192)](_0x27e86e=>_0x27e86e[_0x1a62f4(0x1a2)](_0x5ba3b1));}function sanitizeFlags(_0x50006e){const _0x51139a=a178_0x5d64,_0x114cc4={};for(const [_0x54a464,_0x36b5b3]of Object[_0x51139a(0x193)](_0x50006e)){isSensitiveKey(_0x54a464)?_0x114cc4[_0x54a464]=_0x36b5b3!=null&&_0x36b5b3!==''?'[REDACTED]':_0x36b5b3:_0x114cc4[_0x54a464]=_0x36b5b3;}return _0x114cc4;}export async function reportCommandTrace(_0x4475d8){const _0x2b592c=a178_0x5d64;try{const _0x30786a=sanitizeFlags(_0x4475d8[_0x2b592c(0x1a4)]);await sendCliTraceLog({'spanName':_0x2b592c(0x1a5),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4475d8[_0x2b592c(0x19c)],'command.name':_0x4475d8[_0x2b592c(0x19b)],'command.flags':JSON[_0x2b592c(0x198)](_0x30786a),..._0x4475d8[_0x2b592c(0x19d)]!=null?{'command.duration_ms':_0x4475d8[_0x2b592c(0x19d)]}:{},..._0x4475d8[_0x2b592c(0x19e)]?{'command.error':_0x4475d8[_0x2b592c(0x19e)]instanceof Error?_0x4475d8['error'][_0x2b592c(0x1a6)]:String(_0x4475d8['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x206579,_0x58d207){var _0x13af91=a179_0x4b2f,_0x1d495f=_0x206579();while(!![]){try{var _0x5d7f7e=parseInt(_0x13af91(0x8d))/0x1+-parseInt(_0x13af91(0x8b))/0x2*(-parseInt(_0x13af91(0x82))/0x3)+-parseInt(_0x13af91(0x88))/0x4*(-parseInt(_0x13af91(0x8e))/0x5)+-parseInt(_0x13af91(0x83))/0x6*(parseInt(_0x13af91(0x86))/0x7)+parseInt(_0x13af91(0x81))/0x8*(-parseInt(_0x13af91(0x85))/0x9)+parseInt(_0x13af91(0x84))/0xa*(-parseInt(_0x13af91(0x8a))/0xb)+parseInt(_0x13af91(0x8c))/0xc;if(_0x5d7f7e===_0x58d207)break;else _0x1d495f['push'](_0x1d495f['shift']());}catch(_0x49e82b){_0x1d495f['push'](_0x1d495f['shift']());}}}(a179_0x2407,0x9e06d));function a179_0x4b2f(_0x263004,_0x5cc307){_0x263004=_0x263004-0x81;var _0x24074f=a179_0x2407();var _0x4b2f5b=_0x24074f[_0x263004];return _0x4b2f5b;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a179_0x2407(){var _0x250762=['75541babriG','5gtFTaa','8Opxbem','1318851TTBWdd','24vgbXei','149470TztkNd','7587729qnYhNy','657293prfBBy','cli.help','4402172TzdHPI','service','407ZkCvlf','2yLIsXx','9639504lXkPGk'];a179_0x2407=function(){return _0x250762;};return a179_0x2407();}export async function reportCliHelpTrace(_0x10ce1b,_0x57f5e7){var _0x52d800=a179_0x4b2f;try{await sendCliTraceLog({'spanName':_0x52d800(0x87),'logData':{'rabetbase.help.kind':_0x10ce1b,..._0x57f5e7?.[_0x52d800(0x89)]&&{'rabetbase.help.service':_0x57f5e7[_0x52d800(0x89)]}}});}catch(_0x347169){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x347169);}}
1
+ (function(_0x3969f,_0x180df9){var _0x3433e3=a179_0x3f72,_0x2a1b5f=_0x3969f();while(!![]){try{var _0x57c8e3=parseInt(_0x3433e3(0x1e0))/0x1*(parseInt(_0x3433e3(0x1e1))/0x2)+-parseInt(_0x3433e3(0x1e8))/0x3*(-parseInt(_0x3433e3(0x1e2))/0x4)+parseInt(_0x3433e3(0x1dd))/0x5+-parseInt(_0x3433e3(0x1e4))/0x6*(-parseInt(_0x3433e3(0x1de))/0x7)+parseInt(_0x3433e3(0x1da))/0x8*(parseInt(_0x3433e3(0x1df))/0x9)+-parseInt(_0x3433e3(0x1e9))/0xa+-parseInt(_0x3433e3(0x1e7))/0xb*(parseInt(_0x3433e3(0x1e3))/0xc);if(_0x57c8e3===_0x180df9)break;else _0x2a1b5f['push'](_0x2a1b5f['shift']());}catch(_0x5ea125){_0x2a1b5f['push'](_0x2a1b5f['shift']());}}}(a179_0x1c0d,0x9a35f));function a179_0x1c0d(){var _0x2bc745=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','44vGvFGa','537723cwmsAV','5863840pXYRPf','8TaOyMi','error','cli.help','4986015IDHMqp','21QJOvXM','5705991Eqohyd','719BmMAkM','3098QExlAE','4WjgwaQ','8442444kcmhNs','2216010hSLdEe'];a179_0x1c0d=function(){return _0x2bc745;};return a179_0x1c0d();}function a179_0x3f72(_0x3fbb82,_0x230a85){_0x3fbb82=_0x3fbb82-0x1da;var _0x1c0d1d=a179_0x1c0d();var _0x3f725c=_0x1c0d1d[_0x3fbb82];return _0x3f725c;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2440fa,_0x4f3081){var _0x5a3622=a179_0x3f72;try{await sendCliTraceLog({'spanName':_0x5a3622(0x1dc),'logData':{'rabetbase.help.kind':_0x2440fa,..._0x4f3081?.[_0x5a3622(0x1e6)]&&{'rabetbase.help.service':_0x4f3081[_0x5a3622(0x1e6)]}}});}catch(_0x26b9dc){console[_0x5a3622(0x1db)](_0x5a3622(0x1e5),_0x26b9dc);}}
@@ -1 +1 @@
1
- function a180_0x3433(_0xb8fccc,_0x4ef212){_0xb8fccc=_0xb8fccc-0x67;const _0x44072c=a180_0x4407();let _0x3433c=_0x44072c[_0xb8fccc];return _0x3433c;}(function(_0x140f06,_0x3c5579){const _0x129e49=a180_0x3433,_0x314886=_0x140f06();while(!![]){try{const _0x420e58=-parseInt(_0x129e49(0x75))/0x1+-parseInt(_0x129e49(0x6d))/0x2*(parseInt(_0x129e49(0x69))/0x3)+parseInt(_0x129e49(0x73))/0x4*(parseInt(_0x129e49(0x6e))/0x5)+parseInt(_0x129e49(0x6c))/0x6+parseInt(_0x129e49(0x6f))/0x7*(-parseInt(_0x129e49(0x67))/0x8)+parseInt(_0x129e49(0x77))/0x9+-parseInt(_0x129e49(0x70))/0xa;if(_0x420e58===_0x3c5579)break;else _0x314886['push'](_0x314886['shift']());}catch(_0x570fd6){_0x314886['push'](_0x314886['shift']());}}}(a180_0x4407,0xbbc0d));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 a180_0x4407(){const _0x178324=['2430378WFISJm','112488wslYbU','email','699HQXyfW','production','nickname','5141856Mhrvvt','3766AgyYHC','2830gkPkeb','119DKkvsm','1517490IzJBMw','unknown','username','3740ZTMgQb','tenant_code','57666JoDABD','tenant'];a180_0x4407=function(){return _0x178324;};return a180_0x4407();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x17cec9=a180_0x3433,_0x432e26=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xa97211=_0x432e26?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x17cec9(0x71)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x17cec9(0x6a))}),setUserContext({'id':_0xa97211?.['id'],'username':_0xa97211?.[_0x17cec9(0x72)],'nickname':_0xa97211?.[_0x17cec9(0x6b)],'email':_0xa97211?.[_0x17cec9(0x68)],'tenantCode':_0xa97211?.[_0x17cec9(0x76)][_0x17cec9(0x74)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x432e26;}
1
+ function a180_0x1573(){const _0x192c69=['10vRMaTW','34506vHegwJ','1642195AlDnBG','402227FDYQFS','572xCbSFx','1pztFHa','username','140016ZVjVxe','daily','user','7664967OaDcyL','56ljstcj','820054wQpSWg','1852KBQupk','production','email','tenant','4569uyyHHo'];a180_0x1573=function(){return _0x192c69;};return a180_0x1573();}function a180_0x582e(_0x570388,_0x255f25){_0x570388=_0x570388-0x6b;const _0x157386=a180_0x1573();let _0x582e19=_0x157386[_0x570388];return _0x582e19;}(function(_0x11ef17,_0x5236a3){const _0x43b448=a180_0x582e,_0x23a63b=_0x11ef17();while(!![]){try{const _0x1a7cc1=-parseInt(_0x43b448(0x76))/0x1*(-parseInt(_0x43b448(0x6b))/0x2)+parseInt(_0x43b448(0x70))/0x3*(-parseInt(_0x43b448(0x6c))/0x4)+-parseInt(_0x43b448(0x73))/0x5+parseInt(_0x43b448(0x72))/0x6+-parseInt(_0x43b448(0x74))/0x7*(parseInt(_0x43b448(0x7c))/0x8)+-parseInt(_0x43b448(0x7b))/0x9*(-parseInt(_0x43b448(0x71))/0xa)+-parseInt(_0x43b448(0x75))/0xb*(-parseInt(_0x43b448(0x78))/0xc);if(_0x1a7cc1===_0x5236a3)break;else _0x23a63b['push'](_0x23a63b['shift']());}catch(_0x213819){_0x23a63b['push'](_0x23a63b['shift']());}}}(a180_0x1573,0x6b05a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x529d35=a180_0x582e,_0x573595=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3ef0c0=_0x573595?.[_0x529d35(0x7a)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x529d35(0x79):_0x529d35(0x6d))}),setUserContext({'id':_0x3ef0c0?.['id'],'username':_0x3ef0c0?.[_0x529d35(0x77)],'nickname':_0x3ef0c0?.['nickname'],'email':_0x3ef0c0?.[_0x529d35(0x6e)],'tenantCode':_0x3ef0c0?.[_0x529d35(0x6f)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x573595;}
@@ -1 +1 @@
1
- (function(_0x488a4d,_0x1f5a1e){const _0x58e506=a181_0x5ee1,_0x559deb=_0x488a4d();while(!![]){try{const _0x19e6c4=parseInt(_0x58e506(0x119))/0x1*(-parseInt(_0x58e506(0x124))/0x2)+parseInt(_0x58e506(0x120))/0x3+parseInt(_0x58e506(0x11e))/0x4*(-parseInt(_0x58e506(0x122))/0x5)+parseInt(_0x58e506(0x115))/0x6*(-parseInt(_0x58e506(0x11b))/0x7)+-parseInt(_0x58e506(0x11d))/0x8*(parseInt(_0x58e506(0x11c))/0x9)+parseInt(_0x58e506(0x121))/0xa*(-parseInt(_0x58e506(0x11f))/0xb)+parseInt(_0x58e506(0x116))/0xc;if(_0x19e6c4===_0x1f5a1e)break;else _0x559deb['push'](_0x559deb['shift']());}catch(_0xeffb3b){_0x559deb['push'](_0x559deb['shift']());}}}(a181_0x3382,0xf13ee));function a181_0x5ee1(_0x1509a1,_0xe3db92){_0x1509a1=_0x1509a1-0x115;const _0x3382f4=a181_0x3382();let _0x5ee179=_0x3382f4[_0x1509a1];return _0x5ee179;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1faf6c=a181_0x5ee1;process[_0x1faf6c(0x118)](_0x1faf6c(0x117),()=>{void flushOtelNodeIfUsed();});const _0x2d506a=()=>{const _0x309be1=_0x1faf6c;void flushOtelNodeIfUsed()['then'](()=>process[_0x309be1(0x11a)](0x0));};process[_0x1faf6c(0x118)]('SIGINT',_0x2d506a),process[_0x1faf6c(0x118)](_0x1faf6c(0x123),_0x2d506a);}function a181_0x3382(){const _0x1f7a20=['111287osyzNb','5319381jdmUgq','260YGpWel','590CYbBuX','SIGTERM','8mxfove','6pyzeAF','55722948uDuebG','beforeExit','once','229078aUeAQt','exit','11124281CTkUch','9QrpMIz','12872008GlbGBH','35628evXzOE'];a181_0x3382=function(){return _0x1f7a20;};return a181_0x3382();}export async function exitWithOtelShutdown(_0x40f3f1){const _0x483ef0=a181_0x5ee1;await flushOtelNodeIfUsed(),process[_0x483ef0(0x11a)](_0x40f3f1);}
1
+ (function(_0x71b88d,_0x34b710){const _0x515d16=a181_0x4f15,_0x651939=_0x71b88d();while(!![]){try{const _0x2de141=-parseInt(_0x515d16(0xaf))/0x1*(parseInt(_0x515d16(0xb4))/0x2)+-parseInt(_0x515d16(0xae))/0x3+-parseInt(_0x515d16(0xab))/0x4*(-parseInt(_0x515d16(0xb5))/0x5)+-parseInt(_0x515d16(0xb0))/0x6+-parseInt(_0x515d16(0xb1))/0x7+parseInt(_0x515d16(0xb3))/0x8+parseInt(_0x515d16(0xa8))/0x9*(parseInt(_0x515d16(0xa9))/0xa);if(_0x2de141===_0x34b710)break;else _0x651939['push'](_0x651939['shift']());}catch(_0x242e71){_0x651939['push'](_0x651939['shift']());}}}(a181_0x3a1a,0xc3e6c));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a181_0x3a1a(){const _0xc05810=['exit','524GJLLdM','SIGTERM','SIGINT','3253824jkwTEz','443tpDOZu','2586936EPsfDi','388052uYiyLP','once','7419376bcDVwY','2284dgiLHr','51215BCjOXv','then','beforeExit','1830789UWfDsf','30ERfiwq'];a181_0x3a1a=function(){return _0xc05810;};return a181_0x3a1a();}function a181_0x4f15(_0x1673a0,_0x1d4143){_0x1673a0=_0x1673a0-0xa6;const _0x3a1a41=a181_0x3a1a();let _0x4f15fa=_0x3a1a41[_0x1673a0];return _0x4f15fa;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1cbb06=a181_0x4f15;process[_0x1cbb06(0xb2)](_0x1cbb06(0xa7),()=>{void flushOtelNodeIfUsed();});const _0x24b28d=()=>{const _0x3192a4=_0x1cbb06;void flushOtelNodeIfUsed()[_0x3192a4(0xa6)](()=>process[_0x3192a4(0xaa)](0x0));};process[_0x1cbb06(0xb2)](_0x1cbb06(0xad),_0x24b28d),process[_0x1cbb06(0xb2)](_0x1cbb06(0xac),_0x24b28d);}export async function exitWithOtelShutdown(_0x3c82f4){await flushOtelNodeIfUsed(),process['exit'](_0x3c82f4);}