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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/notification/config-list.js +1 -1
  36. package/lib/commands/notification/index.js +1 -1
  37. package/lib/commands/notification/shared.js +1 -1
  38. package/lib/commands/ocr/index.js +1 -1
  39. package/lib/commands/permit/dataset-get.js +1 -1
  40. package/lib/commands/permit/dataset-set.js +1 -1
  41. package/lib/commands/permit/index.js +1 -1
  42. package/lib/commands/permit/page-get.js +1 -1
  43. package/lib/commands/permit/page-set.js +1 -1
  44. package/lib/commands/permit/role-menus-set.js +1 -1
  45. package/lib/commands/permit/role-menus.js +1 -1
  46. package/lib/commands/permit/shared.js +1 -1
  47. package/lib/commands/personal-bff/index.js +1 -1
  48. package/lib/commands/registry.js +1 -1
  49. package/lib/commands/role/create.js +1 -1
  50. package/lib/commands/role/delete.js +1 -1
  51. package/lib/commands/role/detail.js +1 -1
  52. package/lib/commands/role/index.js +1 -1
  53. package/lib/commands/role/list.js +1 -1
  54. package/lib/commands/role/shared.js +1 -1
  55. package/lib/commands/role/update.js +1 -1
  56. package/lib/commands/role/user-add.js +1 -1
  57. package/lib/commands/role/user-remove.js +1 -1
  58. package/lib/commands/schedule/index.js +1 -1
  59. package/lib/commands/schema.js +1 -1
  60. package/lib/commands/service/dynamic.js +1 -1
  61. package/lib/commands/service/function-name-adapter.js +1 -1
  62. package/lib/commands/service/index.js +1 -1
  63. package/lib/commands/service/registry.js +1 -1
  64. package/lib/commands/skill/commands/create.js +1 -1
  65. package/lib/commands/skill/commands/diagram.js +1 -1
  66. package/lib/commands/skill/commands/install.js +1 -1
  67. package/lib/commands/skill/commands/list.js +1 -1
  68. package/lib/commands/skill/commands/push.js +1 -1
  69. package/lib/commands/skill/commands/validate.js +1 -1
  70. package/lib/commands/skill/diagram.js +1 -1
  71. package/lib/commands/skill/flags.js +1 -1
  72. package/lib/commands/skill/index.js +1 -1
  73. package/lib/commands/skill/manifest-helpers.js +1 -1
  74. package/lib/commands/skill/push-execute.js +1 -1
  75. package/lib/commands/skill/push-flow-helpers.js +1 -1
  76. package/lib/commands/skill/push-retarget.js +1 -1
  77. package/lib/commands/skill/scopes.js +1 -1
  78. package/lib/commands/skill/summary.js +1 -1
  79. package/lib/commands/skill/templates.js +1 -1
  80. package/lib/commands/skill/validate.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/update.js +1 -1
  85. package/lib/commands/user-account/bind.js +1 -1
  86. package/lib/commands/user-account/index.js +1 -1
  87. package/lib/commands/workspace/index.js +1 -1
  88. package/lib/config/schema.js +1 -1
  89. package/lib/constant/app.js +1 -1
  90. package/lib/constant/auth-mode.js +1 -1
  91. package/lib/constant/cli.js +1 -1
  92. package/lib/constant/defaults.js +1 -1
  93. package/lib/constant/distribution.js +1 -1
  94. package/lib/constant/domain.js +1 -1
  95. package/lib/constant/env.js +1 -1
  96. package/lib/constant/output.js +1 -1
  97. package/lib/constant/product.js +1 -1
  98. package/lib/constant/risk.js +1 -1
  99. package/lib/constant/url.js +1 -1
  100. package/lib/context.js +1 -1
  101. package/lib/core/api-client.js +1 -1
  102. package/lib/core/db-resolver.js +1 -1
  103. package/lib/core/sdk-client.js +1 -1
  104. package/lib/errors.js +1 -1
  105. package/lib/framework/build-all-flags.js +1 -1
  106. package/lib/framework/dryrun.js +1 -1
  107. package/lib/framework/flags.js +1 -1
  108. package/lib/framework/help.js +1 -1
  109. package/lib/framework/index.js +1 -1
  110. package/lib/framework/output.js +1 -1
  111. package/lib/framework/preparse.js +1 -1
  112. package/lib/framework/rate-limit.js +1 -1
  113. package/lib/framework/raw-flags.js +1 -1
  114. package/lib/framework/response.js +1 -1
  115. package/lib/framework/runner-confirmation.js +1 -1
  116. package/lib/framework/runner-error.js +1 -1
  117. package/lib/framework/runner.js +1 -1
  118. package/lib/framework/schema-export.js +1 -1
  119. package/lib/framework/service-order.js +1 -1
  120. package/lib/framework/types.js +1 -1
  121. package/lib/generated/build-info.d.ts +4 -4
  122. package/lib/generated/build-info.js +1 -1
  123. package/lib/help.js +1 -1
  124. package/lib/postinstall.js +1 -1
  125. package/lib/runtime/confirmation.js +1 -1
  126. package/lib/runtime/event.js +1 -1
  127. package/lib/runtime/index.js +1 -1
  128. package/lib/runtime/queue.js +1 -1
  129. package/lib/runtime/resolve.js +1 -1
  130. package/lib/skills/builtin-skill.js +1 -1
  131. package/lib/skills/npx-skills-add.js +1 -1
  132. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  133. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  134. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  135. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  136. package/lib/skills/runtime-skill-sync/links.js +1 -1
  137. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  138. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  139. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  140. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  141. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  142. package/lib/skills/runtime-skill-sync/push.js +1 -1
  143. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  144. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  145. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  146. package/lib/skills/runtime-skill-sync.js +1 -1
  147. package/lib/skills/skill-presence.js +1 -1
  148. package/lib/utils/apply-jq-filter.js +1 -1
  149. package/lib/utils/logger.js +1 -1
  150. package/lib/utils/lossless-json.js +1 -1
  151. package/lib/utils/params.js +1 -1
  152. package/lib/utils/platform.js +1 -1
  153. package/lib/utils/update-notice.js +1 -1
  154. package/lib/utils/version.js +1 -1
  155. package/lib/utils/write-cli-side-channel.js +1 -1
  156. package/package.json +1 -1
  157. package/skills/lovrabet/SKILL.md +1 -1
  158. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x1bda8d,_0xf5363d){const _0x1f64f9=a114_0x2013,_0x18f69a=_0x1bda8d();while(!![]){try{const _0x28a5a0=-parseInt(_0x1f64f9(0x1e7))/0x1*(parseInt(_0x1f64f9(0x1c6))/0x2)+parseInt(_0x1f64f9(0x1c3))/0x3*(parseInt(_0x1f64f9(0x1cf))/0x4)+-parseInt(_0x1f64f9(0x1e4))/0x5*(-parseInt(_0x1f64f9(0x1e0))/0x6)+parseInt(_0x1f64f9(0x1c9))/0x7+-parseInt(_0x1f64f9(0x1d1))/0x8*(-parseInt(_0x1f64f9(0x1e6))/0x9)+-parseInt(_0x1f64f9(0x1c5))/0xa*(-parseInt(_0x1f64f9(0x1c4))/0xb)+-parseInt(_0x1f64f9(0x1e8))/0xc;if(_0x28a5a0===_0xf5363d)break;else _0x18f69a['push'](_0x18f69a['shift']());}catch(_0x3975a8){_0x18f69a['push'](_0x18f69a['shift']());}}}(a114_0xf0fa,0xbac93));function a114_0xf0fa(){const _0x20c89f=['push','--yes','cron','params=','name','scheduled-at','498fcuhqs','name=','title','schedule-id','10265whrAHf','\x20\x20\x20Continue?\x20[y/N]\x20','267786LzgFGi','370tkqEGZ','11282004LgywvW','cron=','kind=','4803SXVCMj','46178tPRdFK','1030OAtgib','7210Wmqbon','\x20\x20\x20Affected:\x20','kind','3635856jxjUyI','commandLabel','title=','affectedRecords','⚠\x20\x20High-risk\x20operation:\x20','code=','1444OvYuYw','params','360JcMjHm','join','channel','channel=','scheduled-at=','entries','stringify','code','service'];a114_0xf0fa=function(){return _0x20c89f;};return a114_0xf0fa();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x25daca,_0x379ad3,_0x17ed88){const _0x5b5675=a114_0x2013,_0x471160=buildConfirmationContext(_0x25daca,_0x379ad3,_0x17ed88),_0x7da8ae=[_0x5b5675(0x1cd)+_0x471160[_0x5b5675(0x1ca)]];return _0x471160['description']&&_0x7da8ae['push']('\x20\x20\x20'+_0x471160['description']),_0x471160[_0x5b5675(0x1cc)]&&_0x7da8ae[_0x5b5675(0x1da)](_0x5b5675(0x1c7)+_0x471160[_0x5b5675(0x1cc)]),_0x7da8ae[_0x5b5675(0x1da)](_0x5b5675(0x1e5)),_0x7da8ae;}function a114_0x2013(_0x4c7575,_0x115092){_0x4c7575=_0x4c7575-0x1c2;const _0xf0fa05=a114_0xf0fa();let _0x20136b=_0xf0fa05[_0x4c7575];return _0x20136b;}export function reconstructCommandArgv(_0x4c1c05,_0x4cf012){const _0x446f93=a114_0x2013,_0x3782ab=[CLI_BIN_NAME,_0x4c1c05[_0x446f93(0x1d9)],_0x4c1c05['command']];for(const [_0x4044c8,_0x15effb]of Object[_0x446f93(0x1d6)](_0x4cf012)){if(_0x15effb===!![])_0x3782ab[_0x446f93(0x1da)]('--'+_0x4044c8);else _0x15effb!==![]&&_0x15effb!==undefined&&_0x15effb!==''&&_0x3782ab['push']('--'+_0x4044c8+'\x20'+JSON[_0x446f93(0x1d7)](_0x15effb));}return _0x3782ab['push'](_0x446f93(0x1db)),_0x3782ab[_0x446f93(0x1d2)]('\x20');}function buildConfirmationContext(_0x21ba8c,_0x32b0c3,_0x31eb5f){const _0x203f33=extractAffectedRecords(_0x31eb5f);return{'commandLabel':_0x32b0c3,'description':_0x21ba8c['description'],'affectedRecords':_0x203f33};}function extractAffectedRecords(_0x2cb795){const _0x4b29a0=a114_0x2013,_0x2f3852=[];if(_0x2cb795[_0x4b29a0(0x1d8)])_0x2f3852['push'](_0x4b29a0(0x1ce)+_0x2cb795['code']);if(_0x2cb795['id'])_0x2f3852[_0x4b29a0(0x1da)]('id='+_0x2cb795['id']);if(_0x2cb795[_0x4b29a0(0x1e3)])_0x2f3852[_0x4b29a0(0x1da)]('schedule-id='+_0x2cb795[_0x4b29a0(0x1e3)]);if(_0x2cb795[_0x4b29a0(0x1de)])_0x2f3852[_0x4b29a0(0x1da)](_0x4b29a0(0x1e1)+_0x2cb795[_0x4b29a0(0x1de)]);if(_0x2cb795[_0x4b29a0(0x1e2)])_0x2f3852['push'](_0x4b29a0(0x1cb)+_0x2cb795[_0x4b29a0(0x1e2)]);if(_0x2cb795[_0x4b29a0(0x1c8)])_0x2f3852[_0x4b29a0(0x1da)](_0x4b29a0(0x1c2)+_0x2cb795[_0x4b29a0(0x1c8)]);if(_0x2cb795[_0x4b29a0(0x1dc)])_0x2f3852[_0x4b29a0(0x1da)](_0x4b29a0(0x1e9)+_0x2cb795[_0x4b29a0(0x1dc)]);if(_0x2cb795[_0x4b29a0(0x1df)])_0x2f3852['push'](_0x4b29a0(0x1d5)+_0x2cb795[_0x4b29a0(0x1df)]);if(_0x2cb795[_0x4b29a0(0x1d3)])_0x2f3852[_0x4b29a0(0x1da)](_0x4b29a0(0x1d4)+_0x2cb795[_0x4b29a0(0x1d3)]);if(_0x2cb795[_0x4b29a0(0x1d0)])_0x2f3852[_0x4b29a0(0x1da)](_0x4b29a0(0x1dd)+_0x2cb795['params']);return _0x2f3852['length']>0x0?_0x2f3852[_0x4b29a0(0x1d2)](',\x20'):undefined;}
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 +1 @@
1
- (function(_0x11b4f5,_0xa0d6d2){const _0x2591fb=a115_0x1695,_0x545edf=_0x11b4f5();while(!![]){try{const _0x14cd93=parseInt(_0x2591fb(0x1c9))/0x1*(parseInt(_0x2591fb(0x1d1))/0x2)+parseInt(_0x2591fb(0x1d6))/0x3+-parseInt(_0x2591fb(0x1cd))/0x4*(-parseInt(_0x2591fb(0x1ce))/0x5)+-parseInt(_0x2591fb(0x1ca))/0x6*(-parseInt(_0x2591fb(0x1c4))/0x7)+parseInt(_0x2591fb(0x1c5))/0x8*(parseInt(_0x2591fb(0x1c8))/0x9)+-parseInt(_0x2591fb(0x1c7))/0xa*(-parseInt(_0x2591fb(0x1d0))/0xb)+parseInt(_0x2591fb(0x1d3))/0xc*(-parseInt(_0x2591fb(0x1c6))/0xd);if(_0x14cd93===_0xa0d6d2)break;else _0x545edf['push'](_0x545edf['shift']());}catch(_0x5e4db4){_0x545edf['push'](_0x545edf['shift']());}}}(a115_0x4354,0xb724b));import{LovrabetError}from'@lovrabet/sdk';function a115_0x4354(){const _0x28082b=['string','11RYrosU','2hQxbPX','validation','1872tiSTPr','stringify','description','2998086DDJiHQ','status','946869vKmgER','32bJIDXS','470821KKUDmD','10604680UFHmhv','3300903AguLFH','372445kjxtYe','48SOPiOP','trim','response','1552RdEyzS','18280noDHPg'];a115_0x4354=function(){return _0x28082b;};return a115_0x4354();}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x370516){const _0x4c74c1=a115_0x1695;if(_0x370516 instanceof LovrabetError){const _0x251559=userFacingLovrabetMessage(_0x370516),_0x202e77=_0x370516,_0x3d511c=createRateLimitError({'status':_0x202e77[_0x4c74c1(0x1d7)],'errorCode':_0x202e77['code'],'message':_0x251559,'retryAfter':readRetryAfter(_0x202e77[_0x4c74c1(0x1cc)]?.['headers'])??readRetryAfterSeconds(_0x202e77[_0x4c74c1(0x1cc)])});return _0x3d511c??CliErrors[_0x4c74c1(0x1d2)](_0x251559);}return _0x370516;}function a115_0x1695(_0x12ca74,_0xf092ba){_0x12ca74=_0x12ca74-0x1c4;const _0x43546c=a115_0x4354();let _0x169557=_0x43546c[_0x12ca74];return _0x169557;}function userFacingLovrabetMessage(_0x3753bc){const _0xea9a41=a115_0x1695,_0x23dde8=_0x3753bc[_0xea9a41(0x1d5)];if(_0x23dde8!==undefined&&_0x23dde8!==null){if(typeof _0x23dde8===_0xea9a41(0x1cf)&&_0x23dde8[_0xea9a41(0x1cb)]())return _0x23dde8[_0xea9a41(0x1cb)]();try{return JSON[_0xea9a41(0x1d4)](_0x23dde8);}catch{}}return _0x3753bc['message'];}
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 +1 @@
1
- (function(_0x4b56d6,_0x122729){const _0x3a1a34=a116_0x5c30,_0x12dda7=_0x4b56d6();while(!![]){try{const _0x5018b7=parseInt(_0x3a1a34(0x1ae))/0x1*(-parseInt(_0x3a1a34(0x1e6))/0x2)+-parseInt(_0x3a1a34(0x1b6))/0x3*(-parseInt(_0x3a1a34(0x1e7))/0x4)+parseInt(_0x3a1a34(0x1ea))/0x5+parseInt(_0x3a1a34(0x1af))/0x6+-parseInt(_0x3a1a34(0x1ca))/0x7*(-parseInt(_0x3a1a34(0x1d9))/0x8)+parseInt(_0x3a1a34(0x1b0))/0x9+-parseInt(_0x3a1a34(0x1d6))/0xa*(parseInt(_0x3a1a34(0x1c1))/0xb);if(_0x5018b7===_0x122729)break;else _0x12dda7['push'](_0x12dda7['shift']());}catch(_0x88bff9){_0x12dda7['push'](_0x12dda7['shift']());}}}(a116_0x5217,0x4075c));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_0x5c30(_0x49f4a3,_0x2326c4){_0x49f4a3=_0x49f4a3-0x1a7;const _0x5217f2=a116_0x5217();let _0x5c3037=_0x5217f2[_0x49f4a3];return _0x5c3037;}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(_0x236830){const _0x5a1964=a116_0x5c30;return void _0x236830,AUTH_MODE[_0x5a1964(0x1e0)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5a5272,_0x1a9098){const _0x1dd68d=a116_0x5c30,_0x3f6f3d=typeof _0x1a9098[_0x1dd68d(0x1a7)]===_0x1dd68d(0x1b4)&&_0x1a9098[_0x1dd68d(0x1a7)][_0x1dd68d(0x1c6)]();return{'rawFlags':_0x1a9098,'appCode':_0x5a5272[_0x1dd68d(0x1db)]||productEnv(_0x1dd68d(0x1c9))||(_0x3f6f3d?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5a5272[_0x1dd68d(0x1cf)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1a9098),'defaultFormat':_0x5a5272[_0x1dd68d(0x1bb)],'defaultPageSize':_0x5a5272[_0x1dd68d(0x1da)],'defaultVerbose':_0x5a5272['verbose'],'riskLevel':_0x5a5272[_0x1dd68d(0x1d2)],'accessKey':_0x5a5272['accessKey'],'env':_0x5a5272['env'],'mergedCli':{'defaultApp':_0x5a5272['defaultApp'],'currentApp':_0x5a5272[_0x1dd68d(0x1e5)],'appCode':_0x5a5272[_0x1dd68d(0x1db)]}};}export function createLovrabetRunnerAdapter(_0x1052a0={}){const _0x5c4556=a116_0x5c30,_0x50d70d={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x5c4556(0x1c8)](_0xf1cf5b=>PIPELINE_FLAG_NAMES[_0x5c4556(0x1b8)](_0xf1cf5b[_0x5c4556(0x1dd)]))[_0x5c4556(0x1aa)](({name:_0x2a8f13,type:_0x43be4d,description:_0x504cb4})=>({'name':_0x2a8f13,'type':_0x43be4d,'description':_0x504cb4})),'formatOutput':_0x1052a0['formatOutput']??formatOutput,'getCommandLabel'(_0x5f53e0){const _0x2e3134=_0x5c4556;return CLI_BIN_NAME+'\x20'+_0x5f53e0[_0x2e3134(0x1bd)]+'\x20'+_0x5f53e0[_0x2e3134(0x1b5)];},'riskPolicy':{'onViolation'(_0x1bac60){console['error'](_0x1bac60);},'createError'(_0xcc6b8b){return CliErrors['cancelled'](_0xcc6b8b);}},async 'prepare'(_0xa1a8e7,_0xe988f2){const _0x4e38d9=_0x5c4556,_0x59ef2e=resolveAuthMode(_0xe988f2);if(_0xa1a8e7[_0x4e38d9(0x1be)]!==![]){if(!_0xe988f2[_0x4e38d9(0x1e4)])throw CliErrors[_0x4e38d9(0x1c7)](_0x4e38d9(0x1cd)+PRODUCT_CONFIG[_0x4e38d9(0x1c5)]+'\x20or\x20pass\x20'+productEnvName(_0x4e38d9(0x1c4))+'.');const {setActiveAK:_0x385643}=await import(_0x4e38d9(0x1bc));_0x385643(_0xe988f2[_0x4e38d9(0x1e4)]);}let _0x2f41d7='';if(_0xa1a8e7[_0x4e38d9(0x1c3)]!==![]){_0x2f41d7=_0xe988f2['appCode']??'',_0x2f41d7=await resolveExplicitAppName(_0xa1a8e7,_0xe988f2,_0x2f41d7);if(!_0x2f41d7){await assertSelectedAppNameIsRuntimeAccessible(_0xa1a8e7,_0xe988f2);throw CliErrors[_0x4e38d9(0x1d8)](_0x4e38d9(0x1a9)+PRODUCT_CONFIG[_0x4e38d9(0x1c5)]+'.');}await assertAppCodeIsRuntimeAccessible(_0xa1a8e7,_0xe988f2,_0x2f41d7);}if(_0x2f41d7){const {initSdkClient:_0x1017e6}=await import('../core/sdk-client.js');_0x1017e6({'appCode':_0x2f41d7,'env':_0xe988f2[_0x4e38d9(0x1e8)]??'production','accessKey':_0xe988f2['accessKey'],'authMode':_0x59ef2e}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0xe988f2[_0x4e38d9(0x1ab)]},'numbers':{'pagesize':_0xe988f2[_0x4e38d9(0x1ce)]}},'extras':{'appCode':_0x2f41d7,'cookie':'','apiDomain':_0xe988f2['apiDomain'],'apiDir':'','accessKey':_0xe988f2[_0x4e38d9(0x1e4)],'envName':_0xe988f2['env'],'mergedCli':_0xe988f2['mergedCli']}};},'confirmHighRisk':_0x1052a0[_0x5c4556(0x1d5)]??(async({def:_0x307096,env:_0xc4bfad,flags:_0x16a374,commandLabel:_0x42ad00})=>{const _0x582da3=_0x5c4556;if(_0xc4bfad[_0x582da3(0x1ba)]){const _0x5c3349=reconstructCommandArgv(_0x307096,_0x16a374);throw CliErrors[_0x582da3(0x1b1)](_0x582da3(0x1b2)+_0x42ad00+_0x582da3(0x1ad)+(_0x582da3(0x1e1)+_0x5c3349));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x307096,_0x42ad00,_0x16a374),'createCancelledError':_0x17223b=>CliErrors[_0x582da3(0x1cc)](_0x17223b)});}),'mapDryRunError'(_0x31ea60){return mapUserFacingExecuteError(_0x31ea60);},'mapExecuteError'(_0x43bd3d){return mapUserFacingExecuteError(_0x43bd3d);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x50d70d;}function a116_0x5217(){const _0x1eaaf0=['authRequired','filter','APPCODE','2443qAxmUi','items','cancelled','Set\x20accessKey\x20in\x20','defaultPageSize','appCodeSource','Run\x20`','mergedCli','riskLevel','_notice','includes','confirmHighRisk','1150TCFIDq','appcode','configMissing','6448VUKHRu','pageSize','appCode','local-alias','name','resolve','../commands/app/remote-source.js','ClientAk','\x20\x20To\x20proceed:\x20','schema','execute','accessKey','currentApp','852GHYkFw','1229404FrkBmP','env','doctor','1573285mGJozS','app','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','map','defaultVerbose','appcode\x20\x22','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','181uHajWU','1471842gzOcfL','1496070hUQtkI','validation','High-risk\x20operation\x20`','rawFlags','string','command','3jYkbUv','production','has','defaultApp','isNonInteractive','format','../core/api-client.js','service','requiresAuth','../core/sdk-client.js','Unknown\x20app:\x20','93137zJQKZb','pretty','requiresAppCode','ACCESS_KEY','newConfigFileName','trim'];a116_0x5217=function(){return _0x1eaaf0;};return a116_0x5217();}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x155e2d=a116_0x5c30;try{if(sdkClientInitialized){const {clearSdkClient:_0x3df133}=await import(_0x155e2d(0x1bf));_0x3df133();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x447385}=await import(_0x155e2d(0x1bc));_0x447385();}}async function resolveExplicitAppName(_0x369362,_0x3ed3c9,_0x226629){const _0x502b3f=a116_0x5c30;if(_0x369362['requiresAppCode']===![])return _0x226629;const _0x71d086=typeof _0x3ed3c9['rawFlags'][_0x502b3f(0x1a7)]===_0x502b3f(0x1b4)?_0x3ed3c9[_0x502b3f(0x1b3)][_0x502b3f(0x1a7)][_0x502b3f(0x1c6)]():'';if(!_0x71d086)return _0x226629;const _0x4e8cc1=typeof _0x3ed3c9[_0x502b3f(0x1b3)][_0x502b3f(0x1d7)]===_0x502b3f(0x1b4)&&_0x3ed3c9['rawFlags']['appcode'][_0x502b3f(0x1c6)]()||productEnv(_0x502b3f(0x1c9));if(_0x4e8cc1||_0x3ed3c9[_0x502b3f(0x1cf)]===_0x502b3f(0x1dc))return _0x226629;const {getRemoteAppList:_0x5cc9b6}=await import(_0x502b3f(0x1df)),_0x2b60db=await _0x5cc9b6({'env':_0x3ed3c9['env']??_0x502b3f(0x1b7),'accessKey':_0x3ed3c9[_0x502b3f(0x1e4)]}),_0x4bdebe=findAppByName(_0x2b60db[_0x502b3f(0x1cb)],_0x71d086);if(_0x4bdebe&&!isRuntimeAccessibleApp(_0x4bdebe))throw runtimeInaccessibleAppError(_0x4bdebe,'\x22'+_0x71d086+'\x22');const _0x49f135=_0x4bdebe?.[_0x502b3f(0x1db)]?.[_0x502b3f(0x1c6)]();if(_0x49f135)return _0x49f135;throw CliErrors[_0x502b3f(0x1b1)](_0x502b3f(0x1c0)+_0x71d086,_0x502b3f(0x1d0)+CLI_BIN_NAME+_0x502b3f(0x1a8)+_0x71d086+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x502b3f(0x1c5)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x54ae,_0x178702){const _0x134489=a116_0x5c30;if(_0x54ae[_0x134489(0x1c3)]===![]||!_0x178702['accessKey'])return;const _0x1d83ae=(typeof _0x178702[_0x134489(0x1b3)][_0x134489(0x1a7)]===_0x134489(0x1b4)&&_0x178702[_0x134489(0x1b3)][_0x134489(0x1a7)]['trim']()?_0x178702[_0x134489(0x1b3)]['app']:_0x178702[_0x134489(0x1d1)]?.[_0x134489(0x1e5)]??_0x178702[_0x134489(0x1d1)]?.[_0x134489(0x1b9)])?.[_0x134489(0x1c6)]();if(!_0x1d83ae)return;const {getRemoteAppList:_0x2f0e7b}=await import('../commands/app/remote-source.js'),_0x4919f7=await _0x2f0e7b({'env':_0x178702[_0x134489(0x1e8)]??_0x134489(0x1b7),'accessKey':_0x178702[_0x134489(0x1e4)]}),_0x14f571=findAppByName(_0x4919f7['items'],_0x1d83ae);if(_0x14f571&&!isRuntimeAccessibleApp(_0x14f571))throw runtimeInaccessibleAppError(_0x14f571,'\x22'+_0x1d83ae+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x2941da,_0x49da0f,_0x265724){const _0x354f30=a116_0x5c30;if(_0x2941da['requiresAppCode']===![]||!_0x49da0f[_0x354f30(0x1e4)])return;const {getRemoteAppList:_0x276b4f}=await import(_0x354f30(0x1df)),_0x466102=await _0x276b4f({'env':_0x49da0f['env']??_0x354f30(0x1b7),'accessKey':_0x49da0f[_0x354f30(0x1e4)]}),_0x436228=findAppByCode(_0x466102[_0x354f30(0x1cb)],_0x265724);if(_0x436228&&!isRuntimeAccessibleApp(_0x436228))throw runtimeInaccessibleAppError(_0x436228,_0x354f30(0x1ac)+_0x265724+'\x22');}export async function runCommand(_0x329ebe,_0x22bcd8,_0x29462f=terminalRunnerAdapter){const _0xba58b3=a116_0x5c30;assertKnownCommandFlags(_0x329ebe,_0x22bcd8[_0xba58b3(0x1b3)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x329ebe)?withUpdateNotice(_0x329ebe):_0x329ebe,_0x22bcd8,_0x29462f);}function shouldAttachUpdateNotice(_0x258c5c){const _0x4a70c9=a116_0x5c30;return!['update',_0x4a70c9(0x1e2),_0x4a70c9(0x1e9)][_0x4a70c9(0x1d4)](_0x258c5c[_0x4a70c9(0x1bd)]);}function withUpdateNotice(_0x4a3a0a){return{..._0x4a3a0a,async 'execute'(_0x5db54b){const _0x27ee23=a116_0x5c30,_0x1512e9=shouldResolveUpdateNotice(_0x5db54b)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x27ee23(0x1de)](null),_0x399081=await _0x4a3a0a[_0x27ee23(0x1e3)](_0x5db54b);return attachUpdateNotice(_0x399081,await _0x1512e9);}};}function shouldResolveUpdateNotice(_0x21debb){const _0x32273e=a116_0x5c30;return _0x21debb[_0x32273e(0x1bb)]===_0x32273e(0x1c2)&&!_0x21debb['nonInteractive'];}function attachUpdateNotice(_0x12ae70,_0x4ea680){const _0x1a3dab=a116_0x5c30;if(!_0x4ea680||!_0x12ae70||typeof _0x12ae70!=='object')return _0x12ae70;const _0x3434a6=_0x12ae70,_0x2fd1b5=typeof _0x3434a6[_0x1a3dab(0x1d3)]==='object'&&_0x3434a6[_0x1a3dab(0x1d3)]!==null?_0x3434a6[_0x1a3dab(0x1d3)]:{};return{..._0x3434a6,'_notice':{..._0x2fd1b5,'update':_0x4ea680}};}
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 +1 @@
1
- (function(_0x3e6d7a,_0x379b54){const _0x4c30fa=a117_0x588e,_0x525c39=_0x3e6d7a();while(!![]){try{const _0x4c7034=-parseInt(_0x4c30fa(0x164))/0x1*(parseInt(_0x4c30fa(0x162))/0x2)+-parseInt(_0x4c30fa(0x15f))/0x3*(parseInt(_0x4c30fa(0x15a))/0x4)+-parseInt(_0x4c30fa(0x159))/0x5*(-parseInt(_0x4c30fa(0x15b))/0x6)+-parseInt(_0x4c30fa(0x155))/0x7+parseInt(_0x4c30fa(0x15e))/0x8+parseInt(_0x4c30fa(0x160))/0x9*(parseInt(_0x4c30fa(0x158))/0xa)+parseInt(_0x4c30fa(0x15d))/0xb;if(_0x4c7034===_0x379b54)break;else _0x525c39['push'](_0x525c39['shift']());}catch(_0x2b1393){_0x525c39['push'](_0x525c39['shift']());}}}(a117_0x36ca,0x3d0dd));function a117_0x588e(_0x13a5f5,_0x2ef905){_0x13a5f5=_0x13a5f5-0x155;const _0x36caa1=a117_0x36ca();let _0x588eaa=_0x36caa1[_0x13a5f5];return _0x588eaa;}function a117_0x36ca(){const _0x21b090=['service','1401411NBJWyI','1821600ufwwFy','1119hVgFtY','18gWstui','none','344UNIBvZ','required','1471cQMyqr','2049075EMCYmv','filter','map','2110070PNmglI','500FqcNKa','148lqYDfb','1950JNPhlX'];a117_0x36ca=function(){return _0x21b090;};return a117_0x36ca();}import{buildSchemaPayload as a117_0x57c7ee}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1313db=a117_0x588e,{serviceRegistry:_0x3fb4cb,findDefinition:_0x4078fa}=await import('../commands/registry.js'),_0x488c78=new Set(_0x3fb4cb[_0x1313db(0x157)](_0xbdb00c=>_0xbdb00c[_0x1313db(0x15c)])),_0x83ff20=listDynamicServiceEntries()[_0x1313db(0x156)](_0x3bb068=>!_0x488c78['has'](_0x3bb068['service'])),_0xfdef25=a117_0x57c7ee({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3fb4cb,_0x83ff20),'buildAllFlags':buildAllFlags,'findDefinition':(_0x1869a8,_0x33e309)=>_0x4078fa(_0x1869a8,_0x33e309)??findDynamicServiceDefinition(_0x1869a8,_0x33e309)});return normalizeSchemaPayload(_0xfdef25);}function normalizeSchemaPayload(_0x3577c5){const _0x848e37=a117_0x588e;return{..._0x3577c5,'schemaVersion':0x2,'services':_0x3577c5['services']['map'](_0x1d020f=>({..._0x1d020f,'commands':_0x1d020f['commands'][_0x848e37(0x157)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x4bbe69){const _0x1e0edc=a117_0x588e,_0x565ccf=_0x4bbe69;return{..._0x4bbe69,'auth':_0x565ccf['auth']??(_0x4bbe69['requiresAuth']?_0x1e0edc(0x163):_0x1e0edc(0x161))};}
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 +1 @@
1
- (function(_0xb09432,_0x4120d9){const _0x47cef9=a118_0x68f9,_0x351f1f=_0xb09432();while(!![]){try{const _0x4a7447=-parseInt(_0x47cef9(0x10f))/0x1+parseInt(_0x47cef9(0x107))/0x2+parseInt(_0x47cef9(0x111))/0x3*(-parseInt(_0x47cef9(0x10c))/0x4)+parseInt(_0x47cef9(0x112))/0x5+parseInt(_0x47cef9(0x108))/0x6*(parseInt(_0x47cef9(0x110))/0x7)+-parseInt(_0x47cef9(0x10b))/0x8+parseInt(_0x47cef9(0x109))/0x9*(-parseInt(_0x47cef9(0x113))/0xa);if(_0x4a7447===_0x4120d9)break;else _0x351f1f['push'](_0x351f1f['shift']());}catch(_0x4f920b){_0x351f1f['push'](_0x351f1f['shift']());}}}(a118_0xdb27,0xe7866));function a118_0xdb27(){const _0x553665=['57CbwegN','8702995lVBhxC','568970zDSNXC','service','1122272EcFvgK','17508kOiCEP','135fozabw','length','5686456eAocti','137908paULZm','slice','findIndex','190400DEYwVC','2534TtnDEf'];a118_0xdb27=function(){return _0x553665;};return a118_0xdb27();}function a118_0x68f9(_0x3b3940,_0x5950c8){_0x3b3940=_0x3b3940-0x106;const _0xdb2722=a118_0xdb27();let _0x68f911=_0xdb2722[_0x3b3940];return _0x68f911;}export function insertDynamicServicesAfterServiceTree(_0x18d81f,_0x777a45){const _0x369943=a118_0x68f9;if(_0x777a45[_0x369943(0x10a)]===0x0)return[..._0x18d81f];const _0x1fab0f=_0x18d81f[_0x369943(0x10e)](_0x9ceec=>_0x9ceec[_0x369943(0x106)]===_0x369943(0x106));if(_0x1fab0f<0x0)return[..._0x18d81f,..._0x777a45];return[..._0x18d81f[_0x369943(0x10d)](0x0,_0x1fab0f+0x1),..._0x777a45,..._0x18d81f[_0x369943(0x10d)](_0x1fab0f+0x1)];}
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 +1 @@
1
- function a119_0x2722(){var _0x207ffa=['651190rpDfkF','1025871xbUeaE','784179wTZQVR','942mbaamp','21795jMcYmm','3014176lDoDvz','32igvAwS','157726IxrHfz','9PyhXGm','654150PsqlMC'];a119_0x2722=function(){return _0x207ffa;};return a119_0x2722();}function a119_0x4c4e(_0x1ea103,_0x571b6c){_0x1ea103=_0x1ea103-0x83;var _0x2722b6=a119_0x2722();var _0x4c4e8f=_0x2722b6[_0x1ea103];return _0x4c4e8f;}(function(_0x512499,_0x24d055){var _0x3c773f=a119_0x4c4e,_0x32e634=_0x512499();while(!![]){try{var _0x34b99d=parseInt(_0x3c773f(0x86))/0x1+-parseInt(_0x3c773f(0x84))/0x2+-parseInt(_0x3c773f(0x89))/0x3+parseInt(_0x3c773f(0x8c))/0x4+parseInt(_0x3c773f(0x8b))/0x5*(-parseInt(_0x3c773f(0x8a))/0x6)+-parseInt(_0x3c773f(0x88))/0x7*(-parseInt(_0x3c773f(0x83))/0x8)+-parseInt(_0x3c773f(0x85))/0x9*(parseInt(_0x3c773f(0x87))/0xa);if(_0x34b99d===_0x24d055)break;else _0x32e634['push'](_0x32e634['shift']());}catch(_0x20c2b2){_0x32e634['push'](_0x32e634['shift']());}}}(a119_0x2722,0xdcbe8));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
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,4 +1,4 @@
1
- export declare const VERSION = "2.2.4-beta.3";
2
- export declare const GIT_TAG = "v2.2.4-beta.3";
3
- export declare const GIT_COMMIT = "627efe5";
4
- export declare const BUILD_TIME = "2026-08-17T08:52:42.694Z";
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 +1 @@
1
- const a120_0x3fec37=a120_0x5893;(function(_0x312dbb,_0x317a61){const _0x162fc3=a120_0x5893,_0xf19609=_0x312dbb();while(!![]){try{const _0x2cbe3c=-parseInt(_0x162fc3(0x1c4))/0x1*(parseInt(_0x162fc3(0x1ba))/0x2)+-parseInt(_0x162fc3(0x1c1))/0x3+parseInt(_0x162fc3(0x1bf))/0x4+parseInt(_0x162fc3(0x1c5))/0x5+parseInt(_0x162fc3(0x1bb))/0x6+-parseInt(_0x162fc3(0x1bd))/0x7*(-parseInt(_0x162fc3(0x1c3))/0x8)+parseInt(_0x162fc3(0x1bc))/0x9;if(_0x2cbe3c===_0x317a61)break;else _0xf19609['push'](_0xf19609['shift']());}catch(_0x2fbc87){_0xf19609['push'](_0xf19609['shift']());}}}(a120_0x4b58,0xa4ab2));function a120_0x5893(_0x4d376e,_0x2486a7){_0x4d376e=_0x4d376e-0x1ba;const _0x4b580c=a120_0x4b58();let _0x58935c=_0x4b580c[_0x4d376e];return _0x58935c;}export const VERSION=a120_0x3fec37(0x1c2);function a120_0x4b58(){const _0x3dd5e8=['6716190lLpXJI','627efe5','2416340StShtf','1980198CxZPhA','4996134EAEcch','273553bhTSYy','v2.2.4-beta.3','1287676EDrufk','2026-08-17T08:52:42.694Z','2823651WhFaTn','2.2.4-beta.3','56vjwges','1gASCKA'];a120_0x4b58=function(){return _0x3dd5e8;};return a120_0x4b58();}export const GIT_TAG=a120_0x3fec37(0x1be);export const GIT_COMMIT=a120_0x3fec37(0x1c6);export const BUILD_TIME=a120_0x3fec37(0x1c0);
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();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a121_0x5b17(){const _0x15d8a2=['\x20\x20Use\x20','20vBYuHR','105870apznHx','\x20--help','green','\x20to\x20view\x20available\x20commands.','7lVJzfA','52912230OQTTGL','3550581RcUfKh','column','1158789hdWmtt','907395rCyVvK','5439344cmtmoN','6702684WZXbir','8KFfakt'];a121_0x5b17=function(){return _0x15d8a2;};return a121_0x5b17();}(function(_0x1fb070,_0x4d929d){const _0x425500=a121_0x5c4d,_0x4b1a75=_0x1fb070();while(!![]){try{const _0x5b5c66=-parseInt(_0x425500(0x137))/0x1+-parseInt(_0x425500(0x13b))/0x2*(parseInt(_0x425500(0x138))/0x3)+-parseInt(_0x425500(0x13d))/0x4*(parseInt(_0x425500(0x13e))/0x5)+-parseInt(_0x425500(0x13a))/0x6+parseInt(_0x425500(0x142))/0x7*(-parseInt(_0x425500(0x139))/0x8)+-parseInt(_0x425500(0x135))/0x9+parseInt(_0x425500(0x143))/0xa;if(_0x5b5c66===_0x4d929d)break;else _0x4b1a75['push'](_0x4b1a75['shift']());}catch(_0x3ccb2c){_0x4b1a75['push'](_0x4b1a75['shift']());}}}(a121_0x5b17,0x98a0b));import{jsx as a121_0x3f18bf,jsxs as a121_0x54f10e}from'react/jsx-runtime';import{useEffect}from'react';function a121_0x5c4d(_0x5de068,_0x3bfad7){_0x5de068=_0x5de068-0x135;const _0x5b178e=a121_0x5b17();let _0x5c4d16=_0x5b178e[_0x5de068];return _0x5c4d16;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x112d72=a121_0x5c4d,{exit:_0x4c05b2}=useApp();return useEffect(()=>{_0x4c05b2();},[_0x4c05b2]),a121_0x54f10e(Box,{'flexDirection':_0x112d72(0x136),'marginTop':0x1,'marginBottom':0x1,'children':[a121_0x3f18bf(Box,{'children':a121_0x3f18bf(Text,{'bold':!![],'color':_0x112d72(0x140),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a121_0x54f10e(Box,{'marginTop':0x1,'children':[a121_0x3f18bf(Text,{'dimColor':!![],'children':_0x112d72(0x13c)}),a121_0x3f18bf(Text,{'bold':!![],'color':_0x112d72(0x140),'children':CLI_BIN_NAME+_0x112d72(0x13f)}),a121_0x3f18bf(Text,{'dimColor':!![],'children':_0x112d72(0x141)})]})]});}
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 +1 @@
1
- function a122_0x1cf2(){const _0x2ef88d=['Installation\x20failed','21752qhciLZ','57CNfjSR','installedPath','already\x20current','warn','log','FAILED','32eIOiNU','189301ZByGBd','856325gNPKNI','7194704koPQAq','code','163730qFrEhZ','120hRNWnV','[BUILTIN_SKILL_INSTALL_','1nbrKrI','changed','1099740UIAlrx','skillVersion','\x20at\x20','repairCommand','37125XeUwEz'];a122_0x1cf2=function(){return _0x2ef88d;};return a122_0x1cf2();}function a122_0x47a8(_0x38b60c,_0x3f48a2){_0x38b60c=_0x38b60c-0x19c;const _0x1cf276=a122_0x1cf2();let _0x47a89e=_0x1cf276[_0x38b60c];return _0x47a89e;}(function(_0x1c1b9e,_0x56cb9a){const _0x114663=a122_0x47a8,_0x3f0150=_0x1c1b9e();while(!![]){try{const _0x45cfa3=-parseInt(_0x114663(0x1a0))/0x1*(-parseInt(_0x114663(0x19d))/0x2)+parseInt(_0x114663(0x1a9))/0x3*(-parseInt(_0x114663(0x1a8))/0x4)+-parseInt(_0x114663(0x1b1))/0x5+-parseInt(_0x114663(0x1a2))/0x6+parseInt(_0x114663(0x1b0))/0x7*(-parseInt(_0x114663(0x1af))/0x8)+-parseInt(_0x114663(0x1a6))/0x9*(parseInt(_0x114663(0x19e))/0xa)+parseInt(_0x114663(0x1b2))/0xb;if(_0x45cfa3===_0x56cb9a)break;else _0x3f0150['push'](_0x3f0150['shift']());}catch(_0x17c6bd){_0x3f0150['push'](_0x3f0150['shift']());}}}(a122_0x1cf2,0x1d63c));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x2e9415={}){const _0x2c84dc=a122_0x47a8,_0x205d5a=installBuiltinSkill(_0x2e9415);if(_0x205d5a['ok']){const _0x255000=_0x205d5a[_0x2c84dc(0x1a1)]?'installed':_0x2c84dc(0x1ab),_0x49b3f2=_0x205d5a[_0x2c84dc(0x1aa)]?_0x2c84dc(0x1a4)+_0x205d5a[_0x2c84dc(0x1aa)]:'\x20via\x20skills@latest';return console[_0x2c84dc(0x1ad)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x205d5a[_0x2c84dc(0x1a3)]+'\x20'+_0x255000+_0x49b3f2),_0x205d5a;}const _0x3732f5=_0x2c84dc(0x19f)+(_0x205d5a['code']??_0x2c84dc(0x1ae))+']\x20'+(_0x205d5a['error']??_0x2c84dc(0x1a7))+'.\x20'+('Repair\x20with:\x20'+_0x205d5a[_0x2c84dc(0x1a5)]);if(_0x205d5a[_0x2c84dc(0x19c)]==='SOURCE_INVALID')throw new Error(_0x3732f5);return console[_0x2c84dc(0x1ac)](_0x3732f5),_0x205d5a;}
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 +1 @@
1
- (function(_0x2bc4a5,_0x5a4b60){const _0x1552a2=a123_0x2b8c,_0x5dcf50=_0x2bc4a5();while(!![]){try{const _0x35c3ea=parseInt(_0x1552a2(0x13b))/0x1+-parseInt(_0x1552a2(0x12c))/0x2+-parseInt(_0x1552a2(0x136))/0x3+parseInt(_0x1552a2(0x12d))/0x4*(-parseInt(_0x1552a2(0x12b))/0x5)+parseInt(_0x1552a2(0x12e))/0x6*(-parseInt(_0x1552a2(0x134))/0x7)+parseInt(_0x1552a2(0x129))/0x8+parseInt(_0x1552a2(0x128))/0x9*(parseInt(_0x1552a2(0x139))/0xa);if(_0x35c3ea===_0x5a4b60)break;else _0x5dcf50['push'](_0x5dcf50['shift']());}catch(_0x59123b){_0x5dcf50['push'](_0x5dcf50['shift']());}}}(a123_0x5882,0x53519));const DESCRIPTION_MAX_LENGTH=0x1f4;function a123_0x5882(){const _0x266b83=['2582320MTxqFx','trim','35385YGxHgp','84138yzhyiY','172RmGhFa','834156kLaVBe','confirmationDescription','write','risk','slice','replace','14itoYzc','description','853593FnwaiZ','执行该写入操作','string','140LGtWFZ','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','681522DeoMet','158094gtlfYv'];a123_0x5882=function(){return _0x266b83;};return a123_0x5882();}export function buildLovrabetConfirmationRequest(_0x3c30bc,_0x273a7d,_0x18d16d){const _0x4c711c=a123_0x2b8c,_0x21a413=normalizeText(_0x3c30bc[_0x4c711c(0x12f)],DESCRIPTION_MAX_LENGTH),_0x2f0c98=normalizeText(_0x3c30bc[_0x4c711c(0x135)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x273a7d,'risk':requireWriteRisk(_0x3c30bc),'description':_0x21a413||_0x2f0c98||_0x4c711c(0x137),..._0x18d16d?{'signal':_0x18d16d}:{}};}function requireWriteRisk(_0x1b6fa5){const _0x7475e=a123_0x2b8c;if(_0x1b6fa5[_0x7475e(0x131)]===_0x7475e(0x130)||_0x1b6fa5[_0x7475e(0x131)]==='high-risk-write')return _0x1b6fa5[_0x7475e(0x131)];throw new Error(_0x7475e(0x13a));}function a123_0x2b8c(_0x45a1cb,_0x4f55bf){_0x45a1cb=_0x45a1cb-0x128;const _0x5882e9=a123_0x5882();let _0x2b8c13=_0x5882e9[_0x45a1cb];return _0x2b8c13;}function normalizeText(_0xa620bd,_0xdb0515){const _0x59cf25=a123_0x2b8c;if(typeof _0xa620bd!==_0x59cf25(0x138))return'';return _0xa620bd[_0x59cf25(0x133)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x59cf25(0x12a)]()[_0x59cf25(0x132)](0x0,_0xdb0515);}
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 +1 @@
1
- function a124_0x137b(){const _0x265e7f=['1312hvFEwL','join','risk','high-risk-write','296712BFEfeW','3SbMrVC','14267xnigKQ','lovrabet.write.completed','779860GpWVtW','trim','243306lnHHYV','write','26130432mFjqls','command','25AOkfui','9570lHOKGH','171RoxBtH','split','service','8093113ApXunw','795EJFrKD'];a124_0x137b=function(){return _0x265e7f;};return a124_0x137b();}function a124_0x2be1(_0x3b344c,_0x24dbab){_0x3b344c=_0x3b344c-0x146;const _0x137bcc=a124_0x137b();let _0x2be1c3=_0x137bcc[_0x3b344c];return _0x2be1c3;}(function(_0x1cec61,_0x137a49){const _0x2e7231=a124_0x2be1,_0x47bf5d=_0x1cec61();while(!![]){try{const _0x545680=-parseInt(_0x2e7231(0x14d))/0x1*(parseInt(_0x2e7231(0x14e))/0x2)+-parseInt(_0x2e7231(0x153))/0x3*(parseInt(_0x2e7231(0x156))/0x4)+parseInt(_0x2e7231(0x147))/0x5*(-parseInt(_0x2e7231(0x158))/0x6)+-parseInt(_0x2e7231(0x14c))/0x7+parseInt(_0x2e7231(0x152))/0x8*(-parseInt(_0x2e7231(0x149))/0x9)+parseInt(_0x2e7231(0x148))/0xa*(parseInt(_0x2e7231(0x154))/0xb)+parseInt(_0x2e7231(0x15a))/0xc;if(_0x545680===_0x137a49)break;else _0x47bf5d['push'](_0x47bf5d['shift']());}catch(_0x555b2e){_0x47bf5d['push'](_0x47bf5d['shift']());}}}(a124_0x137b,0x9bed3));export function canonicalLovrabetOperation(_0x5b79d1){const _0x2a46fe=a124_0x2be1;return[_0x5b79d1[_0x2a46fe(0x14b)],..._0x5b79d1[_0x2a46fe(0x146)][_0x2a46fe(0x157)]()[_0x2a46fe(0x14a)](/\s+/)]['filter'](Boolean)[_0x2a46fe(0x14f)]('.');}export function createLovrabetWriteMetadata(_0x550a73,_0x45a71e,_0x519557,_0x2ae0b3){const _0x2d5ea0=a124_0x2be1;if(_0x2ae0b3||_0x519557['ok']!==!![]||_0x550a73['risk']!==_0x2d5ea0(0x159)&&_0x550a73[_0x2d5ea0(0x150)]!==_0x2d5ea0(0x151))return undefined;const _0x264873=_0x550a73['writeEventSubject']?.(_0x519557),_0x4612ec={'type':_0x2d5ea0(0x155),'operation':_0x45a71e,'risk':_0x550a73['risk'],..._0x264873?{'subject':_0x264873}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4612ec}};}
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 +1 @@
1
- function a125_0x40f1(_0x291908,_0x3ba4eb){_0x291908=_0x291908-0x122;const _0x173de8=a125_0x173d();let _0x40f186=_0x173de8[_0x291908];return _0x40f186;}(function(_0x4cc3c0,_0x3ba713){const _0xe3ad1d=a125_0x40f1,_0x429acb=_0x4cc3c0();while(!![]){try{const _0x4922eb=parseInt(_0xe3ad1d(0x13f))/0x1+-parseInt(_0xe3ad1d(0x136))/0x2+-parseInt(_0xe3ad1d(0x13b))/0x3*(-parseInt(_0xe3ad1d(0x130))/0x4)+parseInt(_0xe3ad1d(0x123))/0x5+parseInt(_0xe3ad1d(0x12e))/0x6*(parseInt(_0xe3ad1d(0x12f))/0x7)+parseInt(_0xe3ad1d(0x135))/0x8+-parseInt(_0xe3ad1d(0x12c))/0x9;if(_0x4922eb===_0x3ba713)break;else _0x429acb['push'](_0x429acb['shift']());}catch(_0x5e90f7){_0x429acb['push'](_0x429acb['shift']());}}}(a125_0x173d,0xbc78f));function a125_0x173d(){const _0x146449=['risk','291gGNTrY','result','dry-run','message','1445693CacNQP','yes','reason','confirmation','stringify','dryRun','execute','command','3963985HLstcP','Lovrabet\x20invocation\x20aborted.','rawFlags','format','write','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','confirm','high-risk-write','present','33446106ttNIoG','args','8718444iYwciC','7vbrbgx','38876RpNFwl','riskLevel','presentation','isNonInteractive','data','10200160yzVXQy','2842220iGZHKl','signal','definition','AbortError'];a125_0x173d=function(){return _0x146449;};return a125_0x173d();}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:_0x36095d,command:_0x4069e3,risk:_0x1d5706,dryRun:_0x373fee}){const _0x5ee66c=a125_0x40f1;return JSON[_0x5ee66c(0x143)]({'ok':_0x36095d['ok'],'command':_0x4069e3,'risk':_0x1d5706,..._0x373fee?{'dryRun':!![]}:{},..._0x36095d[_0x5ee66c(0x134)]!==undefined?{'data':_0x36095d[_0x5ee66c(0x134)]}:{},..._0x36095d['message']?{'message':_0x36095d[_0x5ee66c(0x13e)]}:{}});}};export async function invokeLovrabet(_0x42d7a8,_0x49af68){const _0x36ed8e=a125_0x40f1;throwIfAborted(_0x49af68[_0x36ed8e(0x137)]);const _0x470cf6=await resolveLovrabetInvocation(_0x42d7a8),_0x40ac9c=canonicalLovrabetOperation(_0x470cf6['definition']);return await confirmWriteBeforeQueue(_0x470cf6[_0x36ed8e(0x138)],_0x470cf6[_0x36ed8e(0x125)],_0x40ac9c,_0x49af68),runSerialized(async()=>{const _0x2485f6=_0x36ed8e;throwIfAborted(_0x49af68[_0x2485f6(0x137)]);const _0x5b176d={},_0x42b45d=buildConfigFromFlags(_0x470cf6[_0x2485f6(0x125)]);await initGlobalEnvironment(_0x42b45d);const _0x5bebbf=createPipelineEnv(_0x42b45d,{..._0x470cf6[_0x2485f6(0x125)],'yes':_0x470cf6[_0x2485f6(0x138)][_0x2485f6(0x13a)]===_0x2485f6(0x12a)?!![]:_0x470cf6[_0x2485f6(0x125)][_0x2485f6(0x140)],'nonInteractive':!![]});_0x5bebbf[_0x2485f6(0x12d)]=_0x470cf6[_0x2485f6(0x12d)],_0x5bebbf[_0x2485f6(0x133)]=!![],_0x5bebbf[_0x2485f6(0x131)]='high-risk-write';const _0x374883=withAbortSignal(_0x470cf6[_0x2485f6(0x138)],_0x49af68[_0x2485f6(0x137)]),_0x3efdc6=createLovrabetRunnerAdapter({'formatOutput'(_0x4c5ef7,_0x2b2e85){const _0x353f32=_0x2485f6;_0x5b176d[_0x353f32(0x13c)]=_0x4c5ef7,_0x5b176d['command']=_0x2b2e85[_0x353f32(0x122)],_0x5b176d[_0x353f32(0x13a)]=_0x2b2e85[_0x353f32(0x13a)],_0x5b176d[_0x353f32(0x126)]=_0x2b2e85['format'],_0x5b176d[_0x353f32(0x144)]=_0x2b2e85[_0x353f32(0x144)]===!![];},async 'confirmHighRisk'(){const _0x254c13=_0x2485f6;throw new Error(_0x254c13(0x128));}});try{await runCommand(_0x374883,_0x5bebbf,_0x3efdc6);if(!_0x5b176d[_0x2485f6(0x13c)]||!_0x5b176d[_0x2485f6(0x122)]||!_0x5b176d[_0x2485f6(0x13a)]||!_0x5b176d[_0x2485f6(0x126)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x53ad53=_0x49af68[_0x2485f6(0x132)]??defaultPresentation,_0x33262c=_0x5b176d['dryRun']===!![],_0x3f7cc3={'result':_0x5b176d[_0x2485f6(0x13c)],'command':_0x5b176d[_0x2485f6(0x122)],'operation':_0x40ac9c,'risk':_0x5b176d['risk'],'format':_0x5b176d[_0x2485f6(0x126)],'dryRun':_0x33262c},_0x124fe4=createLovrabetWriteMetadata(_0x470cf6['definition'],_0x40ac9c,_0x5b176d[_0x2485f6(0x13c)],_0x33262c);let _0x586e42;try{_0x586e42=await _0x53ad53[_0x2485f6(0x12b)](_0x3f7cc3);}catch(_0x32640c){if(!_0x124fe4||_0x53ad53===defaultPresentation)throw _0x32640c;_0x586e42=await defaultPresentation[_0x2485f6(0x12b)](_0x3f7cc3);}return{'operation':_0x40ac9c,'risk':_0x5b176d[_0x2485f6(0x13a)],'mode':_0x33262c?_0x2485f6(0x13d):_0x2485f6(0x145),'result':_0x5b176d['result'],'output':_0x586e42,..._0x124fe4?{'metadata':_0x124fe4}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3d3f22,_0x2e98ff,_0xe1f55d,_0x4fd7ec){const _0xf67a4f=a125_0x40f1;if(_0x2e98ff[_0xf67a4f(0x144)]===!![]||_0x3d3f22[_0xf67a4f(0x13a)]!==_0xf67a4f(0x127)&&_0x3d3f22[_0xf67a4f(0x13a)]!==_0xf67a4f(0x12a))return;await _0x4fd7ec[_0xf67a4f(0x142)][_0xf67a4f(0x129)](buildLovrabetConfirmationRequest(_0x3d3f22,_0xe1f55d,_0x4fd7ec[_0xf67a4f(0x137)]));}function withAbortSignal(_0x2ee704,_0x5267c0){return{..._0x2ee704,async 'execute'(_0x105537){const _0x1b5edc=a125_0x40f1;return throwIfAborted(_0x5267c0),_0x2ee704[_0x1b5edc(0x145)](_0x105537);}};}function throwIfAborted(_0x48e80f){const _0x2a7341=a125_0x40f1;if(_0x48e80f?.['aborted'])throw _0x48e80f['reason']instanceof Error?_0x48e80f[_0x2a7341(0x141)]:new DOMException(_0x2a7341(0x124),_0x2a7341(0x139));}
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 +1 @@
1
- const a126_0x320ddd=a126_0x41a4;(function(_0x578a99,_0x5eb518){const _0x25313e=a126_0x41a4,_0x14169f=_0x578a99();while(!![]){try{const _0x4552a9=-parseInt(_0x25313e(0x125))/0x1*(parseInt(_0x25313e(0x127))/0x2)+parseInt(_0x25313e(0x12c))/0x3+-parseInt(_0x25313e(0x124))/0x4*(-parseInt(_0x25313e(0x128))/0x5)+parseInt(_0x25313e(0x12b))/0x6*(-parseInt(_0x25313e(0x129))/0x7)+-parseInt(_0x25313e(0x121))/0x8+-parseInt(_0x25313e(0x12a))/0x9*(parseInt(_0x25313e(0x126))/0xa)+parseInt(_0x25313e(0x122))/0xb;if(_0x4552a9===_0x5eb518)break;else _0x14169f['push'](_0x14169f['shift']());}catch(_0xed10cd){_0x14169f['push'](_0x14169f['shift']());}}}(a126_0x5a8b,0xd5168));let tail=Promise[a126_0x320ddd(0x123)]();function a126_0x41a4(_0x505563,_0x519b5b){_0x505563=_0x505563-0x120;const _0x5a8b2a=a126_0x5a8b();let _0x41a4d7=_0x5a8b2a[_0x505563];return _0x41a4d7;}export async function runSerialized(_0x1abe8a){const _0x5cf02e=a126_0x320ddd,_0x2eb32f=tail;let _0x508b85;tail=new Promise(_0x3ad266=>{_0x508b85=_0x3ad266;}),await _0x2eb32f[_0x5cf02e(0x120)](()=>undefined);try{return await _0x1abe8a();}finally{_0x508b85();}}function a126_0x5a8b(){const _0xc462c5=['29482728uFwCeQ','resolve','20OzZLoh','3mesNTn','20hagJNK','318814YGEobc','1190605Ohdwuz','480431YietxG','7750836qOUxGD','78XpYkdL','1006218CnFvgI','catch','1924744OQDKHs'];a126_0x5a8b=function(){return _0xc462c5;};return a126_0x5a8b();}
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 +1 @@
1
- (function(_0x535b0e,_0x124240){const _0x42cb90=a127_0x3ffe,_0x4e35df=_0x535b0e();while(!![]){try{const _0x48c81d=parseInt(_0x42cb90(0x9e))/0x1+-parseInt(_0x42cb90(0xa2))/0x2+parseInt(_0x42cb90(0xa4))/0x3*(-parseInt(_0x42cb90(0x95))/0x4)+-parseInt(_0x42cb90(0xa9))/0x5*(parseInt(_0x42cb90(0x99))/0x6)+parseInt(_0x42cb90(0x97))/0x7+-parseInt(_0x42cb90(0x93))/0x8*(-parseInt(_0x42cb90(0x9f))/0x9)+-parseInt(_0x42cb90(0x96))/0xa*(parseInt(_0x42cb90(0x98))/0xb);if(_0x48c81d===_0x124240)break;else _0x4e35df['push'](_0x4e35df['shift']());}catch(_0x5f4b92){_0x4e35df['push'](_0x4e35df['shift']());}}}(a127_0xfd79,0x97935));function a127_0xfd79(){const _0x1f7075=['input','20roepFE','10jBIipm','8474368bStMxl','1333838WtYSMZ','12ojzNNG','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','join','../commands/registry.js','assign','331824GEqwNN','49041vACuSx','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','../framework/preparse.js','113212xAWQdf','flags','224619UBPdmQ','hint','args','slice','defaultCommand','1713520JWCbww','validation','unknownCommand','464TnjzeZ'];a127_0xfd79=function(){return _0x1f7075;};return a127_0xfd79();}import a127_0x1e2624 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a127_0x3ffe(_0x51e4fb,_0x8b4cf8){_0x51e4fb=_0x51e4fb-0x91;const _0xfd79c2=a127_0xfd79();let _0x3ffef7=_0xfd79c2[_0x51e4fb];return _0x3ffef7;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0xf6be61){const _0x12fb61=a127_0x3ffe,_0x55fc1c=a127_0x1e2624('',{'importMeta':import.meta,'argv':_0xf6be61,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x51b4d0=[..._0x55fc1c[_0x12fb61(0x94)]],_0x1998b0=_0x55fc1c[_0x12fb61(0xa3)];await correctFlags(_0x1998b0);const _0x55f518=_0x51b4d0[0x0];if(!_0x55f518)throw CliErrors['validation'](_0x12fb61(0xa0));const _0x30f6a1=resolveRemovedCommand(_0x55f518,_0x51b4d0[0x1]);if(_0x30f6a1)throw CliErrors[_0x12fb61(0x91)](_0x30f6a1['message'],_0x30f6a1[_0x12fb61(0xa5)]);if(!isKnownService(_0x55f518)){const _0x5a7a6d=resolveDynamicServiceCommand(_0x51b4d0,_0x1998b0);if(!_0x5a7a6d)throw CliErrors['unknownCommand'](_0x51b4d0[_0x12fb61(0x9b)]('\x20'));return Object[_0x12fb61(0x9d)](_0x1998b0,_0x5a7a6d[_0x12fb61(0xa3)]),{'definition':_0x5a7a6d['definition'],'rawFlags':_0x1998b0,'args':_0x5a7a6d[_0x12fb61(0xa6)]};}const _0x78482a=getServiceEntry(_0x55f518),_0x18a9e7=_0x51b4d0[0x1]||_0x78482a[_0x12fb61(0xa8)];if(!_0x18a9e7)throw CliErrors[_0x12fb61(0x91)](_0x12fb61(0x9a)+_0x55f518+'\x22.');const _0x155c73=findDefinition(_0x55f518,_0x18a9e7);if(!_0x155c73)throw CliErrors[_0x12fb61(0x92)](_0x55f518+'\x20'+_0x18a9e7);return{'definition':_0x155c73,'rawFlags':_0x1998b0,'args':_0x51b4d0[_0x12fb61(0xa7)](0x2)};}async function correctFlags(_0x47823f){const _0x21267e=a127_0x3ffe;try{const {correctFlags:_0x7536c8}=await import(_0x21267e(0xa1)),{getAllDefinitions:_0x2175a0}=await import(_0x21267e(0x9c)),_0x23e4d8=_0x2175a0()['flatMap'](_0x2ac4ad=>_0x2ac4ad[_0x21267e(0xa3)]??[]),_0x5a635d=_0x7536c8(_0x47823f,_0x23e4d8);Object[_0x21267e(0x9d)](_0x47823f,_0x5a635d[_0x21267e(0xa3)]);}catch{}}
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 +1 @@
1
- const a129_0x10c9de=a129_0x33f5;(function(_0xc38ead,_0x2b3665){const _0x589d8d=a129_0x33f5,_0x1dd0a9=_0xc38ead();while(!![]){try{const _0x419b4d=-parseInt(_0x589d8d(0x1a6))/0x1+parseInt(_0x589d8d(0x1b7))/0x2+parseInt(_0x589d8d(0x18a))/0x3*(-parseInt(_0x589d8d(0x19f))/0x4)+parseInt(_0x589d8d(0x1bc))/0x5*(parseInt(_0x589d8d(0x18e))/0x6)+-parseInt(_0x589d8d(0x19d))/0x7+parseInt(_0x589d8d(0x194))/0x8+parseInt(_0x589d8d(0x199))/0x9;if(_0x419b4d===_0x2b3665)break;else _0x1dd0a9['push'](_0x1dd0a9['shift']());}catch(_0x38304c){_0x1dd0a9['push'](_0x1dd0a9['shift']());}}}(a129_0x1321,0xb34f9));import{createHash}from'node:crypto';function a129_0x33f5(_0x59fce9,_0x592208){_0x59fce9=_0x59fce9-0x189;const _0x1321db=a129_0x1321();let _0x33f547=_0x1321db[_0x59fce9];return _0x33f547;}import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';function a129_0x1321(){const _0x5dafec=[':\x5cs*(.+)$','5072936RamRXN','update','version_mismatch','pipe','SKILL.md','4010571JPtebh','sort','lovrabet.manifest.json','manifest','8437310OfXDbH','length','2516380SohzMq','root','sha256','isSymbolicLink','installedPath','current','trim','402360OEczXl','unknown','join','utf8','includes','present','name','split','state','Unsupported\x20Skill\x20entry:\x20','skills@latest\x20exited\x20','lovrabet','version','flatMap','Installed\x20Skill\x20state\x20is\x20','skillVersion','reason','2936120oJHAAh','SOURCE_INVALID','unverifiable','Unsafe\x20manifest\x20path:\x20','packageVersion','105htSMAA','Symbolic\x20link\x20is\x20not\x20allowed:\x20','isFile','path','schemaVersion','content_mismatch','parse','skills','stdio','every','packageRoot','error','hex','6AdBSws','files','message','package.json','300726IvkeNO','home','isDirectory','digest','missing'];a129_0x1321=function(){return _0x5dafec;};return a129_0x1321();}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_0x10c9de(0x1b1);function frontmatterValue(_0x4b0842,_0x139623){const _0x4254a2=a129_0x10c9de;return _0x4b0842['match'](new RegExp('^'+_0x139623+_0x4254a2(0x193),'m'))?.[0x1]?.[_0x4254a2(0x1a5)]()??'';}function listFiles(_0x55ae88,_0x5e9980=_0x55ae88){const _0x521fc8=a129_0x10c9de;return readdirSync(_0x5e9980,{'withFileTypes':!![]})[_0x521fc8(0x1b3)](_0x40da98=>{const _0x5eb5a6=_0x521fc8,_0x4525d3=join(_0x5e9980,_0x40da98[_0x5eb5a6(0x1ac)]),_0x9fae9b=lstatSync(_0x4525d3);if(_0x9fae9b[_0x5eb5a6(0x1a2)]())throw new Error(_0x5eb5a6(0x1bd)+_0x4525d3);if(_0x9fae9b[_0x5eb5a6(0x190)]())return listFiles(_0x55ae88,_0x4525d3);if(!_0x9fae9b[_0x5eb5a6(0x1be)]())throw new Error(_0x5eb5a6(0x1af)+_0x4525d3);return[relative(_0x55ae88,_0x4525d3)[_0x5eb5a6(0x1ad)](sep)[_0x5eb5a6(0x1a8)]('/')];})[_0x521fc8(0x19a)]((_0x38f2d9,_0x184ab9)=>_0x38f2d9<_0x184ab9?-0x1:_0x38f2d9>_0x184ab9?0x1:0x0);}function digestFiles(_0x3d2d51,_0x2dfc75){const _0x4d2450=a129_0x10c9de,_0x17be19=createHash(_0x4d2450(0x1a1));for(const _0x516b32 of _0x2dfc75){if(_0x516b32['startsWith']('/')||_0x516b32[_0x4d2450(0x1ad)]('/')['includes']('..')||_0x516b32[_0x4d2450(0x1aa)]('\x5c'))throw new Error(_0x4d2450(0x1ba)+_0x516b32);_0x17be19['update'](_0x516b32),_0x17be19[_0x4d2450(0x195)]('\x00'),_0x17be19[_0x4d2450(0x195)](readFileSync(join(_0x3d2d51,..._0x516b32[_0x4d2450(0x1ad)]('/')))),_0x17be19['update']('\x00');}return _0x17be19[_0x4d2450(0x191)](_0x4d2450(0x189));}function sameFiles(_0x2db954,_0x379e8c){const _0x5aa914=a129_0x10c9de;return _0x2db954[_0x5aa914(0x19e)]===_0x379e8c[_0x5aa914(0x19e)]&&_0x2db954[_0x5aa914(0x1c5)]((_0x1e80cc,_0x3bc47e)=>_0x1e80cc===_0x379e8c[_0x3bc47e]);}function readSource(_0x16747d){const _0x5c86f9=a129_0x10c9de,_0x39cd30=JSON['parse'](readFileSync(join(_0x16747d,_0x5c86f9(0x18d)),_0x5c86f9(0x1a9))),_0x4db4cd=JSON[_0x5c86f9(0x1c2)](readFileSync(join(_0x16747d,_0x5c86f9(0x1c3),_0x5c86f9(0x19b)),'utf8')),_0x5ee131=join(_0x16747d,_0x5c86f9(0x1c3),SKILL_NAME),_0x4ea2c4=frontmatterValue(readFileSync(join(_0x5ee131,_0x5c86f9(0x198)),_0x5c86f9(0x1a9)),_0x5c86f9(0x1b2)),_0x417e05=listFiles(_0x5ee131);if(_0x4db4cd[_0x5c86f9(0x1c0)]!==0x1||_0x4db4cd['name']!==SKILL_NAME||!_0x39cd30[_0x5c86f9(0x1b2)]||_0x4db4cd[_0x5c86f9(0x1bb)]!==_0x39cd30[_0x5c86f9(0x1b2)]||_0x4db4cd[_0x5c86f9(0x1b5)]!==_0x39cd30[_0x5c86f9(0x1b2)]||_0x4ea2c4!==_0x39cd30[_0x5c86f9(0x1b2)]||!sameFiles(_0x417e05,_0x4db4cd[_0x5c86f9(0x18b)])||digestFiles(_0x5ee131,_0x417e05)!==_0x4db4cd[_0x5c86f9(0x191)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x39cd30[_0x5c86f9(0x1b2)],'skillVersion':_0x4ea2c4,'root':_0x5ee131,'manifest':_0x4db4cd};}function installedSkillPath(_0x53efe7){const _0x3ffac8=a129_0x10c9de,_0x5deb27=resolveInstalledSkill(SKILL_NAME,{'home':_0x53efe7});if(_0x5deb27[_0x3ffac8(0x1ae)]===_0x3ffac8(0x1ab))return{'state':_0x3ffac8(0x1ab),'path':dirname(_0x5deb27[_0x3ffac8(0x1bf)])};if(_0x5deb27[_0x3ffac8(0x1ae)]==='absent')return{'state':_0x3ffac8(0x192)};return{'state':_0x3ffac8(0x1b9),'reason':_0x5deb27[_0x3ffac8(0x1b6)]};}export function inspectInstalledBuiltinSkillVersion(_0x11a220,_0x48c4fa={}){const _0x33ae21=a129_0x10c9de,_0x5e3670=installedSkillPath(_0x48c4fa['home']??homedir());if(_0x5e3670[_0x33ae21(0x1ae)]===_0x33ae21(0x192))return{'state':_0x33ae21(0x192),'expectedVersion':_0x11a220,'repairCommand':REPAIR_COMMAND};if(_0x5e3670[_0x33ae21(0x1ae)]===_0x33ae21(0x1b9))return{'state':_0x33ae21(0x1b9),'expectedVersion':_0x11a220,'reason':_0x5e3670[_0x33ae21(0x1b6)],'repairCommand':REPAIR_COMMAND};try{const _0x1a44c3=frontmatterValue(readFileSync(join(_0x5e3670[_0x33ae21(0x1bf)],_0x33ae21(0x198)),_0x33ae21(0x1a9)),_0x33ae21(0x1b2));return{'state':_0x1a44c3===_0x11a220?'current':_0x33ae21(0x196),'expectedVersion':_0x11a220,'skillVersion':_0x1a44c3,'installedPath':_0x5e3670[_0x33ae21(0x1bf)],'repairCommand':REPAIR_COMMAND};}catch(_0x105738){return{'state':_0x33ae21(0x1b9),'expectedVersion':_0x11a220,'installedPath':_0x5e3670[_0x33ae21(0x1bf)],'reason':_0x105738 instanceof Error?_0x105738[_0x33ae21(0x18c)]:String(_0x105738),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x167299={}){const _0xf06bb9=a129_0x10c9de,_0x41b54b=_0x167299['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0xcc4eb1;try{_0xcc4eb1=readSource(_0x41b54b);}catch(_0x17c36d){return{'state':'unverifiable','packageVersion':_0xf06bb9(0x1a7),'reason':_0x17c36d instanceof Error?_0x17c36d['message']:String(_0x17c36d),'repairCommand':REPAIR_COMMAND};}const _0x4cf2bc=installedSkillPath(_0x167299[_0xf06bb9(0x18f)]??homedir());if(_0x4cf2bc[_0xf06bb9(0x1ae)]===_0xf06bb9(0x192))return{'state':_0xf06bb9(0x192),'packageVersion':_0xcc4eb1[_0xf06bb9(0x1bb)],'repairCommand':REPAIR_COMMAND};if(_0x4cf2bc[_0xf06bb9(0x1ae)]===_0xf06bb9(0x1b9))return{'state':_0xf06bb9(0x1b9),'packageVersion':_0xcc4eb1[_0xf06bb9(0x1bb)],'reason':_0x4cf2bc['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x49ce88=frontmatterValue(readFileSync(join(_0x4cf2bc[_0xf06bb9(0x1bf)],_0xf06bb9(0x198)),_0xf06bb9(0x1a9)),_0xf06bb9(0x1b2));if(_0x49ce88!==_0xcc4eb1['skillVersion'])return{'state':_0xf06bb9(0x196),'packageVersion':_0xcc4eb1['packageVersion'],'skillVersion':_0x49ce88,'installedPath':_0x4cf2bc['path'],'repairCommand':REPAIR_COMMAND};const _0x52f05d=listFiles(_0x4cf2bc[_0xf06bb9(0x1bf)]),_0x11495a=digestFiles(_0x4cf2bc[_0xf06bb9(0x1bf)],_0x52f05d);return{'state':sameFiles(_0x52f05d,_0xcc4eb1[_0xf06bb9(0x19c)][_0xf06bb9(0x18b)])&&_0x11495a===_0xcc4eb1['manifest'][_0xf06bb9(0x191)]?_0xf06bb9(0x1a4):_0xf06bb9(0x1c1),'packageVersion':_0xcc4eb1[_0xf06bb9(0x1bb)],'skillVersion':_0x49ce88,'installedPath':_0x4cf2bc[_0xf06bb9(0x1bf)],'digest':_0x11495a,'repairCommand':REPAIR_COMMAND};}catch(_0x109a68){return{'state':_0xf06bb9(0x1b9),'packageVersion':_0xcc4eb1[_0xf06bb9(0x1bb)],'installedPath':_0x4cf2bc[_0xf06bb9(0x1bf)],'reason':_0x109a68 instanceof Error?_0x109a68['message']:String(_0x109a68),'repairCommand':REPAIR_COMMAND};}}function failure(_0x46555d,_0x227961,_0x3b3954,_0x15595c){const _0x526b2e=a129_0x10c9de;return{'ok':![],'code':_0x46555d,'packageVersion':_0x227961['packageVersion'],'skillVersion':_0x227961[_0x526b2e(0x1b5)],'installedPath':_0x15595c,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x3b3954 instanceof Error?_0x3b3954['message']:String(_0x3b3954)};}export function installBuiltinSkill(_0x203791={}){const _0x51b4dc=a129_0x10c9de,_0x4d0f89=_0x203791[_0x51b4dc(0x1c6)]??DEFAULT_PACKAGE_ROOT,_0x9c322b=_0x203791[_0x51b4dc(0x18f)]??homedir();let _0xcf14ca;try{_0xcf14ca=readSource(_0x4d0f89);}catch(_0x54c9c3){return failure(_0x51b4dc(0x1b8),{'packageVersion':'unknown','skillVersion':_0x51b4dc(0x1a7)},_0x54c9c3);}const _0xc0d06c=inspectBuiltinSkill({'packageRoot':_0x4d0f89,'home':_0x9c322b}),_0x360778=runNpxSkillsAddGlobal(_0x4d0f89,_0xcf14ca[_0x51b4dc(0x1a0)],{'stdio':_0x203791[_0x51b4dc(0x1c4)]??_0x51b4dc(0x197),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x9c322b}});if(_0x360778['skipped'])return{'ok':!![],'packageVersion':_0xcf14ca[_0x51b4dc(0x1bb)],'skillVersion':_0xcf14ca[_0x51b4dc(0x1b5)],'installedPath':_0xc0d06c[_0x51b4dc(0x1a3)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x360778['ok'])return failure('INSTALL_FAILED',_0xcf14ca,_0x360778[_0x51b4dc(0x1c7)]??_0x51b4dc(0x1b0)+_0x360778['status']);const _0x28763d=inspectBuiltinSkill({'packageRoot':_0x4d0f89,'home':_0x9c322b});if(_0x28763d['state']!==_0x51b4dc(0x1a4))return failure('VERIFY_FAILED',_0xcf14ca,_0x28763d[_0x51b4dc(0x1b6)]??_0x51b4dc(0x1b4)+_0x28763d[_0x51b4dc(0x1ae)],_0x28763d[_0x51b4dc(0x1a3)]);return{'ok':!![],'packageVersion':_0xcf14ca[_0x51b4dc(0x1bb)],'skillVersion':_0xcf14ca['skillVersion'],'installedPath':_0x28763d[_0x51b4dc(0x1a3)],'changed':_0xc0d06c[_0x51b4dc(0x1ae)]!==_0x51b4dc(0x1a4),'repairCommand':REPAIR_COMMAND};}
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 +1 @@
1
- const a130_0x47188c=a130_0x16af;(function(_0x52d763,_0x188aab){const _0x5e2860=a130_0x16af,_0x44d6ee=_0x52d763();while(!![]){try{const _0x526887=-parseInt(_0x5e2860(0x1e3))/0x1*(parseInt(_0x5e2860(0x1c3))/0x2)+parseInt(_0x5e2860(0x1c8))/0x3*(-parseInt(_0x5e2860(0x1cc))/0x4)+-parseInt(_0x5e2860(0x1d1))/0x5*(-parseInt(_0x5e2860(0x1f1))/0x6)+parseInt(_0x5e2860(0x1ca))/0x7*(-parseInt(_0x5e2860(0x1c9))/0x8)+-parseInt(_0x5e2860(0x1d2))/0x9*(parseInt(_0x5e2860(0x1c5))/0xa)+parseInt(_0x5e2860(0x1db))/0xb+-parseInt(_0x5e2860(0x1c1))/0xc*(-parseInt(_0x5e2860(0x1da))/0xd);if(_0x526887===_0x188aab)break;else _0x44d6ee['push'](_0x44d6ee['shift']());}catch(_0x160e63){_0x44d6ee['push'](_0x44d6ee['shift']());}}}(a130_0x587d,0x90d5b));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a130_0xdfdac4}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_0xdfdac4;function a130_0x587d(){const _0x302d2f=['unverifiable','1314798RZsAlu','filter','\x22\x20install\x20state:\x20','globalSkillName','14478168UlUSdV','npx\x20terminated\x20by\x20signal\x20','1591474aIQuSM','code','11150ZVDHNH','warn','pipe','1480695IkvRfu','8GDxMEA','185787yPqzCF','expectedSkillName','4jvkpJH','!\x20Could\x20not\x20verify\x20\x22','stderr','ENOENT','CHILD_EXIT_NONZERO','20tHNQKr','4905ZRgJgw','toString','Skill\x20\x22','Installer\x20reported\x20','message','stdio','add','presence','13STMLib','4770865JdJYKq','reason','CHILD_TERMINATED','SKILL_NOT_INSTALLED','error','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','trim','log','1xhRuRc','internalSkillSource','match','signal','stdout','skipNpxSkillsEnvSuffix','skills@latest','absent','state','npm_config_global','status','join','NPX_NOT_FOUND'];a130_0x587d=function(){return _0x302d2f;};return a130_0x587d();}export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a130_0x47188c(0x1e4)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a130_0x47188c(0x1f4)];export function resolveGlobalSkillName(_0x8b49d9){const _0x2ac63a=a130_0x47188c;switch(_0x8b49d9[_0x2ac63a(0x1e1)]()){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_0x47188c(0x1e8)]);function a130_0x16af(_0x5eb5d6,_0x4d3202){_0x5eb5d6=_0x5eb5d6-0x1c1;const _0x587ddb=a130_0x587d();let _0x16afa2=_0x587ddb[_0x5eb5d6];return _0x16afa2;}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x234319,_0x59cf42,_0x34404b){return{'ok':![],'status':_0x59cf42,'code':_0x234319,'error':'['+_0x234319+']\x20'+_0x34404b};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x58b195,_0x41d78e=LOVRABET_SKILL_SOURCE,_0x37108b){const _0x3fa2e7=a130_0x47188c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2e2447=resolveNpmBin('npx'),_0x2db3bb=['-y',_0x3fa2e7(0x1e9),_0x3fa2e7(0x1d8),_0x41d78e,'-g','-y'],_0x5a86c9=[_0x2e2447,..._0x2db3bb]['join']('\x20');console[_0x3fa2e7(0x1e2)]('*\x20'+_0x5a86c9);const _0x4f865f={...process.env};delete _0x4f865f[_0x3fa2e7(0x1ec)],delete _0x4f865f['NPM_CONFIG_GLOBAL'];const _0x3ebac7=spawnSync(_0x2e2447,_0x2db3bb,{'cwd':_0x58b195,'stdio':_0x3fa2e7(0x1c7),'env':_0x4f865f,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x1d0a02=[_0x3ebac7['stdout']?_0x3ebac7[_0x3fa2e7(0x1e7)][_0x3fa2e7(0x1d3)]():'',_0x3ebac7[_0x3fa2e7(0x1ce)]?_0x3ebac7['stderr'][_0x3fa2e7(0x1d3)]():''][_0x3fa2e7(0x1f2)](Boolean)[_0x3fa2e7(0x1ee)]('\x0a')['trim']();_0x37108b?.[_0x3fa2e7(0x1d7)]!==_0x3fa2e7(0x1c7)&&_0x1d0a02&&console[_0x3fa2e7(0x1e2)](_0x1d0a02);if(_0x3ebac7['error']){const _0x3f2adb=_0x3ebac7[_0x3fa2e7(0x1df)],_0x1ce62d=_0x3f2adb[_0x3fa2e7(0x1c4)]===_0x3fa2e7(0x1cf)?_0x3fa2e7(0x1ef):_0x3f2adb['code']==='EPERM'||_0x3f2adb[_0x3fa2e7(0x1c4)]==='EACCES'?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0x1ce62d,_0x3ebac7[_0x3fa2e7(0x1ed)],_0x3f2adb[_0x3fa2e7(0x1d6)]);}if(_0x3ebac7['signal'])return failure(_0x3fa2e7(0x1dd),_0x3ebac7[_0x3fa2e7(0x1ed)],_0x3fa2e7(0x1c2)+_0x3ebac7[_0x3fa2e7(0x1e6)]);if(_0x3ebac7[_0x3fa2e7(0x1ed)]!==0x0)return failure(_0x3fa2e7(0x1d0),_0x3ebac7[_0x3fa2e7(0x1ed)],_0x1d0a02||'exit\x20'+(_0x3ebac7[_0x3fa2e7(0x1ed)]??'unknown'));const _0x41434c=_0x1d0a02[_0x3fa2e7(0x1e5)](/Failed to install\s+(\d+)/i);if(_0x41434c&&Number(_0x41434c[0x1])>0x0)return failure('INSTALL_PARTIAL',0x0,_0x3fa2e7(0x1d5)+_0x41434c[0x1]+'\x20failed\x20target(s)'+(_0x1d0a02?':\x0a'+_0x1d0a02:''));const _0x19190a=_0x37108b?.[_0x3fa2e7(0x1cb)]??resolveGlobalSkillName(_0x41d78e);if(_0x19190a){const _0x3e5333=resolveInstalledSkill(_0x19190a,_0x37108b?.[_0x3fa2e7(0x1d9)]);if(_0x3e5333[_0x3fa2e7(0x1eb)]===_0x3fa2e7(0x1ea))return failure(_0x3fa2e7(0x1de),0x0,_0x3fa2e7(0x1d4)+_0x19190a+_0x3fa2e7(0x1e0)+_0x3e5333['checked']['join'](',\x20')+')');_0x3e5333['state']===_0x3fa2e7(0x1f0)&&console[_0x3fa2e7(0x1c6)](_0x3fa2e7(0x1cd)+_0x19190a+_0x3fa2e7(0x1f3)+_0x3e5333[_0x3fa2e7(0x1dc)]);}return{'ok':!![],'status':0x0};}
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 +1 @@
1
- const a131_0x3fcd77=a131_0x7dfc;(function(_0x159977,_0x32fdd1){const _0x185803=a131_0x7dfc,_0x25e6cd=_0x159977();while(!![]){try{const _0x50323c=parseInt(_0x185803(0x149))/0x1+parseInt(_0x185803(0x14f))/0x2*(-parseInt(_0x185803(0x151))/0x3)+parseInt(_0x185803(0x146))/0x4*(parseInt(_0x185803(0x144))/0x5)+-parseInt(_0x185803(0x14c))/0x6*(parseInt(_0x185803(0x14b))/0x7)+parseInt(_0x185803(0x148))/0x8+parseInt(_0x185803(0x143))/0x9+-parseInt(_0x185803(0x142))/0xa;if(_0x50323c===_0x32fdd1)break;else _0x25e6cd['push'](_0x25e6cd['shift']());}catch(_0x17e6d3){_0x25e6cd['push'](_0x25e6cd['shift']());}}}(a131_0x2514,0xea333));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE=a131_0x3fcd77(0x14d);function a131_0x7dfc(_0x4f6e1f,_0x1aee99){_0x4f6e1f=_0x4f6e1f-0x142;const _0x2514a4=a131_0x2514();let _0x7dfce3=_0x2514a4[_0x4f6e1f];return _0x7dfce3;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);export const IGNORED_DIR_NAMES=new Set([a131_0x3fcd77(0x147),'.hg',a131_0x3fcd77(0x153),'node_modules',a131_0x3fcd77(0x14e),a131_0x3fcd77(0x150),a131_0x3fcd77(0x14a),'coverage',a131_0x3fcd77(0x152),a131_0x3fcd77(0x145)]);function a131_0x2514(){const _0x445ffb=['.git','6420768uvqNCb','1730518ttWrce','build','14qyoNNl','1820148evHyfs','SKILL.md','.next','5426sbdXhi','dist','447myHHbL','.turbo','.svn','17045970LGpMje','8134263YebZaE','30CsQaNV','.cache','158608cxDxZt'];a131_0x2514=function(){return _0x445ffb;};return a131_0x2514();}
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 +1 @@
1
- (function(_0x422010,_0x37cd48){const _0x12ab5c=a132_0x5581,_0xee7c89=_0x422010();while(!![]){try{const _0x3b13cb=-parseInt(_0x12ab5c(0x1ae))/0x1*(parseInt(_0x12ab5c(0x1b2))/0x2)+-parseInt(_0x12ab5c(0x1b1))/0x3*(-parseInt(_0x12ab5c(0x1a2))/0x4)+-parseInt(_0x12ab5c(0x1a9))/0x5*(parseInt(_0x12ab5c(0x1ad))/0x6)+-parseInt(_0x12ab5c(0x1ac))/0x7*(-parseInt(_0x12ab5c(0x1a6))/0x8)+parseInt(_0x12ab5c(0x1a4))/0x9+parseInt(_0x12ab5c(0x1af))/0xa+-parseInt(_0x12ab5c(0x1a5))/0xb;if(_0x3b13cb===_0x37cd48)break;else _0xee7c89['push'](_0xee7c89['shift']());}catch(_0x2698f5){_0xee7c89['push'](_0xee7c89['shift']());}}}(a132_0x5a18,0xa1cfe));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x16510a,_0x35fe72){const _0x485021=a132_0x5581,_0x482f2c=normalizeSkillRelativePath(_0x35fe72),_0x2006b8=realOrResolved(_0x16510a),_0x4d9b54=resolve(_0x2006b8,..._0x482f2c[_0x485021(0x1aa)]('/'));if(!isPathInside(_0x4d9b54,_0x2006b8))throw CliErrors['validation'](_0x485021(0x1a1)+_0x35fe72);return ensureNoSymlinkInManagedPath(_0x2006b8,_0x482f2c),_0x4d9b54;}export function ensureNoSymlinkInManagedPath(_0x3b84f5,_0x3dc579){const _0xc13137=a132_0x5581;let _0x355a00=_0x3b84f5;for(const _0x2e282b of _0x3dc579[_0xc13137(0x1aa)]('/')){_0x355a00=resolve(_0x355a00,_0x2e282b);const _0x7e2dcc=lstatIfPresent(_0x355a00);if(_0x7e2dcc?.[_0xc13137(0x1b0)]())throw CliErrors[_0xc13137(0x1a8)](_0xc13137(0x1a3)+_0x3dc579);}}export function isDanglingSymlink(_0x2b38ce){const _0xd74045=a132_0x5581;try{return lstatSync(_0x2b38ce)[_0xd74045(0x1b0)]();}catch{return![];}}export function resolveSymlinkTarget(_0x3b41c8){const _0x460a00=readlinkSync(_0x3b41c8);return isAbsolute(_0x460a00)?_0x460a00:resolve(dirname(_0x3b41c8),_0x460a00);}export function isPathInside(_0xcf081c,_0x568be2){const _0x281ed4=a132_0x5581,_0x45b56c=_0xcf081c[_0x281ed4(0x1a7)](sep)?_0xcf081c:''+_0xcf081c+sep,_0xb6c6eb=_0x568be2[_0x281ed4(0x1a7)](sep)?_0x568be2:''+_0x568be2+sep;return _0xcf081c===_0x568be2||_0x45b56c[_0x281ed4(0x1a0)](_0xb6c6eb);}export function realOrResolved(_0x15d92b){try{return realpathSync(_0x15d92b);}catch{return resolve(_0x15d92b);}}export function lstatIfPresent(_0x55391c){try{return lstatSync(_0x55391c);}catch{return undefined;}}function a132_0x5581(_0x9a80f8,_0x435e49){_0x9a80f8=_0x9a80f8-0x1a0;const _0x5a1823=a132_0x5a18();let _0x558199=_0x5a1823[_0x9a80f8];return _0x558199;}export function writeTextAtomic(_0x460ad0,_0x1a9ed7,_0x5e60fa){const _0x3fc94f=a132_0x5581;writeBytesAtomic(_0x460ad0,Buffer[_0x3fc94f(0x1ab)](_0x1a9ed7,'utf8'),_0x5e60fa);}export function writeBytesAtomic(_0x2a06d3,_0x183e5a,_0x1424f4){const _0xb27a5c=_0x2a06d3+'.tmp';try{writeFileSync(_0xb27a5c,_0x183e5a,{'mode':_0x1424f4}),renameSync(_0xb27a5c,_0x2a06d3);}catch(_0x42b725){try{rmSync(_0xb27a5c,{'force':!![]});}catch{}throw _0x42b725;}}export function writeJsonAtomic(_0x42da93,_0xf66a00){writeTextAtomic(_0x42da93,JSON['stringify'](_0xf66a00,null,0x2)+'\x0a',0x180);}function a132_0x5a18(){const _0x11330d=['666zrbvid','startsWith','Unsafe\x20Skill\x20file\x20path:\x20','4biCvvz','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','11292417sZjjKb','23925264mAmSfM','224WKNyiN','endsWith','validation','230wiKdKz','split','from','265349yjCIIs','169038DfjLnk','159JaCnhW','10977330YcdPhw','isSymbolicLink','2318607gVrTWg'];a132_0x5a18=function(){return _0x11330d;};return a132_0x5a18();}
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 +1 @@
1
- (function(_0x2bc618,_0x6ecec6){const _0x3ce645=a133_0x17ea,_0x5f28db=_0x2bc618();while(!![]){try{const _0x1fa7a1=parseInt(_0x3ce645(0x1e2))/0x1*(-parseInt(_0x3ce645(0x1e4))/0x2)+-parseInt(_0x3ce645(0x1ec))/0x3*(parseInt(_0x3ce645(0x1e8))/0x4)+-parseInt(_0x3ce645(0x1ed))/0x5+-parseInt(_0x3ce645(0x1df))/0x6*(-parseInt(_0x3ce645(0x1eb))/0x7)+parseInt(_0x3ce645(0x1e0))/0x8*(-parseInt(_0x3ce645(0x1e3))/0x9)+parseInt(_0x3ce645(0x1ea))/0xa+parseInt(_0x3ce645(0x1e5))/0xb;if(_0x1fa7a1===_0x6ecec6)break;else _0x5f28db['push'](_0x5f28db['shift']());}catch(_0x34ef15){_0x5f28db['push'](_0x5f28db['shift']());}}}(a133_0x3eba,0x3c8af));import{createHash}from'node:crypto';function a133_0x3eba(){const _0x3db5e4=['2376sPcchz','649190YetXvF','6IDnwoa','296EdBiJD','sha256','1aHkfYA','76869UVblZg','386920vIfgQv','8740963ZPcirT','digest','hex','8uxwdnn','update','849070uWzHmi','65394KbbLGT'];a133_0x3eba=function(){return _0x3db5e4;};return a133_0x3eba();}import{fileContent,normalizeManifestFiles}from'./local-files.js';function a133_0x17ea(_0x1c68ec,_0xfb59d3){_0x1c68ec=_0x1c68ec-0x1df;const _0x3ebab3=a133_0x3eba();let _0x17ea0f=_0x3ebab3[_0x1c68ec];return _0x17ea0f;}export function contentHash(_0x36f403){const _0x42655b=a133_0x17ea;return createHash(_0x42655b(0x1e1))[_0x42655b(0x1e9)](_0x36f403)[_0x42655b(0x1e6)](_0x42655b(0x1e7));}export function fileHash(_0x430222){return bufferSha256(fileContent(_0x430222));}export function bufferSha256(_0x46b9ad){const _0x4d948a=a133_0x17ea;return createHash('sha256')[_0x4d948a(0x1e9)](_0x46b9ad)[_0x4d948a(0x1e6)](_0x4d948a(0x1e7));}export function fileTreeHash(_0x29532f){const _0x192573=a133_0x17ea,_0x52329e=createHash(_0x192573(0x1e1));for(const _0x2bc165 of normalizeManifestFiles(_0x29532f)){_0x52329e[_0x192573(0x1e9)](_0x2bc165['path']),_0x52329e[_0x192573(0x1e9)]('\x00'),_0x52329e['update'](_0x2bc165[_0x192573(0x1e1)]),_0x52329e[_0x192573(0x1e9)]('\x00'),_0x52329e[_0x192573(0x1e9)](String(_0x2bc165['size'])),_0x52329e['update']('\x00');}return _0x52329e[_0x192573(0x1e6)](_0x192573(0x1e7));}
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 +1 @@
1
- const a134_0xced046=a134_0x327d;(function(_0x47f6d3,_0x3da2dd){const _0x2e31b8=a134_0x327d,_0x20884e=_0x47f6d3();while(!![]){try{const _0x4768a6=-parseInt(_0x2e31b8(0x1a5))/0x1*(parseInt(_0x2e31b8(0x1a8))/0x2)+parseInt(_0x2e31b8(0x1a3))/0x3*(parseInt(_0x2e31b8(0x1a2))/0x4)+-parseInt(_0x2e31b8(0x19e))/0x5+-parseInt(_0x2e31b8(0x19a))/0x6*(-parseInt(_0x2e31b8(0x1a9))/0x7)+parseInt(_0x2e31b8(0x1a7))/0x8+-parseInt(_0x2e31b8(0x19f))/0x9*(-parseInt(_0x2e31b8(0x1a4))/0xa)+-parseInt(_0x2e31b8(0x19c))/0xb;if(_0x4768a6===_0x3da2dd)break;else _0x20884e['push'](_0x20884e['shift']());}catch(_0x42ed97){_0x20884e['push'](_0x20884e['shift']());}}}(a134_0x3301,0x23811));function a134_0x3301(){const _0x5cde88=['1046QRiIrb','14nJdgxX','skills','global','770178Lielol','managedRoot','3982957aoxnkl','cwd','638690Ywaixy','27KIxzdR','appCode','freeze','4WXwxpZ','549771BRlsGK','71130yVZzwn','53TmcazG','.agents','1613176UBHBmG'];a134_0x3301=function(){return _0x5cde88;};return a134_0x3301();}import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';function a134_0x327d(_0x310c29,_0x9eb619){_0x310c29=_0x310c29-0x198;const _0x3301ea=a134_0x3301();let _0x327d6a=_0x3301ea[_0x310c29];return _0x327d6a;}export function resolveRuntimeSkillInstallTarget(_0xcae94c,_0x337368=a134_0xced046(0x199),_0x8a5e53={}){const _0x1c58be=a134_0xced046,_0x262469=resolveSkillSyncPaths(_0x8a5e53),_0x160316=safePathSegment(_0xcae94c,_0x1c58be(0x1a0)),_0x110b55=_0x337368==='project'?[resolve(_0x8a5e53[_0x1c58be(0x19d)]??process[_0x1c58be(0x19d)](),_0x1c58be(0x1a6),_0x1c58be(0x198))]:runtimeAgentSkillRoots(_0x262469);return Object[_0x1c58be(0x1a1)]({'scope':_0x337368,'appCode':_0x160316,'skillRoots':Object[_0x1c58be(0x1a1)](_0x110b55),'managedRoot':_0x262469[_0x1c58be(0x19b)]});}
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)]});}