@lovrabet/lovrabet-cli 2.2.7-beta.1 → 2.2.7

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 (158) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/notification/config-list.js +1 -1
  36. package/lib/commands/notification/index.js +1 -1
  37. package/lib/commands/notification/shared.js +1 -1
  38. package/lib/commands/ocr/index.js +1 -1
  39. package/lib/commands/permit/dataset-get.js +1 -1
  40. package/lib/commands/permit/dataset-set.js +1 -1
  41. package/lib/commands/permit/index.js +1 -1
  42. package/lib/commands/permit/page-get.js +1 -1
  43. package/lib/commands/permit/page-set.js +1 -1
  44. package/lib/commands/permit/role-menus-set.js +1 -1
  45. package/lib/commands/permit/role-menus.js +1 -1
  46. package/lib/commands/permit/shared.js +1 -1
  47. package/lib/commands/personal-bff/index.js +1 -1
  48. package/lib/commands/registry.js +1 -1
  49. package/lib/commands/role/create.js +1 -1
  50. package/lib/commands/role/delete.js +1 -1
  51. package/lib/commands/role/detail.js +1 -1
  52. package/lib/commands/role/index.js +1 -1
  53. package/lib/commands/role/list.js +1 -1
  54. package/lib/commands/role/shared.js +1 -1
  55. package/lib/commands/role/update.js +1 -1
  56. package/lib/commands/role/user-add.js +1 -1
  57. package/lib/commands/role/user-remove.js +1 -1
  58. package/lib/commands/schedule/index.js +1 -1
  59. package/lib/commands/schema.js +1 -1
  60. package/lib/commands/service/dynamic.js +1 -1
  61. package/lib/commands/service/function-name-adapter.js +1 -1
  62. package/lib/commands/service/index.js +1 -1
  63. package/lib/commands/service/registry.js +1 -1
  64. package/lib/commands/skill/commands/create.js +1 -1
  65. package/lib/commands/skill/commands/diagram.js +1 -1
  66. package/lib/commands/skill/commands/install.js +1 -1
  67. package/lib/commands/skill/commands/list.js +1 -1
  68. package/lib/commands/skill/commands/push.js +1 -1
  69. package/lib/commands/skill/commands/validate.js +1 -1
  70. package/lib/commands/skill/diagram.js +1 -1
  71. package/lib/commands/skill/flags.js +1 -1
  72. package/lib/commands/skill/index.js +1 -1
  73. package/lib/commands/skill/manifest-helpers.js +1 -1
  74. package/lib/commands/skill/push-execute.js +1 -1
  75. package/lib/commands/skill/push-flow-helpers.js +1 -1
  76. package/lib/commands/skill/push-retarget.js +1 -1
  77. package/lib/commands/skill/scopes.js +1 -1
  78. package/lib/commands/skill/summary.js +1 -1
  79. package/lib/commands/skill/templates.js +1 -1
  80. package/lib/commands/skill/validate.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/update.js +1 -1
  85. package/lib/commands/user-account/bind.js +1 -1
  86. package/lib/commands/user-account/index.js +1 -1
  87. package/lib/commands/workspace/index.js +1 -1
  88. package/lib/config/schema.js +1 -1
  89. package/lib/constant/app.js +1 -1
  90. package/lib/constant/auth-mode.js +1 -1
  91. package/lib/constant/cli.js +1 -1
  92. package/lib/constant/defaults.js +1 -1
  93. package/lib/constant/distribution.js +1 -1
  94. package/lib/constant/domain.js +1 -1
  95. package/lib/constant/env.js +1 -1
  96. package/lib/constant/output.js +1 -1
  97. package/lib/constant/product.js +1 -1
  98. package/lib/constant/risk.js +1 -1
  99. package/lib/constant/url.js +1 -1
  100. package/lib/context.js +1 -1
  101. package/lib/core/api-client.js +1 -1
  102. package/lib/core/db-resolver.js +1 -1
  103. package/lib/core/sdk-client.js +1 -1
  104. package/lib/errors.js +1 -1
  105. package/lib/framework/build-all-flags.js +1 -1
  106. package/lib/framework/dryrun.js +1 -1
  107. package/lib/framework/flags.js +1 -1
  108. package/lib/framework/help.js +1 -1
  109. package/lib/framework/index.js +1 -1
  110. package/lib/framework/output.js +1 -1
  111. package/lib/framework/preparse.js +1 -1
  112. package/lib/framework/rate-limit.js +1 -1
  113. package/lib/framework/raw-flags.js +1 -1
  114. package/lib/framework/response.js +1 -1
  115. package/lib/framework/runner-confirmation.js +1 -1
  116. package/lib/framework/runner-error.js +1 -1
  117. package/lib/framework/runner.js +1 -1
  118. package/lib/framework/schema-export.js +1 -1
  119. package/lib/framework/service-order.js +1 -1
  120. package/lib/framework/types.js +1 -1
  121. package/lib/generated/build-info.d.ts +4 -4
  122. package/lib/generated/build-info.js +1 -1
  123. package/lib/help.js +1 -1
  124. package/lib/postinstall.js +1 -1
  125. package/lib/runtime/confirmation.js +1 -1
  126. package/lib/runtime/event.js +1 -1
  127. package/lib/runtime/index.js +1 -1
  128. package/lib/runtime/queue.js +1 -1
  129. package/lib/runtime/resolve.js +1 -1
  130. package/lib/skills/builtin-skill.js +1 -1
  131. package/lib/skills/npx-skills-add.js +1 -1
  132. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  133. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  134. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  135. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  136. package/lib/skills/runtime-skill-sync/links.js +1 -1
  137. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  138. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  139. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  140. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  141. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  142. package/lib/skills/runtime-skill-sync/push.js +1 -1
  143. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  144. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  145. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  146. package/lib/skills/runtime-skill-sync.js +1 -1
  147. package/lib/skills/skill-presence.js +1 -1
  148. package/lib/utils/apply-jq-filter.js +1 -1
  149. package/lib/utils/logger.js +1 -1
  150. package/lib/utils/lossless-json.js +1 -1
  151. package/lib/utils/params.js +1 -1
  152. package/lib/utils/platform.js +1 -1
  153. package/lib/utils/update-notice.js +1 -1
  154. package/lib/utils/version.js +1 -1
  155. package/lib/utils/write-cli-side-channel.js +1 -1
  156. package/package.json +1 -1
  157. package/skills/lovrabet/SKILL.md +1 -1
  158. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x1da69f,_0x198e55){const _0x1ed31a=a114_0x491d,_0x444251=_0x1da69f();while(!![]){try{const _0x35e894=parseInt(_0x1ed31a(0x198))/0x1*(parseInt(_0x1ed31a(0x196))/0x2)+parseInt(_0x1ed31a(0x191))/0x3*(-parseInt(_0x1ed31a(0x19d))/0x4)+-parseInt(_0x1ed31a(0x1ab))/0x5*(-parseInt(_0x1ed31a(0x1ad))/0x6)+parseInt(_0x1ed31a(0x193))/0x7+-parseInt(_0x1ed31a(0x195))/0x8*(parseInt(_0x1ed31a(0x197))/0x9)+-parseInt(_0x1ed31a(0x1a0))/0xa+parseInt(_0x1ed31a(0x1a6))/0xb;if(_0x35e894===_0x198e55)break;else _0x444251['push'](_0x444251['shift']());}catch(_0x495498){_0x444251['push'](_0x444251['shift']());}}}(a114_0x40b4,0x503ed));function a114_0x491d(_0x44c9dd,_0x164b7c){_0x44c9dd=_0x44c9dd-0x189;const _0x40b4f3=a114_0x40b4();let _0x491d86=_0x40b4f3[_0x44c9dd];return _0x491d86;}function a114_0x40b4(){const _0x3feb6b=['kind=','312056sbBJxH','34WwqRYd','117GLHaRo','10963ZYKUQw','name=','title','schedule-id','channel','392pdBoqL','commandLabel','schedule-id=','2862270Mklaft','stringify','service','scheduled-at','length','params','6668893SMiHBi','title=','join','affectedRecords','cron','941800NEUBSc','--yes','6vovTHm','description','name','cron=','code','push','⚠\x20\x20High-risk\x20operation:\x20','channel=','code=','8178FIlDVm','kind','2857099BNmDQw'];a114_0x40b4=function(){return _0x3feb6b;};return a114_0x40b4();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x2a7b55,_0x506522,_0x16a646){const _0x34cfa1=a114_0x491d,_0x4f86e4=buildConfirmationContext(_0x2a7b55,_0x506522,_0x16a646),_0x1579e0=[_0x34cfa1(0x18e)+_0x4f86e4[_0x34cfa1(0x19e)]];return _0x4f86e4[_0x34cfa1(0x189)]&&_0x1579e0['push']('\x20\x20\x20'+_0x4f86e4[_0x34cfa1(0x189)]),_0x4f86e4[_0x34cfa1(0x1a9)]&&_0x1579e0['push']('\x20\x20\x20Affected:\x20'+_0x4f86e4['affectedRecords']),_0x1579e0['push']('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x1579e0;}export function reconstructCommandArgv(_0x2a2e86,_0x410673){const _0x52a169=a114_0x491d,_0x18aaa8=[CLI_BIN_NAME,_0x2a2e86[_0x52a169(0x1a2)],_0x2a2e86['command']];for(const [_0x45a7b5,_0x49dea9]of Object['entries'](_0x410673)){if(_0x49dea9===!![])_0x18aaa8['push']('--'+_0x45a7b5);else _0x49dea9!==![]&&_0x49dea9!==undefined&&_0x49dea9!==''&&_0x18aaa8[_0x52a169(0x18d)]('--'+_0x45a7b5+'\x20'+JSON[_0x52a169(0x1a1)](_0x49dea9));}return _0x18aaa8[_0x52a169(0x18d)](_0x52a169(0x1ac)),_0x18aaa8['join']('\x20');}function buildConfirmationContext(_0x55fe84,_0x2c2705,_0x3b507f){const _0xce2887=a114_0x491d,_0x4f6bed=extractAffectedRecords(_0x3b507f);return{'commandLabel':_0x2c2705,'description':_0x55fe84[_0xce2887(0x189)],'affectedRecords':_0x4f6bed};}function extractAffectedRecords(_0x213a6f){const _0x3aebb1=a114_0x491d,_0x24d792=[];if(_0x213a6f[_0x3aebb1(0x18c)])_0x24d792[_0x3aebb1(0x18d)](_0x3aebb1(0x190)+_0x213a6f[_0x3aebb1(0x18c)]);if(_0x213a6f['id'])_0x24d792[_0x3aebb1(0x18d)]('id='+_0x213a6f['id']);if(_0x213a6f[_0x3aebb1(0x19b)])_0x24d792[_0x3aebb1(0x18d)](_0x3aebb1(0x19f)+_0x213a6f['schedule-id']);if(_0x213a6f['name'])_0x24d792[_0x3aebb1(0x18d)](_0x3aebb1(0x199)+_0x213a6f[_0x3aebb1(0x18a)]);if(_0x213a6f[_0x3aebb1(0x19a)])_0x24d792[_0x3aebb1(0x18d)](_0x3aebb1(0x1a7)+_0x213a6f[_0x3aebb1(0x19a)]);if(_0x213a6f[_0x3aebb1(0x192)])_0x24d792[_0x3aebb1(0x18d)](_0x3aebb1(0x194)+_0x213a6f[_0x3aebb1(0x192)]);if(_0x213a6f[_0x3aebb1(0x1aa)])_0x24d792[_0x3aebb1(0x18d)](_0x3aebb1(0x18b)+_0x213a6f['cron']);if(_0x213a6f['scheduled-at'])_0x24d792['push']('scheduled-at='+_0x213a6f[_0x3aebb1(0x1a3)]);if(_0x213a6f[_0x3aebb1(0x19c)])_0x24d792[_0x3aebb1(0x18d)](_0x3aebb1(0x18f)+_0x213a6f['channel']);if(_0x213a6f['params'])_0x24d792[_0x3aebb1(0x18d)]('params='+_0x213a6f[_0x3aebb1(0x1a5)]);return _0x24d792[_0x3aebb1(0x1a4)]>0x0?_0x24d792[_0x3aebb1(0x1a8)](',\x20'):undefined;}
1
+ function a114_0x82c4(){const _0xdb34f=['service','affectedRecords','3192590fvTEEs','schedule-id=','451515ymgPJk','push','length','stringify','command','kind','\x20\x20\x20','cron','schedule-id','scheduled-at=','entries','7528hRGQnb','code','params','name','description','join','1052471ynTGSF','477300ZjGwlP','cron=','channel=','title=','7623TLuNru','scheduled-at','6dlXRfy','commandLabel','kind=','title','name=','644242eJcSXI','code=','channel','\x20\x20\x20Affected:\x20','706632Aubfcd'];a114_0x82c4=function(){return _0xdb34f;};return a114_0x82c4();}(function(_0xc1132d,_0x57bf41){const _0x4222c9=a114_0x30bc,_0x306cf3=_0xc1132d();while(!![]){try{const _0x4a7278=-parseInt(_0x4222c9(0xda))/0x1+parseInt(_0x4222c9(0xd5))/0x2*(parseInt(_0x4222c9(0xe3))/0x3)+parseInt(_0x4222c9(0xde))/0x4+-parseInt(_0x4222c9(0xe1))/0x5+parseInt(_0x4222c9(0xf5))/0x6+parseInt(_0x4222c9(0xf4))/0x7+-parseInt(_0x4222c9(0xee))/0x8*(-parseInt(_0x4222c9(0xd3))/0x9);if(_0x4a7278===_0x57bf41)break;else _0x306cf3['push'](_0x306cf3['shift']());}catch(_0x4abab9){_0x306cf3['push'](_0x306cf3['shift']());}}}(a114_0x82c4,0x5ae77));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x2d9e2b,_0xfa66a6,_0x95fb27){const _0x326ef1=a114_0x30bc,_0x1278f1=buildConfirmationContext(_0x2d9e2b,_0xfa66a6,_0x95fb27),_0x1de3ef=['⚠\x20\x20High-risk\x20operation:\x20'+_0x1278f1[_0x326ef1(0xd6)]];return _0x1278f1[_0x326ef1(0xf2)]&&_0x1de3ef[_0x326ef1(0xe4)](_0x326ef1(0xe9)+_0x1278f1[_0x326ef1(0xf2)]),_0x1278f1[_0x326ef1(0xe0)]&&_0x1de3ef[_0x326ef1(0xe4)](_0x326ef1(0xdd)+_0x1278f1[_0x326ef1(0xe0)]),_0x1de3ef[_0x326ef1(0xe4)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x1de3ef;}export function reconstructCommandArgv(_0x377919,_0x3b1aa4){const _0x1f7464=a114_0x30bc,_0x17f1bf=[CLI_BIN_NAME,_0x377919[_0x1f7464(0xdf)],_0x377919[_0x1f7464(0xe7)]];for(const [_0x3288df,_0x2e4710]of Object[_0x1f7464(0xed)](_0x3b1aa4)){if(_0x2e4710===!![])_0x17f1bf[_0x1f7464(0xe4)]('--'+_0x3288df);else _0x2e4710!==![]&&_0x2e4710!==undefined&&_0x2e4710!==''&&_0x17f1bf[_0x1f7464(0xe4)]('--'+_0x3288df+'\x20'+JSON[_0x1f7464(0xe6)](_0x2e4710));}return _0x17f1bf[_0x1f7464(0xe4)]('--yes'),_0x17f1bf['join']('\x20');}function a114_0x30bc(_0xecf879,_0x3595fc){_0xecf879=_0xecf879-0xd3;const _0x82c42=a114_0x82c4();let _0x30bcaa=_0x82c42[_0xecf879];return _0x30bcaa;}function buildConfirmationContext(_0x1f313a,_0x37b1c3,_0x5200e7){const _0x5f0d79=a114_0x30bc,_0x1e9cae=extractAffectedRecords(_0x5200e7);return{'commandLabel':_0x37b1c3,'description':_0x1f313a[_0x5f0d79(0xf2)],'affectedRecords':_0x1e9cae};}function extractAffectedRecords(_0x4a5246){const _0x594224=a114_0x30bc,_0x3efbe8=[];if(_0x4a5246[_0x594224(0xef)])_0x3efbe8[_0x594224(0xe4)](_0x594224(0xdb)+_0x4a5246['code']);if(_0x4a5246['id'])_0x3efbe8[_0x594224(0xe4)]('id='+_0x4a5246['id']);if(_0x4a5246['schedule-id'])_0x3efbe8[_0x594224(0xe4)](_0x594224(0xe2)+_0x4a5246[_0x594224(0xeb)]);if(_0x4a5246[_0x594224(0xf1)])_0x3efbe8[_0x594224(0xe4)](_0x594224(0xd9)+_0x4a5246[_0x594224(0xf1)]);if(_0x4a5246[_0x594224(0xd8)])_0x3efbe8[_0x594224(0xe4)](_0x594224(0xf8)+_0x4a5246[_0x594224(0xd8)]);if(_0x4a5246[_0x594224(0xe8)])_0x3efbe8[_0x594224(0xe4)](_0x594224(0xd7)+_0x4a5246[_0x594224(0xe8)]);if(_0x4a5246[_0x594224(0xea)])_0x3efbe8['push'](_0x594224(0xf6)+_0x4a5246['cron']);if(_0x4a5246[_0x594224(0xd4)])_0x3efbe8[_0x594224(0xe4)](_0x594224(0xec)+_0x4a5246[_0x594224(0xd4)]);if(_0x4a5246[_0x594224(0xdc)])_0x3efbe8['push'](_0x594224(0xf7)+_0x4a5246['channel']);if(_0x4a5246[_0x594224(0xf0)])_0x3efbe8['push']('params='+_0x4a5246[_0x594224(0xf0)]);return _0x3efbe8[_0x594224(0xe5)]>0x0?_0x3efbe8[_0x594224(0xf3)](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0x3536d6,_0x193f1a){const _0x564b3b=a115_0x1501,_0x2ca507=_0x3536d6();while(!![]){try{const _0x120525=-parseInt(_0x564b3b(0x193))/0x1*(-parseInt(_0x564b3b(0x19a))/0x2)+parseInt(_0x564b3b(0x194))/0x3+-parseInt(_0x564b3b(0x197))/0x4+-parseInt(_0x564b3b(0x18f))/0x5*(-parseInt(_0x564b3b(0x18e))/0x6)+parseInt(_0x564b3b(0x192))/0x7+parseInt(_0x564b3b(0x195))/0x8+parseInt(_0x564b3b(0x190))/0x9*(-parseInt(_0x564b3b(0x18d))/0xa);if(_0x120525===_0x193f1a)break;else _0x2ca507['push'](_0x2ca507['shift']());}catch(_0x3b8f63){_0x2ca507['push'](_0x2ca507['shift']());}}}(a115_0xd587,0xa05d0));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x4f4378){const _0x5e077e=a115_0x1501;if(_0x4f4378 instanceof LovrabetError){const _0x362d47=userFacingLovrabetMessage(_0x4f4378),_0x1b924b=_0x4f4378,_0x3f2043=createRateLimitError({'status':_0x1b924b['status'],'errorCode':_0x1b924b[_0x5e077e(0x196)],'message':_0x362d47,'retryAfter':readRetryAfter(_0x1b924b[_0x5e077e(0x18c)]?.[_0x5e077e(0x199)])??readRetryAfterSeconds(_0x1b924b[_0x5e077e(0x18c)])});return _0x3f2043??CliErrors[_0x5e077e(0x198)](_0x362d47);}return _0x4f4378;}function a115_0x1501(_0x43c176,_0x4de970){_0x43c176=_0x43c176-0x18b;const _0xd587e3=a115_0xd587();let _0x1501e4=_0xd587e3[_0x43c176];return _0x1501e4;}function a115_0xd587(){const _0x30f26a=['118285piEthU','233409jfSbJt','8938112CKAMqd','code','1586692LELjAz','validation','headers','14OVuKRC','description','response','10XqKsnz','6iPLDLk','1340805CiZezi','16667919gVVEYF','trim','4300023QyYAaJ'];a115_0xd587=function(){return _0x30f26a;};return a115_0xd587();}function userFacingLovrabetMessage(_0x3faeb8){const _0x342b00=a115_0x1501,_0xd20dbc=_0x3faeb8[_0x342b00(0x18b)];if(_0xd20dbc!==undefined&&_0xd20dbc!==null){if(typeof _0xd20dbc==='string'&&_0xd20dbc[_0x342b00(0x191)]())return _0xd20dbc[_0x342b00(0x191)]();try{return JSON['stringify'](_0xd20dbc);}catch{}}return _0x3faeb8['message'];}
1
+ function a115_0x233f(){const _0x4b5f2d=['19110091JlaYEU','35312pVvcsn','736032VmrBfT','code','response','trim','1600893UzYvcZ','1203388IUQAPF','63IHUgNO','validation','587872tEQmIw','message','description','headers','status','20bxyyKW','5MiOsgN','8VewmOM','1080666mjjAqo','stringify'];a115_0x233f=function(){return _0x4b5f2d;};return a115_0x233f();}(function(_0x4ad353,_0x421d4d){const _0x3b82f1=a115_0x2db6,_0x18b72e=_0x4ad353();while(!![]){try{const _0x7ca1d8=-parseInt(_0x3b82f1(0xad))/0x1+-parseInt(_0x3b82f1(0xaa))/0x2+parseInt(_0x3b82f1(0xa5))/0x3*(parseInt(_0x3b82f1(0xa0))/0x4)+parseInt(_0x3b82f1(0x9f))/0x5*(-parseInt(_0x3b82f1(0xa1))/0x6)+parseInt(_0x3b82f1(0xab))/0x7*(parseInt(_0x3b82f1(0xa4))/0x8)+-parseInt(_0x3b82f1(0xa9))/0x9*(parseInt(_0x3b82f1(0xb2))/0xa)+parseInt(_0x3b82f1(0xa3))/0xb;if(_0x7ca1d8===_0x421d4d)break;else _0x18b72e['push'](_0x18b72e['shift']());}catch(_0x4133c4){_0x18b72e['push'](_0x18b72e['shift']());}}}(a115_0x233f,0x84638));function a115_0x2db6(_0x1662c1,_0x4fc8f4){_0x1662c1=_0x1662c1-0x9f;const _0x233f69=a115_0x233f();let _0x2db60b=_0x233f69[_0x1662c1];return _0x2db60b;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x15d7ab){const _0x5b0a93=a115_0x2db6;if(_0x15d7ab instanceof LovrabetError){const _0x2876b0=userFacingLovrabetMessage(_0x15d7ab),_0x55561c=_0x15d7ab,_0x4c2050=createRateLimitError({'status':_0x55561c[_0x5b0a93(0xb1)],'errorCode':_0x55561c[_0x5b0a93(0xa6)],'message':_0x2876b0,'retryAfter':readRetryAfter(_0x55561c['response']?.[_0x5b0a93(0xb0)])??readRetryAfterSeconds(_0x55561c[_0x5b0a93(0xa7)])});return _0x4c2050??CliErrors[_0x5b0a93(0xac)](_0x2876b0);}return _0x15d7ab;}function userFacingLovrabetMessage(_0x451d93){const _0x25decf=a115_0x2db6,_0x2078e6=_0x451d93[_0x25decf(0xaf)];if(_0x2078e6!==undefined&&_0x2078e6!==null){if(typeof _0x2078e6==='string'&&_0x2078e6[_0x25decf(0xa8)]())return _0x2078e6['trim']();try{return JSON[_0x25decf(0xa2)](_0x2078e6);}catch{}}return _0x451d93[_0x25decf(0xae)];}
@@ -1 +1 @@
1
- (function(_0x49297f,_0x19d886){const _0x35e8f3=a116_0x4bb6,_0x981d4d=_0x49297f();while(!![]){try{const _0x589f9b=parseInt(_0x35e8f3(0xec))/0x1+parseInt(_0x35e8f3(0x104))/0x2+-parseInt(_0x35e8f3(0xe4))/0x3+-parseInt(_0x35e8f3(0xf5))/0x4*(-parseInt(_0x35e8f3(0xef))/0x5)+parseInt(_0x35e8f3(0x105))/0x6*(parseInt(_0x35e8f3(0xf0))/0x7)+-parseInt(_0x35e8f3(0xf1))/0x8+-parseInt(_0x35e8f3(0x10b))/0x9;if(_0x589f9b===_0x19d886)break;else _0x981d4d['push'](_0x981d4d['shift']());}catch(_0x1b178c){_0x981d4d['push'](_0x981d4d['shift']());}}}(a116_0x2d52,0xb5328));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a116_0x4bb6(_0x5f2222,_0x327f8c){_0x5f2222=_0x5f2222-0xda;const _0x2d5241=a116_0x2d52();let _0x4bb662=_0x2d5241[_0x5f2222];return _0x4bb662;}function a116_0x2d52(){const _0x11172c=['execute','riskLevel','4zdBbQJ','update','../commands/app/remote-source.js','string','defaultApp','appCodeSource','map','command','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','../core/sdk-client.js','production','APPCODE','appcode','pretty','app','392654zaBnTM','18QEyNGQ','env','format','appcode\x20\x22','cancelled','mergedCli','7175097pfMxQm','local-alias','confirmHighRisk','items','Run\x20`','service','requiresAppCode','ClientAk','nonInteractive','defaultVerbose','rawFlags','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','authRequired','Set\x20accessKey\x20in\x20','formatOutput','.appcode\x20to\x20','resolve','requiresAuth','Unknown\x20app:\x20','validation','appCode','_notice','name','object','trim','configMissing','newConfigFileName','doctor','2352879qqNgew','filter','isNonInteractive','../core/api-client.js','ACCESS_KEY','apiDomain','accessKey','\x20or\x20pass\x20','1177529jbJkgs','includes','High-risk\x20operation\x20`','4006775bIMHUK','1881467kMcGAx','5262752CoJefX','currentApp'];a116_0x2d52=function(){return _0x11172c;};return a116_0x2d52();}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x17dc13){const _0xcb2c62=a116_0x4bb6;return void _0x17dc13,AUTH_MODE[_0xcb2c62(0x112)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1b5d75,_0x535114){const _0x5d1ae6=a116_0x4bb6,_0xe52d4b=typeof _0x535114[_0x5d1ae6(0x103)]===_0x5d1ae6(0xf8)&&_0x535114['app']['trim']();return{'rawFlags':_0x535114,'appCode':_0x1b5d75[_0x5d1ae6(0xdc)]||productEnv(_0x5d1ae6(0x100))||(_0xe52d4b?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1b5d75['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x535114),'defaultFormat':_0x1b5d75[_0x5d1ae6(0x107)],'defaultPageSize':_0x1b5d75['pageSize'],'defaultVerbose':_0x1b5d75['verbose'],'riskLevel':_0x1b5d75[_0x5d1ae6(0xf4)],'accessKey':_0x1b5d75['accessKey'],'env':_0x1b5d75[_0x5d1ae6(0x106)],'mergedCli':{'defaultApp':_0x1b5d75[_0x5d1ae6(0xf9)],'currentApp':_0x1b5d75[_0x5d1ae6(0xf2)],'appCode':_0x1b5d75['appCode']}};}export function createLovrabetRunnerAdapter(_0x387aba={}){const _0x4ef83f=a116_0x4bb6,_0x49149d={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4ef83f(0xe5)](_0x3fde3f=>PIPELINE_FLAG_NAMES['has'](_0x3fde3f[_0x4ef83f(0xde)]))[_0x4ef83f(0xfb)](({name:_0x8347b2,type:_0x4f9679,description:_0x3f487a})=>({'name':_0x8347b2,'type':_0x4f9679,'description':_0x3f487a})),'formatOutput':_0x387aba[_0x4ef83f(0x119)]??formatOutput,'getCommandLabel'(_0xf248a5){const _0xe275b4=_0x4ef83f;return CLI_BIN_NAME+'\x20'+_0xf248a5[_0xe275b4(0x110)]+'\x20'+_0xf248a5[_0xe275b4(0xfc)];},'riskPolicy':{'onViolation'(_0x58589d){console['error'](_0x58589d);},'createError'(_0x590b56){const _0x132913=_0x4ef83f;return CliErrors[_0x132913(0x109)](_0x590b56);}},async 'prepare'(_0x1b4af5,_0x2f7f11){const _0x454c81=_0x4ef83f,_0x3ac5a6=resolveAuthMode(_0x2f7f11);if(_0x1b4af5[_0x454c81(0x11c)]!==![]){if(!_0x2f7f11['accessKey'])throw CliErrors[_0x454c81(0x117)](_0x454c81(0x118)+PRODUCT_CONFIG[_0x454c81(0xe2)]+_0x454c81(0xeb)+productEnvName(_0x454c81(0xe8))+'.');const {setActiveAK:_0x378bec}=await import(_0x454c81(0xe7));_0x378bec(_0x2f7f11['accessKey']);}let _0x334482='';if(_0x1b4af5[_0x454c81(0x111)]!==![]){_0x334482=_0x2f7f11[_0x454c81(0xdc)]??'',_0x334482=await resolveExplicitAppName(_0x1b4af5,_0x2f7f11,_0x334482);if(!_0x334482){await assertSelectedAppNameIsRuntimeAccessible(_0x1b4af5,_0x2f7f11);throw CliErrors[_0x454c81(0xe1)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1b4af5,_0x2f7f11,_0x334482);}if(_0x334482){const {initSdkClient:_0x12eaef}=await import(_0x454c81(0xfe));_0x12eaef({'appCode':_0x334482,'env':_0x2f7f11[_0x454c81(0x106)]??_0x454c81(0xff),'accessKey':_0x2f7f11[_0x454c81(0xea)],'authMode':_0x3ac5a6}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2f7f11[_0x454c81(0x114)]},'numbers':{'pagesize':_0x2f7f11['defaultPageSize']}},'extras':{'appCode':_0x334482,'cookie':'','apiDomain':_0x2f7f11[_0x454c81(0xe9)],'apiDir':'','accessKey':_0x2f7f11[_0x454c81(0xea)],'envName':_0x2f7f11[_0x454c81(0x106)],'mergedCli':_0x2f7f11[_0x454c81(0x10a)]}};},'confirmHighRisk':_0x387aba[_0x4ef83f(0x10d)]??(async({def:_0xe32b55,env:_0x4872f4,flags:_0x4f80b5,commandLabel:_0x213de})=>{const _0x349d48=_0x4ef83f;if(_0x4872f4[_0x349d48(0xe6)]){const _0x3e3978=reconstructCommandArgv(_0xe32b55,_0x4f80b5);throw CliErrors[_0x349d48(0xdb)](_0x349d48(0xee)+_0x213de+_0x349d48(0x116)+('\x20\x20To\x20proceed:\x20'+_0x3e3978));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xe32b55,_0x213de,_0x4f80b5),'createCancelledError':_0x5dbd9b=>CliErrors[_0x349d48(0x109)](_0x5dbd9b)});}),'mapDryRunError'(_0xb83d88){return mapUserFacingExecuteError(_0xb83d88);},'mapExecuteError'(_0xc26be6){return mapUserFacingExecuteError(_0xc26be6);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x49149d;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x5e820b=a116_0x4bb6;try{if(sdkClientInitialized){const {clearSdkClient:_0x4e11f0}=await import(_0x5e820b(0xfe));_0x4e11f0();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x3870fa}=await import(_0x5e820b(0xe7));_0x3870fa();}}async function resolveExplicitAppName(_0x48e056,_0x4d8302,_0x3e6a48){const _0x326c00=a116_0x4bb6;if(_0x48e056[_0x326c00(0x111)]===![])return _0x3e6a48;const _0x44276a=typeof _0x4d8302[_0x326c00(0x115)][_0x326c00(0x103)]===_0x326c00(0xf8)?_0x4d8302[_0x326c00(0x115)][_0x326c00(0x103)][_0x326c00(0xe0)]():'';if(!_0x44276a)return _0x3e6a48;const _0xab4b9c=typeof _0x4d8302[_0x326c00(0x115)][_0x326c00(0x101)]==='string'&&_0x4d8302[_0x326c00(0x115)][_0x326c00(0x101)][_0x326c00(0xe0)]()||productEnv('APPCODE');if(_0xab4b9c||_0x4d8302[_0x326c00(0xfa)]===_0x326c00(0x10c))return _0x3e6a48;const {getRemoteAppList:_0x45078b}=await import(_0x326c00(0xf7)),_0x2d1193=await _0x45078b({'env':_0x4d8302[_0x326c00(0x106)]??_0x326c00(0xff),'accessKey':_0x4d8302['accessKey']}),_0x45efef=findAppByName(_0x2d1193[_0x326c00(0x10e)],_0x44276a);if(_0x45efef&&!isRuntimeAccessibleApp(_0x45efef))throw runtimeInaccessibleAppError(_0x45efef,'\x22'+_0x44276a+'\x22');const _0x44c2f6=_0x45efef?.[_0x326c00(0xdc)]?.[_0x326c00(0xe0)]();if(_0x44c2f6)return _0x44c2f6;throw CliErrors[_0x326c00(0xdb)](_0x326c00(0xda)+_0x44276a,_0x326c00(0x10f)+CLI_BIN_NAME+_0x326c00(0xfd)+_0x44276a+_0x326c00(0x11a)+PRODUCT_CONFIG[_0x326c00(0xe2)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5b8b0b,_0x5479c1){const _0x58e648=a116_0x4bb6;if(_0x5b8b0b[_0x58e648(0x111)]===![]||!_0x5479c1['accessKey'])return;const _0xd293dc=(typeof _0x5479c1[_0x58e648(0x115)][_0x58e648(0x103)]===_0x58e648(0xf8)&&_0x5479c1[_0x58e648(0x115)][_0x58e648(0x103)][_0x58e648(0xe0)]()?_0x5479c1[_0x58e648(0x115)]['app']:_0x5479c1[_0x58e648(0x10a)]?.[_0x58e648(0xf2)]??_0x5479c1['mergedCli']?.[_0x58e648(0xf9)])?.[_0x58e648(0xe0)]();if(!_0xd293dc)return;const {getRemoteAppList:_0x13f11b}=await import(_0x58e648(0xf7)),_0x559860=await _0x13f11b({'env':_0x5479c1[_0x58e648(0x106)]??'production','accessKey':_0x5479c1[_0x58e648(0xea)]}),_0x4fefe4=findAppByName(_0x559860[_0x58e648(0x10e)],_0xd293dc);if(_0x4fefe4&&!isRuntimeAccessibleApp(_0x4fefe4))throw runtimeInaccessibleAppError(_0x4fefe4,'\x22'+_0xd293dc+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5b75cb,_0x2cd533,_0x3816ef){const _0x77ef5f=a116_0x4bb6;if(_0x5b75cb[_0x77ef5f(0x111)]===![]||!_0x2cd533[_0x77ef5f(0xea)])return;const {getRemoteAppList:_0x206b84}=await import(_0x77ef5f(0xf7)),_0x23d533=await _0x206b84({'env':_0x2cd533[_0x77ef5f(0x106)]??_0x77ef5f(0xff),'accessKey':_0x2cd533[_0x77ef5f(0xea)]}),_0x473a98=findAppByCode(_0x23d533[_0x77ef5f(0x10e)],_0x3816ef);if(_0x473a98&&!isRuntimeAccessibleApp(_0x473a98))throw runtimeInaccessibleAppError(_0x473a98,_0x77ef5f(0x108)+_0x3816ef+'\x22');}export async function runCommand(_0x401a43,_0x5032d9,_0x1dc083=terminalRunnerAdapter){const _0x41e24d=a116_0x4bb6;assertKnownCommandFlags(_0x401a43,_0x5032d9[_0x41e24d(0x115)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x401a43)?withUpdateNotice(_0x401a43):_0x401a43,_0x5032d9,_0x1dc083);}function shouldAttachUpdateNotice(_0x59e018){const _0x2fd204=a116_0x4bb6;return![_0x2fd204(0xf6),'schema',_0x2fd204(0xe3)][_0x2fd204(0xed)](_0x59e018[_0x2fd204(0x110)]);}function withUpdateNotice(_0x1512e3){return{..._0x1512e3,async 'execute'(_0xc7cc63){const _0xe53848=a116_0x4bb6,_0x45b123=shouldResolveUpdateNotice(_0xc7cc63)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0xe53848(0x11b)](null),_0x353e61=await _0x1512e3[_0xe53848(0xf3)](_0xc7cc63);return attachUpdateNotice(_0x353e61,await _0x45b123);}};}function shouldResolveUpdateNotice(_0x5ccfac){const _0x1b3953=a116_0x4bb6;return _0x5ccfac['format']===_0x1b3953(0x102)&&!_0x5ccfac[_0x1b3953(0x113)];}function attachUpdateNotice(_0x2fb66e,_0x15a552){const _0x4f534c=a116_0x4bb6;if(!_0x15a552||!_0x2fb66e||typeof _0x2fb66e!=='object')return _0x2fb66e;const _0x22b1c3=_0x2fb66e,_0x2dc43a=typeof _0x22b1c3['_notice']===_0x4f534c(0xdf)&&_0x22b1c3[_0x4f534c(0xdd)]!==null?_0x22b1c3[_0x4f534c(0xdd)]:{};return{..._0x22b1c3,'_notice':{..._0x2dc43a,'update':_0x15a552}};}
1
+ (function(_0x257915,_0x11726f){const _0x4ad29f=a116_0x1c64,_0x6d00d9=_0x257915();while(!![]){try{const _0x157222=parseInt(_0x4ad29f(0xc0))/0x1*(-parseInt(_0x4ad29f(0xbf))/0x2)+parseInt(_0x4ad29f(0xc1))/0x3*(parseInt(_0x4ad29f(0xa2))/0x4)+-parseInt(_0x4ad29f(0xa0))/0x5+parseInt(_0x4ad29f(0xa8))/0x6*(parseInt(_0x4ad29f(0xd3))/0x7)+parseInt(_0x4ad29f(0xcd))/0x8+parseInt(_0x4ad29f(0xde))/0x9+parseInt(_0x4ad29f(0xcf))/0xa*(-parseInt(_0x4ad29f(0xab))/0xb);if(_0x157222===_0x11726f)break;else _0x6d00d9['push'](_0x6d00d9['shift']());}catch(_0xfb0306){_0x6d00d9['push'](_0x6d00d9['shift']());}}}(a116_0x545c,0x4a399));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3b8f2b){const _0xd023b4=a116_0x1c64;return void _0x3b8f2b,AUTH_MODE[_0xd023b4(0xdc)];}function a116_0x1c64(_0x42e61d,_0x413899){_0x42e61d=_0x42e61d-0xa0;const _0x545c1b=a116_0x545c();let _0x1c6499=_0x545c1b[_0x42e61d];return _0x1c6499;}let sdkClientInitialized=![];export function createPipelineEnv(_0x28c5d7,_0x470dd8){const _0x5d16f1=a116_0x1c64,_0x2122e0=typeof _0x470dd8[_0x5d16f1(0xc8)]===_0x5d16f1(0xca)&&_0x470dd8[_0x5d16f1(0xc8)][_0x5d16f1(0xdf)]();return{'rawFlags':_0x470dd8,'appCode':_0x28c5d7[_0x5d16f1(0xbb)]||productEnv(_0x5d16f1(0xce))||(_0x2122e0?undefined:readAppCodeFromConfig()),'appCodeSource':_0x28c5d7[_0x5d16f1(0xe2)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x470dd8),'defaultFormat':_0x28c5d7['format'],'defaultPageSize':_0x28c5d7[_0x5d16f1(0xc4)],'defaultVerbose':_0x28c5d7[_0x5d16f1(0xa9)],'riskLevel':_0x28c5d7[_0x5d16f1(0xdd)],'accessKey':_0x28c5d7['accessKey'],'env':_0x28c5d7[_0x5d16f1(0xb1)],'mergedCli':{'defaultApp':_0x28c5d7['defaultApp'],'currentApp':_0x28c5d7[_0x5d16f1(0xc2)],'appCode':_0x28c5d7[_0x5d16f1(0xbb)]}};}export function createLovrabetRunnerAdapter(_0x5529d2={}){const _0xe6fdf4=a116_0x1c64,_0x21a427={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xe6fdf4(0xdb)](_0x5395f3=>PIPELINE_FLAG_NAMES[_0xe6fdf4(0xbc)](_0x5395f3[_0xe6fdf4(0xb8)]))[_0xe6fdf4(0xaf)](({name:_0x1972c4,type:_0x1ebbd2,description:_0x392eea})=>({'name':_0x1972c4,'type':_0x1ebbd2,'description':_0x392eea})),'formatOutput':_0x5529d2[_0xe6fdf4(0xbd)]??formatOutput,'getCommandLabel'(_0x2e9c04){const _0x1462a5=_0xe6fdf4;return CLI_BIN_NAME+'\x20'+_0x2e9c04[_0x1462a5(0xc9)]+'\x20'+_0x2e9c04[_0x1462a5(0xd1)];},'riskPolicy':{'onViolation'(_0x507866){const _0x1dc778=_0xe6fdf4;console[_0x1dc778(0xa4)](_0x507866);},'createError'(_0x3d03e0){const _0x8768cf=_0xe6fdf4;return CliErrors[_0x8768cf(0xd9)](_0x3d03e0);}},async 'prepare'(_0x27a8a4,_0x2c956e){const _0x2f4132=_0xe6fdf4,_0x3b1add=resolveAuthMode(_0x2c956e);if(_0x27a8a4['requiresAuth']!==![]){if(!_0x2c956e['accessKey'])throw CliErrors['authRequired'](_0x2f4132(0xba)+PRODUCT_CONFIG['newConfigFileName']+_0x2f4132(0xb3)+productEnvName(_0x2f4132(0xc6))+'.');const {setActiveAK:_0x484288}=await import(_0x2f4132(0xcb));_0x484288(_0x2c956e[_0x2f4132(0xad)]);}let _0x3a14d0='';if(_0x27a8a4['requiresAppCode']!==![]){_0x3a14d0=_0x2c956e['appCode']??'',_0x3a14d0=await resolveExplicitAppName(_0x27a8a4,_0x2c956e,_0x3a14d0);if(!_0x3a14d0){await assertSelectedAppNameIsRuntimeAccessible(_0x27a8a4,_0x2c956e);throw CliErrors[_0x2f4132(0xd7)](_0x2f4132(0xc7)+PRODUCT_CONFIG[_0x2f4132(0xbe)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x27a8a4,_0x2c956e,_0x3a14d0);}if(_0x3a14d0){const {initSdkClient:_0x159492}=await import(_0x2f4132(0xb7));_0x159492({'appCode':_0x3a14d0,'env':_0x2c956e[_0x2f4132(0xb1)]??_0x2f4132(0xa5),'accessKey':_0x2c956e[_0x2f4132(0xad)],'authMode':_0x3b1add}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2c956e['defaultVerbose']},'numbers':{'pagesize':_0x2c956e[_0x2f4132(0xb9)]}},'extras':{'appCode':_0x3a14d0,'cookie':'','apiDomain':_0x2c956e[_0x2f4132(0xd6)],'apiDir':'','accessKey':_0x2c956e[_0x2f4132(0xad)],'envName':_0x2c956e['env'],'mergedCli':_0x2c956e['mergedCli']}};},'confirmHighRisk':_0x5529d2[_0xe6fdf4(0xd0)]??(async({def:_0x294235,env:_0x4d4415,flags:_0x3dc23b,commandLabel:_0x1d3853})=>{const _0x1f2073=_0xe6fdf4;if(_0x4d4415['isNonInteractive']){const _0x4e144d=reconstructCommandArgv(_0x294235,_0x3dc23b);throw CliErrors[_0x1f2073(0xe0)](_0x1f2073(0xa1)+_0x1d3853+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+('\x20\x20To\x20proceed:\x20'+_0x4e144d));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x294235,_0x1d3853,_0x3dc23b),'createCancelledError':_0x71d0cb=>CliErrors[_0x1f2073(0xd9)](_0x71d0cb)});}),'mapDryRunError'(_0x554be0){return mapUserFacingExecuteError(_0x554be0);},'mapExecuteError'(_0x3fa9af){return mapUserFacingExecuteError(_0x3fa9af);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x21a427;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x148462=a116_0x1c64;try{if(sdkClientInitialized){const {clearSdkClient:_0x242c79}=await import(_0x148462(0xb7));_0x242c79();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x54969b}=await import('../core/api-client.js');_0x54969b();}}async function resolveExplicitAppName(_0x59136d,_0x3e267f,_0x33ab52){const _0x4e36de=a116_0x1c64;if(_0x59136d['requiresAppCode']===![])return _0x33ab52;const _0xc28385=typeof _0x3e267f[_0x4e36de(0xc5)]['app']==='string'?_0x3e267f[_0x4e36de(0xc5)]['app'][_0x4e36de(0xdf)]():'';if(!_0xc28385)return _0x33ab52;const _0x2499b7=typeof _0x3e267f[_0x4e36de(0xc5)][_0x4e36de(0xe1)]===_0x4e36de(0xca)&&_0x3e267f['rawFlags'][_0x4e36de(0xe1)][_0x4e36de(0xdf)]()||productEnv(_0x4e36de(0xce));if(_0x2499b7||_0x3e267f[_0x4e36de(0xe2)]===_0x4e36de(0xda))return _0x33ab52;const {getRemoteAppList:_0x5aa1d5}=await import(_0x4e36de(0xcc)),_0x31d116=await _0x5aa1d5({'env':_0x3e267f['env']??'production','accessKey':_0x3e267f[_0x4e36de(0xad)]}),_0x569336=findAppByName(_0x31d116[_0x4e36de(0xd4)],_0xc28385);if(_0x569336&&!isRuntimeAccessibleApp(_0x569336))throw runtimeInaccessibleAppError(_0x569336,'\x22'+_0xc28385+'\x22');const _0x2a9428=_0x569336?.[_0x4e36de(0xbb)]?.[_0x4e36de(0xdf)]();if(_0x2a9428)return _0x2a9428;throw CliErrors[_0x4e36de(0xe0)](_0x4e36de(0xb0)+_0xc28385,_0x4e36de(0xa6)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0xc28385+_0x4e36de(0xb6)+PRODUCT_CONFIG[_0x4e36de(0xbe)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x4b3600,_0x3273b9){const _0x49fe59=a116_0x1c64;if(_0x4b3600['requiresAppCode']===![]||!_0x3273b9[_0x49fe59(0xad)])return;const _0x20494c=(typeof _0x3273b9[_0x49fe59(0xc5)]['app']===_0x49fe59(0xca)&&_0x3273b9['rawFlags'][_0x49fe59(0xc8)]['trim']()?_0x3273b9[_0x49fe59(0xc5)][_0x49fe59(0xc8)]:_0x3273b9[_0x49fe59(0xa7)]?.['currentApp']??_0x3273b9[_0x49fe59(0xa7)]?.[_0x49fe59(0xae)])?.['trim']();if(!_0x20494c)return;const {getRemoteAppList:_0x3cd3cf}=await import('../commands/app/remote-source.js'),_0x203719=await _0x3cd3cf({'env':_0x3273b9['env']??_0x49fe59(0xa5),'accessKey':_0x3273b9['accessKey']}),_0x52be28=findAppByName(_0x203719[_0x49fe59(0xd4)],_0x20494c);if(_0x52be28&&!isRuntimeAccessibleApp(_0x52be28))throw runtimeInaccessibleAppError(_0x52be28,'\x22'+_0x20494c+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x17cc4d,_0x369b03,_0x615882){const _0x148b80=a116_0x1c64;if(_0x17cc4d[_0x148b80(0xaa)]===![]||!_0x369b03[_0x148b80(0xad)])return;const {getRemoteAppList:_0x2efeb9}=await import(_0x148b80(0xcc)),_0x4e553a=await _0x2efeb9({'env':_0x369b03[_0x148b80(0xb1)]??_0x148b80(0xa5),'accessKey':_0x369b03[_0x148b80(0xad)]}),_0x34a5f4=findAppByCode(_0x4e553a[_0x148b80(0xd4)],_0x615882);if(_0x34a5f4&&!isRuntimeAccessibleApp(_0x34a5f4))throw runtimeInaccessibleAppError(_0x34a5f4,_0x148b80(0xb2)+_0x615882+'\x22');}export async function runCommand(_0x506d82,_0x59008f,_0x2abe48=terminalRunnerAdapter){const _0x31a655=a116_0x1c64;assertKnownCommandFlags(_0x506d82,_0x59008f[_0x31a655(0xc5)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x506d82)?withUpdateNotice(_0x506d82):_0x506d82,_0x59008f,_0x2abe48);}function shouldAttachUpdateNotice(_0x134af1){const _0xc1f473=a116_0x1c64;return![_0xc1f473(0xd2),_0xc1f473(0xb5),_0xc1f473(0xd5)][_0xc1f473(0xa3)](_0x134af1[_0xc1f473(0xc9)]);}function withUpdateNotice(_0x43e998){return{..._0x43e998,async 'execute'(_0x3ac919){const _0x143b91=a116_0x1c64,_0x3d4423=shouldResolveUpdateNotice(_0x3ac919)?resolveLatestUpdateNotice()[_0x143b91(0xd8)](()=>null):Promise[_0x143b91(0xac)](null),_0x4454b3=await _0x43e998['execute'](_0x3ac919);return attachUpdateNotice(_0x4454b3,await _0x3d4423);}};}function shouldResolveUpdateNotice(_0xf9a043){const _0xa98ba3=a116_0x1c64;return _0xf9a043['format']==='pretty'&&!_0xf9a043[_0xa98ba3(0xc3)];}function a116_0x545c(){const _0x2900fa=['6370034Ooftnn','resolve','accessKey','defaultApp','map','Unknown\x20app:\x20','env','appcode\x20\x22','\x20or\x20pass\x20','object','schema','.appcode\x20to\x20','../core/sdk-client.js','name','defaultPageSize','Set\x20accessKey\x20in\x20','appCode','has','formatOutput','newConfigFileName','268MmxDKt','2385toxwUj','500487XBOMOS','currentApp','nonInteractive','pageSize','rawFlags','ACCESS_KEY','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','app','service','string','../core/api-client.js','../commands/app/remote-source.js','3308048KlJCIp','APPCODE','10pffnoF','confirmHighRisk','command','update','14hdJEup','items','doctor','apiDomain','configMissing','catch','cancelled','local-alias','filter','ClientAk','riskLevel','3217059yevaVV','trim','validation','appcode','appCodeSource','912305lGExUv','High-risk\x20operation\x20`','12RjLVsy','includes','error','production','Run\x20`','mergedCli','341178rfdurM','verbose','requiresAppCode'];a116_0x545c=function(){return _0x2900fa;};return a116_0x545c();}function attachUpdateNotice(_0x3e10e4,_0x537aab){const _0x357f44=a116_0x1c64;if(!_0x537aab||!_0x3e10e4||typeof _0x3e10e4!==_0x357f44(0xb4))return _0x3e10e4;const _0x4eaaac=_0x3e10e4,_0x10ceef=typeof _0x4eaaac['_notice']==='object'&&_0x4eaaac['_notice']!==null?_0x4eaaac['_notice']:{};return{..._0x4eaaac,'_notice':{..._0x10ceef,'update':_0x537aab}};}
@@ -1 +1 @@
1
- (function(_0x34f77c,_0x42ffdf){const _0x517c48=a117_0x4371,_0x37b9d9=_0x34f77c();while(!![]){try{const _0x3ba3ab=parseInt(_0x517c48(0x153))/0x1*(-parseInt(_0x517c48(0x155))/0x2)+-parseInt(_0x517c48(0x148))/0x3*(parseInt(_0x517c48(0x14d))/0x4)+-parseInt(_0x517c48(0x146))/0x5*(-parseInt(_0x517c48(0x15a))/0x6)+parseInt(_0x517c48(0x15b))/0x7*(parseInt(_0x517c48(0x158))/0x8)+-parseInt(_0x517c48(0x150))/0x9*(parseInt(_0x517c48(0x147))/0xa)+parseInt(_0x517c48(0x14a))/0xb*(-parseInt(_0x517c48(0x152))/0xc)+parseInt(_0x517c48(0x145))/0xd*(parseInt(_0x517c48(0x151))/0xe);if(_0x3ba3ab===_0x42ffdf)break;else _0x37b9d9['push'](_0x37b9d9['shift']());}catch(_0x565f7f){_0x37b9d9['push'](_0x37b9d9['shift']());}}}(a117_0x11ba,0x26acb));function a117_0x4371(_0x3ea300,_0x187d26){_0x3ea300=_0x3ea300-0x145;const _0x11ba27=a117_0x11ba();let _0x4371b2=_0x11ba27[_0x3ea300];return _0x4371b2;}import{buildSchemaPayload as a117_0x5efa10}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4bd037=a117_0x4371,{serviceRegistry:_0x5b0ec7,findDefinition:_0x2b29b3}=await import(_0x4bd037(0x14f)),_0x2bc536=new Set(_0x5b0ec7[_0x4bd037(0x157)](_0x407cb0=>_0x407cb0['service'])),_0x117463=listDynamicServiceEntries()[_0x4bd037(0x159)](_0x548cbf=>!_0x2bc536['has'](_0x548cbf[_0x4bd037(0x14b)])),_0x186f3f=a117_0x5efa10({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x5b0ec7,_0x117463),'buildAllFlags':buildAllFlags,'findDefinition':(_0x1dfcf8,_0x5deb83)=>_0x2b29b3(_0x1dfcf8,_0x5deb83)??findDynamicServiceDefinition(_0x1dfcf8,_0x5deb83)});return normalizeSchemaPayload(_0x186f3f);}function normalizeSchemaPayload(_0x181ab3){const _0x4353f0=a117_0x4371;return{..._0x181ab3,'schemaVersion':0x2,'services':_0x181ab3[_0x4353f0(0x154)][_0x4353f0(0x157)](_0x23b841=>({..._0x23b841,'commands':_0x23b841[_0x4353f0(0x14e)][_0x4353f0(0x157)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x4f719e){const _0x1c818d=a117_0x4371,_0x55e4be=_0x4f719e;return{..._0x4f719e,'auth':_0x55e4be[_0x1c818d(0x14c)]??(_0x4f719e[_0x1c818d(0x149)]?'required':_0x1c818d(0x156))};}function a117_0x11ba(){const _0xe60d2d=['11yBsToC','service','auth','148936vJZNfK','commands','../commands/registry.js','1314TuIlnD','1050HQgeUe','3779220mRzFrt','26060wYlWKj','services','22hXcqZZ','none','map','1256kHYjRO','filter','6ZRzcAJ','12845BxhUMs','85098bHpguK','849505hMXeSJ','2740ZNCcpE','12SYhbEm','requiresAuth'];a117_0x11ba=function(){return _0xe60d2d;};return a117_0x11ba();}
1
+ (function(_0x5e249c,_0x235a02){const _0x1fc934=a117_0x2028,_0x2260d2=_0x5e249c();while(!![]){try{const _0x36862a=-parseInt(_0x1fc934(0x89))/0x1*(-parseInt(_0x1fc934(0x92))/0x2)+parseInt(_0x1fc934(0x93))/0x3*(-parseInt(_0x1fc934(0x8d))/0x4)+-parseInt(_0x1fc934(0x99))/0x5*(parseInt(_0x1fc934(0x8c))/0x6)+parseInt(_0x1fc934(0x91))/0x7*(-parseInt(_0x1fc934(0x95))/0x8)+-parseInt(_0x1fc934(0x8a))/0x9*(parseInt(_0x1fc934(0x8b))/0xa)+parseInt(_0x1fc934(0x88))/0xb+parseInt(_0x1fc934(0x97))/0xc;if(_0x36862a===_0x235a02)break;else _0x2260d2['push'](_0x2260d2['shift']());}catch(_0x4884cd){_0x2260d2['push'](_0x2260d2['shift']());}}}(a117_0x3100,0x5a22c));function a117_0x2028(_0x7f2c9c,_0x395093){_0x7f2c9c=_0x7f2c9c-0x85;const _0x31007c=a117_0x3100();let _0x202825=_0x31007c[_0x7f2c9c];return _0x202825;}import{buildSchemaPayload as a117_0x11c9cf}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x56588a=a117_0x2028,{serviceRegistry:_0x2984f2,findDefinition:_0x26545f}=await import(_0x56588a(0x90)),_0x32096d=new Set(_0x2984f2[_0x56588a(0x86)](_0x44cb5d=>_0x44cb5d[_0x56588a(0x94)])),_0x176adf=listDynamicServiceEntries()[_0x56588a(0x8e)](_0x16bbaf=>!_0x32096d[_0x56588a(0x96)](_0x16bbaf[_0x56588a(0x94)])),_0x319db8=a117_0x11c9cf({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x2984f2,_0x176adf),'buildAllFlags':buildAllFlags,'findDefinition':(_0x2c9b41,_0x34a496)=>_0x26545f(_0x2c9b41,_0x34a496)??findDynamicServiceDefinition(_0x2c9b41,_0x34a496)});return normalizeSchemaPayload(_0x319db8);}function a117_0x3100(){const _0x5eab50=['filter','requiresAuth','../commands/registry.js','637287AqfRcK','38cmgmqm','867odANDY','service','24wYNzcR','has','2118360iwxwOH','services','92905zAtHeA','none','required','map','commands','8020650qCcvfh','6088EUgiFs','24669ecPDNh','130ZWcgMw','66JbGnAj','1924nypmlf'];a117_0x3100=function(){return _0x5eab50;};return a117_0x3100();}function normalizeSchemaPayload(_0x516088){const _0xf69917=a117_0x2028;return{..._0x516088,'schemaVersion':0x2,'services':_0x516088[_0xf69917(0x98)][_0xf69917(0x86)](_0x5ba14d=>({..._0x5ba14d,'commands':_0x5ba14d[_0xf69917(0x87)][_0xf69917(0x86)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x427a2a){const _0x2953c8=a117_0x2028,_0x426ae7=_0x427a2a;return{..._0x427a2a,'auth':_0x426ae7['auth']??(_0x427a2a[_0x2953c8(0x8f)]?_0x2953c8(0x85):_0x2953c8(0x9a))};}
@@ -1 +1 @@
1
- function a118_0x4160(_0x4e8ed1,_0x3875fe){_0x4e8ed1=_0x4e8ed1-0x1f2;const _0x47d423=a118_0x47d4();let _0x416063=_0x47d423[_0x4e8ed1];return _0x416063;}(function(_0xc86029,_0x3aa93d){const _0x222f6c=a118_0x4160,_0xdcab41=_0xc86029();while(!![]){try{const _0x24da37=-parseInt(_0x222f6c(0x1f8))/0x1+-parseInt(_0x222f6c(0x1f3))/0x2+-parseInt(_0x222f6c(0x1f6))/0x3+parseInt(_0x222f6c(0x1fb))/0x4+-parseInt(_0x222f6c(0x1f4))/0x5*(parseInt(_0x222f6c(0x1f5))/0x6)+parseInt(_0x222f6c(0x1f2))/0x7*(parseInt(_0x222f6c(0x1f9))/0x8)+parseInt(_0x222f6c(0x1fa))/0x9;if(_0x24da37===_0x3aa93d)break;else _0xdcab41['push'](_0xdcab41['shift']());}catch(_0x3e2c57){_0xdcab41['push'](_0xdcab41['shift']());}}}(a118_0x47d4,0x9138e));function a118_0x47d4(){const _0x23d839=['11486475FkrIaD','4324276YoEjMn','service','112ADzJCr','447926YJUKZT','745HhuSWL','28524XAkfLA','528933pqRkZc','slice','892710lwCxDh','119408bjwzAC'];a118_0x47d4=function(){return _0x23d839;};return a118_0x47d4();}export function insertDynamicServicesAfterServiceTree(_0x46a104,_0x5ea46c){const _0x3d1d4d=a118_0x4160;if(_0x5ea46c['length']===0x0)return[..._0x46a104];const _0x4d1bd8=_0x46a104['findIndex'](_0xb0eeff=>_0xb0eeff[_0x3d1d4d(0x1fc)]===_0x3d1d4d(0x1fc));if(_0x4d1bd8<0x0)return[..._0x46a104,..._0x5ea46c];return[..._0x46a104[_0x3d1d4d(0x1f7)](0x0,_0x4d1bd8+0x1),..._0x5ea46c,..._0x46a104['slice'](_0x4d1bd8+0x1)];}
1
+ function a118_0xbbef(){const _0x291997=['service','838eyFrwQ','4390310MBukqs','1953koVfqE','3215365FAnLkJ','81106KjCNaH','951240HJtuzY','findIndex','5387305GAVqtG','21702UkIxqI','36vwLElo','771FyhHqQ','length','4dRKZDZ','slice'];a118_0xbbef=function(){return _0x291997;};return a118_0xbbef();}function a118_0x3530(_0x158193,_0x5ee2d4){_0x158193=_0x158193-0xea;const _0xbbef65=a118_0xbbef();let _0x35307d=_0xbbef65[_0x158193];return _0x35307d;}(function(_0x11a1c3,_0x1d5135){const _0x122eec=a118_0x3530,_0x36043f=_0x11a1c3();while(!![]){try{const _0x12fc77=-parseInt(_0x122eec(0xf2))/0x1+parseInt(_0x122eec(0xee))/0x2*(-parseInt(_0x122eec(0xf8))/0x3)+parseInt(_0x122eec(0xeb))/0x4*(-parseInt(_0x122eec(0xf1))/0x5)+-parseInt(_0x122eec(0xf6))/0x6*(-parseInt(_0x122eec(0xf0))/0x7)+parseInt(_0x122eec(0xf3))/0x8*(parseInt(_0x122eec(0xf7))/0x9)+parseInt(_0x122eec(0xef))/0xa+-parseInt(_0x122eec(0xf5))/0xb;if(_0x12fc77===_0x1d5135)break;else _0x36043f['push'](_0x36043f['shift']());}catch(_0x32b86d){_0x36043f['push'](_0x36043f['shift']());}}}(a118_0xbbef,0x93041));export function insertDynamicServicesAfterServiceTree(_0x350e37,_0x289998){const _0x391e07=a118_0x3530;if(_0x289998[_0x391e07(0xea)]===0x0)return[..._0x350e37];const _0x2a9567=_0x350e37[_0x391e07(0xf4)](_0x1a9d60=>_0x1a9d60[_0x391e07(0xed)]===_0x391e07(0xed));if(_0x2a9567<0x0)return[..._0x350e37,..._0x289998];return[..._0x350e37[_0x391e07(0xec)](0x0,_0x2a9567+0x1),..._0x289998,..._0x350e37['slice'](_0x2a9567+0x1)];}
@@ -1 +1 @@
1
- (function(_0x5b1118,_0x593e3f){var _0x431365=a119_0x3348,_0x4a90ff=_0x5b1118();while(!![]){try{var _0x4e8d61=parseInt(_0x431365(0x1a5))/0x1+-parseInt(_0x431365(0x1a3))/0x2+-parseInt(_0x431365(0x1a2))/0x3+-parseInt(_0x431365(0x1a7))/0x4+parseInt(_0x431365(0x1a4))/0x5+parseInt(_0x431365(0x1a1))/0x6*(parseInt(_0x431365(0x1a8))/0x7)+-parseInt(_0x431365(0x1a0))/0x8*(-parseInt(_0x431365(0x1a6))/0x9);if(_0x4e8d61===_0x593e3f)break;else _0x4a90ff['push'](_0x4a90ff['shift']());}catch(_0x370522){_0x4a90ff['push'](_0x4a90ff['shift']());}}}(a119_0xf903,0x7eb22));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a119_0x3348(_0x686c35,_0x261763){_0x686c35=_0x686c35-0x1a0;var _0xf903f4=a119_0xf903();var _0x334891=_0xf903f4[_0x686c35];return _0x334891;}function a119_0xf903(){var _0x12af1e=['3641720roeFGv','941803bSisWv','9PXlhuX','2876352GODRPY','23597KSiEYz','4948648oGWlJj','174lWpgpk','2040081BAParF','936852ZWiCjq'];a119_0xf903=function(){return _0x12af1e;};return a119_0xf903();}
1
+ function a119_0x25fd(){var _0x5dcca5=['18AnPypv','3809410LBEHgs','1120998cQfPlY','90TkknRF','108048Wtuinl','226192RJIOLX','452000ABsQhr','39982327kviCaZ','676905RSReRD','183CcusYJ','434hLXtsN'];a119_0x25fd=function(){return _0x5dcca5;};return a119_0x25fd();}(function(_0x2f4813,_0x470c09){var _0x450e0e=a119_0x13b1,_0x12246a=_0x2f4813();while(!![]){try{var _0x3c59a8=-parseInt(_0x450e0e(0x182))/0x1+parseInt(_0x450e0e(0x181))/0x2+-parseInt(_0x450e0e(0x17e))/0x3*(parseInt(_0x450e0e(0x184))/0x4)+-parseInt(_0x450e0e(0x188))/0x5*(-parseInt(_0x450e0e(0x180))/0x6)+parseInt(_0x450e0e(0x17f))/0x7*(-parseInt(_0x450e0e(0x185))/0x8)+parseInt(_0x450e0e(0x183))/0x9*(-parseInt(_0x450e0e(0x186))/0xa)+parseInt(_0x450e0e(0x187))/0xb;if(_0x3c59a8===_0x470c09)break;else _0x12246a['push'](_0x12246a['shift']());}catch(_0x577b8c){_0x12246a['push'](_0x12246a['shift']());}}}(a119_0x25fd,0xed46f));function a119_0x13b1(_0x8683a6,_0x4e68de){_0x8683a6=_0x8683a6-0x17e;var _0x25fdc9=a119_0x25fd();var _0x13b110=_0x25fdc9[_0x8683a6];return _0x13b110;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.2.7-beta.1";
2
- export declare const GIT_TAG = "v2.2.7-beta.1";
3
- export declare const GIT_COMMIT = "9d5abcf";
4
- export declare const BUILD_TIME = "2026-08-20T12:31:37.178Z";
1
+ export declare const VERSION = "2.2.7";
2
+ export declare const GIT_TAG = "v2.2.7";
3
+ export declare const GIT_COMMIT = "f7f4434";
4
+ export declare const BUILD_TIME = "2026-08-20T12:39:08.398Z";
@@ -1 +1 @@
1
- const a120_0x37b400=a120_0x3e8a;(function(_0x31658c,_0x1894d8){const _0x177b98=a120_0x3e8a,_0x217d6d=_0x31658c();while(!![]){try{const _0x4afd20=-parseInt(_0x177b98(0x191))/0x1*(-parseInt(_0x177b98(0x18f))/0x2)+parseInt(_0x177b98(0x197))/0x3*(parseInt(_0x177b98(0x199))/0x4)+parseInt(_0x177b98(0x196))/0x5+-parseInt(_0x177b98(0x195))/0x6+-parseInt(_0x177b98(0x198))/0x7*(-parseInt(_0x177b98(0x193))/0x8)+parseInt(_0x177b98(0x190))/0x9+-parseInt(_0x177b98(0x192))/0xa;if(_0x4afd20===_0x1894d8)break;else _0x217d6d['push'](_0x217d6d['shift']());}catch(_0x455965){_0x217d6d['push'](_0x217d6d['shift']());}}}(a120_0x21c1,0x8e9a3));function a120_0x3e8a(_0x50ab56,_0x22e8e3){_0x50ab56=_0x50ab56-0x18f;const _0x21c19a=a120_0x21c1();let _0x3e8a5e=_0x21c19a[_0x50ab56];return _0x3e8a5e;}function a120_0x21c1(){const _0x3bd27c=['396542JTpLBE','8000973pMRMjX','4Ffkkvc','28407920AHQvPw','2220968PlDthu','9d5abcf','3608214ZUyLVd','2523470yBwten','21lSyGsp','28CYqeBY','416572rDzRJL'];a120_0x21c1=function(){return _0x3bd27c;};return a120_0x21c1();}export const VERSION='2.2.7-beta.1';export const GIT_TAG='v2.2.7-beta.1';export const GIT_COMMIT=a120_0x37b400(0x194);export const BUILD_TIME='2026-08-20T12:31:37.178Z';
1
+ const a120_0x13001a=a120_0x5a1c;function a120_0x5a1c(_0x252f87,_0x4b2677){_0x252f87=_0x252f87-0x78;const _0x10e24c=a120_0x10e2();let _0x5a1c4f=_0x10e24c[_0x252f87];return _0x5a1c4f;}function a120_0x10e2(){const _0x4f10ed=['2324147lLBvUk','2026-08-20T12:39:08.398Z','2.2.7','5113GqRqBR','f7f4434','8438610yZrisV','6757096myhioz','40965860uTuhJK','30iCJAxr','3cfOhDT','v2.2.7','4487022gRUzfJ','568Qfcsol','6122284sShHLJ'];a120_0x10e2=function(){return _0x4f10ed;};return a120_0x10e2();}(function(_0x596952,_0x3c864d){const _0x3b6fb4=a120_0x5a1c,_0x9e2281=_0x596952();while(!![]){try{const _0x272745=-parseInt(_0x3b6fb4(0x7a))/0x1*(-parseInt(_0x3b6fb4(0x83))/0x2)+parseInt(_0x3b6fb4(0x80))/0x3*(parseInt(_0x3b6fb4(0x84))/0x4)+parseInt(_0x3b6fb4(0x7c))/0x5+-parseInt(_0x3b6fb4(0x7f))/0x6*(-parseInt(_0x3b6fb4(0x85))/0x7)+-parseInt(_0x3b6fb4(0x7d))/0x8+-parseInt(_0x3b6fb4(0x82))/0x9+-parseInt(_0x3b6fb4(0x7e))/0xa;if(_0x272745===_0x3c864d)break;else _0x9e2281['push'](_0x9e2281['shift']());}catch(_0x303fd6){_0x9e2281['push'](_0x9e2281['shift']());}}}(a120_0x10e2,0xd9755));export const VERSION=a120_0x13001a(0x79);export const GIT_TAG=a120_0x13001a(0x81);export const GIT_COMMIT=a120_0x13001a(0x7b);export const BUILD_TIME=a120_0x13001a(0x78);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5e54f1,_0x3462de){const _0x81f1e8=a121_0x1adb,_0x4234d1=_0x5e54f1();while(!![]){try{const _0x5a1a52=parseInt(_0x81f1e8(0x1f7))/0x1*(-parseInt(_0x81f1e8(0x1f6))/0x2)+parseInt(_0x81f1e8(0x1fd))/0x3+-parseInt(_0x81f1e8(0x1f2))/0x4+parseInt(_0x81f1e8(0x1f5))/0x5+parseInt(_0x81f1e8(0x1fe))/0x6*(parseInt(_0x81f1e8(0x1f8))/0x7)+-parseInt(_0x81f1e8(0x1f3))/0x8+-parseInt(_0x81f1e8(0x1fb))/0x9;if(_0x5a1a52===_0x3462de)break;else _0x4234d1['push'](_0x4234d1['shift']());}catch(_0x19eac1){_0x4234d1['push'](_0x4234d1['shift']());}}}(a121_0x3962,0xe5e45));function a121_0x1adb(_0x2902f8,_0x2baf82){_0x2902f8=_0x2902f8-0x1f2;const _0x39625b=a121_0x3962();let _0x1adbf7=_0x39625b[_0x2902f8];return _0x1adbf7;}function a121_0x3962(){const _0x3f150a=['14BRBodK','\x20\x20Use\x20','\x20--help','8617221pIgilk','green','4922580MzaIyv','466122mkBKkE','4493008cmXzAg','4299960AkSUTL','\x20to\x20view\x20available\x20commands.','9395720ePzDsV','50CXftWO','4621hIOvIi'];a121_0x3962=function(){return _0x3f150a;};return a121_0x3962();}import{jsx as a121_0x5eddac,jsxs as a121_0x4a750c}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x29c8d2=a121_0x1adb,{exit:_0x13cbe9}=useApp();return useEffect(()=>{_0x13cbe9();},[_0x13cbe9]),a121_0x4a750c(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a121_0x5eddac(Box,{'children':a121_0x5eddac(Text,{'bold':!![],'color':_0x29c8d2(0x1fc),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a121_0x4a750c(Box,{'marginTop':0x1,'children':[a121_0x5eddac(Text,{'dimColor':!![],'children':_0x29c8d2(0x1f9)}),a121_0x5eddac(Text,{'bold':!![],'color':_0x29c8d2(0x1fc),'children':CLI_BIN_NAME+_0x29c8d2(0x1fa)}),a121_0x5eddac(Text,{'dimColor':!![],'children':_0x29c8d2(0x1f4)})]})]});}
1
+ function a121_0x1427(){const _0x4d572f=['28RDIvcs','210CcFjru','29268492QazcgW','366123VXOOAc','916872yKygGE','\x20\x20Use\x20','green','347067FtYgMD','216hXoBjS','376RhPVlL','154335huMKhn','17815iANAnG','\x20to\x20view\x20available\x20commands.','1190900ofGiqD'];a121_0x1427=function(){return _0x4d572f;};return a121_0x1427();}(function(_0x199030,_0x317067){const _0x36f856=a121_0xb4cc,_0x24ac68=_0x199030();while(!![]){try{const _0x5e5607=-parseInt(_0x36f856(0x1cd))/0x1+parseInt(_0x36f856(0x1d2))/0x2+parseInt(_0x36f856(0x1d1))/0x3*(-parseInt(_0x36f856(0x1ce))/0x4)+parseInt(_0x36f856(0x1d8))/0x5*(-parseInt(_0x36f856(0x1d6))/0x6)+-parseInt(_0x36f856(0x1d9))/0x7*(parseInt(_0x36f856(0x1d7))/0x8)+parseInt(_0x36f856(0x1d5))/0x9*(parseInt(_0x36f856(0x1cf))/0xa)+parseInt(_0x36f856(0x1d0))/0xb;if(_0x5e5607===_0x317067)break;else _0x24ac68['push'](_0x24ac68['shift']());}catch(_0x1ac120){_0x24ac68['push'](_0x24ac68['shift']());}}}(a121_0x1427,0x9f6d9));function a121_0xb4cc(_0x24e01b,_0x126d69){_0x24e01b=_0x24e01b-0x1cd;const _0x142790=a121_0x1427();let _0xb4ccff=_0x142790[_0x24e01b];return _0xb4ccff;}import{jsx as a121_0x59bfb9,jsxs as a121_0x3a9508}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0xa47335=a121_0xb4cc,{exit:_0x16c5bf}=useApp();return useEffect(()=>{_0x16c5bf();},[_0x16c5bf]),a121_0x3a9508(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a121_0x59bfb9(Box,{'children':a121_0x59bfb9(Text,{'bold':!![],'color':_0xa47335(0x1d4),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a121_0x3a9508(Box,{'marginTop':0x1,'children':[a121_0x59bfb9(Text,{'dimColor':!![],'children':_0xa47335(0x1d3)}),a121_0x59bfb9(Text,{'bold':!![],'color':_0xa47335(0x1d4),'children':CLI_BIN_NAME+'\x20--help'}),a121_0x59bfb9(Text,{'dimColor':!![],'children':_0xa47335(0x1da)})]})]});}
@@ -1 +1 @@
1
- (function(_0x2f2d40,_0x543110){const _0x4981a4=a122_0x4836,_0x2280c0=_0x2f2d40();while(!![]){try{const _0x3dd0b8=-parseInt(_0x4981a4(0x177))/0x1*(parseInt(_0x4981a4(0x176))/0x2)+parseInt(_0x4981a4(0x17b))/0x3*(parseInt(_0x4981a4(0x181))/0x4)+-parseInt(_0x4981a4(0x173))/0x5*(parseInt(_0x4981a4(0x184))/0x6)+-parseInt(_0x4981a4(0x174))/0x7*(parseInt(_0x4981a4(0x16f))/0x8)+-parseInt(_0x4981a4(0x17c))/0x9+parseInt(_0x4981a4(0x175))/0xa*(parseInt(_0x4981a4(0x17d))/0xb)+parseInt(_0x4981a4(0x17f))/0xc*(parseInt(_0x4981a4(0x172))/0xd);if(_0x3dd0b8===_0x543110)break;else _0x2280c0['push'](_0x2280c0['shift']());}catch(_0x5b748b){_0x2280c0['push'](_0x2280c0['shift']());}}}(a122_0x25f6,0x5f53a));function a122_0x25f6(){const _0x211ec9=['938hgHnny','10lHeSlS','2pKAbyw','218014GAsMFc','log','changed','installedPath','438345QtUsjt','5022756EToXLk','69619pITdtA','code','688932gUpkrX','repairCommand','12VxvKLp','SOURCE_INVALID','Lovrabet\x20Built-in\x20Skill\x20','431286dzegap','\x20via\x20skills@latest','error','Repair\x20with:\x20','4024yjlvYo','already\x20current','\x20at\x20','195BvdLGd','5uIMknR'];a122_0x25f6=function(){return _0x211ec9;};return a122_0x25f6();}function a122_0x4836(_0x144a0b,_0x5d371e){_0x144a0b=_0x144a0b-0x16f;const _0x25f6d7=a122_0x25f6();let _0x48365f=_0x25f6d7[_0x144a0b];return _0x48365f;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x569457={}){const _0x4e1014=a122_0x4836,_0x3ba1d9=installBuiltinSkill(_0x569457);if(_0x3ba1d9['ok']){const _0x5a21e5=_0x3ba1d9[_0x4e1014(0x179)]?'installed':_0x4e1014(0x170),_0x27723d=_0x3ba1d9[_0x4e1014(0x17a)]?_0x4e1014(0x171)+_0x3ba1d9[_0x4e1014(0x17a)]:_0x4e1014(0x185);return console[_0x4e1014(0x178)](_0x4e1014(0x183)+_0x3ba1d9['skillVersion']+'\x20'+_0x5a21e5+_0x27723d),_0x3ba1d9;}const _0x48bb04='[BUILTIN_SKILL_INSTALL_'+(_0x3ba1d9[_0x4e1014(0x17e)]??'FAILED')+']\x20'+(_0x3ba1d9[_0x4e1014(0x186)]??'Installation\x20failed')+'.\x20'+(_0x4e1014(0x187)+_0x3ba1d9[_0x4e1014(0x180)]);if(_0x3ba1d9['code']===_0x4e1014(0x182))throw new Error(_0x48bb04);return console['warn'](_0x48bb04),_0x3ba1d9;}
1
+ function a122_0x41d8(_0x2c2e2a,_0x1a5bdb){_0x2c2e2a=_0x2c2e2a-0xbd;const _0x1e5628=a122_0x1e56();let _0x41d882=_0x1e5628[_0x2c2e2a];return _0x41d882;}(function(_0x594be6,_0x3bf214){const _0x38149d=a122_0x41d8,_0x21563c=_0x594be6();while(!![]){try{const _0x3d2a02=-parseInt(_0x38149d(0xcd))/0x1*(parseInt(_0x38149d(0xc0))/0x2)+-parseInt(_0x38149d(0xce))/0x3*(-parseInt(_0x38149d(0xc9))/0x4)+-parseInt(_0x38149d(0xd0))/0x5*(-parseInt(_0x38149d(0xc1))/0x6)+-parseInt(_0x38149d(0xc4))/0x7*(parseInt(_0x38149d(0xbe))/0x8)+parseInt(_0x38149d(0xd4))/0x9*(parseInt(_0x38149d(0xc6))/0xa)+parseInt(_0x38149d(0xcb))/0xb+-parseInt(_0x38149d(0xca))/0xc*(parseInt(_0x38149d(0xc3))/0xd);if(_0x3d2a02===_0x3bf214)break;else _0x21563c['push'](_0x21563c['shift']());}catch(_0x141d85){_0x21563c['push'](_0x21563c['shift']());}}}(a122_0x1e56,0x7a24a));function a122_0x1e56(){const _0x43d66d=['18ACaWZK','\x20via\x20skills@latest','806pGXokI','2075843jGTymP','repairCommand','4733980LsyOfy','warn','code','128bXtgLw','222708sJGmZL','8346701rMncXr','FAILED','1yQFbzI','14700sCLPAQ','SOURCE_INVALID','1229095CceVxi','Installation\x20failed','Lovrabet\x20Built-in\x20Skill\x20','\x20at\x20','9OzUjZU','[BUILTIN_SKILL_INSTALL_','installedPath','8SdpUNA','installed','357882SnAdck'];a122_0x1e56=function(){return _0x43d66d;};return a122_0x1e56();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0xae37f6={}){const _0x548fa2=a122_0x41d8,_0x51ad8e=installBuiltinSkill(_0xae37f6);if(_0x51ad8e['ok']){const _0x59e729=_0x51ad8e['changed']?_0x548fa2(0xbf):'already\x20current',_0x14dd61=_0x51ad8e['installedPath']?_0x548fa2(0xd3)+_0x51ad8e[_0x548fa2(0xbd)]:_0x548fa2(0xc2);return console['log'](_0x548fa2(0xd2)+_0x51ad8e['skillVersion']+'\x20'+_0x59e729+_0x14dd61),_0x51ad8e;}const _0x13518e=_0x548fa2(0xd5)+(_0x51ad8e[_0x548fa2(0xc8)]??_0x548fa2(0xcc))+']\x20'+(_0x51ad8e['error']??_0x548fa2(0xd1))+'.\x20'+('Repair\x20with:\x20'+_0x51ad8e[_0x548fa2(0xc5)]);if(_0x51ad8e[_0x548fa2(0xc8)]===_0x548fa2(0xcf))throw new Error(_0x13518e);return console[_0x548fa2(0xc7)](_0x13518e),_0x51ad8e;}
@@ -1 +1 @@
1
- (function(_0x54f348,_0x38b0b){const _0x3acfcb=a123_0x4522,_0x24486c=_0x54f348();while(!![]){try{const _0x2c57b6=-parseInt(_0x3acfcb(0x157))/0x1*(parseInt(_0x3acfcb(0x15c))/0x2)+-parseInt(_0x3acfcb(0x167))/0x3+parseInt(_0x3acfcb(0x15b))/0x4+parseInt(_0x3acfcb(0x166))/0x5*(parseInt(_0x3acfcb(0x156))/0x6)+-parseInt(_0x3acfcb(0x165))/0x7*(parseInt(_0x3acfcb(0x15d))/0x8)+parseInt(_0x3acfcb(0x15a))/0x9*(parseInt(_0x3acfcb(0x154))/0xa)+-parseInt(_0x3acfcb(0x162))/0xb*(-parseInt(_0x3acfcb(0x158))/0xc);if(_0x2c57b6===_0x38b0b)break;else _0x24486c['push'](_0x24486c['shift']());}catch(_0x15be23){_0x24486c['push'](_0x24486c['shift']());}}}(a123_0x3875,0x9cef0));function a123_0x4522(_0x3d783f,_0x16ff6e){_0x3d783f=_0x3d783f-0x154;const _0x3875d3=a123_0x3875();let _0x4522ce=_0x3875d3[_0x3d783f];return _0x4522ce;}const DESCRIPTION_MAX_LENGTH=0x1f4;function a123_0x3875(){const _0x12d9d8=['90338LiGvel','1034192yYRezp','执行该写入操作','risk','high-risk-write','confirmationDescription','1084589GUbMdl','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','slice','49UJoesB','120xYCPSh','2558385HppNdR','275680eSLJid','write','195906RxbJqQ','1pCJOmx','84MUWtNX','trim','288vZPAPE','358756DcobWn'];a123_0x3875=function(){return _0x12d9d8;};return a123_0x3875();}export function buildLovrabetConfirmationRequest(_0x61d509,_0x544e55,_0x1a8afd){const _0xc9487d=a123_0x4522,_0x96644f=normalizeText(_0x61d509[_0xc9487d(0x161)],DESCRIPTION_MAX_LENGTH),_0x5024e8=normalizeText(_0x61d509['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x544e55,'risk':requireWriteRisk(_0x61d509),'description':_0x96644f||_0x5024e8||_0xc9487d(0x15e),..._0x1a8afd?{'signal':_0x1a8afd}:{}};}function requireWriteRisk(_0x1da148){const _0x482478=a123_0x4522;if(_0x1da148[_0x482478(0x15f)]===_0x482478(0x155)||_0x1da148['risk']===_0x482478(0x160))return _0x1da148['risk'];throw new Error(_0x482478(0x163));}function normalizeText(_0x258b3a,_0xf301f0){const _0x1222f1=a123_0x4522;if(typeof _0x258b3a!=='string')return'';return _0x258b3a['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1222f1(0x159)]()[_0x1222f1(0x164)](0x0,_0xf301f0);}
1
+ (function(_0x867f22,_0x469c4a){const _0x30e967=a123_0x343c,_0x413187=_0x867f22();while(!![]){try{const _0x3ed043=-parseInt(_0x30e967(0x14b))/0x1+parseInt(_0x30e967(0x140))/0x2+parseInt(_0x30e967(0x141))/0x3*(-parseInt(_0x30e967(0x13e))/0x4)+parseInt(_0x30e967(0x14f))/0x5*(parseInt(_0x30e967(0x14c))/0x6)+parseInt(_0x30e967(0x146))/0x7*(parseInt(_0x30e967(0x147))/0x8)+parseInt(_0x30e967(0x144))/0x9+-parseInt(_0x30e967(0x145))/0xa;if(_0x3ed043===_0x469c4a)break;else _0x413187['push'](_0x413187['shift']());}catch(_0xc560e7){_0x413187['push'](_0x413187['shift']());}}}(a123_0x36f0,0x8a824));function a123_0x343c(_0x1f0557,_0x15a23a){_0x1f0557=_0x1f0557-0x13d;const _0x36f040=a123_0x36f0();let _0x343c99=_0x36f040[_0x1f0557];return _0x343c99;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x411e7e,_0x113aca,_0x8ffea2){const _0x158be1=a123_0x343c,_0x24c638=normalizeText(_0x411e7e[_0x158be1(0x14a)],DESCRIPTION_MAX_LENGTH),_0x153424=normalizeText(_0x411e7e[_0x158be1(0x148)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x113aca,'risk':requireWriteRisk(_0x411e7e),'description':_0x24c638||_0x153424||'执行该写入操作',..._0x8ffea2?{'signal':_0x8ffea2}:{}};}function requireWriteRisk(_0xa04ad9){const _0x426f1f=a123_0x343c;if(_0xa04ad9[_0x426f1f(0x142)]==='write'||_0xa04ad9[_0x426f1f(0x142)]===_0x426f1f(0x14d))return _0xa04ad9[_0x426f1f(0x142)];throw new Error(_0x426f1f(0x13f));}function a123_0x36f0(){const _0x4a8791=['slice','confirmationDescription','253577WPhoqb','306nxTbmw','high-risk-write','trim','99340ykBjhm','replace','17660pXprXD','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','1614862QIwfPh','675kkMWOh','risk','string','4931820NUfdGL','6815340NufDSm','7fKWQpE','1017112LBYwws','description'];a123_0x36f0=function(){return _0x4a8791;};return a123_0x36f0();}function normalizeText(_0xf8a165,_0x2f8b28){const _0x1d99ba=a123_0x343c;if(typeof _0xf8a165!==_0x1d99ba(0x143))return'';return _0xf8a165['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x1d99ba(0x13d)](/\s+/g,'\x20')[_0x1d99ba(0x14e)]()[_0x1d99ba(0x149)](0x0,_0x2f8b28);}
@@ -1 +1 @@
1
- (function(_0x134055,_0x2bb020){const _0x16efb6=a124_0x485a,_0x18ee27=_0x134055();while(!![]){try{const _0x5a3e52=parseInt(_0x16efb6(0x146))/0x1*(-parseInt(_0x16efb6(0x145))/0x2)+parseInt(_0x16efb6(0x14f))/0x3*(parseInt(_0x16efb6(0x156))/0x4)+-parseInt(_0x16efb6(0x142))/0x5+-parseInt(_0x16efb6(0x151))/0x6*(-parseInt(_0x16efb6(0x14d))/0x7)+-parseInt(_0x16efb6(0x150))/0x8*(parseInt(_0x16efb6(0x149))/0x9)+-parseInt(_0x16efb6(0x14a))/0xa+-parseInt(_0x16efb6(0x14c))/0xb*(-parseInt(_0x16efb6(0x154))/0xc);if(_0x5a3e52===_0x2bb020)break;else _0x18ee27['push'](_0x18ee27['shift']());}catch(_0x2f0ea4){_0x18ee27['push'](_0x18ee27['shift']());}}}(a124_0x2761,0xc76be));export function canonicalLovrabetOperation(_0x5e9cc8){const _0x106c21=a124_0x485a;return[_0x5e9cc8[_0x106c21(0x152)],..._0x5e9cc8['command']['trim']()[_0x106c21(0x155)](/\s+/)][_0x106c21(0x144)](Boolean)[_0x106c21(0x143)]('.');}function a124_0x485a(_0x520ddc,_0x2dddb0){_0x520ddc=_0x520ddc-0x142;const _0x2761cc=a124_0x2761();let _0x485a0c=_0x2761cc[_0x520ddc];return _0x485a0c;}function a124_0x2761(){const _0x2cbd9e=['917249jzMhOQ','lovrabet.write.completed','risk','442593PdWbCK','9317970hyfQCg','write','4103TkBIQx','47887lNtXOB','high-risk-write','22326IeycSY','72VerSWe','618MuEtKJ','service','writeEventSubject','41892bsAJaL','split','856brrpYj','2454425eQzUcP','join','filter','2BlDgux'];a124_0x2761=function(){return _0x2cbd9e;};return a124_0x2761();}export function createLovrabetWriteMetadata(_0x80918d,_0x5cf5ee,_0x1640db,_0x254cf0){const _0x5e3ea9=a124_0x485a;if(_0x254cf0||_0x1640db['ok']!==!![]||_0x80918d[_0x5e3ea9(0x148)]!==_0x5e3ea9(0x14b)&&_0x80918d[_0x5e3ea9(0x148)]!==_0x5e3ea9(0x14e))return undefined;const _0x49177e=_0x80918d[_0x5e3ea9(0x153)]?.(_0x1640db),_0x361397={'type':_0x5e3ea9(0x147),'operation':_0x5cf5ee,'risk':_0x80918d['risk'],..._0x49177e?{'subject':_0x49177e}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x361397}};}
1
+ function a124_0x2260(_0xc180a3,_0x5be342){_0xc180a3=_0xc180a3-0x196;const _0x53d31f=a124_0x53d3();let _0x2260d5=_0x53d31f[_0xc180a3];return _0x2260d5;}(function(_0x57d28a,_0x56a2d3){const _0x45dbce=a124_0x2260,_0x42e316=_0x57d28a();while(!![]){try{const _0x54a808=parseInt(_0x45dbce(0x1a0))/0x1+parseInt(_0x45dbce(0x1a4))/0x2*(-parseInt(_0x45dbce(0x1a8))/0x3)+-parseInt(_0x45dbce(0x1a5))/0x4*(-parseInt(_0x45dbce(0x198))/0x5)+parseInt(_0x45dbce(0x197))/0x6+parseInt(_0x45dbce(0x1a2))/0x7*(-parseInt(_0x45dbce(0x199))/0x8)+parseInt(_0x45dbce(0x19d))/0x9*(parseInt(_0x45dbce(0x1a3))/0xa)+-parseInt(_0x45dbce(0x19c))/0xb;if(_0x54a808===_0x56a2d3)break;else _0x42e316['push'](_0x42e316['shift']());}catch(_0x3bc40a){_0x42e316['push'](_0x42e316['shift']());}}}(a124_0x53d3,0xe615d));function a124_0x53d3(){const _0x44c12f=['68dcCLVX','12196tQxpJj','writeEventSubject','risk','90696DSLnrD','write','join','10359480LHdJUA','2285vhHqIg','2129488ffVhBH','split','high-risk-write','22148324UCCEtj','9qkuRUM','trim','service','1603541vgBdAR','lovrabet.write.completed','49JngKEn','11235890dbzKYH'];a124_0x53d3=function(){return _0x44c12f;};return a124_0x53d3();}export function canonicalLovrabetOperation(_0x1ada01){const _0x56406e=a124_0x2260;return[_0x1ada01[_0x56406e(0x19f)],..._0x1ada01['command'][_0x56406e(0x19e)]()[_0x56406e(0x19a)](/\s+/)]['filter'](Boolean)[_0x56406e(0x196)]('.');}export function createLovrabetWriteMetadata(_0x160e5e,_0x2e5d1f,_0xcaaac,_0x52095e){const _0x5351d2=a124_0x2260;if(_0x52095e||_0xcaaac['ok']!==!![]||_0x160e5e[_0x5351d2(0x1a7)]!==_0x5351d2(0x1a9)&&_0x160e5e[_0x5351d2(0x1a7)]!==_0x5351d2(0x19b))return undefined;const _0x160a5d=_0x160e5e[_0x5351d2(0x1a6)]?.(_0xcaaac),_0x1c3d70={'type':_0x5351d2(0x1a1),'operation':_0x2e5d1f,'risk':_0x160e5e[_0x5351d2(0x1a7)],..._0x160a5d?{'subject':_0x160a5d}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x1c3d70}};}
@@ -1 +1 @@
1
- (function(_0x44639c,_0x206f8a){const _0x169beb=a125_0x499e,_0x44f085=_0x44639c();while(!![]){try{const _0x497165=-parseInt(_0x169beb(0x1ab))/0x1*(parseInt(_0x169beb(0x1cd))/0x2)+parseInt(_0x169beb(0x1c2))/0x3*(-parseInt(_0x169beb(0x1cb))/0x4)+-parseInt(_0x169beb(0x1af))/0x5*(-parseInt(_0x169beb(0x1c8))/0x6)+-parseInt(_0x169beb(0x1b8))/0x7+-parseInt(_0x169beb(0x1bb))/0x8*(parseInt(_0x169beb(0x1a8))/0x9)+parseInt(_0x169beb(0x1b3))/0xa+-parseInt(_0x169beb(0x1bd))/0xb*(-parseInt(_0x169beb(0x1cc))/0xc);if(_0x497165===_0x206f8a)break;else _0x44f085['push'](_0x44f085['shift']());}catch(_0x339839){_0x44f085['push'](_0x44f085['shift']());}}}(a125_0x2c28,0xe125c));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x4c85a7,command:_0x4496ea,risk:_0x5ba767,dryRun:_0x439f07}){const _0x26a7f5=a125_0x499e;return JSON[_0x26a7f5(0x1ac)]({'ok':_0x4c85a7['ok'],'command':_0x4496ea,'risk':_0x5ba767,..._0x439f07?{'dryRun':!![]}:{},..._0x4c85a7[_0x26a7f5(0x1be)]!==undefined?{'data':_0x4c85a7[_0x26a7f5(0x1be)]}:{},..._0x4c85a7['message']?{'message':_0x4c85a7[_0x26a7f5(0x1c3)]}:{}});}};export async function invokeLovrabet(_0x2f71dc,_0x2aa531){const _0x29f3fc=a125_0x499e;throwIfAborted(_0x2aa531['signal']);const _0x1473fe=await resolveLovrabetInvocation(_0x2f71dc),_0x54a6d8=canonicalLovrabetOperation(_0x1473fe[_0x29f3fc(0x1b4)]);return await confirmWriteBeforeQueue(_0x1473fe['definition'],_0x1473fe[_0x29f3fc(0x1b7)],_0x54a6d8,_0x2aa531),runSerialized(async()=>{const _0x5d241a=_0x29f3fc;throwIfAborted(_0x2aa531[_0x5d241a(0x1c6)]);const _0x266c98={},_0x1c039e=buildConfigFromFlags(_0x1473fe[_0x5d241a(0x1b7)]);await initGlobalEnvironment(_0x1c039e);const _0x15dca1=createPipelineEnv(_0x1c039e,{..._0x1473fe['rawFlags'],'yes':_0x1473fe['definition'][_0x5d241a(0x1c7)]==='high-risk-write'?!![]:_0x1473fe[_0x5d241a(0x1b7)][_0x5d241a(0x1aa)],'nonInteractive':!![]});_0x15dca1[_0x5d241a(0x1c4)]=_0x1473fe[_0x5d241a(0x1c4)],_0x15dca1[_0x5d241a(0x1bf)]=!![],_0x15dca1[_0x5d241a(0x1b2)]=_0x5d241a(0x1ca);const _0x504f2f=withAbortSignal(_0x1473fe[_0x5d241a(0x1b4)],_0x2aa531[_0x5d241a(0x1c6)]),_0x3357ec=createLovrabetRunnerAdapter({'formatOutput'(_0x43f4a3,_0x340480){const _0x494ce2=_0x5d241a;_0x266c98[_0x494ce2(0x1ba)]=_0x43f4a3,_0x266c98[_0x494ce2(0x1a9)]=_0x340480['command'],_0x266c98[_0x494ce2(0x1c7)]=_0x340480[_0x494ce2(0x1c7)],_0x266c98['format']=_0x340480['format'],_0x266c98['dryRun']=_0x340480[_0x494ce2(0x1b6)]===!![];},async 'confirmHighRisk'(){const _0x21e253=_0x5d241a;throw new Error(_0x21e253(0x1c9));}});try{await runCommand(_0x504f2f,_0x15dca1,_0x3357ec);if(!_0x266c98['result']||!_0x266c98[_0x5d241a(0x1a9)]||!_0x266c98[_0x5d241a(0x1c7)]||!_0x266c98[_0x5d241a(0x1ad)])throw new Error(_0x5d241a(0x1b9));const _0x17be34=_0x2aa531[_0x5d241a(0x1c1)]??defaultPresentation,_0x202752=_0x266c98[_0x5d241a(0x1b6)]===!![],_0x31c2e7={'result':_0x266c98[_0x5d241a(0x1ba)],'command':_0x266c98[_0x5d241a(0x1a9)],'operation':_0x54a6d8,'risk':_0x266c98[_0x5d241a(0x1c7)],'format':_0x266c98['format'],'dryRun':_0x202752},_0x211948=createLovrabetWriteMetadata(_0x1473fe[_0x5d241a(0x1b4)],_0x54a6d8,_0x266c98['result'],_0x202752);let _0x546440;try{_0x546440=await _0x17be34['present'](_0x31c2e7);}catch(_0x3b7862){if(!_0x211948||_0x17be34===defaultPresentation)throw _0x3b7862;_0x546440=await defaultPresentation[_0x5d241a(0x1b1)](_0x31c2e7);}return{'operation':_0x54a6d8,'risk':_0x266c98[_0x5d241a(0x1c7)],'mode':_0x202752?'dry-run':_0x5d241a(0x1b0),'result':_0x266c98['result'],'output':_0x546440,..._0x211948?{'metadata':_0x211948}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x160952,_0xd17b1e,_0x3e9167,_0x3ac447){const _0x3204cb=a125_0x499e;if(_0xd17b1e[_0x3204cb(0x1b6)]===!![]||_0x160952[_0x3204cb(0x1c7)]!==_0x3204cb(0x1b5)&&_0x160952['risk']!==_0x3204cb(0x1ca))return;await _0x3ac447[_0x3204cb(0x1ae)][_0x3204cb(0x1c0)](buildLovrabetConfirmationRequest(_0x160952,_0x3e9167,_0x3ac447['signal']));}function a125_0x499e(_0x431676,_0x13cd69){_0x431676=_0x431676-0x1a8;const _0x2c28d3=a125_0x2c28();let _0x499e99=_0x2c28d3[_0x431676];return _0x499e99;}function withAbortSignal(_0xd06be7,_0x3c9e6a){return{..._0xd06be7,async 'execute'(_0x47d343){const _0x5139d7=a125_0x499e;return throwIfAborted(_0x3c9e6a),_0xd06be7[_0x5139d7(0x1b0)](_0x47d343);}};}function a125_0x2c28(){const _0x1be9f9=['1211833wolpBG','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','result','16xVbqeQ','reason','17455075FvULKK','data','isNonInteractive','confirm','presentation','141qLtaAa','message','args','aborted','signal','risk','1434hAeTvK','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','high-risk-write','116612LLdCai','12sEDbdE','265072pUXRTg','1381383ByyPgu','command','yes','5eYtTwd','stringify','format','confirmation','29075WYUJTg','execute','present','riskLevel','4585580dQBuim','definition','write','dryRun','rawFlags'];a125_0x2c28=function(){return _0x1be9f9;};return a125_0x2c28();}function throwIfAborted(_0x254d7a){const _0x13ef72=a125_0x499e;if(_0x254d7a?.[_0x13ef72(0x1c5)])throw _0x254d7a[_0x13ef72(0x1bc)]instanceof Error?_0x254d7a[_0x13ef72(0x1bc)]:new DOMException('Lovrabet\x20invocation\x20aborted.','AbortError');}
1
+ (function(_0x534760,_0x9262f9){const _0x23d1c4=a125_0x1925,_0x4d9af7=_0x534760();while(!![]){try{const _0x12c80b=parseInt(_0x23d1c4(0x204))/0x1*(-parseInt(_0x23d1c4(0x208))/0x2)+parseInt(_0x23d1c4(0x1f8))/0x3*(-parseInt(_0x23d1c4(0x1f4))/0x4)+-parseInt(_0x23d1c4(0x212))/0x5+-parseInt(_0x23d1c4(0x211))/0x6*(parseInt(_0x23d1c4(0x203))/0x7)+parseInt(_0x23d1c4(0x207))/0x8*(-parseInt(_0x23d1c4(0x210))/0x9)+parseInt(_0x23d1c4(0x1fa))/0xa*(-parseInt(_0x23d1c4(0x213))/0xb)+-parseInt(_0x23d1c4(0x214))/0xc*(-parseInt(_0x23d1c4(0x1f6))/0xd);if(_0x12c80b===_0x9262f9)break;else _0x4d9af7['push'](_0x4d9af7['shift']());}catch(_0x5daf6c){_0x4d9af7['push'](_0x4d9af7['shift']());}}}(a125_0x6918,0x674bd));function a125_0x1925(_0x1a14b7,_0x23f103){_0x1a14b7=_0x1a14b7-0x1f2;const _0x6918e3=a125_0x6918();let _0x19252d=_0x6918e3[_0x1a14b7];return _0x19252d;}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';function a125_0x6918(){const _0x184b49=['dryRun','56WGHati','present','2084485SyZvbL','rawFlags','45321PStyLg','write','198880GRtwLe','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','data','command','aborted','signal','definition','risk','reason','14OhmMYq','11503SqWHPK','presentation','result','8qhoTHq','86kqIOAh','isNonInteractive','message','confirm','riskLevel','dry-run','execute','high-risk-write','1794411NiHsRP','1201110jFomhV','907400nBmbGW','451vpDphP','204iFdeyA','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','format'];a125_0x6918=function(){return _0x184b49;};return a125_0x6918();}import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x293d46,command:_0x1c94b0,risk:_0xad3555,dryRun:_0xae8a4b}){const _0x87778=a125_0x1925;return JSON['stringify']({'ok':_0x293d46['ok'],'command':_0x1c94b0,'risk':_0xad3555,..._0xae8a4b?{'dryRun':!![]}:{},..._0x293d46[_0x87778(0x1fc)]!==undefined?{'data':_0x293d46[_0x87778(0x1fc)]}:{},..._0x293d46[_0x87778(0x20a)]?{'message':_0x293d46[_0x87778(0x20a)]}:{}});}};export async function invokeLovrabet(_0x48ac0e,_0x2ceff1){const _0x6c58c=a125_0x1925;throwIfAborted(_0x2ceff1[_0x6c58c(0x1ff)]);const _0x1c6266=await resolveLovrabetInvocation(_0x48ac0e),_0x223897=canonicalLovrabetOperation(_0x1c6266['definition']);return await confirmWriteBeforeQueue(_0x1c6266['definition'],_0x1c6266[_0x6c58c(0x1f7)],_0x223897,_0x2ceff1),runSerialized(async()=>{const _0x522f3b=_0x6c58c;throwIfAborted(_0x2ceff1[_0x522f3b(0x1ff)]);const _0x89f2ac={},_0x5dd8a6=buildConfigFromFlags(_0x1c6266['rawFlags']);await initGlobalEnvironment(_0x5dd8a6);const _0x28b382=createPipelineEnv(_0x5dd8a6,{..._0x1c6266['rawFlags'],'yes':_0x1c6266[_0x522f3b(0x200)][_0x522f3b(0x201)]===_0x522f3b(0x20f)?!![]:_0x1c6266[_0x522f3b(0x1f7)]['yes'],'nonInteractive':!![]});_0x28b382['args']=_0x1c6266['args'],_0x28b382[_0x522f3b(0x209)]=!![],_0x28b382[_0x522f3b(0x20c)]=_0x522f3b(0x20f);const _0x35e38c=withAbortSignal(_0x1c6266['definition'],_0x2ceff1[_0x522f3b(0x1ff)]),_0x184977=createLovrabetRunnerAdapter({'formatOutput'(_0x2214f1,_0x493f13){const _0x1bd780=_0x522f3b;_0x89f2ac[_0x1bd780(0x206)]=_0x2214f1,_0x89f2ac[_0x1bd780(0x1fd)]=_0x493f13[_0x1bd780(0x1fd)],_0x89f2ac[_0x1bd780(0x201)]=_0x493f13[_0x1bd780(0x201)],_0x89f2ac['format']=_0x493f13[_0x1bd780(0x1f2)],_0x89f2ac[_0x1bd780(0x1f3)]=_0x493f13['dryRun']===!![];},async 'confirmHighRisk'(){const _0x213ee6=_0x522f3b;throw new Error(_0x213ee6(0x215));}});try{await runCommand(_0x35e38c,_0x28b382,_0x184977);if(!_0x89f2ac[_0x522f3b(0x206)]||!_0x89f2ac[_0x522f3b(0x1fd)]||!_0x89f2ac[_0x522f3b(0x201)]||!_0x89f2ac[_0x522f3b(0x1f2)])throw new Error(_0x522f3b(0x1fb));const _0x30c585=_0x2ceff1[_0x522f3b(0x205)]??defaultPresentation,_0x2c7b49=_0x89f2ac[_0x522f3b(0x1f3)]===!![],_0x543e28={'result':_0x89f2ac['result'],'command':_0x89f2ac[_0x522f3b(0x1fd)],'operation':_0x223897,'risk':_0x89f2ac[_0x522f3b(0x201)],'format':_0x89f2ac['format'],'dryRun':_0x2c7b49},_0x405df2=createLovrabetWriteMetadata(_0x1c6266[_0x522f3b(0x200)],_0x223897,_0x89f2ac[_0x522f3b(0x206)],_0x2c7b49);let _0x42544f;try{_0x42544f=await _0x30c585[_0x522f3b(0x1f5)](_0x543e28);}catch(_0x490e9a){if(!_0x405df2||_0x30c585===defaultPresentation)throw _0x490e9a;_0x42544f=await defaultPresentation['present'](_0x543e28);}return{'operation':_0x223897,'risk':_0x89f2ac['risk'],'mode':_0x2c7b49?_0x522f3b(0x20d):'execute','result':_0x89f2ac['result'],'output':_0x42544f,..._0x405df2?{'metadata':_0x405df2}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x95eaae,_0x30ce58,_0x562461,_0x4ec892){const _0x8e7995=a125_0x1925;if(_0x30ce58[_0x8e7995(0x1f3)]===!![]||_0x95eaae[_0x8e7995(0x201)]!==_0x8e7995(0x1f9)&&_0x95eaae[_0x8e7995(0x201)]!==_0x8e7995(0x20f))return;await _0x4ec892['confirmation'][_0x8e7995(0x20b)](buildLovrabetConfirmationRequest(_0x95eaae,_0x562461,_0x4ec892[_0x8e7995(0x1ff)]));}function withAbortSignal(_0x9e8b51,_0x538d2a){return{..._0x9e8b51,async 'execute'(_0x38dfc4){const _0x19cd97=a125_0x1925;return throwIfAborted(_0x538d2a),_0x9e8b51[_0x19cd97(0x20e)](_0x38dfc4);}};}function throwIfAborted(_0x2d6f68){const _0x2bbbab=a125_0x1925;if(_0x2d6f68?.[_0x2bbbab(0x1fe)])throw _0x2d6f68['reason']instanceof Error?_0x2d6f68[_0x2bbbab(0x202)]:new DOMException('Lovrabet\x20invocation\x20aborted.','AbortError');}
@@ -1 +1 @@
1
- const a126_0x2f3c73=a126_0x380d;(function(_0x502103,_0x59507b){const _0x37026b=a126_0x380d,_0x4806db=_0x502103();while(!![]){try{const _0x57b7d0=parseInt(_0x37026b(0xc5))/0x1*(-parseInt(_0x37026b(0xc3))/0x2)+parseInt(_0x37026b(0xc4))/0x3*(-parseInt(_0x37026b(0xc2))/0x4)+parseInt(_0x37026b(0xc0))/0x5*(-parseInt(_0x37026b(0xc6))/0x6)+parseInt(_0x37026b(0xbd))/0x7+parseInt(_0x37026b(0xc8))/0x8*(-parseInt(_0x37026b(0xc1))/0x9)+parseInt(_0x37026b(0xc7))/0xa*(-parseInt(_0x37026b(0xbe))/0xb)+parseInt(_0x37026b(0xbf))/0xc;if(_0x57b7d0===_0x59507b)break;else _0x4806db['push'](_0x4806db['shift']());}catch(_0x1956d3){_0x4806db['push'](_0x4806db['shift']());}}}(a126_0x56de,0x57d03));function a126_0x380d(_0x57b77d,_0x2a8718){_0x57b77d=_0x57b77d-0xbd;const _0x56dec8=a126_0x56de();let _0x380d33=_0x56dec8[_0x57b77d];return _0x380d33;}function a126_0x56de(){const _0x4ee3e0=['16197ozsYzw','134216wPdTkj','128982ptgvXq','42210YMpAJB','5256AXZXJN','resolve','4037236xhVOoW','341qEnvJw','13769460eEHKVr','110vAWELC','774rRHBSE','124RYgAyw','8ImYRwF'];a126_0x56de=function(){return _0x4ee3e0;};return a126_0x56de();}let tail=Promise[a126_0x2f3c73(0xc9)]();export async function runSerialized(_0x13e2bb){const _0x4a6969=tail;let _0x4a080a;tail=new Promise(_0x3d8a26=>{_0x4a080a=_0x3d8a26;}),await _0x4a6969['catch'](()=>undefined);try{return await _0x13e2bb();}finally{_0x4a080a();}}
1
+ const a126_0x490323=a126_0x2a29;function a126_0x33e8(){const _0x3a3a85=['57mtMEbh','80044SVoXJX','resolve','345926dyQrIE','87123LivSmX','2824056ZMCkqD','735oqSAgO','catch','12504VTFFyT','1254092nwKeTH','5760567zGkJGw'];a126_0x33e8=function(){return _0x3a3a85;};return a126_0x33e8();}(function(_0x8bf8fa,_0x4131ee){const _0x1610f4=a126_0x2a29,_0x2fafe3=_0x8bf8fa();while(!![]){try{const _0x223625=-parseInt(_0x1610f4(0x108))/0x1+parseInt(_0x1610f4(0x107))/0x2+-parseInt(_0x1610f4(0x10f))/0x3*(parseInt(_0x1610f4(0x110))/0x4)+parseInt(_0x1610f4(0x10a))/0x5*(-parseInt(_0x1610f4(0x10c))/0x6)+-parseInt(_0x1610f4(0x10d))/0x7+parseInt(_0x1610f4(0x109))/0x8+parseInt(_0x1610f4(0x10e))/0x9;if(_0x223625===_0x4131ee)break;else _0x2fafe3['push'](_0x2fafe3['shift']());}catch(_0x3f1b4d){_0x2fafe3['push'](_0x2fafe3['shift']());}}}(a126_0x33e8,0x340cd));function a126_0x2a29(_0x561871,_0x590d79){_0x561871=_0x561871-0x106;const _0x33e882=a126_0x33e8();let _0x2a2981=_0x33e882[_0x561871];return _0x2a2981;}let tail=Promise[a126_0x490323(0x106)]();export async function runSerialized(_0xb88e53){const _0x456a4d=a126_0x490323,_0x683204=tail;let _0x5ce972;tail=new Promise(_0x409a74=>{_0x5ce972=_0x409a74;}),await _0x683204[_0x456a4d(0x10b)](()=>undefined);try{return await _0xb88e53();}finally{_0x5ce972();}}
@@ -1 +1 @@
1
- function a127_0x119f(){const _0x311c46=['18sisCzp','assign','55QUStMK','154856WcEKWy','62622okkxxX','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','6xxBTec','3472623vepLmm','defaultCommand','input','flags','unknownCommand','validation','4BVVIKK','48708VnXORo','slice','flatMap','message','587573zZIimI','2946440cscRpN','29396YqcotA'];a127_0x119f=function(){return _0x311c46;};return a127_0x119f();}(function(_0x4f5d16,_0x18c8f1){const _0x3169e3=a127_0x539f,_0x3186f0=_0x4f5d16();while(!![]){try{const _0x3dd303=parseInt(_0x3169e3(0x96))/0x1*(parseInt(_0x3169e3(0x9d))/0x2)+parseInt(_0x3169e3(0x8c))/0x3+-parseInt(_0x3169e3(0x97))/0x4*(-parseInt(_0x3169e3(0x8a))/0x5)+parseInt(_0x3169e3(0x8f))/0x6*(-parseInt(_0x3169e3(0x9b))/0x7)+parseInt(_0x3169e3(0x8b))/0x8*(parseInt(_0x3169e3(0x88))/0x9)+parseInt(_0x3169e3(0x9c))/0xa+-parseInt(_0x3169e3(0x90))/0xb;if(_0x3dd303===_0x18c8f1)break;else _0x3186f0['push'](_0x3186f0['shift']());}catch(_0x49ecb5){_0x3186f0['push'](_0x3186f0['shift']());}}}(a127_0x119f,0x23f8b));import a127_0x4de759 from'meow';function a127_0x539f(_0x2deb00,_0x1075e9){_0x2deb00=_0x2deb00-0x88;const _0x119fae=a127_0x119f();let _0x539f92=_0x119fae[_0x2deb00];return _0x539f92;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x2e1796){const _0x3ccbff=a127_0x539f,_0x506e33=a127_0x4de759('',{'importMeta':import.meta,'argv':_0x2e1796,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x165ba0=[..._0x506e33[_0x3ccbff(0x92)]],_0x5020eb=_0x506e33['flags'];await correctFlags(_0x5020eb);const _0x62bee2=_0x165ba0[0x0];if(!_0x62bee2)throw CliErrors['validation'](_0x3ccbff(0x8e));const _0x55048d=resolveRemovedCommand(_0x62bee2,_0x165ba0[0x1]);if(_0x55048d)throw CliErrors[_0x3ccbff(0x95)](_0x55048d[_0x3ccbff(0x9a)],_0x55048d['hint']);if(!isKnownService(_0x62bee2)){const _0x4b1028=resolveDynamicServiceCommand(_0x165ba0,_0x5020eb);if(!_0x4b1028)throw CliErrors[_0x3ccbff(0x94)](_0x165ba0['join']('\x20'));return Object[_0x3ccbff(0x89)](_0x5020eb,_0x4b1028[_0x3ccbff(0x93)]),{'definition':_0x4b1028['definition'],'rawFlags':_0x5020eb,'args':_0x4b1028['args']};}const _0x263324=getServiceEntry(_0x62bee2),_0x31c23b=_0x165ba0[0x1]||_0x263324[_0x3ccbff(0x91)];if(!_0x31c23b)throw CliErrors['validation'](_0x3ccbff(0x8d)+_0x62bee2+'\x22.');const _0x43fdd8=findDefinition(_0x62bee2,_0x31c23b);if(!_0x43fdd8)throw CliErrors[_0x3ccbff(0x94)](_0x62bee2+'\x20'+_0x31c23b);return{'definition':_0x43fdd8,'rawFlags':_0x5020eb,'args':_0x165ba0[_0x3ccbff(0x98)](0x2)};}async function correctFlags(_0x42bf9a){const _0x3a51a2=a127_0x539f;try{const {correctFlags:_0x2b789c}=await import('../framework/preparse.js'),{getAllDefinitions:_0x120fff}=await import('../commands/registry.js'),_0x427ed6=_0x120fff()[_0x3a51a2(0x99)](_0x141bee=>_0x141bee[_0x3a51a2(0x93)]??[]),_0x469d3b=_0x2b789c(_0x42bf9a,_0x427ed6);Object[_0x3a51a2(0x89)](_0x42bf9a,_0x469d3b[_0x3a51a2(0x93)]);}catch{}}
1
+ (function(_0x36b1e7,_0x1a0e82){const _0x5c10fe=a127_0x3b0c,_0x166153=_0x36b1e7();while(!![]){try{const _0x1e8387=-parseInt(_0x5c10fe(0xe6))/0x1*(-parseInt(_0x5c10fe(0xf0))/0x2)+parseInt(_0x5c10fe(0xe2))/0x3*(parseInt(_0x5c10fe(0xe1))/0x4)+-parseInt(_0x5c10fe(0xf1))/0x5+-parseInt(_0x5c10fe(0xf4))/0x6+parseInt(_0x5c10fe(0xe8))/0x7+-parseInt(_0x5c10fe(0xe4))/0x8+-parseInt(_0x5c10fe(0xe5))/0x9*(-parseInt(_0x5c10fe(0xea))/0xa);if(_0x1e8387===_0x1a0e82)break;else _0x166153['push'](_0x166153['shift']());}catch(_0x374907){_0x166153['push'](_0x166153['shift']());}}}(a127_0x1c17,0x97820));import a127_0x2091d2 from'meow';function a127_0x3b0c(_0x11f95d,_0x34d2cc){_0x11f95d=_0x11f95d-0xe1;const _0x1c1722=a127_0x1c17();let _0x3b0cb5=_0x1c1722[_0x11f95d];return _0x3b0cb5;}function a127_0x1c17(){const _0x24a831=['../framework/preparse.js','flatMap','defaultCommand','2UGLGDk','4508395XSPFXJ','join','unknownCommand','2511468vcdKZQ','1672PVWKUc','864xKHmDG','flags','7814952apqUUt','1062NwScyA','1144751ylrAiD','validation','4701431lLOvfe','input','83130GEYDrW','../commands/registry.js','definition'];a127_0x1c17=function(){return _0x24a831;};return a127_0x1c17();}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x42cfb7){const _0x34fd4e=a127_0x3b0c,_0x45c292=a127_0x2091d2('',{'importMeta':import.meta,'argv':_0x42cfb7,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0xbd0c19=[..._0x45c292[_0x34fd4e(0xe9)]],_0x34c03f=_0x45c292[_0x34fd4e(0xe3)];await correctFlags(_0x34c03f);const _0x51b800=_0xbd0c19[0x0];if(!_0x51b800)throw CliErrors[_0x34fd4e(0xe7)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x2b3f5c=resolveRemovedCommand(_0x51b800,_0xbd0c19[0x1]);if(_0x2b3f5c)throw CliErrors['validation'](_0x2b3f5c['message'],_0x2b3f5c['hint']);if(!isKnownService(_0x51b800)){const _0x35885a=resolveDynamicServiceCommand(_0xbd0c19,_0x34c03f);if(!_0x35885a)throw CliErrors['unknownCommand'](_0xbd0c19[_0x34fd4e(0xf2)]('\x20'));return Object['assign'](_0x34c03f,_0x35885a[_0x34fd4e(0xe3)]),{'definition':_0x35885a[_0x34fd4e(0xec)],'rawFlags':_0x34c03f,'args':_0x35885a['args']};}const _0x29da86=getServiceEntry(_0x51b800),_0x5860e2=_0xbd0c19[0x1]||_0x29da86[_0x34fd4e(0xef)];if(!_0x5860e2)throw CliErrors[_0x34fd4e(0xe7)]('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x51b800+'\x22.');const _0x45b61b=findDefinition(_0x51b800,_0x5860e2);if(!_0x45b61b)throw CliErrors[_0x34fd4e(0xf3)](_0x51b800+'\x20'+_0x5860e2);return{'definition':_0x45b61b,'rawFlags':_0x34c03f,'args':_0xbd0c19['slice'](0x2)};}async function correctFlags(_0x3c870e){const _0x149905=a127_0x3b0c;try{const {correctFlags:_0x2d2c87}=await import(_0x149905(0xed)),{getAllDefinitions:_0x20eb7c}=await import(_0x149905(0xeb)),_0x2c0851=_0x20eb7c()[_0x149905(0xee)](_0x48da75=>_0x48da75[_0x149905(0xe3)]??[]),_0x338adc=_0x2d2c87(_0x3c870e,_0x2c0851);Object['assign'](_0x3c870e,_0x338adc[_0x149905(0xe3)]);}catch{}}
@@ -1 +1 @@
1
- function a129_0x1003(){const _0xea1dc5=['parse','home','35570ZBfstE','absent','split','Unsafe\x20manifest\x20path:\x20','17MVZCGQ','skipped','package.json','message','error','state','manifest','packageVersion','14EkfNSS','lovrabet\x20cli-skill\x20install','files','includes','reason','length','skillVersion','startsWith','Unsupported\x20Skill\x20entry:\x20','skills','unverifiable','10RJwxoz','stdio','content_mismatch','1480796nmpNEs','present','pipe','Symbolic\x20link\x20is\x20not\x20allowed:\x20','skills@latest\x20exited\x20','SOURCE_INVALID','lovrabet','5434QqrzEH','utf8','unknown','version_mismatch','packageRoot','8139560veMBhr','digest','path','installedPath','trim','name','status','missing','INSTALL_FAILED','root','version','1246698uqcuSP','update','SKILL.md','current','667977RitqsQ','isDirectory','sha256','3018246Xqkzuq','sort','84866TfFTJB','schemaVersion','lovrabet.manifest.json','isSymbolicLink'];a129_0x1003=function(){return _0xea1dc5;};return a129_0x1003();}const a129_0x5ae23e=a129_0x5e9a;(function(_0x4d66a1,_0x1f0064){const _0x106e69=a129_0x5e9a,_0x1dcacb=_0x4d66a1();while(!![]){try{const _0x4ecb2d=-parseInt(_0x106e69(0x1fd))/0x1*(parseInt(_0x106e69(0x1f3))/0x2)+parseInt(_0x106e69(0x1ee))/0x3+parseInt(_0x106e69(0x1d3))/0x4*(-parseInt(_0x106e69(0x1d0))/0x5)+-parseInt(_0x106e69(0x1f1))/0x6*(-parseInt(_0x106e69(0x205))/0x7)+-parseInt(_0x106e69(0x1df))/0x8+parseInt(_0x106e69(0x1ea))/0x9+parseInt(_0x106e69(0x1f9))/0xa*(parseInt(_0x106e69(0x1da))/0xb);if(_0x4ecb2d===_0x1f0064)break;else _0x1dcacb['push'](_0x1dcacb['shift']());}catch(_0x43bf1e){_0x1dcacb['push'](_0x1dcacb['shift']());}}}(a129_0x1003,0x9d861));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';function a129_0x5e9a(_0xb45885,_0x3a5a48){_0xb45885=_0xb45885-0x1ca;const _0x100331=a129_0x1003();let _0x5e9a6f=_0x100331[_0xb45885];return _0x5e9a6f;}import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a129_0x5ae23e(0x206),SKILL_NAME=a129_0x5ae23e(0x1d9);function frontmatterValue(_0x58b277,_0x2276b7){const _0x2bd1f5=a129_0x5ae23e;return _0x58b277['match'](new RegExp('^'+_0x2276b7+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x2bd1f5(0x1e3)]()??'';}function listFiles(_0x56db9b,_0x205c88=_0x56db9b){const _0xc2d764=a129_0x5ae23e;return readdirSync(_0x205c88,{'withFileTypes':!![]})['flatMap'](_0x27d1f4=>{const _0x31bd24=a129_0x5e9a,_0x26c5a9=join(_0x205c88,_0x27d1f4[_0x31bd24(0x1e4)]),_0x3e3b47=lstatSync(_0x26c5a9);if(_0x3e3b47[_0x31bd24(0x1f6)]())throw new Error(_0x31bd24(0x1d6)+_0x26c5a9);if(_0x3e3b47[_0x31bd24(0x1ef)]())return listFiles(_0x56db9b,_0x26c5a9);if(!_0x3e3b47['isFile']())throw new Error(_0x31bd24(0x1cd)+_0x26c5a9);return[relative(_0x56db9b,_0x26c5a9)[_0x31bd24(0x1fb)](sep)['join']('/')];})[_0xc2d764(0x1f2)]((_0x51c02a,_0x456c7f)=>_0x51c02a<_0x456c7f?-0x1:_0x51c02a>_0x456c7f?0x1:0x0);}function digestFiles(_0x2f8665,_0x2e6843){const _0x4de46d=a129_0x5ae23e,_0x3cdabe=createHash(_0x4de46d(0x1f0));for(const _0x190e62 of _0x2e6843){if(_0x190e62[_0x4de46d(0x1cc)]('/')||_0x190e62[_0x4de46d(0x1fb)]('/')['includes']('..')||_0x190e62[_0x4de46d(0x208)]('\x5c'))throw new Error(_0x4de46d(0x1fc)+_0x190e62);_0x3cdabe['update'](_0x190e62),_0x3cdabe[_0x4de46d(0x1eb)]('\x00'),_0x3cdabe['update'](readFileSync(join(_0x2f8665,..._0x190e62[_0x4de46d(0x1fb)]('/')))),_0x3cdabe[_0x4de46d(0x1eb)]('\x00');}return _0x3cdabe[_0x4de46d(0x1e0)]('hex');}function sameFiles(_0x2a09b2,_0x4515fb){const _0x4371c3=a129_0x5ae23e;return _0x2a09b2[_0x4371c3(0x1ca)]===_0x4515fb['length']&&_0x2a09b2['every']((_0x57cd08,_0x4cc409)=>_0x57cd08===_0x4515fb[_0x4cc409]);}function readSource(_0x369834){const _0x2ba92b=a129_0x5ae23e,_0x35841c=JSON[_0x2ba92b(0x1f7)](readFileSync(join(_0x369834,_0x2ba92b(0x1ff)),_0x2ba92b(0x1db))),_0x28c4f3=JSON[_0x2ba92b(0x1f7)](readFileSync(join(_0x369834,_0x2ba92b(0x1ce),_0x2ba92b(0x1f5)),'utf8')),_0x1cba74=join(_0x369834,_0x2ba92b(0x1ce),SKILL_NAME),_0x457f33=frontmatterValue(readFileSync(join(_0x1cba74,_0x2ba92b(0x1ec)),'utf8'),_0x2ba92b(0x1e9)),_0x3d9801=listFiles(_0x1cba74);if(_0x28c4f3[_0x2ba92b(0x1f4)]!==0x1||_0x28c4f3[_0x2ba92b(0x1e4)]!==SKILL_NAME||!_0x35841c[_0x2ba92b(0x1e9)]||_0x28c4f3['packageVersion']!==_0x35841c['version']||_0x28c4f3['skillVersion']!==_0x35841c['version']||_0x457f33!==_0x35841c[_0x2ba92b(0x1e9)]||!sameFiles(_0x3d9801,_0x28c4f3['files'])||digestFiles(_0x1cba74,_0x3d9801)!==_0x28c4f3[_0x2ba92b(0x1e0)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x35841c[_0x2ba92b(0x1e9)],'skillVersion':_0x457f33,'root':_0x1cba74,'manifest':_0x28c4f3};}function installedSkillPath(_0x120ad7){const _0xf0e22=a129_0x5ae23e,_0x4b73a3=resolveInstalledSkill(SKILL_NAME,{'home':_0x120ad7});if(_0x4b73a3[_0xf0e22(0x202)]===_0xf0e22(0x1d4))return{'state':'present','path':dirname(_0x4b73a3[_0xf0e22(0x1e1)])};if(_0x4b73a3['state']===_0xf0e22(0x1fa))return{'state':'missing'};return{'state':_0xf0e22(0x1cf),'reason':_0x4b73a3[_0xf0e22(0x209)]};}export function inspectInstalledBuiltinSkillVersion(_0x239561,_0x20f399={}){const _0x4b3db0=a129_0x5ae23e,_0x183799=installedSkillPath(_0x20f399['home']??homedir());if(_0x183799[_0x4b3db0(0x202)]==='missing')return{'state':_0x4b3db0(0x1e6),'expectedVersion':_0x239561,'repairCommand':REPAIR_COMMAND};if(_0x183799[_0x4b3db0(0x202)]==='unverifiable')return{'state':'unverifiable','expectedVersion':_0x239561,'reason':_0x183799[_0x4b3db0(0x209)],'repairCommand':REPAIR_COMMAND};try{const _0x2f1b64=frontmatterValue(readFileSync(join(_0x183799['path'],_0x4b3db0(0x1ec)),'utf8'),_0x4b3db0(0x1e9));return{'state':_0x2f1b64===_0x239561?'current':_0x4b3db0(0x1dd),'expectedVersion':_0x239561,'skillVersion':_0x2f1b64,'installedPath':_0x183799[_0x4b3db0(0x1e1)],'repairCommand':REPAIR_COMMAND};}catch(_0x55d1ba){return{'state':_0x4b3db0(0x1cf),'expectedVersion':_0x239561,'installedPath':_0x183799[_0x4b3db0(0x1e1)],'reason':_0x55d1ba instanceof Error?_0x55d1ba[_0x4b3db0(0x200)]:String(_0x55d1ba),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x190fe4={}){const _0x13379c=a129_0x5ae23e,_0x2189c3=_0x190fe4['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0xacfb17;try{_0xacfb17=readSource(_0x2189c3);}catch(_0x2cc988){return{'state':_0x13379c(0x1cf),'packageVersion':_0x13379c(0x1dc),'reason':_0x2cc988 instanceof Error?_0x2cc988['message']:String(_0x2cc988),'repairCommand':REPAIR_COMMAND};}const _0x2bb68f=installedSkillPath(_0x190fe4['home']??homedir());if(_0x2bb68f[_0x13379c(0x202)]===_0x13379c(0x1e6))return{'state':_0x13379c(0x1e6),'packageVersion':_0xacfb17[_0x13379c(0x204)],'repairCommand':REPAIR_COMMAND};if(_0x2bb68f['state']===_0x13379c(0x1cf))return{'state':_0x13379c(0x1cf),'packageVersion':_0xacfb17[_0x13379c(0x204)],'reason':_0x2bb68f['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x390e0e=frontmatterValue(readFileSync(join(_0x2bb68f['path'],_0x13379c(0x1ec)),_0x13379c(0x1db)),_0x13379c(0x1e9));if(_0x390e0e!==_0xacfb17[_0x13379c(0x1cb)])return{'state':'version_mismatch','packageVersion':_0xacfb17[_0x13379c(0x204)],'skillVersion':_0x390e0e,'installedPath':_0x2bb68f[_0x13379c(0x1e1)],'repairCommand':REPAIR_COMMAND};const _0x4c0f24=listFiles(_0x2bb68f[_0x13379c(0x1e1)]),_0x4ccc68=digestFiles(_0x2bb68f[_0x13379c(0x1e1)],_0x4c0f24);return{'state':sameFiles(_0x4c0f24,_0xacfb17[_0x13379c(0x203)][_0x13379c(0x207)])&&_0x4ccc68===_0xacfb17[_0x13379c(0x203)][_0x13379c(0x1e0)]?'current':_0x13379c(0x1d2),'packageVersion':_0xacfb17[_0x13379c(0x204)],'skillVersion':_0x390e0e,'installedPath':_0x2bb68f['path'],'digest':_0x4ccc68,'repairCommand':REPAIR_COMMAND};}catch(_0x131bf1){return{'state':'unverifiable','packageVersion':_0xacfb17[_0x13379c(0x204)],'installedPath':_0x2bb68f[_0x13379c(0x1e1)],'reason':_0x131bf1 instanceof Error?_0x131bf1['message']:String(_0x131bf1),'repairCommand':REPAIR_COMMAND};}}function failure(_0xa168b2,_0x32ed11,_0x38ed85,_0x2b81ca){const _0x4706b2=a129_0x5ae23e;return{'ok':![],'code':_0xa168b2,'packageVersion':_0x32ed11[_0x4706b2(0x204)],'skillVersion':_0x32ed11[_0x4706b2(0x1cb)],'installedPath':_0x2b81ca,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x38ed85 instanceof Error?_0x38ed85[_0x4706b2(0x200)]:String(_0x38ed85)};}export function installBuiltinSkill(_0x5619de={}){const _0x28de26=a129_0x5ae23e,_0x566145=_0x5619de[_0x28de26(0x1de)]??DEFAULT_PACKAGE_ROOT,_0x8bf90d=_0x5619de[_0x28de26(0x1f8)]??homedir();let _0x100dc9;try{_0x100dc9=readSource(_0x566145);}catch(_0xb3dd24){return failure(_0x28de26(0x1d8),{'packageVersion':_0x28de26(0x1dc),'skillVersion':_0x28de26(0x1dc)},_0xb3dd24);}const _0xe0f33=inspectBuiltinSkill({'packageRoot':_0x566145,'home':_0x8bf90d}),_0x112b45=runNpxSkillsAddGlobal(_0x566145,_0x100dc9[_0x28de26(0x1e8)],{'stdio':_0x5619de[_0x28de26(0x1d1)]??_0x28de26(0x1d5),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x8bf90d}});if(_0x112b45[_0x28de26(0x1fe)])return{'ok':!![],'packageVersion':_0x100dc9[_0x28de26(0x204)],'skillVersion':_0x100dc9['skillVersion'],'installedPath':_0xe0f33[_0x28de26(0x1e2)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x112b45['ok'])return failure(_0x28de26(0x1e7),_0x100dc9,_0x112b45[_0x28de26(0x201)]??_0x28de26(0x1d7)+_0x112b45[_0x28de26(0x1e5)]);const _0x4d2af4=inspectBuiltinSkill({'packageRoot':_0x566145,'home':_0x8bf90d});if(_0x4d2af4[_0x28de26(0x202)]!=='current')return failure('VERIFY_FAILED',_0x100dc9,_0x4d2af4[_0x28de26(0x209)]??'Installed\x20Skill\x20state\x20is\x20'+_0x4d2af4[_0x28de26(0x202)],_0x4d2af4[_0x28de26(0x1e2)]);return{'ok':!![],'packageVersion':_0x100dc9['packageVersion'],'skillVersion':_0x100dc9[_0x28de26(0x1cb)],'installedPath':_0x4d2af4['installedPath'],'changed':_0xe0f33[_0x28de26(0x202)]!==_0x28de26(0x1ed),'repairCommand':REPAIR_COMMAND};}
1
+ const a129_0x37f425=a129_0x17ae;(function(_0x25daf3,_0x3eec0c){const _0xcfe68f=a129_0x17ae,_0x21775f=_0x25daf3();while(!![]){try{const _0xfa0786=parseInt(_0xcfe68f(0xfc))/0x1+-parseInt(_0xcfe68f(0x105))/0x2+parseInt(_0xcfe68f(0xd6))/0x3+parseInt(_0xcfe68f(0xdb))/0x4+parseInt(_0xcfe68f(0xd3))/0x5+parseInt(_0xcfe68f(0xeb))/0x6*(parseInt(_0xcfe68f(0xf6))/0x7)+-parseInt(_0xcfe68f(0xed))/0x8*(parseInt(_0xcfe68f(0xf9))/0x9);if(_0xfa0786===_0x3eec0c)break;else _0x21775f['push'](_0x21775f['shift']());}catch(_0x3bfe43){_0x21775f['push'](_0x21775f['shift']());}}}(a129_0x162f,0xb4b79));import{createHash}from'node:crypto';function a129_0x162f(){const _0x271aed=['SKILL.md','error','flatMap','content_mismatch','Unsafe\x20manifest\x20path:\x20','state','join','split','digest','isFile','8045922CfRgWX','includes','256whsEru','match',':\x5cs*(.+)$','update','unknown','unverifiable','Symbolic\x20link\x20is\x20not\x20allowed:\x20','packageRoot','parse','7XAuSIR','absent','utf8','931734hzcUBt','sha256','pipe','338887TXuhyR','Installed\x20Skill\x20state\x20is\x20','files','reason','every','startsWith','home','missing','INSTALL_FAILED','262106jXGHJW','schemaVersion','manifest','packageVersion','trim','root','lovrabet.manifest.json','skills','sort','lovrabet\x20cli-skill\x20install','installedPath','lovrabet','4061520cHaiLu','skillVersion','current','2973732QcsXCh','message','present','version','path','2802720TAuRlj','skills@latest\x20exited\x20','length','version_mismatch','isSymbolicLink','name'];a129_0x162f=function(){return _0x271aed;};return a129_0x162f();}import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a129_0x37f425(0xd0),SKILL_NAME=a129_0x37f425(0xd2);function frontmatterValue(_0x10c562,_0xd00fc1){const _0x519e60=a129_0x37f425;return _0x10c562[_0x519e60(0xee)](new RegExp('^'+_0xd00fc1+_0x519e60(0xef),'m'))?.[0x1]?.[_0x519e60(0x109)]()??'';}function listFiles(_0x404e8f,_0x15a1f9=_0x404e8f){const _0x2a06a1=a129_0x37f425;return readdirSync(_0x15a1f9,{'withFileTypes':!![]})[_0x2a06a1(0xe3)](_0x46b191=>{const _0x8c2973=_0x2a06a1,_0x25d5e3=join(_0x15a1f9,_0x46b191['name']),_0x13c098=lstatSync(_0x25d5e3);if(_0x13c098[_0x8c2973(0xdf)]())throw new Error(_0x8c2973(0xf3)+_0x25d5e3);if(_0x13c098['isDirectory']())return listFiles(_0x404e8f,_0x25d5e3);if(!_0x13c098[_0x8c2973(0xea)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x25d5e3);return[relative(_0x404e8f,_0x25d5e3)['split'](sep)[_0x8c2973(0xe7)]('/')];})[_0x2a06a1(0xcf)]((_0x323929,_0x11caab)=>_0x323929<_0x11caab?-0x1:_0x323929>_0x11caab?0x1:0x0);}function digestFiles(_0x5aa5cd,_0x2b91f3){const _0x2683cb=a129_0x37f425,_0x1680f1=createHash(_0x2683cb(0xfa));for(const _0x1f7a2c of _0x2b91f3){if(_0x1f7a2c[_0x2683cb(0x101)]('/')||_0x1f7a2c[_0x2683cb(0xe8)]('/')[_0x2683cb(0xec)]('..')||_0x1f7a2c[_0x2683cb(0xec)]('\x5c'))throw new Error(_0x2683cb(0xe5)+_0x1f7a2c);_0x1680f1[_0x2683cb(0xf0)](_0x1f7a2c),_0x1680f1[_0x2683cb(0xf0)]('\x00'),_0x1680f1[_0x2683cb(0xf0)](readFileSync(join(_0x5aa5cd,..._0x1f7a2c[_0x2683cb(0xe8)]('/')))),_0x1680f1[_0x2683cb(0xf0)]('\x00');}return _0x1680f1[_0x2683cb(0xe9)]('hex');}function sameFiles(_0x15e2f7,_0x2fb966){const _0x2f7d8d=a129_0x37f425;return _0x15e2f7[_0x2f7d8d(0xdd)]===_0x2fb966[_0x2f7d8d(0xdd)]&&_0x15e2f7[_0x2f7d8d(0x100)]((_0x386c98,_0x320ab2)=>_0x386c98===_0x2fb966[_0x320ab2]);}function readSource(_0x388819){const _0x22a041=a129_0x37f425,_0x50ab02=JSON[_0x22a041(0xf5)](readFileSync(join(_0x388819,'package.json'),'utf8')),_0x492238=JSON['parse'](readFileSync(join(_0x388819,_0x22a041(0x10c),_0x22a041(0x10b)),_0x22a041(0xf8))),_0x28c62d=join(_0x388819,_0x22a041(0x10c),SKILL_NAME),_0x251bf9=frontmatterValue(readFileSync(join(_0x28c62d,'SKILL.md'),'utf8'),_0x22a041(0xd9)),_0x5d21c7=listFiles(_0x28c62d);if(_0x492238[_0x22a041(0x106)]!==0x1||_0x492238[_0x22a041(0xe0)]!==SKILL_NAME||!_0x50ab02['version']||_0x492238[_0x22a041(0x108)]!==_0x50ab02[_0x22a041(0xd9)]||_0x492238[_0x22a041(0xd4)]!==_0x50ab02['version']||_0x251bf9!==_0x50ab02[_0x22a041(0xd9)]||!sameFiles(_0x5d21c7,_0x492238[_0x22a041(0xfe)])||digestFiles(_0x28c62d,_0x5d21c7)!==_0x492238[_0x22a041(0xe9)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x50ab02[_0x22a041(0xd9)],'skillVersion':_0x251bf9,'root':_0x28c62d,'manifest':_0x492238};}function installedSkillPath(_0x563f69){const _0x48ef4c=a129_0x37f425,_0x3f4e7a=resolveInstalledSkill(SKILL_NAME,{'home':_0x563f69});if(_0x3f4e7a[_0x48ef4c(0xe6)]==='present')return{'state':_0x48ef4c(0xd8),'path':dirname(_0x3f4e7a[_0x48ef4c(0xda)])};if(_0x3f4e7a['state']===_0x48ef4c(0xf7))return{'state':_0x48ef4c(0x103)};return{'state':_0x48ef4c(0xf2),'reason':_0x3f4e7a[_0x48ef4c(0xff)]};}export function inspectInstalledBuiltinSkillVersion(_0x33bbec,_0x43fbf3={}){const _0x4db1ad=a129_0x37f425,_0x4d5b7c=installedSkillPath(_0x43fbf3['home']??homedir());if(_0x4d5b7c[_0x4db1ad(0xe6)]==='missing')return{'state':'missing','expectedVersion':_0x33bbec,'repairCommand':REPAIR_COMMAND};if(_0x4d5b7c[_0x4db1ad(0xe6)]==='unverifiable')return{'state':'unverifiable','expectedVersion':_0x33bbec,'reason':_0x4d5b7c[_0x4db1ad(0xff)],'repairCommand':REPAIR_COMMAND};try{const _0x1bd686=frontmatterValue(readFileSync(join(_0x4d5b7c[_0x4db1ad(0xda)],_0x4db1ad(0xe1)),'utf8'),_0x4db1ad(0xd9));return{'state':_0x1bd686===_0x33bbec?_0x4db1ad(0xd5):'version_mismatch','expectedVersion':_0x33bbec,'skillVersion':_0x1bd686,'installedPath':_0x4d5b7c[_0x4db1ad(0xda)],'repairCommand':REPAIR_COMMAND};}catch(_0x355056){return{'state':'unverifiable','expectedVersion':_0x33bbec,'installedPath':_0x4d5b7c[_0x4db1ad(0xda)],'reason':_0x355056 instanceof Error?_0x355056[_0x4db1ad(0xd7)]:String(_0x355056),'repairCommand':REPAIR_COMMAND};}}function a129_0x17ae(_0x1ef788,_0x3b83c5){_0x1ef788=_0x1ef788-0xcf;const _0x162f92=a129_0x162f();let _0x17ae71=_0x162f92[_0x1ef788];return _0x17ae71;}export function inspectBuiltinSkill(_0x32b10a={}){const _0x8f856c=a129_0x37f425,_0x1313ae=_0x32b10a[_0x8f856c(0xf4)]??DEFAULT_PACKAGE_ROOT;let _0xbc2dcb;try{_0xbc2dcb=readSource(_0x1313ae);}catch(_0x1fd85d){return{'state':_0x8f856c(0xf2),'packageVersion':_0x8f856c(0xf1),'reason':_0x1fd85d instanceof Error?_0x1fd85d[_0x8f856c(0xd7)]:String(_0x1fd85d),'repairCommand':REPAIR_COMMAND};}const _0x5d0dc0=installedSkillPath(_0x32b10a[_0x8f856c(0x102)]??homedir());if(_0x5d0dc0[_0x8f856c(0xe6)]===_0x8f856c(0x103))return{'state':_0x8f856c(0x103),'packageVersion':_0xbc2dcb[_0x8f856c(0x108)],'repairCommand':REPAIR_COMMAND};if(_0x5d0dc0[_0x8f856c(0xe6)]==='unverifiable')return{'state':_0x8f856c(0xf2),'packageVersion':_0xbc2dcb[_0x8f856c(0x108)],'reason':_0x5d0dc0[_0x8f856c(0xff)],'repairCommand':REPAIR_COMMAND};try{const _0xff80bf=frontmatterValue(readFileSync(join(_0x5d0dc0[_0x8f856c(0xda)],_0x8f856c(0xe1)),_0x8f856c(0xf8)),_0x8f856c(0xd9));if(_0xff80bf!==_0xbc2dcb[_0x8f856c(0xd4)])return{'state':_0x8f856c(0xde),'packageVersion':_0xbc2dcb[_0x8f856c(0x108)],'skillVersion':_0xff80bf,'installedPath':_0x5d0dc0[_0x8f856c(0xda)],'repairCommand':REPAIR_COMMAND};const _0x4dd0fb=listFiles(_0x5d0dc0[_0x8f856c(0xda)]),_0x3bdb77=digestFiles(_0x5d0dc0['path'],_0x4dd0fb);return{'state':sameFiles(_0x4dd0fb,_0xbc2dcb[_0x8f856c(0x107)][_0x8f856c(0xfe)])&&_0x3bdb77===_0xbc2dcb[_0x8f856c(0x107)]['digest']?_0x8f856c(0xd5):_0x8f856c(0xe4),'packageVersion':_0xbc2dcb[_0x8f856c(0x108)],'skillVersion':_0xff80bf,'installedPath':_0x5d0dc0[_0x8f856c(0xda)],'digest':_0x3bdb77,'repairCommand':REPAIR_COMMAND};}catch(_0xc5bcd5){return{'state':_0x8f856c(0xf2),'packageVersion':_0xbc2dcb['packageVersion'],'installedPath':_0x5d0dc0['path'],'reason':_0xc5bcd5 instanceof Error?_0xc5bcd5['message']:String(_0xc5bcd5),'repairCommand':REPAIR_COMMAND};}}function failure(_0x191549,_0x166b04,_0x266c59,_0x3fb194){const _0x35d3db=a129_0x37f425;return{'ok':![],'code':_0x191549,'packageVersion':_0x166b04[_0x35d3db(0x108)],'skillVersion':_0x166b04['skillVersion'],'installedPath':_0x3fb194,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x266c59 instanceof Error?_0x266c59[_0x35d3db(0xd7)]:String(_0x266c59)};}export function installBuiltinSkill(_0x286c20={}){const _0x3fe854=a129_0x37f425,_0x3377ab=_0x286c20[_0x3fe854(0xf4)]??DEFAULT_PACKAGE_ROOT,_0x2e0c57=_0x286c20[_0x3fe854(0x102)]??homedir();let _0x54ddbe;try{_0x54ddbe=readSource(_0x3377ab);}catch(_0x3cb7e8){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':_0x3fe854(0xf1)},_0x3cb7e8);}const _0x269d35=inspectBuiltinSkill({'packageRoot':_0x3377ab,'home':_0x2e0c57}),_0x457c6a=runNpxSkillsAddGlobal(_0x3377ab,_0x54ddbe[_0x3fe854(0x10a)],{'stdio':_0x286c20['stdio']??_0x3fe854(0xfb),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x2e0c57}});if(_0x457c6a['skipped'])return{'ok':!![],'packageVersion':_0x54ddbe[_0x3fe854(0x108)],'skillVersion':_0x54ddbe[_0x3fe854(0xd4)],'installedPath':_0x269d35['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x457c6a['ok'])return failure(_0x3fe854(0x104),_0x54ddbe,_0x457c6a[_0x3fe854(0xe2)]??_0x3fe854(0xdc)+_0x457c6a['status']);const _0x530e5e=inspectBuiltinSkill({'packageRoot':_0x3377ab,'home':_0x2e0c57});if(_0x530e5e['state']!==_0x3fe854(0xd5))return failure('VERIFY_FAILED',_0x54ddbe,_0x530e5e[_0x3fe854(0xff)]??_0x3fe854(0xfd)+_0x530e5e['state'],_0x530e5e[_0x3fe854(0xd1)]);return{'ok':!![],'packageVersion':_0x54ddbe[_0x3fe854(0x108)],'skillVersion':_0x54ddbe['skillVersion'],'installedPath':_0x530e5e['installedPath'],'changed':_0x269d35[_0x3fe854(0xe6)]!==_0x3fe854(0xd5),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- const a130_0x474503=a130_0x4004;(function(_0x7b109d,_0x55d948){const _0x2570e6=a130_0x4004,_0x28f86f=_0x7b109d();while(!![]){try{const _0x42fea6=-parseInt(_0x2570e6(0x1a4))/0x1*(-parseInt(_0x2570e6(0x1a3))/0x2)+parseInt(_0x2570e6(0x19a))/0x3*(parseInt(_0x2570e6(0x18b))/0x4)+parseInt(_0x2570e6(0x191))/0x5*(-parseInt(_0x2570e6(0x192))/0x6)+parseInt(_0x2570e6(0x198))/0x7+parseInt(_0x2570e6(0x1a5))/0x8*(-parseInt(_0x2570e6(0x187))/0x9)+parseInt(_0x2570e6(0x182))/0xa+parseInt(_0x2570e6(0x190))/0xb*(parseInt(_0x2570e6(0x179))/0xc);if(_0x42fea6===_0x55d948)break;else _0x28f86f['push'](_0x28f86f['shift']());}catch(_0x9b4424){_0x28f86f['push'](_0x28f86f['shift']());}}}(a130_0x77f3,0x92909));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a130_0x474362}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a130_0x474362;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a130_0x474503(0x18e)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a130_0x474503(0x199)];export function resolveGlobalSkillName(_0x4ae836){const _0x5d64bd=a130_0x474503;switch(_0x4ae836[_0x5d64bd(0x1a6)]()){case LOVRABET_SKILL_SOURCE:case LOVRABET_SKILL_GIT_SOURCE:return LOVRABET_GLOBAL_SKILL_NAME;default:return undefined;}}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x3bd94b,_0x5dd4d6,_0x593804){return{'ok':![],'status':_0x5dd4d6,'code':_0x3bd94b,'error':'['+_0x3bd94b+']\x20'+_0x593804};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}function a130_0x4004(_0x4d1bae,_0x598f2c){_0x4d1bae=_0x4d1bae-0x179;const _0x77f354=a130_0x77f3();let _0x400486=_0x77f354[_0x4d1bae];return _0x400486;}export function runNpxSkillsAddGlobal(_0x52fabb,_0x23a41f=LOVRABET_SKILL_SOURCE,_0x39f6a9){const _0x28d637=a130_0x474503;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x514839=resolveNpmBin(_0x28d637(0x19b)),_0x421989=['-y',_0x28d637(0x196),_0x28d637(0x186),_0x23a41f,'-g','-y'],_0x4772b7=[_0x514839,..._0x421989]['join']('\x20');console[_0x28d637(0x197)]('*\x20'+_0x4772b7);const _0x1459f1={...process.env};delete _0x1459f1[_0x28d637(0x17d)],delete _0x1459f1[_0x28d637(0x185)];const _0x5cc981=spawnSync(_0x514839,_0x421989,{'cwd':_0x52fabb,'stdio':'pipe','env':_0x1459f1,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x2b9413=[_0x5cc981[_0x28d637(0x18a)]?_0x5cc981[_0x28d637(0x18a)][_0x28d637(0x17b)]():'',_0x5cc981['stderr']?_0x5cc981['stderr'][_0x28d637(0x17b)]():'']['filter'](Boolean)['join']('\x0a')['trim']();_0x39f6a9?.[_0x28d637(0x188)]!==_0x28d637(0x19f)&&_0x2b9413&&console[_0x28d637(0x197)](_0x2b9413);if(_0x5cc981[_0x28d637(0x1a7)]){const _0x452cec=_0x5cc981[_0x28d637(0x1a7)],_0x44b3de=_0x452cec[_0x28d637(0x193)]==='ENOENT'?_0x28d637(0x1a1):_0x452cec[_0x28d637(0x193)]===_0x28d637(0x194)||_0x452cec[_0x28d637(0x193)]===_0x28d637(0x1a0)?_0x28d637(0x1a2):'SPAWN_FAILED';return failure(_0x44b3de,_0x5cc981['status'],_0x452cec[_0x28d637(0x183)]);}if(_0x5cc981[_0x28d637(0x18f)])return failure(_0x28d637(0x19c),_0x5cc981['status'],_0x28d637(0x195)+_0x5cc981[_0x28d637(0x18f)]);if(_0x5cc981[_0x28d637(0x189)]!==0x0)return failure(_0x28d637(0x17a),_0x5cc981[_0x28d637(0x189)],_0x2b9413||'exit\x20'+(_0x5cc981['status']??_0x28d637(0x181)));const _0x1c1dc3=_0x2b9413[_0x28d637(0x180)](/Failed to install\s+(\d+)/i);if(_0x1c1dc3&&Number(_0x1c1dc3[0x1])>0x0)return failure('INSTALL_PARTIAL',0x0,'Installer\x20reported\x20'+_0x1c1dc3[0x1]+_0x28d637(0x17e)+(_0x2b9413?':\x0a'+_0x2b9413:''));const _0x28b5b4=_0x39f6a9?.[_0x28d637(0x18c)]??resolveGlobalSkillName(_0x23a41f);if(_0x28b5b4){const _0x6c97b=resolveInstalledSkill(_0x28b5b4,_0x39f6a9?.['presence']);if(_0x6c97b[_0x28d637(0x17c)]===_0x28d637(0x184))return failure(_0x28d637(0x18d),0x0,_0x28d637(0x19d)+_0x28b5b4+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x6c97b['checked'][_0x28d637(0x19e)](',\x20')+')');_0x6c97b[_0x28d637(0x17c)]===_0x28d637(0x17f)&&console['warn']('!\x20Could\x20not\x20verify\x20\x22'+_0x28b5b4+'\x22\x20install\x20state:\x20'+_0x6c97b['reason']);}return{'ok':!![],'status':0x0};}function a130_0x77f3(){const _0x372986=['1890SLfkRT','3066Uwbjng','code','EPERM','npx\x20terminated\x20by\x20signal\x20','skills@latest','log','1657327mClrIe','globalSkillName','7479AwMXrO','npx','CHILD_TERMINATED','Skill\x20\x22','join','pipe','EACCES','NPX_NOT_FOUND','PERMISSION_DENIED','42260kUaSKN','7YcpQyi','3755624GIkTJh','trim','error','12knPEar','CHILD_EXIT_NONZERO','toString','state','npm_config_global','\x20failed\x20target(s)','unverifiable','match','unknown','1536350TlIJxH','message','absent','NPM_CONFIG_GLOBAL','add','9omtktn','stdio','status','stdout','1084jJJkjC','expectedSkillName','SKILL_NOT_INSTALLED','internalSkillSource','signal','539341txBzJO'];a130_0x77f3=function(){return _0x372986;};return a130_0x77f3();}
1
+ const a130_0x5db88f=a130_0x3e4b;(function(_0xddc2b2,_0x55db9f){const _0x2417ca=a130_0x3e4b,_0x5cf29c=_0xddc2b2();while(!![]){try{const _0xcf03e5=parseInt(_0x2417ca(0x9b))/0x1+parseInt(_0x2417ca(0x98))/0x2*(-parseInt(_0x2417ca(0x7c))/0x3)+parseInt(_0x2417ca(0x7a))/0x4+parseInt(_0x2417ca(0x99))/0x5+-parseInt(_0x2417ca(0x8c))/0x6*(-parseInt(_0x2417ca(0x81))/0x7)+parseInt(_0x2417ca(0x88))/0x8*(-parseInt(_0x2417ca(0x7d))/0x9)+parseInt(_0x2417ca(0xa2))/0xa*(parseInt(_0x2417ca(0xa6))/0xb);if(_0xcf03e5===_0x55db9f)break;else _0x5cf29c['push'](_0x5cf29c['shift']());}catch(_0x3c0d8b){_0x5cf29c['push'](_0x5cf29c['shift']());}}}(a130_0x5bda,0x88a55));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a130_0x3678e6}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a130_0x3678e6;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG['internalSkillSource'];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a130_0x5db88f(0x90)];export function resolveGlobalSkillName(_0x7aca97){switch(_0x7aca97['trim']()){case LOVRABET_SKILL_SOURCE:case LOVRABET_SKILL_GIT_SOURCE:return LOVRABET_GLOBAL_SKILL_NAME;default:return undefined;}}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a130_0x5db88f(0x94)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0xba0c60,_0x3e0b30,_0x506761){return{'ok':![],'status':_0x3e0b30,'code':_0xba0c60,'error':'['+_0xba0c60+']\x20'+_0x506761};}function a130_0x3e4b(_0x13c527,_0x2211e7){_0x13c527=_0x13c527-0x74;const _0x5bdae1=a130_0x5bda();let _0x3e4bb5=_0x5bdae1[_0x13c527];return _0x3e4bb5;}function a130_0x5bda(){const _0x51c5fc=['signal','reason','4839340HKsNOb','CHILD_TERMINATED','Skill\x20\x22','log','stdio','warn','NPX_NOT_FOUND','2051820uGGTDT','checked','6yxUnnI','9JkIoEi','join','SKILL_NOT_INSTALLED','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','6384PNSviY','message','ENOENT','unknown','NPM_CONFIG_GLOBAL','npx\x20terminated\x20by\x20signal\x20','absent','5889960ucLZQC','code','npx','expectedSkillName','3228qMOjLn','status','add','match','globalSkillName','state','\x22\x20install\x20state:\x20','\x20failed\x20target(s)','skipNpxSkillsEnvSuffix','pipe','toString','trim','645214JehOdO','1941900CKZTby','error','109229vKDtdx','PERMISSION_DENIED','skills@latest','!\x20Could\x20not\x20verify\x20\x22','presence','stdout','stderr','10CJyZCf','filter'];a130_0x5bda=function(){return _0x51c5fc;};return a130_0x5bda();}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x5a1c75,_0x522d4c=LOVRABET_SKILL_SOURCE,_0x5abe3c){const _0x16ee75=a130_0x5db88f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5557cb=resolveNpmBin(_0x16ee75(0x8a)),_0x1b3372=['-y',_0x16ee75(0x9d),_0x16ee75(0x8e),_0x522d4c,'-g','-y'],_0x2fcc1a=[_0x5557cb,..._0x1b3372][_0x16ee75(0x7e)]('\x20');console[_0x16ee75(0x76)]('*\x20'+_0x2fcc1a);const _0x36afb3={...process.env};delete _0x36afb3['npm_config_global'],delete _0x36afb3[_0x16ee75(0x85)];const _0x28d5a9=spawnSync(_0x5557cb,_0x1b3372,{'cwd':_0x5a1c75,'stdio':_0x16ee75(0x95),'env':_0x36afb3,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x45854a=[_0x28d5a9[_0x16ee75(0xa0)]?_0x28d5a9[_0x16ee75(0xa0)]['toString']():'',_0x28d5a9['stderr']?_0x28d5a9[_0x16ee75(0xa1)][_0x16ee75(0x96)]():''][_0x16ee75(0xa3)](Boolean)[_0x16ee75(0x7e)]('\x0a')[_0x16ee75(0x97)]();_0x5abe3c?.[_0x16ee75(0x77)]!==_0x16ee75(0x95)&&_0x45854a&&console['log'](_0x45854a);if(_0x28d5a9[_0x16ee75(0x9a)]){const _0x88435f=_0x28d5a9[_0x16ee75(0x9a)],_0x1da416=_0x88435f[_0x16ee75(0x89)]===_0x16ee75(0x83)?_0x16ee75(0x79):_0x88435f['code']==='EPERM'||_0x88435f[_0x16ee75(0x89)]==='EACCES'?_0x16ee75(0x9c):'SPAWN_FAILED';return failure(_0x1da416,_0x28d5a9[_0x16ee75(0x8d)],_0x88435f[_0x16ee75(0x82)]);}if(_0x28d5a9[_0x16ee75(0xa4)])return failure(_0x16ee75(0x74),_0x28d5a9['status'],_0x16ee75(0x86)+_0x28d5a9[_0x16ee75(0xa4)]);if(_0x28d5a9[_0x16ee75(0x8d)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x28d5a9['status'],_0x45854a||'exit\x20'+(_0x28d5a9[_0x16ee75(0x8d)]??_0x16ee75(0x84)));const _0x42243e=_0x45854a[_0x16ee75(0x8f)](/Failed to install\s+(\d+)/i);if(_0x42243e&&Number(_0x42243e[0x1])>0x0)return failure('INSTALL_PARTIAL',0x0,'Installer\x20reported\x20'+_0x42243e[0x1]+_0x16ee75(0x93)+(_0x45854a?':\x0a'+_0x45854a:''));const _0x2a6392=_0x5abe3c?.[_0x16ee75(0x8b)]??resolveGlobalSkillName(_0x522d4c);if(_0x2a6392){const _0x4bc49c=resolveInstalledSkill(_0x2a6392,_0x5abe3c?.[_0x16ee75(0x9f)]);if(_0x4bc49c[_0x16ee75(0x91)]===_0x16ee75(0x87))return failure(_0x16ee75(0x7f),0x0,_0x16ee75(0x75)+_0x2a6392+_0x16ee75(0x80)+_0x4bc49c[_0x16ee75(0x7b)]['join'](',\x20')+')');_0x4bc49c[_0x16ee75(0x91)]==='unverifiable'&&console[_0x16ee75(0x78)](_0x16ee75(0x9e)+_0x2a6392+_0x16ee75(0x92)+_0x4bc49c[_0x16ee75(0xa5)]);}return{'ok':!![],'status':0x0};}
@@ -1 +1 @@
1
- const a131_0x11d54d=a131_0x1d31;(function(_0x5db638,_0x2f2c7b){const _0x216661=a131_0x1d31,_0x245686=_0x5db638();while(!![]){try{const _0x442e13=parseInt(_0x216661(0x1e3))/0x1*(parseInt(_0x216661(0x1eb))/0x2)+parseInt(_0x216661(0x1e0))/0x3*(parseInt(_0x216661(0x1e5))/0x4)+-parseInt(_0x216661(0x1df))/0x5*(-parseInt(_0x216661(0x1d7))/0x6)+-parseInt(_0x216661(0x1e2))/0x7+parseInt(_0x216661(0x1dd))/0x8*(parseInt(_0x216661(0x1e4))/0x9)+parseInt(_0x216661(0x1dc))/0xa+-parseInt(_0x216661(0x1e6))/0xb;if(_0x442e13===_0x2f2c7b)break;else _0x245686['push'](_0x245686['shift']());}catch(_0x2f9917){_0x245686['push'](_0x245686['shift']());}}}(a131_0x3195,0x656cd));export const METADATA_FILE=a131_0x11d54d(0x1db);export const SKILL_FILE=a131_0x11d54d(0x1ec);function a131_0x3195(){const _0x322f51=['.turbo','dist','.git','lovrabet.skill.json','2945670WdofXq','117848ibbDLs','.DS_Store','9495qilACr','234bHiBcx','.cache','893662WSdDkG','1473abYwEi','45FkNVXs','19464XtaKcN','7488866yqxFdP','.svn','build','coverage','node_modules','466JeLoGT','SKILL.md','420VxstkS'];a131_0x3195=function(){return _0x322f51;};return a131_0x3195();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a131_0x11d54d(0x1de)]);function a131_0x1d31(_0x37aa28,_0x6ad1c5){_0x37aa28=_0x37aa28-0x1d7;const _0x319547=a131_0x3195();let _0x1d31eb=_0x319547[_0x37aa28];return _0x1d31eb;}export const IGNORED_DIR_NAMES=new Set([a131_0x11d54d(0x1da),'.hg',a131_0x11d54d(0x1e7),a131_0x11d54d(0x1ea),'.next',a131_0x11d54d(0x1d9),a131_0x11d54d(0x1e8),a131_0x11d54d(0x1e9),a131_0x11d54d(0x1d8),a131_0x11d54d(0x1e1)]);
1
+ const a131_0x3e9007=a131_0x4601;(function(_0x1ad451,_0x21d6f4){const _0x133cd2=a131_0x4601,_0x37dce2=_0x1ad451();while(!![]){try{const _0x441f87=parseInt(_0x133cd2(0x1e5))/0x1*(parseInt(_0x133cd2(0x1eb))/0x2)+parseInt(_0x133cd2(0x1f0))/0x3*(parseInt(_0x133cd2(0x1e6))/0x4)+parseInt(_0x133cd2(0x1f6))/0x5+parseInt(_0x133cd2(0x1ec))/0x6*(parseInt(_0x133cd2(0x1f1))/0x7)+-parseInt(_0x133cd2(0x1f8))/0x8*(-parseInt(_0x133cd2(0x1f2))/0x9)+parseInt(_0x133cd2(0x1ee))/0xa+-parseInt(_0x133cd2(0x1ed))/0xb;if(_0x441f87===_0x21d6f4)break;else _0x37dce2['push'](_0x37dce2['shift']());}catch(_0x32cc52){_0x37dce2['push'](_0x37dce2['shift']());}}}(a131_0x1e33,0x4da45));export const METADATA_FILE=a131_0x3e9007(0x1f5);export const SKILL_FILE=a131_0x3e9007(0x1f7);function a131_0x4601(_0xbcd9e8,_0x4f0dcc){_0xbcd9e8=_0xbcd9e8-0x1e5;const _0x1e3317=a131_0x1e33();let _0x460186=_0x1e3317[_0xbcd9e8];return _0x460186;}function a131_0x1e33(){const _0x3ce04f=['4960233fQWmmR','.cache','build','lovrabet.skill.json','2028265kWuXmK','SKILL.md','8nyfOWP','dist','2izmjZr','4IKtasO','coverage','.DS_Store','node_modules','.turbo','582236tHLAtP','52842UYYmdL','23428185teqxIb','2781820vHfEtr','.git','1548471qCdUYi','91HCzCAN'];a131_0x1e33=function(){return _0x3ce04f;};return a131_0x1e33();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a131_0x3e9007(0x1e8)]);export const IGNORED_DIR_NAMES=new Set([a131_0x3e9007(0x1ef),'.hg','.svn',a131_0x3e9007(0x1e9),'.next',a131_0x3e9007(0x1f9),a131_0x3e9007(0x1f4),a131_0x3e9007(0x1e7),a131_0x3e9007(0x1ea),a131_0x3e9007(0x1f3)]);
@@ -1 +1 @@
1
- (function(_0x15eeae,_0x588c5a){const _0xe8d419=a132_0x3c54,_0x2a2aa5=_0x15eeae();while(!![]){try{const _0x5c65a0=parseInt(_0xe8d419(0xe7))/0x1+-parseInt(_0xe8d419(0xf8))/0x2*(parseInt(_0xe8d419(0xea))/0x3)+parseInt(_0xe8d419(0xef))/0x4*(parseInt(_0xe8d419(0xeb))/0x5)+-parseInt(_0xe8d419(0xe9))/0x6*(parseInt(_0xe8d419(0xf9))/0x7)+-parseInt(_0xe8d419(0xee))/0x8+-parseInt(_0xe8d419(0xf4))/0x9*(-parseInt(_0xe8d419(0xf2))/0xa)+-parseInt(_0xe8d419(0xfa))/0xb*(-parseInt(_0xe8d419(0xf6))/0xc);if(_0x5c65a0===_0x588c5a)break;else _0x2a2aa5['push'](_0x2a2aa5['shift']());}catch(_0x1298f5){_0x2a2aa5['push'](_0x2a2aa5['shift']());}}}(a132_0x4e50,0x8a78d));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x3dfaac,_0x3a5556){const _0x2fa639=a132_0x3c54,_0x512a0a=normalizeSkillRelativePath(_0x3a5556),_0x11f66b=realOrResolved(_0x3dfaac),_0xc3179a=resolve(_0x11f66b,..._0x512a0a[_0x2fa639(0xf5)]('/'));if(!isPathInside(_0xc3179a,_0x11f66b))throw CliErrors[_0x2fa639(0xed)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x3a5556);return ensureNoSymlinkInManagedPath(_0x11f66b,_0x512a0a),_0xc3179a;}function a132_0x4e50(){const _0x5a5f81=['endsWith','9564iDuUGJ','103926oIPGLr','5471165ITjZOL','utf8','validation','1387824SqhQnX','4SoUfHi','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','.tmp','2110euWOdY','startsWith','18945JdHijL','split','760164ITFkPf','stringify','20wXjHrR','3983kvTwpv','77OjNBva','isSymbolicLink','12248VrlkXe'];a132_0x4e50=function(){return _0x5a5f81;};return a132_0x4e50();}export function ensureNoSymlinkInManagedPath(_0x113460,_0x39d51){const _0x1d98cd=a132_0x3c54;let _0x11184b=_0x113460;for(const _0x1ec5bb of _0x39d51[_0x1d98cd(0xf5)]('/')){_0x11184b=resolve(_0x11184b,_0x1ec5bb);const _0xd1575f=lstatIfPresent(_0x11184b);if(_0xd1575f?.[_0x1d98cd(0xfb)]())throw CliErrors[_0x1d98cd(0xed)](_0x1d98cd(0xf0)+_0x39d51);}}export function isDanglingSymlink(_0xb8d644){const _0x16ec45=a132_0x3c54;try{return lstatSync(_0xb8d644)[_0x16ec45(0xfb)]();}catch{return![];}}function a132_0x3c54(_0x4385c2,_0x258bcb){_0x4385c2=_0x4385c2-0xe7;const _0x4e50af=a132_0x4e50();let _0x3c54ae=_0x4e50af[_0x4385c2];return _0x3c54ae;}export function resolveSymlinkTarget(_0x3501ce){const _0x39a7ff=readlinkSync(_0x3501ce);return isAbsolute(_0x39a7ff)?_0x39a7ff:resolve(dirname(_0x3501ce),_0x39a7ff);}export function isPathInside(_0x32ed62,_0x35b0e0){const _0xc9e8d8=a132_0x3c54,_0x7d8a20=_0x32ed62[_0xc9e8d8(0xe8)](sep)?_0x32ed62:''+_0x32ed62+sep,_0x569bd4=_0x35b0e0['endsWith'](sep)?_0x35b0e0:''+_0x35b0e0+sep;return _0x32ed62===_0x35b0e0||_0x7d8a20[_0xc9e8d8(0xf3)](_0x569bd4);}export function realOrResolved(_0x3e249d){try{return realpathSync(_0x3e249d);}catch{return resolve(_0x3e249d);}}export function lstatIfPresent(_0xb82db3){try{return lstatSync(_0xb82db3);}catch{return undefined;}}export function writeTextAtomic(_0x145fe1,_0x325734,_0x428517){const _0x46eca9=a132_0x3c54;writeBytesAtomic(_0x145fe1,Buffer['from'](_0x325734,_0x46eca9(0xec)),_0x428517);}export function writeBytesAtomic(_0x1e77f4,_0xfe2dba,_0x576283){const _0xb6b400=a132_0x3c54,_0x1d409f=_0x1e77f4+_0xb6b400(0xf1);try{writeFileSync(_0x1d409f,_0xfe2dba,{'mode':_0x576283}),renameSync(_0x1d409f,_0x1e77f4);}catch(_0x3895fe){try{rmSync(_0x1d409f,{'force':!![]});}catch{}throw _0x3895fe;}}export function writeJsonAtomic(_0x3a2bb3,_0x5525bd){const _0x55d91b=a132_0x3c54;writeTextAtomic(_0x3a2bb3,JSON[_0x55d91b(0xf7)](_0x5525bd,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x4f1c77,_0x208e55){const _0x625277=a132_0x7536,_0x1f98aa=_0x4f1c77();while(!![]){try{const _0x4dc481=parseInt(_0x625277(0x105))/0x1*(-parseInt(_0x625277(0x10c))/0x2)+-parseInt(_0x625277(0x108))/0x3+parseInt(_0x625277(0xfc))/0x4*(parseInt(_0x625277(0x103))/0x5)+-parseInt(_0x625277(0x107))/0x6*(parseInt(_0x625277(0x10d))/0x7)+-parseInt(_0x625277(0x10b))/0x8*(parseInt(_0x625277(0x100))/0x9)+-parseInt(_0x625277(0x10e))/0xa+parseInt(_0x625277(0xfb))/0xb;if(_0x4dc481===_0x208e55)break;else _0x1f98aa['push'](_0x1f98aa['shift']());}catch(_0x468767){_0x1f98aa['push'](_0x1f98aa['shift']());}}}(a132_0x5b5d,0xb44b8));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';function a132_0x7536(_0x9ebfec,_0x4448e3){_0x9ebfec=_0x9ebfec-0xfa;const _0x5b5ddf=a132_0x5b5d();let _0x75360e=_0x5b5ddf[_0x9ebfec];return _0x75360e;}import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x17f934,_0x5908e9){const _0x1b6169=a132_0x7536,_0x4d9bb4=normalizeSkillRelativePath(_0x5908e9),_0x3fb6e1=realOrResolved(_0x17f934),_0x36458a=resolve(_0x3fb6e1,..._0x4d9bb4[_0x1b6169(0xfa)]('/'));if(!isPathInside(_0x36458a,_0x3fb6e1))throw CliErrors['validation'](_0x1b6169(0xfe)+_0x5908e9);return ensureNoSymlinkInManagedPath(_0x3fb6e1,_0x4d9bb4),_0x36458a;}export function ensureNoSymlinkInManagedPath(_0x48b390,_0x5921c4){const _0x49b5a9=a132_0x7536;let _0x4b3e7f=_0x48b390;for(const _0x52c7cf of _0x5921c4[_0x49b5a9(0xfa)]('/')){_0x4b3e7f=resolve(_0x4b3e7f,_0x52c7cf);const _0x5d4b90=lstatIfPresent(_0x4b3e7f);if(_0x5d4b90?.[_0x49b5a9(0x102)]())throw CliErrors[_0x49b5a9(0x10f)](_0x49b5a9(0xfd)+_0x5921c4);}}export function isDanglingSymlink(_0x1134fd){try{return lstatSync(_0x1134fd)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x238ed2){const _0x124252=readlinkSync(_0x238ed2);return isAbsolute(_0x124252)?_0x124252:resolve(dirname(_0x238ed2),_0x124252);}export function isPathInside(_0x39b324,_0x277286){const _0x4f2e15=a132_0x7536,_0x31741e=_0x39b324[_0x4f2e15(0x101)](sep)?_0x39b324:''+_0x39b324+sep,_0x23fbb7=_0x277286['endsWith'](sep)?_0x277286:''+_0x277286+sep;return _0x39b324===_0x277286||_0x31741e[_0x4f2e15(0x104)](_0x23fbb7);}function a132_0x5b5d(){const _0x10ea52=['320960iUwrJd','validation','split','55134343kqJVKR','4coXAQW','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','Unsafe\x20Skill\x20file\x20path:\x20','from','549GBnDkt','endsWith','isSymbolicLink','3216505LnkJYQ','startsWith','607XhnXBT','utf8','18DIxcSF','3981591fblibf','stringify','.tmp','163272yZoRWG','2946fmiMTa','3310237zsbEJh'];a132_0x5b5d=function(){return _0x10ea52;};return a132_0x5b5d();}export function realOrResolved(_0x215aff){try{return realpathSync(_0x215aff);}catch{return resolve(_0x215aff);}}export function lstatIfPresent(_0x52f976){try{return lstatSync(_0x52f976);}catch{return undefined;}}export function writeTextAtomic(_0x285fe9,_0x73e9d5,_0x510385){const _0x466ada=a132_0x7536;writeBytesAtomic(_0x285fe9,Buffer[_0x466ada(0xff)](_0x73e9d5,_0x466ada(0x106)),_0x510385);}export function writeBytesAtomic(_0x4b3bc9,_0x41effb,_0x52f16d){const _0x78cad9=a132_0x7536,_0x543c64=_0x4b3bc9+_0x78cad9(0x10a);try{writeFileSync(_0x543c64,_0x41effb,{'mode':_0x52f16d}),renameSync(_0x543c64,_0x4b3bc9);}catch(_0x334649){try{rmSync(_0x543c64,{'force':!![]});}catch{}throw _0x334649;}}export function writeJsonAtomic(_0x54b6ca,_0x54aa69){const _0x2d5f53=a132_0x7536;writeTextAtomic(_0x54b6ca,JSON[_0x2d5f53(0x109)](_0x54aa69,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0xa6bff3,_0x1bf347){const _0x43506c=a133_0x32a6,_0xdbe0a4=_0xa6bff3();while(!![]){try{const _0x2e4999=parseInt(_0x43506c(0x195))/0x1+parseInt(_0x43506c(0x18f))/0x2+parseInt(_0x43506c(0x190))/0x3*(parseInt(_0x43506c(0x199))/0x4)+parseInt(_0x43506c(0x191))/0x5+parseInt(_0x43506c(0x192))/0x6*(parseInt(_0x43506c(0x194))/0x7)+-parseInt(_0x43506c(0x19f))/0x8*(parseInt(_0x43506c(0x19b))/0x9)+parseInt(_0x43506c(0x19e))/0xa*(-parseInt(_0x43506c(0x193))/0xb);if(_0x2e4999===_0x1bf347)break;else _0xdbe0a4['push'](_0xdbe0a4['shift']());}catch(_0x5beace){_0xdbe0a4['push'](_0xdbe0a4['shift']());}}}(a133_0x489d,0xaf79a));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a133_0x489d(){const _0x483b94=['10688swZWTP','26716wcUefT','6cgegCp','1575680diClsW','7158bsPLhC','16522qublYW','3899mpuKNh','121935ZmIzny','update','sha256','path','1463320kloyEt','size','90AcQmCR','hex','digest','7420QovRBv'];a133_0x489d=function(){return _0x483b94;};return a133_0x489d();}export function contentHash(_0x4868dc){const _0x41aca0=a133_0x32a6;return createHash(_0x41aca0(0x197))['update'](_0x4868dc)['digest'](_0x41aca0(0x19c));}function a133_0x32a6(_0x4b2bbd,_0xca1f14){_0x4b2bbd=_0x4b2bbd-0x18f;const _0x489dad=a133_0x489d();let _0x32a65e=_0x489dad[_0x4b2bbd];return _0x32a65e;}export function fileHash(_0x37f927){return bufferSha256(fileContent(_0x37f927));}export function bufferSha256(_0x2e88b4){const _0x25719c=a133_0x32a6;return createHash(_0x25719c(0x197))[_0x25719c(0x196)](_0x2e88b4)[_0x25719c(0x19d)](_0x25719c(0x19c));}export function fileTreeHash(_0x247cf5){const _0x375728=a133_0x32a6,_0x42aaa9=createHash(_0x375728(0x197));for(const _0x48fb26 of normalizeManifestFiles(_0x247cf5)){_0x42aaa9[_0x375728(0x196)](_0x48fb26[_0x375728(0x198)]),_0x42aaa9[_0x375728(0x196)]('\x00'),_0x42aaa9[_0x375728(0x196)](_0x48fb26[_0x375728(0x197)]),_0x42aaa9['update']('\x00'),_0x42aaa9[_0x375728(0x196)](String(_0x48fb26[_0x375728(0x19a)])),_0x42aaa9[_0x375728(0x196)]('\x00');}return _0x42aaa9['digest'](_0x375728(0x19c));}
1
+ (function(_0x43d68d,_0x3477a2){const _0x56c2b1=a133_0x3316,_0x1ec757=_0x43d68d();while(!![]){try{const _0x3542cb=-parseInt(_0x56c2b1(0x1cd))/0x1*(parseInt(_0x56c2b1(0x1d1))/0x2)+parseInt(_0x56c2b1(0x1c7))/0x3+parseInt(_0x56c2b1(0x1d3))/0x4+parseInt(_0x56c2b1(0x1c8))/0x5*(-parseInt(_0x56c2b1(0x1ca))/0x6)+parseInt(_0x56c2b1(0x1cc))/0x7*(-parseInt(_0x56c2b1(0x1d0))/0x8)+-parseInt(_0x56c2b1(0x1cf))/0x9+parseInt(_0x56c2b1(0x1c5))/0xa*(parseInt(_0x56c2b1(0x1c6))/0xb);if(_0x3542cb===_0x3477a2)break;else _0x1ec757['push'](_0x1ec757['shift']());}catch(_0x55e3d8){_0x1ec757['push'](_0x1ec757['shift']());}}}(a133_0x54e1,0x2cadf));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a133_0x54e1(){const _0x149196=['797127EsbcOV','10IVRwaq','hex','192054JcBdvn','size','347466yloPpx','5oNnlOZ','sha256','1960623hWmUVW','24iteiQx','83852hcLAcn','digest','1270036XDrTZf','update','7980BXTujk','3311dCZABD'];a133_0x54e1=function(){return _0x149196;};return a133_0x54e1();}export function contentHash(_0x17505a){const _0x491ef0=a133_0x3316;return createHash(_0x491ef0(0x1ce))[_0x491ef0(0x1c4)](_0x17505a)[_0x491ef0(0x1d2)](_0x491ef0(0x1c9));}export function fileHash(_0x47208d){return bufferSha256(fileContent(_0x47208d));}export function bufferSha256(_0x521314){const _0x36b834=a133_0x3316;return createHash(_0x36b834(0x1ce))[_0x36b834(0x1c4)](_0x521314)['digest']('hex');}function a133_0x3316(_0x19d9c0,_0x5ba03d){_0x19d9c0=_0x19d9c0-0x1c4;const _0x54e1c6=a133_0x54e1();let _0x331673=_0x54e1c6[_0x19d9c0];return _0x331673;}export function fileTreeHash(_0x158b55){const _0x26a449=a133_0x3316,_0x814fe2=createHash(_0x26a449(0x1ce));for(const _0x4b3ce6 of normalizeManifestFiles(_0x158b55)){_0x814fe2[_0x26a449(0x1c4)](_0x4b3ce6['path']),_0x814fe2['update']('\x00'),_0x814fe2[_0x26a449(0x1c4)](_0x4b3ce6[_0x26a449(0x1ce)]),_0x814fe2['update']('\x00'),_0x814fe2[_0x26a449(0x1c4)](String(_0x4b3ce6[_0x26a449(0x1cb)])),_0x814fe2[_0x26a449(0x1c4)]('\x00');}return _0x814fe2[_0x26a449(0x1d2)]('hex');}
@@ -1 +1 @@
1
- const a134_0x3b4e12=a134_0x4ea3;(function(_0x3eec6b,_0x1160c8){const _0x24a8e4=a134_0x4ea3,_0x331980=_0x3eec6b();while(!![]){try{const _0x1f8374=parseInt(_0x24a8e4(0x129))/0x1+parseInt(_0x24a8e4(0x135))/0x2*(parseInt(_0x24a8e4(0x124))/0x3)+-parseInt(_0x24a8e4(0x130))/0x4+parseInt(_0x24a8e4(0x132))/0x5+parseInt(_0x24a8e4(0x131))/0x6*(parseInt(_0x24a8e4(0x12d))/0x7)+parseInt(_0x24a8e4(0x128))/0x8*(-parseInt(_0x24a8e4(0x133))/0x9)+parseInt(_0x24a8e4(0x127))/0xa*(-parseInt(_0x24a8e4(0x126))/0xb);if(_0x1f8374===_0x1160c8)break;else _0x331980['push'](_0x331980['shift']());}catch(_0x5c1f73){_0x331980['push'](_0x331980['shift']());}}}(a134_0x2d6e,0xdf6b0));function a134_0x2d6e(){const _0x11faa7=['project','appCode','4175300CSOXnU','941484bldzNx','1598195Mnssyy','8757027NTXMtC','managedRoot','346722ZjHNdE','15vmLwww','freeze','11aQmmnq','6544260OsfoCs','8IXcyZh','1144618KQDurJ','.agents','global','cwd','56gqcYWa'];a134_0x2d6e=function(){return _0x11faa7;};return a134_0x2d6e();}import{resolve}from'node:path';function a134_0x4ea3(_0x24b9ff,_0x475163){_0x24b9ff=_0x24b9ff-0x124;const _0x2d6efd=a134_0x2d6e();let _0x4ea3c8=_0x2d6efd[_0x24b9ff];return _0x4ea3c8;}import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x16dd7b,_0x4363ef=a134_0x3b4e12(0x12b),_0x4a937a={}){const _0x254b47=a134_0x3b4e12,_0x3858ae=resolveSkillSyncPaths(_0x4a937a),_0x486919=safePathSegment(_0x16dd7b,_0x254b47(0x12f)),_0x175892=_0x4363ef===_0x254b47(0x12e)?[resolve(_0x4a937a[_0x254b47(0x12c)]??process[_0x254b47(0x12c)](),_0x254b47(0x12a),'skills')]:runtimeAgentSkillRoots(_0x3858ae);return Object[_0x254b47(0x125)]({'scope':_0x4363ef,'appCode':_0x486919,'skillRoots':Object[_0x254b47(0x125)](_0x175892),'managedRoot':_0x3858ae[_0x254b47(0x134)]});}
1
+ const a134_0x17eb62=a134_0x1ab3;(function(_0x5f3131,_0x39b942){const _0x4d6aa1=a134_0x1ab3,_0x6f18ef=_0x5f3131();while(!![]){try{const _0x1d1a4c=-parseInt(_0x4d6aa1(0x133))/0x1+parseInt(_0x4d6aa1(0x13f))/0x2+-parseInt(_0x4d6aa1(0x134))/0x3*(-parseInt(_0x4d6aa1(0x13e))/0x4)+-parseInt(_0x4d6aa1(0x144))/0x5+parseInt(_0x4d6aa1(0x139))/0x6*(parseInt(_0x4d6aa1(0x13d))/0x7)+parseInt(_0x4d6aa1(0x137))/0x8*(-parseInt(_0x4d6aa1(0x135))/0x9)+-parseInt(_0x4d6aa1(0x142))/0xa*(-parseInt(_0x4d6aa1(0x13c))/0xb);if(_0x1d1a4c===_0x39b942)break;else _0x6f18ef['push'](_0x6f18ef['shift']());}catch(_0x411208){_0x6f18ef['push'](_0x6f18ef['shift']());}}}(a134_0x5287,0x96dd0));import{resolve}from'node:path';function a134_0x1ab3(_0x16763b,_0x25567b){_0x16763b=_0x16763b-0x133;const _0x52878d=a134_0x5287();let _0x1ab340=_0x52878d[_0x16763b];return _0x1ab340;}import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x52e9bd,_0x2b14a2=a134_0x17eb62(0x138),_0x3da04a={}){const _0x372a96=a134_0x17eb62,_0x985a8e=resolveSkillSyncPaths(_0x3da04a),_0x20800f=safePathSegment(_0x52e9bd,_0x372a96(0x13a)),_0x5976c7=_0x2b14a2===_0x372a96(0x13b)?[resolve(_0x3da04a[_0x372a96(0x143)]??process['cwd'](),_0x372a96(0x140),'skills')]:runtimeAgentSkillRoots(_0x985a8e);return Object[_0x372a96(0x141)]({'scope':_0x2b14a2,'appCode':_0x20800f,'skillRoots':Object[_0x372a96(0x141)](_0x5976c7),'managedRoot':_0x985a8e[_0x372a96(0x136)]});}function a134_0x5287(){const _0x26e911=['global','78JpIavq','appCode','project','4432846WSmvsy','12341nHXkFx','692ZOcIFO','1872030LlZfnY','.agents','freeze','10AXNTGm','cwd','2075740kFbIio','329536eYdsuu','6945dLFLfF','1485QcvjGg','managedRoot','19384rXHDEP'];a134_0x5287=function(){return _0x26e911;};return a134_0x5287();}