@lovrabet/lovrabet-cli 2.2.4 → 2.2.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) 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.d.ts +7 -0
  140. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  141. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  142. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  143. package/lib/skills/runtime-skill-sync/push.js +1 -1
  144. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  145. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  146. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  147. package/lib/skills/runtime-skill-sync.d.ts +1 -1
  148. package/lib/skills/runtime-skill-sync.js +1 -1
  149. package/lib/skills/skill-presence.js +1 -1
  150. package/lib/utils/apply-jq-filter.js +1 -1
  151. package/lib/utils/logger.js +1 -1
  152. package/lib/utils/lossless-json.js +1 -1
  153. package/lib/utils/params.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/update-notice.js +1 -1
  156. package/lib/utils/version.js +1 -1
  157. package/lib/utils/write-cli-side-channel.js +1 -1
  158. package/package.json +1 -1
  159. package/skills/lovrabet/SKILL.md +1 -1
  160. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x59c911,_0x3fc343){const _0x535f15=a114_0x43b0,_0x1081a1=_0x59c911();while(!![]){try{const _0x5f20f0=-parseInt(_0x535f15(0x1e1))/0x1*(-parseInt(_0x535f15(0x1ed))/0x2)+-parseInt(_0x535f15(0x1f9))/0x3*(parseInt(_0x535f15(0x1fc))/0x4)+parseInt(_0x535f15(0x1e4))/0x5*(parseInt(_0x535f15(0x1e8))/0x6)+-parseInt(_0x535f15(0x1fd))/0x7*(parseInt(_0x535f15(0x1e2))/0x8)+-parseInt(_0x535f15(0x1f1))/0x9*(parseInt(_0x535f15(0x1f7))/0xa)+-parseInt(_0x535f15(0x1f8))/0xb*(-parseInt(_0x535f15(0x1df))/0xc)+parseInt(_0x535f15(0x1fb))/0xd;if(_0x5f20f0===_0x3fc343)break;else _0x1081a1['push'](_0x1081a1['shift']());}catch(_0x174da1){_0x1081a1['push'](_0x1081a1['shift']());}}}(a114_0x3fcf,0xedb4b));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x5b6ccc,_0x25ffdb,_0x4512ea){const _0x2c5d21=a114_0x43b0,_0x3fc626=buildConfirmationContext(_0x5b6ccc,_0x25ffdb,_0x4512ea),_0x5ad4f4=[_0x2c5d21(0x207)+_0x3fc626[_0x2c5d21(0x205)]];return _0x3fc626['description']&&_0x5ad4f4[_0x2c5d21(0x202)](_0x2c5d21(0x1e6)+_0x3fc626[_0x2c5d21(0x1ec)]),_0x3fc626[_0x2c5d21(0x1ee)]&&_0x5ad4f4[_0x2c5d21(0x202)](_0x2c5d21(0x1fe)+_0x3fc626[_0x2c5d21(0x1ee)]),_0x5ad4f4[_0x2c5d21(0x202)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x5ad4f4;}function a114_0x43b0(_0x4dc326,_0x6c386e){_0x4dc326=_0x4dc326-0x1df;const _0x3fcfe9=a114_0x3fcf();let _0x43b075=_0x3fcfe9[_0x4dc326];return _0x43b075;}export function reconstructCommandArgv(_0x41cfb9,_0x367c9b){const _0x4b83b0=a114_0x43b0,_0xbbb06f=[CLI_BIN_NAME,_0x41cfb9['service'],_0x41cfb9[_0x4b83b0(0x1eb)]];for(const [_0x4e5d00,_0x61261a]of Object[_0x4b83b0(0x208)](_0x367c9b)){if(_0x61261a===!![])_0xbbb06f[_0x4b83b0(0x202)]('--'+_0x4e5d00);else _0x61261a!==![]&&_0x61261a!==undefined&&_0x61261a!==''&&_0xbbb06f[_0x4b83b0(0x202)]('--'+_0x4e5d00+'\x20'+JSON[_0x4b83b0(0x1ff)](_0x61261a));}return _0xbbb06f['push']('--yes'),_0xbbb06f[_0x4b83b0(0x1ea)]('\x20');}function buildConfirmationContext(_0x4afc16,_0x1e18a1,_0xe0847e){const _0x16c12e=a114_0x43b0,_0x3cd17f=extractAffectedRecords(_0xe0847e);return{'commandLabel':_0x1e18a1,'description':_0x4afc16[_0x16c12e(0x1ec)],'affectedRecords':_0x3cd17f};}function extractAffectedRecords(_0x4d5aed){const _0x53480=a114_0x43b0,_0x367c53=[];if(_0x4d5aed['code'])_0x367c53[_0x53480(0x202)](_0x53480(0x1e7)+_0x4d5aed[_0x53480(0x1e5)]);if(_0x4d5aed['id'])_0x367c53[_0x53480(0x202)](_0x53480(0x1ef)+_0x4d5aed['id']);if(_0x4d5aed[_0x53480(0x1e9)])_0x367c53['push'](_0x53480(0x206)+_0x4d5aed['schedule-id']);if(_0x4d5aed[_0x53480(0x204)])_0x367c53[_0x53480(0x202)](_0x53480(0x201)+_0x4d5aed[_0x53480(0x204)]);if(_0x4d5aed[_0x53480(0x203)])_0x367c53[_0x53480(0x202)](_0x53480(0x1fa)+_0x4d5aed['title']);if(_0x4d5aed[_0x53480(0x1f0)])_0x367c53[_0x53480(0x202)](_0x53480(0x200)+_0x4d5aed[_0x53480(0x1f0)]);if(_0x4d5aed[_0x53480(0x1f2)])_0x367c53[_0x53480(0x202)](_0x53480(0x1e0)+_0x4d5aed[_0x53480(0x1f2)]);if(_0x4d5aed[_0x53480(0x1f5)])_0x367c53[_0x53480(0x202)](_0x53480(0x1f6)+_0x4d5aed[_0x53480(0x1f5)]);if(_0x4d5aed['channel'])_0x367c53[_0x53480(0x202)](_0x53480(0x1f3)+_0x4d5aed['channel']);if(_0x4d5aed[_0x53480(0x1f4)])_0x367c53[_0x53480(0x202)]('params='+_0x4d5aed['params']);return _0x367c53[_0x53480(0x1e3)]>0x0?_0x367c53[_0x53480(0x1ea)](',\x20'):undefined;}function a114_0x3fcf(){const _0x5d52c9=['join','command','description','6YjXEWx','affectedRecords','id=','kind','576wCOXwU','cron','channel=','params','scheduled-at','scheduled-at=','209540hFslTB','2959OfFuZa','201009xOHjdN','title=','15580500HFLPYC','100OYiFyC','737653eGJYeS','\x20\x20\x20Affected:\x20','stringify','kind=','name=','push','title','name','commandLabel','schedule-id=','⚠\x20\x20High-risk\x20operation:\x20','entries','49884QTzbOx','cron=','534773LvDlHm','8oKfxvd','length','5zbBnBK','code','\x20\x20\x20','code=','1044606RbtHgs','schedule-id'];a114_0x3fcf=function(){return _0x5d52c9;};return a114_0x3fcf();}
1
+ (function(_0x6c7ec8,_0x2d17da){const _0x69f9a3=a114_0x231e,_0x39fe95=_0x6c7ec8();while(!![]){try{const _0x271b4f=-parseInt(_0x69f9a3(0x12e))/0x1*(-parseInt(_0x69f9a3(0x13c))/0x2)+-parseInt(_0x69f9a3(0x13f))/0x3+-parseInt(_0x69f9a3(0x130))/0x4+parseInt(_0x69f9a3(0x142))/0x5*(-parseInt(_0x69f9a3(0x132))/0x6)+-parseInt(_0x69f9a3(0x139))/0x7*(-parseInt(_0x69f9a3(0x131))/0x8)+parseInt(_0x69f9a3(0x148))/0x9+-parseInt(_0x69f9a3(0x13d))/0xa*(-parseInt(_0x69f9a3(0x145))/0xb);if(_0x271b4f===_0x2d17da)break;else _0x39fe95['push'](_0x39fe95['shift']());}catch(_0x5d5c7b){_0x39fe95['push'](_0x39fe95['shift']());}}}(a114_0x16d1,0x73f29));import{CLI_BIN_NAME}from'../constant/cli.js';function a114_0x231e(_0x143048,_0x1185c6){_0x143048=_0x143048-0x128;const _0x16d148=a114_0x16d1();let _0x231ec7=_0x16d148[_0x143048];return _0x231ec7;}export function buildConfirmationLines(_0x3c5b15,_0x27dc74,_0x5e6f20){const _0x4a2dc4=a114_0x231e,_0x583d20=buildConfirmationContext(_0x3c5b15,_0x27dc74,_0x5e6f20),_0x51cda5=[_0x4a2dc4(0x149)+_0x583d20['commandLabel']];return _0x583d20[_0x4a2dc4(0x14f)]&&_0x51cda5['push'](_0x4a2dc4(0x14d)+_0x583d20[_0x4a2dc4(0x14f)]),_0x583d20[_0x4a2dc4(0x128)]&&_0x51cda5[_0x4a2dc4(0x136)]('\x20\x20\x20Affected:\x20'+_0x583d20[_0x4a2dc4(0x128)]),_0x51cda5['push'](_0x4a2dc4(0x14e)),_0x51cda5;}export function reconstructCommandArgv(_0x41164c,_0x3937db){const _0x4a77cd=a114_0x231e,_0x2a646f=[CLI_BIN_NAME,_0x41164c[_0x4a77cd(0x12d)],_0x41164c[_0x4a77cd(0x134)]];for(const [_0x5d10c0,_0x32e50e]of Object[_0x4a77cd(0x138)](_0x3937db)){if(_0x32e50e===!![])_0x2a646f[_0x4a77cd(0x136)]('--'+_0x5d10c0);else _0x32e50e!==![]&&_0x32e50e!==undefined&&_0x32e50e!==''&&_0x2a646f[_0x4a77cd(0x136)]('--'+_0x5d10c0+'\x20'+JSON[_0x4a77cd(0x137)](_0x32e50e));}return _0x2a646f[_0x4a77cd(0x136)]('--yes'),_0x2a646f[_0x4a77cd(0x12a)]('\x20');}function buildConfirmationContext(_0x30d4a0,_0x4e16c2,_0x8fc025){const _0x13ff99=extractAffectedRecords(_0x8fc025);return{'commandLabel':_0x4e16c2,'description':_0x30d4a0['description'],'affectedRecords':_0x13ff99};}function extractAffectedRecords(_0x39fde6){const _0x2ba176=a114_0x231e,_0xdc4414=[];if(_0x39fde6['code'])_0xdc4414['push'](_0x2ba176(0x144)+_0x39fde6[_0x2ba176(0x129)]);if(_0x39fde6['id'])_0xdc4414[_0x2ba176(0x136)]('id='+_0x39fde6['id']);if(_0x39fde6[_0x2ba176(0x140)])_0xdc4414['push'](_0x2ba176(0x14c)+_0x39fde6[_0x2ba176(0x140)]);if(_0x39fde6[_0x2ba176(0x14a)])_0xdc4414['push'](_0x2ba176(0x135)+_0x39fde6[_0x2ba176(0x14a)]);if(_0x39fde6[_0x2ba176(0x143)])_0xdc4414[_0x2ba176(0x136)](_0x2ba176(0x12c)+_0x39fde6[_0x2ba176(0x143)]);if(_0x39fde6[_0x2ba176(0x141)])_0xdc4414['push'](_0x2ba176(0x12b)+_0x39fde6[_0x2ba176(0x141)]);if(_0x39fde6[_0x2ba176(0x146)])_0xdc4414['push'](_0x2ba176(0x13e)+_0x39fde6[_0x2ba176(0x146)]);if(_0x39fde6['scheduled-at'])_0xdc4414[_0x2ba176(0x136)](_0x2ba176(0x14b)+_0x39fde6[_0x2ba176(0x13a)]);if(_0x39fde6['channel'])_0xdc4414[_0x2ba176(0x136)](_0x2ba176(0x150)+_0x39fde6[_0x2ba176(0x147)]);if(_0x39fde6[_0x2ba176(0x133)])_0xdc4414[_0x2ba176(0x136)](_0x2ba176(0x13b)+_0x39fde6['params']);return _0xdc4414[_0x2ba176(0x12f)]>0x0?_0xdc4414[_0x2ba176(0x12a)](',\x20'):undefined;}function a114_0x16d1(){const _0x1eeca2=['stringify','entries','3262SkdsFm','scheduled-at','params=','1343594JYGVUJ','20PumDjf','cron=','1814697sXHAwf','schedule-id','kind','5035gLCFFV','title','code=','7391714bZqMdi','cron','channel','6063174tHVXMX','⚠\x20\x20High-risk\x20operation:\x20','name','scheduled-at=','schedule-id=','\x20\x20\x20','\x20\x20\x20Continue?\x20[y/N]\x20','description','channel=','affectedRecords','code','join','kind=','title=','service','1xGgVOQ','length','3258160BuEBFN','2480hshYCc','5598AySKLR','params','command','name=','push'];a114_0x16d1=function(){return _0x1eeca2;};return a114_0x16d1();}
@@ -1 +1 @@
1
- (function(_0x1bef41,_0x164ed1){const _0x277310=a115_0x390a,_0x4abc50=_0x1bef41();while(!![]){try{const _0x97f162=-parseInt(_0x277310(0x1da))/0x1*(parseInt(_0x277310(0x1c6))/0x2)+-parseInt(_0x277310(0x1ce))/0x3*(-parseInt(_0x277310(0x1d1))/0x4)+-parseInt(_0x277310(0x1d7))/0x5*(parseInt(_0x277310(0x1d6))/0x6)+parseInt(_0x277310(0x1c8))/0x7+-parseInt(_0x277310(0x1cf))/0x8+parseInt(_0x277310(0x1d4))/0x9*(parseInt(_0x277310(0x1cb))/0xa)+-parseInt(_0x277310(0x1cd))/0xb*(-parseInt(_0x277310(0x1cc))/0xc);if(_0x97f162===_0x164ed1)break;else _0x4abc50['push'](_0x4abc50['shift']());}catch(_0x108b5f){_0x4abc50['push'](_0x4abc50['shift']());}}}(a115_0x15c3,0x98a0b));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';function a115_0x15c3(){const _0x3a070a=['response','trim','20OdfDvs','48oLlUkT','4522705mgAzMe','9MsKJZx','3870232XvJdpi','headers','92384crrEEW','stringify','validation','1854477mmSkdQ','status','6HcTTMi','2204035CASaZa','description','message','304626bhYMKj','8kcEbnk','string','4495673mXbyAI'];a115_0x15c3=function(){return _0x3a070a;};return a115_0x15c3();}function a115_0x390a(_0x3b54f4,_0x535839){_0x3b54f4=_0x3b54f4-0x1c6;const _0x15c31d=a115_0x15c3();let _0x390a4a=_0x15c31d[_0x3b54f4];return _0x390a4a;}export function mapUserFacingExecuteError(_0x321def){const _0x36487b=a115_0x390a;if(_0x321def instanceof LovrabetError){const _0x1974b7=userFacingLovrabetMessage(_0x321def),_0x398689=_0x321def,_0x331231=createRateLimitError({'status':_0x398689[_0x36487b(0x1d5)],'errorCode':_0x398689['code'],'message':_0x1974b7,'retryAfter':readRetryAfter(_0x398689[_0x36487b(0x1c9)]?.[_0x36487b(0x1d0)])??readRetryAfterSeconds(_0x398689[_0x36487b(0x1c9)])});return _0x331231??CliErrors[_0x36487b(0x1d3)](_0x1974b7);}return _0x321def;}function userFacingLovrabetMessage(_0x374a92){const _0x5663f9=a115_0x390a,_0x35031d=_0x374a92[_0x5663f9(0x1d8)];if(_0x35031d!==undefined&&_0x35031d!==null){if(typeof _0x35031d===_0x5663f9(0x1c7)&&_0x35031d[_0x5663f9(0x1ca)]())return _0x35031d[_0x5663f9(0x1ca)]();try{return JSON[_0x5663f9(0x1d2)](_0x35031d);}catch{}}return _0x374a92[_0x5663f9(0x1d9)];}
1
+ (function(_0x40528f,_0x1bec64){const _0x4d0c73=a115_0x50e7,_0x5aa5ea=_0x40528f();while(!![]){try{const _0x1f3075=-parseInt(_0x4d0c73(0x1b7))/0x1+parseInt(_0x4d0c73(0x1bd))/0x2*(-parseInt(_0x4d0c73(0x1b9))/0x3)+-parseInt(_0x4d0c73(0x1bc))/0x4+parseInt(_0x4d0c73(0x1b6))/0x5+parseInt(_0x4d0c73(0x1ae))/0x6*(parseInt(_0x4d0c73(0x1ad))/0x7)+parseInt(_0x4d0c73(0x1bf))/0x8*(parseInt(_0x4d0c73(0x1af))/0x9)+-parseInt(_0x4d0c73(0x1ba))/0xa*(-parseInt(_0x4d0c73(0x1b5))/0xb);if(_0x1f3075===_0x1bec64)break;else _0x5aa5ea['push'](_0x5aa5ea['shift']());}catch(_0x439865){_0x5aa5ea['push'](_0x5aa5ea['shift']());}}}(a115_0x8dff,0x22623));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x395c61){const _0x5730f0=a115_0x50e7;if(_0x395c61 instanceof LovrabetError){const _0xca5226=userFacingLovrabetMessage(_0x395c61),_0xb94a0c=_0x395c61,_0x194d86=createRateLimitError({'status':_0xb94a0c[_0x5730f0(0x1b4)],'errorCode':_0xb94a0c['code'],'message':_0xca5226,'retryAfter':readRetryAfter(_0xb94a0c[_0x5730f0(0x1b2)]?.[_0x5730f0(0x1bb)])??readRetryAfterSeconds(_0xb94a0c['response'])});return _0x194d86??CliErrors[_0x5730f0(0x1b3)](_0xca5226);}return _0x395c61;}function userFacingLovrabetMessage(_0x57ca9d){const _0x35e268=a115_0x50e7,_0x580e65=_0x57ca9d[_0x35e268(0x1b1)];if(_0x580e65!==undefined&&_0x580e65!==null){if(typeof _0x580e65===_0x35e268(0x1b0)&&_0x580e65[_0x35e268(0x1b8)]())return _0x580e65['trim']();try{return JSON[_0x35e268(0x1be)](_0x580e65);}catch{}}return _0x57ca9d['message'];}function a115_0x50e7(_0x1af950,_0x14674a){_0x1af950=_0x1af950-0x1ad;const _0x8dff8c=a115_0x8dff();let _0x50e712=_0x8dff8c[_0x1af950];return _0x50e712;}function a115_0x8dff(){const _0x5416d6=['1226064eApSaJ','6849timDLm','string','description','response','validation','status','2890008ZGOSjg','56575pPJWND','214201EANVhE','trim','969vwhwZL','10tRmdLl','headers','996804yfcdqL','804IEwhJw','stringify','2688EzmtHM','7EUydpj'];a115_0x8dff=function(){return _0x5416d6;};return a115_0x8dff();}
@@ -1 +1 @@
1
- (function(_0xf8cd34,_0x44794c){const _0x245843=a116_0x31e8,_0x57b235=_0xf8cd34();while(!![]){try{const _0x5d5b7c=-parseInt(_0x245843(0x1c0))/0x1+-parseInt(_0x245843(0x1ea))/0x2+-parseInt(_0x245843(0x1ca))/0x3*(-parseInt(_0x245843(0x1bc))/0x4)+-parseInt(_0x245843(0x1d0))/0x5+parseInt(_0x245843(0x1d6))/0x6+parseInt(_0x245843(0x1e8))/0x7*(-parseInt(_0x245843(0x1bf))/0x8)+-parseInt(_0x245843(0x1c2))/0x9*(-parseInt(_0x245843(0x1c9))/0xa);if(_0x5d5b7c===_0x44794c)break;else _0x57b235['push'](_0x57b235['shift']());}catch(_0x2c3697){_0x57b235['push'](_0x57b235['shift']());}}}(a116_0x6c21,0x8894e));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';function a116_0x6c21(){const _0x6b4b73=['cancelled','has','local-alias','appcode','ClientAk','trim','catch','format','ACCESS_KEY','production','newConfigFileName','object','428071CbGviC','validation','1567714CtUiUA','resolve','execute','../core/api-client.js','includes','defaultPageSize','filter','update','error','Run\x20`','nonInteractive','configMissing','appCodeSource','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','pretty','map','\x20\x20To\x20proceed:\x20','app','../core/sdk-client.js','string','env','4Bpraqq','authRequired','service','136NRiImG','784810CfrVFP','Unknown\x20app:\x20','95535fChEMv','items','_notice','APPCODE','currentApp','defaultApp','../commands/app/remote-source.js','2830Sricgc','500667weihJg','Set\x20accessKey\x20in\x20','appcode\x20\x22','appCode','pageSize','requiresAuth','4165400enRIVE','mergedCli','High-risk\x20operation\x20`','confirmHighRisk','rawFlags','verbose','4979112uXWfLD','name','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','requiresAppCode','accessKey','command'];a116_0x6c21=function(){return _0x6b4b73;};return a116_0x6c21();}function a116_0x31e8(_0xc9303a,_0x5254a2){_0xc9303a=_0xc9303a-0x1a9;const _0x6c21e8=a116_0x6c21();let _0x31e80b=_0x6c21e8[_0xc9303a];return _0x31e80b;}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(_0x893db8){const _0x3d0b99=a116_0x31e8;return void _0x893db8,AUTH_MODE[_0x3d0b99(0x1e0)];}let sdkClientInitialized=![];export function createPipelineEnv(_0xbd9763,_0x1be7be){const _0x4851ce=a116_0x31e8,_0x5573b1=typeof _0x1be7be[_0x4851ce(0x1b8)]==='string'&&_0x1be7be[_0x4851ce(0x1b8)][_0x4851ce(0x1e1)]();return{'rawFlags':_0x1be7be,'appCode':_0xbd9763[_0x4851ce(0x1cd)]||productEnv('APPCODE')||(_0x5573b1?undefined:readAppCodeFromConfig()),'appCodeSource':_0xbd9763[_0x4851ce(0x1b3)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1be7be),'defaultFormat':_0xbd9763[_0x4851ce(0x1e3)],'defaultPageSize':_0xbd9763[_0x4851ce(0x1ce)],'defaultVerbose':_0xbd9763[_0x4851ce(0x1d5)],'riskLevel':_0xbd9763['riskLevel'],'accessKey':_0xbd9763['accessKey'],'env':_0xbd9763[_0x4851ce(0x1bb)],'mergedCli':{'defaultApp':_0xbd9763[_0x4851ce(0x1c7)],'currentApp':_0xbd9763[_0x4851ce(0x1c6)],'appCode':_0xbd9763['appCode']}};}export function createLovrabetRunnerAdapter(_0x3e8d9b={}){const _0x236b2d=a116_0x31e8,_0x134946={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x236b2d(0x1ad)](_0x19d141=>PIPELINE_FLAG_NAMES[_0x236b2d(0x1dd)](_0x19d141[_0x236b2d(0x1d7)]))[_0x236b2d(0x1b6)](({name:_0x13c06c,type:_0x266a2d,description:_0x31b6d0})=>({'name':_0x13c06c,'type':_0x266a2d,'description':_0x31b6d0})),'formatOutput':_0x3e8d9b['formatOutput']??formatOutput,'getCommandLabel'(_0x276cf9){const _0x3bd7a2=_0x236b2d;return CLI_BIN_NAME+'\x20'+_0x276cf9['service']+'\x20'+_0x276cf9[_0x3bd7a2(0x1db)];},'riskPolicy':{'onViolation'(_0x36b7fb){const _0x20ef09=_0x236b2d;console[_0x20ef09(0x1af)](_0x36b7fb);},'createError'(_0xe64087){const _0x5babb5=_0x236b2d;return CliErrors[_0x5babb5(0x1dc)](_0xe64087);}},async 'prepare'(_0xf850f1,_0x4ee43b){const _0x4f892a=_0x236b2d,_0x540e1c=resolveAuthMode(_0x4ee43b);if(_0xf850f1[_0x4f892a(0x1cf)]!==![]){if(!_0x4ee43b[_0x4f892a(0x1da)])throw CliErrors[_0x4f892a(0x1bd)](_0x4f892a(0x1cb)+PRODUCT_CONFIG[_0x4f892a(0x1e6)]+'\x20or\x20pass\x20'+productEnvName(_0x4f892a(0x1e4))+'.');const {setActiveAK:_0x50752b}=await import(_0x4f892a(0x1aa));_0x50752b(_0x4ee43b[_0x4f892a(0x1da)]);}let _0x1a280f='';if(_0xf850f1[_0x4f892a(0x1d9)]!==![]){_0x1a280f=_0x4ee43b[_0x4f892a(0x1cd)]??'',_0x1a280f=await resolveExplicitAppName(_0xf850f1,_0x4ee43b,_0x1a280f);if(!_0x1a280f){await assertSelectedAppNameIsRuntimeAccessible(_0xf850f1,_0x4ee43b);throw CliErrors[_0x4f892a(0x1b2)](_0x4f892a(0x1b4)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xf850f1,_0x4ee43b,_0x1a280f);}if(_0x1a280f){const {initSdkClient:_0x1ddd90}=await import('../core/sdk-client.js');_0x1ddd90({'appCode':_0x1a280f,'env':_0x4ee43b[_0x4f892a(0x1bb)]??_0x4f892a(0x1e5),'accessKey':_0x4ee43b['accessKey'],'authMode':_0x540e1c}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4ee43b['defaultVerbose']},'numbers':{'pagesize':_0x4ee43b[_0x4f892a(0x1ac)]}},'extras':{'appCode':_0x1a280f,'cookie':'','apiDomain':_0x4ee43b['apiDomain'],'apiDir':'','accessKey':_0x4ee43b[_0x4f892a(0x1da)],'envName':_0x4ee43b[_0x4f892a(0x1bb)],'mergedCli':_0x4ee43b[_0x4f892a(0x1d1)]}};},'confirmHighRisk':_0x3e8d9b[_0x236b2d(0x1d3)]??(async({def:_0x2781f8,env:_0x5112d7,flags:_0x3032cd,commandLabel:_0x18a621})=>{const _0x53f948=_0x236b2d;if(_0x5112d7['isNonInteractive']){const _0x12e3eb=reconstructCommandArgv(_0x2781f8,_0x3032cd);throw CliErrors[_0x53f948(0x1e9)](_0x53f948(0x1d2)+_0x18a621+_0x53f948(0x1d8)+(_0x53f948(0x1b7)+_0x12e3eb));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2781f8,_0x18a621,_0x3032cd),'createCancelledError':_0x36fd2c=>CliErrors[_0x53f948(0x1dc)](_0x36fd2c)});}),'mapDryRunError'(_0x49e92d){return mapUserFacingExecuteError(_0x49e92d);},'mapExecuteError'(_0x302e03){return mapUserFacingExecuteError(_0x302e03);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x134946;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x56ca55=a116_0x31e8;try{if(sdkClientInitialized){const {clearSdkClient:_0x4cca83}=await import(_0x56ca55(0x1b9));_0x4cca83();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x462cf7}=await import(_0x56ca55(0x1aa));_0x462cf7();}}async function resolveExplicitAppName(_0x14e911,_0x3fecbb,_0x3a8ef5){const _0x5d7284=a116_0x31e8;if(_0x14e911[_0x5d7284(0x1d9)]===![])return _0x3a8ef5;const _0x2689d5=typeof _0x3fecbb[_0x5d7284(0x1d4)][_0x5d7284(0x1b8)]===_0x5d7284(0x1ba)?_0x3fecbb[_0x5d7284(0x1d4)][_0x5d7284(0x1b8)][_0x5d7284(0x1e1)]():'';if(!_0x2689d5)return _0x3a8ef5;const _0x1953ea=typeof _0x3fecbb['rawFlags'][_0x5d7284(0x1df)]===_0x5d7284(0x1ba)&&_0x3fecbb[_0x5d7284(0x1d4)]['appcode'][_0x5d7284(0x1e1)]()||productEnv(_0x5d7284(0x1c5));if(_0x1953ea||_0x3fecbb[_0x5d7284(0x1b3)]===_0x5d7284(0x1de))return _0x3a8ef5;const {getRemoteAppList:_0x1e57c0}=await import('../commands/app/remote-source.js'),_0x26516e=await _0x1e57c0({'env':_0x3fecbb['env']??_0x5d7284(0x1e5),'accessKey':_0x3fecbb[_0x5d7284(0x1da)]}),_0x5c505b=findAppByName(_0x26516e[_0x5d7284(0x1c3)],_0x2689d5);if(_0x5c505b&&!isRuntimeAccessibleApp(_0x5c505b))throw runtimeInaccessibleAppError(_0x5c505b,'\x22'+_0x2689d5+'\x22');const _0x3c860f=_0x5c505b?.[_0x5d7284(0x1cd)]?.['trim']();if(_0x3c860f)return _0x3c860f;throw CliErrors[_0x5d7284(0x1e9)](_0x5d7284(0x1c1)+_0x2689d5,_0x5d7284(0x1b0)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2689d5+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x5d7284(0x1e6)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x2caea6,_0x5adf71){const _0x3c30dc=a116_0x31e8;if(_0x2caea6['requiresAppCode']===![]||!_0x5adf71[_0x3c30dc(0x1da)])return;const _0x1c2515=(typeof _0x5adf71[_0x3c30dc(0x1d4)][_0x3c30dc(0x1b8)]===_0x3c30dc(0x1ba)&&_0x5adf71['rawFlags'][_0x3c30dc(0x1b8)][_0x3c30dc(0x1e1)]()?_0x5adf71[_0x3c30dc(0x1d4)][_0x3c30dc(0x1b8)]:_0x5adf71['mergedCli']?.[_0x3c30dc(0x1c6)]??_0x5adf71[_0x3c30dc(0x1d1)]?.[_0x3c30dc(0x1c7)])?.[_0x3c30dc(0x1e1)]();if(!_0x1c2515)return;const {getRemoteAppList:_0xe9542}=await import(_0x3c30dc(0x1c8)),_0x138367=await _0xe9542({'env':_0x5adf71['env']??_0x3c30dc(0x1e5),'accessKey':_0x5adf71['accessKey']}),_0x1834d9=findAppByName(_0x138367[_0x3c30dc(0x1c3)],_0x1c2515);if(_0x1834d9&&!isRuntimeAccessibleApp(_0x1834d9))throw runtimeInaccessibleAppError(_0x1834d9,'\x22'+_0x1c2515+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5533ff,_0x3742bf,_0x3d00f0){const _0x17e4c9=a116_0x31e8;if(_0x5533ff['requiresAppCode']===![]||!_0x3742bf[_0x17e4c9(0x1da)])return;const {getRemoteAppList:_0x3e53b4}=await import(_0x17e4c9(0x1c8)),_0x1c64ff=await _0x3e53b4({'env':_0x3742bf[_0x17e4c9(0x1bb)]??_0x17e4c9(0x1e5),'accessKey':_0x3742bf[_0x17e4c9(0x1da)]}),_0x3517bc=findAppByCode(_0x1c64ff['items'],_0x3d00f0);if(_0x3517bc&&!isRuntimeAccessibleApp(_0x3517bc))throw runtimeInaccessibleAppError(_0x3517bc,_0x17e4c9(0x1cc)+_0x3d00f0+'\x22');}export async function runCommand(_0xaa993,_0x4079c6,_0x8a469a=terminalRunnerAdapter){const _0x16f04a=a116_0x31e8;assertKnownCommandFlags(_0xaa993,_0x4079c6[_0x16f04a(0x1d4)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xaa993)?withUpdateNotice(_0xaa993):_0xaa993,_0x4079c6,_0x8a469a);}function shouldAttachUpdateNotice(_0x565beb){const _0x6ca9d8=a116_0x31e8;return![_0x6ca9d8(0x1ae),'schema','doctor'][_0x6ca9d8(0x1ab)](_0x565beb[_0x6ca9d8(0x1be)]);}function withUpdateNotice(_0x58951e){return{..._0x58951e,async 'execute'(_0x11ba96){const _0x21455e=a116_0x31e8,_0x201f87=shouldResolveUpdateNotice(_0x11ba96)?resolveLatestUpdateNotice()[_0x21455e(0x1e2)](()=>null):Promise[_0x21455e(0x1eb)](null),_0x40ab16=await _0x58951e[_0x21455e(0x1a9)](_0x11ba96);return attachUpdateNotice(_0x40ab16,await _0x201f87);}};}function shouldResolveUpdateNotice(_0x2d01ca){const _0x44626d=a116_0x31e8;return _0x2d01ca['format']===_0x44626d(0x1b5)&&!_0x2d01ca[_0x44626d(0x1b1)];}function attachUpdateNotice(_0x459247,_0x1c996e){const _0x290664=a116_0x31e8;if(!_0x1c996e||!_0x459247||typeof _0x459247!==_0x290664(0x1e7))return _0x459247;const _0x4068ae=_0x459247,_0x74a0b2=typeof _0x4068ae[_0x290664(0x1c4)]===_0x290664(0x1e7)&&_0x4068ae['_notice']!==null?_0x4068ae[_0x290664(0x1c4)]:{};return{..._0x4068ae,'_notice':{..._0x74a0b2,'update':_0x1c996e}};}
1
+ (function(_0xbf78d9,_0x20fa42){const _0xce1fd3=a116_0x1848,_0x3420a5=_0xbf78d9();while(!![]){try{const _0x563849=parseInt(_0xce1fd3(0x19c))/0x1*(-parseInt(_0xce1fd3(0x17b))/0x2)+parseInt(_0xce1fd3(0x179))/0x3*(-parseInt(_0xce1fd3(0x199))/0x4)+-parseInt(_0xce1fd3(0x171))/0x5*(parseInt(_0xce1fd3(0x16c))/0x6)+-parseInt(_0xce1fd3(0x187))/0x7+parseInt(_0xce1fd3(0x1a6))/0x8*(-parseInt(_0xce1fd3(0x188))/0x9)+-parseInt(_0xce1fd3(0x1a2))/0xa+parseInt(_0xce1fd3(0x197))/0xb*(parseInt(_0xce1fd3(0x19a))/0xc);if(_0x563849===_0x20fa42)break;else _0x3420a5['push'](_0x3420a5['shift']());}catch(_0x463858){_0x3420a5['push'](_0x3420a5['shift']());}}}(a116_0x3d2a,0x2c588));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';function a116_0x1848(_0x1577e3,_0x894da0){_0x1577e3=_0x1577e3-0x16c;const _0x3d2a82=a116_0x3d2a();let _0x1848ee=_0x3d2a82[_0x1577e3];return _0x1848ee;}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(_0xae2d1c){const _0x47f5c3=a116_0x1848;return void _0xae2d1c,AUTH_MODE[_0x47f5c3(0x1a9)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x11c3e3,_0x26d88a){const _0x362d5f=a116_0x1848,_0x9d0ffd=typeof _0x26d88a[_0x362d5f(0x170)]==='string'&&_0x26d88a[_0x362d5f(0x170)][_0x362d5f(0x16f)]();return{'rawFlags':_0x26d88a,'appCode':_0x11c3e3[_0x362d5f(0x1ab)]||productEnv(_0x362d5f(0x18d))||(_0x9d0ffd?undefined:readAppCodeFromConfig()),'appCodeSource':_0x11c3e3[_0x362d5f(0x18f)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x26d88a),'defaultFormat':_0x11c3e3[_0x362d5f(0x194)],'defaultPageSize':_0x11c3e3[_0x362d5f(0x1a0)],'defaultVerbose':_0x11c3e3[_0x362d5f(0x1a3)],'riskLevel':_0x11c3e3[_0x362d5f(0x174)],'accessKey':_0x11c3e3['accessKey'],'env':_0x11c3e3[_0x362d5f(0x186)],'mergedCli':{'defaultApp':_0x11c3e3['defaultApp'],'currentApp':_0x11c3e3['currentApp'],'appCode':_0x11c3e3[_0x362d5f(0x1ab)]}};}export function createLovrabetRunnerAdapter(_0x1c90a8={}){const _0x284492=a116_0x1848,_0x1867f0={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x284492(0x181)](_0x13745e=>PIPELINE_FLAG_NAMES['has'](_0x13745e[_0x284492(0x17e)]))[_0x284492(0x17c)](({name:_0x34ddaf,type:_0x5f4e9d,description:_0x1e7a00})=>({'name':_0x34ddaf,'type':_0x5f4e9d,'description':_0x1e7a00})),'formatOutput':_0x1c90a8[_0x284492(0x16d)]??formatOutput,'getCommandLabel'(_0x1c0cad){const _0x22573d=_0x284492;return CLI_BIN_NAME+'\x20'+_0x1c0cad[_0x22573d(0x18c)]+'\x20'+_0x1c0cad['command'];},'riskPolicy':{'onViolation'(_0x530ee4){console['error'](_0x530ee4);},'createError'(_0x52827d){const _0x35aced=_0x284492;return CliErrors[_0x35aced(0x178)](_0x52827d);}},async 'prepare'(_0x1667e0,_0x1a20e7){const _0x236392=_0x284492,_0x70a1e3=resolveAuthMode(_0x1a20e7);if(_0x1667e0[_0x236392(0x18b)]!==![]){if(!_0x1a20e7[_0x236392(0x17d)])throw CliErrors[_0x236392(0x172)](_0x236392(0x17a)+PRODUCT_CONFIG[_0x236392(0x1a5)]+_0x236392(0x1a4)+productEnvName(_0x236392(0x1af))+'.');const {setActiveAK:_0x38bd0e}=await import('../core/api-client.js');_0x38bd0e(_0x1a20e7['accessKey']);}let _0x50a97f='';if(_0x1667e0['requiresAppCode']!==![]){_0x50a97f=_0x1a20e7[_0x236392(0x1ab)]??'',_0x50a97f=await resolveExplicitAppName(_0x1667e0,_0x1a20e7,_0x50a97f);if(!_0x50a97f){await assertSelectedAppNameIsRuntimeAccessible(_0x1667e0,_0x1a20e7);throw CliErrors[_0x236392(0x177)](_0x236392(0x173)+PRODUCT_CONFIG[_0x236392(0x1a5)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1667e0,_0x1a20e7,_0x50a97f);}if(_0x50a97f){const {initSdkClient:_0x2b265f}=await import(_0x236392(0x19f));_0x2b265f({'appCode':_0x50a97f,'env':_0x1a20e7[_0x236392(0x186)]??_0x236392(0x1ad),'accessKey':_0x1a20e7[_0x236392(0x17d)],'authMode':_0x70a1e3}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1a20e7['defaultVerbose']},'numbers':{'pagesize':_0x1a20e7[_0x236392(0x1ac)]}},'extras':{'appCode':_0x50a97f,'cookie':'','apiDomain':_0x1a20e7[_0x236392(0x19b)],'apiDir':'','accessKey':_0x1a20e7[_0x236392(0x17d)],'envName':_0x1a20e7[_0x236392(0x186)],'mergedCli':_0x1a20e7['mergedCli']}};},'confirmHighRisk':_0x1c90a8[_0x284492(0x175)]??(async({def:_0x56deb1,env:_0x10f448,flags:_0x573d00,commandLabel:_0x2effc8})=>{const _0x556cc8=_0x284492;if(_0x10f448[_0x556cc8(0x184)]){const _0x49bb64=reconstructCommandArgv(_0x56deb1,_0x573d00);throw CliErrors['validation'](_0x556cc8(0x196)+_0x2effc8+_0x556cc8(0x180)+(_0x556cc8(0x183)+_0x49bb64));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x56deb1,_0x2effc8,_0x573d00),'createCancelledError':_0x3b57e6=>CliErrors[_0x556cc8(0x178)](_0x3b57e6)});}),'mapDryRunError'(_0x1bf1cc){return mapUserFacingExecuteError(_0x1bf1cc);},'mapExecuteError'(_0x1fb17b){return mapUserFacingExecuteError(_0x1fb17b);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1867f0;}function a116_0x3d2a(){const _0x567726=['Unknown\x20app:\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','filter','doctor','\x20\x20To\x20proceed:\x20','isNonInteractive','object','env','1298143vlFNbk','9xTXdCL','mergedCli','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','requiresAuth','service','APPCODE','_notice','appCodeSource','update','resolve','string','../core/api-client.js','format','.appcode\x20to\x20','High-risk\x20operation\x20`','11rSIDeu','nonInteractive','53900HwHeoi','13489044hRgAYC','apiDomain','4054xpqIIM','../commands/app/remote-source.js','requiresAppCode','../core/sdk-client.js','pageSize','Run\x20`','182700mhQqjn','verbose','\x20or\x20pass\x20','newConfigFileName','1121512DHhSRW','appcode','pretty','ClientAk','items','appCode','defaultPageSize','production','rawFlags','ACCESS_KEY','24oabvGc','formatOutput','catch','trim','app','392095sxecoo','authRequired','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','riskLevel','confirmHighRisk','defaultApp','configMissing','cancelled','21PLCxLL','Set\x20accessKey\x20in\x20','94aEkUfT','map','accessKey','name'];a116_0x3d2a=function(){return _0x567726;};return a116_0x3d2a();}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x3f27ed=a116_0x1848;try{if(sdkClientInitialized){const {clearSdkClient:_0x468926}=await import('../core/sdk-client.js');_0x468926();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x8e7c64}=await import(_0x3f27ed(0x193));_0x8e7c64();}}async function resolveExplicitAppName(_0x493d24,_0xbda7d0,_0xf8f80b){const _0x41bb6a=a116_0x1848;if(_0x493d24[_0x41bb6a(0x19e)]===![])return _0xf8f80b;const _0x36e2d1=typeof _0xbda7d0[_0x41bb6a(0x1ae)]['app']===_0x41bb6a(0x192)?_0xbda7d0[_0x41bb6a(0x1ae)]['app']['trim']():'';if(!_0x36e2d1)return _0xf8f80b;const _0x54e8e6=typeof _0xbda7d0[_0x41bb6a(0x1ae)][_0x41bb6a(0x1a7)]===_0x41bb6a(0x192)&&_0xbda7d0[_0x41bb6a(0x1ae)][_0x41bb6a(0x1a7)][_0x41bb6a(0x16f)]()||productEnv(_0x41bb6a(0x18d));if(_0x54e8e6||_0xbda7d0[_0x41bb6a(0x18f)]==='local-alias')return _0xf8f80b;const {getRemoteAppList:_0x58e469}=await import(_0x41bb6a(0x19d)),_0x2d786f=await _0x58e469({'env':_0xbda7d0[_0x41bb6a(0x186)]??'production','accessKey':_0xbda7d0['accessKey']}),_0x48d41c=findAppByName(_0x2d786f[_0x41bb6a(0x1aa)],_0x36e2d1);if(_0x48d41c&&!isRuntimeAccessibleApp(_0x48d41c))throw runtimeInaccessibleAppError(_0x48d41c,'\x22'+_0x36e2d1+'\x22');const _0x400d35=_0x48d41c?.['appCode']?.[_0x41bb6a(0x16f)]();if(_0x400d35)return _0x400d35;throw CliErrors['validation'](_0x41bb6a(0x17f)+_0x36e2d1,_0x41bb6a(0x1a1)+CLI_BIN_NAME+_0x41bb6a(0x18a)+_0x36e2d1+_0x41bb6a(0x195)+PRODUCT_CONFIG[_0x41bb6a(0x1a5)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1c7acb,_0x53c4c4){const _0x4788b7=a116_0x1848;if(_0x1c7acb[_0x4788b7(0x19e)]===![]||!_0x53c4c4[_0x4788b7(0x17d)])return;const _0x418c06=(typeof _0x53c4c4[_0x4788b7(0x1ae)][_0x4788b7(0x170)]===_0x4788b7(0x192)&&_0x53c4c4[_0x4788b7(0x1ae)][_0x4788b7(0x170)]['trim']()?_0x53c4c4['rawFlags'][_0x4788b7(0x170)]:_0x53c4c4[_0x4788b7(0x189)]?.['currentApp']??_0x53c4c4[_0x4788b7(0x189)]?.[_0x4788b7(0x176)])?.[_0x4788b7(0x16f)]();if(!_0x418c06)return;const {getRemoteAppList:_0x249361}=await import(_0x4788b7(0x19d)),_0x255d77=await _0x249361({'env':_0x53c4c4[_0x4788b7(0x186)]??_0x4788b7(0x1ad),'accessKey':_0x53c4c4[_0x4788b7(0x17d)]}),_0x1b0bfa=findAppByName(_0x255d77[_0x4788b7(0x1aa)],_0x418c06);if(_0x1b0bfa&&!isRuntimeAccessibleApp(_0x1b0bfa))throw runtimeInaccessibleAppError(_0x1b0bfa,'\x22'+_0x418c06+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x3f30de,_0x3861ae,_0x58252a){const _0x152683=a116_0x1848;if(_0x3f30de[_0x152683(0x19e)]===![]||!_0x3861ae['accessKey'])return;const {getRemoteAppList:_0x458293}=await import(_0x152683(0x19d)),_0x523457=await _0x458293({'env':_0x3861ae[_0x152683(0x186)]??'production','accessKey':_0x3861ae[_0x152683(0x17d)]}),_0x50cb00=findAppByCode(_0x523457[_0x152683(0x1aa)],_0x58252a);if(_0x50cb00&&!isRuntimeAccessibleApp(_0x50cb00))throw runtimeInaccessibleAppError(_0x50cb00,'appcode\x20\x22'+_0x58252a+'\x22');}export async function runCommand(_0x5c4994,_0xea8b2,_0x3bb1ad=terminalRunnerAdapter){const _0xe4d82=a116_0x1848;assertKnownCommandFlags(_0x5c4994,_0xea8b2[_0xe4d82(0x1ae)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5c4994)?withUpdateNotice(_0x5c4994):_0x5c4994,_0xea8b2,_0x3bb1ad);}function shouldAttachUpdateNotice(_0x134969){const _0x59c02c=a116_0x1848;return![_0x59c02c(0x190),'schema',_0x59c02c(0x182)]['includes'](_0x134969[_0x59c02c(0x18c)]);}function withUpdateNotice(_0x1226fb){return{..._0x1226fb,async 'execute'(_0x438d31){const _0x1ac180=a116_0x1848,_0x449a5d=shouldResolveUpdateNotice(_0x438d31)?resolveLatestUpdateNotice()[_0x1ac180(0x16e)](()=>null):Promise[_0x1ac180(0x191)](null),_0x5d8865=await _0x1226fb['execute'](_0x438d31);return attachUpdateNotice(_0x5d8865,await _0x449a5d);}};}function shouldResolveUpdateNotice(_0x4fa800){const _0x285257=a116_0x1848;return _0x4fa800[_0x285257(0x194)]===_0x285257(0x1a8)&&!_0x4fa800[_0x285257(0x198)];}function attachUpdateNotice(_0x33faee,_0x540fe7){const _0x91eeb3=a116_0x1848;if(!_0x540fe7||!_0x33faee||typeof _0x33faee!==_0x91eeb3(0x185))return _0x33faee;const _0x1e3d40=_0x33faee,_0x91faf0=typeof _0x1e3d40[_0x91eeb3(0x18e)]===_0x91eeb3(0x185)&&_0x1e3d40[_0x91eeb3(0x18e)]!==null?_0x1e3d40[_0x91eeb3(0x18e)]:{};return{..._0x1e3d40,'_notice':{..._0x91faf0,'update':_0x540fe7}};}
@@ -1 +1 @@
1
- (function(_0x1b584c,_0x1ac564){const _0x33c387=a117_0x2607,_0x71a971=_0x1b584c();while(!![]){try{const _0x11d7ee=-parseInt(_0x33c387(0x1f2))/0x1+-parseInt(_0x33c387(0x1ee))/0x2+parseInt(_0x33c387(0x1f3))/0x3+parseInt(_0x33c387(0x1f1))/0x4+parseInt(_0x33c387(0x1eb))/0x5*(-parseInt(_0x33c387(0x1e4))/0x6)+parseInt(_0x33c387(0x1e5))/0x7*(-parseInt(_0x33c387(0x1e3))/0x8)+parseInt(_0x33c387(0x1e6))/0x9*(parseInt(_0x33c387(0x1ec))/0xa);if(_0x11d7ee===_0x1ac564)break;else _0x71a971['push'](_0x71a971['shift']());}catch(_0x32fe31){_0x71a971['push'](_0x71a971['shift']());}}}(a117_0x5202,0x83f60));import{buildSchemaPayload as a117_0x1166e0}from'@lovrabet/cli-framework';function a117_0x2607(_0x2fbdcc,_0x502830){_0x2fbdcc=_0x2fbdcc-0x1e3;const _0x52027a=a117_0x5202();let _0x26078c=_0x52027a[_0x2fbdcc];return _0x26078c;}function a117_0x5202(){const _0x5e279b=['1448fbntAB','18uVvRzw','3577AMIrtm','21393rpbwuU','commands','has','auth','required','1333470wtocQd','4990LwNSdl','../commands/registry.js','1602772DwzXld','filter','requiresAuth','4100692FcjuSD','720124JShQtU','2229897fsUnLp','services','map'];a117_0x5202=function(){return _0x5e279b;};return a117_0x5202();}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 _0xed1e06=a117_0x2607,{serviceRegistry:_0x1c185a,findDefinition:_0x392ded}=await import(_0xed1e06(0x1ed)),_0x50827c=new Set(_0x1c185a[_0xed1e06(0x1f5)](_0x12da13=>_0x12da13['service'])),_0x5d0724=listDynamicServiceEntries()[_0xed1e06(0x1ef)](_0x5df2bd=>!_0x50827c[_0xed1e06(0x1e8)](_0x5df2bd['service'])),_0x3ead57=a117_0x1166e0({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x1c185a,_0x5d0724),'buildAllFlags':buildAllFlags,'findDefinition':(_0x48bb99,_0x2f3347)=>_0x392ded(_0x48bb99,_0x2f3347)??findDynamicServiceDefinition(_0x48bb99,_0x2f3347)});return normalizeSchemaPayload(_0x3ead57);}function normalizeSchemaPayload(_0x304cd5){const _0x3d50da=a117_0x2607;return{..._0x304cd5,'schemaVersion':0x2,'services':_0x304cd5[_0x3d50da(0x1f4)][_0x3d50da(0x1f5)](_0x3743b1=>({..._0x3743b1,'commands':_0x3743b1[_0x3d50da(0x1e7)][_0x3d50da(0x1f5)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x5a8a0e){const _0x4efffe=a117_0x2607,_0x5f5113=_0x5a8a0e;return{..._0x5a8a0e,'auth':_0x5f5113[_0x4efffe(0x1e9)]??(_0x5a8a0e[_0x4efffe(0x1f0)]?_0x4efffe(0x1ea):'none')};}
1
+ (function(_0x11fb84,_0x526bb5){const _0x3fdc7b=a117_0x2aee,_0x1ebaaa=_0x11fb84();while(!![]){try{const _0x1a4b42=-parseInt(_0x3fdc7b(0x86))/0x1*(parseInt(_0x3fdc7b(0x89))/0x2)+-parseInt(_0x3fdc7b(0x81))/0x3+parseInt(_0x3fdc7b(0x88))/0x4*(-parseInt(_0x3fdc7b(0x8b))/0x5)+-parseInt(_0x3fdc7b(0x87))/0x6+-parseInt(_0x3fdc7b(0x8a))/0x7*(parseInt(_0x3fdc7b(0x7a))/0x8)+-parseInt(_0x3fdc7b(0x7f))/0x9+parseInt(_0x3fdc7b(0x82))/0xa*(parseInt(_0x3fdc7b(0x8d))/0xb);if(_0x1a4b42===_0x526bb5)break;else _0x1ebaaa['push'](_0x1ebaaa['shift']());}catch(_0x3acf39){_0x1ebaaa['push'](_0x1ebaaa['shift']());}}}(a117_0x4b73,0x6dec5));import{buildSchemaPayload as a117_0x52bace}from'@lovrabet/cli-framework';function a117_0x2aee(_0x20fd92,_0x2d0014){_0x20fd92=_0x20fd92-0x7a;const _0x4b7317=a117_0x4b73();let _0x2aee0c=_0x4b7317[_0x20fd92];return _0x2aee0c;}import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a117_0x4b73(){const _0x3030d1=['1862182lUOdCy','635515HGJpHC','map','143durbRR','16tjCgZl','requiresAuth','service','none','filter','4989933ipzFDN','has','1539909SLSUHo','2318910JszHXu','required','../commands/registry.js','auth','1nnAixr','4843536HyQMOE','4zmIyQP','60374AdpLgE'];a117_0x4b73=function(){return _0x3030d1;};return a117_0x4b73();}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 _0x8cb7cd=a117_0x2aee,{serviceRegistry:_0x4efb9a,findDefinition:_0x58ca59}=await import(_0x8cb7cd(0x84)),_0x50ab34=new Set(_0x4efb9a[_0x8cb7cd(0x8c)](_0x3a6cad=>_0x3a6cad[_0x8cb7cd(0x7c)])),_0x275dff=listDynamicServiceEntries()[_0x8cb7cd(0x7e)](_0x1df7bb=>!_0x50ab34[_0x8cb7cd(0x80)](_0x1df7bb[_0x8cb7cd(0x7c)])),_0x4a9413=a117_0x52bace({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x4efb9a,_0x275dff),'buildAllFlags':buildAllFlags,'findDefinition':(_0x4aff46,_0x6a95c1)=>_0x58ca59(_0x4aff46,_0x6a95c1)??findDynamicServiceDefinition(_0x4aff46,_0x6a95c1)});return normalizeSchemaPayload(_0x4a9413);}function normalizeSchemaPayload(_0xaf96b1){const _0x42e917=a117_0x2aee;return{..._0xaf96b1,'schemaVersion':0x2,'services':_0xaf96b1['services'][_0x42e917(0x8c)](_0xfaa1fc=>({..._0xfaa1fc,'commands':_0xfaa1fc['commands'][_0x42e917(0x8c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x44fc88){const _0x1e9c41=a117_0x2aee,_0x497206=_0x44fc88;return{..._0x44fc88,'auth':_0x497206[_0x1e9c41(0x85)]??(_0x44fc88[_0x1e9c41(0x7b)]?_0x1e9c41(0x83):_0x1e9c41(0x7d))};}
@@ -1 +1 @@
1
- function a118_0x1e3c(){const _0x49b34a=['slice','535VOLvaq','service','1635528izTTst','findIndex','31163967anMdwn','5817648uMMInU','10cMjGmk','7thrfZi','2340366KnIHPy','4988204TQOiZw','16410ALaRNo','673953ZYmNgm'];a118_0x1e3c=function(){return _0x49b34a;};return a118_0x1e3c();}function a118_0x2b44(_0x3fbdb7,_0x55c65e){_0x3fbdb7=_0x3fbdb7-0x148;const _0x1e3c76=a118_0x1e3c();let _0x2b44cc=_0x1e3c76[_0x3fbdb7];return _0x2b44cc;}(function(_0x330b80,_0x58e9ea){const _0x1fd802=a118_0x2b44,_0x3ca98f=_0x330b80();while(!![]){try{const _0x5889c6=-parseInt(_0x1fd802(0x14a))/0x1+-parseInt(_0x1fd802(0x154))/0x2+-parseInt(_0x1fd802(0x14e))/0x3+-parseInt(_0x1fd802(0x148))/0x4+-parseInt(_0x1fd802(0x14c))/0x5*(-parseInt(_0x1fd802(0x149))/0x6)+-parseInt(_0x1fd802(0x153))/0x7*(-parseInt(_0x1fd802(0x151))/0x8)+parseInt(_0x1fd802(0x150))/0x9*(parseInt(_0x1fd802(0x152))/0xa);if(_0x5889c6===_0x58e9ea)break;else _0x3ca98f['push'](_0x3ca98f['shift']());}catch(_0x16983f){_0x3ca98f['push'](_0x3ca98f['shift']());}}}(a118_0x1e3c,0xce947));export function insertDynamicServicesAfterServiceTree(_0x287491,_0x6a99f0){const _0x1d05dc=a118_0x2b44;if(_0x6a99f0['length']===0x0)return[..._0x287491];const _0x1c4b54=_0x287491[_0x1d05dc(0x14f)](_0x28a502=>_0x28a502[_0x1d05dc(0x14d)]===_0x1d05dc(0x14d));if(_0x1c4b54<0x0)return[..._0x287491,..._0x6a99f0];return[..._0x287491[_0x1d05dc(0x14b)](0x0,_0x1c4b54+0x1),..._0x6a99f0,..._0x287491[_0x1d05dc(0x14b)](_0x1c4b54+0x1)];}
1
+ function a118_0x511e(_0x56d5cd,_0x5ba1ac){_0x56d5cd=_0x56d5cd-0x69;const _0x4d7350=a118_0x4d73();let _0x511ea9=_0x4d7350[_0x56d5cd];return _0x511ea9;}(function(_0x430b66,_0x4b8e8e){const _0x4eaae4=a118_0x511e,_0x44cd7b=_0x430b66();while(!![]){try{const _0x5106e6=-parseInt(_0x4eaae4(0x69))/0x1+-parseInt(_0x4eaae4(0x6b))/0x2*(parseInt(_0x4eaae4(0x6d))/0x3)+-parseInt(_0x4eaae4(0x70))/0x4+-parseInt(_0x4eaae4(0x72))/0x5+-parseInt(_0x4eaae4(0x71))/0x6*(parseInt(_0x4eaae4(0x6a))/0x7)+parseInt(_0x4eaae4(0x74))/0x8*(-parseInt(_0x4eaae4(0x6f))/0x9)+-parseInt(_0x4eaae4(0x73))/0xa*(-parseInt(_0x4eaae4(0x75))/0xb);if(_0x5106e6===_0x4b8e8e)break;else _0x44cd7b['push'](_0x44cd7b['shift']());}catch(_0x568f0d){_0x44cd7b['push'](_0x44cd7b['shift']());}}}(a118_0x4d73,0x4c83a));function a118_0x4d73(){const _0x278e19=['22972cnviqT','72KwsRYc','1507580mTFjDz','2454730avmsuW','1837048ZCtscq','121neKGNH','findIndex','483659eHoTdT','307167rLOrNz','110918GakWvJ','service','33dsUXkd','slice','18tBYmWa'];a118_0x4d73=function(){return _0x278e19;};return a118_0x4d73();}export function insertDynamicServicesAfterServiceTree(_0x2a2d1e,_0x23fa26){const _0x266bac=a118_0x511e;if(_0x23fa26['length']===0x0)return[..._0x2a2d1e];const _0x153b5e=_0x2a2d1e[_0x266bac(0x76)](_0x395399=>_0x395399[_0x266bac(0x6c)]===_0x266bac(0x6c));if(_0x153b5e<0x0)return[..._0x2a2d1e,..._0x23fa26];return[..._0x2a2d1e[_0x266bac(0x6e)](0x0,_0x153b5e+0x1),..._0x23fa26,..._0x2a2d1e[_0x266bac(0x6e)](_0x153b5e+0x1)];}
@@ -1 +1 @@
1
- function a119_0x5826(_0x518270,_0x5ea4a7){_0x518270=_0x518270-0xd3;var _0x30f1ec=a119_0x30f1();var _0x582663=_0x30f1ec[_0x518270];return _0x582663;}(function(_0x27978d,_0x3c72ec){var _0x345007=a119_0x5826,_0x42ad77=_0x27978d();while(!![]){try{var _0x16f8b3=-parseInt(_0x345007(0xdd))/0x1+-parseInt(_0x345007(0xda))/0x2*(parseInt(_0x345007(0xd4))/0x3)+parseInt(_0x345007(0xd8))/0x4*(-parseInt(_0x345007(0xd9))/0x5)+parseInt(_0x345007(0xd6))/0x6+-parseInt(_0x345007(0xd7))/0x7*(-parseInt(_0x345007(0xdc))/0x8)+-parseInt(_0x345007(0xd5))/0x9+parseInt(_0x345007(0xd3))/0xa*(parseInt(_0x345007(0xdb))/0xb);if(_0x16f8b3===_0x3c72ec)break;else _0x42ad77['push'](_0x42ad77['shift']());}catch(_0x1262d6){_0x42ad77['push'](_0x42ad77['shift']());}}}(a119_0x30f1,0x82db7));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a119_0x30f1(){var _0xb84664=['10NtNqvg','760281wApVQv','7263531ZXROAm','4317852XuXSEc','7QvqvlB','366788TsAgYd','5BpRXlC','2Wvular','12987887ZNwowa','3907616yfqdIY','700637EtMRgz'];a119_0x30f1=function(){return _0xb84664;};return a119_0x30f1();}
1
+ (function(_0x557336,_0xf72f3c){var _0x2e8b7d=a119_0x5a91,_0x4f9412=_0x557336();while(!![]){try{var _0xb80157=parseInt(_0x2e8b7d(0x17a))/0x1*(parseInt(_0x2e8b7d(0x179))/0x2)+parseInt(_0x2e8b7d(0x175))/0x3*(-parseInt(_0x2e8b7d(0x178))/0x4)+parseInt(_0x2e8b7d(0x176))/0x5+-parseInt(_0x2e8b7d(0x17d))/0x6*(-parseInt(_0x2e8b7d(0x17c))/0x7)+-parseInt(_0x2e8b7d(0x174))/0x8+parseInt(_0x2e8b7d(0x177))/0x9+parseInt(_0x2e8b7d(0x17b))/0xa;if(_0xb80157===_0xf72f3c)break;else _0x4f9412['push'](_0x4f9412['shift']());}catch(_0x18983e){_0x4f9412['push'](_0x4f9412['shift']());}}}(a119_0x1412,0x4b9d1));function a119_0x5a91(_0x40d6b2,_0x8019cc){_0x40d6b2=_0x40d6b2-0x174;var _0x1412e1=a119_0x1412();var _0x5a91eb=_0x1412e1[_0x40d6b2];return _0x5a91eb;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a119_0x1412(){var _0xaf324d=['245KMmGio','3924660pnZnKE','21HnfAzs','608376qyMFsp','3162288NHQVYO','102gWiiWG','137855dyWpRz','2629539tseMhk','53612WkkJuw','1178ErRcbu'];a119_0x1412=function(){return _0xaf324d;};return a119_0x1412();}
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.2.4";
2
- export declare const GIT_TAG = "v2.2.4";
3
- export declare const GIT_COMMIT = "919e7d7";
4
- export declare const BUILD_TIME = "2026-08-18T09:50:13.705Z";
1
+ export declare const VERSION = "2.2.5-beta.2";
2
+ export declare const GIT_TAG = "v2.2.5-beta.2";
3
+ export declare const GIT_COMMIT = "d7590af";
4
+ export declare const BUILD_TIME = "2026-08-19T14:29:29.738Z";
@@ -1 +1 @@
1
- (function(_0x59b156,_0x4b4b2e){const _0x188d3f=a120_0x373b,_0x1c8b79=_0x59b156();while(!![]){try{const _0x38d7a5=-parseInt(_0x188d3f(0xf6))/0x1*(-parseInt(_0x188d3f(0xec))/0x2)+-parseInt(_0x188d3f(0xf4))/0x3*(-parseInt(_0x188d3f(0xf3))/0x4)+parseInt(_0x188d3f(0xee))/0x5+parseInt(_0x188d3f(0xf1))/0x6+parseInt(_0x188d3f(0xed))/0x7+parseInt(_0x188d3f(0xef))/0x8*(parseInt(_0x188d3f(0xf5))/0x9)+parseInt(_0x188d3f(0xf0))/0xa*(-parseInt(_0x188d3f(0xf2))/0xb);if(_0x38d7a5===_0x4b4b2e)break;else _0x1c8b79['push'](_0x1c8b79['shift']());}catch(_0x3b535e){_0x1c8b79['push'](_0x1c8b79['shift']());}}}(a120_0x56c1,0x44bf4));export const VERSION='2.2.4';function a120_0x373b(_0x3b3419,_0x357940){_0x3b3419=_0x3b3419-0xec;const _0x56c159=a120_0x56c1();let _0x373b3d=_0x56c159[_0x3b3419];return _0x373b3d;}export const GIT_TAG='v2.2.4';export const GIT_COMMIT='919e7d7';export const BUILD_TIME='2026-08-18T09:50:13.705Z';function a120_0x56c1(){const _0x4222bf=['1649244ZvYrsB','3hqwzeB','27trFakn','1DGtqAw','146638qNQxnd','2110710OiQkYn','470355QOwZzU','807656yAdJcn','8010bNEyDS','2856042tbyzek','18931QzajGZ'];a120_0x56c1=function(){return _0x4222bf;};return a120_0x56c1();}
1
+ const a120_0x3313ab=a120_0x2867;(function(_0x28a2e3,_0x3aeea3){const _0x583149=a120_0x2867,_0x5d1384=_0x28a2e3();while(!![]){try{const _0x2975cb=-parseInt(_0x583149(0xf8))/0x1+-parseInt(_0x583149(0x101))/0x2*(-parseInt(_0x583149(0xfd))/0x3)+parseInt(_0x583149(0xff))/0x4+-parseInt(_0x583149(0x100))/0x5+parseInt(_0x583149(0xfe))/0x6+-parseInt(_0x583149(0xf9))/0x7*(parseInt(_0x583149(0xfb))/0x8)+parseInt(_0x583149(0xfc))/0x9;if(_0x2975cb===_0x3aeea3)break;else _0x5d1384['push'](_0x5d1384['shift']());}catch(_0x285e58){_0x5d1384['push'](_0x5d1384['shift']());}}}(a120_0x3b4a,0x68965));export const VERSION=a120_0x3313ab(0xf7);export const GIT_TAG='v2.2.5-beta.2';export const GIT_COMMIT='d7590af';function a120_0x2867(_0x2fb206,_0x5b1d49){_0x2fb206=_0x2fb206-0xf7;const _0x3b4a84=a120_0x3b4a();let _0x28679d=_0x3b4a84[_0x2fb206];return _0x28679d;}function a120_0x3b4a(){const _0x5be249=['2Eoxvyt','2.2.5-beta.2','131689sHrzlx','727258IyGaSG','2026-08-19T14:29:29.738Z','56SalKuy','4408200RkGfXw','102156hAoRSZ','89622qfoizo','3080000QppYqX','107265OHuyOu'];a120_0x3b4a=function(){return _0x5be249;};return a120_0x3b4a();}export const BUILD_TIME=a120_0x3313ab(0xfa);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2eee54,_0x174536){const _0x52036c=a121_0x20cf,_0x2e8460=_0x2eee54();while(!![]){try{const _0x5dd85d=parseInt(_0x52036c(0x112))/0x1+parseInt(_0x52036c(0x115))/0x2+-parseInt(_0x52036c(0x117))/0x3*(parseInt(_0x52036c(0x10c))/0x4)+parseInt(_0x52036c(0x113))/0x5+parseInt(_0x52036c(0x10d))/0x6+-parseInt(_0x52036c(0x118))/0x7*(-parseInt(_0x52036c(0x110))/0x8)+-parseInt(_0x52036c(0x111))/0x9;if(_0x5dd85d===_0x174536)break;else _0x2e8460['push'](_0x2e8460['shift']());}catch(_0x1519a1){_0x2e8460['push'](_0x2e8460['shift']());}}}(a121_0x2fad,0x6eab5));function a121_0x20cf(_0x3412c8,_0x491c85){_0x3412c8=_0x3412c8-0x10c;const _0x2fadbf=a121_0x2fad();let _0x20cf7e=_0x2fadbf[_0x3412c8];return _0x20cf7e;}import{jsx as a121_0x2f4ab1,jsxs as a121_0x75f85a}from'react/jsx-runtime';import{useEffect}from'react';function a121_0x2fad(){const _0x14803f=['498550UjJFbu','green','408142ulIvey','column','588VStMhn','1503971xGKAxa','\x20to\x20view\x20available\x20commands.','3484YrlHLG','855534RgZTtk','\x20--help','\x20\x20Use\x20','24TKtQWZ','9866502iYSCWC','629366LWdwqd'];a121_0x2fad=function(){return _0x14803f;};return a121_0x2fad();}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x594175=a121_0x20cf,{exit:_0x5c20ff}=useApp();return useEffect(()=>{_0x5c20ff();},[_0x5c20ff]),a121_0x75f85a(Box,{'flexDirection':_0x594175(0x116),'marginTop':0x1,'marginBottom':0x1,'children':[a121_0x2f4ab1(Box,{'children':a121_0x2f4ab1(Text,{'bold':!![],'color':_0x594175(0x114),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a121_0x75f85a(Box,{'marginTop':0x1,'children':[a121_0x2f4ab1(Text,{'dimColor':!![],'children':_0x594175(0x10f)}),a121_0x2f4ab1(Text,{'bold':!![],'color':_0x594175(0x114),'children':CLI_BIN_NAME+_0x594175(0x10e)}),a121_0x2f4ab1(Text,{'dimColor':!![],'children':_0x594175(0x119)})]})]});}
1
+ (function(_0x57dd66,_0x489c88){const _0xf65d0f=a121_0x997e,_0x5a0f39=_0x57dd66();while(!![]){try{const _0x3a9e23=parseInt(_0xf65d0f(0x9f))/0x1*(-parseInt(_0xf65d0f(0x9c))/0x2)+-parseInt(_0xf65d0f(0x9e))/0x3+-parseInt(_0xf65d0f(0x9b))/0x4*(-parseInt(_0xf65d0f(0xa5))/0x5)+parseInt(_0xf65d0f(0x9d))/0x6*(-parseInt(_0xf65d0f(0xa1))/0x7)+parseInt(_0xf65d0f(0xa2))/0x8+-parseInt(_0xf65d0f(0xa0))/0x9*(parseInt(_0xf65d0f(0xa7))/0xa)+parseInt(_0xf65d0f(0xa3))/0xb;if(_0x3a9e23===_0x489c88)break;else _0x5a0f39['push'](_0x5a0f39['shift']());}catch(_0x4a2020){_0x5a0f39['push'](_0x5a0f39['shift']());}}}(a121_0x2754,0xb1beb));function a121_0x2754(){const _0x5316ee=['\x20to\x20view\x20available\x20commands.','4510030XmPtlS','green','1100kxdDrw','\x20\x20Use\x20','4jHGhhk','846IpqTHF','12aZqxsU','3113781XvyznX','3121tqkaZD','41598lZkpaW','1801555VLtDWe','11307904cgLLdF','19731899gPlpyA'];a121_0x2754=function(){return _0x5316ee;};return a121_0x2754();}function a121_0x997e(_0xe3427a,_0x4fec68){_0xe3427a=_0xe3427a-0x9a;const _0x275483=a121_0x2754();let _0x997edf=_0x275483[_0xe3427a];return _0x997edf;}import{jsx as a121_0x5dcdb9,jsxs as a121_0x40a2cb}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 _0x5b2035=a121_0x997e,{exit:_0x1ba9f9}=useApp();return useEffect(()=>{_0x1ba9f9();},[_0x1ba9f9]),a121_0x40a2cb(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a121_0x5dcdb9(Box,{'children':a121_0x5dcdb9(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a121_0x40a2cb(Box,{'marginTop':0x1,'children':[a121_0x5dcdb9(Text,{'dimColor':!![],'children':_0x5b2035(0x9a)}),a121_0x5dcdb9(Text,{'bold':!![],'color':_0x5b2035(0xa6),'children':CLI_BIN_NAME+'\x20--help'}),a121_0x5dcdb9(Text,{'dimColor':!![],'children':_0x5b2035(0xa4)})]})]});}
@@ -1 +1 @@
1
- function a122_0x24cf(_0x51af66,_0x2106dd){_0x51af66=_0x51af66-0x10c;const _0x3d73c3=a122_0x3d73();let _0x24cf2a=_0x3d73c3[_0x51af66];return _0x24cf2a;}(function(_0x5efb42,_0x41c59f){const _0x552320=a122_0x24cf,_0x163759=_0x5efb42();while(!![]){try{const _0x31f541=parseInt(_0x552320(0x122))/0x1*(parseInt(_0x552320(0x121))/0x2)+-parseInt(_0x552320(0x115))/0x3+parseInt(_0x552320(0x119))/0x4*(-parseInt(_0x552320(0x116))/0x5)+-parseInt(_0x552320(0x118))/0x6*(parseInt(_0x552320(0x10f))/0x7)+-parseInt(_0x552320(0x114))/0x8+parseInt(_0x552320(0x11c))/0x9+-parseInt(_0x552320(0x117))/0xa*(-parseInt(_0x552320(0x113))/0xb);if(_0x31f541===_0x41c59f)break;else _0x163759['push'](_0x163759['shift']());}catch(_0x491c67){_0x163759['push'](_0x163759['shift']());}}}(a122_0x3d73,0x37db2));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a122_0x3d73(){const _0x2a730a=['627531TzzzWc','755qCyqDJ','10SgpbjL','330210YaNufF','3932HjMRxf','Repair\x20with:\x20','\x20at\x20','1546533aRrwQk','error','Installation\x20failed','installedPath','skillVersion','23186vYQYHP','14TIAMyb','[BUILTIN_SKILL_INSTALL_','installed','already\x20current','warn','code','FAILED','log','14kUjcsw','Lovrabet\x20Built-in\x20Skill\x20','\x20via\x20skills@latest','repairCommand','5269649xEcfFZ','933856fjUdcI'];a122_0x3d73=function(){return _0x2a730a;};return a122_0x3d73();}export async function runPostinstall(_0x24d9a9={}){const _0xc3286c=a122_0x24cf,_0x489d2c=installBuiltinSkill(_0x24d9a9);if(_0x489d2c['ok']){const _0x42d14d=_0x489d2c['changed']?_0xc3286c(0x124):_0xc3286c(0x125),_0x2a7cc0=_0x489d2c[_0xc3286c(0x11f)]?_0xc3286c(0x11b)+_0x489d2c[_0xc3286c(0x11f)]:_0xc3286c(0x111);return console[_0xc3286c(0x10e)](_0xc3286c(0x110)+_0x489d2c[_0xc3286c(0x120)]+'\x20'+_0x42d14d+_0x2a7cc0),_0x489d2c;}const _0x321973=_0xc3286c(0x123)+(_0x489d2c[_0xc3286c(0x10c)]??_0xc3286c(0x10d))+']\x20'+(_0x489d2c[_0xc3286c(0x11d)]??_0xc3286c(0x11e))+'.\x20'+(_0xc3286c(0x11a)+_0x489d2c[_0xc3286c(0x112)]);if(_0x489d2c[_0xc3286c(0x10c)]==='SOURCE_INVALID')throw new Error(_0x321973);return console[_0xc3286c(0x126)](_0x321973),_0x489d2c;}
1
+ (function(_0x329215,_0x49f388){const _0x28851f=a122_0x5c36,_0x3bf705=_0x329215();while(!![]){try{const _0x4d4c79=-parseInt(_0x28851f(0xbe))/0x1+parseInt(_0x28851f(0xbc))/0x2+-parseInt(_0x28851f(0xca))/0x3*(-parseInt(_0x28851f(0xb7))/0x4)+-parseInt(_0x28851f(0xc0))/0x5+parseInt(_0x28851f(0xc1))/0x6*(parseInt(_0x28851f(0xbd))/0x7)+parseInt(_0x28851f(0xb4))/0x8*(parseInt(_0x28851f(0xc8))/0x9)+-parseInt(_0x28851f(0xc7))/0xa;if(_0x4d4c79===_0x49f388)break;else _0x3bf705['push'](_0x3bf705['shift']());}catch(_0x1d0e5a){_0x3bf705['push'](_0x3bf705['shift']());}}}(a122_0x2af2,0xb843b));function a122_0x2af2(){const _0x547f63=['\x20via\x20skills@latest','already\x20current','2106908rPpvTy','68733eifllR','176791QamfBO','[BUILTIN_SKILL_INSTALL_','6237215irjJnV','582noJxWm','error','\x20at\x20','Installation\x20failed','installedPath','skillVersion','4367990MAmImO','638883XMlxPk','installed','595383LMIGNE','code','changed','24dmcybk','SOURCE_INVALID','repairCommand','8oLoLJS','log','warn'];a122_0x2af2=function(){return _0x547f63;};return a122_0x2af2();}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a122_0x5c36(_0x5626a0,_0x3d0eea){_0x5626a0=_0x5626a0-0xb2;const _0x2af2a0=a122_0x2af2();let _0x5c36cb=_0x2af2a0[_0x5626a0];return _0x5c36cb;}export async function runPostinstall(_0x41ae67={}){const _0x45d1c1=a122_0x5c36,_0x5208d0=installBuiltinSkill(_0x41ae67);if(_0x5208d0['ok']){const _0x39ee13=_0x5208d0[_0x45d1c1(0xb3)]?_0x45d1c1(0xc9):_0x45d1c1(0xbb),_0x4a89cf=_0x5208d0['installedPath']?_0x45d1c1(0xc3)+_0x5208d0[_0x45d1c1(0xc5)]:_0x45d1c1(0xba);return console[_0x45d1c1(0xb8)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x5208d0[_0x45d1c1(0xc6)]+'\x20'+_0x39ee13+_0x4a89cf),_0x5208d0;}const _0x2a9eb3=_0x45d1c1(0xbf)+(_0x5208d0['code']??'FAILED')+']\x20'+(_0x5208d0[_0x45d1c1(0xc2)]??_0x45d1c1(0xc4))+'.\x20'+('Repair\x20with:\x20'+_0x5208d0[_0x45d1c1(0xb6)]);if(_0x5208d0[_0x45d1c1(0xb2)]===_0x45d1c1(0xb5))throw new Error(_0x2a9eb3);return console[_0x45d1c1(0xb9)](_0x2a9eb3),_0x5208d0;}
@@ -1 +1 @@
1
- (function(_0x32d8db,_0x12849f){const _0x11eb6e=a123_0xec2e,_0x932e73=_0x32d8db();while(!![]){try{const _0x5bce02=-parseInt(_0x11eb6e(0x17c))/0x1+parseInt(_0x11eb6e(0x189))/0x2+parseInt(_0x11eb6e(0x182))/0x3*(-parseInt(_0x11eb6e(0x17b))/0x4)+-parseInt(_0x11eb6e(0x17f))/0x5+parseInt(_0x11eb6e(0x184))/0x6*(parseInt(_0x11eb6e(0x185))/0x7)+-parseInt(_0x11eb6e(0x18c))/0x8+parseInt(_0x11eb6e(0x17a))/0x9*(parseInt(_0x11eb6e(0x188))/0xa);if(_0x5bce02===_0x12849f)break;else _0x932e73['push'](_0x932e73['shift']());}catch(_0x535a17){_0x932e73['push'](_0x932e73['shift']());}}}(a123_0x80e2,0x40191));const DESCRIPTION_MAX_LENGTH=0x1f4;function a123_0x80e2(){const _0x2ca906=['confirmationDescription','string','2358470tmLbUh','write','risk','18693uhPILb','description','90HJGCYN','97853fpTbLm','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','执行该写入操作','13190zvIxSD','135306neWGMD','high-risk-write','replace','2555880yiqCxb','8199PUwuFL','244YQXqfC','45132SdTVbg'];a123_0x80e2=function(){return _0x2ca906;};return a123_0x80e2();}function a123_0xec2e(_0x301f5c,_0x1db359){_0x301f5c=_0x301f5c-0x17a;const _0x80e2cc=a123_0x80e2();let _0xec2e9b=_0x80e2cc[_0x301f5c];return _0xec2e9b;}export function buildLovrabetConfirmationRequest(_0x5dbf01,_0x3d60b,_0x3ec973){const _0x2d7968=a123_0xec2e,_0x2d40ca=normalizeText(_0x5dbf01[_0x2d7968(0x17d)],DESCRIPTION_MAX_LENGTH),_0x54f25a=normalizeText(_0x5dbf01[_0x2d7968(0x183)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x3d60b,'risk':requireWriteRisk(_0x5dbf01),'description':_0x2d40ca||_0x54f25a||_0x2d7968(0x187),..._0x3ec973?{'signal':_0x3ec973}:{}};}function requireWriteRisk(_0x45dd9f){const _0x1c467d=a123_0xec2e;if(_0x45dd9f[_0x1c467d(0x181)]===_0x1c467d(0x180)||_0x45dd9f['risk']===_0x1c467d(0x18a))return _0x45dd9f[_0x1c467d(0x181)];throw new Error(_0x1c467d(0x186));}function normalizeText(_0x36faca,_0x185aae){const _0x49ce4d=a123_0xec2e;if(typeof _0x36faca!==_0x49ce4d(0x17e))return'';return _0x36faca['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x49ce4d(0x18b)](/\s+/g,'\x20')['trim']()['slice'](0x0,_0x185aae);}
1
+ (function(_0x3faa3b,_0x258b1e){const _0x7d61ca=a123_0x1496,_0x27e757=_0x3faa3b();while(!![]){try{const _0x208e60=-parseInt(_0x7d61ca(0x88))/0x1+-parseInt(_0x7d61ca(0x7b))/0x2+-parseInt(_0x7d61ca(0x8b))/0x3+-parseInt(_0x7d61ca(0x81))/0x4*(parseInt(_0x7d61ca(0x7f))/0x5)+-parseInt(_0x7d61ca(0x87))/0x6*(parseInt(_0x7d61ca(0x84))/0x7)+-parseInt(_0x7d61ca(0x85))/0x8*(-parseInt(_0x7d61ca(0x83))/0x9)+-parseInt(_0x7d61ca(0x86))/0xa*(-parseInt(_0x7d61ca(0x82))/0xb);if(_0x208e60===_0x258b1e)break;else _0x27e757['push'](_0x27e757['shift']());}catch(_0x37f071){_0x27e757['push'](_0x27e757['shift']());}}}(a123_0x1e3c,0xaa1ca));function a123_0x1496(_0x351add,_0x570884){_0x351add=_0x351add-0x7a;const _0x1e3c09=a123_0x1e3c();let _0x149614=_0x1e3c09[_0x351add];return _0x149614;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x2d270d,_0x5bf832,_0x389c8f){const _0x3d807b=a123_0x1496,_0x2ba4aa=normalizeText(_0x2d270d[_0x3d807b(0x7c)],DESCRIPTION_MAX_LENGTH),_0x3b6aba=normalizeText(_0x2d270d[_0x3d807b(0x89)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x5bf832,'risk':requireWriteRisk(_0x2d270d),'description':_0x2ba4aa||_0x3b6aba||'执行该写入操作',..._0x389c8f?{'signal':_0x389c8f}:{}};}function requireWriteRisk(_0x14d44d){const _0x320f58=a123_0x1496;if(_0x14d44d['risk']===_0x320f58(0x80)||_0x14d44d[_0x320f58(0x7d)]==='high-risk-write')return _0x14d44d[_0x320f58(0x7d)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function a123_0x1e3c(){const _0x496411=['4206zrYIzD','946455VjRnlo','description','slice','1444851aFGHVU','trim','2125522sZdjxy','confirmationDescription','risk','replace','100RGpdwt','write','235652wKYASM','11sZsRso','47457kCaiag','8365dbzvPv','424yYCDlC','49240970rsqeSH'];a123_0x1e3c=function(){return _0x496411;};return a123_0x1e3c();}function normalizeText(_0x32b39d,_0x4dce67){const _0x1e9698=a123_0x1496;if(typeof _0x32b39d!=='string')return'';return _0x32b39d[_0x1e9698(0x7e)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x1e9698(0x7e)](/\s+/g,'\x20')[_0x1e9698(0x7a)]()[_0x1e9698(0x8a)](0x0,_0x4dce67);}
@@ -1 +1 @@
1
- (function(_0x288486,_0x23c3b0){const _0x35e0e1=a124_0x3f7c,_0x5d0931=_0x288486();while(!![]){try{const _0x543d0d=parseInt(_0x35e0e1(0xe4))/0x1*(parseInt(_0x35e0e1(0xe2))/0x2)+-parseInt(_0x35e0e1(0xdc))/0x3+parseInt(_0x35e0e1(0xe8))/0x4+-parseInt(_0x35e0e1(0xe1))/0x5*(-parseInt(_0x35e0e1(0xe6))/0x6)+-parseInt(_0x35e0e1(0xd9))/0x7+-parseInt(_0x35e0e1(0xe5))/0x8+-parseInt(_0x35e0e1(0xe7))/0x9;if(_0x543d0d===_0x23c3b0)break;else _0x5d0931['push'](_0x5d0931['shift']());}catch(_0x5973ed){_0x5d0931['push'](_0x5d0931['shift']());}}}(a124_0x5b39,0xb882a));function a124_0x5b39(){const _0x1f9165=['writeEventSubject','trim','service','lovrabet.write.completed','3695150XrfnGj','1852wGTGbj','command','1124phYqgi','11526152HbWkkz','6zoImDn','1082151NCSLMA','6041528PCNJvQ','write','risk','4176585wYdUUD','join','split','1130457sbuPdb'];a124_0x5b39=function(){return _0x1f9165;};return a124_0x5b39();}export function canonicalLovrabetOperation(_0x195f87){const _0x4e7fca=a124_0x3f7c;return[_0x195f87[_0x4e7fca(0xdf)],..._0x195f87[_0x4e7fca(0xe3)][_0x4e7fca(0xde)]()[_0x4e7fca(0xdb)](/\s+/)]['filter'](Boolean)[_0x4e7fca(0xda)]('.');}function a124_0x3f7c(_0x87500,_0x198b96){_0x87500=_0x87500-0xd7;const _0x5b3934=a124_0x5b39();let _0x3f7cd0=_0x5b3934[_0x87500];return _0x3f7cd0;}export function createLovrabetWriteMetadata(_0x520edd,_0x3bee7b,_0x5d2e69,_0x32a3f2){const _0x1957fe=a124_0x3f7c;if(_0x32a3f2||_0x5d2e69['ok']!==!![]||_0x520edd['risk']!==_0x1957fe(0xd7)&&_0x520edd[_0x1957fe(0xd8)]!=='high-risk-write')return undefined;const _0xace2a9=_0x520edd[_0x1957fe(0xdd)]?.(_0x5d2e69),_0x7e6748={'type':_0x1957fe(0xe0),'operation':_0x3bee7b,'risk':_0x520edd[_0x1957fe(0xd8)],..._0xace2a9?{'subject':_0xace2a9}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x7e6748}};}
1
+ function a124_0x5acf(_0x2c2ac9,_0x58d541){_0x2c2ac9=_0x2c2ac9-0x1b5;const _0x40bf41=a124_0x40bf();let _0x5acf82=_0x40bf41[_0x2c2ac9];return _0x5acf82;}(function(_0x247410,_0x312bae){const _0x3586c8=a124_0x5acf,_0x2ec97e=_0x247410();while(!![]){try{const _0x57d183=-parseInt(_0x3586c8(0x1be))/0x1*(parseInt(_0x3586c8(0x1ba))/0x2)+-parseInt(_0x3586c8(0x1b6))/0x3+parseInt(_0x3586c8(0x1c3))/0x4+-parseInt(_0x3586c8(0x1bf))/0x5*(-parseInt(_0x3586c8(0x1b8))/0x6)+-parseInt(_0x3586c8(0x1bd))/0x7+-parseInt(_0x3586c8(0x1bc))/0x8*(-parseInt(_0x3586c8(0x1b5))/0x9)+parseInt(_0x3586c8(0x1c5))/0xa;if(_0x57d183===_0x312bae)break;else _0x2ec97e['push'](_0x2ec97e['shift']());}catch(_0x14f9a3){_0x2ec97e['push'](_0x2ec97e['shift']());}}}(a124_0x40bf,0xd9ace));export function canonicalLovrabetOperation(_0x280d2a){const _0x40f153=a124_0x5acf;return[_0x280d2a[_0x40f153(0x1c0)],..._0x280d2a[_0x40f153(0x1c2)]['trim']()[_0x40f153(0x1c6)](/\s+/)]['filter'](Boolean)[_0x40f153(0x1b7)]('.');}function a124_0x40bf(){const _0xf15760=['3742739mqIROs','60379KjrmCw','70ftmWXq','service','writeEventSubject','command','907528fJmltS','high-risk-write','23211360GBMPfY','split','1276812uIpByP','5026536hDhHzG','join','357666pfBjyG','risk','14lBUMqf','write','8pchJiD'];a124_0x40bf=function(){return _0xf15760;};return a124_0x40bf();}export function createLovrabetWriteMetadata(_0x13166e,_0x5d0e39,_0x172d1e,_0xa003d8){const _0x673161=a124_0x5acf;if(_0xa003d8||_0x172d1e['ok']!==!![]||_0x13166e[_0x673161(0x1b9)]!==_0x673161(0x1bb)&&_0x13166e['risk']!==_0x673161(0x1c4))return undefined;const _0x460dbe=_0x13166e[_0x673161(0x1c1)]?.(_0x172d1e),_0x15a7ae={'type':'lovrabet.write.completed','operation':_0x5d0e39,'risk':_0x13166e[_0x673161(0x1b9)],..._0x460dbe?{'subject':_0x460dbe}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x15a7ae}};}
@@ -1 +1 @@
1
- (function(_0x405af1,_0x40a28a){const _0x1c3392=a125_0x18d2,_0x1e729b=_0x405af1();while(!![]){try{const _0x3c39ff=parseInt(_0x1c3392(0x18a))/0x1+parseInt(_0x1c3392(0x19d))/0x2*(parseInt(_0x1c3392(0x1a3))/0x3)+-parseInt(_0x1c3392(0x181))/0x4*(parseInt(_0x1c3392(0x19b))/0x5)+-parseInt(_0x1c3392(0x17f))/0x6+-parseInt(_0x1c3392(0x19f))/0x7*(parseInt(_0x1c3392(0x184))/0x8)+parseInt(_0x1c3392(0x186))/0x9*(-parseInt(_0x1c3392(0x195))/0xa)+parseInt(_0x1c3392(0x197))/0xb*(parseInt(_0x1c3392(0x189))/0xc);if(_0x3c39ff===_0x40a28a)break;else _0x1e729b['push'](_0x1e729b['shift']());}catch(_0x477f78){_0x1e729b['push'](_0x1e729b['shift']());}}}(a125_0x150d,0x7aeea));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:_0x1569d3,command:_0x47564d,risk:_0x307061,dryRun:_0x1a0559}){const _0x5574f2=a125_0x18d2;return JSON[_0x5574f2(0x17d)]({'ok':_0x1569d3['ok'],'command':_0x47564d,'risk':_0x307061,..._0x1a0559?{'dryRun':!![]}:{},..._0x1569d3[_0x5574f2(0x18f)]!==undefined?{'data':_0x1569d3[_0x5574f2(0x18f)]}:{},..._0x1569d3[_0x5574f2(0x196)]?{'message':_0x1569d3['message']}:{}});}};function a125_0x18d2(_0x500587,_0x225660){_0x500587=_0x500587-0x17c;const _0x150dec=a125_0x150d();let _0x18d21d=_0x150dec[_0x500587];return _0x18d21d;}export async function invokeLovrabet(_0x550ed0,_0x3d9f86){const _0x1b1e72=a125_0x18d2;throwIfAborted(_0x3d9f86['signal']);const _0x4aedea=await resolveLovrabetInvocation(_0x550ed0),_0x160158=canonicalLovrabetOperation(_0x4aedea[_0x1b1e72(0x192)]);return await confirmWriteBeforeQueue(_0x4aedea['definition'],_0x4aedea[_0x1b1e72(0x185)],_0x160158,_0x3d9f86),runSerialized(async()=>{const _0x3c0713=_0x1b1e72;throwIfAborted(_0x3d9f86[_0x3c0713(0x19c)]);const _0x5c7c96={},_0x21c40e=buildConfigFromFlags(_0x4aedea[_0x3c0713(0x185)]);await initGlobalEnvironment(_0x21c40e);const _0x4bd3e2=createPipelineEnv(_0x21c40e,{..._0x4aedea[_0x3c0713(0x185)],'yes':_0x4aedea[_0x3c0713(0x192)][_0x3c0713(0x199)]===_0x3c0713(0x18d)?!![]:_0x4aedea['rawFlags'][_0x3c0713(0x18e)],'nonInteractive':!![]});_0x4bd3e2[_0x3c0713(0x183)]=_0x4aedea[_0x3c0713(0x183)],_0x4bd3e2[_0x3c0713(0x19e)]=!![],_0x4bd3e2[_0x3c0713(0x19a)]=_0x3c0713(0x18d);const _0x4cee59=withAbortSignal(_0x4aedea['definition'],_0x3d9f86['signal']),_0x2e87aa=createLovrabetRunnerAdapter({'formatOutput'(_0x3f71ce,_0x318888){const _0x62831e=_0x3c0713;_0x5c7c96[_0x62831e(0x187)]=_0x3f71ce,_0x5c7c96[_0x62831e(0x188)]=_0x318888[_0x62831e(0x188)],_0x5c7c96[_0x62831e(0x199)]=_0x318888['risk'],_0x5c7c96['format']=_0x318888[_0x62831e(0x17c)],_0x5c7c96[_0x62831e(0x194)]=_0x318888[_0x62831e(0x194)]===!![];},async 'confirmHighRisk'(){const _0x2df300=_0x3c0713;throw new Error(_0x2df300(0x1a4));}});try{await runCommand(_0x4cee59,_0x4bd3e2,_0x2e87aa);if(!_0x5c7c96[_0x3c0713(0x187)]||!_0x5c7c96[_0x3c0713(0x188)]||!_0x5c7c96[_0x3c0713(0x199)]||!_0x5c7c96[_0x3c0713(0x17c)])throw new Error(_0x3c0713(0x1a1));const _0xbd845b=_0x3d9f86[_0x3c0713(0x193)]??defaultPresentation,_0x3ef3cf=_0x5c7c96[_0x3c0713(0x194)]===!![],_0x372a26={'result':_0x5c7c96[_0x3c0713(0x187)],'command':_0x5c7c96['command'],'operation':_0x160158,'risk':_0x5c7c96[_0x3c0713(0x199)],'format':_0x5c7c96['format'],'dryRun':_0x3ef3cf},_0x559c59=createLovrabetWriteMetadata(_0x4aedea[_0x3c0713(0x192)],_0x160158,_0x5c7c96[_0x3c0713(0x187)],_0x3ef3cf);let _0x1b6c84;try{_0x1b6c84=await _0xbd845b[_0x3c0713(0x191)](_0x372a26);}catch(_0x4618e6){if(!_0x559c59||_0xbd845b===defaultPresentation)throw _0x4618e6;_0x1b6c84=await defaultPresentation[_0x3c0713(0x191)](_0x372a26);}return{'operation':_0x160158,'risk':_0x5c7c96[_0x3c0713(0x199)],'mode':_0x3ef3cf?_0x3c0713(0x18c):_0x3c0713(0x182),'result':_0x5c7c96[_0x3c0713(0x187)],'output':_0x1b6c84,..._0x559c59?{'metadata':_0x559c59}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x411d02,_0x1f0a6d,_0x39dcd4,_0x4946ce){const _0x4c2c07=a125_0x18d2;if(_0x1f0a6d[_0x4c2c07(0x194)]===!![]||_0x411d02[_0x4c2c07(0x199)]!==_0x4c2c07(0x190)&&_0x411d02[_0x4c2c07(0x199)]!==_0x4c2c07(0x18d))return;await _0x4946ce[_0x4c2c07(0x1a0)][_0x4c2c07(0x198)](buildLovrabetConfirmationRequest(_0x411d02,_0x39dcd4,_0x4946ce[_0x4c2c07(0x19c)]));}function withAbortSignal(_0x207557,_0x188473){return{..._0x207557,async 'execute'(_0x33302e){return throwIfAborted(_0x188473),_0x207557['execute'](_0x33302e);}};}function throwIfAborted(_0x41665e){const _0x4bc3fe=a125_0x18d2;if(_0x41665e?.[_0x4bc3fe(0x180)])throw _0x41665e[_0x4bc3fe(0x17e)]instanceof Error?_0x41665e[_0x4bc3fe(0x17e)]:new DOMException(_0x4bc3fe(0x1a2),_0x4bc3fe(0x18b));}function a125_0x150d(){const _0xc73be2=['confirmation','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','Lovrabet\x20invocation\x20aborted.','21PlVKmA','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','format','stringify','reason','4240710nfBjvT','aborted','1155020oRYSiq','execute','args','8nQxpcy','rawFlags','1233AqVNaX','result','command','69156vYMDLC','611437sZfKhT','AbortError','dry-run','high-risk-write','yes','data','write','present','definition','presentation','dryRun','23420KUuGIH','message','1551ubMxQR','confirm','risk','riskLevel','5PoDdHW','signal','216046aFcqWz','isNonInteractive','2521799XtQjXQ'];a125_0x150d=function(){return _0xc73be2;};return a125_0x150d();}
1
+ (function(_0xcbc042,_0x5a2d61){const _0x42e14a=a125_0x24cc,_0x4b89f8=_0xcbc042();while(!![]){try{const _0x47954f=-parseInt(_0x42e14a(0xa5))/0x1+-parseInt(_0x42e14a(0x8e))/0x2+parseInt(_0x42e14a(0xaa))/0x3+-parseInt(_0x42e14a(0x95))/0x4*(parseInt(_0x42e14a(0xa9))/0x5)+parseInt(_0x42e14a(0xb0))/0x6+parseInt(_0x42e14a(0xa8))/0x7+-parseInt(_0x42e14a(0xab))/0x8*(-parseInt(_0x42e14a(0xa1))/0x9);if(_0x47954f===_0x5a2d61)break;else _0x4b89f8['push'](_0x4b89f8['shift']());}catch(_0x4fcfa2){_0x4b89f8['push'](_0x4b89f8['shift']());}}}(a125_0x4e9a,0x98dba));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a125_0x4e9a(){const _0x6c5b17=['high-risk-write','stringify','message','execute','format','AbortError','isNonInteractive','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','riskLevel','present','Lovrabet\x20invocation\x20aborted.','1441863UABldd','dry-run','yes','command','572326JpawWa','result','dryRun','4369281DyGRHw','95FkjxWz','1496043nSRJdo','64TZkZzs','confirm','args','risk','definition','5513472ycYhoW','1857862RQFmaN','aborted','signal','confirmation','rawFlags','reason','write','251804kEtOGw'];a125_0x4e9a=function(){return _0x6c5b17;};return a125_0x4e9a();}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:_0x297ff9,command:_0x1dc547,risk:_0x398536,dryRun:_0x34b5d7}){const _0x196068=a125_0x24cc;return JSON[_0x196068(0x97)]({'ok':_0x297ff9['ok'],'command':_0x1dc547,'risk':_0x398536,..._0x34b5d7?{'dryRun':!![]}:{},..._0x297ff9['data']!==undefined?{'data':_0x297ff9['data']}:{},..._0x297ff9['message']?{'message':_0x297ff9[_0x196068(0x98)]}:{}});}};export async function invokeLovrabet(_0x730239,_0x1e9bee){const _0x3191a9=a125_0x24cc;throwIfAborted(_0x1e9bee[_0x3191a9(0x90)]);const _0x62d773=await resolveLovrabetInvocation(_0x730239),_0x3ccb64=canonicalLovrabetOperation(_0x62d773[_0x3191a9(0xaf)]);return await confirmWriteBeforeQueue(_0x62d773[_0x3191a9(0xaf)],_0x62d773[_0x3191a9(0x92)],_0x3ccb64,_0x1e9bee),runSerialized(async()=>{const _0x18c924=_0x3191a9;throwIfAborted(_0x1e9bee[_0x18c924(0x90)]);const _0x6171ee={},_0x2b8a34=buildConfigFromFlags(_0x62d773[_0x18c924(0x92)]);await initGlobalEnvironment(_0x2b8a34);const _0x26e53d=createPipelineEnv(_0x2b8a34,{..._0x62d773[_0x18c924(0x92)],'yes':_0x62d773[_0x18c924(0xaf)][_0x18c924(0xae)]==='high-risk-write'?!![]:_0x62d773['rawFlags'][_0x18c924(0xa3)],'nonInteractive':!![]});_0x26e53d[_0x18c924(0xad)]=_0x62d773['args'],_0x26e53d[_0x18c924(0x9c)]=!![],_0x26e53d[_0x18c924(0x9e)]=_0x18c924(0x96);const _0x27383f=withAbortSignal(_0x62d773[_0x18c924(0xaf)],_0x1e9bee[_0x18c924(0x90)]),_0x205d74=createLovrabetRunnerAdapter({'formatOutput'(_0x1850e5,_0x237166){const _0xfac0f1=_0x18c924;_0x6171ee[_0xfac0f1(0xa6)]=_0x1850e5,_0x6171ee['command']=_0x237166['command'],_0x6171ee[_0xfac0f1(0xae)]=_0x237166[_0xfac0f1(0xae)],_0x6171ee[_0xfac0f1(0x9a)]=_0x237166[_0xfac0f1(0x9a)],_0x6171ee[_0xfac0f1(0xa7)]=_0x237166[_0xfac0f1(0xa7)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x27383f,_0x26e53d,_0x205d74);if(!_0x6171ee[_0x18c924(0xa6)]||!_0x6171ee['command']||!_0x6171ee[_0x18c924(0xae)]||!_0x6171ee['format'])throw new Error(_0x18c924(0x9d));const _0x2bce1=_0x1e9bee['presentation']??defaultPresentation,_0x21f045=_0x6171ee['dryRun']===!![],_0x1ec064={'result':_0x6171ee[_0x18c924(0xa6)],'command':_0x6171ee[_0x18c924(0xa4)],'operation':_0x3ccb64,'risk':_0x6171ee[_0x18c924(0xae)],'format':_0x6171ee['format'],'dryRun':_0x21f045},_0x3e2d9a=createLovrabetWriteMetadata(_0x62d773[_0x18c924(0xaf)],_0x3ccb64,_0x6171ee['result'],_0x21f045);let _0x23df5f;try{_0x23df5f=await _0x2bce1['present'](_0x1ec064);}catch(_0x8e7100){if(!_0x3e2d9a||_0x2bce1===defaultPresentation)throw _0x8e7100;_0x23df5f=await defaultPresentation[_0x18c924(0x9f)](_0x1ec064);}return{'operation':_0x3ccb64,'risk':_0x6171ee[_0x18c924(0xae)],'mode':_0x21f045?_0x18c924(0xa2):'execute','result':_0x6171ee[_0x18c924(0xa6)],'output':_0x23df5f,..._0x3e2d9a?{'metadata':_0x3e2d9a}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4cb28a,_0x1c0c81,_0x3c1e44,_0x2346c7){const _0x115893=a125_0x24cc;if(_0x1c0c81['dryRun']===!![]||_0x4cb28a[_0x115893(0xae)]!==_0x115893(0x94)&&_0x4cb28a[_0x115893(0xae)]!==_0x115893(0x96))return;await _0x2346c7[_0x115893(0x91)][_0x115893(0xac)](buildLovrabetConfirmationRequest(_0x4cb28a,_0x3c1e44,_0x2346c7['signal']));}function a125_0x24cc(_0x3fb14d,_0x44fb53){_0x3fb14d=_0x3fb14d-0x8e;const _0x4e9a1a=a125_0x4e9a();let _0x24cca1=_0x4e9a1a[_0x3fb14d];return _0x24cca1;}function withAbortSignal(_0x3ae3b0,_0xee5683){return{..._0x3ae3b0,async 'execute'(_0x51c5ed){const _0x4d0c5f=a125_0x24cc;return throwIfAborted(_0xee5683),_0x3ae3b0[_0x4d0c5f(0x99)](_0x51c5ed);}};}function throwIfAborted(_0xe2d761){const _0x1c0d39=a125_0x24cc;if(_0xe2d761?.[_0x1c0d39(0x8f)])throw _0xe2d761[_0x1c0d39(0x93)]instanceof Error?_0xe2d761['reason']:new DOMException(_0x1c0d39(0xa0),_0x1c0d39(0x9b));}
@@ -1 +1 @@
1
- function a126_0x2695(_0x1f5498,_0xcacaf9){_0x1f5498=_0x1f5498-0x126;const _0x51f59d=a126_0x51f5();let _0x2695ec=_0x51f59d[_0x1f5498];return _0x2695ec;}(function(_0x4ec0fa,_0x312309){const _0x4cb6a5=a126_0x2695,_0x28b753=_0x4ec0fa();while(!![]){try{const _0x17b4d2=parseInt(_0x4cb6a5(0x12d))/0x1+parseInt(_0x4cb6a5(0x12a))/0x2+-parseInt(_0x4cb6a5(0x128))/0x3*(parseInt(_0x4cb6a5(0x12b))/0x4)+parseInt(_0x4cb6a5(0x126))/0x5+-parseInt(_0x4cb6a5(0x127))/0x6+-parseInt(_0x4cb6a5(0x12e))/0x7*(-parseInt(_0x4cb6a5(0x129))/0x8)+-parseInt(_0x4cb6a5(0x12c))/0x9;if(_0x17b4d2===_0x312309)break;else _0x28b753['push'](_0x28b753['shift']());}catch(_0x442664){_0x28b753['push'](_0x28b753['shift']());}}}(a126_0x51f5,0x5c1da));let tail=Promise['resolve']();export async function runSerialized(_0x3ee55f){const _0x398e6d=tail;let _0x3b8e64;tail=new Promise(_0x5908de=>{_0x3b8e64=_0x5908de;}),await _0x398e6d['catch'](()=>undefined);try{return await _0x3ee55f();}finally{_0x3b8e64();}}function a126_0x51f5(){const _0x499ce2=['354546ecqgTP','3670429ppHRBm','2852795HZcPhZ','2006016IxbyyQ','10659MTXfyt','8wUpwrR','1170716rIeZaK','68kTvbsO','11364903FSNFWY'];a126_0x51f5=function(){return _0x499ce2;};return a126_0x51f5();}
1
+ function a126_0x4b96(){const _0x4c645b=['887570ZBwhdR','resolve','14436LnzOWN','14673810BcwDVk','2289826aYtekd','1395ukzRrh','252wzjGYI','1598766oTEJro','19714dfBaNF','16088ulcnVN','41EzJKuF'];a126_0x4b96=function(){return _0x4c645b;};return a126_0x4b96();}const a126_0x1c34fb=a126_0x4057;(function(_0x18f905,_0x15e3a3){const _0x421a7c=a126_0x4057,_0x592b40=_0x18f905();while(!![]){try{const _0x2c7754=parseInt(_0x421a7c(0x15a))/0x1*(-parseInt(_0x421a7c(0x163))/0x2)+-parseInt(_0x421a7c(0x15d))/0x3*(parseInt(_0x421a7c(0x161))/0x4)+-parseInt(_0x421a7c(0x15b))/0x5+parseInt(_0x421a7c(0x162))/0x6+-parseInt(_0x421a7c(0x15f))/0x7+parseInt(_0x421a7c(0x159))/0x8*(-parseInt(_0x421a7c(0x160))/0x9)+parseInt(_0x421a7c(0x15e))/0xa;if(_0x2c7754===_0x15e3a3)break;else _0x592b40['push'](_0x592b40['shift']());}catch(_0x585e22){_0x592b40['push'](_0x592b40['shift']());}}}(a126_0x4b96,0x33524));function a126_0x4057(_0x3ae847,_0x157a21){_0x3ae847=_0x3ae847-0x159;const _0x4b9646=a126_0x4b96();let _0x405794=_0x4b9646[_0x3ae847];return _0x405794;}let tail=Promise[a126_0x1c34fb(0x15c)]();export async function runSerialized(_0x3d2f0c){const _0x431a04=tail;let _0x2f3d5e;tail=new Promise(_0x544292=>{_0x2f3d5e=_0x544292;}),await _0x431a04['catch'](()=>undefined);try{return await _0x3d2f0c();}finally{_0x2f3d5e();}}
@@ -1 +1 @@
1
- (function(_0x52b586,_0x235067){const _0x5b279c=a127_0x1557,_0x538866=_0x52b586();while(!![]){try{const _0x8e90c0=-parseInt(_0x5b279c(0x168))/0x1*(-parseInt(_0x5b279c(0x159))/0x2)+-parseInt(_0x5b279c(0x15f))/0x3*(parseInt(_0x5b279c(0x16a))/0x4)+parseInt(_0x5b279c(0x161))/0x5*(parseInt(_0x5b279c(0x15c))/0x6)+-parseInt(_0x5b279c(0x164))/0x7*(-parseInt(_0x5b279c(0x15d))/0x8)+-parseInt(_0x5b279c(0x157))/0x9+-parseInt(_0x5b279c(0x156))/0xa*(parseInt(_0x5b279c(0x16e))/0xb)+-parseInt(_0x5b279c(0x167))/0xc*(parseInt(_0x5b279c(0x169))/0xd);if(_0x8e90c0===_0x235067)break;else _0x538866['push'](_0x538866['shift']());}catch(_0xbbf7f0){_0x538866['push'](_0x538866['shift']());}}}(a127_0x21f4,0x63104));function a127_0x1557(_0x1dfa4d,_0x224c5e){_0x1dfa4d=_0x1dfa4d-0x155;const _0x21f49a=a127_0x21f4();let _0x1557cd=_0x21f49a[_0x1dfa4d];return _0x1557cd;}import a127_0x33e602 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a127_0x21f4(){const _0x4b996f=['../commands/registry.js','slice','message','285912aaMQAh','input','10NbChsW','2320578sTcefX','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','440246wLOshy','hint','args','42HWklbf','16ntRcro','assign','177834eEXoPG','definition','99035NViTmC','unknownCommand','validation','1376179HRTRfc','flags','join','516AcnHZf','2qAUPdU','67483kWMTjW','4NDnoEA'];a127_0x21f4=function(){return _0x4b996f;};return a127_0x21f4();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x10d1c2){const _0x5c823b=a127_0x1557,_0x327e81=a127_0x33e602('',{'importMeta':import.meta,'argv':_0x10d1c2,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x3516e9=[..._0x327e81[_0x5c823b(0x155)]],_0x55ba1a=_0x327e81[_0x5c823b(0x165)];await correctFlags(_0x55ba1a);const _0x3dd5f0=_0x3516e9[0x0];if(!_0x3dd5f0)throw CliErrors[_0x5c823b(0x163)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x2b26ce=resolveRemovedCommand(_0x3dd5f0,_0x3516e9[0x1]);if(_0x2b26ce)throw CliErrors[_0x5c823b(0x163)](_0x2b26ce[_0x5c823b(0x16d)],_0x2b26ce[_0x5c823b(0x15a)]);if(!isKnownService(_0x3dd5f0)){const _0x22b3ce=resolveDynamicServiceCommand(_0x3516e9,_0x55ba1a);if(!_0x22b3ce)throw CliErrors['unknownCommand'](_0x3516e9[_0x5c823b(0x166)]('\x20'));return Object[_0x5c823b(0x15e)](_0x55ba1a,_0x22b3ce[_0x5c823b(0x165)]),{'definition':_0x22b3ce[_0x5c823b(0x160)],'rawFlags':_0x55ba1a,'args':_0x22b3ce[_0x5c823b(0x15b)]};}const _0x35b5f1=getServiceEntry(_0x3dd5f0),_0x8ee60=_0x3516e9[0x1]||_0x35b5f1['defaultCommand'];if(!_0x8ee60)throw CliErrors[_0x5c823b(0x163)](_0x5c823b(0x158)+_0x3dd5f0+'\x22.');const _0x4f62b1=findDefinition(_0x3dd5f0,_0x8ee60);if(!_0x4f62b1)throw CliErrors[_0x5c823b(0x162)](_0x3dd5f0+'\x20'+_0x8ee60);return{'definition':_0x4f62b1,'rawFlags':_0x55ba1a,'args':_0x3516e9[_0x5c823b(0x16c)](0x2)};}async function correctFlags(_0x2c3928){const _0x1f8a0=a127_0x1557;try{const {correctFlags:_0xe9f57c}=await import('../framework/preparse.js'),{getAllDefinitions:_0x3793a2}=await import(_0x1f8a0(0x16b)),_0xee748e=_0x3793a2()['flatMap'](_0x55f211=>_0x55f211[_0x1f8a0(0x165)]??[]),_0x591ad8=_0xe9f57c(_0x2c3928,_0xee748e);Object[_0x1f8a0(0x15e)](_0x2c3928,_0x591ad8[_0x1f8a0(0x165)]);}catch{}}
1
+ (function(_0x176710,_0x529af3){const _0x414fd2=a127_0x1eca,_0x4d7946=_0x176710();while(!![]){try{const _0x4e097f=parseInt(_0x414fd2(0x12a))/0x1*(-parseInt(_0x414fd2(0x127))/0x2)+-parseInt(_0x414fd2(0x122))/0x3*(-parseInt(_0x414fd2(0x11a))/0x4)+-parseInt(_0x414fd2(0x130))/0x5*(-parseInt(_0x414fd2(0x121))/0x6)+-parseInt(_0x414fd2(0x118))/0x7*(parseInt(_0x414fd2(0x12f))/0x8)+-parseInt(_0x414fd2(0x11c))/0x9+-parseInt(_0x414fd2(0x12c))/0xa+-parseInt(_0x414fd2(0x11f))/0xb*(-parseInt(_0x414fd2(0x12b))/0xc);if(_0x4e097f===_0x529af3)break;else _0x4d7946['push'](_0x4d7946['shift']());}catch(_0xb8e671){_0x4d7946['push'](_0x4d7946['shift']());}}}(a127_0x5571,0xa7713));import a127_0x1b08b3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a127_0x1eca(_0x57a04f,_0x31900f){_0x57a04f=_0x57a04f-0x118;const _0x5571ca=a127_0x5571();let _0x1eca87=_0x5571ca[_0x57a04f];return _0x1eca87;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x10e952){const _0x1281e9=a127_0x1eca,_0x57687d=a127_0x1b08b3('',{'importMeta':import.meta,'argv':_0x10e952,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2e7625=[..._0x57687d[_0x1281e9(0x129)]],_0x4cafcb=_0x57687d[_0x1281e9(0x11d)];await correctFlags(_0x4cafcb);const _0x543801=_0x2e7625[0x0];if(!_0x543801)throw CliErrors[_0x1281e9(0x125)](_0x1281e9(0x132));const _0x4f5410=resolveRemovedCommand(_0x543801,_0x2e7625[0x1]);if(_0x4f5410)throw CliErrors[_0x1281e9(0x125)](_0x4f5410[_0x1281e9(0x123)],_0x4f5410[_0x1281e9(0x11e)]);if(!isKnownService(_0x543801)){const _0x378815=resolveDynamicServiceCommand(_0x2e7625,_0x4cafcb);if(!_0x378815)throw CliErrors[_0x1281e9(0x126)](_0x2e7625[_0x1281e9(0x120)]('\x20'));return Object['assign'](_0x4cafcb,_0x378815[_0x1281e9(0x11d)]),{'definition':_0x378815[_0x1281e9(0x131)],'rawFlags':_0x4cafcb,'args':_0x378815[_0x1281e9(0x11b)]};}const _0x376538=getServiceEntry(_0x543801),_0x35559e=_0x2e7625[0x1]||_0x376538['defaultCommand'];if(!_0x35559e)throw CliErrors[_0x1281e9(0x125)](_0x1281e9(0x128)+_0x543801+'\x22.');const _0x78a612=findDefinition(_0x543801,_0x35559e);if(!_0x78a612)throw CliErrors['unknownCommand'](_0x543801+'\x20'+_0x35559e);return{'definition':_0x78a612,'rawFlags':_0x4cafcb,'args':_0x2e7625[_0x1281e9(0x12d)](0x2)};}async function correctFlags(_0x36ca05){const _0xa85338=a127_0x1eca;try{const {correctFlags:_0x22515a}=await import(_0xa85338(0x119)),{getAllDefinitions:_0x208dd5}=await import(_0xa85338(0x124)),_0x3c791b=_0x208dd5()['flatMap'](_0x49586b=>_0x49586b[_0xa85338(0x11d)]??[]),_0x46ea20=_0x22515a(_0x36ca05,_0x3c791b);Object[_0xa85338(0x12e)](_0x36ca05,_0x46ea20[_0xa85338(0x11d)]);}catch{}}function a127_0x5571(){const _0x472306=['message','../commands/registry.js','validation','unknownCommand','30632UBOhTp','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','input','79MqAIzq','6524472WjcDbD','3237320ScnKwY','slice','assign','6353672XNqobN','20MCibxd','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','7mviPmY','../framework/preparse.js','1532NwTkdj','args','2649933pouHmr','flags','hint','33IFYpmB','join','642156RvPToY','9783dhOTjH'];a127_0x5571=function(){return _0x472306;};return a127_0x5571();}
@@ -1 +1 @@
1
- const a129_0x498046=a129_0x5202;(function(_0x2f08db,_0x15da65){const _0x262ba9=a129_0x5202,_0x458c5a=_0x2f08db();while(!![]){try{const _0x46ab44=parseInt(_0x262ba9(0x118))/0x1*(-parseInt(_0x262ba9(0x104))/0x2)+parseInt(_0x262ba9(0x12e))/0x3+-parseInt(_0x262ba9(0x102))/0x4*(-parseInt(_0x262ba9(0xfc))/0x5)+parseInt(_0x262ba9(0xfd))/0x6+-parseInt(_0x262ba9(0x105))/0x7*(parseInt(_0x262ba9(0x11b))/0x8)+-parseInt(_0x262ba9(0x107))/0x9*(-parseInt(_0x262ba9(0xfa))/0xa)+-parseInt(_0x262ba9(0x11d))/0xb;if(_0x46ab44===_0x15da65)break;else _0x458c5a['push'](_0x458c5a['shift']());}catch(_0x5bf6ca){_0x458c5a['push'](_0x458c5a['shift']());}}}(a129_0x3be1,0xe2609));import{createHash}from'node:crypto';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='lovrabet\x20cli-skill\x20install',SKILL_NAME=a129_0x498046(0x110);function frontmatterValue(_0x202d8d,_0x8bde57){const _0x4e869d=a129_0x498046;return _0x202d8d[_0x4e869d(0xf6)](new RegExp('^'+_0x8bde57+_0x4e869d(0x111),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x5b241e,_0x1f769c=_0x5b241e){const _0x3c2320=a129_0x498046;return readdirSync(_0x1f769c,{'withFileTypes':!![]})['flatMap'](_0x77c2e2=>{const _0x2ab4c2=a129_0x5202,_0x44d1c6=join(_0x1f769c,_0x77c2e2['name']),_0x5cb787=lstatSync(_0x44d1c6);if(_0x5cb787[_0x2ab4c2(0x129)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x44d1c6);if(_0x5cb787[_0x2ab4c2(0x106)]())return listFiles(_0x5b241e,_0x44d1c6);if(!_0x5cb787[_0x2ab4c2(0x128)]())throw new Error(_0x2ab4c2(0x108)+_0x44d1c6);return[relative(_0x5b241e,_0x44d1c6)['split'](sep)['join']('/')];})[_0x3c2320(0x130)]((_0x14e0b8,_0x7694ab)=>_0x14e0b8<_0x7694ab?-0x1:_0x14e0b8>_0x7694ab?0x1:0x0);}function a129_0x3be1(){const _0x497f07=['absent','message','skillVersion','version_mismatch','lovrabet',':\x5cs*(.+)$','lovrabet.manifest.json','packageRoot','split','SKILL.md','unverifiable','digest','60257VBWfMb','state','utf8','8NbyiUy','INSTALL_FAILED','32141219GkPRBL','Unsafe\x20manifest\x20path:\x20','manifest','packageVersion','stdio','unknown','schemaVersion','installedPath','every','pipe','SOURCE_INVALID','isFile','isSymbolicLink','files','present','hex','current','3384861WQniFy','error','sort','reason','VERIFY_FAILED','update','match','includes','skills','version','5494730iGCMSj','path','1843575RijjAd','2896002OsFpvY','parse','missing','Installed\x20Skill\x20state\x20is\x20','status','20yJwuMw','name','22cHsKzM','4136657KqcnDk','isDirectory','27VmUUvs','Unsupported\x20Skill\x20entry:\x20','skills@latest\x20exited\x20','home','length'];a129_0x3be1=function(){return _0x497f07;};return a129_0x3be1();}function digestFiles(_0x38b845,_0x2f5cad){const _0x5623a0=a129_0x498046,_0x3e2929=createHash('sha256');for(const _0x1f4976 of _0x2f5cad){if(_0x1f4976['startsWith']('/')||_0x1f4976['split']('/')['includes']('..')||_0x1f4976[_0x5623a0(0xf7)]('\x5c'))throw new Error(_0x5623a0(0x11e)+_0x1f4976);_0x3e2929[_0x5623a0(0xf5)](_0x1f4976),_0x3e2929['update']('\x00'),_0x3e2929['update'](readFileSync(join(_0x38b845,..._0x1f4976[_0x5623a0(0x114)]('/')))),_0x3e2929[_0x5623a0(0xf5)]('\x00');}return _0x3e2929[_0x5623a0(0x117)](_0x5623a0(0x12c));}function sameFiles(_0x442eba,_0x304557){const _0x276b40=a129_0x498046;return _0x442eba[_0x276b40(0x10b)]===_0x304557[_0x276b40(0x10b)]&&_0x442eba[_0x276b40(0x125)]((_0x53b6a9,_0x1ffd3f)=>_0x53b6a9===_0x304557[_0x1ffd3f]);}function readSource(_0xd11224){const _0xafb639=a129_0x498046,_0x5b7405=JSON[_0xafb639(0xfe)](readFileSync(join(_0xd11224,'package.json'),'utf8')),_0x2df2c2=JSON[_0xafb639(0xfe)](readFileSync(join(_0xd11224,_0xafb639(0xf8),_0xafb639(0x112)),_0xafb639(0x11a))),_0x36a855=join(_0xd11224,_0xafb639(0xf8),SKILL_NAME),_0x410ffe=frontmatterValue(readFileSync(join(_0x36a855,_0xafb639(0x115)),'utf8'),'version'),_0x54f9e0=listFiles(_0x36a855);if(_0x2df2c2[_0xafb639(0x123)]!==0x1||_0x2df2c2[_0xafb639(0x103)]!==SKILL_NAME||!_0x5b7405['version']||_0x2df2c2[_0xafb639(0x120)]!==_0x5b7405[_0xafb639(0xf9)]||_0x2df2c2[_0xafb639(0x10e)]!==_0x5b7405[_0xafb639(0xf9)]||_0x410ffe!==_0x5b7405[_0xafb639(0xf9)]||!sameFiles(_0x54f9e0,_0x2df2c2['files'])||digestFiles(_0x36a855,_0x54f9e0)!==_0x2df2c2[_0xafb639(0x117)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x5b7405['version'],'skillVersion':_0x410ffe,'root':_0x36a855,'manifest':_0x2df2c2};}function installedSkillPath(_0x202bbb){const _0x26b506=a129_0x498046,_0x140a10=resolveInstalledSkill(SKILL_NAME,{'home':_0x202bbb});if(_0x140a10[_0x26b506(0x119)]===_0x26b506(0x12b))return{'state':'present','path':dirname(_0x140a10['path'])};if(_0x140a10[_0x26b506(0x119)]===_0x26b506(0x10c))return{'state':_0x26b506(0xff)};return{'state':_0x26b506(0x116),'reason':_0x140a10[_0x26b506(0x131)]};}function a129_0x5202(_0x186cd5,_0x4a1f71){_0x186cd5=_0x186cd5-0xf4;const _0x3be198=a129_0x3be1();let _0x520207=_0x3be198[_0x186cd5];return _0x520207;}export function inspectInstalledBuiltinSkillVersion(_0x1b9298,_0x1d32b3={}){const _0x17b760=a129_0x498046,_0x3c2081=installedSkillPath(_0x1d32b3['home']??homedir());if(_0x3c2081[_0x17b760(0x119)]===_0x17b760(0xff))return{'state':_0x17b760(0xff),'expectedVersion':_0x1b9298,'repairCommand':REPAIR_COMMAND};if(_0x3c2081[_0x17b760(0x119)]===_0x17b760(0x116))return{'state':_0x17b760(0x116),'expectedVersion':_0x1b9298,'reason':_0x3c2081[_0x17b760(0x131)],'repairCommand':REPAIR_COMMAND};try{const _0xfa3652=frontmatterValue(readFileSync(join(_0x3c2081[_0x17b760(0xfb)],_0x17b760(0x115)),_0x17b760(0x11a)),_0x17b760(0xf9));return{'state':_0xfa3652===_0x1b9298?_0x17b760(0x12d):_0x17b760(0x10f),'expectedVersion':_0x1b9298,'skillVersion':_0xfa3652,'installedPath':_0x3c2081[_0x17b760(0xfb)],'repairCommand':REPAIR_COMMAND};}catch(_0x4587d1){return{'state':_0x17b760(0x116),'expectedVersion':_0x1b9298,'installedPath':_0x3c2081['path'],'reason':_0x4587d1 instanceof Error?_0x4587d1[_0x17b760(0x10d)]:String(_0x4587d1),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2aa50b={}){const _0x1cd0bc=a129_0x498046,_0x28c896=_0x2aa50b[_0x1cd0bc(0x113)]??DEFAULT_PACKAGE_ROOT;let _0x335dc8;try{_0x335dc8=readSource(_0x28c896);}catch(_0x241fa1){return{'state':_0x1cd0bc(0x116),'packageVersion':_0x1cd0bc(0x122),'reason':_0x241fa1 instanceof Error?_0x241fa1[_0x1cd0bc(0x10d)]:String(_0x241fa1),'repairCommand':REPAIR_COMMAND};}const _0x13682a=installedSkillPath(_0x2aa50b[_0x1cd0bc(0x10a)]??homedir());if(_0x13682a[_0x1cd0bc(0x119)]===_0x1cd0bc(0xff))return{'state':_0x1cd0bc(0xff),'packageVersion':_0x335dc8['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x13682a['state']===_0x1cd0bc(0x116))return{'state':_0x1cd0bc(0x116),'packageVersion':_0x335dc8[_0x1cd0bc(0x120)],'reason':_0x13682a[_0x1cd0bc(0x131)],'repairCommand':REPAIR_COMMAND};try{const _0x19a58e=frontmatterValue(readFileSync(join(_0x13682a['path'],_0x1cd0bc(0x115)),_0x1cd0bc(0x11a)),'version');if(_0x19a58e!==_0x335dc8[_0x1cd0bc(0x10e)])return{'state':'version_mismatch','packageVersion':_0x335dc8['packageVersion'],'skillVersion':_0x19a58e,'installedPath':_0x13682a[_0x1cd0bc(0xfb)],'repairCommand':REPAIR_COMMAND};const _0x4faa5e=listFiles(_0x13682a[_0x1cd0bc(0xfb)]),_0x10016d=digestFiles(_0x13682a[_0x1cd0bc(0xfb)],_0x4faa5e);return{'state':sameFiles(_0x4faa5e,_0x335dc8[_0x1cd0bc(0x11f)][_0x1cd0bc(0x12a)])&&_0x10016d===_0x335dc8[_0x1cd0bc(0x11f)][_0x1cd0bc(0x117)]?_0x1cd0bc(0x12d):'content_mismatch','packageVersion':_0x335dc8[_0x1cd0bc(0x120)],'skillVersion':_0x19a58e,'installedPath':_0x13682a[_0x1cd0bc(0xfb)],'digest':_0x10016d,'repairCommand':REPAIR_COMMAND};}catch(_0x140823){return{'state':_0x1cd0bc(0x116),'packageVersion':_0x335dc8['packageVersion'],'installedPath':_0x13682a[_0x1cd0bc(0xfb)],'reason':_0x140823 instanceof Error?_0x140823[_0x1cd0bc(0x10d)]:String(_0x140823),'repairCommand':REPAIR_COMMAND};}}function failure(_0x247f03,_0x332174,_0x244998,_0x167d0a){const _0x41df72=a129_0x498046;return{'ok':![],'code':_0x247f03,'packageVersion':_0x332174[_0x41df72(0x120)],'skillVersion':_0x332174[_0x41df72(0x10e)],'installedPath':_0x167d0a,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x244998 instanceof Error?_0x244998['message']:String(_0x244998)};}export function installBuiltinSkill(_0x42aafb={}){const _0x376781=a129_0x498046,_0x5a1407=_0x42aafb[_0x376781(0x113)]??DEFAULT_PACKAGE_ROOT,_0x34ddba=_0x42aafb[_0x376781(0x10a)]??homedir();let _0x53e9e6;try{_0x53e9e6=readSource(_0x5a1407);}catch(_0x46ea2a){return failure(_0x376781(0x127),{'packageVersion':'unknown','skillVersion':'unknown'},_0x46ea2a);}const _0x11ef50=inspectBuiltinSkill({'packageRoot':_0x5a1407,'home':_0x34ddba}),_0x1c8c76=runNpxSkillsAddGlobal(_0x5a1407,_0x53e9e6['root'],{'stdio':_0x42aafb[_0x376781(0x121)]??_0x376781(0x126),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x34ddba}});if(_0x1c8c76['skipped'])return{'ok':!![],'packageVersion':_0x53e9e6[_0x376781(0x120)],'skillVersion':_0x53e9e6[_0x376781(0x10e)],'installedPath':_0x11ef50['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x1c8c76['ok'])return failure(_0x376781(0x11c),_0x53e9e6,_0x1c8c76[_0x376781(0x12f)]??_0x376781(0x109)+_0x1c8c76[_0x376781(0x101)]);const _0x5113b6=inspectBuiltinSkill({'packageRoot':_0x5a1407,'home':_0x34ddba});if(_0x5113b6[_0x376781(0x119)]!==_0x376781(0x12d))return failure(_0x376781(0xf4),_0x53e9e6,_0x5113b6['reason']??_0x376781(0x100)+_0x5113b6[_0x376781(0x119)],_0x5113b6[_0x376781(0x124)]);return{'ok':!![],'packageVersion':_0x53e9e6[_0x376781(0x120)],'skillVersion':_0x53e9e6['skillVersion'],'installedPath':_0x5113b6[_0x376781(0x124)],'changed':_0x11ef50[_0x376781(0x119)]!==_0x376781(0x12d),'repairCommand':REPAIR_COMMAND};}
1
+ const a129_0x34b036=a129_0xfea9;(function(_0x5ee653,_0x379229){const _0x458c53=a129_0xfea9,_0x581c74=_0x5ee653();while(!![]){try{const _0x3e037a=parseInt(_0x458c53(0x9d))/0x1*(parseInt(_0x458c53(0xc4))/0x2)+-parseInt(_0x458c53(0xad))/0x3*(-parseInt(_0x458c53(0xc0))/0x4)+-parseInt(_0x458c53(0xde))/0x5*(parseInt(_0x458c53(0xd6))/0x6)+-parseInt(_0x458c53(0x9f))/0x7*(parseInt(_0x458c53(0xbd))/0x8)+-parseInt(_0x458c53(0xb3))/0x9*(parseInt(_0x458c53(0xd5))/0xa)+parseInt(_0x458c53(0x9c))/0xb*(parseInt(_0x458c53(0xa1))/0xc)+parseInt(_0x458c53(0xba))/0xd*(parseInt(_0x458c53(0xc7))/0xe);if(_0x3e037a===_0x379229)break;else _0x581c74['push'](_0x581c74['shift']());}catch(_0x3516bd){_0x581c74['push'](_0x581c74['shift']());}}}(a129_0xc35f,0xb7343));import{createHash}from'node:crypto';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';function a129_0xfea9(_0x390594,_0x41cac0){_0x390594=_0x390594-0x9a;const _0xc35fc0=a129_0xc35f();let _0xfea99d=_0xc35fc0[_0x390594];return _0xfea99d;}import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a129_0x34b036(0xd4),SKILL_NAME=a129_0x34b036(0xa0);function frontmatterValue(_0x34945d,_0xf84f62){const _0xc1cc35=a129_0x34b036;return _0x34945d[_0xc1cc35(0xc5)](new RegExp('^'+_0xf84f62+':\x5cs*(.+)$','m'))?.[0x1]?.[_0xc1cc35(0xb8)]()??'';}function listFiles(_0x1f2990,_0x32114b=_0x1f2990){const _0x18f2f7=a129_0x34b036;return readdirSync(_0x32114b,{'withFileTypes':!![]})['flatMap'](_0x1b593c=>{const _0x11f022=a129_0xfea9,_0x321f98=join(_0x32114b,_0x1b593c['name']),_0x1516bf=lstatSync(_0x321f98);if(_0x1516bf['isSymbolicLink']())throw new Error(_0x11f022(0xc3)+_0x321f98);if(_0x1516bf[_0x11f022(0xdb)]())return listFiles(_0x1f2990,_0x321f98);if(!_0x1516bf['isFile']())throw new Error(_0x11f022(0xb5)+_0x321f98);return[relative(_0x1f2990,_0x321f98)[_0x11f022(0xb9)](sep)[_0x11f022(0xd3)]('/')];})[_0x18f2f7(0xbb)]((_0xd2e6ec,_0x1b1ed3)=>_0xd2e6ec<_0x1b1ed3?-0x1:_0xd2e6ec>_0x1b1ed3?0x1:0x0);}function digestFiles(_0x477131,_0xe5d443){const _0xaacf6e=a129_0x34b036,_0x31f672=createHash(_0xaacf6e(0xd8));for(const _0x2a744c of _0xe5d443){if(_0x2a744c[_0xaacf6e(0xac)]('/')||_0x2a744c[_0xaacf6e(0xb9)]('/')[_0xaacf6e(0xcd)]('..')||_0x2a744c[_0xaacf6e(0xcd)]('\x5c'))throw new Error(_0xaacf6e(0xa3)+_0x2a744c);_0x31f672[_0xaacf6e(0x9b)](_0x2a744c),_0x31f672[_0xaacf6e(0x9b)]('\x00'),_0x31f672[_0xaacf6e(0x9b)](readFileSync(join(_0x477131,..._0x2a744c[_0xaacf6e(0xb9)]('/')))),_0x31f672['update']('\x00');}return _0x31f672['digest'](_0xaacf6e(0xda));}function sameFiles(_0x55dba8,_0x4141c7){const _0x38d283=a129_0x34b036;return _0x55dba8['length']===_0x4141c7[_0x38d283(0xb0)]&&_0x55dba8['every']((_0x146d74,_0x333323)=>_0x146d74===_0x4141c7[_0x333323]);}function readSource(_0x50d23a){const _0x1d80c1=a129_0x34b036,_0x23d84b=JSON['parse'](readFileSync(join(_0x50d23a,_0x1d80c1(0xcc)),_0x1d80c1(0xb1))),_0x294ceb=JSON[_0x1d80c1(0xb6)](readFileSync(join(_0x50d23a,'skills',_0x1d80c1(0xd7)),_0x1d80c1(0xb1))),_0x51d6c1=join(_0x50d23a,_0x1d80c1(0xb2),SKILL_NAME),_0x511d05=frontmatterValue(readFileSync(join(_0x51d6c1,_0x1d80c1(0xb4)),_0x1d80c1(0xb1)),_0x1d80c1(0xa6)),_0x4b0b5c=listFiles(_0x51d6c1);if(_0x294ceb[_0x1d80c1(0xca)]!==0x1||_0x294ceb[_0x1d80c1(0xcb)]!==SKILL_NAME||!_0x23d84b['version']||_0x294ceb[_0x1d80c1(0xcf)]!==_0x23d84b[_0x1d80c1(0xa6)]||_0x294ceb[_0x1d80c1(0xa8)]!==_0x23d84b['version']||_0x511d05!==_0x23d84b[_0x1d80c1(0xa6)]||!sameFiles(_0x4b0b5c,_0x294ceb[_0x1d80c1(0xdd)])||digestFiles(_0x51d6c1,_0x4b0b5c)!==_0x294ceb[_0x1d80c1(0xaa)])throw new Error(_0x1d80c1(0xae));return{'packageVersion':_0x23d84b[_0x1d80c1(0xa6)],'skillVersion':_0x511d05,'root':_0x51d6c1,'manifest':_0x294ceb};}function installedSkillPath(_0x93b8cf){const _0x288773=a129_0x34b036,_0x5e832d=resolveInstalledSkill(SKILL_NAME,{'home':_0x93b8cf});if(_0x5e832d[_0x288773(0xd0)]===_0x288773(0xc2))return{'state':_0x288773(0xc2),'path':dirname(_0x5e832d[_0x288773(0x9e)])};if(_0x5e832d[_0x288773(0xd0)]===_0x288773(0xc8))return{'state':'missing'};return{'state':_0x288773(0xd2),'reason':_0x5e832d[_0x288773(0xdc)]};}export function inspectInstalledBuiltinSkillVersion(_0x5b412a,_0x5aaef0={}){const _0x5e036e=a129_0x34b036,_0x5a12a6=installedSkillPath(_0x5aaef0[_0x5e036e(0xd9)]??homedir());if(_0x5a12a6[_0x5e036e(0xd0)]===_0x5e036e(0xbf))return{'state':_0x5e036e(0xbf),'expectedVersion':_0x5b412a,'repairCommand':REPAIR_COMMAND};if(_0x5a12a6[_0x5e036e(0xd0)]===_0x5e036e(0xd2))return{'state':_0x5e036e(0xd2),'expectedVersion':_0x5b412a,'reason':_0x5a12a6[_0x5e036e(0xdc)],'repairCommand':REPAIR_COMMAND};try{const _0x4b29ec=frontmatterValue(readFileSync(join(_0x5a12a6[_0x5e036e(0x9e)],_0x5e036e(0xb4)),_0x5e036e(0xb1)),_0x5e036e(0xa6));return{'state':_0x4b29ec===_0x5b412a?_0x5e036e(0xa2):'version_mismatch','expectedVersion':_0x5b412a,'skillVersion':_0x4b29ec,'installedPath':_0x5a12a6[_0x5e036e(0x9e)],'repairCommand':REPAIR_COMMAND};}catch(_0x326649){return{'state':'unverifiable','expectedVersion':_0x5b412a,'installedPath':_0x5a12a6[_0x5e036e(0x9e)],'reason':_0x326649 instanceof Error?_0x326649[_0x5e036e(0x9a)]:String(_0x326649),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x544dfe={}){const _0x40d37c=a129_0x34b036,_0x5e573f=_0x544dfe['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x4e4394;try{_0x4e4394=readSource(_0x5e573f);}catch(_0x55d0dc){return{'state':'unverifiable','packageVersion':_0x40d37c(0xd1),'reason':_0x55d0dc instanceof Error?_0x55d0dc['message']:String(_0x55d0dc),'repairCommand':REPAIR_COMMAND};}const _0x59dd5c=installedSkillPath(_0x544dfe[_0x40d37c(0xd9)]??homedir());if(_0x59dd5c[_0x40d37c(0xd0)]===_0x40d37c(0xbf))return{'state':_0x40d37c(0xbf),'packageVersion':_0x4e4394[_0x40d37c(0xcf)],'repairCommand':REPAIR_COMMAND};if(_0x59dd5c[_0x40d37c(0xd0)]===_0x40d37c(0xd2))return{'state':'unverifiable','packageVersion':_0x4e4394['packageVersion'],'reason':_0x59dd5c[_0x40d37c(0xdc)],'repairCommand':REPAIR_COMMAND};try{const _0x4882f5=frontmatterValue(readFileSync(join(_0x59dd5c['path'],_0x40d37c(0xb4)),_0x40d37c(0xb1)),'version');if(_0x4882f5!==_0x4e4394['skillVersion'])return{'state':_0x40d37c(0xaf),'packageVersion':_0x4e4394[_0x40d37c(0xcf)],'skillVersion':_0x4882f5,'installedPath':_0x59dd5c[_0x40d37c(0x9e)],'repairCommand':REPAIR_COMMAND};const _0x4bd4b8=listFiles(_0x59dd5c[_0x40d37c(0x9e)]),_0x157e06=digestFiles(_0x59dd5c[_0x40d37c(0x9e)],_0x4bd4b8);return{'state':sameFiles(_0x4bd4b8,_0x4e4394[_0x40d37c(0xbe)]['files'])&&_0x157e06===_0x4e4394[_0x40d37c(0xbe)][_0x40d37c(0xaa)]?'current':_0x40d37c(0xab),'packageVersion':_0x4e4394[_0x40d37c(0xcf)],'skillVersion':_0x4882f5,'installedPath':_0x59dd5c[_0x40d37c(0x9e)],'digest':_0x157e06,'repairCommand':REPAIR_COMMAND};}catch(_0x29932d){return{'state':_0x40d37c(0xd2),'packageVersion':_0x4e4394[_0x40d37c(0xcf)],'installedPath':_0x59dd5c['path'],'reason':_0x29932d instanceof Error?_0x29932d[_0x40d37c(0x9a)]:String(_0x29932d),'repairCommand':REPAIR_COMMAND};}}function failure(_0x2b233f,_0x1e97f0,_0x5e9d05,_0x192bea){const _0x35728d=a129_0x34b036;return{'ok':![],'code':_0x2b233f,'packageVersion':_0x1e97f0[_0x35728d(0xcf)],'skillVersion':_0x1e97f0[_0x35728d(0xa8)],'installedPath':_0x192bea,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x5e9d05 instanceof Error?_0x5e9d05['message']:String(_0x5e9d05)};}export function installBuiltinSkill(_0x45c464={}){const _0xe5417=a129_0x34b036,_0x5ad521=_0x45c464[_0xe5417(0xb7)]??DEFAULT_PACKAGE_ROOT,_0x185852=_0x45c464[_0xe5417(0xd9)]??homedir();let _0x1f8bcd;try{_0x1f8bcd=readSource(_0x5ad521);}catch(_0x2bdf96){return failure(_0xe5417(0xce),{'packageVersion':'unknown','skillVersion':_0xe5417(0xd1)},_0x2bdf96);}const _0x50e2b2=inspectBuiltinSkill({'packageRoot':_0x5ad521,'home':_0x185852}),_0x4fc223=runNpxSkillsAddGlobal(_0x5ad521,_0x1f8bcd[_0xe5417(0xa5)],{'stdio':_0x45c464['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x185852}});if(_0x4fc223['skipped'])return{'ok':!![],'packageVersion':_0x1f8bcd[_0xe5417(0xcf)],'skillVersion':_0x1f8bcd[_0xe5417(0xa8)],'installedPath':_0x50e2b2['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x4fc223['ok'])return failure(_0xe5417(0xbc),_0x1f8bcd,_0x4fc223[_0xe5417(0xa9)]??_0xe5417(0xc6)+_0x4fc223[_0xe5417(0xa7)]);const _0x5ec0fd=inspectBuiltinSkill({'packageRoot':_0x5ad521,'home':_0x185852});if(_0x5ec0fd[_0xe5417(0xd0)]!==_0xe5417(0xa2))return failure(_0xe5417(0xc9),_0x1f8bcd,_0x5ec0fd['reason']??_0xe5417(0xa4)+_0x5ec0fd['state'],_0x5ec0fd[_0xe5417(0xc1)]);return{'ok':!![],'packageVersion':_0x1f8bcd['packageVersion'],'skillVersion':_0x1f8bcd[_0xe5417(0xa8)],'installedPath':_0x5ec0fd[_0xe5417(0xc1)],'changed':_0x50e2b2[_0xe5417(0xd0)]!==_0xe5417(0xa2),'repairCommand':REPAIR_COMMAND};}function a129_0xc35f(){const _0x215805=['VERIFY_FAILED','schemaVersion','name','package.json','includes','SOURCE_INVALID','packageVersion','state','unknown','unverifiable','join','lovrabet\x20cli-skill\x20install','530tdOJPv','117696KhQqNO','lovrabet.manifest.json','sha256','home','hex','isDirectory','reason','files','50rnnuaa','message','update','913BzsxrD','679oiZsmh','path','8491uhsQCe','lovrabet','552owutxL','current','Unsafe\x20manifest\x20path:\x20','Installed\x20Skill\x20state\x20is\x20','root','version','status','skillVersion','error','digest','content_mismatch','startsWith','82563lctvev','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','version_mismatch','length','utf8','skills','121275pAslWE','SKILL.md','Unsupported\x20Skill\x20entry:\x20','parse','packageRoot','trim','split','78hMccyG','sort','INSTALL_FAILED','3336lAvLTd','manifest','missing','12OzBtSM','installedPath','present','Symbolic\x20link\x20is\x20not\x20allowed:\x20','1432FVcrzN','match','skills@latest\x20exited\x20','3719366wVLkRY','absent'];a129_0xc35f=function(){return _0x215805;};return a129_0xc35f();}
@@ -1 +1 @@
1
- const a130_0x5a27b8=a130_0x536f;(function(_0x4b825d,_0x24ffe0){const _0x1b040a=a130_0x536f,_0x2e260c=_0x4b825d();while(!![]){try{const _0x2c8656=parseInt(_0x1b040a(0x1fa))/0x1+-parseInt(_0x1b040a(0x218))/0x2+-parseInt(_0x1b040a(0x200))/0x3+-parseInt(_0x1b040a(0x217))/0x4*(-parseInt(_0x1b040a(0x214))/0x5)+parseInt(_0x1b040a(0x1f6))/0x6+parseInt(_0x1b040a(0x1f9))/0x7+-parseInt(_0x1b040a(0x20b))/0x8;if(_0x2c8656===_0x24ffe0)break;else _0x2e260c['push'](_0x2e260c['shift']());}catch(_0x42a2dc){_0x2e260c['push'](_0x2e260c['shift']());}}}(a130_0xe3f2,0x4dc2a));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a130_0x17d52c}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_0x17d52c;function a130_0x536f(_0x439120,_0x4df74c){_0x439120=_0x439120-0x1ef;const _0xe3f209=a130_0xe3f2();let _0x536f49=_0xe3f209[_0x439120];return _0x536f49;}export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a130_0x5a27b8(0x1fd)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a130_0x5a27b8(0x220)];export function resolveGlobalSkillName(_0x4ec23a){const _0x3d391e=a130_0x5a27b8;switch(_0x4ec23a[_0x3d391e(0x1ff)]()){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_0x5a27b8(0x207)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a130_0xe3f2(){const _0x5e459e=['match','status','internalSkillSource','npx','trim','606531XxdMPI','message','\x20failed\x20target(s)','exit\x20','stdout','Skill\x20\x22','EACCES','skipNpxSkillsEnvSuffix','absent','!\x20Could\x20not\x20verify\x20\x22','code','3890976GJPIJh','SPAWN_FAILED','npx\x20terminated\x20by\x20signal\x20','CHILD_TERMINATED','join','presence','toString','pipe','npm_config_global','414025JGZNmK','stderr','log','4cxoMoz','209318WCnaXL','NPM_CONFIG_GLOBAL','warn','ENOENT','\x22\x20install\x20state:\x20','state','filter','EPERM','globalSkillName','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','skills@latest','unknown','CHILD_EXIT_NONZERO','NPX_NOT_FOUND','unverifiable','signal','2390304ZTwOvG','error','INSTALL_PARTIAL','4201519oQOLEL','30308DmSPKe'];a130_0xe3f2=function(){return _0x5e459e;};return a130_0xe3f2();}function failure(_0x2f57e5,_0x5c43ef,_0x3a6018){return{'ok':![],'status':_0x5c43ef,'code':_0x2f57e5,'error':'['+_0x2f57e5+']\x20'+_0x3a6018};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x33a954,_0x5d12a9=LOVRABET_SKILL_SOURCE,_0xa96369){const _0x5837b7=a130_0x5a27b8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x21ae36=resolveNpmBin(_0x5837b7(0x1fe)),_0xf63f33=['-y',_0x5837b7(0x1f0),'add',_0x5d12a9,'-g','-y'],_0x43bff3=[_0x21ae36,..._0xf63f33][_0x5837b7(0x20f)]('\x20');console[_0x5837b7(0x216)]('*\x20'+_0x43bff3);const _0x3fdf2e={...process.env};delete _0x3fdf2e[_0x5837b7(0x213)],delete _0x3fdf2e[_0x5837b7(0x219)];const _0x366494=spawnSync(_0x21ae36,_0xf63f33,{'cwd':_0x33a954,'stdio':'pipe','env':_0x3fdf2e,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x50f015=[_0x366494[_0x5837b7(0x204)]?_0x366494[_0x5837b7(0x204)][_0x5837b7(0x211)]():'',_0x366494[_0x5837b7(0x215)]?_0x366494['stderr'][_0x5837b7(0x211)]():''][_0x5837b7(0x21e)](Boolean)[_0x5837b7(0x20f)]('\x0a')[_0x5837b7(0x1ff)]();_0xa96369?.['stdio']!==_0x5837b7(0x212)&&_0x50f015&&console[_0x5837b7(0x216)](_0x50f015);if(_0x366494[_0x5837b7(0x1f7)]){const _0x4438cc=_0x366494['error'],_0x58e5fb=_0x4438cc[_0x5837b7(0x20a)]===_0x5837b7(0x21b)?_0x5837b7(0x1f3):_0x4438cc[_0x5837b7(0x20a)]===_0x5837b7(0x21f)||_0x4438cc['code']===_0x5837b7(0x206)?'PERMISSION_DENIED':_0x5837b7(0x20c);return failure(_0x58e5fb,_0x366494[_0x5837b7(0x1fc)],_0x4438cc[_0x5837b7(0x201)]);}if(_0x366494[_0x5837b7(0x1f5)])return failure(_0x5837b7(0x20e),_0x366494['status'],_0x5837b7(0x20d)+_0x366494['signal']);if(_0x366494[_0x5837b7(0x1fc)]!==0x0)return failure(_0x5837b7(0x1f2),_0x366494[_0x5837b7(0x1fc)],_0x50f015||_0x5837b7(0x203)+(_0x366494[_0x5837b7(0x1fc)]??_0x5837b7(0x1f1)));const _0xb9e0fa=_0x50f015[_0x5837b7(0x1fb)](/Failed to install\s+(\d+)/i);if(_0xb9e0fa&&Number(_0xb9e0fa[0x1])>0x0)return failure(_0x5837b7(0x1f8),0x0,'Installer\x20reported\x20'+_0xb9e0fa[0x1]+_0x5837b7(0x202)+(_0x50f015?':\x0a'+_0x50f015:''));const _0x3bd054=_0xa96369?.['expectedSkillName']??resolveGlobalSkillName(_0x5d12a9);if(_0x3bd054){const _0x4823af=resolveInstalledSkill(_0x3bd054,_0xa96369?.[_0x5837b7(0x210)]);if(_0x4823af['state']===_0x5837b7(0x208))return failure('SKILL_NOT_INSTALLED',0x0,_0x5837b7(0x205)+_0x3bd054+_0x5837b7(0x1ef)+_0x4823af['checked']['join'](',\x20')+')');_0x4823af[_0x5837b7(0x21d)]===_0x5837b7(0x1f4)&&console[_0x5837b7(0x21a)](_0x5837b7(0x209)+_0x3bd054+_0x5837b7(0x21c)+_0x4823af['reason']);}return{'ok':!![],'status':0x0};}
1
+ const a130_0x4281e5=a130_0x3c38;(function(_0x4c7375,_0x800212){const _0x3f0930=a130_0x3c38,_0xa09088=_0x4c7375();while(!![]){try{const _0x345be6=-parseInt(_0x3f0930(0x10a))/0x1+parseInt(_0x3f0930(0x105))/0x2*(-parseInt(_0x3f0930(0xe7))/0x3)+-parseInt(_0x3f0930(0xe9))/0x4*(-parseInt(_0x3f0930(0x114))/0x5)+-parseInt(_0x3f0930(0x104))/0x6+-parseInt(_0x3f0930(0xee))/0x7*(-parseInt(_0x3f0930(0xe3))/0x8)+-parseInt(_0x3f0930(0xfa))/0x9*(-parseInt(_0x3f0930(0x110))/0xa)+-parseInt(_0x3f0930(0x100))/0xb;if(_0x345be6===_0x800212)break;else _0xa09088['push'](_0xa09088['shift']());}catch(_0x58c691){_0xa09088['push'](_0xa09088['shift']());}}}(a130_0x40d2,0x9065a));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a130_0x56d038}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_0x56d038;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a130_0x4281e5(0xe8)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a130_0x4281e5(0xf2)];export function resolveGlobalSkillName(_0x5c0c18){const _0x5738a8=a130_0x4281e5;switch(_0x5c0c18[_0x5738a8(0x10e)]()){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_0x4281e5(0xfb)]);function a130_0x3c38(_0x400730,_0x5c0fc5){_0x400730=_0x400730-0xe0;const _0x40d2b4=a130_0x40d2();let _0x3c3883=_0x40d2b4[_0x400730];return _0x3c3883;}function a130_0x40d2(){const _0x55139c=['join','10DChgJo','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','!\x20Could\x20not\x20verify\x20\x22','absent','match','signal','248TiCQdF','skills@latest','presence','SPAWN_FAILED','1341TNgXSx','internalSkillSource','2190524JPbard','ENOENT','Skill\x20\x22','toString','unknown','113722eyGNRW','Installer\x20reported\x20','EPERM','\x20failed\x20target(s)','globalSkillName','\x22\x20install\x20state:\x20','state','PERMISSION_DENIED','stderr','INSTALL_PARTIAL','checked','EACCES','171Gmchmo','skipNpxSkillsEnvSuffix','stdout','warn','pipe','npx\x20terminated\x20by\x20signal\x20','5586988pakvlX','npm_config_global','SKILL_NOT_INSTALLED','error','1994448PMpACx','2102UQJKXL','status','unverifiable','expectedSkillName','NPM_CONFIG_GLOBAL','39648Sfwnmz','log','npx','NPX_NOT_FOUND','trim','CHILD_EXIT_NONZERO','180170aNkIPq','code','reason'];a130_0x40d2=function(){return _0x55139c;};return a130_0x40d2();}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2fd4d4,_0xd4ea78,_0x292242){return{'ok':![],'status':_0xd4ea78,'code':_0x2fd4d4,'error':'['+_0x2fd4d4+']\x20'+_0x292242};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x3f35b0,_0x2fc488=LOVRABET_SKILL_SOURCE,_0x22d2eb){const _0x417133=a130_0x4281e5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x23a40b=resolveNpmBin(_0x417133(0x10c)),_0x5312c1=['-y',_0x417133(0xe4),'add',_0x2fc488,'-g','-y'],_0x923d77=[_0x23a40b,..._0x5312c1][_0x417133(0x113)]('\x20');console[_0x417133(0x10b)]('*\x20'+_0x923d77);const _0x41cbc6={...process.env};delete _0x41cbc6[_0x417133(0x101)],delete _0x41cbc6[_0x417133(0x109)];const _0xb5f54c=spawnSync(_0x23a40b,_0x5312c1,{'cwd':_0x3f35b0,'stdio':_0x417133(0xfe),'env':_0x41cbc6,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x3d2582=[_0xb5f54c[_0x417133(0xfc)]?_0xb5f54c[_0x417133(0xfc)][_0x417133(0xec)]():'',_0xb5f54c[_0x417133(0xf6)]?_0xb5f54c[_0x417133(0xf6)][_0x417133(0xec)]():'']['filter'](Boolean)['join']('\x0a')[_0x417133(0x10e)]();_0x22d2eb?.['stdio']!==_0x417133(0xfe)&&_0x3d2582&&console[_0x417133(0x10b)](_0x3d2582);if(_0xb5f54c[_0x417133(0x103)]){const _0x4a2f08=_0xb5f54c[_0x417133(0x103)],_0x38167a=_0x4a2f08['code']===_0x417133(0xea)?_0x417133(0x10d):_0x4a2f08['code']===_0x417133(0xf0)||_0x4a2f08[_0x417133(0x111)]===_0x417133(0xf9)?_0x417133(0xf5):_0x417133(0xe6);return failure(_0x38167a,_0xb5f54c['status'],_0x4a2f08['message']);}if(_0xb5f54c[_0x417133(0xe2)])return failure('CHILD_TERMINATED',_0xb5f54c[_0x417133(0x106)],_0x417133(0xff)+_0xb5f54c[_0x417133(0xe2)]);if(_0xb5f54c['status']!==0x0)return failure(_0x417133(0x10f),_0xb5f54c[_0x417133(0x106)],_0x3d2582||'exit\x20'+(_0xb5f54c[_0x417133(0x106)]??_0x417133(0xed)));const _0x2de670=_0x3d2582[_0x417133(0xe1)](/Failed to install\s+(\d+)/i);if(_0x2de670&&Number(_0x2de670[0x1])>0x0)return failure(_0x417133(0xf7),0x0,_0x417133(0xef)+_0x2de670[0x1]+_0x417133(0xf1)+(_0x3d2582?':\x0a'+_0x3d2582:''));const _0x5139db=_0x22d2eb?.[_0x417133(0x108)]??resolveGlobalSkillName(_0x2fc488);if(_0x5139db){const _0x316e36=resolveInstalledSkill(_0x5139db,_0x22d2eb?.[_0x417133(0xe5)]);if(_0x316e36[_0x417133(0xf4)]===_0x417133(0xe0))return failure(_0x417133(0x102),0x0,_0x417133(0xeb)+_0x5139db+_0x417133(0x115)+_0x316e36[_0x417133(0xf8)]['join'](',\x20')+')');_0x316e36[_0x417133(0xf4)]===_0x417133(0x107)&&console[_0x417133(0xfd)](_0x417133(0x116)+_0x5139db+_0x417133(0xf3)+_0x316e36[_0x417133(0x112)]);}return{'ok':!![],'status':0x0};}
@@ -1 +1 @@
1
- const a131_0x99f4f9=a131_0x45a6;(function(_0x4424cf,_0x3b0367){const _0x23bf17=a131_0x45a6,_0x11ba65=_0x4424cf();while(!![]){try{const _0x2ac3f4=-parseInt(_0x23bf17(0x123))/0x1+-parseInt(_0x23bf17(0x131))/0x2*(parseInt(_0x23bf17(0x121))/0x3)+-parseInt(_0x23bf17(0x12d))/0x4*(parseInt(_0x23bf17(0x127))/0x5)+parseInt(_0x23bf17(0x120))/0x6+-parseInt(_0x23bf17(0x128))/0x7+parseInt(_0x23bf17(0x126))/0x8*(-parseInt(_0x23bf17(0x12e))/0x9)+-parseInt(_0x23bf17(0x12c))/0xa*(-parseInt(_0x23bf17(0x12b))/0xb);if(_0x2ac3f4===_0x3b0367)break;else _0x11ba65['push'](_0x11ba65['shift']());}catch(_0x532343){_0x11ba65['push'](_0x11ba65['shift']());}}}(a131_0x3ec0,0x416ec));export const METADATA_FILE=a131_0x99f4f9(0x11d);export const SKILL_FILE='SKILL.md';function a131_0x45a6(_0x9afa9,_0x444975){_0x9afa9=_0x9afa9-0x11d;const _0x3ec00b=a131_0x3ec0();let _0x45a660=_0x3ec00b[_0x9afa9];return _0x45a660;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);function a131_0x3ec0(){const _0x53f97a=['387704KadQXI','1645Npbwwq','1150296hHmjOT','.cache','build','4785jYwwpf','47850DVZUNP','6284ZVaUyc','90AiKEoX','.svn','coverage','92DkvMXc','lovrabet.skill.json','.next','.turbo','402606qrBQCE','28491uCJRxm','.hg','277885CtzhoB','dist','node_modules'];a131_0x3ec0=function(){return _0x53f97a;};return a131_0x3ec0();}export const IGNORED_DIR_NAMES=new Set(['.git',a131_0x99f4f9(0x122),a131_0x99f4f9(0x12f),a131_0x99f4f9(0x125),a131_0x99f4f9(0x11e),a131_0x99f4f9(0x124),a131_0x99f4f9(0x12a),a131_0x99f4f9(0x130),a131_0x99f4f9(0x11f),a131_0x99f4f9(0x129)]);
1
+ const a131_0x2cb6fd=a131_0xf1c5;function a131_0xfd8b(){const _0x27c46b=['78tHSOwe','3925397aOrHPA','.next','21ggPLxM','112505hfrldr','185132smRswU','1711740okfFrt','.DS_Store','coverage','.hg','1731189AAGOeO','56878AOgXsT','dist','SKILL.md','16384NomyzU','.cache','node_modules','.git','1143fHUYFC'];a131_0xfd8b=function(){return _0x27c46b;};return a131_0xfd8b();}(function(_0x140b78,_0x338721){const _0x5207c2=a131_0xf1c5,_0x56f35a=_0x140b78();while(!![]){try{const _0x137372=-parseInt(_0x5207c2(0x11d))/0x1*(-parseInt(_0x5207c2(0x125))/0x2)+-parseInt(_0x5207c2(0x124))/0x3+parseInt(_0x5207c2(0x11f))/0x4+parseInt(_0x5207c2(0x11e))/0x5*(-parseInt(_0x5207c2(0x12d))/0x6)+parseInt(_0x5207c2(0x11b))/0x7+parseInt(_0x5207c2(0x128))/0x8*(parseInt(_0x5207c2(0x12c))/0x9)+-parseInt(_0x5207c2(0x120))/0xa;if(_0x137372===_0x338721)break;else _0x56f35a['push'](_0x56f35a['shift']());}catch(_0x3b7d89){_0x56f35a['push'](_0x56f35a['shift']());}}}(a131_0xfd8b,0x676c3));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE=a131_0x2cb6fd(0x127);function a131_0xf1c5(_0x5bce73,_0x2b1f57){_0x5bce73=_0x5bce73-0x11b;const _0xfd8bea=a131_0xfd8b();let _0xf1c54f=_0xfd8bea[_0x5bce73];return _0xf1c54f;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a131_0x2cb6fd(0x121)]);export const IGNORED_DIR_NAMES=new Set([a131_0x2cb6fd(0x12b),a131_0x2cb6fd(0x123),'.svn',a131_0x2cb6fd(0x12a),a131_0x2cb6fd(0x11c),a131_0x2cb6fd(0x126),'build',a131_0x2cb6fd(0x122),'.turbo',a131_0x2cb6fd(0x129)]);
@@ -1 +1 @@
1
- (function(_0x538bd5,_0x37da2){const _0x5388f4=a132_0x300d,_0x39ce30=_0x538bd5();while(!![]){try{const _0xd7fe4e=-parseInt(_0x5388f4(0x132))/0x1+parseInt(_0x5388f4(0x123))/0x2+-parseInt(_0x5388f4(0x128))/0x3+-parseInt(_0x5388f4(0x131))/0x4*(parseInt(_0x5388f4(0x12d))/0x5)+-parseInt(_0x5388f4(0x127))/0x6+-parseInt(_0x5388f4(0x12e))/0x7*(-parseInt(_0x5388f4(0x129))/0x8)+-parseInt(_0x5388f4(0x130))/0x9*(-parseInt(_0x5388f4(0x12a))/0xa);if(_0xd7fe4e===_0x37da2)break;else _0x39ce30['push'](_0x39ce30['shift']());}catch(_0x2d6d52){_0x39ce30['push'](_0x39ce30['shift']());}}}(a132_0x4765,0x1da1f));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';function a132_0x300d(_0x4e2a02,_0x44b2ba){_0x4e2a02=_0x4e2a02-0x122;const _0x4765d8=a132_0x4765();let _0x300d6f=_0x4765d8[_0x4e2a02];return _0x300d6f;}import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x203083,_0xb52182){const _0x18bd84=a132_0x300d,_0x113263=normalizeSkillRelativePath(_0xb52182),_0x1e0cf0=realOrResolved(_0x203083),_0x520b48=resolve(_0x1e0cf0,..._0x113263['split']('/'));if(!isPathInside(_0x520b48,_0x1e0cf0))throw CliErrors[_0x18bd84(0x126)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0xb52182);return ensureNoSymlinkInManagedPath(_0x1e0cf0,_0x113263),_0x520b48;}export function ensureNoSymlinkInManagedPath(_0x19c23a,_0x35ecbc){const _0x14fe8c=a132_0x300d;let _0x551048=_0x19c23a;for(const _0x36ff13 of _0x35ecbc[_0x14fe8c(0x125)]('/')){_0x551048=resolve(_0x551048,_0x36ff13);const _0x198b69=lstatIfPresent(_0x551048);if(_0x198b69?.[_0x14fe8c(0x12b)]())throw CliErrors[_0x14fe8c(0x126)](_0x14fe8c(0x12c)+_0x35ecbc);}}export function isDanglingSymlink(_0x565359){const _0x4133ce=a132_0x300d;try{return lstatSync(_0x565359)[_0x4133ce(0x12b)]();}catch{return![];}}export function resolveSymlinkTarget(_0x571eab){const _0x107196=readlinkSync(_0x571eab);return isAbsolute(_0x107196)?_0x107196:resolve(dirname(_0x571eab),_0x107196);}function a132_0x4765(){const _0x1a2b5c=['Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','911775UFqqSA','7XLwKSu','.tmp','1725210NNLLxG','4EGwsVC','5637vqEdyZ','endsWith','454326ZLGwuP','utf8','split','validation','1231362idRfcW','14118LrnJaR','803576tZSKDT','10ogknba','isSymbolicLink'];a132_0x4765=function(){return _0x1a2b5c;};return a132_0x4765();}export function isPathInside(_0x53d536,_0x5845cd){const _0x56d47f=a132_0x300d,_0x495a86=_0x53d536[_0x56d47f(0x122)](sep)?_0x53d536:''+_0x53d536+sep,_0x301aa8=_0x5845cd['endsWith'](sep)?_0x5845cd:''+_0x5845cd+sep;return _0x53d536===_0x5845cd||_0x495a86['startsWith'](_0x301aa8);}export function realOrResolved(_0x6dabeb){try{return realpathSync(_0x6dabeb);}catch{return resolve(_0x6dabeb);}}export function lstatIfPresent(_0xa2334d){try{return lstatSync(_0xa2334d);}catch{return undefined;}}export function writeTextAtomic(_0x1bfade,_0x258813,_0x48997b){const _0x2ca72a=a132_0x300d;writeBytesAtomic(_0x1bfade,Buffer['from'](_0x258813,_0x2ca72a(0x124)),_0x48997b);}export function writeBytesAtomic(_0x528caa,_0xe06eba,_0x5e0b60){const _0x4c70ae=a132_0x300d,_0x4d5b3b=_0x528caa+_0x4c70ae(0x12f);try{writeFileSync(_0x4d5b3b,_0xe06eba,{'mode':_0x5e0b60}),renameSync(_0x4d5b3b,_0x528caa);}catch(_0x1a6642){try{rmSync(_0x4d5b3b,{'force':!![]});}catch{}throw _0x1a6642;}}export function writeJsonAtomic(_0x5e3f78,_0x536c5b){writeTextAtomic(_0x5e3f78,JSON['stringify'](_0x536c5b,null,0x2)+'\x0a',0x180);}
1
+ (function(_0xcaf718,_0x57be69){const _0x240926=a132_0x4cb9,_0x3452ba=_0xcaf718();while(!![]){try{const _0x1ca542=-parseInt(_0x240926(0x190))/0x1*(parseInt(_0x240926(0x18d))/0x2)+-parseInt(_0x240926(0x1a2))/0x3*(-parseInt(_0x240926(0x18f))/0x4)+-parseInt(_0x240926(0x19c))/0x5*(parseInt(_0x240926(0x198))/0x6)+parseInt(_0x240926(0x191))/0x7*(-parseInt(_0x240926(0x19d))/0x8)+-parseInt(_0x240926(0x197))/0x9*(parseInt(_0x240926(0x1a0))/0xa)+parseInt(_0x240926(0x19e))/0xb*(-parseInt(_0x240926(0x195))/0xc)+parseInt(_0x240926(0x193))/0xd;if(_0x1ca542===_0x57be69)break;else _0x3452ba['push'](_0x3452ba['shift']());}catch(_0x2896fc){_0x3452ba['push'](_0x3452ba['shift']());}}}(a132_0x4974,0x3939d));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';function a132_0x4974(){const _0x512763=['13905840FBlflC','split','1961628BmKFOy','endsWith','723555AgQGtV','6rlvqbD','startsWith','utf8','validation','66765oCnSvT','40iaKSVz','11JrkVOc','.tmp','50WACDcK','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','333JvfWDB','Unsafe\x20Skill\x20file\x20path:\x20','275052OCJfzj','isSymbolicLink','1484YLPxgk','2COoAGc','31661XMYEPC','from'];a132_0x4974=function(){return _0x512763;};return a132_0x4974();}import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x3bf0e4,_0x16cceb){const _0x5bcd08=a132_0x4cb9,_0x206872=normalizeSkillRelativePath(_0x16cceb),_0x57c09c=realOrResolved(_0x3bf0e4),_0x2edc19=resolve(_0x57c09c,..._0x206872[_0x5bcd08(0x194)]('/'));if(!isPathInside(_0x2edc19,_0x57c09c))throw CliErrors[_0x5bcd08(0x19b)](_0x5bcd08(0x18c)+_0x16cceb);return ensureNoSymlinkInManagedPath(_0x57c09c,_0x206872),_0x2edc19;}export function ensureNoSymlinkInManagedPath(_0xdf2826,_0x207572){const _0xa86ce6=a132_0x4cb9;let _0x25fa86=_0xdf2826;for(const _0xb04417 of _0x207572[_0xa86ce6(0x194)]('/')){_0x25fa86=resolve(_0x25fa86,_0xb04417);const _0x52cbb3=lstatIfPresent(_0x25fa86);if(_0x52cbb3?.[_0xa86ce6(0x18e)]())throw CliErrors['validation'](_0xa86ce6(0x1a1)+_0x207572);}}export function isDanglingSymlink(_0x516b72){const _0xd304c9=a132_0x4cb9;try{return lstatSync(_0x516b72)[_0xd304c9(0x18e)]();}catch{return![];}}export function resolveSymlinkTarget(_0x1005db){const _0xf8c17f=readlinkSync(_0x1005db);return isAbsolute(_0xf8c17f)?_0xf8c17f:resolve(dirname(_0x1005db),_0xf8c17f);}function a132_0x4cb9(_0x1e304d,_0x521aaf){_0x1e304d=_0x1e304d-0x18c;const _0x497471=a132_0x4974();let _0x4cb957=_0x497471[_0x1e304d];return _0x4cb957;}export function isPathInside(_0x30e38a,_0x409b31){const _0x18d05f=a132_0x4cb9,_0x4cfdf5=_0x30e38a[_0x18d05f(0x196)](sep)?_0x30e38a:''+_0x30e38a+sep,_0x52ad79=_0x409b31[_0x18d05f(0x196)](sep)?_0x409b31:''+_0x409b31+sep;return _0x30e38a===_0x409b31||_0x4cfdf5[_0x18d05f(0x199)](_0x52ad79);}export function realOrResolved(_0x3a804c){try{return realpathSync(_0x3a804c);}catch{return resolve(_0x3a804c);}}export function lstatIfPresent(_0x36ad85){try{return lstatSync(_0x36ad85);}catch{return undefined;}}export function writeTextAtomic(_0x4e2992,_0x25d380,_0x54a5b4){const _0x265d75=a132_0x4cb9;writeBytesAtomic(_0x4e2992,Buffer[_0x265d75(0x192)](_0x25d380,_0x265d75(0x19a)),_0x54a5b4);}export function writeBytesAtomic(_0xb62233,_0x31545f,_0x159d76){const _0x2852a4=a132_0x4cb9,_0x383f98=_0xb62233+_0x2852a4(0x19f);try{writeFileSync(_0x383f98,_0x31545f,{'mode':_0x159d76}),renameSync(_0x383f98,_0xb62233);}catch(_0x3881a4){try{rmSync(_0x383f98,{'force':!![]});}catch{}throw _0x3881a4;}}export function writeJsonAtomic(_0x1bfd0c,_0x1f6796){writeTextAtomic(_0x1bfd0c,JSON['stringify'](_0x1f6796,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x26afe8,_0x581984){const _0x4b5ea1=a133_0x16e0,_0x419d2a=_0x26afe8();while(!![]){try{const _0x24c6af=parseInt(_0x4b5ea1(0x16d))/0x1*(parseInt(_0x4b5ea1(0x161))/0x2)+-parseInt(_0x4b5ea1(0x165))/0x3+parseInt(_0x4b5ea1(0x167))/0x4*(-parseInt(_0x4b5ea1(0x160))/0x5)+-parseInt(_0x4b5ea1(0x164))/0x6+parseInt(_0x4b5ea1(0x163))/0x7+-parseInt(_0x4b5ea1(0x168))/0x8+-parseInt(_0x4b5ea1(0x16b))/0x9*(-parseInt(_0x4b5ea1(0x169))/0xa);if(_0x24c6af===_0x581984)break;else _0x419d2a['push'](_0x419d2a['shift']());}catch(_0x54c797){_0x419d2a['push'](_0x419d2a['shift']());}}}(a133_0x2284,0x9c844));function a133_0x16e0(_0xe7f848,_0x1c04f7){_0xe7f848=_0xe7f848-0x160;const _0x228442=a133_0x2284();let _0x16e0ed=_0x228442[_0xe7f848];return _0x16e0ed;}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x8d49a8){const _0x455841=a133_0x16e0;return createHash(_0x455841(0x16a))[_0x455841(0x162)](_0x8d49a8)[_0x455841(0x16c)](_0x455841(0x166));}function a133_0x2284(){const _0xa65851=['239877PNNIcS','hex','484436BYtcPf','9759680jdXHKK','226190TyeouP','sha256','738iYJPSj','digest','2XiyrIO','10eELeaS','664212qcbLFo','update','2518502qHxYsj','4173162jTBXIZ'];a133_0x2284=function(){return _0xa65851;};return a133_0x2284();}export function fileHash(_0x1ec19a){return bufferSha256(fileContent(_0x1ec19a));}export function bufferSha256(_0x2e04e9){const _0x27f864=a133_0x16e0;return createHash(_0x27f864(0x16a))['update'](_0x2e04e9)[_0x27f864(0x16c)](_0x27f864(0x166));}export function fileTreeHash(_0x1fd9cb){const _0x4003d4=a133_0x16e0,_0x9df2a8=createHash(_0x4003d4(0x16a));for(const _0x2916b2 of normalizeManifestFiles(_0x1fd9cb)){_0x9df2a8[_0x4003d4(0x162)](_0x2916b2['path']),_0x9df2a8[_0x4003d4(0x162)]('\x00'),_0x9df2a8[_0x4003d4(0x162)](_0x2916b2['sha256']),_0x9df2a8['update']('\x00'),_0x9df2a8[_0x4003d4(0x162)](String(_0x2916b2['size'])),_0x9df2a8['update']('\x00');}return _0x9df2a8[_0x4003d4(0x16c)](_0x4003d4(0x166));}
1
+ (function(_0x19620,_0x3ab189){const _0x54461b=a133_0x15ea,_0x52f8f5=_0x19620();while(!![]){try{const _0x262c8c=-parseInt(_0x54461b(0xa5))/0x1*(-parseInt(_0x54461b(0xaa))/0x2)+-parseInt(_0x54461b(0xae))/0x3*(-parseInt(_0x54461b(0xb2))/0x4)+-parseInt(_0x54461b(0xad))/0x5+-parseInt(_0x54461b(0xaf))/0x6*(-parseInt(_0x54461b(0xac))/0x7)+parseInt(_0x54461b(0xa9))/0x8+-parseInt(_0x54461b(0xb0))/0x9+-parseInt(_0x54461b(0xa4))/0xa;if(_0x262c8c===_0x3ab189)break;else _0x52f8f5['push'](_0x52f8f5['shift']());}catch(_0x47bcdb){_0x52f8f5['push'](_0x52f8f5['shift']());}}}(a133_0x4d1b,0x5ed56));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x308375){const _0x44046b=a133_0x15ea;return createHash(_0x44046b(0xa6))['update'](_0x308375)[_0x44046b(0xa7)]('hex');}function a133_0x4d1b(){const _0x43e90b=['6pBjvdd','3963150lIxwzo','size','12YjZtPk','path','1017360BjCJwN','336705aYwMgv','sha256','digest','update','1544784PYzCls','2pTgvEt','hex','3736859khGCUA','2466165axSbdl','360117gYIXQm'];a133_0x4d1b=function(){return _0x43e90b;};return a133_0x4d1b();}export function fileHash(_0x2bc1d9){return bufferSha256(fileContent(_0x2bc1d9));}function a133_0x15ea(_0x3e033b,_0x22a9fc){_0x3e033b=_0x3e033b-0xa3;const _0x4d1bdf=a133_0x4d1b();let _0x15ea53=_0x4d1bdf[_0x3e033b];return _0x15ea53;}export function bufferSha256(_0x589ac5){const _0x343548=a133_0x15ea;return createHash('sha256')[_0x343548(0xa8)](_0x589ac5)[_0x343548(0xa7)]('hex');}export function fileTreeHash(_0x34cb5b){const _0x1e979f=a133_0x15ea,_0x3ebf90=createHash(_0x1e979f(0xa6));for(const _0x4c775d of normalizeManifestFiles(_0x34cb5b)){_0x3ebf90[_0x1e979f(0xa8)](_0x4c775d[_0x1e979f(0xa3)]),_0x3ebf90['update']('\x00'),_0x3ebf90[_0x1e979f(0xa8)](_0x4c775d['sha256']),_0x3ebf90[_0x1e979f(0xa8)]('\x00'),_0x3ebf90['update'](String(_0x4c775d[_0x1e979f(0xb1)])),_0x3ebf90[_0x1e979f(0xa8)]('\x00');}return _0x3ebf90[_0x1e979f(0xa7)](_0x1e979f(0xab));}
@@ -1 +1 @@
1
- const a134_0x3b8b3f=a134_0x26bf;function a134_0x1cb1(){const _0xdb63c=['.agents','280clXZik','project','cwd','global','3912723EBqykH','820fykKGg','managedRoot','2094504gYIPDi','freeze','1744704ufcSyQ','41727MXnHsD','12820hNsVhK','788937LFCCfh','1312292yHPCLq'];a134_0x1cb1=function(){return _0xdb63c;};return a134_0x1cb1();}(function(_0xcf4a94,_0x4cb1f9){const _0x4a688f=a134_0x26bf,_0x1ffeb8=_0xcf4a94();while(!![]){try{const _0x3feb12=parseInt(_0x4a688f(0xb5))/0x1+parseInt(_0x4a688f(0xb6))/0x2+-parseInt(_0x4a688f(0xb0))/0x3+parseInt(_0x4a688f(0xbd))/0x4*(parseInt(_0x4a688f(0xb4))/0x5)+-parseInt(_0x4a688f(0xb2))/0x6+-parseInt(_0x4a688f(0xb3))/0x7*(-parseInt(_0x4a688f(0xb8))/0x8)+-parseInt(_0x4a688f(0xbc))/0x9;if(_0x3feb12===_0x4cb1f9)break;else _0x1ffeb8['push'](_0x1ffeb8['shift']());}catch(_0x17cff9){_0x1ffeb8['push'](_0x1ffeb8['shift']());}}}(a134_0x1cb1,0xb87b7));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';function a134_0x26bf(_0x11c0b9,_0x1a5d97){_0x11c0b9=_0x11c0b9-0xb0;const _0x1cb1ef=a134_0x1cb1();let _0x26bfe5=_0x1cb1ef[_0x11c0b9];return _0x26bfe5;}export function resolveRuntimeSkillInstallTarget(_0x3b69be,_0x2d4566=a134_0x3b8b3f(0xbb),_0x19c75b={}){const _0x44caaf=a134_0x3b8b3f,_0x79a383=resolveSkillSyncPaths(_0x19c75b),_0x3bd3b2=safePathSegment(_0x3b69be,'appCode'),_0x5e60ff=_0x2d4566===_0x44caaf(0xb9)?[resolve(_0x19c75b[_0x44caaf(0xba)]??process[_0x44caaf(0xba)](),_0x44caaf(0xb7),'skills')]:runtimeAgentSkillRoots(_0x79a383);return Object[_0x44caaf(0xb1)]({'scope':_0x2d4566,'appCode':_0x3bd3b2,'skillRoots':Object['freeze'](_0x5e60ff),'managedRoot':_0x79a383[_0x44caaf(0xbe)]});}
1
+ (function(_0x26caaf,_0x19b5ae){const _0x167885=a134_0xa0ff,_0x33d957=_0x26caaf();while(!![]){try{const _0x47e60c=parseInt(_0x167885(0xa8))/0x1+-parseInt(_0x167885(0xab))/0x2+-parseInt(_0x167885(0xaa))/0x3*(parseInt(_0x167885(0x9f))/0x4)+-parseInt(_0x167885(0xa4))/0x5+-parseInt(_0x167885(0xa2))/0x6*(parseInt(_0x167885(0xa3))/0x7)+parseInt(_0x167885(0xa9))/0x8+-parseInt(_0x167885(0xa0))/0x9*(-parseInt(_0x167885(0xa7))/0xa);if(_0x47e60c===_0x19b5ae)break;else _0x33d957['push'](_0x33d957['shift']());}catch(_0x4d929f){_0x33d957['push'](_0x33d957['shift']());}}}(a134_0xfa81,0x6221a));import{resolve}from'node:path';function a134_0xfa81(){const _0x38cd51=['2888155vEoPuU','.agents','appCode','408190LcyHQy','568131VgTZBc','3745536BLCCPi','179727OOrfRu','56156zbNXHv','skills','cwd','32dlWVVE','207xHWtyL','project','2929398ARLvIM','7pNexKw'];a134_0xfa81=function(){return _0x38cd51;};return a134_0xfa81();}function a134_0xa0ff(_0x9ae3af,_0x10e892){_0x9ae3af=_0x9ae3af-0x9d;const _0xfa8120=a134_0xfa81();let _0xa0ff6a=_0xfa8120[_0x9ae3af];return _0xa0ff6a;}import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x10c184,_0x43e8f1='global',_0x5eb396={}){const _0x3b7d53=a134_0xa0ff,_0x34a346=resolveSkillSyncPaths(_0x5eb396),_0x567512=safePathSegment(_0x10c184,_0x3b7d53(0xa6)),_0x58ba15=_0x43e8f1===_0x3b7d53(0xa1)?[resolve(_0x5eb396[_0x3b7d53(0x9e)]??process[_0x3b7d53(0x9e)](),_0x3b7d53(0xa5),_0x3b7d53(0x9d))]:runtimeAgentSkillRoots(_0x34a346);return Object['freeze']({'scope':_0x43e8f1,'appCode':_0x567512,'skillRoots':Object['freeze'](_0x58ba15),'managedRoot':_0x34a346['managedRoot']});}