@lovrabet/lovrabet-cli 2.3.0-beta.2 → 2.3.0-beta.3

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 (164) 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/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/sdk-client.js +1 -1
  107. package/lib/errors.js +1 -1
  108. package/lib/framework/build-all-flags.js +1 -1
  109. package/lib/framework/dryrun.js +1 -1
  110. package/lib/framework/flags.js +1 -1
  111. package/lib/framework/help.js +1 -1
  112. package/lib/framework/index.js +1 -1
  113. package/lib/framework/output.js +1 -1
  114. package/lib/framework/preparse.js +1 -1
  115. package/lib/framework/rate-limit.js +1 -1
  116. package/lib/framework/raw-flags.js +1 -1
  117. package/lib/framework/response.js +1 -1
  118. package/lib/framework/runner-confirmation.js +1 -1
  119. package/lib/framework/runner-error.js +1 -1
  120. package/lib/framework/runner.js +1 -1
  121. package/lib/framework/schema-export.js +1 -1
  122. package/lib/framework/service-order.js +1 -1
  123. package/lib/framework/types.js +1 -1
  124. package/lib/generated/build-info.d.ts +4 -4
  125. package/lib/generated/build-info.js +1 -1
  126. package/lib/help.js +1 -1
  127. package/lib/postinstall.js +1 -1
  128. package/lib/runtime/confirmation.js +1 -1
  129. package/lib/runtime/event.js +1 -1
  130. package/lib/runtime/index.js +1 -1
  131. package/lib/runtime/queue.js +1 -1
  132. package/lib/runtime/resolve.js +1 -1
  133. package/lib/skills/builtin-skill.js +1 -1
  134. package/lib/skills/npx-skills-add.js +1 -1
  135. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  136. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  137. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  138. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  139. package/lib/skills/runtime-skill-sync/links.js +1 -1
  140. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  141. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  142. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  143. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  144. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  145. package/lib/skills/runtime-skill-sync/push.js +1 -1
  146. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  147. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  148. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  149. package/lib/skills/runtime-skill-sync.js +1 -1
  150. package/lib/skills/skill-presence.js +1 -1
  151. package/lib/utils/access-key-redaction.js +1 -1
  152. package/lib/utils/apply-jq-filter.js +1 -1
  153. package/lib/utils/cli-version-check.js +1 -1
  154. package/lib/utils/cli-version-policy.js +1 -1
  155. package/lib/utils/logger.js +1 -1
  156. package/lib/utils/lossless-json.js +1 -1
  157. package/lib/utils/params.js +1 -1
  158. package/lib/utils/platform.js +1 -1
  159. package/lib/utils/update-notice.js +1 -1
  160. package/lib/utils/version.js +1 -1
  161. package/lib/utils/write-cli-side-channel.js +1 -1
  162. package/package.json +1 -1
  163. package/skills/lovrabet/SKILL.md +1 -1
  164. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a114_0x402778=a114_0x5251;(function(_0x2e1086,_0x3bde5d){const _0x3c72f1=a114_0x5251,_0x4173a7=_0x2e1086();while(!![]){try{const _0x2c7dc8=parseInt(_0x3c72f1(0x183))/0x1*(parseInt(_0x3c72f1(0x184))/0x2)+-parseInt(_0x3c72f1(0x181))/0x3+-parseInt(_0x3c72f1(0x17c))/0x4*(-parseInt(_0x3c72f1(0x18b))/0x5)+parseInt(_0x3c72f1(0x188))/0x6+-parseInt(_0x3c72f1(0x17b))/0x7*(-parseInt(_0x3c72f1(0x186))/0x8)+-parseInt(_0x3c72f1(0x185))/0x9*(parseInt(_0x3c72f1(0x178))/0xa)+parseInt(_0x3c72f1(0x189))/0xb;if(_0x2c7dc8===_0x3bde5d)break;else _0x4173a7['push'](_0x4173a7['shift']());}catch(_0x3e0868){_0x4173a7['push'](_0x4173a7['shift']());}}}(a114_0x32dd,0xb5f09));import{CliErrors}from'../errors.js';function a114_0x5251(_0x552fe5,_0x1a11e6){_0x552fe5=_0x552fe5-0x173;const _0x32dd60=a114_0x32dd();let _0x5251f2=_0x32dd60[_0x552fe5];return _0x5251f2;}const RATE_LIMIT_ERROR_CODES=new Set([a114_0x402778(0x18d),'MAX_QPS_LIMIT',a114_0x402778(0x177)]);function nonEmptyString(_0xaba186){const _0x538174=a114_0x402778;if(typeof _0xaba186!=='string')return undefined;const _0x5dfba0=_0xaba186[_0x538174(0x18f)]();return _0x5dfba0||undefined;}function a114_0x32dd(){const _0x1c0d4a=['Retry\x20after\x20','status','IP_RATE_LIMIT_EXCEEDED','14252170LiTiTb','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','retry-after','194082Gntwxd','4DQJryR','function','message','toUpperCase','number','843999ptjvSs','retryAfterSeconds','3xFwTaI','188970tTdpPb','9OjMoTw','184SMyMwq','call','779292yWtNuK','14421341WjFjqw','object','448545ChDThw','\x20seconds\x20before\x20retrying.','EXCEED_MAX_QPS_LIMIT','Request\x20rate\x20limit\x20exceeded.','trim','test','Retry\x20after\x20a\x20short\x20delay.','Wait\x20','get','toLowerCase'];a114_0x32dd=function(){return _0x1c0d4a;};return a114_0x32dd();}function buildRetryHint(_0x4ce814){const _0x1cf719=a114_0x402778,_0x26daf9=nonEmptyString(_0x4ce814),_0x41f6b6=_0x26daf9?/^\d+$/['test'](_0x26daf9)?_0x1cf719(0x192)+_0x26daf9+_0x1cf719(0x18c):_0x1cf719(0x175)+_0x26daf9+'.':_0x1cf719(0x191);return _0x41f6b6+_0x1cf719(0x179);}export function createRateLimitError(_0xd199c9){const _0x3ac528=a114_0x402778,_0x11db5d=nonEmptyString(_0xd199c9['errorCode'])?.[_0x3ac528(0x17f)](),_0x2b4061=Number(_0xd199c9[_0x3ac528(0x176)])===0x1ad||_0x11db5d!==undefined&&RATE_LIMIT_ERROR_CODES['has'](_0x11db5d);if(!_0x2b4061)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0xd199c9[_0x3ac528(0x17e)])??_0x3ac528(0x18e),buildRetryHint(_0xd199c9['retryAfter']));}export function readRetryAfter(_0x232bca){const _0x5a50b1=a114_0x402778;if(!_0x232bca||typeof _0x232bca!==_0x5a50b1(0x18a))return undefined;const _0x505294=_0x232bca[_0x5a50b1(0x173)];if(typeof _0x505294===_0x5a50b1(0x17d)){const _0x156d91=_0x505294[_0x5a50b1(0x187)](_0x232bca,'Retry-After')??_0x505294[_0x5a50b1(0x187)](_0x232bca,_0x5a50b1(0x17a));return nonEmptyString(_0x156d91);}for(const [_0x1c7eae,_0x1c0290]of Object['entries'](_0x232bca)){if(_0x1c7eae[_0x5a50b1(0x174)]()===_0x5a50b1(0x17a))return nonEmptyString(_0x1c0290)??(typeof _0x1c0290==='number'?String(_0x1c0290):undefined);}return undefined;}export function readRetryAfterSeconds(_0x2520be){const _0x4464e4=a114_0x402778;if(!_0x2520be||typeof _0x2520be!==_0x4464e4(0x18a)||Array['isArray'](_0x2520be))return undefined;const _0x52624f=_0x2520be[_0x4464e4(0x182)];if(typeof _0x52624f===_0x4464e4(0x180))return Number['isInteger'](_0x52624f)&&_0x52624f>=0x0?String(_0x52624f):undefined;const _0x1f3c4c=nonEmptyString(_0x52624f);return _0x1f3c4c&&/^\d+$/[_0x4464e4(0x190)](_0x1f3c4c)?_0x1f3c4c:undefined;}
1
+ const a114_0x41eecf=a114_0x48c2;(function(_0x1428b4,_0x1ef297){const _0x438af2=a114_0x48c2,_0x227d1d=_0x1428b4();while(!![]){try{const _0x1e084e=parseInt(_0x438af2(0x18a))/0x1+-parseInt(_0x438af2(0x18d))/0x2+-parseInt(_0x438af2(0x196))/0x3+parseInt(_0x438af2(0x1a1))/0x4+parseInt(_0x438af2(0x19f))/0x5+parseInt(_0x438af2(0x194))/0x6+parseInt(_0x438af2(0x18f))/0x7*(parseInt(_0x438af2(0x193))/0x8);if(_0x1e084e===_0x1ef297)break;else _0x227d1d['push'](_0x227d1d['shift']());}catch(_0x3e9c8c){_0x227d1d['push'](_0x227d1d['shift']());}}}(a114_0x108e,0x794ae));function a114_0x48c2(_0x25c99b,_0x38f12b){_0x25c99b=_0x25c99b-0x185;const _0x108efe=a114_0x108e();let _0x48c23a=_0x108efe[_0x25c99b];return _0x48c23a;}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT',a114_0x41eecf(0x190),a114_0x41eecf(0x1a0)]);function nonEmptyString(_0x2b7141){const _0x3abb0b=a114_0x41eecf;if(typeof _0x2b7141!==_0x3abb0b(0x187))return undefined;const _0x122a4e=_0x2b7141[_0x3abb0b(0x19b)]();return _0x122a4e||undefined;}function a114_0x108e(){const _0x11b485=['trim','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','Retry\x20after\x20','call','226870LIcUgX','IP_RATE_LIMIT_EXCEEDED','2124220ZYwmDa','retryAfterSeconds','retry-after','test','rateLimited','string','toLowerCase','object','257956maDGvt','Wait\x20','entries','591342WadoAU','number','78267YYhiEe','MAX_QPS_LIMIT','message','retryAfter','360IuThjY','65046fPXDOt','get','1667658vwRPEo','Retry\x20after\x20a\x20short\x20delay.','\x20seconds\x20before\x20retrying.','toUpperCase','status'];a114_0x108e=function(){return _0x11b485;};return a114_0x108e();}function buildRetryHint(_0x35fa95){const _0x59bf85=a114_0x41eecf,_0x51f39d=nonEmptyString(_0x35fa95),_0x1f5061=_0x51f39d?/^\d+$/['test'](_0x51f39d)?_0x59bf85(0x18b)+_0x51f39d+_0x59bf85(0x198):_0x59bf85(0x19d)+_0x51f39d+'.':_0x59bf85(0x197);return _0x1f5061+_0x59bf85(0x19c);}export function createRateLimitError(_0x43a11){const _0x2a7d78=a114_0x41eecf,_0x58a601=nonEmptyString(_0x43a11['errorCode'])?.[_0x2a7d78(0x199)](),_0x4eac96=Number(_0x43a11[_0x2a7d78(0x19a)])===0x1ad||_0x58a601!==undefined&&RATE_LIMIT_ERROR_CODES['has'](_0x58a601);if(!_0x4eac96)return undefined;return CliErrors[_0x2a7d78(0x186)](nonEmptyString(_0x43a11[_0x2a7d78(0x191)])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x43a11[_0x2a7d78(0x192)]));}export function readRetryAfter(_0x5892c4){const _0x14887a=a114_0x41eecf;if(!_0x5892c4||typeof _0x5892c4!==_0x14887a(0x189))return undefined;const _0x2bcc2e=_0x5892c4[_0x14887a(0x195)];if(typeof _0x2bcc2e==='function'){const _0xbc9c83=_0x2bcc2e[_0x14887a(0x19e)](_0x5892c4,'Retry-After')??_0x2bcc2e['call'](_0x5892c4,_0x14887a(0x1a3));return nonEmptyString(_0xbc9c83);}for(const [_0x32e4da,_0x24902f]of Object[_0x14887a(0x18c)](_0x5892c4)){if(_0x32e4da[_0x14887a(0x188)]()===_0x14887a(0x1a3))return nonEmptyString(_0x24902f)??(typeof _0x24902f===_0x14887a(0x18e)?String(_0x24902f):undefined);}return undefined;}export function readRetryAfterSeconds(_0x164044){const _0xf5e049=a114_0x41eecf;if(!_0x164044||typeof _0x164044!=='object'||Array['isArray'](_0x164044))return undefined;const _0x1eef90=_0x164044[_0xf5e049(0x1a2)];if(typeof _0x1eef90===_0xf5e049(0x18e))return Number['isInteger'](_0x1eef90)&&_0x1eef90>=0x0?String(_0x1eef90):undefined;const _0xed5c56=nonEmptyString(_0x1eef90);return _0xed5c56&&/^\d+$/[_0xf5e049(0x185)](_0xed5c56)?_0xed5c56:undefined;}
@@ -1 +1 @@
1
- function a115_0x3421(_0xee1d52,_0x32d850){_0xee1d52=_0xee1d52-0x151;const _0x12dc89=a115_0x12dc();let _0x3421f8=_0x12dc89[_0xee1d52];return _0x3421f8;}const a115_0x482073=a115_0x3421;(function(_0x44736c,_0x4f21c1){const _0x4846ff=a115_0x3421,_0x3de0a0=_0x44736c();while(!![]){try{const _0x5f232f=-parseInt(_0x4846ff(0x159))/0x1+parseInt(_0x4846ff(0x163))/0x2+parseInt(_0x4846ff(0x173))/0x3*(-parseInt(_0x4846ff(0x176))/0x4)+parseInt(_0x4846ff(0x16c))/0x5+parseInt(_0x4846ff(0x15e))/0x6*(parseInt(_0x4846ff(0x168))/0x7)+parseInt(_0x4846ff(0x151))/0x8*(-parseInt(_0x4846ff(0x15d))/0x9)+-parseInt(_0x4846ff(0x169))/0xa*(-parseInt(_0x4846ff(0x153))/0xb);if(_0x5f232f===_0x4f21c1)break;else _0x3de0a0['push'](_0x3de0a0['shift']());}catch(_0x4c658b){_0x3de0a0['push'](_0x3de0a0['shift']());}}}(a115_0x12dc,0x316d5));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a115_0x482073(0x156),a115_0x482073(0x16d),a115_0x482073(0x164),a115_0x482073(0x15a),a115_0x482073(0x15c),a115_0x482073(0x16a),a115_0x482073(0x172),a115_0x482073(0x155),a115_0x482073(0x167)]);function a115_0x12dc(){const _0x165497=['validation','add','name','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','page','30QFroPo','Run\x20`','Unknown\x20flag\x20--','111272wthjgj','2437824EAvlMI','version','66KMiXBO','entries','page-size','where','command','no-','196057pQqagk','orderby','\x20for\x20`','current-page','9aSkKBv','1266fMAbPM','service','filter','flags','has','315602UvSLAV','order-by','data','meowKey','pagesize','5026FvDclg','936970hHgWxU','currentpage','stringify','549685PrSoXX','select'];a115_0x12dc=function(){return _0x165497;};return a115_0x12dc();}export function assertKnownCommandFlags(_0x4f0346,_0x2383b8){const _0x1b833e=a115_0x482073,_0x3255da=new Set([_0x1b833e(0x152)]);for(const _0x123241 of GLOBAL_FLAGS){_0x3255da['add'](_0x123241[_0x1b833e(0x170)]),_0x3255da[_0x1b833e(0x16f)](toKebab(_0x123241[_0x1b833e(0x166)]));}for(const _0x4999b7 of _0x4f0346[_0x1b833e(0x161)]??[]){_0x3255da['add'](_0x4999b7[_0x1b833e(0x170)]);}for(const [_0x3eb4f5,_0x1ea710]of Object[_0x1b833e(0x154)](_0x2383b8)){const _0x281165=toKebab(_0x3eb4f5);if(_0x3255da['has'](_0x281165))continue;if(_0x1ea710===![]&&_0x3255da[_0x1b833e(0x162)](_0x1b833e(0x158)+_0x281165))continue;if(_0x4f0346['service']===_0x1b833e(0x165)&&_0x4f0346['command']===_0x1b833e(0x160)&&FILTER_BODY_FIELDS[_0x1b833e(0x162)](_0x281165))throw CliErrors[_0x1b833e(0x16e)]('--'+_0x281165+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+'\x20data\x20filter`.','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+('Example:\x20'+CLI_BIN_NAME+_0x1b833e(0x171))+('\x27'+JSON[_0x1b833e(0x16b)]({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x1b833e(0x16e)](_0x1b833e(0x175)+_0x281165+_0x1b833e(0x15b)+CLI_BIN_NAME+'\x20'+_0x4f0346['service']+'\x20'+_0x4f0346['command']+'`.',_0x1b833e(0x174)+CLI_BIN_NAME+'\x20'+_0x4f0346[_0x1b833e(0x15f)]+'\x20'+_0x4f0346[_0x1b833e(0x157)]+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
1
+ const a115_0x114f96=a115_0x8ca7;(function(_0x1f37a7,_0x567ad2){const _0x1ea397=a115_0x8ca7,_0x3715d3=_0x1f37a7();while(!![]){try{const _0x42fd0a=-parseInt(_0x1ea397(0x184))/0x1*(-parseInt(_0x1ea397(0x175))/0x2)+parseInt(_0x1ea397(0x172))/0x3*(parseInt(_0x1ea397(0x17d))/0x4)+parseInt(_0x1ea397(0x190))/0x5+parseInt(_0x1ea397(0x180))/0x6*(-parseInt(_0x1ea397(0x17a))/0x7)+-parseInt(_0x1ea397(0x17e))/0x8+-parseInt(_0x1ea397(0x16f))/0x9+parseInt(_0x1ea397(0x171))/0xa;if(_0x42fd0a===_0x567ad2)break;else _0x3715d3['push'](_0x3715d3['shift']());}catch(_0x33a275){_0x3715d3['push'](_0x3715d3['shift']());}}}(a115_0x416f,0x3a304));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';function a115_0x8ca7(_0x10c5bc,_0x3c6730){_0x10c5bc=_0x10c5bc-0x169;const _0x416f3b=a115_0x416f();let _0x8ca72d=_0x416f3b[_0x10c5bc];return _0x8ca72d;}const FILTER_BODY_FIELDS=new Set([a115_0x114f96(0x17b),a115_0x114f96(0x176),a115_0x114f96(0x182),a115_0x114f96(0x173),a115_0x114f96(0x174),a115_0x114f96(0x189),a115_0x114f96(0x17c),a115_0x114f96(0x177),'pagesize']);function a115_0x416f(){const _0x4a5b11=['Unknown\x20flag\x20--','service','3247092RzjTqC','\x20data\x20filter`.','1296280HspQyC','35556fGnvaC','orderby','current-page','30lEltat','select','page-size','name','stringify','1519pRoDXr','where','page','76soOqLW','1766928zoOcSC','Example:\x20','1338eenYyR','Run\x20`','order-by','validation','5479jprcAP','active','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','asc','entries','currentpage','version','has','no-','add','\x20for\x20`','meowKey','2156920XqCmTt','data','command','filter','flags','\x20--help`\x20to\x20see\x20accepted\x20flags.'];a115_0x416f=function(){return _0x4a5b11;};return a115_0x416f();}export function assertKnownCommandFlags(_0x5d8e5f,_0x4f3e30){const _0x4ea581=a115_0x114f96,_0x5c10f1=new Set([_0x4ea581(0x18a)]);for(const _0x4b88c1 of GLOBAL_FLAGS){_0x5c10f1['add'](_0x4b88c1[_0x4ea581(0x178)]),_0x5c10f1[_0x4ea581(0x18d)](toKebab(_0x4b88c1[_0x4ea581(0x18f)]));}for(const _0x380e39 of _0x5d8e5f[_0x4ea581(0x16b)]??[]){_0x5c10f1['add'](_0x380e39[_0x4ea581(0x178)]);}for(const [_0x4c9caa,_0x47bcb6]of Object[_0x4ea581(0x188)](_0x4f3e30)){const _0x4bc58d=toKebab(_0x4c9caa);if(_0x5c10f1['has'](_0x4bc58d))continue;if(_0x47bcb6===![]&&_0x5c10f1['has'](_0x4ea581(0x18c)+_0x4bc58d))continue;if(_0x5d8e5f['service']===_0x4ea581(0x191)&&_0x5d8e5f[_0x4ea581(0x169)]===_0x4ea581(0x16a)&&FILTER_BODY_FIELDS[_0x4ea581(0x18b)](_0x4bc58d))throw CliErrors[_0x4ea581(0x183)]('--'+_0x4bc58d+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+_0x4ea581(0x170),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x4ea581(0x17f)+CLI_BIN_NAME+_0x4ea581(0x186))+('\x27'+JSON[_0x4ea581(0x179)]({'where':{'status':{'$eq':_0x4ea581(0x185)}},'orderBy':[{'id':_0x4ea581(0x187)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x4ea581(0x183)](_0x4ea581(0x16d)+_0x4bc58d+_0x4ea581(0x18e)+CLI_BIN_NAME+'\x20'+_0x5d8e5f['service']+'\x20'+_0x5d8e5f[_0x4ea581(0x169)]+'`.',_0x4ea581(0x181)+CLI_BIN_NAME+'\x20'+_0x5d8e5f[_0x4ea581(0x16e)]+'\x20'+_0x5d8e5f[_0x4ea581(0x169)]+_0x4ea581(0x16c));}}
@@ -1 +1 @@
1
- (function(_0x39c263,_0xf27437){var _0x5ae4db=a116_0xd0ec,_0x58b568=_0x39c263();while(!![]){try{var _0x58ff1e=parseInt(_0x5ae4db(0x124))/0x1*(parseInt(_0x5ae4db(0x126))/0x2)+-parseInt(_0x5ae4db(0x121))/0x3*(parseInt(_0x5ae4db(0x11e))/0x4)+parseInt(_0x5ae4db(0x120))/0x5*(parseInt(_0x5ae4db(0x11d))/0x6)+-parseInt(_0x5ae4db(0x122))/0x7*(-parseInt(_0x5ae4db(0x11a))/0x8)+-parseInt(_0x5ae4db(0x11c))/0x9+-parseInt(_0x5ae4db(0x123))/0xa*(parseInt(_0x5ae4db(0x11b))/0xb)+parseInt(_0x5ae4db(0x125))/0xc*(parseInt(_0x5ae4db(0x11f))/0xd);if(_0x58ff1e===_0xf27437)break;else _0x58b568['push'](_0x58b568['shift']());}catch(_0x16c00e){_0x58b568['push'](_0x58b568['shift']());}}}(a116_0x3cc5,0xae17d));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a116_0xd0ec(_0x2c1f43,_0xb465cb){_0x2c1f43=_0x2c1f43-0x11a;var _0x3cc550=a116_0x3cc5();var _0xd0eccd=_0x3cc550[_0x2c1f43];return _0xd0eccd;}function a116_0x3cc5(){var _0x509f6d=['352TSQoYh','11517138YESLwZ','6GfTgKi','4unwsHM','13eBuqZY','2541355yjAYCn','4200486fjOzJs','91jrdFPQ','101760PSaxov','262855AYSqGr','34424640cjMtQX','2xWclkF','48440BtjNwZ'];a116_0x3cc5=function(){return _0x509f6d;};return a116_0x3cc5();}
1
+ function a116_0x4692(_0x2af679,_0x78ee7c){_0x2af679=_0x2af679-0xcf;var _0x276360=a116_0x2763();var _0x4692ca=_0x276360[_0x2af679];return _0x4692ca;}(function(_0x12f9c3,_0x49d705){var _0x348698=a116_0x4692,_0x130af7=_0x12f9c3();while(!![]){try{var _0x1e8a22=parseInt(_0x348698(0xd6))/0x1*(parseInt(_0x348698(0xd8))/0x2)+parseInt(_0x348698(0xcf))/0x3*(-parseInt(_0x348698(0xd5))/0x4)+-parseInt(_0x348698(0xd2))/0x5+-parseInt(_0x348698(0xd4))/0x6+-parseInt(_0x348698(0xd0))/0x7+parseInt(_0x348698(0xd7))/0x8*(-parseInt(_0x348698(0xd3))/0x9)+parseInt(_0x348698(0xd1))/0xa;if(_0x1e8a22===_0x49d705)break;else _0x130af7['push'](_0x130af7['shift']());}catch(_0x512096){_0x130af7['push'](_0x130af7['shift']());}}}(a116_0x2763,0x2014b));function a116_0x2763(){var _0x682543=['1177047aMvMTy','1514064lxInuV','408316NzxrNk','30GJBppH','16HQfoOt','5078mGtWAe','3pgIRBy','1077503fTOenl','10018210nSpBEq','883350jVXuve'];a116_0x2763=function(){return _0x682543;};return a116_0x2763();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x2d46bb,_0x2139d8){const _0x198e58=a117_0x28cd,_0x3d3a2d=_0x2d46bb();while(!![]){try{const _0x48632f=-parseInt(_0x198e58(0x1ce))/0x1+parseInt(_0x198e58(0x1b8))/0x2*(-parseInt(_0x198e58(0x1d6))/0x3)+-parseInt(_0x198e58(0x1c8))/0x4*(-parseInt(_0x198e58(0x1c6))/0x5)+parseInt(_0x198e58(0x1d7))/0x6*(parseInt(_0x198e58(0x1c3))/0x7)+parseInt(_0x198e58(0x1ca))/0x8+-parseInt(_0x198e58(0x1ba))/0x9+parseInt(_0x198e58(0x1b7))/0xa*(parseInt(_0x198e58(0x1b6))/0xb);if(_0x48632f===_0x2139d8)break;else _0x3d3a2d['push'](_0x3d3a2d['shift']());}catch(_0x549729){_0x3d3a2d['push'](_0x3d3a2d['shift']());}}}(a117_0x17cb,0xef55d));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x4f53c5,_0x3663f6,_0x3d5a62){const _0x104186=a117_0x28cd,_0x57a38a=buildConfirmationContext(_0x4f53c5,_0x3663f6,_0x3d5a62),_0x5c583f=[_0x104186(0x1cc)+_0x57a38a[_0x104186(0x1c7)]];return _0x57a38a[_0x104186(0x1bb)]&&_0x5c583f[_0x104186(0x1c4)](_0x104186(0x1bf)+_0x57a38a['description']),_0x57a38a[_0x104186(0x1cb)]&&_0x5c583f[_0x104186(0x1c4)](_0x104186(0x1d4)+_0x57a38a[_0x104186(0x1cb)]),_0x5c583f['push'](_0x104186(0x1bc)),_0x5c583f;}function a117_0x28cd(_0x4a708c,_0x2ce586){_0x4a708c=_0x4a708c-0x1b6;const _0x17cbe2=a117_0x17cb();let _0x28cde7=_0x17cbe2[_0x4a708c];return _0x28cde7;}export function reconstructCommandArgv(_0x369fd9,_0x3f05f0){const _0x203508=a117_0x28cd,_0xd69a84=[CLI_BIN_NAME,_0x369fd9['service'],_0x369fd9[_0x203508(0x1b9)]];for(const [_0x13b9d5,_0x5030be]of Object[_0x203508(0x1d8)](_0x3f05f0)){if(_0x5030be===!![])_0xd69a84[_0x203508(0x1c4)]('--'+_0x13b9d5);else _0x5030be!==![]&&_0x5030be!==undefined&&_0x5030be!==''&&_0xd69a84[_0x203508(0x1c4)]('--'+_0x13b9d5+'\x20'+JSON[_0x203508(0x1cd)](_0x5030be));}return _0xd69a84[_0x203508(0x1c4)]('--yes'),_0xd69a84[_0x203508(0x1d1)]('\x20');}function buildConfirmationContext(_0x4ec21a,_0x5b43eb,_0x2f2e44){const _0x12f37a=a117_0x28cd,_0x1363db=extractAffectedRecords(_0x2f2e44);return{'commandLabel':_0x5b43eb,'description':_0x4ec21a[_0x12f37a(0x1bb)],'affectedRecords':_0x1363db};}function extractAffectedRecords(_0x3140f7){const _0x3d8308=a117_0x28cd,_0x3d9b35=[];if(_0x3140f7['code'])_0x3d9b35[_0x3d8308(0x1c4)](_0x3d8308(0x1d5)+_0x3140f7[_0x3d8308(0x1d9)]);if(_0x3140f7['id'])_0x3d9b35[_0x3d8308(0x1c4)]('id='+_0x3140f7['id']);if(_0x3140f7[_0x3d8308(0x1cf)])_0x3d9b35['push'](_0x3d8308(0x1c9)+_0x3140f7['schedule-id']);if(_0x3140f7['name'])_0x3d9b35[_0x3d8308(0x1c4)]('name='+_0x3140f7[_0x3d8308(0x1d3)]);if(_0x3140f7['title'])_0x3d9b35[_0x3d8308(0x1c4)]('title='+_0x3140f7['title']);if(_0x3140f7[_0x3d8308(0x1c2)])_0x3d9b35[_0x3d8308(0x1c4)](_0x3d8308(0x1c1)+_0x3140f7[_0x3d8308(0x1c2)]);if(_0x3140f7[_0x3d8308(0x1d0)])_0x3d9b35['push'](_0x3d8308(0x1da)+_0x3140f7['cron']);if(_0x3140f7['scheduled-at'])_0x3d9b35[_0x3d8308(0x1c4)](_0x3d8308(0x1bd)+_0x3140f7[_0x3d8308(0x1c0)]);if(_0x3140f7[_0x3d8308(0x1d2)])_0x3d9b35[_0x3d8308(0x1c4)]('channel='+_0x3140f7[_0x3d8308(0x1d2)]);if(_0x3140f7[_0x3d8308(0x1db)])_0x3d9b35[_0x3d8308(0x1c4)](_0x3d8308(0x1c5)+_0x3140f7[_0x3d8308(0x1db)]);return _0x3d9b35[_0x3d8308(0x1be)]>0x0?_0x3d9b35['join'](',\x20'):undefined;}function a117_0x17cb(){const _0x4bb4b7=['name','\x20\x20\x20Affected:\x20','code=','976443UfomFt','125508GmiaWq','entries','code','cron=','params','21896699UBzlWO','10xpjXNr','10OHNHpZ','command','11297961bErmeJ','description','\x20\x20\x20Continue?\x20[y/N]\x20','scheduled-at=','length','\x20\x20\x20','scheduled-at','kind=','kind','434HCawOL','push','params=','11430QTZYsS','commandLabel','1084NvCjCF','schedule-id=','6578264Mvooiq','affectedRecords','⚠\x20\x20High-risk\x20operation:\x20','stringify','866263wntJdM','schedule-id','cron','join','channel'];a117_0x17cb=function(){return _0x4bb4b7;};return a117_0x17cb();}
1
+ (function(_0x6b42b5,_0x1edc06){const _0x23c37a=a117_0x11a9,_0x46cebc=_0x6b42b5();while(!![]){try{const _0x17ab71=-parseInt(_0x23c37a(0x180))/0x1*(-parseInt(_0x23c37a(0x16e))/0x2)+-parseInt(_0x23c37a(0x172))/0x3*(parseInt(_0x23c37a(0x165))/0x4)+-parseInt(_0x23c37a(0x170))/0x5*(parseInt(_0x23c37a(0x17b))/0x6)+parseInt(_0x23c37a(0x168))/0x7*(parseInt(_0x23c37a(0x166))/0x8)+parseInt(_0x23c37a(0x16f))/0x9+parseInt(_0x23c37a(0x15d))/0xa+-parseInt(_0x23c37a(0x179))/0xb;if(_0x17ab71===_0x1edc06)break;else _0x46cebc['push'](_0x46cebc['shift']());}catch(_0x3fb68a){_0x46cebc['push'](_0x46cebc['shift']());}}}(a117_0x502d,0x9f0af));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x13c164,_0x382879,_0x21bf8a){const _0x1800b9=a117_0x11a9,_0x4c7981=buildConfirmationContext(_0x13c164,_0x382879,_0x21bf8a),_0x2db679=[_0x1800b9(0x16c)+_0x4c7981['commandLabel']];return _0x4c7981[_0x1800b9(0x169)]&&_0x2db679[_0x1800b9(0x17d)]('\x20\x20\x20'+_0x4c7981['description']),_0x4c7981[_0x1800b9(0x182)]&&_0x2db679[_0x1800b9(0x17d)](_0x1800b9(0x174)+_0x4c7981[_0x1800b9(0x182)]),_0x2db679[_0x1800b9(0x17d)](_0x1800b9(0x175)),_0x2db679;}function a117_0x11a9(_0x27bbee,_0x29e2bf){_0x27bbee=_0x27bbee-0x15d;const _0x502d6a=a117_0x502d();let _0x11a986=_0x502d6a[_0x27bbee];return _0x11a986;}function a117_0x502d(){const _0xc43721=['channel=','3ZpCfEz','command','\x20\x20\x20Affected:\x20','\x20\x20\x20Continue?\x20[y/N]\x20','name','title','code','6558233hRMXJu','service','30TpMhUP','code=','push','scheduled-at=','cron','23EBInXi','title=','affectedRecords','schedule-id','3603170TMqwhs','entries','cron=','kind','stringify','join','length','id=','4437308wdKPJA','2744dswIWK','params','26495ExxvDF','description','params=','scheduled-at','⚠\x20\x20High-risk\x20operation:\x20','channel','16270UAwdwc','5410053kZnQLR','89825QboLSi'];a117_0x502d=function(){return _0xc43721;};return a117_0x502d();}export function reconstructCommandArgv(_0x1197d7,_0x1c0fd8){const _0x438598=a117_0x11a9,_0x5d0373=[CLI_BIN_NAME,_0x1197d7[_0x438598(0x17a)],_0x1197d7[_0x438598(0x173)]];for(const [_0x3dabbe,_0x99a469]of Object[_0x438598(0x15e)](_0x1c0fd8)){if(_0x99a469===!![])_0x5d0373['push']('--'+_0x3dabbe);else _0x99a469!==![]&&_0x99a469!==undefined&&_0x99a469!==''&&_0x5d0373[_0x438598(0x17d)]('--'+_0x3dabbe+'\x20'+JSON[_0x438598(0x161)](_0x99a469));}return _0x5d0373[_0x438598(0x17d)]('--yes'),_0x5d0373[_0x438598(0x162)]('\x20');}function buildConfirmationContext(_0xf8ff91,_0xf82cec,_0x5283b9){const _0x469026=a117_0x11a9,_0x4f3244=extractAffectedRecords(_0x5283b9);return{'commandLabel':_0xf82cec,'description':_0xf8ff91[_0x469026(0x169)],'affectedRecords':_0x4f3244};}function extractAffectedRecords(_0x212cd2){const _0x44e31c=a117_0x11a9,_0x5070d1=[];if(_0x212cd2[_0x44e31c(0x178)])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x17c)+_0x212cd2[_0x44e31c(0x178)]);if(_0x212cd2['id'])_0x5070d1['push'](_0x44e31c(0x164)+_0x212cd2['id']);if(_0x212cd2[_0x44e31c(0x183)])_0x5070d1[_0x44e31c(0x17d)]('schedule-id='+_0x212cd2['schedule-id']);if(_0x212cd2['name'])_0x5070d1['push']('name='+_0x212cd2[_0x44e31c(0x176)]);if(_0x212cd2['title'])_0x5070d1['push'](_0x44e31c(0x181)+_0x212cd2[_0x44e31c(0x177)]);if(_0x212cd2[_0x44e31c(0x160)])_0x5070d1[_0x44e31c(0x17d)]('kind='+_0x212cd2[_0x44e31c(0x160)]);if(_0x212cd2[_0x44e31c(0x17f)])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x15f)+_0x212cd2[_0x44e31c(0x17f)]);if(_0x212cd2[_0x44e31c(0x16b)])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x17e)+_0x212cd2[_0x44e31c(0x16b)]);if(_0x212cd2['channel'])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x171)+_0x212cd2[_0x44e31c(0x16d)]);if(_0x212cd2[_0x44e31c(0x167)])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x16a)+_0x212cd2[_0x44e31c(0x167)]);return _0x5070d1[_0x44e31c(0x163)]>0x0?_0x5070d1['join'](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0xa8450b,_0x4ecba8){const _0x5dd58e=a118_0x397d,_0x30b86b=_0xa8450b();while(!![]){try{const _0xcd5e00=parseInt(_0x5dd58e(0x1e9))/0x1+parseInt(_0x5dd58e(0x1dd))/0x2*(parseInt(_0x5dd58e(0x1e3))/0x3)+-parseInt(_0x5dd58e(0x1e8))/0x4+-parseInt(_0x5dd58e(0x1da))/0x5+-parseInt(_0x5dd58e(0x1db))/0x6+-parseInt(_0x5dd58e(0x1dc))/0x7+parseInt(_0x5dd58e(0x1e2))/0x8*(parseInt(_0x5dd58e(0x1e5))/0x9);if(_0xcd5e00===_0x4ecba8)break;else _0x30b86b['push'](_0x30b86b['shift']());}catch(_0x86703a){_0x30b86b['push'](_0x30b86b['shift']());}}}(a118_0x1c88,0x19b7a));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';function a118_0x397d(_0x3b84fd,_0x1dc957){_0x3b84fd=_0x3b84fd-0x1da;const _0x1c8899=a118_0x1c88();let _0x397d51=_0x1c8899[_0x3b84fd];return _0x397d51;}export function mapUserFacingExecuteError(_0x30cb04){const _0x50abb5=a118_0x397d;if(_0x30cb04 instanceof LovrabetError){const _0x5ec8f1=userFacingLovrabetMessage(_0x30cb04),_0x14f99a=_0x30cb04,_0x1ef8f8=createRateLimitError({'status':_0x14f99a[_0x50abb5(0x1e4)],'errorCode':_0x14f99a[_0x50abb5(0x1e0)],'message':_0x5ec8f1,'retryAfter':readRetryAfter(_0x14f99a['response']?.[_0x50abb5(0x1e6)])??readRetryAfterSeconds(_0x14f99a[_0x50abb5(0x1e1)])});return _0x1ef8f8??CliErrors['validation'](_0x5ec8f1);}return _0x30cb04;}function a118_0x1c88(){const _0x5e265d=['776586nrEpEr','1455916kSTVNH','4898TOQgjw','trim','message','code','response','8NlDaPs','249gfmZMH','status','2900223QSAVAA','headers','stringify','348444jRgDwq','153423ppxbVM','745345hOROjp'];a118_0x1c88=function(){return _0x5e265d;};return a118_0x1c88();}function userFacingLovrabetMessage(_0x5cf88e){const _0x20611b=a118_0x397d,_0x580fa3=_0x5cf88e['description'];if(_0x580fa3!==undefined&&_0x580fa3!==null){if(typeof _0x580fa3==='string'&&_0x580fa3[_0x20611b(0x1de)]())return _0x580fa3['trim']();try{return JSON[_0x20611b(0x1e7)](_0x580fa3);}catch{}}return _0x5cf88e[_0x20611b(0x1df)];}
1
+ (function(_0x5d3cc0,_0x4a1e38){const _0x503341=a118_0x4a4d,_0x43c9e3=_0x5d3cc0();while(!![]){try{const _0x53e9b6=-parseInt(_0x503341(0x1cb))/0x1+parseInt(_0x503341(0x1d2))/0x2+parseInt(_0x503341(0x1db))/0x3*(parseInt(_0x503341(0x1d1))/0x4)+parseInt(_0x503341(0x1ce))/0x5+-parseInt(_0x503341(0x1d9))/0x6+parseInt(_0x503341(0x1cc))/0x7+-parseInt(_0x503341(0x1d5))/0x8*(parseInt(_0x503341(0x1d4))/0x9);if(_0x53e9b6===_0x4a1e38)break;else _0x43c9e3['push'](_0x43c9e3['shift']());}catch(_0x3f7854){_0x43c9e3['push'](_0x43c9e3['shift']());}}}(a118_0x32ea,0x4b131));import{LovrabetError}from'@lovrabet/sdk';function a118_0x4a4d(_0xb52d4e,_0x173e9d){_0xb52d4e=_0xb52d4e-0x1cb;const _0x32ea55=a118_0x32ea();let _0x4a4d32=_0x32ea55[_0xb52d4e];return _0x4a4d32;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x1bcaab){const _0x7662eb=a118_0x4a4d;if(_0x1bcaab instanceof LovrabetError){const _0x3c616e=userFacingLovrabetMessage(_0x1bcaab),_0xcffc71=_0x1bcaab,_0x446200=createRateLimitError({'status':_0xcffc71[_0x7662eb(0x1cf)],'errorCode':_0xcffc71[_0x7662eb(0x1d0)],'message':_0x3c616e,'retryAfter':readRetryAfter(_0xcffc71[_0x7662eb(0x1d8)]?.['headers'])??readRetryAfterSeconds(_0xcffc71[_0x7662eb(0x1d8)])});return _0x446200??CliErrors[_0x7662eb(0x1cd)](_0x3c616e);}return _0x1bcaab;}function userFacingLovrabetMessage(_0x2f1f76){const _0x155ffa=a118_0x4a4d,_0x54b49b=_0x2f1f76[_0x155ffa(0x1da)];if(_0x54b49b!==undefined&&_0x54b49b!==null){if(typeof _0x54b49b===_0x155ffa(0x1d3)&&_0x54b49b[_0x155ffa(0x1d7)]())return _0x54b49b[_0x155ffa(0x1d7)]();try{return JSON[_0x155ffa(0x1d6)](_0x54b49b);}catch{}}return _0x2f1f76['message'];}function a118_0x32ea(){const _0x460edd=['description','190011bIESmn','318265acXhwN','3018561odrjUA','validation','954855VgULJV','status','code','8zEhPCk','426244ajIcZw','string','41049mXxBAf','248LLrdSt','stringify','trim','response','1168974ewSfFO'];a118_0x32ea=function(){return _0x460edd;};return a118_0x32ea();}
@@ -1 +1 @@
1
- (function(_0x4e93e5,_0x14a2fe){const _0x5de459=a119_0x3976,_0x2e9211=_0x4e93e5();while(!![]){try{const _0x56c1cf=-parseInt(_0x5de459(0x20c))/0x1*(parseInt(_0x5de459(0x1f2))/0x2)+parseInt(_0x5de459(0x211))/0x3+parseInt(_0x5de459(0x1f9))/0x4+-parseInt(_0x5de459(0x20f))/0x5+-parseInt(_0x5de459(0x1ea))/0x6+-parseInt(_0x5de459(0x209))/0x7+-parseInt(_0x5de459(0x1fd))/0x8*(-parseInt(_0x5de459(0x1d3))/0x9);if(_0x56c1cf===_0x14a2fe)break;else _0x2e9211['push'](_0x2e9211['shift']());}catch(_0xfdc1f1){_0x2e9211['push'](_0x2e9211['shift']());}}}(a119_0x8e84,0x86615));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,getRuntimeDomain}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{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x2a3bfa){return void _0x2a3bfa,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5baa7d,_0x1f2b80){const _0x534c5b=a119_0x3976,_0x46e6e6=typeof _0x1f2b80['app']==='string'&&_0x1f2b80[_0x534c5b(0x1f4)][_0x534c5b(0x208)]();return{'rawFlags':_0x1f2b80,'appCode':_0x5baa7d[_0x534c5b(0x210)]||productEnv('APPCODE')||(_0x46e6e6?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5baa7d[_0x534c5b(0x204)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x1f2b80),'defaultFormat':_0x5baa7d[_0x534c5b(0x1d2)],'defaultPageSize':_0x5baa7d[_0x534c5b(0x1dd)],'defaultVerbose':_0x5baa7d['verbose'],'riskLevel':_0x5baa7d[_0x534c5b(0x1e6)],'accessKey':_0x5baa7d[_0x534c5b(0x1ec)],'env':_0x5baa7d[_0x534c5b(0x1de)],'mergedCli':{'defaultApp':_0x5baa7d[_0x534c5b(0x1e7)],'currentApp':_0x5baa7d[_0x534c5b(0x1fb)],'appCode':_0x5baa7d[_0x534c5b(0x210)]}};}export function createLovrabetRunnerAdapter(_0x588fa8={}){const _0x3a20c6=a119_0x3976,_0x5dcaf8={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3a20c6(0x1e8)](_0x35a37c=>PIPELINE_FLAG_NAMES[_0x3a20c6(0x1d4)](_0x35a37c[_0x3a20c6(0x20a)]))[_0x3a20c6(0x1d8)](({name:_0x1403b3,type:_0x106dcf,description:_0x35f87f})=>({'name':_0x1403b3,'type':_0x106dcf,'description':_0x35f87f})),'formatOutput':_0x588fa8[_0x3a20c6(0x1f8)]??formatOutput,'getCommandLabel'(_0x23f808){const _0x1bcacc=_0x3a20c6;return CLI_BIN_NAME+'\x20'+_0x23f808[_0x1bcacc(0x1d9)]+'\x20'+_0x23f808['command'];},'riskPolicy':{'onViolation'(_0x364f90){console['error'](_0x364f90);},'createError'(_0x4550ee){const _0x47322b=_0x3a20c6;return CliErrors[_0x47322b(0x205)](_0x4550ee);}},async 'prepare'(_0xf915cf,_0x49059a){const _0xfa6314=_0x3a20c6,_0x3e0065=resolveAuthMode(_0x49059a);if(_0xf915cf[_0xfa6314(0x1e1)]!==![]){if(!_0x49059a[_0xfa6314(0x1ec)])throw CliErrors['authRequired'](_0xfa6314(0x1d6)+PRODUCT_CONFIG[_0xfa6314(0x1e3)]+_0xfa6314(0x1f3)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x1ec445}=await import(_0xfa6314(0x200));_0x1ec445(_0x49059a[_0xfa6314(0x1ec)]);}let _0x5b05c8='';if(_0xf915cf[_0xfa6314(0x1dc)]!==![]){_0x5b05c8=_0x49059a['appCode']??'',_0x5b05c8=await resolveExplicitAppName(_0xf915cf,_0x49059a,_0x5b05c8);if(!_0x5b05c8){await assertSelectedAppNameIsRuntimeAccessible(_0xf915cf,_0x49059a);throw CliErrors['configMissing'](_0xfa6314(0x1ee)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xf915cf,_0x49059a,_0x5b05c8);}if(_0x5b05c8){const {initSdkClient:_0x543748}=await import(_0xfa6314(0x1e9));_0x543748({'appCode':_0x5b05c8,'env':_0x49059a[_0xfa6314(0x1de)]??_0xfa6314(0x1d1),'runtimeDomain':_0x49059a['runtimeDomain'],'accessKey':_0x49059a[_0xfa6314(0x1ec)],'authMode':_0x3e0065}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x49059a[_0xfa6314(0x1f7)]},'numbers':{'pagesize':_0x49059a[_0xfa6314(0x1ed)]}},'extras':{'appCode':_0x5b05c8,'cookie':'','apiDomain':_0x49059a[_0xfa6314(0x1ef)],'apiDir':'','accessKey':_0x49059a[_0xfa6314(0x1ec)],'envName':_0x49059a[_0xfa6314(0x1de)],'mergedCli':_0x49059a[_0xfa6314(0x1e4)]}};},'confirmHighRisk':_0x588fa8[_0x3a20c6(0x1f0)]??(async({def:_0x4d54ba,env:_0x3eafd0,flags:_0x5cd41d,commandLabel:_0x2d13c1})=>{const _0x248b5d=_0x3a20c6;if(_0x3eafd0['isNonInteractive']){const _0x3e1dd6=reconstructCommandArgv(_0x4d54ba,_0x5cd41d);throw CliErrors[_0x248b5d(0x207)](_0x248b5d(0x20d)+_0x2d13c1+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x248b5d(0x1fe)+_0x3e1dd6));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4d54ba,_0x2d13c1,_0x5cd41d),'createCancelledError':_0x583fed=>CliErrors[_0x248b5d(0x205)](_0x583fed)});}),'mapDryRunError'(_0x3431e8){return mapUserFacingExecuteError(_0x3431e8);},'mapExecuteError'(_0x2a7248){return mapUserFacingExecuteError(_0x2a7248);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x5dcaf8;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();function a119_0x3976(_0x20eab0,_0x1da2db){_0x20eab0=_0x20eab0-0x1d1;const _0x8e8438=a119_0x8e84();let _0x39764b=_0x8e8438[_0x20eab0];return _0x39764b;}export async function finalizeLovrabetRuntimeState(){const _0x4ee84a=a119_0x3976;try{if(sdkClientInitialized){const {clearSdkClient:_0x3ef7f9}=await import(_0x4ee84a(0x1e9));_0x3ef7f9();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x54e07c}=await import(_0x4ee84a(0x200));_0x54e07c();}}async function resolveExplicitAppName(_0x53654a,_0x4f098d,_0x371c66){const _0x41506b=a119_0x3976;if(_0x53654a[_0x41506b(0x1dc)]===![])return _0x371c66;const _0x7f882e=typeof _0x4f098d['rawFlags']['app']===_0x41506b(0x1e2)?_0x4f098d[_0x41506b(0x1f6)][_0x41506b(0x1f4)][_0x41506b(0x208)]():'';if(!_0x7f882e)return _0x371c66;const _0x4f93b1=typeof _0x4f098d[_0x41506b(0x1f6)][_0x41506b(0x1d5)]===_0x41506b(0x1e2)&&_0x4f098d['rawFlags'][_0x41506b(0x1d5)][_0x41506b(0x208)]()||productEnv(_0x41506b(0x1da));if(_0x4f93b1||_0x4f098d[_0x41506b(0x204)]===_0x41506b(0x1eb))return _0x371c66;const {getRemoteAppList:_0x126167}=await import('../commands/app/remote-source.js'),_0x597f09=await _0x126167({'env':_0x4f098d['env']??_0x41506b(0x1d1),'accessKey':_0x4f098d['accessKey']}),_0x9ed377=findAppByName(_0x597f09['items'],_0x7f882e);if(_0x9ed377&&!isRuntimeAccessibleApp(_0x9ed377))throw runtimeInaccessibleAppError(_0x9ed377,'\x22'+_0x7f882e+'\x22');const _0x1ac8f7=_0x9ed377?.['appCode']?.[_0x41506b(0x208)]();if(_0x1ac8f7)return _0x1ac8f7;throw CliErrors[_0x41506b(0x207)](_0x41506b(0x1db)+_0x7f882e,'Run\x20`'+CLI_BIN_NAME+_0x41506b(0x1fc)+_0x7f882e+_0x41506b(0x1d7)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x194a45,_0x5326d1){const _0x157cfc=a119_0x3976;if(_0x194a45['requiresAppCode']===![]||!_0x5326d1['accessKey'])return;const _0x5ad5db=(typeof _0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)]===_0x157cfc(0x1e2)&&_0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)][_0x157cfc(0x208)]()?_0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)]:_0x5326d1[_0x157cfc(0x1e4)]?.[_0x157cfc(0x1fb)]??_0x5326d1[_0x157cfc(0x1e4)]?.[_0x157cfc(0x1e7)])?.['trim']();if(!_0x5ad5db)return;const {getRemoteAppList:_0x4096f5}=await import(_0x157cfc(0x20b)),_0x200547=await _0x4096f5({'env':_0x5326d1[_0x157cfc(0x1de)]??_0x157cfc(0x1d1),'accessKey':_0x5326d1['accessKey']}),_0x56c165=findAppByName(_0x200547[_0x157cfc(0x1df)],_0x5ad5db);if(_0x56c165&&!isRuntimeAccessibleApp(_0x56c165))throw runtimeInaccessibleAppError(_0x56c165,'\x22'+_0x5ad5db+'\x22');}function a119_0x8e84(){const _0x40a2a9=['3452740MKihjf','nonInteractive','currentApp','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','8JWfCgF','\x20\x20To\x20proceed:\x20','command','../core/api-client.js','catch','update','doctor','appCodeSource','cancelled','_notice','validation','trim','2983190DLSYle','name','../commands/app/remote-source.js','1TTEqrE','High-risk\x20operation\x20`','schema','822225PeazsO','appCode','844068BOvorH','production','format','14798601rsfZuS','has','appcode','Set\x20accessKey\x20in\x20','.appcode\x20to\x20','map','service','APPCODE','Unknown\x20app:\x20','requiresAppCode','pageSize','env','items','appcode\x20\x22','requiresAuth','string','newConfigFileName','mergedCli','execute','riskLevel','defaultApp','filter','../core/sdk-client.js','4914708QsUqHf','local-alias','accessKey','defaultPageSize','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','apiDomain','confirmHighRisk','object','1657352BSSgZQ','\x20or\x20pass\x20','app','pretty','rawFlags','defaultVerbose','formatOutput'];a119_0x8e84=function(){return _0x40a2a9;};return a119_0x8e84();}async function assertAppCodeIsRuntimeAccessible(_0x23fbed,_0x39be44,_0x16f92d){const _0x3c426d=a119_0x3976;if(_0x23fbed[_0x3c426d(0x1dc)]===![]||!_0x39be44['accessKey'])return;const {getRemoteAppList:_0x10b95f}=await import(_0x3c426d(0x20b)),_0x1306f4=await _0x10b95f({'env':_0x39be44[_0x3c426d(0x1de)]??_0x3c426d(0x1d1),'accessKey':_0x39be44[_0x3c426d(0x1ec)]}),_0x57c60a=findAppByCode(_0x1306f4['items'],_0x16f92d);if(_0x57c60a&&!isRuntimeAccessibleApp(_0x57c60a))throw runtimeInaccessibleAppError(_0x57c60a,_0x3c426d(0x1e0)+_0x16f92d+'\x22');}export async function runCommand(_0x2d2e18,_0x1a2710,_0x19f952=terminalRunnerAdapter){const _0x5de03c=a119_0x3976;assertKnownCommandFlags(_0x2d2e18,_0x1a2710[_0x5de03c(0x1f6)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x2d2e18)?withVersionPolicy(_0x2d2e18):_0x2d2e18,_0x1a2710,_0x19f952);}function shouldApplyVersionPolicy(_0x82d04b){const _0x109e15=a119_0x3976;if([_0x109e15(0x202),_0x109e15(0x20e),_0x109e15(0x203)]['includes'](_0x82d04b['service']))return![];return!(_0x82d04b[_0x109e15(0x1d9)]==='cli-skill'&&_0x82d04b[_0x109e15(0x1ff)]==='install');}function withVersionPolicy(_0x264ca9){return{..._0x264ca9,async 'execute'(_0x2f89ba){const _0x39e418=a119_0x3976,_0x5a9c78=await checkCliVersion();assertCliVersionSupported(_0x5a9c78);const _0x31616b=shouldResolveUpdateNotice(_0x2f89ba)?resolveLatestUpdateNotice(_0x5a9c78)[_0x39e418(0x201)](()=>null):Promise['resolve'](null),_0x1b693b=await _0x264ca9[_0x39e418(0x1e5)](_0x2f89ba);return attachUpdateNotice(_0x1b693b,await _0x31616b);}};}function shouldResolveUpdateNotice(_0x91b6d6){const _0xf56679=a119_0x3976;return _0x91b6d6[_0xf56679(0x1d2)]===_0xf56679(0x1f5)&&!_0x91b6d6[_0xf56679(0x1fa)];}function attachUpdateNotice(_0xab416f,_0x30af8d){const _0x17a650=a119_0x3976;if(!_0x30af8d||!_0xab416f||typeof _0xab416f!==_0x17a650(0x1f1))return _0xab416f;const _0x408482=_0xab416f,_0x22caf8=typeof _0x408482[_0x17a650(0x206)]===_0x17a650(0x1f1)&&_0x408482[_0x17a650(0x206)]!==null?_0x408482['_notice']:{};return{..._0x408482,'_notice':{..._0x22caf8,'update':_0x30af8d}};}
1
+ (function(_0x44ea5f,_0x122895){const _0x200e93=a119_0x3728,_0x194467=_0x44ea5f();while(!![]){try{const _0x3ef2ed=-parseInt(_0x200e93(0x188))/0x1*(parseInt(_0x200e93(0x1b4))/0x2)+-parseInt(_0x200e93(0x1a4))/0x3*(parseInt(_0x200e93(0x19f))/0x4)+-parseInt(_0x200e93(0x1aa))/0x5*(parseInt(_0x200e93(0x17f))/0x6)+-parseInt(_0x200e93(0x18b))/0x7+-parseInt(_0x200e93(0x184))/0x8+parseInt(_0x200e93(0x1ba))/0x9+-parseInt(_0x200e93(0x183))/0xa*(-parseInt(_0x200e93(0x1b3))/0xb);if(_0x3ef2ed===_0x122895)break;else _0x194467['push'](_0x194467['shift']());}catch(_0xb795ec){_0x194467['push'](_0x194467['shift']());}}}(a119_0x575d,0x549b0));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 a119_0x575d(){const _0x3795a5=['Run\x20`','../core/api-client.js','mergedCli','cli-skill','cancelled','appCode','4996ENuvLD','_notice','env','pageSize','newConfigFileName','1635SetAbI','isNonInteractive','Set\x20accessKey\x20in\x20','authRequired','service','production','647385LsCwPc','../core/sdk-client.js','APPCODE','accessKey','appcode','rawFlags','object','requiresAppCode','currentApp','7019012lcpiCx','1239182MJbaZK','../commands/app/remote-source.js','runtimeDomain','map','confirmHighRisk','validation','2306214HnQRhC','formatOutput','.appcode\x20to\x20','trim','appCodeSource','appcode\x20\x22','name','includes','6vHGtHA','command','resolve','schema','40MnZYAY','4446960egqFnK','\x20\x20To\x20proceed:\x20','format','nonInteractive','1ovnnqN','update','verbose','3334989IgfMPK','defaultApp','filter','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','string','catch','defaultVerbose','requiresAuth','configMissing','execute','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','items','app','Unknown\x20app:\x20'];a119_0x575d=function(){return _0x3795a5;};return a119_0x575d();}import{AUTH_MODE}from'../constant/auth-mode.js';function a119_0x3728(_0x414cd7,_0x2e5fb8){_0x414cd7=_0x414cd7-0x17a;const _0x575d69=a119_0x575d();let _0x3728f3=_0x575d69[_0x414cd7];return _0x3728f3;}import{getApiDomain,getRuntimeDomain}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{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x21b3eb){return void _0x21b3eb,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x225f7e,_0x2d02a5){const _0x2de17c=a119_0x3728,_0x2a0283=typeof _0x2d02a5[_0x2de17c(0x197)]===_0x2de17c(0x18f)&&_0x2d02a5[_0x2de17c(0x197)][_0x2de17c(0x17a)]();return{'rawFlags':_0x2d02a5,'appCode':_0x225f7e[_0x2de17c(0x19e)]||productEnv(_0x2de17c(0x1ac))||(_0x2a0283?undefined:readAppCodeFromConfig()),'appCodeSource':_0x225f7e[_0x2de17c(0x17b)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x2d02a5),'defaultFormat':_0x225f7e[_0x2de17c(0x186)],'defaultPageSize':_0x225f7e[_0x2de17c(0x1a2)],'defaultVerbose':_0x225f7e[_0x2de17c(0x18a)],'riskLevel':_0x225f7e['riskLevel'],'accessKey':_0x225f7e[_0x2de17c(0x1ad)],'env':_0x225f7e[_0x2de17c(0x1a1)],'mergedCli':{'defaultApp':_0x225f7e['defaultApp'],'currentApp':_0x225f7e[_0x2de17c(0x1b2)],'appCode':_0x225f7e['appCode']}};}export function createLovrabetRunnerAdapter(_0x82dbc7={}){const _0x43a1fc=a119_0x3728,_0xc85c42={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x43a1fc(0x18d)](_0x2faf89=>PIPELINE_FLAG_NAMES['has'](_0x2faf89[_0x43a1fc(0x17d)]))[_0x43a1fc(0x1b7)](({name:_0x59e056,type:_0x37778a,description:_0x4cfe25})=>({'name':_0x59e056,'type':_0x37778a,'description':_0x4cfe25})),'formatOutput':_0x82dbc7[_0x43a1fc(0x1bb)]??formatOutput,'getCommandLabel'(_0x1762d8){const _0x25903f=_0x43a1fc;return CLI_BIN_NAME+'\x20'+_0x1762d8['service']+'\x20'+_0x1762d8[_0x25903f(0x180)];},'riskPolicy':{'onViolation'(_0x16402c){console['error'](_0x16402c);},'createError'(_0x46ae9){const _0x1c20e9=_0x43a1fc;return CliErrors[_0x1c20e9(0x19d)](_0x46ae9);}},async 'prepare'(_0x426e57,_0x4c78b8){const _0x4a12a6=_0x43a1fc,_0x223b43=resolveAuthMode(_0x4c78b8);if(_0x426e57[_0x4a12a6(0x192)]!==![]){if(!_0x4c78b8[_0x4a12a6(0x1ad)])throw CliErrors[_0x4a12a6(0x1a7)](_0x4a12a6(0x1a6)+PRODUCT_CONFIG[_0x4a12a6(0x1a3)]+'\x20or\x20pass\x20'+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x2cd32e}=await import(_0x4a12a6(0x19a));_0x2cd32e(_0x4c78b8['accessKey']);}let _0x2f7bdd='';if(_0x426e57[_0x4a12a6(0x1b1)]!==![]){_0x2f7bdd=_0x4c78b8[_0x4a12a6(0x19e)]??'',_0x2f7bdd=await resolveExplicitAppName(_0x426e57,_0x4c78b8,_0x2f7bdd);if(!_0x2f7bdd){await assertSelectedAppNameIsRuntimeAccessible(_0x426e57,_0x4c78b8);throw CliErrors[_0x4a12a6(0x193)](_0x4a12a6(0x195)+PRODUCT_CONFIG[_0x4a12a6(0x1a3)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x426e57,_0x4c78b8,_0x2f7bdd);}if(_0x2f7bdd){const {initSdkClient:_0x3bd34a}=await import(_0x4a12a6(0x1ab));_0x3bd34a({'appCode':_0x2f7bdd,'env':_0x4c78b8[_0x4a12a6(0x1a1)]??_0x4a12a6(0x1a9),'runtimeDomain':_0x4c78b8[_0x4a12a6(0x1b6)],'accessKey':_0x4c78b8[_0x4a12a6(0x1ad)],'authMode':_0x223b43}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4c78b8[_0x4a12a6(0x191)]},'numbers':{'pagesize':_0x4c78b8['defaultPageSize']}},'extras':{'appCode':_0x2f7bdd,'cookie':'','apiDomain':_0x4c78b8['apiDomain'],'apiDir':'','accessKey':_0x4c78b8[_0x4a12a6(0x1ad)],'envName':_0x4c78b8['env'],'mergedCli':_0x4c78b8[_0x4a12a6(0x19b)]}};},'confirmHighRisk':_0x82dbc7[_0x43a1fc(0x1b8)]??(async({def:_0x5109f4,env:_0x2a589c,flags:_0x100095,commandLabel:_0x21cf57})=>{const _0x2a0518=_0x43a1fc;if(_0x2a589c[_0x2a0518(0x1a5)]){const _0x2deb27=reconstructCommandArgv(_0x5109f4,_0x100095);throw CliErrors[_0x2a0518(0x1b9)]('High-risk\x20operation\x20`'+_0x21cf57+_0x2a0518(0x18e)+(_0x2a0518(0x185)+_0x2deb27));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5109f4,_0x21cf57,_0x100095),'createCancelledError':_0x56484d=>CliErrors['cancelled'](_0x56484d)});}),'mapDryRunError'(_0xe5995b){return mapUserFacingExecuteError(_0xe5995b);},'mapExecuteError'(_0x58c323){return mapUserFacingExecuteError(_0x58c323);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0xc85c42;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x10048f=a119_0x3728;try{if(sdkClientInitialized){const {clearSdkClient:_0x401529}=await import(_0x10048f(0x1ab));_0x401529();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x3d2428}=await import(_0x10048f(0x19a));_0x3d2428();}}async function resolveExplicitAppName(_0x4f5032,_0xb51fe1,_0x3605a8){const _0x3f7669=a119_0x3728;if(_0x4f5032[_0x3f7669(0x1b1)]===![])return _0x3605a8;const _0x2ea9ce=typeof _0xb51fe1['rawFlags'][_0x3f7669(0x197)]===_0x3f7669(0x18f)?_0xb51fe1[_0x3f7669(0x1af)]['app'][_0x3f7669(0x17a)]():'';if(!_0x2ea9ce)return _0x3605a8;const _0x3865aa=typeof _0xb51fe1['rawFlags'][_0x3f7669(0x1ae)]===_0x3f7669(0x18f)&&_0xb51fe1[_0x3f7669(0x1af)][_0x3f7669(0x1ae)][_0x3f7669(0x17a)]()||productEnv(_0x3f7669(0x1ac));if(_0x3865aa||_0xb51fe1[_0x3f7669(0x17b)]==='local-alias')return _0x3605a8;const {getRemoteAppList:_0x31d2ab}=await import('../commands/app/remote-source.js'),_0x4b0fa7=await _0x31d2ab({'env':_0xb51fe1[_0x3f7669(0x1a1)]??_0x3f7669(0x1a9),'accessKey':_0xb51fe1[_0x3f7669(0x1ad)]}),_0x450983=findAppByName(_0x4b0fa7[_0x3f7669(0x196)],_0x2ea9ce);if(_0x450983&&!isRuntimeAccessibleApp(_0x450983))throw runtimeInaccessibleAppError(_0x450983,'\x22'+_0x2ea9ce+'\x22');const _0x471102=_0x450983?.[_0x3f7669(0x19e)]?.[_0x3f7669(0x17a)]();if(_0x471102)return _0x471102;throw CliErrors['validation'](_0x3f7669(0x198)+_0x2ea9ce,_0x3f7669(0x199)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2ea9ce+_0x3f7669(0x1bc)+PRODUCT_CONFIG[_0x3f7669(0x1a3)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x128cfe,_0x4682d5){const _0x2c0ca3=a119_0x3728;if(_0x128cfe['requiresAppCode']===![]||!_0x4682d5['accessKey'])return;const _0x4c796c=(typeof _0x4682d5['rawFlags'][_0x2c0ca3(0x197)]===_0x2c0ca3(0x18f)&&_0x4682d5[_0x2c0ca3(0x1af)][_0x2c0ca3(0x197)]['trim']()?_0x4682d5[_0x2c0ca3(0x1af)][_0x2c0ca3(0x197)]:_0x4682d5[_0x2c0ca3(0x19b)]?.['currentApp']??_0x4682d5['mergedCli']?.[_0x2c0ca3(0x18c)])?.[_0x2c0ca3(0x17a)]();if(!_0x4c796c)return;const {getRemoteAppList:_0x481f2e}=await import(_0x2c0ca3(0x1b5)),_0x2a0ad4=await _0x481f2e({'env':_0x4682d5[_0x2c0ca3(0x1a1)]??_0x2c0ca3(0x1a9),'accessKey':_0x4682d5[_0x2c0ca3(0x1ad)]}),_0x21d790=findAppByName(_0x2a0ad4[_0x2c0ca3(0x196)],_0x4c796c);if(_0x21d790&&!isRuntimeAccessibleApp(_0x21d790))throw runtimeInaccessibleAppError(_0x21d790,'\x22'+_0x4c796c+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x59b7b4,_0x4771b4,_0x48a3ca){const _0xce8022=a119_0x3728;if(_0x59b7b4[_0xce8022(0x1b1)]===![]||!_0x4771b4['accessKey'])return;const {getRemoteAppList:_0x356269}=await import('../commands/app/remote-source.js'),_0xfd727b=await _0x356269({'env':_0x4771b4[_0xce8022(0x1a1)]??_0xce8022(0x1a9),'accessKey':_0x4771b4[_0xce8022(0x1ad)]}),_0x4bb158=findAppByCode(_0xfd727b['items'],_0x48a3ca);if(_0x4bb158&&!isRuntimeAccessibleApp(_0x4bb158))throw runtimeInaccessibleAppError(_0x4bb158,_0xce8022(0x17c)+_0x48a3ca+'\x22');}export async function runCommand(_0x5cc21c,_0x36469d,_0x51a4d1=terminalRunnerAdapter){const _0x3ff59c=a119_0x3728;assertKnownCommandFlags(_0x5cc21c,_0x36469d[_0x3ff59c(0x1af)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x5cc21c)?withVersionPolicy(_0x5cc21c):_0x5cc21c,_0x36469d,_0x51a4d1);}function shouldApplyVersionPolicy(_0x476d9f){const _0x49d887=a119_0x3728;if([_0x49d887(0x189),_0x49d887(0x182),'doctor'][_0x49d887(0x17e)](_0x476d9f[_0x49d887(0x1a8)]))return![];return!(_0x476d9f[_0x49d887(0x1a8)]===_0x49d887(0x19c)&&_0x476d9f['command']==='install');}function withVersionPolicy(_0x26c5e9){return{..._0x26c5e9,async 'execute'(_0x45f14e){const _0x151a73=a119_0x3728,_0x41970f=await checkCliVersion();assertCliVersionSupported(_0x41970f);const _0x3dbbc8=shouldResolveUpdateNotice(_0x45f14e)?resolveLatestUpdateNotice(_0x41970f)[_0x151a73(0x190)](()=>null):Promise[_0x151a73(0x181)](null),_0x192af8=await _0x26c5e9[_0x151a73(0x194)](_0x45f14e);return attachUpdateNotice(_0x192af8,await _0x3dbbc8);}};}function shouldResolveUpdateNotice(_0x1c5de4){const _0x2f31af=a119_0x3728;return _0x1c5de4['format']==='pretty'&&!_0x1c5de4[_0x2f31af(0x187)];}function attachUpdateNotice(_0x13a8d1,_0x30e974){const _0x1a4302=a119_0x3728;if(!_0x30e974||!_0x13a8d1||typeof _0x13a8d1!==_0x1a4302(0x1b0))return _0x13a8d1;const _0x41ed9a=_0x13a8d1,_0x592522=typeof _0x41ed9a[_0x1a4302(0x1a0)]===_0x1a4302(0x1b0)&&_0x41ed9a[_0x1a4302(0x1a0)]!==null?_0x41ed9a[_0x1a4302(0x1a0)]:{};return{..._0x41ed9a,'_notice':{..._0x592522,'update':_0x30e974}};}
@@ -1 +1 @@
1
- (function(_0xe5243b,_0x512dce){const _0x1e5547=a120_0x2fcf,_0x2f7f5c=_0xe5243b();while(!![]){try{const _0x1c586a=-parseInt(_0x1e5547(0x16e))/0x1+parseInt(_0x1e5547(0x172))/0x2+parseInt(_0x1e5547(0x161))/0x3+parseInt(_0x1e5547(0x163))/0x4*(parseInt(_0x1e5547(0x171))/0x5)+parseInt(_0x1e5547(0x16c))/0x6*(-parseInt(_0x1e5547(0x167))/0x7)+parseInt(_0x1e5547(0x170))/0x8*(parseInt(_0x1e5547(0x16b))/0x9)+-parseInt(_0x1e5547(0x168))/0xa;if(_0x1c586a===_0x512dce)break;else _0x2f7f5c['push'](_0x2f7f5c['shift']());}catch(_0x188fb7){_0x2f7f5c['push'](_0x2f7f5c['shift']());}}}(a120_0x45cb,0x4a85e));import{buildSchemaPayload as a120_0xeb7d16}from'@lovrabet/cli-framework';function a120_0x2fcf(_0x4383b5,_0x5a6e38){_0x4383b5=_0x4383b5-0x160;const _0x45cbb9=a120_0x45cb();let _0x2fcf39=_0x45cbb9[_0x4383b5];return _0x2fcf39;}import{buildAllFlags}from'../framework/build-all-flags.js';function a120_0x45cb(){const _0x688d12=['12MaZLOh','none','202219CiSDqU','auth','5320hXPkdE','170HWvDUU','983816fidcli','../commands/registry.js','service','755193KenVqk','has','50992IDBbPC','commands','requiresAuth','filter','1960140oCuctu','3675860Dpmrll','map','services','3492FGgGtW'];a120_0x45cb=function(){return _0x688d12;};return a120_0x45cb();}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 _0x2e3360=a120_0x2fcf,{serviceRegistry:_0x3fccf6,findDefinition:_0x6a2833}=await import(_0x2e3360(0x173)),_0x272f8f=new Set(_0x3fccf6[_0x2e3360(0x169)](_0x14bc37=>_0x14bc37[_0x2e3360(0x160)])),_0x5d3124=listDynamicServiceEntries()[_0x2e3360(0x166)](_0x45b274=>!_0x272f8f[_0x2e3360(0x162)](_0x45b274[_0x2e3360(0x160)])),_0x2f193a=a120_0xeb7d16({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3fccf6,_0x5d3124),'buildAllFlags':buildAllFlags,'findDefinition':(_0x22accf,_0x32890f)=>_0x6a2833(_0x22accf,_0x32890f)??findDynamicServiceDefinition(_0x22accf,_0x32890f)});return normalizeSchemaPayload(_0x2f193a);}function normalizeSchemaPayload(_0x31eeb0){const _0x23d476=a120_0x2fcf;return{..._0x31eeb0,'schemaVersion':0x2,'services':_0x31eeb0[_0x23d476(0x16a)][_0x23d476(0x169)](_0x533af9=>({..._0x533af9,'commands':_0x533af9[_0x23d476(0x164)][_0x23d476(0x169)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x4bf171){const _0x2c9541=a120_0x2fcf,_0x3cb20b=_0x4bf171;return{..._0x4bf171,'auth':_0x3cb20b[_0x2c9541(0x16f)]??(_0x4bf171[_0x2c9541(0x165)]?'required':_0x2c9541(0x16d))};}
1
+ (function(_0x5e5dca,_0x1b06e4){const _0x4567d2=a120_0x4ff3,_0x5be843=_0x5e5dca();while(!![]){try{const _0x4bbabb=-parseInt(_0x4567d2(0x118))/0x1+parseInt(_0x4567d2(0x119))/0x2+parseInt(_0x4567d2(0x114))/0x3*(-parseInt(_0x4567d2(0x11c))/0x4)+parseInt(_0x4567d2(0x120))/0x5+parseInt(_0x4567d2(0x121))/0x6+-parseInt(_0x4567d2(0x11b))/0x7*(-parseInt(_0x4567d2(0x115))/0x8)+-parseInt(_0x4567d2(0x122))/0x9;if(_0x4bbabb===_0x1b06e4)break;else _0x5be843['push'](_0x5be843['shift']());}catch(_0x57d30f){_0x5be843['push'](_0x5be843['shift']());}}}(a120_0x16a3,0xb1bb5));import{buildSchemaPayload as a120_0x226869}from'@lovrabet/cli-framework';function a120_0x4ff3(_0x11e8d3,_0xa0cf8a){_0x11e8d3=_0x11e8d3-0x112;const _0x16a3b4=a120_0x16a3();let _0x4ff375=_0x16a3b4[_0x11e8d3];return _0x4ff375;}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 _0x416390=a120_0x4ff3,{serviceRegistry:_0x18f746,findDefinition:_0x2804a3}=await import(_0x416390(0x123)),_0x112e51=new Set(_0x18f746[_0x416390(0x11e)](_0xcc339=>_0xcc339[_0x416390(0x112)])),_0x5a5b8c=listDynamicServiceEntries()[_0x416390(0x11f)](_0x230f83=>!_0x112e51['has'](_0x230f83[_0x416390(0x112)])),_0x171887=a120_0x226869({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x18f746,_0x5a5b8c),'buildAllFlags':buildAllFlags,'findDefinition':(_0x5a0d2a,_0x1ef5c2)=>_0x2804a3(_0x5a0d2a,_0x1ef5c2)??findDynamicServiceDefinition(_0x5a0d2a,_0x1ef5c2)});return normalizeSchemaPayload(_0x171887);}function normalizeSchemaPayload(_0x1f73c2){const _0x3ae502=a120_0x4ff3;return{..._0x1f73c2,'schemaVersion':0x2,'services':_0x1f73c2[_0x3ae502(0x11d)]['map'](_0x26a6e3=>({..._0x26a6e3,'commands':_0x26a6e3[_0x3ae502(0x113)][_0x3ae502(0x11e)](normalizeSchemaCommand)}))};}function a120_0x16a3(){const _0x16ff0b=['filter','3324135vYBISe','2220948pCBJWo','8211051iWpHXx','../commands/registry.js','service','commands','6bpycRA','888032tyWONB','auth','requiresAuth','660660vcsmtl','1796434jdzIQX','none','49uKLnIV','818484QHfKTn','services','map'];a120_0x16a3=function(){return _0x16ff0b;};return a120_0x16a3();}function normalizeSchemaCommand(_0x365144){const _0x59b825=a120_0x4ff3,_0x32ff97=_0x365144;return{..._0x365144,'auth':_0x32ff97[_0x59b825(0x116)]??(_0x365144[_0x59b825(0x117)]?'required':_0x59b825(0x11a))};}
@@ -1 +1 @@
1
- function a121_0x1d57(_0x3a4c71,_0x548c48){_0x3a4c71=_0x3a4c71-0x19f;const _0x333e32=a121_0x333e();let _0x1d57f2=_0x333e32[_0x3a4c71];return _0x1d57f2;}(function(_0x55a03d,_0x205a6f){const _0x489fe1=a121_0x1d57,_0x5ea265=_0x55a03d();while(!![]){try{const _0x5f55b0=-parseInt(_0x489fe1(0x1a7))/0x1*(-parseInt(_0x489fe1(0x1ac))/0x2)+parseInt(_0x489fe1(0x1a0))/0x3*(-parseInt(_0x489fe1(0x1a8))/0x4)+-parseInt(_0x489fe1(0x1a3))/0x5+-parseInt(_0x489fe1(0x1a1))/0x6+parseInt(_0x489fe1(0x1a5))/0x7+parseInt(_0x489fe1(0x1a9))/0x8*(-parseInt(_0x489fe1(0x1a4))/0x9)+parseInt(_0x489fe1(0x1ab))/0xa*(parseInt(_0x489fe1(0x1a6))/0xb);if(_0x5f55b0===_0x205a6f)break;else _0x5ea265['push'](_0x5ea265['shift']());}catch(_0x4d6323){_0x5ea265['push'](_0x5ea265['shift']());}}}(a121_0x333e,0x1f1ad));export function insertDynamicServicesAfterServiceTree(_0x2df28e,_0x40bbb6){const _0x4713cb=a121_0x1d57;if(_0x40bbb6['length']===0x0)return[..._0x2df28e];const _0x363573=_0x2df28e[_0x4713cb(0x19f)](_0x8a16a2=>_0x8a16a2[_0x4713cb(0x1aa)]==='service');if(_0x363573<0x0)return[..._0x2df28e,..._0x40bbb6];return[..._0x2df28e[_0x4713cb(0x1a2)](0x0,_0x363573+0x1),..._0x40bbb6,..._0x2df28e[_0x4713cb(0x1a2)](_0x363573+0x1)];}function a121_0x333e(){const _0x14aa10=['359205LaxihR','185QPqVdi','4uJQCcn','872bwVgDz','service','210CtzlpH','286GAwmnv','findIndex','735963QnSXeX','814404PvQxst','slice','1226625gwCGKg','11853zvVEfJ','1295896DCKCJV'];a121_0x333e=function(){return _0x14aa10;};return a121_0x333e();}
1
+ function a121_0x3957(_0x4c1a0b,_0x9ceac5){_0x4c1a0b=_0x4c1a0b-0x82;const _0x276212=a121_0x2762();let _0x395706=_0x276212[_0x4c1a0b];return _0x395706;}(function(_0x2a4abc,_0x263ca4){const _0x352cc2=a121_0x3957,_0x4888fb=_0x2a4abc();while(!![]){try{const _0x121d3a=-parseInt(_0x352cc2(0x8c))/0x1+-parseInt(_0x352cc2(0x8d))/0x2*(-parseInt(_0x352cc2(0x86))/0x3)+parseInt(_0x352cc2(0x8b))/0x4*(parseInt(_0x352cc2(0x85))/0x5)+parseInt(_0x352cc2(0x88))/0x6+-parseInt(_0x352cc2(0x83))/0x7+-parseInt(_0x352cc2(0x89))/0x8+parseInt(_0x352cc2(0x8a))/0x9;if(_0x121d3a===_0x263ca4)break;else _0x4888fb['push'](_0x4888fb['shift']());}catch(_0x4fe845){_0x4888fb['push'](_0x4888fb['shift']());}}}(a121_0x2762,0xc1511));function a121_0x2762(){const _0x1df5d7=['6166446tOcZMm','569432UinKHH','1935414ykiWTc','556SpFHvI','1321393XuWELW','794wDaKoJ','findIndex','length','4907308MJgpUj','slice','22530ceeFYL','7680xnwUJV','service'];a121_0x2762=function(){return _0x1df5d7;};return a121_0x2762();}export function insertDynamicServicesAfterServiceTree(_0x4fd2e4,_0x52ef98){const _0x16d840=a121_0x3957;if(_0x52ef98[_0x16d840(0x82)]===0x0)return[..._0x4fd2e4];const _0x12979a=_0x4fd2e4[_0x16d840(0x8e)](_0x341f7b=>_0x341f7b[_0x16d840(0x87)]===_0x16d840(0x87));if(_0x12979a<0x0)return[..._0x4fd2e4,..._0x52ef98];return[..._0x4fd2e4[_0x16d840(0x84)](0x0,_0x12979a+0x1),..._0x52ef98,..._0x4fd2e4['slice'](_0x12979a+0x1)];}
@@ -1 +1 @@
1
- function a122_0x18ff(_0x57d76c,_0x1a5c63){_0x57d76c=_0x57d76c-0x110;var _0x51ab66=a122_0x51ab();var _0x18ff97=_0x51ab66[_0x57d76c];return _0x18ff97;}function a122_0x51ab(){var _0x5e6255=['117lEYETF','439789yegqYS','44ideSJb','66PQoATr','2105040IoTGGv','50496UXjHnZ','23132qhrToW','464267LlKFwW','958248beagxI','330nJnLiR','2828750GoznoL'];a122_0x51ab=function(){return _0x5e6255;};return a122_0x51ab();}(function(_0x241112,_0x232b58){var _0x1eafa0=a122_0x18ff,_0x4701cb=_0x241112();while(!![]){try{var _0x46bd04=parseInt(_0x1eafa0(0x118))/0x1+parseInt(_0x1eafa0(0x117))/0x2*(parseInt(_0x1eafa0(0x11a))/0x3)+parseInt(_0x1eafa0(0x119))/0x4+parseInt(_0x1eafa0(0x115))/0x5+-parseInt(_0x1eafa0(0x114))/0x6*(parseInt(_0x1eafa0(0x112))/0x7)+parseInt(_0x1eafa0(0x116))/0x8*(parseInt(_0x1eafa0(0x111))/0x9)+-parseInt(_0x1eafa0(0x110))/0xa*(parseInt(_0x1eafa0(0x113))/0xb);if(_0x46bd04===_0x232b58)break;else _0x4701cb['push'](_0x4701cb['shift']());}catch(_0x1df475){_0x4701cb['push'](_0x4701cb['shift']());}}}(a122_0x51ab,0xa04ac));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a122_0x38da(_0xf6b917,_0x4af694){_0xf6b917=_0xf6b917-0x19b;var _0x5dea98=a122_0x5dea();var _0x38da39=_0x5dea98[_0xf6b917];return _0x38da39;}(function(_0x352873,_0x18048d){var _0xfaeb1d=a122_0x38da,_0x564065=_0x352873();while(!![]){try{var _0x489ada=-parseInt(_0xfaeb1d(0x1a2))/0x1+parseInt(_0xfaeb1d(0x1a0))/0x2+-parseInt(_0xfaeb1d(0x19d))/0x3+-parseInt(_0xfaeb1d(0x19f))/0x4+-parseInt(_0xfaeb1d(0x19e))/0x5*(-parseInt(_0xfaeb1d(0x19b))/0x6)+-parseInt(_0xfaeb1d(0x1a1))/0x7*(parseInt(_0xfaeb1d(0x1a3))/0x8)+parseInt(_0xfaeb1d(0x19c))/0x9;if(_0x489ada===_0x18048d)break;else _0x564065['push'](_0x564065['shift']());}catch(_0x2382cf){_0x564065['push'](_0x564065['shift']());}}}(a122_0x5dea,0x8a9c2));function a122_0x5dea(){var _0x3f9435=['5219250yIQdjd','4476132qftSPc','179966aUSDhJ','7YBdVLO','525303gBLniB','4121816hTmhHX','6znYhmf','20879910DPyAXm','2179542SDoTfR'];a122_0x5dea=function(){return _0x3f9435;};return a122_0x5dea();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.3.0-beta.2";
2
- export declare const GIT_TAG = "v2.3.0-beta.2";
3
- export declare const GIT_COMMIT = "30569ee";
4
- export declare const BUILD_TIME = "2026-08-21T15:33:26.323Z";
1
+ export declare const VERSION = "2.3.0-beta.3";
2
+ export declare const GIT_TAG = "v2.3.0-beta.3";
3
+ export declare const GIT_COMMIT = "827a328";
4
+ export declare const BUILD_TIME = "2026-08-22T09:30:26.952Z";
@@ -1 +1 @@
1
- const a123_0x2fd951=a123_0x4551;(function(_0x367f13,_0x292967){const _0x3e4828=a123_0x4551,_0x54cf34=_0x367f13();while(!![]){try{const _0x432a1d=parseInt(_0x3e4828(0x186))/0x1+parseInt(_0x3e4828(0x184))/0x2+-parseInt(_0x3e4828(0x187))/0x3*(parseInt(_0x3e4828(0x185))/0x4)+parseInt(_0x3e4828(0x189))/0x5+-parseInt(_0x3e4828(0x18a))/0x6+parseInt(_0x3e4828(0x182))/0x7+-parseInt(_0x3e4828(0x181))/0x8;if(_0x432a1d===_0x292967)break;else _0x54cf34['push'](_0x54cf34['shift']());}catch(_0xe90bdd){_0x54cf34['push'](_0x54cf34['shift']());}}}(a123_0x4db0,0x2b928));export const VERSION=a123_0x2fd951(0x188);export const GIT_TAG=a123_0x2fd951(0x17f);function a123_0x4db0(){const _0x1bce85=['641538vthPuS','v2.3.0-beta.2','30569ee','1458440TeEyKY','1387456PHBJaE','2026-08-21T15:33:26.323Z','217578lYJGAm','30980aKUCbc','151720oVQddj','69KrEteM','2.3.0-beta.2','935590chJFpR'];a123_0x4db0=function(){return _0x1bce85;};return a123_0x4db0();}export const GIT_COMMIT=a123_0x2fd951(0x180);function a123_0x4551(_0x3608be,_0x530d3f){_0x3608be=_0x3608be-0x17f;const _0x4db08f=a123_0x4db0();let _0x4551f4=_0x4db08f[_0x3608be];return _0x4551f4;}export const BUILD_TIME=a123_0x2fd951(0x183);
1
+ const a123_0x3ea581=a123_0x13e0;function a123_0x13e0(_0x8afe28,_0x1e02c5){_0x8afe28=_0x8afe28-0xd9;const _0x40344a=a123_0x4034();let _0x13e0d4=_0x40344a[_0x8afe28];return _0x13e0d4;}(function(_0xf88b0a,_0x213740){const _0x440bb9=a123_0x13e0,_0x4366b7=_0xf88b0a();while(!![]){try{const _0x500988=-parseInt(_0x440bb9(0xe2))/0x1+parseInt(_0x440bb9(0xde))/0x2*(parseInt(_0x440bb9(0xe1))/0x3)+parseInt(_0x440bb9(0xdc))/0x4+-parseInt(_0x440bb9(0xd9))/0x5*(parseInt(_0x440bb9(0xdd))/0x6)+parseInt(_0x440bb9(0xda))/0x7*(parseInt(_0x440bb9(0xe0))/0x8)+parseInt(_0x440bb9(0xe3))/0x9*(-parseInt(_0x440bb9(0xdb))/0xa)+-parseInt(_0x440bb9(0xdf))/0xb;if(_0x500988===_0x213740)break;else _0x4366b7['push'](_0x4366b7['shift']());}catch(_0x4b482d){_0x4366b7['push'](_0x4366b7['shift']());}}}(a123_0x4034,0x21936));function a123_0x4034(){const _0x547ab9=['8JXxpYv','3BktWwM','1568eUwKIG','1206FbqtUl','2026-08-22T09:30:26.952Z','3095OWvzWu','651693nrzPhX','10BKASBo','677300IYoIMn','426gYFJzy','335016zQeJhS','2714305RsTHHp'];a123_0x4034=function(){return _0x547ab9;};return a123_0x4034();}export const VERSION='2.3.0-beta.3';export const GIT_TAG='v2.3.0-beta.3';export const GIT_COMMIT='827a328';export const BUILD_TIME=a123_0x3ea581(0xe4);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x32211b,_0x3313a8){const _0x4ecaef=a124_0x2f42,_0x2dac7e=_0x32211b();while(!![]){try{const _0x4992d0=parseInt(_0x4ecaef(0x1bd))/0x1*(-parseInt(_0x4ecaef(0x1ba))/0x2)+parseInt(_0x4ecaef(0x1b3))/0x3*(-parseInt(_0x4ecaef(0x1bf))/0x4)+parseInt(_0x4ecaef(0x1bc))/0x5+-parseInt(_0x4ecaef(0x1b5))/0x6*(parseInt(_0x4ecaef(0x1b0))/0x7)+parseInt(_0x4ecaef(0x1b6))/0x8*(parseInt(_0x4ecaef(0x1be))/0x9)+parseInt(_0x4ecaef(0x1b4))/0xa+parseInt(_0x4ecaef(0x1b8))/0xb;if(_0x4992d0===_0x3313a8)break;else _0x2dac7e['push'](_0x2dac7e['shift']());}catch(_0xebdd5e){_0x2dac7e['push'](_0x2dac7e['shift']());}}}(a124_0x1929,0xb2925));function a124_0x1929(){const _0x47b8e1=['81CUDTiF','415876ThvvgB','1043gtSNBE','\x20\x20Use\x20','column','33SRInws','12414700OtqCDI','58470QnePDD','189248hZSAxf','\x20--help','20655437vbdfEX','\x20to\x20view\x20available\x20commands.','1201102SlyIIc','green','5980270lTeCzn','2QxlFew'];a124_0x1929=function(){return _0x47b8e1;};return a124_0x1929();}import{jsx as a124_0x3d7491,jsxs as a124_0x13fd09}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a124_0x2f42(_0x3eb375,_0x5c5eb7){_0x3eb375=_0x3eb375-0x1b0;const _0x1929df=a124_0x1929();let _0x2f4290=_0x1929df[_0x3eb375];return _0x2f4290;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x4e47df=a124_0x2f42,{exit:_0x27b93a}=useApp();return useEffect(()=>{_0x27b93a();},[_0x27b93a]),a124_0x13fd09(Box,{'flexDirection':_0x4e47df(0x1b2),'marginTop':0x1,'marginBottom':0x1,'children':[a124_0x3d7491(Box,{'children':a124_0x3d7491(Text,{'bold':!![],'color':_0x4e47df(0x1bb),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a124_0x13fd09(Box,{'marginTop':0x1,'children':[a124_0x3d7491(Text,{'dimColor':!![],'children':_0x4e47df(0x1b1)}),a124_0x3d7491(Text,{'bold':!![],'color':_0x4e47df(0x1bb),'children':CLI_BIN_NAME+_0x4e47df(0x1b7)}),a124_0x3d7491(Text,{'dimColor':!![],'children':_0x4e47df(0x1b9)})]})]});}
1
+ (function(_0x3ed957,_0x1890b1){const _0x220930=a124_0x3a46,_0x22e113=_0x3ed957();while(!![]){try{const _0x13e838=-parseInt(_0x220930(0xea))/0x1+parseInt(_0x220930(0xec))/0x2*(parseInt(_0x220930(0xf5))/0x3)+-parseInt(_0x220930(0xe7))/0x4*(parseInt(_0x220930(0xf0))/0x5)+-parseInt(_0x220930(0xed))/0x6+-parseInt(_0x220930(0xeb))/0x7+-parseInt(_0x220930(0xef))/0x8*(parseInt(_0x220930(0xe9))/0x9)+-parseInt(_0x220930(0xf6))/0xa*(-parseInt(_0x220930(0xee))/0xb);if(_0x13e838===_0x1890b1)break;else _0x22e113['push'](_0x22e113['shift']());}catch(_0x105fdb){_0x22e113['push'](_0x22e113['shift']());}}}(a124_0x7c50,0xdf9bc));import{jsx as a124_0x47378e,jsxs as a124_0x3da970}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a124_0x3a46(_0x54727f,_0x312b07){_0x54727f=_0x54727f-0xe7;const _0x7c5014=a124_0x7c50();let _0x3a4637=_0x7c5014[_0x54727f];return _0x3a4637;}export function Help(){const _0x1a752f=a124_0x3a46,{exit:_0x53defa}=useApp();return useEffect(()=>{_0x53defa();},[_0x53defa]),a124_0x3da970(Box,{'flexDirection':_0x1a752f(0xf2),'marginTop':0x1,'marginBottom':0x1,'children':[a124_0x47378e(Box,{'children':a124_0x47378e(Text,{'bold':!![],'color':_0x1a752f(0xe8),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a124_0x3da970(Box,{'marginTop':0x1,'children':[a124_0x47378e(Text,{'dimColor':!![],'children':_0x1a752f(0xf4)}),a124_0x47378e(Text,{'bold':!![],'color':_0x1a752f(0xe8),'children':CLI_BIN_NAME+_0x1a752f(0xf1)}),a124_0x47378e(Text,{'dimColor':!![],'children':_0x1a752f(0xf3)})]})]});}function a124_0x7c50(){const _0x40b08e=['\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','2503482RGacMc','430DwCbTH','113116rVVfCg','green','36NhVkyL','974297DqCdCL','7277298SbDTiX','4wXAuSh','9971922daocqG','1220692VBPQzQ','870072sOzSkj','250CRuGOh','\x20--help','column'];a124_0x7c50=function(){return _0x40b08e;};return a124_0x7c50();}
@@ -1 +1 @@
1
- function a125_0x1277(){const _0x36296a=['SOURCE_INVALID','202334QrHSGx','Installation\x20failed','31105VWpeay','changed','[BUILTIN_SKILL_INSTALL_','10244385SZBDNN','807FRJGHR','5870300QDpjnC','skillVersion','1014RTOURw','Lovrabet\x20Built-in\x20Skill\x20','log','installedPath','warn','code','10820929jwyajm','7918848HDgINl','862rcIxTE','installed'];a125_0x1277=function(){return _0x36296a;};return a125_0x1277();}function a125_0x3c4a(_0xd9fd,_0x3d3183){_0xd9fd=_0xd9fd-0x109;const _0x127721=a125_0x1277();let _0x3c4ae9=_0x127721[_0xd9fd];return _0x3c4ae9;}(function(_0x4b633e,_0x5860dd){const _0x5ec78a=a125_0x3c4a,_0x84c239=_0x4b633e();while(!![]){try{const _0x53b607=-parseInt(_0x5ec78a(0x114))/0x1+-parseInt(_0x5ec78a(0x111))/0x2*(parseInt(_0x5ec78a(0x11a))/0x3)+-parseInt(_0x5ec78a(0x11b))/0x4+parseInt(_0x5ec78a(0x116))/0x5*(-parseInt(_0x5ec78a(0x109))/0x6)+parseInt(_0x5ec78a(0x10f))/0x7+parseInt(_0x5ec78a(0x110))/0x8+parseInt(_0x5ec78a(0x119))/0x9;if(_0x53b607===_0x5860dd)break;else _0x84c239['push'](_0x84c239['shift']());}catch(_0x47c521){_0x84c239['push'](_0x84c239['shift']());}}}(a125_0x1277,0xcc4a3));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x1dafb8={}){const _0xf7a60f=a125_0x3c4a,_0x15626c=installBuiltinSkill(_0x1dafb8);if(_0x15626c['ok']){const _0x131e11=_0x15626c[_0xf7a60f(0x117)]?_0xf7a60f(0x112):'already\x20current',_0x1221f2=_0x15626c[_0xf7a60f(0x10c)]?'\x20at\x20'+_0x15626c[_0xf7a60f(0x10c)]:'\x20via\x20skills@latest';return console[_0xf7a60f(0x10b)](_0xf7a60f(0x10a)+_0x15626c[_0xf7a60f(0x11c)]+'\x20'+_0x131e11+_0x1221f2),_0x15626c;}const _0x41724d=_0xf7a60f(0x118)+(_0x15626c['code']??'FAILED')+']\x20'+(_0x15626c['error']??_0xf7a60f(0x115))+'.\x20'+('Repair\x20with:\x20'+_0x15626c['repairCommand']);if(_0x15626c[_0xf7a60f(0x10e)]===_0xf7a60f(0x113))throw new Error(_0x41724d);return console[_0xf7a60f(0x10d)](_0x41724d),_0x15626c;}
1
+ (function(_0x298533,_0x457e1e){const _0x16ba2f=a125_0x2471,_0x555934=_0x298533();while(!![]){try{const _0x209d7e=-parseInt(_0x16ba2f(0x12a))/0x1*(parseInt(_0x16ba2f(0x11f))/0x2)+parseInt(_0x16ba2f(0x136))/0x3*(-parseInt(_0x16ba2f(0x133))/0x4)+parseInt(_0x16ba2f(0x11a))/0x5*(parseInt(_0x16ba2f(0x132))/0x6)+parseInt(_0x16ba2f(0x11d))/0x7+-parseInt(_0x16ba2f(0x120))/0x8+parseInt(_0x16ba2f(0x127))/0x9+-parseInt(_0x16ba2f(0x12c))/0xa*(-parseInt(_0x16ba2f(0x129))/0xb);if(_0x209d7e===_0x457e1e)break;else _0x555934['push'](_0x555934['shift']());}catch(_0x1bb104){_0x555934['push'](_0x555934['shift']());}}}(a125_0x3d3b,0x95b33));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a125_0x2471(_0x1778c1,_0x230b41){_0x1778c1=_0x1778c1-0x11a;const _0x3d3b54=a125_0x3d3b();let _0x2471e0=_0x3d3b54[_0x1778c1];return _0x2471e0;}export async function runPostinstall(_0xc0aa53={}){const _0x365ba6=a125_0x2471,_0x55eec1=installBuiltinSkill(_0xc0aa53);if(_0x55eec1['ok']){const _0x126101=_0x55eec1[_0x365ba6(0x121)]?_0x365ba6(0x130):_0x365ba6(0x134),_0x53e820=_0x55eec1[_0x365ba6(0x12f)]?_0x365ba6(0x12e)+_0x55eec1[_0x365ba6(0x12f)]:_0x365ba6(0x131);return console[_0x365ba6(0x11c)](_0x365ba6(0x12b)+_0x55eec1[_0x365ba6(0x123)]+'\x20'+_0x126101+_0x53e820),_0x55eec1;}const _0x2476c9=_0x365ba6(0x12d)+(_0x55eec1[_0x365ba6(0x11b)]??_0x365ba6(0x135))+']\x20'+(_0x55eec1[_0x365ba6(0x11e)]??_0x365ba6(0x125))+'.\x20'+(_0x365ba6(0x128)+_0x55eec1[_0x365ba6(0x124)]);if(_0x55eec1[_0x365ba6(0x11b)]===_0x365ba6(0x122))throw new Error(_0x2476c9);return console[_0x365ba6(0x126)](_0x2476c9),_0x55eec1;}function a125_0x3d3b(){const _0x1d0354=['640737FrlCGx','5eKVDkc','code','log','2892141xdYlxU','error','12pDsjBd','2155168LiZxVr','changed','SOURCE_INVALID','skillVersion','repairCommand','Installation\x20failed','warn','5712894tMhzdu','Repair\x20with:\x20','5269elWzXK','192187JAMQft','Lovrabet\x20Built-in\x20Skill\x20','2740MIRqpn','[BUILTIN_SKILL_INSTALL_','\x20at\x20','installedPath','installed','\x20via\x20skills@latest','6420558OGvjeK','4gBxfUX','already\x20current','FAILED'];a125_0x3d3b=function(){return _0x1d0354;};return a125_0x3d3b();}
@@ -1 +1 @@
1
- function a126_0x15a1(){const _0x1308b5=['1002712VVSMhM','743238mBzlEi','5sLWCYo','string','description','846132TvOsIm','Run\x20this\x20write\x20operation','2276992dpmvFY','risk','replace','10658747VFllMJ','483266eilerM','3291480pEwKOP','10PuwaPO','1Ncrirf','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','high-risk-write','slice','80QCwmcH'];a126_0x15a1=function(){return _0x1308b5;};return a126_0x15a1();}(function(_0x260b64,_0x573fb5){const _0x5555d2=a126_0x1195,_0x37998a=_0x260b64();while(!![]){try{const _0x1b4bb8=parseInt(_0x5555d2(0x1c9))/0x1*(-parseInt(_0x5555d2(0x1bb))/0x2)+parseInt(_0x5555d2(0x1c0))/0x3+-parseInt(_0x5555d2(0x1c2))/0x4*(-parseInt(_0x5555d2(0x1bd))/0x5)+parseInt(_0x5555d2(0x1bc))/0x6+-parseInt(_0x5555d2(0x1c6))/0x7*(parseInt(_0x5555d2(0x1ba))/0x8)+-parseInt(_0x5555d2(0x1c7))/0x9+-parseInt(_0x5555d2(0x1c8))/0xa*(-parseInt(_0x5555d2(0x1c5))/0xb);if(_0x1b4bb8===_0x573fb5)break;else _0x37998a['push'](_0x37998a['shift']());}catch(_0x503019){_0x37998a['push'](_0x37998a['shift']());}}}(a126_0x15a1,0x5e67e));const DESCRIPTION_MAX_LENGTH=0x1f4;function a126_0x1195(_0x57ca78,_0x19c89e){_0x57ca78=_0x57ca78-0x1b7;const _0x15a1a5=a126_0x15a1();let _0x11956e=_0x15a1a5[_0x57ca78];return _0x11956e;}export function buildLovrabetConfirmationRequest(_0x528eb2,_0x1c4a66,_0x9d0404){const _0x108659=a126_0x1195,_0x544ace=normalizeText(_0x528eb2['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x115972=normalizeText(_0x528eb2[_0x108659(0x1bf)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x1c4a66,'risk':requireWriteRisk(_0x528eb2),'description':_0x544ace||_0x115972||_0x108659(0x1c1),..._0x9d0404?{'signal':_0x9d0404}:{}};}function requireWriteRisk(_0x4d1271){const _0x5d0ae2=a126_0x1195;if(_0x4d1271[_0x5d0ae2(0x1c3)]==='write'||_0x4d1271[_0x5d0ae2(0x1c3)]===_0x5d0ae2(0x1b8))return _0x4d1271['risk'];throw new Error(_0x5d0ae2(0x1b7));}function normalizeText(_0x238e0d,_0x3b2953){const _0x5211d1=a126_0x1195;if(typeof _0x238e0d!==_0x5211d1(0x1be))return'';return _0x238e0d[_0x5211d1(0x1c4)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5211d1(0x1c4)](/\s+/g,'\x20')['trim']()[_0x5211d1(0x1b9)](0x0,_0x3b2953);}
1
+ function a126_0x2947(_0x1e35c7,_0x2eac32){_0x1e35c7=_0x1e35c7-0x15b;const _0xf7d2b6=a126_0xf7d2();let _0x294701=_0xf7d2b6[_0x1e35c7];return _0x294701;}(function(_0x42a63e,_0x5c3fbf){const _0x70f8cd=a126_0x2947,_0x1ad5cc=_0x42a63e();while(!![]){try{const _0xa4c436=-parseInt(_0x70f8cd(0x15b))/0x1*(parseInt(_0x70f8cd(0x15f))/0x2)+parseInt(_0x70f8cd(0x165))/0x3*(-parseInt(_0x70f8cd(0x16c))/0x4)+-parseInt(_0x70f8cd(0x166))/0x5+parseInt(_0x70f8cd(0x15d))/0x6+-parseInt(_0x70f8cd(0x16b))/0x7*(-parseInt(_0x70f8cd(0x168))/0x8)+parseInt(_0x70f8cd(0x163))/0x9*(parseInt(_0x70f8cd(0x167))/0xa)+-parseInt(_0x70f8cd(0x15e))/0xb;if(_0xa4c436===_0x5c3fbf)break;else _0x1ad5cc['push'](_0x1ad5cc['shift']());}catch(_0x2d2a4d){_0x1ad5cc['push'](_0x1ad5cc['shift']());}}}(a126_0xf7d2,0x67485));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x55f0d3,_0x6df553,_0xd0535f){const _0x541483=a126_0x2947,_0x580fb3=normalizeText(_0x55f0d3[_0x541483(0x16a)],DESCRIPTION_MAX_LENGTH),_0x429beb=normalizeText(_0x55f0d3[_0x541483(0x162)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x6df553,'risk':requireWriteRisk(_0x55f0d3),'description':_0x580fb3||_0x429beb||'Run\x20this\x20write\x20operation',..._0xd0535f?{'signal':_0xd0535f}:{}};}function requireWriteRisk(_0x3f1647){const _0x340d03=a126_0x2947;if(_0x3f1647[_0x340d03(0x164)]===_0x340d03(0x161)||_0x3f1647['risk']===_0x340d03(0x169))return _0x3f1647[_0x340d03(0x164)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function a126_0xf7d2(){const _0x52abd3=['risk','5079uPaCwk','2403605mjRvVK','2290550fbjUal','1448008RXtZmu','high-risk-write','confirmationDescription','28dBcQeu','736ptEogh','replace','trim','1kNblao','string','2296974lYaRIR','5220677MWRoag','208226XeABEO','slice','write','description','27NJSqRl'];a126_0xf7d2=function(){return _0x52abd3;};return a126_0xf7d2();}function normalizeText(_0x3209d9,_0x55e72d){const _0x2c3062=a126_0x2947;if(typeof _0x3209d9!==_0x2c3062(0x15c))return'';return _0x3209d9[_0x2c3062(0x16d)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2c3062(0x16d)](/\s+/g,'\x20')[_0x2c3062(0x16e)]()[_0x2c3062(0x160)](0x0,_0x55e72d);}
@@ -1 +1 @@
1
- function a127_0x1e05(_0x2df21b,_0xaad87c){_0x2df21b=_0x2df21b-0x142;const _0x36445e=a127_0x3644();let _0x1e0574=_0x36445e[_0x2df21b];return _0x1e0574;}(function(_0x3691af,_0x2b1b2d){const _0x94cf6e=a127_0x1e05,_0x3a4874=_0x3691af();while(!![]){try{const _0x469421=parseInt(_0x94cf6e(0x154))/0x1*(-parseInt(_0x94cf6e(0x148))/0x2)+parseInt(_0x94cf6e(0x144))/0x3*(-parseInt(_0x94cf6e(0x14d))/0x4)+parseInt(_0x94cf6e(0x14e))/0x5+-parseInt(_0x94cf6e(0x142))/0x6+parseInt(_0x94cf6e(0x14c))/0x7+-parseInt(_0x94cf6e(0x149))/0x8*(-parseInt(_0x94cf6e(0x14f))/0x9)+-parseInt(_0x94cf6e(0x146))/0xa*(-parseInt(_0x94cf6e(0x150))/0xb);if(_0x469421===_0x2b1b2d)break;else _0x3a4874['push'](_0x3a4874['shift']());}catch(_0x115486){_0x3a4874['push'](_0x3a4874['shift']());}}}(a127_0x3644,0x92933));export function canonicalLovrabetOperation(_0x344237){const _0x13bbce=a127_0x1e05;return[_0x344237[_0x13bbce(0x147)],..._0x344237[_0x13bbce(0x14b)][_0x13bbce(0x151)]()['split'](/\s+/)][_0x13bbce(0x153)](Boolean)[_0x13bbce(0x145)]('.');}function a127_0x3644(){const _0x21eb07=['746112ZIlyZB','join','10MZLoFF','service','1876RquQfR','102248NIBmgO','high-risk-write','command','3471685JgOSDB','4KNvNIr','3077840KKsXgW','315qzwAyN','7714498VjgNRM','trim','writeEventSubject','filter','267VmAvRa','lovrabet.write.completed','risk','6963930CRniXd','write'];a127_0x3644=function(){return _0x21eb07;};return a127_0x3644();}export function createLovrabetWriteMetadata(_0x11fa03,_0x280b11,_0x5f59bf,_0x23c44b){const _0x30a279=a127_0x1e05;if(_0x23c44b||_0x5f59bf['ok']!==!![]||_0x11fa03[_0x30a279(0x156)]!==_0x30a279(0x143)&&_0x11fa03[_0x30a279(0x156)]!==_0x30a279(0x14a))return undefined;const _0x4be68b=_0x11fa03[_0x30a279(0x152)]?.(_0x5f59bf),_0x188b96={'type':_0x30a279(0x155),'operation':_0x280b11,'risk':_0x11fa03[_0x30a279(0x156)],..._0x4be68b?{'subject':_0x4be68b}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x188b96}};}
1
+ (function(_0x5e7ecc,_0x21bfbf){const _0x438ccc=a127_0x2733,_0xefc6f9=_0x5e7ecc();while(!![]){try{const _0x3f470c=-parseInt(_0x438ccc(0x127))/0x1+-parseInt(_0x438ccc(0x12a))/0x2+parseInt(_0x438ccc(0x133))/0x3*(-parseInt(_0x438ccc(0x134))/0x4)+parseInt(_0x438ccc(0x138))/0x5*(-parseInt(_0x438ccc(0x139))/0x6)+parseInt(_0x438ccc(0x135))/0x7*(parseInt(_0x438ccc(0x12b))/0x8)+parseInt(_0x438ccc(0x129))/0x9*(parseInt(_0x438ccc(0x131))/0xa)+parseInt(_0x438ccc(0x136))/0xb;if(_0x3f470c===_0x21bfbf)break;else _0xefc6f9['push'](_0xefc6f9['shift']());}catch(_0x38bec2){_0xefc6f9['push'](_0xefc6f9['shift']());}}}(a127_0x9c3f,0x2b355));export function canonicalLovrabetOperation(_0x1d4bfd){const _0x1b4490=a127_0x2733;return[_0x1d4bfd[_0x1b4490(0x12e)],..._0x1d4bfd[_0x1b4490(0x12d)][_0x1b4490(0x137)]()[_0x1b4490(0x132)](/\s+/)]['filter'](Boolean)['join']('.');}function a127_0x2733(_0x253f33,_0x23f76c){_0x253f33=_0x253f33-0x127;const _0x9c3f98=a127_0x9c3f();let _0x27333f=_0x9c3f98[_0x253f33];return _0x27333f;}function a127_0x9c3f(){const _0x3b0c90=['4sEJyhZ','889JKgiwx','640673eOKgas','trim','1525umYjCl','78iIymuu','275069iIWNNu','write','3124881tEpZoq','249592ZpvWYu','18728BmDACb','risk','command','service','writeEventSubject','lovrabet.write.completed','10SMroDt','split','365844PpqZWb'];a127_0x9c3f=function(){return _0x3b0c90;};return a127_0x9c3f();}export function createLovrabetWriteMetadata(_0x58237b,_0x426f24,_0x226354,_0x5d872b){const _0x1c1894=a127_0x2733;if(_0x5d872b||_0x226354['ok']!==!![]||_0x58237b[_0x1c1894(0x12c)]!==_0x1c1894(0x128)&&_0x58237b['risk']!=='high-risk-write')return undefined;const _0x11f361=_0x58237b[_0x1c1894(0x12f)]?.(_0x226354),_0xab86a7={'type':_0x1c1894(0x130),'operation':_0x426f24,'risk':_0x58237b[_0x1c1894(0x12c)],..._0x11f361?{'subject':_0x11f361}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0xab86a7}};}
@@ -1 +1 @@
1
- function a128_0x10df(_0x4e0513,_0x3e8d3e){_0x4e0513=_0x4e0513-0x99;const _0x3a7112=a128_0x3a71();let _0x10df29=_0x3a7112[_0x4e0513];return _0x10df29;}(function(_0x78d2dd,_0x5945d6){const _0x257283=a128_0x10df,_0x4914e2=_0x78d2dd();while(!![]){try{const _0x35d202=parseInt(_0x257283(0xaa))/0x1+-parseInt(_0x257283(0xa0))/0x2+-parseInt(_0x257283(0xa2))/0x3*(-parseInt(_0x257283(0xb5))/0x4)+-parseInt(_0x257283(0xa9))/0x5+-parseInt(_0x257283(0xad))/0x6+parseInt(_0x257283(0xb6))/0x7*(parseInt(_0x257283(0x9b))/0x8)+-parseInt(_0x257283(0xac))/0x9;if(_0x35d202===_0x5945d6)break;else _0x4914e2['push'](_0x4914e2['shift']());}catch(_0x21e261){_0x4914e2['push'](_0x4914e2['shift']());}}}(a128_0x3a71,0x1d813));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';function a128_0x3a71(){const _0x453440=['223719AKSMIP','aborted','2694402ifHtHj','689718SPVREK','riskLevel','dryRun','present','message','command','result','Lovrabet\x20invocation\x20aborted.','284tQvdLz','1212799LTFUDe','definition','data','confirm','8LzbrVj','args','execute','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','presentation','1650KHfkOf','rawFlags','5979kaLAnU','stringify','high-risk-write','AbortError','risk','signal','format','12360lJVPOL'];a128_0x3a71=function(){return _0x453440;};return a128_0x3a71();}import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x32b289,command:_0x39372a,risk:_0x188b5b,dryRun:_0x125c72}){const _0x506edc=a128_0x10df;return JSON[_0x506edc(0xa3)]({'ok':_0x32b289['ok'],'command':_0x39372a,'risk':_0x188b5b,..._0x125c72?{'dryRun':!![]}:{},..._0x32b289[_0x506edc(0x99)]!==undefined?{'data':_0x32b289[_0x506edc(0x99)]}:{},..._0x32b289[_0x506edc(0xb1)]?{'message':_0x32b289['message']}:{}});}};export async function invokeLovrabet(_0x160c0d,_0x381aa4){const _0x8cc11=a128_0x10df;throwIfAborted(_0x381aa4[_0x8cc11(0xa7)]);const _0x3afd74=await resolveLovrabetInvocation(_0x160c0d),_0x5d6827=canonicalLovrabetOperation(_0x3afd74[_0x8cc11(0xb7)]);return await confirmWriteBeforeQueue(_0x3afd74['definition'],_0x3afd74[_0x8cc11(0xa1)],_0x5d6827,_0x381aa4),runSerialized(async()=>{const _0x27cc8d=_0x8cc11;throwIfAborted(_0x381aa4[_0x27cc8d(0xa7)]);const _0x32371d={},_0x455023=buildConfigFromFlags(_0x3afd74['rawFlags']);await initGlobalEnvironment(_0x455023);const _0x4aff7c=createPipelineEnv(_0x455023,{..._0x3afd74[_0x27cc8d(0xa1)],'yes':_0x3afd74[_0x27cc8d(0xb7)][_0x27cc8d(0xa6)]===_0x27cc8d(0xa4)?!![]:_0x3afd74[_0x27cc8d(0xa1)]['yes'],'nonInteractive':!![]});_0x4aff7c[_0x27cc8d(0x9c)]=_0x3afd74[_0x27cc8d(0x9c)],_0x4aff7c['isNonInteractive']=!![],_0x4aff7c[_0x27cc8d(0xae)]=_0x27cc8d(0xa4);const _0x421d38=withAbortSignal(_0x3afd74[_0x27cc8d(0xb7)],_0x381aa4['signal']),_0x35f396=createLovrabetRunnerAdapter({'formatOutput'(_0x2beb37,_0x579750){const _0x4fdc7b=_0x27cc8d;_0x32371d[_0x4fdc7b(0xb3)]=_0x2beb37,_0x32371d['command']=_0x579750[_0x4fdc7b(0xb2)],_0x32371d[_0x4fdc7b(0xa6)]=_0x579750[_0x4fdc7b(0xa6)],_0x32371d[_0x4fdc7b(0xa8)]=_0x579750[_0x4fdc7b(0xa8)],_0x32371d[_0x4fdc7b(0xaf)]=_0x579750[_0x4fdc7b(0xaf)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x421d38,_0x4aff7c,_0x35f396);if(!_0x32371d[_0x27cc8d(0xb3)]||!_0x32371d['command']||!_0x32371d[_0x27cc8d(0xa6)]||!_0x32371d[_0x27cc8d(0xa8)])throw new Error(_0x27cc8d(0x9e));const _0x451e01=_0x381aa4[_0x27cc8d(0x9f)]??defaultPresentation,_0x15b8df=_0x32371d['dryRun']===!![],_0x434973={'result':_0x32371d[_0x27cc8d(0xb3)],'command':_0x32371d[_0x27cc8d(0xb2)],'operation':_0x5d6827,'risk':_0x32371d[_0x27cc8d(0xa6)],'format':_0x32371d[_0x27cc8d(0xa8)],'dryRun':_0x15b8df},_0x25971d=createLovrabetWriteMetadata(_0x3afd74[_0x27cc8d(0xb7)],_0x5d6827,_0x32371d[_0x27cc8d(0xb3)],_0x15b8df);let _0x22dab1;try{_0x22dab1=await _0x451e01[_0x27cc8d(0xb0)](_0x434973);}catch(_0x102b4c){if(!_0x25971d||_0x451e01===defaultPresentation)throw _0x102b4c;_0x22dab1=await defaultPresentation[_0x27cc8d(0xb0)](_0x434973);}return{'operation':_0x5d6827,'risk':_0x32371d['risk'],'mode':_0x15b8df?'dry-run':_0x27cc8d(0x9d),'result':_0x32371d['result'],'output':_0x22dab1,..._0x25971d?{'metadata':_0x25971d}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4caf7e,_0x497b40,_0x2f780c,_0x5b697d){const _0x516c58=a128_0x10df;if(_0x497b40[_0x516c58(0xaf)]===!![]||_0x4caf7e[_0x516c58(0xa6)]!=='write'&&_0x4caf7e['risk']!==_0x516c58(0xa4))return;await _0x5b697d['confirmation'][_0x516c58(0x9a)](buildLovrabetConfirmationRequest(_0x4caf7e,_0x2f780c,_0x5b697d['signal']));}function withAbortSignal(_0x3b3a60,_0x14f1bc){return{..._0x3b3a60,async 'execute'(_0x5ddde6){return throwIfAborted(_0x14f1bc),_0x3b3a60['execute'](_0x5ddde6);}};}function throwIfAborted(_0x2a7fce){const _0x50e473=a128_0x10df;if(_0x2a7fce?.[_0x50e473(0xab)])throw _0x2a7fce['reason']instanceof Error?_0x2a7fce['reason']:new DOMException(_0x50e473(0xb4),_0x50e473(0xa5));}
1
+ (function(_0x422181,_0x2bf0ef){const _0x57faee=a128_0x5f00,_0x5490b6=_0x422181();while(!![]){try{const _0x1fd06d=parseInt(_0x57faee(0x19d))/0x1*(-parseInt(_0x57faee(0x17e))/0x2)+parseInt(_0x57faee(0x199))/0x3*(parseInt(_0x57faee(0x182))/0x4)+parseInt(_0x57faee(0x190))/0x5+parseInt(_0x57faee(0x19b))/0x6*(parseInt(_0x57faee(0x192))/0x7)+parseInt(_0x57faee(0x198))/0x8*(parseInt(_0x57faee(0x1a0))/0x9)+parseInt(_0x57faee(0x183))/0xa+-parseInt(_0x57faee(0x19f))/0xb;if(_0x1fd06d===_0x2bf0ef)break;else _0x5490b6['push'](_0x5490b6['shift']());}catch(_0x4659b4){_0x5490b6['push'](_0x5490b6['shift']());}}}(a128_0x4083,0xbccdb));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';function a128_0x5f00(_0x5ba6b6,_0x51d4ef){_0x5ba6b6=_0x5ba6b6-0x17d;const _0x4083a1=a128_0x4083();let _0x5f001d=_0x4083a1[_0x5ba6b6];return _0x5f001d;}import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';function a128_0x4083(){const _0x4702ed=['risk','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','aborted','rawFlags','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','presentation','command','4304725fLQftJ','definition','114177ZFWglE','execute','data','high-risk-write','yes','args','49960rZrIso','1017qenaXx','result','426AqyEcK','dryRun','7603zJPLCj','write','36050795dHLEzb','621ibTIBv','stringify','dry-run','106CDlcsv','AbortError','confirmation','reason','15448LIowYA','6944940ciBfEb','signal','present','message','isNonInteractive','format'];a128_0x4083=function(){return _0x4702ed;};return a128_0x4083();}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x3fb8b8,command:_0x3bbd3d,risk:_0x47f7ba,dryRun:_0x14a587}){const _0x1a2eb2=a128_0x5f00;return JSON[_0x1a2eb2(0x1a1)]({'ok':_0x3fb8b8['ok'],'command':_0x3bbd3d,'risk':_0x47f7ba,..._0x14a587?{'dryRun':!![]}:{},..._0x3fb8b8[_0x1a2eb2(0x194)]!==undefined?{'data':_0x3fb8b8['data']}:{},..._0x3fb8b8[_0x1a2eb2(0x186)]?{'message':_0x3fb8b8[_0x1a2eb2(0x186)]}:{}});}};export async function invokeLovrabet(_0x21fe07,_0x214806){const _0x397047=a128_0x5f00;throwIfAborted(_0x214806['signal']);const _0x57b62d=await resolveLovrabetInvocation(_0x21fe07),_0x1b59c6=canonicalLovrabetOperation(_0x57b62d[_0x397047(0x191)]);return await confirmWriteBeforeQueue(_0x57b62d[_0x397047(0x191)],_0x57b62d[_0x397047(0x18c)],_0x1b59c6,_0x214806),runSerialized(async()=>{const _0x3ce209=_0x397047;throwIfAborted(_0x214806[_0x3ce209(0x184)]);const _0x5bd898={},_0x137068=buildConfigFromFlags(_0x57b62d[_0x3ce209(0x18c)]);await initGlobalEnvironment(_0x137068);const _0x3e244c=createPipelineEnv(_0x137068,{..._0x57b62d['rawFlags'],'yes':_0x57b62d['definition'][_0x3ce209(0x189)]===_0x3ce209(0x195)?!![]:_0x57b62d[_0x3ce209(0x18c)][_0x3ce209(0x196)],'nonInteractive':!![]});_0x3e244c[_0x3ce209(0x197)]=_0x57b62d[_0x3ce209(0x197)],_0x3e244c[_0x3ce209(0x187)]=!![],_0x3e244c['riskLevel']='high-risk-write';const _0x106171=withAbortSignal(_0x57b62d[_0x3ce209(0x191)],_0x214806[_0x3ce209(0x184)]),_0x241383=createLovrabetRunnerAdapter({'formatOutput'(_0x562471,_0x25048f){const _0x5b34cb=_0x3ce209;_0x5bd898[_0x5b34cb(0x19a)]=_0x562471,_0x5bd898[_0x5b34cb(0x18f)]=_0x25048f[_0x5b34cb(0x18f)],_0x5bd898['risk']=_0x25048f[_0x5b34cb(0x189)],_0x5bd898[_0x5b34cb(0x188)]=_0x25048f[_0x5b34cb(0x188)],_0x5bd898[_0x5b34cb(0x19c)]=_0x25048f[_0x5b34cb(0x19c)]===!![];},async 'confirmHighRisk'(){const _0x551edb=_0x3ce209;throw new Error(_0x551edb(0x18d));}});try{await runCommand(_0x106171,_0x3e244c,_0x241383);if(!_0x5bd898[_0x3ce209(0x19a)]||!_0x5bd898[_0x3ce209(0x18f)]||!_0x5bd898[_0x3ce209(0x189)]||!_0x5bd898[_0x3ce209(0x188)])throw new Error(_0x3ce209(0x18a));const _0x211cc8=_0x214806[_0x3ce209(0x18e)]??defaultPresentation,_0x257923=_0x5bd898['dryRun']===!![],_0x43cdd6={'result':_0x5bd898[_0x3ce209(0x19a)],'command':_0x5bd898[_0x3ce209(0x18f)],'operation':_0x1b59c6,'risk':_0x5bd898[_0x3ce209(0x189)],'format':_0x5bd898[_0x3ce209(0x188)],'dryRun':_0x257923},_0x1332ca=createLovrabetWriteMetadata(_0x57b62d[_0x3ce209(0x191)],_0x1b59c6,_0x5bd898[_0x3ce209(0x19a)],_0x257923);let _0x53bfb2;try{_0x53bfb2=await _0x211cc8[_0x3ce209(0x185)](_0x43cdd6);}catch(_0x57443d){if(!_0x1332ca||_0x211cc8===defaultPresentation)throw _0x57443d;_0x53bfb2=await defaultPresentation[_0x3ce209(0x185)](_0x43cdd6);}return{'operation':_0x1b59c6,'risk':_0x5bd898[_0x3ce209(0x189)],'mode':_0x257923?_0x3ce209(0x17d):_0x3ce209(0x193),'result':_0x5bd898[_0x3ce209(0x19a)],'output':_0x53bfb2,..._0x1332ca?{'metadata':_0x1332ca}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x5bf62e,_0x1eebb5,_0x1d33a8,_0x3aebc3){const _0x5bbcec=a128_0x5f00;if(_0x1eebb5[_0x5bbcec(0x19c)]===!![]||_0x5bf62e[_0x5bbcec(0x189)]!==_0x5bbcec(0x19e)&&_0x5bf62e[_0x5bbcec(0x189)]!==_0x5bbcec(0x195))return;await _0x3aebc3[_0x5bbcec(0x180)]['confirm'](buildLovrabetConfirmationRequest(_0x5bf62e,_0x1d33a8,_0x3aebc3[_0x5bbcec(0x184)]));}function withAbortSignal(_0x36ea1d,_0x1d49a8){return{..._0x36ea1d,async 'execute'(_0x2625a0){const _0x271261=a128_0x5f00;return throwIfAborted(_0x1d49a8),_0x36ea1d[_0x271261(0x193)](_0x2625a0);}};}function throwIfAborted(_0x32bb92){const _0x45d962=a128_0x5f00;if(_0x32bb92?.[_0x45d962(0x18b)])throw _0x32bb92[_0x45d962(0x181)]instanceof Error?_0x32bb92['reason']:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x45d962(0x17f));}
@@ -1 +1 @@
1
- const a129_0x533149=a129_0xcd68;function a129_0x269d(){const _0xb1eed1=['2867825zRsVGC','626341GyarCS','12zkpcSN','2664536RgDiKf','1124296OVEWrV','66489eULtmt','3120523qfSrup','resolve','1978134roUyqk'];a129_0x269d=function(){return _0xb1eed1;};return a129_0x269d();}(function(_0x47fa24,_0x5b0b88){const _0x1fb204=a129_0xcd68,_0x4ed0b8=_0x47fa24();while(!![]){try{const _0x3c956c=parseInt(_0x1fb204(0x79))/0x1+parseInt(_0x1fb204(0x71))/0x2*(-parseInt(_0x1fb204(0x74))/0x3)+-parseInt(_0x1fb204(0x73))/0x4+parseInt(_0x1fb204(0x78))/0x5+-parseInt(_0x1fb204(0x77))/0x6+-parseInt(_0x1fb204(0x75))/0x7+parseInt(_0x1fb204(0x72))/0x8;if(_0x3c956c===_0x5b0b88)break;else _0x4ed0b8['push'](_0x4ed0b8['shift']());}catch(_0x306965){_0x4ed0b8['push'](_0x4ed0b8['shift']());}}}(a129_0x269d,0x53d93));let tail=Promise[a129_0x533149(0x76)]();function a129_0xcd68(_0x2ff986,_0x5cead0){_0x2ff986=_0x2ff986-0x71;const _0x269d0b=a129_0x269d();let _0xcd68f9=_0x269d0b[_0x2ff986];return _0xcd68f9;}export async function runSerialized(_0x10b3ef){const _0x1c8a09=tail;let _0x46650c;tail=new Promise(_0x1690e1=>{_0x46650c=_0x1690e1;}),await _0x1c8a09['catch'](()=>undefined);try{return await _0x10b3ef();}finally{_0x46650c();}}
1
+ const a129_0x1c9811=a129_0x2ee1;function a129_0x2ee1(_0x3dd3f2,_0x3d0d18){_0x3dd3f2=_0x3dd3f2-0x177;const _0xe81e9=a129_0xe81e();let _0x2ee1c3=_0xe81e9[_0x3dd3f2];return _0x2ee1c3;}(function(_0x18ab3d,_0x28205b){const _0x141463=a129_0x2ee1,_0x3d421e=_0x18ab3d();while(!![]){try{const _0x30e365=-parseInt(_0x141463(0x17a))/0x1*(-parseInt(_0x141463(0x17c))/0x2)+parseInt(_0x141463(0x183))/0x3+-parseInt(_0x141463(0x177))/0x4*(-parseInt(_0x141463(0x179))/0x5)+-parseInt(_0x141463(0x184))/0x6*(parseInt(_0x141463(0x17f))/0x7)+parseInt(_0x141463(0x17b))/0x8+parseInt(_0x141463(0x17d))/0x9*(parseInt(_0x141463(0x182))/0xa)+parseInt(_0x141463(0x178))/0xb*(-parseInt(_0x141463(0x17e))/0xc);if(_0x30e365===_0x28205b)break;else _0x3d421e['push'](_0x3d421e['shift']());}catch(_0x46e416){_0x3d421e['push'](_0x3d421e['shift']());}}}(a129_0xe81e,0xc61d2));let tail=Promise[a129_0x1c9811(0x180)]();function a129_0xe81e(){const _0x55a2b9=['10OQCprM','394725vWzaJt','846OmGtWJ','4MuFRpK','3688157dhtzVw','6359815qZOssl','5352KDzcOt','2460592ZWrcuS','262vYMQkK','1657323tvEtIs','24ZPpyJX','55321bHTeYi','resolve','catch'];a129_0xe81e=function(){return _0x55a2b9;};return a129_0xe81e();}export async function runSerialized(_0x55457b){const _0x10ad71=a129_0x1c9811,_0x201722=tail;let _0x40e204;tail=new Promise(_0x228653=>{_0x40e204=_0x228653;}),await _0x201722[_0x10ad71(0x181)](()=>undefined);try{return await _0x55457b();}finally{_0x40e204();}}
@@ -1 +1 @@
1
- (function(_0x5e97f2,_0x8d3834){const _0xdd806=a130_0x3121,_0x52ee9e=_0x5e97f2();while(!![]){try{const _0x1a8e53=parseInt(_0xdd806(0x18a))/0x1+parseInt(_0xdd806(0x182))/0x2+parseInt(_0xdd806(0x185))/0x3+parseInt(_0xdd806(0x183))/0x4+parseInt(_0xdd806(0x18b))/0x5+-parseInt(_0xdd806(0x192))/0x6+parseInt(_0xdd806(0x186))/0x7;if(_0x1a8e53===_0x8d3834)break;else _0x52ee9e['push'](_0x52ee9e['shift']());}catch(_0x434e61){_0x52ee9e['push'](_0x52ee9e['shift']());}}}(a130_0x3682,0x7068f));import a130_0x140379 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a130_0x3121(_0x383e15,_0x4bdf9e){_0x383e15=_0x383e15-0x180;const _0x3682bf=a130_0x3682();let _0x312139=_0x3682bf[_0x383e15];return _0x312139;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x44a9f3){const _0x2b8516=a130_0x3121,_0x134d71=a130_0x140379('',{'importMeta':import.meta,'argv':_0x44a9f3,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x44470a=[..._0x134d71['input']],_0x401e9c=_0x134d71[_0x2b8516(0x18f)];await correctFlags(_0x401e9c);const _0x256023=_0x44470a[0x0];if(!_0x256023)throw CliErrors[_0x2b8516(0x18c)](_0x2b8516(0x189));const _0x154e8c=resolveRemovedCommand(_0x256023,_0x44470a[0x1]);if(_0x154e8c)throw CliErrors[_0x2b8516(0x18c)](_0x154e8c[_0x2b8516(0x187)],_0x154e8c['hint']);if(!isKnownService(_0x256023)){const _0x28a7da=resolveDynamicServiceCommand(_0x44470a,_0x401e9c);if(!_0x28a7da)throw CliErrors[_0x2b8516(0x188)](_0x44470a[_0x2b8516(0x191)]('\x20'));return Object['assign'](_0x401e9c,_0x28a7da['flags']),{'definition':_0x28a7da[_0x2b8516(0x18d)],'rawFlags':_0x401e9c,'args':_0x28a7da[_0x2b8516(0x181)]};}const _0x3633fe=getServiceEntry(_0x256023),_0x490388=_0x44470a[0x1]||_0x3633fe['defaultCommand'];if(!_0x490388)throw CliErrors['validation'](_0x2b8516(0x18e)+_0x256023+'\x22.');const _0x57f48e=findDefinition(_0x256023,_0x490388);if(!_0x57f48e)throw CliErrors[_0x2b8516(0x188)](_0x256023+'\x20'+_0x490388);return{'definition':_0x57f48e,'rawFlags':_0x401e9c,'args':_0x44470a[_0x2b8516(0x193)](0x2)};}async function correctFlags(_0x42f73b){const _0x40881a=a130_0x3121;try{const {correctFlags:_0xfb3444}=await import(_0x40881a(0x184)),{getAllDefinitions:_0x244185}=await import(_0x40881a(0x180)),_0x3b28a3=_0x244185()[_0x40881a(0x190)](_0x11c15e=>_0x11c15e[_0x40881a(0x18f)]??[]),_0x408eb4=_0xfb3444(_0x42f73b,_0x3b28a3);Object['assign'](_0x42f73b,_0x408eb4[_0x40881a(0x18f)]);}catch{}}function a130_0x3682(){const _0x3fadab=['message','unknownCommand','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','21053MtHutE','827750dcxvWw','validation','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','flags','flatMap','join','3412908yjxbFM','slice','../commands/registry.js','args','593810HnRixR','1545212KXwwVX','../framework/preparse.js','420441GWUcsK','135037PWxPde'];a130_0x3682=function(){return _0x3fadab;};return a130_0x3682();}
1
+ function a130_0xfa36(_0x33c272,_0x3e3c21){_0x33c272=_0x33c272-0x128;const _0x484a79=a130_0x484a();let _0xfa3685=_0x484a79[_0x33c272];return _0xfa3685;}(function(_0x56ab9d,_0x22b8a8){const _0x108cf8=a130_0xfa36,_0x2ea867=_0x56ab9d();while(!![]){try{const _0x19da8f=parseInt(_0x108cf8(0x132))/0x1+parseInt(_0x108cf8(0x139))/0x2*(-parseInt(_0x108cf8(0x134))/0x3)+-parseInt(_0x108cf8(0x138))/0x4+parseInt(_0x108cf8(0x12e))/0x5*(parseInt(_0x108cf8(0x12d))/0x6)+-parseInt(_0x108cf8(0x136))/0x7*(parseInt(_0x108cf8(0x13d))/0x8)+-parseInt(_0x108cf8(0x12f))/0x9+parseInt(_0x108cf8(0x13c))/0xa;if(_0x19da8f===_0x22b8a8)break;else _0x2ea867['push'](_0x2ea867['shift']());}catch(_0x42c0c0){_0x2ea867['push'](_0x2ea867['shift']());}}}(a130_0x484a,0xd8203));import a130_0x2aeb94 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a130_0x484a(){const _0x294b7a=['367917wZIrmv','message','848701KBrhco','unknownCommand','3216064ZxciQc','26apbsDo','join','assign','26329710xgBPYu','16xdsvHl','slice','input','../commands/registry.js','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','args','2342598zHPFpp','5mmSTFZ','4958244vOMYkH','flags','defaultCommand','1053572zIokgB','validation'];a130_0x484a=function(){return _0x294b7a;};return a130_0x484a();}export async function resolveLovrabetInvocation(_0x37bbc8){const _0x346339=a130_0xfa36,_0x15217b=a130_0x2aeb94('',{'importMeta':import.meta,'argv':_0x37bbc8,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x16c565=[..._0x15217b[_0x346339(0x129)]],_0xd2db04=_0x15217b[_0x346339(0x130)];await correctFlags(_0xd2db04);const _0x3e25ad=_0x16c565[0x0];if(!_0x3e25ad)throw CliErrors[_0x346339(0x133)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x166eb6=resolveRemovedCommand(_0x3e25ad,_0x16c565[0x1]);if(_0x166eb6)throw CliErrors[_0x346339(0x133)](_0x166eb6[_0x346339(0x135)],_0x166eb6['hint']);if(!isKnownService(_0x3e25ad)){const _0x3bf9b9=resolveDynamicServiceCommand(_0x16c565,_0xd2db04);if(!_0x3bf9b9)throw CliErrors[_0x346339(0x137)](_0x16c565[_0x346339(0x13a)]('\x20'));return Object['assign'](_0xd2db04,_0x3bf9b9[_0x346339(0x130)]),{'definition':_0x3bf9b9['definition'],'rawFlags':_0xd2db04,'args':_0x3bf9b9[_0x346339(0x12c)]};}const _0x16f48e=getServiceEntry(_0x3e25ad),_0x3f12c9=_0x16c565[0x1]||_0x16f48e[_0x346339(0x131)];if(!_0x3f12c9)throw CliErrors[_0x346339(0x133)](_0x346339(0x12b)+_0x3e25ad+'\x22.');const _0x4140b1=findDefinition(_0x3e25ad,_0x3f12c9);if(!_0x4140b1)throw CliErrors[_0x346339(0x137)](_0x3e25ad+'\x20'+_0x3f12c9);return{'definition':_0x4140b1,'rawFlags':_0xd2db04,'args':_0x16c565[_0x346339(0x128)](0x2)};}async function correctFlags(_0x7b6bb0){const _0x45f4d2=a130_0xfa36;try{const {correctFlags:_0x4a9931}=await import('../framework/preparse.js'),{getAllDefinitions:_0xda3416}=await import(_0x45f4d2(0x12a)),_0x4f811c=_0xda3416()['flatMap'](_0x2d189d=>_0x2d189d['flags']??[]),_0x45e677=_0x4a9931(_0x7b6bb0,_0x4f811c);Object[_0x45f4d2(0x13b)](_0x7b6bb0,_0x45e677['flags']);}catch{}}
@@ -1 +1 @@
1
- (function(_0x5f1bd6,_0x22f3fd){const _0x88d4f5=a132_0x21a1,_0x3bb7a4=_0x5f1bd6();while(!![]){try{const _0x206e45=-parseInt(_0x88d4f5(0x1bb))/0x1+parseInt(_0x88d4f5(0x1d3))/0x2*(parseInt(_0x88d4f5(0x1be))/0x3)+parseInt(_0x88d4f5(0x1a8))/0x4*(-parseInt(_0x88d4f5(0x1aa))/0x5)+parseInt(_0x88d4f5(0x1ce))/0x6*(-parseInt(_0x88d4f5(0x1bc))/0x7)+-parseInt(_0x88d4f5(0x1c4))/0x8*(parseInt(_0x88d4f5(0x1b1))/0x9)+parseInt(_0x88d4f5(0x1ab))/0xa+-parseInt(_0x88d4f5(0x1d9))/0xb*(-parseInt(_0x88d4f5(0x1b6))/0xc);if(_0x206e45===_0x22f3fd)break;else _0x3bb7a4['push'](_0x3bb7a4['shift']());}catch(_0x1c9919){_0x3bb7a4['push'](_0x3bb7a4['shift']());}}}(a132_0x7177,0xd7e8a));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';function a132_0x21a1(_0x54a203,_0x43fe02){_0x54a203=_0x54a203-0x19d;const _0x7177cc=a132_0x7177();let _0x21a1ee=_0x7177cc[_0x54a203];return _0x21a1ee;}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='lovrabet';function frontmatterValue(_0x348581,_0x3efd3d){const _0x4b2b20=a132_0x21a1;return _0x348581[_0x4b2b20(0x1b9)](new RegExp('^'+_0x3efd3d+_0x4b2b20(0x1ad),'m'))?.[0x1]?.[_0x4b2b20(0x1a3)]()??'';}function listFiles(_0x17c85b,_0x18d521=_0x17c85b){const _0x5c8293=a132_0x21a1;return readdirSync(_0x18d521,{'withFileTypes':!![]})[_0x5c8293(0x1c3)](_0x4229bc=>{const _0x3f8ce9=_0x5c8293,_0x5827c4=join(_0x18d521,_0x4229bc[_0x3f8ce9(0x19d)]),_0x4a8e6d=lstatSync(_0x5827c4);if(_0x4a8e6d[_0x3f8ce9(0x1a1)]())throw new Error(_0x3f8ce9(0x19e)+_0x5827c4);if(_0x4a8e6d['isDirectory']())return listFiles(_0x17c85b,_0x5827c4);if(!_0x4a8e6d['isFile']())throw new Error(_0x3f8ce9(0x1d2)+_0x5827c4);return[relative(_0x17c85b,_0x5827c4)[_0x3f8ce9(0x1d5)](sep)['join']('/')];})[_0x5c8293(0x1af)]((_0x221d7d,_0x262a04)=>_0x221d7d<_0x262a04?-0x1:_0x221d7d>_0x262a04?0x1:0x0);}function digestFiles(_0x15b1cb,_0x581dec){const _0x17651f=a132_0x21a1,_0x2157e2=createHash(_0x17651f(0x1c7));for(const _0xdfb07a of _0x581dec){if(_0xdfb07a[_0x17651f(0x1ba)]('/')||_0xdfb07a[_0x17651f(0x1d5)]('/')[_0x17651f(0x1a7)]('..')||_0xdfb07a[_0x17651f(0x1a7)]('\x5c'))throw new Error(_0x17651f(0x1bd)+_0xdfb07a);_0x2157e2[_0x17651f(0x1ac)](_0xdfb07a),_0x2157e2[_0x17651f(0x1ac)]('\x00'),_0x2157e2[_0x17651f(0x1ac)](readFileSync(join(_0x15b1cb,..._0xdfb07a[_0x17651f(0x1d5)]('/')))),_0x2157e2[_0x17651f(0x1ac)]('\x00');}return _0x2157e2['digest']('hex');}function sameFiles(_0x21e0ce,_0x583a15){const _0x4cfed8=a132_0x21a1;return _0x21e0ce[_0x4cfed8(0x1c9)]===_0x583a15[_0x4cfed8(0x1c9)]&&_0x21e0ce[_0x4cfed8(0x1d0)]((_0x16c057,_0x180746)=>_0x16c057===_0x583a15[_0x180746]);}function readSource(_0x4ea7be){const _0x204369=a132_0x21a1,_0x1f7f40=JSON['parse'](readFileSync(join(_0x4ea7be,_0x204369(0x1d8)),_0x204369(0x19f))),_0x3fa1fc=JSON['parse'](readFileSync(join(_0x4ea7be,_0x204369(0x1c0),_0x204369(0x1c2)),'utf8')),_0x5dcf67=join(_0x4ea7be,'skills',SKILL_NAME),_0x210d50=frontmatterValue(readFileSync(join(_0x5dcf67,_0x204369(0x1bf)),_0x204369(0x19f)),_0x204369(0x1c1)),_0x356861=listFiles(_0x5dcf67);if(_0x3fa1fc['schemaVersion']!==0x1||_0x3fa1fc['name']!==SKILL_NAME||!_0x1f7f40['version']||_0x3fa1fc[_0x204369(0x1d6)]!==_0x1f7f40['version']||_0x3fa1fc[_0x204369(0x1b0)]!==_0x1f7f40[_0x204369(0x1c1)]||_0x210d50!==_0x1f7f40[_0x204369(0x1c1)]||!sameFiles(_0x356861,_0x3fa1fc[_0x204369(0x1c8)])||digestFiles(_0x5dcf67,_0x356861)!==_0x3fa1fc[_0x204369(0x1cc)])throw new Error(_0x204369(0x1d7));return{'packageVersion':_0x1f7f40[_0x204369(0x1c1)],'skillVersion':_0x210d50,'root':_0x5dcf67,'manifest':_0x3fa1fc};}function installedSkillPath(_0x1ee8f0){const _0x34e665=a132_0x21a1,_0x358633=resolveInstalledSkill(SKILL_NAME,{'home':_0x1ee8f0});if(_0x358633['state']==='present')return{'state':_0x34e665(0x1c6),'path':dirname(_0x358633[_0x34e665(0x1cf)])};if(_0x358633['state']===_0x34e665(0x1da))return{'state':'missing'};return{'state':_0x34e665(0x1a4),'reason':_0x358633[_0x34e665(0x1ae)]};}export function inspectInstalledBuiltinSkillVersion(_0x93efa4,_0x5876d9={}){const _0x2493a9=a132_0x21a1,_0x3ab79f=installedSkillPath(_0x5876d9[_0x2493a9(0x1a5)]??homedir());if(_0x3ab79f[_0x2493a9(0x1b3)]===_0x2493a9(0x1c5))return{'state':_0x2493a9(0x1c5),'expectedVersion':_0x93efa4,'repairCommand':REPAIR_COMMAND};if(_0x3ab79f['state']===_0x2493a9(0x1a4))return{'state':'unverifiable','expectedVersion':_0x93efa4,'reason':_0x3ab79f[_0x2493a9(0x1ae)],'repairCommand':REPAIR_COMMAND};try{const _0x52e977=frontmatterValue(readFileSync(join(_0x3ab79f[_0x2493a9(0x1cf)],_0x2493a9(0x1bf)),_0x2493a9(0x19f)),_0x2493a9(0x1c1));return{'state':_0x52e977===_0x93efa4?_0x2493a9(0x1a6):_0x2493a9(0x1b8),'expectedVersion':_0x93efa4,'skillVersion':_0x52e977,'installedPath':_0x3ab79f[_0x2493a9(0x1cf)],'repairCommand':REPAIR_COMMAND};}catch(_0x5c9996){return{'state':_0x2493a9(0x1a4),'expectedVersion':_0x93efa4,'installedPath':_0x3ab79f[_0x2493a9(0x1cf)],'reason':_0x5c9996 instanceof Error?_0x5c9996[_0x2493a9(0x1a9)]:String(_0x5c9996),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x543a6e={}){const _0x1032be=a132_0x21a1,_0x5247bc=_0x543a6e[_0x1032be(0x1cd)]??DEFAULT_PACKAGE_ROOT;let _0x14291e;try{_0x14291e=readSource(_0x5247bc);}catch(_0x3ce96e){return{'state':_0x1032be(0x1a4),'packageVersion':_0x1032be(0x1a0),'reason':_0x3ce96e instanceof Error?_0x3ce96e[_0x1032be(0x1a9)]:String(_0x3ce96e),'repairCommand':REPAIR_COMMAND};}const _0x4c7575=installedSkillPath(_0x543a6e['home']??homedir());if(_0x4c7575[_0x1032be(0x1b3)]==='missing')return{'state':_0x1032be(0x1c5),'packageVersion':_0x14291e[_0x1032be(0x1d6)],'repairCommand':REPAIR_COMMAND};if(_0x4c7575[_0x1032be(0x1b3)]===_0x1032be(0x1a4))return{'state':_0x1032be(0x1a4),'packageVersion':_0x14291e[_0x1032be(0x1d6)],'reason':_0x4c7575['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x2564e9=frontmatterValue(readFileSync(join(_0x4c7575[_0x1032be(0x1cf)],_0x1032be(0x1bf)),_0x1032be(0x19f)),_0x1032be(0x1c1));if(_0x2564e9!==_0x14291e[_0x1032be(0x1b0)])return{'state':_0x1032be(0x1b8),'packageVersion':_0x14291e[_0x1032be(0x1d6)],'skillVersion':_0x2564e9,'installedPath':_0x4c7575[_0x1032be(0x1cf)],'repairCommand':REPAIR_COMMAND};const _0x1b533a=listFiles(_0x4c7575[_0x1032be(0x1cf)]),_0x55e26a=digestFiles(_0x4c7575[_0x1032be(0x1cf)],_0x1b533a);return{'state':sameFiles(_0x1b533a,_0x14291e[_0x1032be(0x1a2)]['files'])&&_0x55e26a===_0x14291e['manifest']['digest']?_0x1032be(0x1a6):'content_mismatch','packageVersion':_0x14291e[_0x1032be(0x1d6)],'skillVersion':_0x2564e9,'installedPath':_0x4c7575[_0x1032be(0x1cf)],'digest':_0x55e26a,'repairCommand':REPAIR_COMMAND};}catch(_0x570ed6){return{'state':_0x1032be(0x1a4),'packageVersion':_0x14291e['packageVersion'],'installedPath':_0x4c7575[_0x1032be(0x1cf)],'reason':_0x570ed6 instanceof Error?_0x570ed6[_0x1032be(0x1a9)]:String(_0x570ed6),'repairCommand':REPAIR_COMMAND};}}function failure(_0x3f0d4c,_0x23c867,_0x36cd2c,_0x598f09){const _0x5d56e9=a132_0x21a1;return{'ok':![],'code':_0x3f0d4c,'packageVersion':_0x23c867[_0x5d56e9(0x1d6)],'skillVersion':_0x23c867[_0x5d56e9(0x1b0)],'installedPath':_0x598f09,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x36cd2c instanceof Error?_0x36cd2c[_0x5d56e9(0x1a9)]:String(_0x36cd2c)};}function a132_0x7177(){const _0x5e5a9f=['935613TlxRST','SKILL.md','skills','version','lovrabet.manifest.json','flatMap','8saAxwp','missing','present','sha256','files','length','SOURCE_INVALID','status','digest','packageRoot','6WUQBIH','path','every','error','Unsupported\x20Skill\x20entry:\x20','2erZIxL','stdio','split','packageVersion','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','package.json','20278357RTabXs','absent','name','Symbolic\x20link\x20is\x20not\x20allowed:\x20','utf8','unknown','isSymbolicLink','manifest','trim','unverifiable','home','current','includes','389476DyVQsC','message','5ZIixCS','7526100ZeFtaV','update',':\x5cs*(.+)$','reason','sort','skillVersion','3791808GHWXsP','skipped','state','installedPath','pipe','12HqrYWg','Installed\x20Skill\x20state\x20is\x20','version_mismatch','match','startsWith','185954WhRFns','9232797NFVoeZ','Unsafe\x20manifest\x20path:\x20'];a132_0x7177=function(){return _0x5e5a9f;};return a132_0x7177();}export function installBuiltinSkill(_0x1948c0={}){const _0x444a6c=a132_0x21a1,_0x432d65=_0x1948c0['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x290b2c=_0x1948c0[_0x444a6c(0x1a5)]??homedir();let _0x262ec5;try{_0x262ec5=readSource(_0x432d65);}catch(_0x11a648){return failure(_0x444a6c(0x1ca),{'packageVersion':_0x444a6c(0x1a0),'skillVersion':'unknown'},_0x11a648);}const _0x192646=inspectBuiltinSkill({'packageRoot':_0x432d65,'home':_0x290b2c}),_0x27b07e=runNpxSkillsAddGlobal(_0x432d65,_0x262ec5['root'],{'stdio':_0x1948c0[_0x444a6c(0x1d4)]??_0x444a6c(0x1b5),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x290b2c}});if(_0x27b07e[_0x444a6c(0x1b2)])return{'ok':!![],'packageVersion':_0x262ec5[_0x444a6c(0x1d6)],'skillVersion':_0x262ec5[_0x444a6c(0x1b0)],'installedPath':_0x192646[_0x444a6c(0x1b4)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x27b07e['ok'])return failure('INSTALL_FAILED',_0x262ec5,_0x27b07e[_0x444a6c(0x1d1)]??'skills@latest\x20exited\x20'+_0x27b07e[_0x444a6c(0x1cb)]);const _0x273ffb=inspectBuiltinSkill({'packageRoot':_0x432d65,'home':_0x290b2c});if(_0x273ffb['state']!==_0x444a6c(0x1a6))return failure('VERIFY_FAILED',_0x262ec5,_0x273ffb['reason']??_0x444a6c(0x1b7)+_0x273ffb[_0x444a6c(0x1b3)],_0x273ffb[_0x444a6c(0x1b4)]);return{'ok':!![],'packageVersion':_0x262ec5[_0x444a6c(0x1d6)],'skillVersion':_0x262ec5[_0x444a6c(0x1b0)],'installedPath':_0x273ffb[_0x444a6c(0x1b4)],'changed':_0x192646['state']!==_0x444a6c(0x1a6),'repairCommand':REPAIR_COMMAND};}
1
+ const a132_0x5696fa=a132_0x53d0;(function(_0x10f582,_0x463027){const _0x26b55b=a132_0x53d0,_0xfd605d=_0x10f582();while(!![]){try{const _0x316003=-parseInt(_0x26b55b(0xc4))/0x1+-parseInt(_0x26b55b(0xaf))/0x2*(-parseInt(_0x26b55b(0xae))/0x3)+parseInt(_0x26b55b(0xc2))/0x4*(-parseInt(_0x26b55b(0xd1))/0x5)+parseInt(_0x26b55b(0xb6))/0x6+-parseInt(_0x26b55b(0xb8))/0x7+-parseInt(_0x26b55b(0xce))/0x8+parseInt(_0x26b55b(0xdd))/0x9;if(_0x316003===_0x463027)break;else _0xfd605d['push'](_0xfd605d['shift']());}catch(_0x4116fd){_0xfd605d['push'](_0xfd605d['shift']());}}}(a132_0x5503,0xbf038));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=a132_0x5696fa(0xc6),SKILL_NAME='lovrabet';function frontmatterValue(_0x301e97,_0x59412e){const _0x3ea9e8=a132_0x5696fa;return _0x301e97['match'](new RegExp('^'+_0x59412e+_0x3ea9e8(0xdf),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x49b8d8,_0x3422a8=_0x49b8d8){const _0x40d841=a132_0x5696fa;return readdirSync(_0x3422a8,{'withFileTypes':!![]})[_0x40d841(0xdc)](_0xa81f02=>{const _0x1bfd71=_0x40d841,_0x2f7fc0=join(_0x3422a8,_0xa81f02[_0x1bfd71(0xd8)]),_0x110555=lstatSync(_0x2f7fc0);if(_0x110555['isSymbolicLink']())throw new Error(_0x1bfd71(0xb7)+_0x2f7fc0);if(_0x110555[_0x1bfd71(0xd7)]())return listFiles(_0x49b8d8,_0x2f7fc0);if(!_0x110555[_0x1bfd71(0xb4)]())throw new Error(_0x1bfd71(0xcd)+_0x2f7fc0);return[relative(_0x49b8d8,_0x2f7fc0)[_0x1bfd71(0xb5)](sep)[_0x1bfd71(0xda)]('/')];})['sort']((_0x445bd9,_0x35ff5a)=>_0x445bd9<_0x35ff5a?-0x1:_0x445bd9>_0x35ff5a?0x1:0x0);}function a132_0x5503(){const _0x1e77fa=['skills','SKILL.md','message','Unsupported\x20Skill\x20entry:\x20','6721872wNCNMK','status','installedPath','515hByYyc','home','skillVersion','utf8','missing','hex','isDirectory','name','pipe','join','Installed\x20Skill\x20state\x20is\x20','flatMap','19056321rQCgAr','digest',':\x5cs*(.+)$','Unsafe\x20manifest\x20path:\x20','files','unknown','manifest','update','length','version_mismatch','1263PWzaUW','2266lLzeYg','includes','lovrabet.manifest.json','content_mismatch','packageVersion','isFile','split','6560958Gshrjs','Symbolic\x20link\x20is\x20not\x20allowed:\x20','9566088neYyEX','VERIFY_FAILED','absent','present','skills@latest\x20exited\x20','version','skipped','current','state','reason','16436FeRVpc','packageRoot','275418WPvpnr','parse','lovrabet\x20cli-skill\x20install','unverifiable','every','path'];a132_0x5503=function(){return _0x1e77fa;};return a132_0x5503();}function digestFiles(_0x2a1f95,_0x15d19c){const _0x45d8e5=a132_0x5696fa,_0x31e80d=createHash('sha256');for(const _0x212018 of _0x15d19c){if(_0x212018['startsWith']('/')||_0x212018[_0x45d8e5(0xb5)]('/')['includes']('..')||_0x212018[_0x45d8e5(0xb0)]('\x5c'))throw new Error(_0x45d8e5(0xe0)+_0x212018);_0x31e80d[_0x45d8e5(0xab)](_0x212018),_0x31e80d[_0x45d8e5(0xab)]('\x00'),_0x31e80d[_0x45d8e5(0xab)](readFileSync(join(_0x2a1f95,..._0x212018[_0x45d8e5(0xb5)]('/')))),_0x31e80d['update']('\x00');}return _0x31e80d[_0x45d8e5(0xde)](_0x45d8e5(0xd6));}function sameFiles(_0x535c5f,_0x20858a){const _0x2660fe=a132_0x5696fa;return _0x535c5f['length']===_0x20858a[_0x2660fe(0xac)]&&_0x535c5f[_0x2660fe(0xc8)]((_0x12e6fc,_0x2d48ca)=>_0x12e6fc===_0x20858a[_0x2d48ca]);}function readSource(_0x405402){const _0x144389=a132_0x5696fa,_0x3f8e6b=JSON[_0x144389(0xc5)](readFileSync(join(_0x405402,'package.json'),'utf8')),_0x4506a4=JSON[_0x144389(0xc5)](readFileSync(join(_0x405402,_0x144389(0xca),_0x144389(0xb1)),'utf8')),_0x2e4e4f=join(_0x405402,'skills',SKILL_NAME),_0xd2c1d1=frontmatterValue(readFileSync(join(_0x2e4e4f,_0x144389(0xcb)),_0x144389(0xd4)),_0x144389(0xbd)),_0x26504d=listFiles(_0x2e4e4f);if(_0x4506a4['schemaVersion']!==0x1||_0x4506a4[_0x144389(0xd8)]!==SKILL_NAME||!_0x3f8e6b[_0x144389(0xbd)]||_0x4506a4[_0x144389(0xb3)]!==_0x3f8e6b[_0x144389(0xbd)]||_0x4506a4[_0x144389(0xd3)]!==_0x3f8e6b[_0x144389(0xbd)]||_0xd2c1d1!==_0x3f8e6b[_0x144389(0xbd)]||!sameFiles(_0x26504d,_0x4506a4[_0x144389(0xe1)])||digestFiles(_0x2e4e4f,_0x26504d)!==_0x4506a4[_0x144389(0xde)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x3f8e6b[_0x144389(0xbd)],'skillVersion':_0xd2c1d1,'root':_0x2e4e4f,'manifest':_0x4506a4};}function installedSkillPath(_0x25139d){const _0x3ab858=a132_0x5696fa,_0x8e7682=resolveInstalledSkill(SKILL_NAME,{'home':_0x25139d});if(_0x8e7682['state']==='present')return{'state':_0x3ab858(0xbb),'path':dirname(_0x8e7682['path'])};if(_0x8e7682[_0x3ab858(0xc0)]===_0x3ab858(0xba))return{'state':'missing'};return{'state':_0x3ab858(0xc7),'reason':_0x8e7682['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x34fa35,_0x1d1134={}){const _0x16fc5d=a132_0x5696fa,_0x52eeb3=installedSkillPath(_0x1d1134[_0x16fc5d(0xd2)]??homedir());if(_0x52eeb3[_0x16fc5d(0xc0)]===_0x16fc5d(0xd5))return{'state':_0x16fc5d(0xd5),'expectedVersion':_0x34fa35,'repairCommand':REPAIR_COMMAND};if(_0x52eeb3['state']===_0x16fc5d(0xc7))return{'state':_0x16fc5d(0xc7),'expectedVersion':_0x34fa35,'reason':_0x52eeb3[_0x16fc5d(0xc1)],'repairCommand':REPAIR_COMMAND};try{const _0x52dffa=frontmatterValue(readFileSync(join(_0x52eeb3[_0x16fc5d(0xc9)],'SKILL.md'),_0x16fc5d(0xd4)),_0x16fc5d(0xbd));return{'state':_0x52dffa===_0x34fa35?'current':_0x16fc5d(0xad),'expectedVersion':_0x34fa35,'skillVersion':_0x52dffa,'installedPath':_0x52eeb3[_0x16fc5d(0xc9)],'repairCommand':REPAIR_COMMAND};}catch(_0x57e213){return{'state':_0x16fc5d(0xc7),'expectedVersion':_0x34fa35,'installedPath':_0x52eeb3[_0x16fc5d(0xc9)],'reason':_0x57e213 instanceof Error?_0x57e213[_0x16fc5d(0xcc)]:String(_0x57e213),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x1830a0={}){const _0x4c85cb=a132_0x5696fa,_0x44b291=_0x1830a0['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x5e3d01;try{_0x5e3d01=readSource(_0x44b291);}catch(_0x586498){return{'state':'unverifiable','packageVersion':_0x4c85cb(0xa9),'reason':_0x586498 instanceof Error?_0x586498[_0x4c85cb(0xcc)]:String(_0x586498),'repairCommand':REPAIR_COMMAND};}const _0x369c6e=installedSkillPath(_0x1830a0[_0x4c85cb(0xd2)]??homedir());if(_0x369c6e[_0x4c85cb(0xc0)]===_0x4c85cb(0xd5))return{'state':_0x4c85cb(0xd5),'packageVersion':_0x5e3d01[_0x4c85cb(0xb3)],'repairCommand':REPAIR_COMMAND};if(_0x369c6e[_0x4c85cb(0xc0)]===_0x4c85cb(0xc7))return{'state':'unverifiable','packageVersion':_0x5e3d01[_0x4c85cb(0xb3)],'reason':_0x369c6e[_0x4c85cb(0xc1)],'repairCommand':REPAIR_COMMAND};try{const _0x51bb9d=frontmatterValue(readFileSync(join(_0x369c6e[_0x4c85cb(0xc9)],'SKILL.md'),_0x4c85cb(0xd4)),_0x4c85cb(0xbd));if(_0x51bb9d!==_0x5e3d01['skillVersion'])return{'state':'version_mismatch','packageVersion':_0x5e3d01['packageVersion'],'skillVersion':_0x51bb9d,'installedPath':_0x369c6e['path'],'repairCommand':REPAIR_COMMAND};const _0x4a7b14=listFiles(_0x369c6e[_0x4c85cb(0xc9)]),_0x2ef3f5=digestFiles(_0x369c6e[_0x4c85cb(0xc9)],_0x4a7b14);return{'state':sameFiles(_0x4a7b14,_0x5e3d01[_0x4c85cb(0xaa)]['files'])&&_0x2ef3f5===_0x5e3d01[_0x4c85cb(0xaa)][_0x4c85cb(0xde)]?_0x4c85cb(0xbf):_0x4c85cb(0xb2),'packageVersion':_0x5e3d01[_0x4c85cb(0xb3)],'skillVersion':_0x51bb9d,'installedPath':_0x369c6e[_0x4c85cb(0xc9)],'digest':_0x2ef3f5,'repairCommand':REPAIR_COMMAND};}catch(_0x38e753){return{'state':_0x4c85cb(0xc7),'packageVersion':_0x5e3d01['packageVersion'],'installedPath':_0x369c6e[_0x4c85cb(0xc9)],'reason':_0x38e753 instanceof Error?_0x38e753[_0x4c85cb(0xcc)]:String(_0x38e753),'repairCommand':REPAIR_COMMAND};}}function a132_0x53d0(_0x39367f,_0x5859a2){_0x39367f=_0x39367f-0xa9;const _0x5503c9=a132_0x5503();let _0x53d0f8=_0x5503c9[_0x39367f];return _0x53d0f8;}function failure(_0x12cb74,_0x2b4750,_0x512564,_0x5d9832){const _0x3050c2=a132_0x5696fa;return{'ok':![],'code':_0x12cb74,'packageVersion':_0x2b4750[_0x3050c2(0xb3)],'skillVersion':_0x2b4750[_0x3050c2(0xd3)],'installedPath':_0x5d9832,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x512564 instanceof Error?_0x512564[_0x3050c2(0xcc)]:String(_0x512564)};}export function installBuiltinSkill(_0x7b61a2={}){const _0x47201e=a132_0x5696fa,_0x3cd796=_0x7b61a2[_0x47201e(0xc3)]??DEFAULT_PACKAGE_ROOT,_0x517ad7=_0x7b61a2[_0x47201e(0xd2)]??homedir();let _0x3771e9;try{_0x3771e9=readSource(_0x3cd796);}catch(_0x5684e9){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':_0x47201e(0xa9)},_0x5684e9);}const _0xac5edf=inspectBuiltinSkill({'packageRoot':_0x3cd796,'home':_0x517ad7}),_0x51f86f=runNpxSkillsAddGlobal(_0x3cd796,_0x3771e9['root'],{'stdio':_0x7b61a2['stdio']??_0x47201e(0xd9),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x517ad7}});if(_0x51f86f[_0x47201e(0xbe)])return{'ok':!![],'packageVersion':_0x3771e9[_0x47201e(0xb3)],'skillVersion':_0x3771e9['skillVersion'],'installedPath':_0xac5edf[_0x47201e(0xd0)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x51f86f['ok'])return failure('INSTALL_FAILED',_0x3771e9,_0x51f86f['error']??_0x47201e(0xbc)+_0x51f86f[_0x47201e(0xcf)]);const _0x483dd2=inspectBuiltinSkill({'packageRoot':_0x3cd796,'home':_0x517ad7});if(_0x483dd2[_0x47201e(0xc0)]!==_0x47201e(0xbf))return failure(_0x47201e(0xb9),_0x3771e9,_0x483dd2[_0x47201e(0xc1)]??_0x47201e(0xdb)+_0x483dd2['state'],_0x483dd2[_0x47201e(0xd0)]);return{'ok':!![],'packageVersion':_0x3771e9[_0x47201e(0xb3)],'skillVersion':_0x3771e9['skillVersion'],'installedPath':_0x483dd2[_0x47201e(0xd0)],'changed':_0xac5edf[_0x47201e(0xc0)]!==_0x47201e(0xbf),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- const a133_0x5524b0=a133_0x49b6;function a133_0x49b6(_0xb002f,_0x4780ae){_0xb002f=_0xb002f-0x1cd;const _0x4672b1=a133_0x4672();let _0x49b629=_0x4672b1[_0xb002f];return _0x49b629;}(function(_0x5748f3,_0x2c7ee9){const _0x3c2e75=a133_0x49b6,_0x154fc4=_0x5748f3();while(!![]){try{const _0x53952c=parseInt(_0x3c2e75(0x1ee))/0x1*(-parseInt(_0x3c2e75(0x1cd))/0x2)+parseInt(_0x3c2e75(0x1d2))/0x3*(parseInt(_0x3c2e75(0x1d1))/0x4)+parseInt(_0x3c2e75(0x1ec))/0x5+-parseInt(_0x3c2e75(0x1d4))/0x6+parseInt(_0x3c2e75(0x1e4))/0x7+parseInt(_0x3c2e75(0x1e8))/0x8+-parseInt(_0x3c2e75(0x1eb))/0x9;if(_0x53952c===_0x2c7ee9)break;else _0x154fc4['push'](_0x154fc4['shift']());}catch(_0x190b01){_0x154fc4['push'](_0x154fc4['shift']());}}}(a133_0x4672,0xcd350));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a133_0x5679a2}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a133_0x5679a2;function a133_0x4672(){const _0x271f66=['3037950axIHsR','NPM_CONFIG_GLOBAL','\x20failed\x20target(s)','pipe','stdout','trim','reason','status','join','skills@latest','checked','PERMISSION_DENIED','npx\x20terminated\x20by\x20signal\x20','match','INSTALL_PARTIAL','EPERM','10553641JMvKBc','npm_config_global','stdio','npx','12761072LIBCRS','filter','internalSkillSource','25592931lEmPeH','4153465zXyGNh','ENOENT','87GhtPfG','CHILD_EXIT_NONZERO','SKILL_NOT_INSTALLED','stderr','log','\x22\x20install\x20state:\x20','unverifiable','message','EACCES','25748ctosve','state','absent','NPX_NOT_FOUND','708iXLYxq','23340CPNNvO','Skill\x20\x22'];a133_0x4672=function(){return _0x271f66;};return a133_0x4672();}export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a133_0x5524b0(0x1ea)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG['globalSkillName'];export function resolveGlobalSkillName(_0x490e4b){const _0x5b9d81=a133_0x5524b0;switch(_0x490e4b[_0x5b9d81(0x1d9)]()){case LOVRABET_SKILL_SOURCE:case LOVRABET_SKILL_GIT_SOURCE:return LOVRABET_GLOBAL_SKILL_NAME;default:return undefined;}}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x3c144c,_0x201e72,_0x88be69){return{'ok':![],'status':_0x201e72,'code':_0x3c144c,'error':'['+_0x3c144c+']\x20'+_0x88be69};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x9bcb1b,_0x2ff0b3=LOVRABET_SKILL_SOURCE,_0x4eefd9){const _0x11cbe6=a133_0x5524b0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4dc398=resolveNpmBin(_0x11cbe6(0x1e7)),_0x15a4f5=['-y',_0x11cbe6(0x1dd),'add',_0x2ff0b3,'-g','-y'],_0x5071b4=[_0x4dc398,..._0x15a4f5][_0x11cbe6(0x1dc)]('\x20');console[_0x11cbe6(0x1f2)]('*\x20'+_0x5071b4);const _0x56f333={...process.env};delete _0x56f333[_0x11cbe6(0x1e5)],delete _0x56f333[_0x11cbe6(0x1d5)];const _0x2ff8b7=spawnSync(_0x4dc398,_0x15a4f5,{'cwd':_0x9bcb1b,'stdio':_0x11cbe6(0x1d7),'env':_0x56f333,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x3a35da=[_0x2ff8b7[_0x11cbe6(0x1d8)]?_0x2ff8b7[_0x11cbe6(0x1d8)]['toString']():'',_0x2ff8b7[_0x11cbe6(0x1f1)]?_0x2ff8b7[_0x11cbe6(0x1f1)]['toString']():''][_0x11cbe6(0x1e9)](Boolean)[_0x11cbe6(0x1dc)]('\x0a')[_0x11cbe6(0x1d9)]();_0x4eefd9?.[_0x11cbe6(0x1e6)]!==_0x11cbe6(0x1d7)&&_0x3a35da&&console[_0x11cbe6(0x1f2)](_0x3a35da);if(_0x2ff8b7['error']){const _0x22b4fc=_0x2ff8b7['error'],_0x31cb5b=_0x22b4fc['code']===_0x11cbe6(0x1ed)?_0x11cbe6(0x1d0):_0x22b4fc['code']===_0x11cbe6(0x1e3)||_0x22b4fc['code']===_0x11cbe6(0x1f6)?_0x11cbe6(0x1df):'SPAWN_FAILED';return failure(_0x31cb5b,_0x2ff8b7[_0x11cbe6(0x1db)],_0x22b4fc[_0x11cbe6(0x1f5)]);}if(_0x2ff8b7['signal'])return failure('CHILD_TERMINATED',_0x2ff8b7['status'],_0x11cbe6(0x1e0)+_0x2ff8b7['signal']);if(_0x2ff8b7[_0x11cbe6(0x1db)]!==0x0)return failure(_0x11cbe6(0x1ef),_0x2ff8b7[_0x11cbe6(0x1db)],_0x3a35da||'exit\x20'+(_0x2ff8b7['status']??'unknown'));const _0x2b241e=_0x3a35da[_0x11cbe6(0x1e1)](/Failed to install\s+(\d+)/i);if(_0x2b241e&&Number(_0x2b241e[0x1])>0x0)return failure(_0x11cbe6(0x1e2),0x0,'Installer\x20reported\x20'+_0x2b241e[0x1]+_0x11cbe6(0x1d6)+(_0x3a35da?':\x0a'+_0x3a35da:''));const _0x1b3622=_0x4eefd9?.['expectedSkillName']??resolveGlobalSkillName(_0x2ff0b3);if(_0x1b3622){const _0x4849a7=resolveInstalledSkill(_0x1b3622,_0x4eefd9?.['presence']);if(_0x4849a7[_0x11cbe6(0x1ce)]===_0x11cbe6(0x1cf))return failure(_0x11cbe6(0x1f0),0x0,_0x11cbe6(0x1d3)+_0x1b3622+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x4849a7[_0x11cbe6(0x1de)][_0x11cbe6(0x1dc)](',\x20')+')');_0x4849a7[_0x11cbe6(0x1ce)]===_0x11cbe6(0x1f4)&&console['warn']('!\x20Could\x20not\x20verify\x20\x22'+_0x1b3622+_0x11cbe6(0x1f3)+_0x4849a7[_0x11cbe6(0x1da)]);}return{'ok':!![],'status':0x0};}
1
+ const a133_0x5727ce=a133_0x32ec;(function(_0x3be807,_0x29dd26){const _0x3bff49=a133_0x32ec,_0x3e0dab=_0x3be807();while(!![]){try{const _0x140dcc=-parseInt(_0x3bff49(0x158))/0x1*(-parseInt(_0x3bff49(0x153))/0x2)+parseInt(_0x3bff49(0x12e))/0x3+-parseInt(_0x3bff49(0x134))/0x4*(parseInt(_0x3bff49(0x148))/0x5)+-parseInt(_0x3bff49(0x129))/0x6*(parseInt(_0x3bff49(0x14a))/0x7)+-parseInt(_0x3bff49(0x151))/0x8+-parseInt(_0x3bff49(0x141))/0x9*(-parseInt(_0x3bff49(0x155))/0xa)+parseInt(_0x3bff49(0x154))/0xb;if(_0x140dcc===_0x29dd26)break;else _0x3e0dab['push'](_0x3e0dab['shift']());}catch(_0xf0d002){_0x3e0dab['push'](_0x3e0dab['shift']());}}}(a133_0x53b0,0xc4fd3));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a133_0x1a85da}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a133_0x32ec(_0x2a54b7,_0x2ee235){_0x2a54b7=_0x2a54b7-0x128;const _0x53b0f8=a133_0x53b0();let _0x32ece6=_0x53b0f8[_0x2a54b7];return _0x32ece6;}import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a133_0x1a85da;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a133_0x5727ce(0x12a)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG['globalSkillName'];export function resolveGlobalSkillName(_0x40673f){const _0x29c247=a133_0x5727ce;switch(_0x40673f[_0x29c247(0x14c)]()){case LOVRABET_SKILL_SOURCE:case LOVRABET_SKILL_GIT_SOURCE:return LOVRABET_GLOBAL_SKILL_NAME;default:return undefined;}}function a133_0x53b0(){const _0xc52349=['stderr','stdout','CHILD_EXIT_NONZERO','error','log','presence','50ufvCjr','exit\x20','2448803zGQNGZ','signal','trim','npx','npx\x20terminated\x20by\x20signal\x20','INSTALL_PARTIAL','EPERM','9740776HGiHFv','code','4zAlreu','18520095KKgwec','10wpJftO','stdio','filter','165730PlDlKX','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','SPAWN_FAILED','absent','\x22\x20install\x20state:\x20','12NzDdlO','internalSkillSource','reason','match','!\x20Could\x20not\x20verify\x20\x22','1985262HejUzT','npm_config_global','checked','join','EACCES','unknown','306040bmIMGX','expectedSkillName','unverifiable','skipNpxSkillsEnvSuffix','Skill\x20\x22','Installer\x20reported\x20','\x20failed\x20target(s)','CHILD_TERMINATED','status','warn','toString','state','NPX_NOT_FOUND','7311267opvoqf'];a133_0x53b0=function(){return _0xc52349;};return a133_0x53b0();}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a133_0x5727ce(0x137)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0xcbb839,_0x1ea4df,_0x15e6b2){return{'ok':![],'status':_0x1ea4df,'code':_0xcbb839,'error':'['+_0xcbb839+']\x20'+_0x15e6b2};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x47c432,_0x56df7a=LOVRABET_SKILL_SOURCE,_0x47d43e){const _0x2202f0=a133_0x5727ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3efdb2=resolveNpmBin(_0x2202f0(0x14d)),_0x5936ce=['-y','skills@latest','add',_0x56df7a,'-g','-y'],_0x3fb37f=[_0x3efdb2,..._0x5936ce][_0x2202f0(0x131)]('\x20');console[_0x2202f0(0x146)]('*\x20'+_0x3fb37f);const _0x1af4ab={...process.env};delete _0x1af4ab[_0x2202f0(0x12f)],delete _0x1af4ab['NPM_CONFIG_GLOBAL'];const _0x1cea5a=spawnSync(_0x3efdb2,_0x5936ce,{'cwd':_0x47c432,'stdio':'pipe','env':_0x1af4ab,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x29496e=[_0x1cea5a[_0x2202f0(0x143)]?_0x1cea5a['stdout'][_0x2202f0(0x13e)]():'',_0x1cea5a[_0x2202f0(0x142)]?_0x1cea5a['stderr']['toString']():''][_0x2202f0(0x157)](Boolean)['join']('\x0a')[_0x2202f0(0x14c)]();_0x47d43e?.[_0x2202f0(0x156)]!=='pipe'&&_0x29496e&&console[_0x2202f0(0x146)](_0x29496e);if(_0x1cea5a[_0x2202f0(0x145)]){const _0x217f28=_0x1cea5a[_0x2202f0(0x145)],_0x43f4b9=_0x217f28[_0x2202f0(0x152)]==='ENOENT'?_0x2202f0(0x140):_0x217f28[_0x2202f0(0x152)]===_0x2202f0(0x150)||_0x217f28['code']===_0x2202f0(0x132)?'PERMISSION_DENIED':_0x2202f0(0x15a);return failure(_0x43f4b9,_0x1cea5a[_0x2202f0(0x13c)],_0x217f28['message']);}if(_0x1cea5a[_0x2202f0(0x14b)])return failure(_0x2202f0(0x13b),_0x1cea5a[_0x2202f0(0x13c)],_0x2202f0(0x14e)+_0x1cea5a[_0x2202f0(0x14b)]);if(_0x1cea5a[_0x2202f0(0x13c)]!==0x0)return failure(_0x2202f0(0x144),_0x1cea5a[_0x2202f0(0x13c)],_0x29496e||_0x2202f0(0x149)+(_0x1cea5a['status']??_0x2202f0(0x133)));const _0x5281ca=_0x29496e[_0x2202f0(0x12c)](/Failed to install\s+(\d+)/i);if(_0x5281ca&&Number(_0x5281ca[0x1])>0x0)return failure(_0x2202f0(0x14f),0x0,_0x2202f0(0x139)+_0x5281ca[0x1]+_0x2202f0(0x13a)+(_0x29496e?':\x0a'+_0x29496e:''));const _0x269427=_0x47d43e?.[_0x2202f0(0x135)]??resolveGlobalSkillName(_0x56df7a);if(_0x269427){const _0x3efe57=resolveInstalledSkill(_0x269427,_0x47d43e?.[_0x2202f0(0x147)]);if(_0x3efe57[_0x2202f0(0x13f)]===_0x2202f0(0x15b))return failure('SKILL_NOT_INSTALLED',0x0,_0x2202f0(0x138)+_0x269427+_0x2202f0(0x159)+_0x3efe57[_0x2202f0(0x130)][_0x2202f0(0x131)](',\x20')+')');_0x3efe57[_0x2202f0(0x13f)]===_0x2202f0(0x136)&&console[_0x2202f0(0x13d)](_0x2202f0(0x12d)+_0x269427+_0x2202f0(0x128)+_0x3efe57[_0x2202f0(0x12b)]);}return{'ok':!![],'status':0x0};}