@lovrabet/lovrabet-cli 2.1.22-beta.3 → 2.1.22-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/raw-flags.js +1 -1
  92. package/lib/framework/response.js +1 -1
  93. package/lib/framework/runner-confirmation.js +1 -1
  94. package/lib/framework/runner-error.js +1 -1
  95. package/lib/framework/runner.js +1 -1
  96. package/lib/framework/schema-export.js +1 -1
  97. package/lib/framework/service-order.js +1 -1
  98. package/lib/framework/types.js +1 -1
  99. package/lib/generated/build-info.d.ts +4 -4
  100. package/lib/generated/build-info.js +1 -1
  101. package/lib/help.js +1 -1
  102. package/lib/runtime/event.js +1 -1
  103. package/lib/runtime/index.js +1 -1
  104. package/lib/runtime/queue.js +1 -1
  105. package/lib/runtime/resolve.js +1 -1
  106. package/lib/skills/npx-skills-add.js +1 -1
  107. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  108. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  109. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  110. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  111. package/lib/skills/runtime-skill-sync/links.js +1 -1
  112. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  113. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  114. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  115. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  116. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  117. package/lib/skills/runtime-skill-sync/push.js +1 -1
  118. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  119. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  120. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  121. package/lib/skills/runtime-skill-sync.js +1 -1
  122. package/lib/utils/apply-jq-filter.js +1 -1
  123. package/lib/utils/logger.js +1 -1
  124. package/lib/utils/lossless-json.js +1 -1
  125. package/lib/utils/params.js +1 -1
  126. package/lib/utils/platform.js +1 -1
  127. package/lib/utils/update-notice.js +1 -1
  128. package/lib/utils/version.js +1 -1
  129. package/lib/utils/write-cli-side-channel.js +1 -1
  130. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1f074a,_0x2f0e82){const _0x52f7e9=a94_0x5174,_0xc2bd07=_0x1f074a();while(!![]){try{const _0x513383=parseInt(_0x52f7e9(0x198))/0x1*(parseInt(_0x52f7e9(0x1b2))/0x2)+-parseInt(_0x52f7e9(0x1c4))/0x3*(-parseInt(_0x52f7e9(0x1c7))/0x4)+parseInt(_0x52f7e9(0x18d))/0x5*(-parseInt(_0x52f7e9(0x1b5))/0x6)+parseInt(_0x52f7e9(0x1ab))/0x7+parseInt(_0x52f7e9(0x1a6))/0x8+parseInt(_0x52f7e9(0x1b8))/0x9*(-parseInt(_0x52f7e9(0x1b0))/0xa)+-parseInt(_0x52f7e9(0x1bd))/0xb;if(_0x513383===_0x2f0e82)break;else _0xc2bd07['push'](_0xc2bd07['shift']());}catch(_0x4d4b72){_0xc2bd07['push'](_0xc2bd07['shift']());}}}(a94_0x5067,0xbbb07));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a94_0x5067(){const _0x1629f8=['mergedCli','_notice','filter','11724548IoCGqx','has','catch','validation','object','format','cancelled','3plkanW','items','doctor','4091788AcSsGF','nonInteractive','service','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','appcode','production','newConfigFileName','includes','confirmHighRisk','ACCESS_KEY','authRequired','../core/api-client.js','5pXHWpZ','error','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','env','pageSize','schema','rawFlags','appCodeSource','pretty','Set\x20accessKey\x20in\x20','../core/sdk-client.js','35asjwMm','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','High-risk\x20operation\x20`','command','APPCODE','resolve','defaultPageSize','apiDomain','currentApp','string','appCode','local-alias','../commands/app/remote-source.js','Run\x20`','2235200gpJour','map','\x20or\x20pass\x20','defaultApp','name','4930961YIZINZ','accessKey','app','execute','trim','10RSBhAJ','requiresAppCode','64936Fpzduu','verbose','\x20\x20To\x20proceed:\x20','1507758Bvzdsx','requiresAuth','appcode\x20\x22','9514926PzzBgi','Unknown\x20app:\x20'];a94_0x5067=function(){return _0x1629f8;};return a94_0x5067();}import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x4dff03){return void _0x4dff03,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x546dbd,_0x221e4f){const _0xd987b8=a94_0x5174,_0x5e5b99=typeof _0x221e4f['app']===_0xd987b8(0x1a1)&&_0x221e4f[_0xd987b8(0x1ad)][_0xd987b8(0x1af)]();return{'rawFlags':_0x221e4f,'appCode':_0x546dbd['appCode']||productEnv('APPCODE')||(_0x5e5b99?undefined:readAppCodeFromConfig()),'appCodeSource':_0x546dbd[_0xd987b8(0x194)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x221e4f),'defaultFormat':_0x546dbd[_0xd987b8(0x1c2)],'defaultPageSize':_0x546dbd[_0xd987b8(0x191)],'defaultVerbose':_0x546dbd[_0xd987b8(0x1b3)],'riskLevel':_0x546dbd['riskLevel'],'accessKey':_0x546dbd['accessKey'],'env':_0x546dbd[_0xd987b8(0x190)],'mergedCli':{'defaultApp':_0x546dbd[_0xd987b8(0x1a9)],'currentApp':_0x546dbd[_0xd987b8(0x1a0)],'appCode':_0x546dbd[_0xd987b8(0x1a2)]}};}export function createLovrabetRunnerAdapter(_0x1535e7={}){const _0x1443d6=a94_0x5174,_0x4da58c={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1443d6(0x1bc)](_0x42fbfb=>PIPELINE_FLAG_NAMES[_0x1443d6(0x1be)](_0x42fbfb[_0x1443d6(0x1aa)]))[_0x1443d6(0x1a7)](({name:_0x28a1e7,type:_0x59cc3a,description:_0x1b285e})=>({'name':_0x28a1e7,'type':_0x59cc3a,'description':_0x1b285e})),'formatOutput':_0x1535e7['formatOutput']??formatOutput,'getCommandLabel'(_0x1e6224){const _0x2c6d3c=_0x1443d6;return CLI_BIN_NAME+'\x20'+_0x1e6224[_0x2c6d3c(0x1c9)]+'\x20'+_0x1e6224[_0x2c6d3c(0x19b)];},'riskPolicy':{'onViolation'(_0xfa7009){const _0x39ce08=_0x1443d6;console[_0x39ce08(0x18e)](_0xfa7009);},'createError'(_0xeb1783){const _0x20d672=_0x1443d6;return CliErrors[_0x20d672(0x1c3)](_0xeb1783);}},async 'prepare'(_0x1ddc7e,_0x5eb419){const _0x46553c=_0x1443d6,_0x5d885a=resolveAuthMode(_0x5eb419);if(_0x1ddc7e[_0x46553c(0x1b6)]!==![]){if(!_0x5eb419[_0x46553c(0x1ac)])throw CliErrors[_0x46553c(0x1d1)](_0x46553c(0x196)+PRODUCT_CONFIG[_0x46553c(0x1cd)]+_0x46553c(0x1a8)+productEnvName(_0x46553c(0x1d0))+'.');const {setActiveAK:_0x4aca8d}=await import(_0x46553c(0x1d2));_0x4aca8d(_0x5eb419[_0x46553c(0x1ac)]);}let _0x47a06a='';if(_0x1ddc7e[_0x46553c(0x1b1)]!==![]){_0x47a06a=_0x5eb419['appCode']??'',_0x47a06a=await resolveExplicitAppName(_0x1ddc7e,_0x5eb419,_0x47a06a);if(!_0x47a06a){await assertSelectedAppNameIsRuntimeAccessible(_0x1ddc7e,_0x5eb419);throw CliErrors['configMissing'](_0x46553c(0x199)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1ddc7e,_0x5eb419,_0x47a06a);}if(_0x47a06a){const {initSdkClient:_0x3d99fd}=await import(_0x46553c(0x197));_0x3d99fd({'appCode':_0x47a06a,'env':_0x5eb419[_0x46553c(0x190)]??_0x46553c(0x1cc),'accessKey':_0x5eb419[_0x46553c(0x1ac)],'authMode':_0x5d885a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5eb419['defaultVerbose']},'numbers':{'pagesize':_0x5eb419[_0x46553c(0x19e)]}},'extras':{'appCode':_0x47a06a,'cookie':'','apiDomain':_0x5eb419[_0x46553c(0x19f)],'apiDir':'','accessKey':_0x5eb419['accessKey'],'envName':_0x5eb419[_0x46553c(0x190)],'mergedCli':_0x5eb419['mergedCli']}};},'confirmHighRisk':_0x1535e7[_0x1443d6(0x1cf)]??(async({def:_0x8c1ff9,env:_0x20b97c,flags:_0xe8e576,commandLabel:_0x1b2629})=>{const _0x49a442=_0x1443d6;if(_0x20b97c['isNonInteractive']){const _0x14a223=reconstructCommandArgv(_0x8c1ff9,_0xe8e576);throw CliErrors[_0x49a442(0x1c0)](_0x49a442(0x19a)+_0x1b2629+_0x49a442(0x1ca)+(_0x49a442(0x1b4)+_0x14a223));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x8c1ff9,_0x1b2629,_0xe8e576),'createCancelledError':_0x3cdf53=>CliErrors['cancelled'](_0x3cdf53)});}),'mapDryRunError'(_0x930b57){return mapUserFacingExecuteError(_0x930b57);},'mapExecuteError'(_0x17cc27){return mapUserFacingExecuteError(_0x17cc27);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4da58c;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0xec5395=a94_0x5174;try{if(sdkClientInitialized){const {clearSdkClient:_0x46f633}=await import(_0xec5395(0x197));_0x46f633();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x5b4b24}=await import(_0xec5395(0x1d2));_0x5b4b24();}}async function resolveExplicitAppName(_0x3077fa,_0x52d3d4,_0x2909a4){const _0x25ed36=a94_0x5174;if(_0x3077fa['requiresAppCode']===![])return _0x2909a4;const _0x5a95fd=typeof _0x52d3d4[_0x25ed36(0x193)][_0x25ed36(0x1ad)]==='string'?_0x52d3d4['rawFlags'][_0x25ed36(0x1ad)][_0x25ed36(0x1af)]():'';if(!_0x5a95fd)return _0x2909a4;const _0x36f0a8=typeof _0x52d3d4[_0x25ed36(0x193)][_0x25ed36(0x1cb)]===_0x25ed36(0x1a1)&&_0x52d3d4['rawFlags']['appcode'][_0x25ed36(0x1af)]()||productEnv(_0x25ed36(0x19c));if(_0x36f0a8||_0x52d3d4['appCodeSource']===_0x25ed36(0x1a3))return _0x2909a4;const {getRemoteAppList:_0x26c5fd}=await import(_0x25ed36(0x1a4)),_0x72a5cf=await _0x26c5fd({'env':_0x52d3d4['env']??'production','accessKey':_0x52d3d4[_0x25ed36(0x1ac)]}),_0x12cabd=findAppByName(_0x72a5cf[_0x25ed36(0x1c5)],_0x5a95fd);if(_0x12cabd&&!isRuntimeAccessibleApp(_0x12cabd))throw runtimeInaccessibleAppError(_0x12cabd,'\x22'+_0x5a95fd+'\x22');const _0x483f53=_0x12cabd?.['appCode']?.[_0x25ed36(0x1af)]();if(_0x483f53)return _0x483f53;throw CliErrors[_0x25ed36(0x1c0)](_0x25ed36(0x1b9)+_0x5a95fd,_0x25ed36(0x1a5)+CLI_BIN_NAME+_0x25ed36(0x18f)+_0x5a95fd+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x25ed36(0x1cd)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xdc51ff,_0xeb6d4f){const _0x4d9d44=a94_0x5174;if(_0xdc51ff[_0x4d9d44(0x1b1)]===![]||!_0xeb6d4f[_0x4d9d44(0x1ac)])return;const _0x8b5ba0=(typeof _0xeb6d4f['rawFlags'][_0x4d9d44(0x1ad)]===_0x4d9d44(0x1a1)&&_0xeb6d4f[_0x4d9d44(0x193)][_0x4d9d44(0x1ad)][_0x4d9d44(0x1af)]()?_0xeb6d4f[_0x4d9d44(0x193)][_0x4d9d44(0x1ad)]:_0xeb6d4f[_0x4d9d44(0x1ba)]?.[_0x4d9d44(0x1a0)]??_0xeb6d4f[_0x4d9d44(0x1ba)]?.[_0x4d9d44(0x1a9)])?.[_0x4d9d44(0x1af)]();if(!_0x8b5ba0)return;const {getRemoteAppList:_0x15653f}=await import(_0x4d9d44(0x1a4)),_0x1ad578=await _0x15653f({'env':_0xeb6d4f[_0x4d9d44(0x190)]??'production','accessKey':_0xeb6d4f[_0x4d9d44(0x1ac)]}),_0x5103dd=findAppByName(_0x1ad578[_0x4d9d44(0x1c5)],_0x8b5ba0);if(_0x5103dd&&!isRuntimeAccessibleApp(_0x5103dd))throw runtimeInaccessibleAppError(_0x5103dd,'\x22'+_0x8b5ba0+'\x22');}function a94_0x5174(_0x3ebf72,_0x25505a){_0x3ebf72=_0x3ebf72-0x18d;const _0x506728=a94_0x5067();let _0x51746d=_0x506728[_0x3ebf72];return _0x51746d;}async function assertAppCodeIsRuntimeAccessible(_0x1dcf0a,_0x474de5,_0xc22aa6){const _0x3ac6f0=a94_0x5174;if(_0x1dcf0a[_0x3ac6f0(0x1b1)]===![]||!_0x474de5['accessKey'])return;const {getRemoteAppList:_0x49e01e}=await import('../commands/app/remote-source.js'),_0x32885c=await _0x49e01e({'env':_0x474de5[_0x3ac6f0(0x190)]??_0x3ac6f0(0x1cc),'accessKey':_0x474de5[_0x3ac6f0(0x1ac)]}),_0x595d26=findAppByCode(_0x32885c['items'],_0xc22aa6);if(_0x595d26&&!isRuntimeAccessibleApp(_0x595d26))throw runtimeInaccessibleAppError(_0x595d26,_0x3ac6f0(0x1b7)+_0xc22aa6+'\x22');}export async function runCommand(_0x2b9d85,_0x546238,_0x191bd9=terminalRunnerAdapter){assertKnownCommandFlags(_0x2b9d85,_0x546238['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2b9d85)?withUpdateNotice(_0x2b9d85):_0x2b9d85,_0x546238,_0x191bd9);}function shouldAttachUpdateNotice(_0x3baf1c){const _0x193a25=a94_0x5174;return!['update',_0x193a25(0x192),_0x193a25(0x1c6)][_0x193a25(0x1ce)](_0x3baf1c[_0x193a25(0x1c9)]);}function withUpdateNotice(_0x2c4fff){return{..._0x2c4fff,async 'execute'(_0x1d97e5){const _0x36ff4a=a94_0x5174,_0x40de0b=shouldResolveUpdateNotice(_0x1d97e5)?resolveLatestUpdateNotice()[_0x36ff4a(0x1bf)](()=>null):Promise[_0x36ff4a(0x19d)](null),_0x35bde8=await _0x2c4fff[_0x36ff4a(0x1ae)](_0x1d97e5);return attachUpdateNotice(_0x35bde8,await _0x40de0b);}};}function shouldResolveUpdateNotice(_0xf34f5e){const _0x5c3f42=a94_0x5174;return _0xf34f5e[_0x5c3f42(0x1c2)]===_0x5c3f42(0x195)&&!_0xf34f5e[_0x5c3f42(0x1c8)];}function attachUpdateNotice(_0x365d62,_0x110fb7){const _0x518b87=a94_0x5174;if(!_0x110fb7||!_0x365d62||typeof _0x365d62!==_0x518b87(0x1c1))return _0x365d62;const _0x8ac8db=_0x365d62,_0x3b5433=typeof _0x8ac8db[_0x518b87(0x1bb)]===_0x518b87(0x1c1)&&_0x8ac8db[_0x518b87(0x1bb)]!==null?_0x8ac8db[_0x518b87(0x1bb)]:{};return{..._0x8ac8db,'_notice':{..._0x3b5433,'update':_0x110fb7}};}
1
+ (function(_0x16ff8c,_0x2d3499){const _0x27375a=a94_0x415f,_0x92a792=_0x16ff8c();while(!![]){try{const _0x4e3b10=-parseInt(_0x27375a(0x1c0))/0x1+-parseInt(_0x27375a(0x198))/0x2*(-parseInt(_0x27375a(0x1af))/0x3)+parseInt(_0x27375a(0x1b6))/0x4*(parseInt(_0x27375a(0x1bb))/0x5)+-parseInt(_0x27375a(0x19e))/0x6*(parseInt(_0x27375a(0x1a0))/0x7)+-parseInt(_0x27375a(0x19a))/0x8+-parseInt(_0x27375a(0x1ca))/0x9*(-parseInt(_0x27375a(0x1c1))/0xa)+-parseInt(_0x27375a(0x1b8))/0xb*(-parseInt(_0x27375a(0x1a8))/0xc);if(_0x4e3b10===_0x2d3499)break;else _0x92a792['push'](_0x92a792['shift']());}catch(_0x54cfdc){_0x92a792['push'](_0x92a792['shift']());}}}(a94_0x1314,0xc683d));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x281173){const _0x46f37d=a94_0x415f;return void _0x281173,AUTH_MODE[_0x46f37d(0x1a1)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x29099a,_0x277314){const _0x1c001e=a94_0x415f,_0x32e59b=typeof _0x277314[_0x1c001e(0x1a9)]==='string'&&_0x277314[_0x1c001e(0x1a9)][_0x1c001e(0x1cb)]();return{'rawFlags':_0x277314,'appCode':_0x29099a[_0x1c001e(0x1c5)]||productEnv(_0x1c001e(0x1cf))||(_0x32e59b?undefined:readAppCodeFromConfig()),'appCodeSource':_0x29099a[_0x1c001e(0x1b3)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x277314),'defaultFormat':_0x29099a[_0x1c001e(0x1b0)],'defaultPageSize':_0x29099a[_0x1c001e(0x1b4)],'defaultVerbose':_0x29099a[_0x1c001e(0x1c7)],'riskLevel':_0x29099a[_0x1c001e(0x197)],'accessKey':_0x29099a['accessKey'],'env':_0x29099a[_0x1c001e(0x1ab)],'mergedCli':{'defaultApp':_0x29099a['defaultApp'],'currentApp':_0x29099a[_0x1c001e(0x19b)],'appCode':_0x29099a[_0x1c001e(0x1c5)]}};}export function createLovrabetRunnerAdapter(_0x1437c7={}){const _0x2aa07c=a94_0x415f,_0xd17b56={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2aa07c(0x1a7)](_0x1bacc6=>PIPELINE_FLAG_NAMES[_0x2aa07c(0x19d)](_0x1bacc6[_0x2aa07c(0x1b1)]))[_0x2aa07c(0x196)](({name:_0x2746f0,type:_0x12f166,description:_0x43a697})=>({'name':_0x2746f0,'type':_0x12f166,'description':_0x43a697})),'formatOutput':_0x1437c7[_0x2aa07c(0x1a5)]??formatOutput,'getCommandLabel'(_0x42ea0a){const _0xeb680c=_0x2aa07c;return CLI_BIN_NAME+'\x20'+_0x42ea0a[_0xeb680c(0x1ba)]+'\x20'+_0x42ea0a[_0xeb680c(0x1d6)];},'riskPolicy':{'onViolation'(_0x1e5981){console['error'](_0x1e5981);},'createError'(_0x5b2998){const _0x216afd=_0x2aa07c;return CliErrors[_0x216afd(0x1d7)](_0x5b2998);}},async 'prepare'(_0x250486,_0x1cabfa){const _0x13c8b2=_0x2aa07c,_0x4902cc=resolveAuthMode(_0x1cabfa);if(_0x250486['requiresAuth']!==![]){if(!_0x1cabfa[_0x13c8b2(0x1cd)])throw CliErrors[_0x13c8b2(0x1bc)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x13c8b2(0x1d2)]+_0x13c8b2(0x1d0)+productEnvName(_0x13c8b2(0x19c))+'.');const {setActiveAK:_0x1ba463}=await import(_0x13c8b2(0x1c2));_0x1ba463(_0x1cabfa[_0x13c8b2(0x1cd)]);}let _0x449a6c='';if(_0x250486['requiresAppCode']!==![]){_0x449a6c=_0x1cabfa['appCode']??'',_0x449a6c=await resolveExplicitAppName(_0x250486,_0x1cabfa,_0x449a6c);if(!_0x449a6c){await assertSelectedAppNameIsRuntimeAccessible(_0x250486,_0x1cabfa);throw CliErrors[_0x13c8b2(0x1b9)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x13c8b2(0x1d2)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x250486,_0x1cabfa,_0x449a6c);}if(_0x449a6c){const {initSdkClient:_0x46eda9}=await import(_0x13c8b2(0x1bd));_0x46eda9({'appCode':_0x449a6c,'env':_0x1cabfa[_0x13c8b2(0x1ab)]??'production','accessKey':_0x1cabfa['accessKey'],'authMode':_0x4902cc}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1cabfa[_0x13c8b2(0x1c3)]},'numbers':{'pagesize':_0x1cabfa[_0x13c8b2(0x1c8)]}},'extras':{'appCode':_0x449a6c,'cookie':'','apiDomain':_0x1cabfa['apiDomain'],'apiDir':'','accessKey':_0x1cabfa[_0x13c8b2(0x1cd)],'envName':_0x1cabfa['env'],'mergedCli':_0x1cabfa['mergedCli']}};},'confirmHighRisk':_0x1437c7[_0x2aa07c(0x1a3)]??(async({def:_0x54ffca,env:_0x17d48b,flags:_0x1ad1c0,commandLabel:_0xff81e9})=>{const _0x1ae00c=_0x2aa07c;if(_0x17d48b['isNonInteractive']){const _0x29a8de=reconstructCommandArgv(_0x54ffca,_0x1ad1c0);throw CliErrors['validation'](_0x1ae00c(0x19f)+_0xff81e9+_0x1ae00c(0x1d3)+('\x20\x20To\x20proceed:\x20'+_0x29a8de));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x54ffca,_0xff81e9,_0x1ad1c0),'createCancelledError':_0x32a6a2=>CliErrors['cancelled'](_0x32a6a2)});}),'mapDryRunError'(_0x2f43d0){return mapUserFacingExecuteError(_0x2f43d0);},'mapExecuteError'(_0x40fb7e){return mapUserFacingExecuteError(_0x40fb7e);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0xd17b56;}function a94_0x415f(_0x457eae,_0xe3115e){_0x457eae=_0x457eae-0x196;const _0x13145b=a94_0x1314();let _0x415f33=_0x13145b[_0x457eae];return _0x415f33;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2c5572=a94_0x415f;try{if(sdkClientInitialized){const {clearSdkClient:_0x5ef3aa}=await import(_0x2c5572(0x1bd));_0x5ef3aa();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xf4749}=await import(_0x2c5572(0x1c2));_0xf4749();}}async function resolveExplicitAppName(_0x39fc20,_0x4f8681,_0x5d7111){const _0x3abaf9=a94_0x415f;if(_0x39fc20['requiresAppCode']===![])return _0x5d7111;const _0xca87c1=typeof _0x4f8681[_0x3abaf9(0x1ae)]['app']==='string'?_0x4f8681[_0x3abaf9(0x1ae)]['app']['trim']():'';if(!_0xca87c1)return _0x5d7111;const _0x2b8305=typeof _0x4f8681['rawFlags'][_0x3abaf9(0x1a4)]===_0x3abaf9(0x1c9)&&_0x4f8681[_0x3abaf9(0x1ae)][_0x3abaf9(0x1a4)][_0x3abaf9(0x1cb)]()||productEnv('APPCODE');if(_0x2b8305||_0x4f8681['appCodeSource']===_0x3abaf9(0x1b5))return _0x5d7111;const {getRemoteAppList:_0x45f8e2}=await import('../commands/app/remote-source.js'),_0x44e289=await _0x45f8e2({'env':_0x4f8681['env']??_0x3abaf9(0x1be),'accessKey':_0x4f8681['accessKey']}),_0x315e0f=findAppByName(_0x44e289[_0x3abaf9(0x1b7)],_0xca87c1);if(_0x315e0f&&!isRuntimeAccessibleApp(_0x315e0f))throw runtimeInaccessibleAppError(_0x315e0f,'\x22'+_0xca87c1+'\x22');const _0x92c0d6=_0x315e0f?.[_0x3abaf9(0x1c5)]?.[_0x3abaf9(0x1cb)]();if(_0x92c0d6)return _0x92c0d6;throw CliErrors['validation'](_0x3abaf9(0x1b2)+_0xca87c1,_0x3abaf9(0x1d1)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0xca87c1+_0x3abaf9(0x1c6)+PRODUCT_CONFIG[_0x3abaf9(0x1d2)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x4a1dca,_0x2310db){const _0x2824db=a94_0x415f;if(_0x4a1dca[_0x2824db(0x1a2)]===![]||!_0x2310db[_0x2824db(0x1cd)])return;const _0x4c3e04=(typeof _0x2310db[_0x2824db(0x1ae)]['app']===_0x2824db(0x1c9)&&_0x2310db['rawFlags']['app'][_0x2824db(0x1cb)]()?_0x2310db[_0x2824db(0x1ae)][_0x2824db(0x1a9)]:_0x2310db[_0x2824db(0x1ce)]?.[_0x2824db(0x19b)]??_0x2310db[_0x2824db(0x1ce)]?.[_0x2824db(0x1c4)])?.[_0x2824db(0x1cb)]();if(!_0x4c3e04)return;const {getRemoteAppList:_0x3621e1}=await import(_0x2824db(0x1ad)),_0x39d8c3=await _0x3621e1({'env':_0x2310db[_0x2824db(0x1ab)]??_0x2824db(0x1be),'accessKey':_0x2310db[_0x2824db(0x1cd)]}),_0x9dd138=findAppByName(_0x39d8c3[_0x2824db(0x1b7)],_0x4c3e04);if(_0x9dd138&&!isRuntimeAccessibleApp(_0x9dd138))throw runtimeInaccessibleAppError(_0x9dd138,'\x22'+_0x4c3e04+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5af3dd,_0x3e8d7c,_0x294f9b){const _0x3779fa=a94_0x415f;if(_0x5af3dd[_0x3779fa(0x1a2)]===![]||!_0x3e8d7c[_0x3779fa(0x1cd)])return;const {getRemoteAppList:_0x5e67d9}=await import(_0x3779fa(0x1ad)),_0x51d590=await _0x5e67d9({'env':_0x3e8d7c[_0x3779fa(0x1ab)]??'production','accessKey':_0x3e8d7c[_0x3779fa(0x1cd)]}),_0xb5a447=findAppByCode(_0x51d590['items'],_0x294f9b);if(_0xb5a447&&!isRuntimeAccessibleApp(_0xb5a447))throw runtimeInaccessibleAppError(_0xb5a447,_0x3779fa(0x1ac)+_0x294f9b+'\x22');}export async function runCommand(_0x16afd1,_0x49071c,_0x1d90c3=terminalRunnerAdapter){const _0x24cfcd=a94_0x415f;assertKnownCommandFlags(_0x16afd1,_0x49071c[_0x24cfcd(0x1ae)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x16afd1)?withUpdateNotice(_0x16afd1):_0x16afd1,_0x49071c,_0x1d90c3);}function shouldAttachUpdateNotice(_0x19a507){const _0x2733da=a94_0x415f;return!['update',_0x2733da(0x1d4),_0x2733da(0x199)][_0x2733da(0x1d5)](_0x19a507[_0x2733da(0x1ba)]);}function a94_0x1314(){const _0x18c122=['appcode\x20\x22','../commands/app/remote-source.js','rawFlags','4196091byLyhl','format','name','Unknown\x20app:\x20','appCodeSource','pageSize','local-alias','328saABba','items','17930ZUvEmU','configMissing','service','52285yPGoYh','authRequired','../core/sdk-client.js','production','catch','929836IqMkrF','980RfCcdx','../core/api-client.js','defaultVerbose','defaultApp','appCode','.appcode\x20to\x20','verbose','defaultPageSize','string','36BUrVtO','trim','execute','accessKey','mergedCli','APPCODE','\x20or\x20pass\x20','Run\x20`','newConfigFileName','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','schema','includes','command','cancelled','_notice','map','riskLevel','2AytDPV','doctor','12802336HbJzQw','currentApp','ACCESS_KEY','has','24MPyxmW','High-risk\x20operation\x20`','1809409iatzHd','ClientAk','requiresAppCode','confirmHighRisk','appcode','formatOutput','nonInteractive','filter','15612fULgqi','app','resolve','env'];a94_0x1314=function(){return _0x18c122;};return a94_0x1314();}function withUpdateNotice(_0xea7e1){return{..._0xea7e1,async 'execute'(_0x58683f){const _0x1217eb=a94_0x415f,_0x4d557f=shouldResolveUpdateNotice(_0x58683f)?resolveLatestUpdateNotice()[_0x1217eb(0x1bf)](()=>null):Promise[_0x1217eb(0x1aa)](null),_0x4089a2=await _0xea7e1[_0x1217eb(0x1cc)](_0x58683f);return attachUpdateNotice(_0x4089a2,await _0x4d557f);}};}function shouldResolveUpdateNotice(_0x5138d1){const _0x372094=a94_0x415f;return _0x5138d1[_0x372094(0x1b0)]==='pretty'&&!_0x5138d1[_0x372094(0x1a6)];}function attachUpdateNotice(_0x4188a8,_0x34f412){const _0x2fd24a=a94_0x415f;if(!_0x34f412||!_0x4188a8||typeof _0x4188a8!=='object')return _0x4188a8;const _0x34ba76=_0x4188a8,_0x25005a=typeof _0x34ba76[_0x2fd24a(0x1d8)]==='object'&&_0x34ba76[_0x2fd24a(0x1d8)]!==null?_0x34ba76[_0x2fd24a(0x1d8)]:{};return{..._0x34ba76,'_notice':{..._0x25005a,'update':_0x34f412}};}
@@ -1 +1 @@
1
- (function(_0x36b333,_0x402bfa){const _0x4594ba=a95_0x17f6,_0x2f6c4b=_0x36b333();while(!![]){try{const _0x284c49=-parseInt(_0x4594ba(0x1e0))/0x1*(-parseInt(_0x4594ba(0x1e4))/0x2)+parseInt(_0x4594ba(0x1d5))/0x3*(parseInt(_0x4594ba(0x1d6))/0x4)+-parseInt(_0x4594ba(0x1da))/0x5*(-parseInt(_0x4594ba(0x1df))/0x6)+parseInt(_0x4594ba(0x1dd))/0x7+-parseInt(_0x4594ba(0x1e2))/0x8+parseInt(_0x4594ba(0x1e6))/0x9+parseInt(_0x4594ba(0x1de))/0xa*(-parseInt(_0x4594ba(0x1d7))/0xb);if(_0x284c49===_0x402bfa)break;else _0x2f6c4b['push'](_0x2f6c4b['shift']());}catch(_0x3b46e1){_0x2f6c4b['push'](_0x2f6c4b['shift']());}}}(a95_0xc1ee,0x42d1f));function a95_0x17f6(_0xb075c0,_0x9a733){_0xb075c0=_0xb075c0-0x1d5;const _0xc1eed2=a95_0xc1ee();let _0x17f6e2=_0xc1eed2[_0xb075c0];return _0x17f6e2;}import{buildSchemaPayload as a95_0x25f423}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4f8944=a95_0x17f6,{serviceRegistry:_0x17533f,findDefinition:_0x496bd2}=await import('../commands/registry.js'),_0x9907c5=new Set(_0x17533f['map'](_0x5899bd=>_0x5899bd[_0x4f8944(0x1e5)])),_0x3ae440=listDynamicServiceEntries()[_0x4f8944(0x1d9)](_0x39c35a=>!_0x9907c5[_0x4f8944(0x1db)](_0x39c35a[_0x4f8944(0x1e5)])),_0x487090=a95_0x25f423({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x17533f,_0x3ae440),'buildAllFlags':buildAllFlags,'findDefinition':(_0x3cb18,_0x134f0b)=>_0x496bd2(_0x3cb18,_0x134f0b)??findDynamicServiceDefinition(_0x3cb18,_0x134f0b)});return normalizeSchemaPayload(_0x487090);}function normalizeSchemaPayload(_0x56f2a8){const _0x1ac46c=a95_0x17f6;return{..._0x56f2a8,'schemaVersion':0x2,'services':_0x56f2a8[_0x1ac46c(0x1d8)][_0x1ac46c(0x1dc)](_0x3e7996=>({..._0x3e7996,'commands':_0x3e7996[_0x1ac46c(0x1e7)][_0x1ac46c(0x1dc)](normalizeSchemaCommand)}))};}function a95_0xc1ee(){const _0x30f339=['map','2701244neKpKY','90oLlumN','54zKMRMV','1aKEelx','none','2807088TOACNb','requiresAuth','785644WfAJrQ','service','1146447eNodJL','commands','192SCvbta','1096bvYUgI','717442dBvxmn','services','filter','159970tdCKjp','has'];a95_0xc1ee=function(){return _0x30f339;};return a95_0xc1ee();}function normalizeSchemaCommand(_0x1ad154){const _0x749df0=a95_0x17f6,_0x30359e=_0x1ad154;return{..._0x1ad154,'auth':_0x30359e['auth']??(_0x1ad154[_0x749df0(0x1e3)]?'required':_0x749df0(0x1e1))};}
1
+ (function(_0x3db99f,_0x545b3b){const _0x490b5b=a95_0x2a69,_0x309691=_0x3db99f();while(!![]){try{const _0x4dd2d0=-parseInt(_0x490b5b(0x107))/0x1*(-parseInt(_0x490b5b(0x101))/0x2)+-parseInt(_0x490b5b(0xfc))/0x3*(parseInt(_0x490b5b(0xfb))/0x4)+parseInt(_0x490b5b(0x104))/0x5*(-parseInt(_0x490b5b(0xfe))/0x6)+-parseInt(_0x490b5b(0xf6))/0x7+parseInt(_0x490b5b(0xfd))/0x8*(parseInt(_0x490b5b(0x106))/0x9)+-parseInt(_0x490b5b(0xf8))/0xa+parseInt(_0x490b5b(0x100))/0xb;if(_0x4dd2d0===_0x545b3b)break;else _0x309691['push'](_0x309691['shift']());}catch(_0xae7489){_0x309691['push'](_0x309691['shift']());}}}(a95_0x755d,0x2eb46));import{buildSchemaPayload as a95_0x257362}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a95_0x2a69(_0x49738d,_0x5996f1){_0x49738d=_0x49738d-0xf5;const _0x755d2f=a95_0x755d();let _0x2a6924=_0x755d2f[_0x49738d];return _0x2a6924;}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';function a95_0x755d(){const _0x391f08=['../commands/registry.js','service','587692xtsets','requiresAuth','719520FzDAul','auth','services','16wLLeDn','185034WnJVdO','368360lWSWbL','246sSbHFL','map','5252764FzgIpD','90qVdNAJ','required','filter','42035GaxjVl','none','54zEuxFx','4107rgKUyw'];a95_0x755d=function(){return _0x391f08;};return a95_0x755d();}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x53d3de=a95_0x2a69,{serviceRegistry:_0x41e59a,findDefinition:_0x1d310c}=await import(_0x53d3de(0x108)),_0x5f064c=new Set(_0x41e59a['map'](_0x325438=>_0x325438[_0x53d3de(0xf5)])),_0x2e39b9=listDynamicServiceEntries()[_0x53d3de(0x103)](_0x472a26=>!_0x5f064c['has'](_0x472a26['service'])),_0x5a0f9=a95_0x257362({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x41e59a,_0x2e39b9),'buildAllFlags':buildAllFlags,'findDefinition':(_0x30b1c2,_0x19aef2)=>_0x1d310c(_0x30b1c2,_0x19aef2)??findDynamicServiceDefinition(_0x30b1c2,_0x19aef2)});return normalizeSchemaPayload(_0x5a0f9);}function normalizeSchemaPayload(_0x502a2d){const _0x328371=a95_0x2a69;return{..._0x502a2d,'schemaVersion':0x2,'services':_0x502a2d[_0x328371(0xfa)][_0x328371(0xff)](_0x35f82a=>({..._0x35f82a,'commands':_0x35f82a['commands'][_0x328371(0xff)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x341bbd){const _0x30fe24=a95_0x2a69,_0x44c334=_0x341bbd;return{..._0x341bbd,'auth':_0x44c334[_0x30fe24(0xf9)]??(_0x341bbd[_0x30fe24(0xf7)]?_0x30fe24(0x102):_0x30fe24(0x105))};}
@@ -1 +1 @@
1
- function a96_0x456f(){const _0x1395e3=['891115UCbepb','45112lHZXOv','findIndex','973BBuShq','2WcCuRG','2644ZKFUOr','249723jJzeJL','30880320YXXggr','240xEfRjM','3891GAlnKM','423138JhpiGN','45IkHNPu','slice','length','service','5324726ZDvbqy'];a96_0x456f=function(){return _0x1395e3;};return a96_0x456f();}function a96_0x5516(_0x19e0dd,_0x264ea7){_0x19e0dd=_0x19e0dd-0x13f;const _0x456f7c=a96_0x456f();let _0x551684=_0x456f7c[_0x19e0dd];return _0x551684;}(function(_0x31f8cd,_0x2158c0){const _0x1c868f=a96_0x5516,_0x291700=_0x31f8cd();while(!![]){try{const _0x5000c7=parseInt(_0x1c868f(0x146))/0x1*(parseInt(_0x1c868f(0x14a))/0x2)+-parseInt(_0x1c868f(0x13f))/0x3*(-parseInt(_0x1c868f(0x14b))/0x4)+parseInt(_0x1c868f(0x141))/0x5*(-parseInt(_0x1c868f(0x140))/0x6)+-parseInt(_0x1c868f(0x149))/0x7*(-parseInt(_0x1c868f(0x147))/0x8)+-parseInt(_0x1c868f(0x14c))/0x9*(-parseInt(_0x1c868f(0x14e))/0xa)+parseInt(_0x1c868f(0x145))/0xb+-parseInt(_0x1c868f(0x14d))/0xc;if(_0x5000c7===_0x2158c0)break;else _0x291700['push'](_0x291700['shift']());}catch(_0x243987){_0x291700['push'](_0x291700['shift']());}}}(a96_0x456f,0x73c44));export function insertDynamicServicesAfterServiceTree(_0x26fb2c,_0x4435b7){const _0x4a7aa5=a96_0x5516;if(_0x4435b7[_0x4a7aa5(0x143)]===0x0)return[..._0x26fb2c];const _0x4c2b07=_0x26fb2c[_0x4a7aa5(0x148)](_0x3ba6e9=>_0x3ba6e9[_0x4a7aa5(0x144)]===_0x4a7aa5(0x144));if(_0x4c2b07<0x0)return[..._0x26fb2c,..._0x4435b7];return[..._0x26fb2c[_0x4a7aa5(0x142)](0x0,_0x4c2b07+0x1),..._0x4435b7,..._0x26fb2c[_0x4a7aa5(0x142)](_0x4c2b07+0x1)];}
1
+ (function(_0x2fb8c4,_0xe85ad){const _0x463ef9=a96_0x27fb,_0x4b83bb=_0x2fb8c4();while(!![]){try{const _0x73f53c=parseInt(_0x463ef9(0xb0))/0x1+-parseInt(_0x463ef9(0xb8))/0x2+parseInt(_0x463ef9(0xb2))/0x3+-parseInt(_0x463ef9(0xaf))/0x4*(-parseInt(_0x463ef9(0xae))/0x5)+-parseInt(_0x463ef9(0xb5))/0x6*(-parseInt(_0x463ef9(0xb3))/0x7)+parseInt(_0x463ef9(0xad))/0x8+-parseInt(_0x463ef9(0xb1))/0x9;if(_0x73f53c===_0xe85ad)break;else _0x4b83bb['push'](_0x4b83bb['shift']());}catch(_0x458fee){_0x4b83bb['push'](_0x4b83bb['shift']());}}}(a96_0x3dc3,0xd282f));export function insertDynamicServicesAfterServiceTree(_0xd505b9,_0x537cde){const _0x496fbd=a96_0x27fb;if(_0x537cde[_0x496fbd(0xb6)]===0x0)return[..._0xd505b9];const _0x204bd6=_0xd505b9[_0x496fbd(0xb7)](_0x4a1915=>_0x4a1915[_0x496fbd(0xac)]===_0x496fbd(0xac));if(_0x204bd6<0x0)return[..._0xd505b9,..._0x537cde];return[..._0xd505b9['slice'](0x0,_0x204bd6+0x1),..._0x537cde,..._0xd505b9[_0x496fbd(0xb4)](_0x204bd6+0x1)];}function a96_0x27fb(_0x5ec4a5,_0x2b0732){_0x5ec4a5=_0x5ec4a5-0xac;const _0x3dc3d4=a96_0x3dc3();let _0x27fbca=_0x3dc3d4[_0x5ec4a5];return _0x27fbca;}function a96_0x3dc3(){const _0x3413fb=['5dKHFdG','3830680fuuZuG','282458ncIfVL','9712530CnvvTQ','890079QCfdfh','752038BaePor','slice','6syXpjH','length','findIndex','1855754XSYNJF','service','9800376otmCFp'];a96_0x3dc3=function(){return _0x3413fb;};return a96_0x3dc3();}
@@ -1 +1 @@
1
- (function(_0x8c9a8d,_0x4b5aac){var _0x1f3d19=a97_0x332a,_0x4bb5e6=_0x8c9a8d();while(!![]){try{var _0x2c9c88=parseInt(_0x1f3d19(0x138))/0x1+parseInt(_0x1f3d19(0x139))/0x2+-parseInt(_0x1f3d19(0x13f))/0x3*(-parseInt(_0x1f3d19(0x13b))/0x4)+parseInt(_0x1f3d19(0x13e))/0x5+-parseInt(_0x1f3d19(0x142))/0x6*(-parseInt(_0x1f3d19(0x13d))/0x7)+parseInt(_0x1f3d19(0x13a))/0x8*(parseInt(_0x1f3d19(0x13c))/0x9)+-parseInt(_0x1f3d19(0x140))/0xa*(parseInt(_0x1f3d19(0x141))/0xb);if(_0x2c9c88===_0x4b5aac)break;else _0x4bb5e6['push'](_0x4bb5e6['shift']());}catch(_0x31db27){_0x4bb5e6['push'](_0x4bb5e6['shift']());}}}(a97_0x4a4c,0x9596f));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a97_0x332a(_0x330438,_0x4a91fa){_0x330438=_0x330438-0x138;var _0x4a4cb1=a97_0x4a4c();var _0x332a33=_0x4a4cb1[_0x330438];return _0x332a33;}function a97_0x4a4c(){var _0x137261=['1471371ocfrKw','10HhqoGV','36944182Cklpce','37998muYlVi','593642mzgMYV','1839992ojhacm','7298512gShfDi','8CaLhMe','9CaCYDm','133rmpYQk','2220440CauzPJ'];a97_0x4a4c=function(){return _0x137261;};return a97_0x4a4c();}
1
+ (function(_0x19af57,_0x530274){var _0x11a6a0=a97_0x4b76,_0x2bd590=_0x19af57();while(!![]){try{var _0x52de6c=parseInt(_0x11a6a0(0x1b4))/0x1+parseInt(_0x11a6a0(0x1ba))/0x2*(-parseInt(_0x11a6a0(0x1b9))/0x3)+-parseInt(_0x11a6a0(0x1b7))/0x4+-parseInt(_0x11a6a0(0x1bc))/0x5*(-parseInt(_0x11a6a0(0x1bb))/0x6)+-parseInt(_0x11a6a0(0x1b8))/0x7*(parseInt(_0x11a6a0(0x1b5))/0x8)+-parseInt(_0x11a6a0(0x1bd))/0x9+parseInt(_0x11a6a0(0x1b6))/0xa;if(_0x52de6c===_0x530274)break;else _0x2bd590['push'](_0x2bd590['shift']());}catch(_0x2e4d4a){_0x2bd590['push'](_0x2bd590['shift']());}}}(a97_0xfc2a,0xcaad6));function a97_0x4b76(_0x20300f,_0x413d0c){_0x20300f=_0x20300f-0x1b4;var _0xfc2a9f=a97_0xfc2a();var _0x4b7675=_0xfc2a9f[_0x20300f];return _0x4b7675;}function a97_0xfc2a(){var _0x5cd052=['24cCkWNU','95315VSDzrl','4853007bewMYU','668325MYRwmW','84776VmhXUy','26311310qlAhgR','2913808LauKEQ','777KhYnlF','19050iPdsFG','32aoLkxX'];a97_0xfc2a=function(){return _0x5cd052;};return a97_0xfc2a();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.1.22-beta.3";
2
- export declare const GIT_TAG = "v2.1.22-beta.3";
3
- export declare const GIT_COMMIT = "9a893aa";
4
- export declare const BUILD_TIME = "2026-08-05T14:03:36.274Z";
1
+ export declare const VERSION = "2.1.22-beta.4";
2
+ export declare const GIT_TAG = "v2.1.22-beta.4";
3
+ export declare const GIT_COMMIT = "107bec0";
4
+ export declare const BUILD_TIME = "2026-08-05T14:13:57.028Z";
@@ -1 +1 @@
1
- const a98_0x1da09e=a98_0xee22;function a98_0x513b(){const _0x27a2dc=['170VBqsiQ','413vIsVRI','202960rlMtES','2.1.22-beta.3','9a893aa','v2.1.22-beta.3','15360hKvgqg','69AUwBxw','3532980uQoZHN','13756VzzRLm','34299mqdfRT','12496BNsyMb','16931pccewh','2026-08-05T14:03:36.274Z','225WOsynP'];a98_0x513b=function(){return _0x27a2dc;};return a98_0x513b();}(function(_0x406b7e,_0x30d7c3){const _0x547817=a98_0xee22,_0x3de86e=_0x406b7e();while(!![]){try{const _0x1670fa=parseInt(_0x547817(0xd2))/0x1+-parseInt(_0x547817(0xcf))/0x2*(parseInt(_0x547817(0xcd))/0x3)+parseInt(_0x547817(0xd7))/0x4+-parseInt(_0x547817(0xd4))/0x5*(parseInt(_0x547817(0xcc))/0x6)+parseInt(_0x547817(0xd6))/0x7*(parseInt(_0x547817(0xd1))/0x8)+-parseInt(_0x547817(0xd0))/0x9*(parseInt(_0x547817(0xd5))/0xa)+parseInt(_0x547817(0xce))/0xb;if(_0x1670fa===_0x30d7c3)break;else _0x3de86e['push'](_0x3de86e['shift']());}catch(_0x9b6a29){_0x3de86e['push'](_0x3de86e['shift']());}}}(a98_0x513b,0x22dec));function a98_0xee22(_0x13084f,_0x3696dd){_0x13084f=_0x13084f-0xc9;const _0x513b75=a98_0x513b();let _0xee22b2=_0x513b75[_0x13084f];return _0xee22b2;}export const VERSION=a98_0x1da09e(0xc9);export const GIT_TAG=a98_0x1da09e(0xcb);export const GIT_COMMIT=a98_0x1da09e(0xca);export const BUILD_TIME=a98_0x1da09e(0xd3);
1
+ const a98_0x2a9e11=a98_0x32fa;(function(_0x4fca6e,_0x1d3820){const _0xe44978=a98_0x32fa,_0x13c810=_0x4fca6e();while(!![]){try{const _0x29c166=parseInt(_0xe44978(0xe1))/0x1*(parseInt(_0xe44978(0xe6))/0x2)+-parseInt(_0xe44978(0xe0))/0x3+parseInt(_0xe44978(0xdb))/0x4*(parseInt(_0xe44978(0xe2))/0x5)+-parseInt(_0xe44978(0xe3))/0x6+-parseInt(_0xe44978(0xdd))/0x7+-parseInt(_0xe44978(0xdf))/0x8+parseInt(_0xe44978(0xe5))/0x9;if(_0x29c166===_0x1d3820)break;else _0x13c810['push'](_0x13c810['shift']());}catch(_0x5372f9){_0x13c810['push'](_0x13c810['shift']());}}}(a98_0x2703,0xc8506));function a98_0x32fa(_0x15f85c,_0xf0ed9e){_0x15f85c=_0x15f85c-0xdb;const _0x27037a=a98_0x2703();let _0x32faf7=_0x27037a[_0x15f85c];return _0x32faf7;}export const VERSION='2.1.22-beta.4';export const GIT_TAG=a98_0x2a9e11(0xdc);export const GIT_COMMIT=a98_0x2a9e11(0xe4);export const BUILD_TIME=a98_0x2a9e11(0xde);function a98_0x2703(){const _0x45ef9f=['3325626UNtaMq','107bec0','14415678Zgvbdl','378amPScB','292LdGgVq','v2.1.22-beta.4','3161137jFDvek','2026-08-05T14:13:57.028Z','4151680zbdini','540207CkNmWj','2561swmfTH','30110jvsXZP'];a98_0x2703=function(){return _0x45ef9f;};return a98_0x2703();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x45eeaa,_0x4d04ee){const _0x2da1ba=a99_0x58a0,_0x1cd3ff=_0x45eeaa();while(!![]){try{const _0x2cec68=-parseInt(_0x2da1ba(0x10d))/0x1+parseInt(_0x2da1ba(0x102))/0x2*(-parseInt(_0x2da1ba(0x103))/0x3)+parseInt(_0x2da1ba(0x104))/0x4+parseInt(_0x2da1ba(0x10f))/0x5*(-parseInt(_0x2da1ba(0x10c))/0x6)+parseInt(_0x2da1ba(0x106))/0x7+parseInt(_0x2da1ba(0x108))/0x8+-parseInt(_0x2da1ba(0x107))/0x9*(-parseInt(_0x2da1ba(0x101))/0xa);if(_0x2cec68===_0x4d04ee)break;else _0x1cd3ff['push'](_0x1cd3ff['shift']());}catch(_0x15545c){_0x1cd3ff['push'](_0x1cd3ff['shift']());}}}(a99_0x46f4,0xc7b22));function a99_0x46f4(){const _0x7f33e=['9092741kDJBjY','1148238KeBqSl','6696520RLcdjk','column','\x20to\x20view\x20available\x20commands.','green','1743852JajNvB','1471128JsuCJu','\x20\x20Use\x20','25OGBGCj','90bbuDro','2jzLJAs','1999809znbzCm','4498516jpMSUn','\x20--help'];a99_0x46f4=function(){return _0x7f33e;};return a99_0x46f4();}function a99_0x58a0(_0xb930ef,_0x48e31c){_0xb930ef=_0xb930ef-0x101;const _0x46f454=a99_0x46f4();let _0x58a096=_0x46f454[_0xb930ef];return _0x58a096;}import{jsx as a99_0x6916d1,jsxs as a99_0xfb668e}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0xa63ca1=a99_0x58a0,{exit:_0x258ead}=useApp();return useEffect(()=>{_0x258ead();},[_0x258ead]),a99_0xfb668e(Box,{'flexDirection':_0xa63ca1(0x109),'marginTop':0x1,'marginBottom':0x1,'children':[a99_0x6916d1(Box,{'children':a99_0x6916d1(Text,{'bold':!![],'color':_0xa63ca1(0x10b),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a99_0xfb668e(Box,{'marginTop':0x1,'children':[a99_0x6916d1(Text,{'dimColor':!![],'children':_0xa63ca1(0x10e)}),a99_0x6916d1(Text,{'bold':!![],'color':_0xa63ca1(0x10b),'children':CLI_BIN_NAME+_0xa63ca1(0x105)}),a99_0x6916d1(Text,{'dimColor':!![],'children':_0xa63ca1(0x10a)})]})]});}
1
+ (function(_0x566443,_0xf23bf){const _0x86efa3=a99_0x1001,_0x2e1edf=_0x566443();while(!![]){try{const _0x57a965=-parseInt(_0x86efa3(0xcf))/0x1+-parseInt(_0x86efa3(0xd0))/0x2+parseInt(_0x86efa3(0xcc))/0x3+-parseInt(_0x86efa3(0xd1))/0x4+-parseInt(_0x86efa3(0xcb))/0x5*(parseInt(_0x86efa3(0xcd))/0x6)+parseInt(_0x86efa3(0xc8))/0x7+parseInt(_0x86efa3(0xc9))/0x8;if(_0x57a965===_0xf23bf)break;else _0x2e1edf['push'](_0x2e1edf['shift']());}catch(_0x535e23){_0x2e1edf['push'](_0x2e1edf['shift']());}}}(a99_0x2095,0xdbb9c));import{jsx as a99_0x5c7139,jsxs as a99_0x39536c}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 a99_0x1001(_0x37ed2e,_0x17e8c4){_0x37ed2e=_0x37ed2e-0xc7;const _0x2095ce=a99_0x2095();let _0x100133=_0x2095ce[_0x37ed2e];return _0x100133;}function a99_0x2095(){const _0x1979b2=['6976640WCehlq','\x20to\x20view\x20available\x20commands.','8472828tKUAGa','24884560fyIFSp','\x20\x20Use\x20','2779145QjbgOq','1825584pAgdsC','6YCdnVl','green','373747XzBtNA','2711540KVcPRZ'];a99_0x2095=function(){return _0x1979b2;};return a99_0x2095();}export function Help(){const _0x5f1f22=a99_0x1001,{exit:_0x3821df}=useApp();return useEffect(()=>{_0x3821df();},[_0x3821df]),a99_0x39536c(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a99_0x5c7139(Box,{'children':a99_0x5c7139(Text,{'bold':!![],'color':_0x5f1f22(0xce),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a99_0x39536c(Box,{'marginTop':0x1,'children':[a99_0x5c7139(Text,{'dimColor':!![],'children':_0x5f1f22(0xca)}),a99_0x5c7139(Text,{'bold':!![],'color':_0x5f1f22(0xce),'children':CLI_BIN_NAME+'\x20--help'}),a99_0x5c7139(Text,{'dimColor':!![],'children':_0x5f1f22(0xc7)})]})]});}
@@ -1 +1 @@
1
- function a100_0x1bc2(_0x2fbe29,_0x46d7a7){_0x2fbe29=_0x2fbe29-0x193;const _0x48fdaa=a100_0x48fd();let _0x1bc26f=_0x48fdaa[_0x2fbe29];return _0x1bc26f;}function a100_0x48fd(){const _0xd53b26=['461967xhNLYa','write','394510rNlcsp','12rstcaB','35380LPIsSI','1qtIhYD','command','658399kLhXZa','1970010XNrQbz','writeEventSubject','filter','22pjuoko','join','risk','85112bHCIlP','high-risk-write','1588672YaHqOU','50ZsGFvB','lovrabet.write.completed'];a100_0x48fd=function(){return _0xd53b26;};return a100_0x48fd();}(function(_0x38fbc0,_0x1b00e0){const _0x18ec33=a100_0x1bc2,_0x1de655=_0x38fbc0();while(!![]){try{const _0x20f680=parseInt(_0x18ec33(0x1a2))/0x1*(parseInt(_0x18ec33(0x1a1))/0x2)+parseInt(_0x18ec33(0x19d))/0x3+parseInt(_0x18ec33(0x198))/0x4*(parseInt(_0x18ec33(0x19b))/0x5)+parseInt(_0x18ec33(0x1a0))/0x6*(-parseInt(_0x18ec33(0x1a4))/0x7)+-parseInt(_0x18ec33(0x19a))/0x8+parseInt(_0x18ec33(0x1a5))/0x9+-parseInt(_0x18ec33(0x19f))/0xa*(parseInt(_0x18ec33(0x195))/0xb);if(_0x20f680===_0x1b00e0)break;else _0x1de655['push'](_0x1de655['shift']());}catch(_0x129c9f){_0x1de655['push'](_0x1de655['shift']());}}}(a100_0x48fd,0x21a15));export function canonicalLovrabetOperation(_0x26d955){const _0x26403c=a100_0x1bc2;return[_0x26d955['service'],..._0x26d955[_0x26403c(0x1a3)]['trim']()['split'](/\s+/)][_0x26403c(0x194)](Boolean)[_0x26403c(0x196)]('.');}export function createLovrabetWriteMetadata(_0x56d199,_0xd5c619,_0x29bbf3,_0x1a05da){const _0x4dd857=a100_0x1bc2;if(_0x1a05da||_0x29bbf3['ok']!==!![]||_0x56d199[_0x4dd857(0x197)]!==_0x4dd857(0x19e)&&_0x56d199['risk']!==_0x4dd857(0x199))return undefined;const _0xc1da82=_0x56d199[_0x4dd857(0x193)]?.(_0x29bbf3),_0x27ef78={'type':_0x4dd857(0x19c),'operation':_0xd5c619,'risk':_0x56d199[_0x4dd857(0x197)],..._0xc1da82?{'subject':_0xc1da82}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x27ef78}};}
1
+ function a100_0x2b1a(){const _0x1a19ca=['230YPPllD','2444496RSZtWr','writeEventSubject','3004837PEBozK','310308hDOFym','150cvhhfC','high-risk-write','255105YdnGIM','1289346SIJQVE','32Cgeorj','12DchmYB','filter','split','107555OUAFHE','7GqsKVk','trim','join','4393HlvQUh','risk'];a100_0x2b1a=function(){return _0x1a19ca;};return a100_0x2b1a();}(function(_0x4eea93,_0x5271d0){const _0x20520e=a100_0x5f04,_0x5364cc=_0x4eea93();while(!![]){try{const _0x27ae69=-parseInt(_0x20520e(0xa7))/0x1*(-parseInt(_0x20520e(0x9b))/0x2)+-parseInt(_0x20520e(0x9e))/0x3+parseInt(_0x20520e(0x9f))/0x4*(-parseInt(_0x20520e(0xa3))/0x5)+parseInt(_0x20520e(0xad))/0x6*(parseInt(_0x20520e(0xa4))/0x7)+-parseInt(_0x20520e(0xaa))/0x8+parseInt(_0x20520e(0x9d))/0x9*(parseInt(_0x20520e(0xa9))/0xa)+parseInt(_0x20520e(0xac))/0xb*(parseInt(_0x20520e(0xa0))/0xc);if(_0x27ae69===_0x5271d0)break;else _0x5364cc['push'](_0x5364cc['shift']());}catch(_0x4a15c0){_0x5364cc['push'](_0x5364cc['shift']());}}}(a100_0x2b1a,0x6160f));export function canonicalLovrabetOperation(_0x3ea360){const _0x3fc94f=a100_0x5f04;return[_0x3ea360['service'],..._0x3ea360['command'][_0x3fc94f(0xa5)]()[_0x3fc94f(0xa2)](/\s+/)][_0x3fc94f(0xa1)](Boolean)[_0x3fc94f(0xa6)]('.');}function a100_0x5f04(_0x44d92c,_0x49a596){_0x44d92c=_0x44d92c-0x9b;const _0x2b1ae9=a100_0x2b1a();let _0x5f0451=_0x2b1ae9[_0x44d92c];return _0x5f0451;}export function createLovrabetWriteMetadata(_0x1d7f16,_0x1fef4d,_0x2d8609,_0x15047c){const _0x4e39dd=a100_0x5f04;if(_0x15047c||_0x2d8609['ok']!==!![]||_0x1d7f16['risk']!=='write'&&_0x1d7f16[_0x4e39dd(0xa8)]!==_0x4e39dd(0x9c))return undefined;const _0x20b040=_0x1d7f16[_0x4e39dd(0xab)]?.(_0x2d8609),_0x4bd5e0={'type':'lovrabet.write.completed','operation':_0x1fef4d,'risk':_0x1d7f16[_0x4e39dd(0xa8)],..._0x20b040?{'subject':_0x20b040}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4bd5e0}};}
@@ -1 +1 @@
1
- (function(_0x23af72,_0x4ed5e0){const _0x3b0726=a101_0x391b,_0xa5e88c=_0x23af72();while(!![]){try{const _0xf4b8bf=parseInt(_0x3b0726(0x13e))/0x1*(-parseInt(_0x3b0726(0x151))/0x2)+-parseInt(_0x3b0726(0x15b))/0x3+-parseInt(_0x3b0726(0x14a))/0x4+parseInt(_0x3b0726(0x159))/0x5*(-parseInt(_0x3b0726(0x148))/0x6)+-parseInt(_0x3b0726(0x14b))/0x7+-parseInt(_0x3b0726(0x15e))/0x8*(parseInt(_0x3b0726(0x139))/0x9)+parseInt(_0x3b0726(0x144))/0xa;if(_0xf4b8bf===_0x4ed5e0)break;else _0xa5e88c['push'](_0xa5e88c['shift']());}catch(_0x90fc8b){_0xa5e88c['push'](_0xa5e88c['shift']());}}}(a101_0x1638,0x9de13));function a101_0x391b(_0x5985b5,_0x33ba6e){_0x5985b5=_0x5985b5-0x139;const _0x1638e6=a101_0x1638();let _0x391b12=_0x1638e6[_0x5985b5];return _0x391b12;}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x42d1ae,command:_0x16f54d,risk:_0x1bf847,dryRun:_0x585ca2}){const _0x23c1e4=a101_0x391b;return JSON[_0x23c1e4(0x145)]({'ok':_0x42d1ae['ok'],'command':_0x16f54d,'risk':_0x1bf847,..._0x585ca2?{'dryRun':!![]}:{},..._0x42d1ae['data']!==undefined?{'data':_0x42d1ae[_0x23c1e4(0x158)]}:{},..._0x42d1ae[_0x23c1e4(0x15c)]?{'message':_0x42d1ae['message']}:{}});}};function a101_0x1638(){const _0x43b5c8=['command','dryRun','Lovrabet\x20invocation\x20aborted.','write','21262rfDwXa','present','confirm','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','aborted','riskLevel','description','data','5165eNCWoB','rawFlags','2290554rURGrP','message','format','8hptfvZ','5582763rFDSJK','result','AbortError','confirmation','reason','77KsDvoP','signal','dry-run','args','execute','definition','55457390FZOGmN','stringify','high-risk-write','risk','2514wsSHje','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','4261064xCrhcI','8389913HUywRA','isNonInteractive'];a101_0x1638=function(){return _0x43b5c8;};return a101_0x1638();}export async function invokeLovrabet(_0x1cf54d,_0x705cb3){return runSerialized(async()=>{const _0x2b6edc=a101_0x391b;throwIfAborted(_0x705cb3[_0x2b6edc(0x13f)]);const _0x1794b4=await resolveLovrabetInvocation(_0x1cf54d),_0x6e13d0=canonicalLovrabetOperation(_0x1794b4[_0x2b6edc(0x143)]),_0x174fc8={},_0x3e706d=buildConfigFromFlags(_0x1794b4[_0x2b6edc(0x15a)]);await initGlobalEnvironment(_0x3e706d);const _0x461f60=createPipelineEnv(_0x3e706d,{..._0x1794b4['rawFlags'],'yes':_0x1794b4[_0x2b6edc(0x143)][_0x2b6edc(0x147)]===_0x2b6edc(0x146)?!![]:_0x1794b4['rawFlags']['yes'],'nonInteractive':!![]});_0x461f60[_0x2b6edc(0x141)]=_0x1794b4[_0x2b6edc(0x141)],_0x461f60[_0x2b6edc(0x14c)]=!![],_0x461f60[_0x2b6edc(0x156)]='high-risk-write';const _0x61d52b=withEmbeddedLifecycle(_0x1794b4['definition'],_0x6e13d0,_0x705cb3),_0x1d877e=createLovrabetRunnerAdapter({'formatOutput'(_0x2a891f,_0x4dd50f){const _0x2c25f9=_0x2b6edc;_0x174fc8[_0x2c25f9(0x13a)]=_0x2a891f,_0x174fc8[_0x2c25f9(0x14d)]=_0x4dd50f[_0x2c25f9(0x14d)],_0x174fc8[_0x2c25f9(0x147)]=_0x4dd50f[_0x2c25f9(0x147)],_0x174fc8['format']=_0x4dd50f['format'],_0x174fc8[_0x2c25f9(0x14e)]=_0x4dd50f[_0x2c25f9(0x14e)]===!![];},async 'confirmHighRisk'(){const _0x4b1100=_0x2b6edc;throw new Error(_0x4b1100(0x149));}});try{await runCommand(_0x61d52b,_0x461f60,_0x1d877e);if(!_0x174fc8[_0x2b6edc(0x13a)]||!_0x174fc8[_0x2b6edc(0x14d)]||!_0x174fc8[_0x2b6edc(0x147)]||!_0x174fc8[_0x2b6edc(0x15d)])throw new Error(_0x2b6edc(0x154));const _0x181b9c=_0x705cb3['presentation']??defaultPresentation,_0x4056a6=_0x174fc8['dryRun']===!![],_0x34b83a={'result':_0x174fc8[_0x2b6edc(0x13a)],'command':_0x174fc8['command'],'operation':_0x6e13d0,'risk':_0x174fc8[_0x2b6edc(0x147)],'format':_0x174fc8[_0x2b6edc(0x15d)],'dryRun':_0x4056a6},_0x12bb77=createLovrabetWriteMetadata(_0x1794b4[_0x2b6edc(0x143)],_0x6e13d0,_0x174fc8[_0x2b6edc(0x13a)],_0x4056a6);let _0x3160bc;try{_0x3160bc=await _0x181b9c[_0x2b6edc(0x152)](_0x34b83a);}catch(_0x2adaf7){if(!_0x12bb77||_0x181b9c===defaultPresentation)throw _0x2adaf7;_0x3160bc=await defaultPresentation['present'](_0x34b83a);}return{'operation':_0x6e13d0,'risk':_0x174fc8[_0x2b6edc(0x147)],'mode':_0x4056a6?_0x2b6edc(0x140):_0x2b6edc(0x142),'result':_0x174fc8[_0x2b6edc(0x13a)],'output':_0x3160bc,..._0x12bb77?{'metadata':_0x12bb77}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function withEmbeddedLifecycle(_0x1d70e8,_0x46541d,_0xd10667){return{..._0x1d70e8,async 'execute'(_0x12ee68){const _0x10837c=a101_0x391b;return throwIfAborted(_0xd10667[_0x10837c(0x13f)]),(_0x1d70e8[_0x10837c(0x147)]===_0x10837c(0x150)||_0x1d70e8[_0x10837c(0x147)]===_0x10837c(0x146))&&await _0xd10667[_0x10837c(0x13c)][_0x10837c(0x153)]({'operation':_0x46541d,'risk':_0x1d70e8[_0x10837c(0x147)],'description':_0x1d70e8[_0x10837c(0x157)],..._0xd10667[_0x10837c(0x13f)]?{'signal':_0xd10667[_0x10837c(0x13f)]}:{}}),throwIfAborted(_0xd10667[_0x10837c(0x13f)]),_0x1d70e8[_0x10837c(0x142)](_0x12ee68);}};}function throwIfAborted(_0x506374){const _0x38cfb2=a101_0x391b;if(_0x506374?.[_0x38cfb2(0x155)])throw _0x506374[_0x38cfb2(0x13d)]instanceof Error?_0x506374['reason']:new DOMException(_0x38cfb2(0x14f),_0x38cfb2(0x13b));}
1
+ function a101_0xeaea(_0x208ddc,_0x151287){_0x208ddc=_0x208ddc-0x136;const _0x3c6f24=a101_0x3c6f();let _0xeaea0a=_0x3c6f24[_0x208ddc];return _0xeaea0a;}(function(_0x559957,_0x1aeef2){const _0x32ec56=a101_0xeaea,_0x3b39c8=_0x559957();while(!![]){try{const _0x269561=parseInt(_0x32ec56(0x159))/0x1+-parseInt(_0x32ec56(0x150))/0x2*(parseInt(_0x32ec56(0x13b))/0x3)+-parseInt(_0x32ec56(0x143))/0x4*(parseInt(_0x32ec56(0x142))/0x5)+parseInt(_0x32ec56(0x15a))/0x6+parseInt(_0x32ec56(0x13a))/0x7+-parseInt(_0x32ec56(0x14a))/0x8+-parseInt(_0x32ec56(0x139))/0x9*(-parseInt(_0x32ec56(0x153))/0xa);if(_0x269561===_0x1aeef2)break;else _0x3b39c8['push'](_0x3b39c8['shift']());}catch(_0x598ab8){_0x3b39c8['push'](_0x3b39c8['shift']());}}}(a101_0x3c6f,0xd5d15));function a101_0x3c6f(){const _0x17a215=['present','yes','signal','args','245yOgYjt','18160yLuNLc','Lovrabet\x20invocation\x20aborted.','presentation','format','command','high-risk-write','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','8852440MjuPwl','dry-run','write','aborted','reason','result','226bJTfdz','definition','data','2645340EBHsqL','confirm','dryRun','riskLevel','rawFlags','isNonInteractive','124404Fmbjci','7732254eIxFFk','description','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','risk','36ovnuKM','8147419WusnpN','37974EMzWOS','execute','confirmation'];a101_0x3c6f=function(){return _0x17a215;};return a101_0x3c6f();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x34ac7a,command:_0x38402b,risk:_0x187b3c,dryRun:_0x416506}){const _0x36fa62=a101_0xeaea;return JSON['stringify']({'ok':_0x34ac7a['ok'],'command':_0x38402b,'risk':_0x187b3c,..._0x416506?{'dryRun':!![]}:{},..._0x34ac7a['data']!==undefined?{'data':_0x34ac7a[_0x36fa62(0x152)]}:{},..._0x34ac7a['message']?{'message':_0x34ac7a['message']}:{}});}};export async function invokeLovrabet(_0x240b4a,_0x10a483){return runSerialized(async()=>{const _0x1026eb=a101_0xeaea;throwIfAborted(_0x10a483[_0x1026eb(0x140)]);const _0xd8cb49=await resolveLovrabetInvocation(_0x240b4a),_0x27d5bb=canonicalLovrabetOperation(_0xd8cb49[_0x1026eb(0x151)]),_0x2806f0={},_0x278b64=buildConfigFromFlags(_0xd8cb49[_0x1026eb(0x157)]);await initGlobalEnvironment(_0x278b64);const _0x5b8446=createPipelineEnv(_0x278b64,{..._0xd8cb49[_0x1026eb(0x157)],'yes':_0xd8cb49['definition'][_0x1026eb(0x138)]==='high-risk-write'?!![]:_0xd8cb49[_0x1026eb(0x157)][_0x1026eb(0x13f)],'nonInteractive':!![]});_0x5b8446[_0x1026eb(0x141)]=_0xd8cb49[_0x1026eb(0x141)],_0x5b8446[_0x1026eb(0x158)]=!![],_0x5b8446[_0x1026eb(0x156)]='high-risk-write';const _0xee1ca5=withEmbeddedLifecycle(_0xd8cb49[_0x1026eb(0x151)],_0x27d5bb,_0x10a483),_0x15b508=createLovrabetRunnerAdapter({'formatOutput'(_0x1c1d47,_0x3cf468){const _0x3b5a5a=_0x1026eb;_0x2806f0[_0x3b5a5a(0x14f)]=_0x1c1d47,_0x2806f0[_0x3b5a5a(0x147)]=_0x3cf468['command'],_0x2806f0[_0x3b5a5a(0x138)]=_0x3cf468[_0x3b5a5a(0x138)],_0x2806f0[_0x3b5a5a(0x146)]=_0x3cf468[_0x3b5a5a(0x146)],_0x2806f0[_0x3b5a5a(0x155)]=_0x3cf468[_0x3b5a5a(0x155)]===!![];},async 'confirmHighRisk'(){const _0x28c714=_0x1026eb;throw new Error(_0x28c714(0x149));}});try{await runCommand(_0xee1ca5,_0x5b8446,_0x15b508);if(!_0x2806f0[_0x1026eb(0x14f)]||!_0x2806f0[_0x1026eb(0x147)]||!_0x2806f0[_0x1026eb(0x138)]||!_0x2806f0['format'])throw new Error(_0x1026eb(0x137));const _0x3b31a8=_0x10a483[_0x1026eb(0x145)]??defaultPresentation,_0x76822b=_0x2806f0['dryRun']===!![],_0x4d1574={'result':_0x2806f0[_0x1026eb(0x14f)],'command':_0x2806f0[_0x1026eb(0x147)],'operation':_0x27d5bb,'risk':_0x2806f0[_0x1026eb(0x138)],'format':_0x2806f0[_0x1026eb(0x146)],'dryRun':_0x76822b},_0x407524=createLovrabetWriteMetadata(_0xd8cb49[_0x1026eb(0x151)],_0x27d5bb,_0x2806f0[_0x1026eb(0x14f)],_0x76822b);let _0x25dc31;try{_0x25dc31=await _0x3b31a8[_0x1026eb(0x13e)](_0x4d1574);}catch(_0x1c48f4){if(!_0x407524||_0x3b31a8===defaultPresentation)throw _0x1c48f4;_0x25dc31=await defaultPresentation[_0x1026eb(0x13e)](_0x4d1574);}return{'operation':_0x27d5bb,'risk':_0x2806f0['risk'],'mode':_0x76822b?_0x1026eb(0x14b):'execute','result':_0x2806f0[_0x1026eb(0x14f)],'output':_0x25dc31,..._0x407524?{'metadata':_0x407524}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function withEmbeddedLifecycle(_0x2798f1,_0x5b8d92,_0x165fb2){return{..._0x2798f1,async 'execute'(_0x3d25e7){const _0x4579a9=a101_0xeaea;return throwIfAborted(_0x165fb2[_0x4579a9(0x140)]),(_0x2798f1[_0x4579a9(0x138)]===_0x4579a9(0x14c)||_0x2798f1[_0x4579a9(0x138)]===_0x4579a9(0x148))&&await _0x165fb2[_0x4579a9(0x13d)][_0x4579a9(0x154)]({'operation':_0x5b8d92,'risk':_0x2798f1[_0x4579a9(0x138)],'description':_0x2798f1[_0x4579a9(0x136)],..._0x165fb2[_0x4579a9(0x140)]?{'signal':_0x165fb2[_0x4579a9(0x140)]}:{}}),throwIfAborted(_0x165fb2[_0x4579a9(0x140)]),_0x2798f1[_0x4579a9(0x13c)](_0x3d25e7);}};}function throwIfAborted(_0x5438d8){const _0x2eca0b=a101_0xeaea;if(_0x5438d8?.[_0x2eca0b(0x14d)])throw _0x5438d8[_0x2eca0b(0x14e)]instanceof Error?_0x5438d8[_0x2eca0b(0x14e)]:new DOMException(_0x2eca0b(0x144),'AbortError');}
@@ -1 +1 @@
1
- const a102_0x3ee11d=a102_0x42e9;(function(_0x4fd9a4,_0x291e8d){const _0x50ae09=a102_0x42e9,_0x5932d7=_0x4fd9a4();while(!![]){try{const _0x388dd6=parseInt(_0x50ae09(0x1e8))/0x1*(parseInt(_0x50ae09(0x1e5))/0x2)+-parseInt(_0x50ae09(0x1ea))/0x3*(parseInt(_0x50ae09(0x1e4))/0x4)+-parseInt(_0x50ae09(0x1e2))/0x5+-parseInt(_0x50ae09(0x1e7))/0x6+parseInt(_0x50ae09(0x1e3))/0x7+-parseInt(_0x50ae09(0x1e9))/0x8+parseInt(_0x50ae09(0x1e1))/0x9;if(_0x388dd6===_0x291e8d)break;else _0x5932d7['push'](_0x5932d7['shift']());}catch(_0x14b094){_0x5932d7['push'](_0x5932d7['shift']());}}}(a102_0x4f44,0x973a5));function a102_0x42e9(_0x2c6553,_0x120143){_0x2c6553=_0x2c6553-0x1e1;const _0x4f44af=a102_0x4f44();let _0x42e957=_0x4f44af[_0x2c6553];return _0x42e957;}let tail=Promise[a102_0x3ee11d(0x1e6)]();export async function runSerialized(_0x1b9912){const _0x1f963c=a102_0x3ee11d,_0x3d4e5a=tail;let _0x1abeff;tail=new Promise(_0x36616e=>{_0x1abeff=_0x36616e;}),await _0x3d4e5a[_0x1f963c(0x1eb)](()=>undefined);try{return await _0x1b9912();}finally{_0x1abeff();}}function a102_0x4f44(){const _0x3bc0df=['1215977SptSaZ','808OPtEBz','2194bAzhPH','resolve','6018816CThFrR','914IMxHNX','1114784rBVcKb','2199UsnKCT','catch','11161782XKKVdf','2532940mytMMX'];a102_0x4f44=function(){return _0x3bc0df;};return a102_0x4f44();}
1
+ const a102_0x430596=a102_0x4a50;(function(_0x5bbb25,_0x53f24a){const _0x401434=a102_0x4a50,_0x352175=_0x5bbb25();while(!![]){try{const _0x35ea29=parseInt(_0x401434(0x1f2))/0x1*(-parseInt(_0x401434(0x1ec))/0x2)+-parseInt(_0x401434(0x1e9))/0x3+parseInt(_0x401434(0x1f0))/0x4+-parseInt(_0x401434(0x1f1))/0x5*(parseInt(_0x401434(0x1eb))/0x6)+parseInt(_0x401434(0x1f4))/0x7*(parseInt(_0x401434(0x1ee))/0x8)+-parseInt(_0x401434(0x1ef))/0x9+parseInt(_0x401434(0x1f3))/0xa;if(_0x35ea29===_0x53f24a)break;else _0x352175['push'](_0x352175['shift']());}catch(_0x4743a0){_0x352175['push'](_0x352175['shift']());}}}(a102_0x48e2,0x2667f));function a102_0x48e2(){const _0x40c920=['resolve','364128lArQIS','119070QPfnBO','426796UBlvzJ','1458605QyFygV','5469sCFEMY','7846840DjNKKp','14ozLymu','625260nUvkAG','catch','6HmlKrw','114bvriea'];a102_0x48e2=function(){return _0x40c920;};return a102_0x48e2();}let tail=Promise[a102_0x430596(0x1ed)]();function a102_0x4a50(_0x1c0685,_0x5098e2){_0x1c0685=_0x1c0685-0x1e9;const _0x48e28b=a102_0x48e2();let _0x4a5062=_0x48e28b[_0x1c0685];return _0x4a5062;}export async function runSerialized(_0x284abf){const _0x356b06=a102_0x430596,_0x2fcaaa=tail;let _0x1bd193;tail=new Promise(_0x7d1150=>{_0x1bd193=_0x7d1150;}),await _0x2fcaaa[_0x356b06(0x1ea)](()=>undefined);try{return await _0x284abf();}finally{_0x1bd193();}}
@@ -1 +1 @@
1
- (function(_0x366c14,_0x34bb56){const _0x396f90=a103_0x3e34,_0x1c6d93=_0x366c14();while(!![]){try{const _0x2e0db0=-parseInt(_0x396f90(0x192))/0x1*(parseInt(_0x396f90(0x18a))/0x2)+parseInt(_0x396f90(0x185))/0x3+parseInt(_0x396f90(0x18e))/0x4*(parseInt(_0x396f90(0x17e))/0x5)+parseInt(_0x396f90(0x189))/0x6*(-parseInt(_0x396f90(0x182))/0x7)+parseInt(_0x396f90(0x191))/0x8*(-parseInt(_0x396f90(0x183))/0x9)+parseInt(_0x396f90(0x187))/0xa*(parseInt(_0x396f90(0x186))/0xb)+parseInt(_0x396f90(0x188))/0xc;if(_0x2e0db0===_0x34bb56)break;else _0x1c6d93['push'](_0x1c6d93['shift']());}catch(_0x2ea061){_0x1c6d93['push'](_0x1c6d93['shift']());}}}(a103_0x2e85,0x7f1d0));import a103_0x28461f from'meow';import{findDefinition,getServiceEntry,isKnownService}from'../commands/registry.js';function a103_0x2e85(){const _0x2cda87=['2196xRrVVa','95486wVKyzV','slice','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','defaultCommand','1532760VyaDtW','validation','definition','6707368kybZdD','18EdHEHh','unknownCommand','join','flatMap','10Rmxkxu','assign','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','../commands/registry.js','18991AOGniT','9IgKQOS','flags','1913697rOSMWN','121bgcjmU','128220rzRHtn','19993056Vlbmyt'];a103_0x2e85=function(){return _0x2cda87;};return a103_0x2e85();}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a103_0x3e34(_0x1eb872,_0x1dc031){_0x1eb872=_0x1eb872-0x17d;const _0x2e85c7=a103_0x2e85();let _0x3e3435=_0x2e85c7[_0x1eb872];return _0x3e3435;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x313213){const _0x1e35c9=a103_0x3e34,_0x213f09=a103_0x28461f('',{'importMeta':import.meta,'argv':_0x313213,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x59d34c=[..._0x213f09['input']],_0x425af6=_0x213f09[_0x1e35c9(0x184)];await correctFlags(_0x425af6);const _0x29e40f=_0x59d34c[0x0];if(!_0x29e40f)throw CliErrors[_0x1e35c9(0x18f)](_0x1e35c9(0x18c));if(!isKnownService(_0x29e40f)){const _0x5cb803=resolveDynamicServiceCommand(_0x59d34c,_0x425af6);if(!_0x5cb803)throw CliErrors['unknownCommand'](_0x59d34c[_0x1e35c9(0x194)]('\x20'));return Object[_0x1e35c9(0x17f)](_0x425af6,_0x5cb803[_0x1e35c9(0x184)]),{'definition':_0x5cb803[_0x1e35c9(0x190)],'rawFlags':_0x425af6,'args':_0x5cb803['args']};}const _0x27d057=getServiceEntry(_0x29e40f),_0x184c6e=_0x59d34c[0x1]||_0x27d057[_0x1e35c9(0x18d)];if(!_0x184c6e)throw CliErrors[_0x1e35c9(0x18f)](_0x1e35c9(0x180)+_0x29e40f+'\x22.');const _0x41507f=findDefinition(_0x29e40f,_0x184c6e);if(!_0x41507f)throw CliErrors[_0x1e35c9(0x193)](_0x29e40f+'\x20'+_0x184c6e);return{'definition':_0x41507f,'rawFlags':_0x425af6,'args':_0x59d34c[_0x1e35c9(0x18b)](0x2)};}async function correctFlags(_0x429732){const _0x1538ba=a103_0x3e34;try{const {correctFlags:_0xeddf06}=await import('../framework/preparse.js'),{getAllDefinitions:_0x46ed40}=await import(_0x1538ba(0x181)),_0x413d02=_0x46ed40()[_0x1538ba(0x17d)](_0x357629=>_0x357629['flags']??[]),_0x545e23=_0xeddf06(_0x429732,_0x413d02);Object['assign'](_0x429732,_0x545e23['flags']);}catch{}}
1
+ (function(_0x3dd38b,_0x260663){const _0x21bf0b=a103_0x4340,_0x3abcce=_0x3dd38b();while(!![]){try{const _0x483617=parseInt(_0x21bf0b(0x88))/0x1*(parseInt(_0x21bf0b(0x89))/0x2)+parseInt(_0x21bf0b(0x97))/0x3*(parseInt(_0x21bf0b(0x9b))/0x4)+parseInt(_0x21bf0b(0x99))/0x5+-parseInt(_0x21bf0b(0x96))/0x6*(-parseInt(_0x21bf0b(0x91))/0x7)+-parseInt(_0x21bf0b(0x8a))/0x8*(parseInt(_0x21bf0b(0x87))/0x9)+-parseInt(_0x21bf0b(0x9c))/0xa*(-parseInt(_0x21bf0b(0x9d))/0xb)+-parseInt(_0x21bf0b(0x95))/0xc;if(_0x483617===_0x260663)break;else _0x3abcce['push'](_0x3abcce['shift']());}catch(_0x314fe9){_0x3abcce['push'](_0x3abcce['shift']());}}}(a103_0x1d38,0x72ca7));import a103_0x3f9ec5 from'meow';import{findDefinition,getServiceEntry,isKnownService}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a103_0x4340(_0x3f8a36,_0x2b1456){_0x3f8a36=_0x3f8a36-0x86;const _0x1d38bc=a103_0x1d38();let _0x434049=_0x1d38bc[_0x3f8a36];return _0x434049;}export async function resolveLovrabetInvocation(_0x355845){const _0x53eb20=a103_0x4340,_0x4ca9ca=a103_0x3f9ec5('',{'importMeta':import.meta,'argv':_0x355845,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x3a431f=[..._0x4ca9ca[_0x53eb20(0x94)]],_0x35e53e=_0x4ca9ca[_0x53eb20(0x86)];await correctFlags(_0x35e53e);const _0x57e792=_0x3a431f[0x0];if(!_0x57e792)throw CliErrors[_0x53eb20(0x9a)](_0x53eb20(0x8b));if(!isKnownService(_0x57e792)){const _0xb5ccf4=resolveDynamicServiceCommand(_0x3a431f,_0x35e53e);if(!_0xb5ccf4)throw CliErrors[_0x53eb20(0x90)](_0x3a431f[_0x53eb20(0x98)]('\x20'));return Object[_0x53eb20(0x92)](_0x35e53e,_0xb5ccf4[_0x53eb20(0x86)]),{'definition':_0xb5ccf4[_0x53eb20(0x93)],'rawFlags':_0x35e53e,'args':_0xb5ccf4['args']};}const _0x426ad9=getServiceEntry(_0x57e792),_0x198388=_0x3a431f[0x1]||_0x426ad9['defaultCommand'];if(!_0x198388)throw CliErrors[_0x53eb20(0x9a)]('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x57e792+'\x22.');const _0x186103=findDefinition(_0x57e792,_0x198388);if(!_0x186103)throw CliErrors['unknownCommand'](_0x57e792+'\x20'+_0x198388);return{'definition':_0x186103,'rawFlags':_0x35e53e,'args':_0x3a431f[_0x53eb20(0x8d)](0x2)};}function a103_0x1d38(){const _0x2f52f3=['4938000TJPnXW','18efZTmj','3TzWQzb','join','1081625TNJaaQ','validation','1948372nWEEqZ','10kWGTzq','2056835zZLlHa','flags','108153UBVwgb','7kXxmnK','18346GYTmFh','328EnxcDh','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','../commands/registry.js','slice','flatMap','../framework/preparse.js','unknownCommand','979454MMjumK','assign','definition','input'];a103_0x1d38=function(){return _0x2f52f3;};return a103_0x1d38();}async function correctFlags(_0x52994b){const _0x106fb4=a103_0x4340;try{const {correctFlags:_0x34235a}=await import(_0x106fb4(0x8f)),{getAllDefinitions:_0x1753c7}=await import(_0x106fb4(0x8c)),_0x51821a=_0x1753c7()[_0x106fb4(0x8e)](_0x14ed89=>_0x14ed89[_0x106fb4(0x86)]??[]),_0x140faa=_0x34235a(_0x52994b,_0x51821a);Object[_0x106fb4(0x92)](_0x52994b,_0x140faa[_0x106fb4(0x86)]);}catch{}}
@@ -1 +1 @@
1
- const a105_0x2ebf44=a105_0x2a11;function a105_0x2a11(_0x3ca540,_0x50812e){_0x3ca540=_0x3ca540-0x123;const _0x8c2337=a105_0x8c23();let _0x2a11c8=_0x8c2337[_0x3ca540];return _0x2a11c8;}(function(_0x4e3326,_0x54234b){const _0x2623d4=a105_0x2a11,_0x106777=_0x4e3326();while(!![]){try{const _0x36fea3=-parseInt(_0x2623d4(0x135))/0x1*(-parseInt(_0x2623d4(0x13c))/0x2)+parseInt(_0x2623d4(0x12f))/0x3+-parseInt(_0x2623d4(0x125))/0x4*(-parseInt(_0x2623d4(0x131))/0x5)+parseInt(_0x2623d4(0x12a))/0x6+-parseInt(_0x2623d4(0x13a))/0x7+-parseInt(_0x2623d4(0x12b))/0x8*(parseInt(_0x2623d4(0x124))/0x9)+-parseInt(_0x2623d4(0x128))/0xa*(parseInt(_0x2623d4(0x12d))/0xb);if(_0x36fea3===_0x54234b)break;else _0x106777['push'](_0x106777['shift']());}catch(_0x2798b7){_0x106777['push'](_0x106777['shift']());}}}(a105_0x8c23,0x5bdc2));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a105_0x39170d}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a105_0x39170d;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a105_0x2ebf44(0x137)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x3c5e28,_0x17659c=LOVRABET_SKILL_SOURCE,_0xe1ffc6){const _0x36eb99=a105_0x2ebf44;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x51b316=_0xe1ffc6?.[_0x36eb99(0x132)]??_0x36eb99(0x129),_0x146994=resolveNpmBin(_0x36eb99(0x138)),_0x4f5576=[_0x36eb99(0x136),_0x36eb99(0x13b),_0x17659c,'-g','-y'],_0x497b02=[_0x146994,..._0x4f5576][_0x36eb99(0x126)]('\x20');console[_0x36eb99(0x139)]('*\x20'+_0x497b02);const _0x41212e=spawnSync(_0x146994,_0x4f5576,{'cwd':_0x3c5e28,'stdio':_0x51b316,'env':process.env,'shell':![]});if(_0x41212e[_0x36eb99(0x12c)]===0x0)return{'ok':!![],'status':0x0};let _0x37c9a6=_0x36eb99(0x134)+(_0x41212e[_0x36eb99(0x12c)]??'unknown');if(_0x51b316===_0x36eb99(0x133)){const _0x2980f6=_0x41212e[_0x36eb99(0x12e)]?_0x41212e[_0x36eb99(0x12e)]['toString']()[_0x36eb99(0x127)]():'',_0x99830c=_0x41212e[_0x36eb99(0x123)]?_0x41212e[_0x36eb99(0x123)][_0x36eb99(0x130)]()[_0x36eb99(0x127)]():'';if(_0x2980f6)_0x37c9a6=_0x2980f6;else{if(_0x99830c)_0x37c9a6=_0x99830c;}}return{'ok':![],'status':_0x41212e[_0x36eb99(0x12c)]??null,'error':_0x37c9a6};}function a105_0x8c23(){const _0x16ad45=['1TMQOpZ','skills','skipNpxSkillsEnvSuffix','npx','log','3925194uQumPF','add','863354BzPdsn','stdout','1701GVSdsG','36iMqRbl','join','trim','1167360hDswwM','inherit','3835710RgWRAY','25728Lpoyfb','status','22Crqrdl','stderr','912564Rwabzd','toString','223970unjlDj','stdio','pipe','exit\x20'];a105_0x8c23=function(){return _0x16ad45;};return a105_0x8c23();}
1
+ const a105_0x17f32e=a105_0x3680;(function(_0x29f756,_0x2b6f4a){const _0x55687e=a105_0x3680,_0xdd51e2=_0x29f756();while(!![]){try{const _0x103073=parseInt(_0x55687e(0x116))/0x1*(parseInt(_0x55687e(0x10d))/0x2)+parseInt(_0x55687e(0x110))/0x3+-parseInt(_0x55687e(0x118))/0x4*(-parseInt(_0x55687e(0x10a))/0x5)+parseInt(_0x55687e(0x115))/0x6*(parseInt(_0x55687e(0x10f))/0x7)+parseInt(_0x55687e(0x114))/0x8*(parseInt(_0x55687e(0x117))/0x9)+parseInt(_0x55687e(0x11f))/0xa*(-parseInt(_0x55687e(0x11c))/0xb)+-parseInt(_0x55687e(0x112))/0xc;if(_0x103073===_0x2b6f4a)break;else _0xdd51e2['push'](_0xdd51e2['shift']());}catch(_0x59c86e){_0xdd51e2['push'](_0xdd51e2['shift']());}}}(a105_0x108d,0x84930));import{spawnSync}from'node:child_process';function a105_0x108d(){const _0x4ef01f=['9318735leEUHK','3320buJuWG','skipNpxSkillsEnvSuffix','stdout','pipe','1562077pCjBkS','log','inherit','30yxiFgp','exit\x20','toString','status','1315fNbxkW','join','unknown','242wdouUc','trim','10920VQUHdi','2451279YibpEP','skills','15502116MHfEeo','stdio','8ehloVy','168NKtyWg','1210oTAFcL'];a105_0x108d=function(){return _0x4ef01f;};return a105_0x108d();}import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a105_0x20e696}from'../constant/distribution.js';function a105_0x3680(_0x25e626,_0x583d48){_0x25e626=_0x25e626-0x107;const _0x108d7a=a105_0x108d();let _0x36807b=_0x108d7a[_0x25e626];return _0x36807b;}import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a105_0x20e696;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a105_0x17f32e(0x119)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x2c80c3,_0x36dd46=LOVRABET_SKILL_SOURCE,_0x19404b){const _0x1741c2=a105_0x17f32e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x51f5a4=_0x19404b?.[_0x1741c2(0x113)]??_0x1741c2(0x11e),_0x184530=resolveNpmBin('npx'),_0x49eda0=[_0x1741c2(0x111),'add',_0x36dd46,'-g','-y'],_0x143ce5=[_0x184530,..._0x49eda0][_0x1741c2(0x10b)]('\x20');console[_0x1741c2(0x11d)]('*\x20'+_0x143ce5);const _0x65d8f1=spawnSync(_0x184530,_0x49eda0,{'cwd':_0x2c80c3,'stdio':_0x51f5a4,'env':process.env,'shell':![]});if(_0x65d8f1['status']===0x0)return{'ok':!![],'status':0x0};let _0x1ed15d=_0x1741c2(0x107)+(_0x65d8f1[_0x1741c2(0x109)]??_0x1741c2(0x10c));if(_0x51f5a4===_0x1741c2(0x11b)){const _0x213f53=_0x65d8f1['stderr']?_0x65d8f1['stderr'][_0x1741c2(0x108)]()[_0x1741c2(0x10e)]():'',_0x475d7e=_0x65d8f1['stdout']?_0x65d8f1[_0x1741c2(0x11a)]['toString']()[_0x1741c2(0x10e)]():'';if(_0x213f53)_0x1ed15d=_0x213f53;else{if(_0x475d7e)_0x1ed15d=_0x475d7e;}}return{'ok':![],'status':_0x65d8f1[_0x1741c2(0x109)]??null,'error':_0x1ed15d};}
@@ -1 +1 @@
1
- const a106_0x40885f=a106_0x2e96;function a106_0x2e96(_0x5f054d,_0x5ab9b1){_0x5f054d=_0x5f054d-0x7b;const _0x31e38c=a106_0x31e3();let _0x2e965b=_0x31e38c[_0x5f054d];return _0x2e965b;}(function(_0x4f7ccb,_0x21748d){const _0x1e8f36=a106_0x2e96,_0x1c38ea=_0x4f7ccb();while(!![]){try{const _0x3ca744=-parseInt(_0x1e8f36(0x8b))/0x1*(-parseInt(_0x1e8f36(0x89))/0x2)+parseInt(_0x1e8f36(0x8d))/0x3+parseInt(_0x1e8f36(0x7b))/0x4+parseInt(_0x1e8f36(0x81))/0x5+-parseInt(_0x1e8f36(0x85))/0x6+parseInt(_0x1e8f36(0x87))/0x7+-parseInt(_0x1e8f36(0x7d))/0x8*(parseInt(_0x1e8f36(0x8a))/0x9);if(_0x3ca744===_0x21748d)break;else _0x1c38ea['push'](_0x1c38ea['shift']());}catch(_0x3c74a4){_0x1c38ea['push'](_0x1c38ea['shift']());}}}(a106_0x31e3,0x1b0ae));export const METADATA_FILE=a106_0x40885f(0x7c);export const SKILL_FILE=a106_0x40885f(0x82);function a106_0x31e3(){const _0x52b051=['.cache','522387OFojcc','305504drNYlP','lovrabet.skill.json','25496huBgQm','build','.turbo','.DS_Store','468545dBWzGf','SKILL.md','dist','.next','508590bUkKpm','.git','631407LTIhaI','node_modules','39076UqaiuG','1116dUbkwl','8EnbKio'];a106_0x31e3=function(){return _0x52b051;};return a106_0x31e3();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a106_0x40885f(0x80)]);export const IGNORED_DIR_NAMES=new Set([a106_0x40885f(0x86),'.hg','.svn',a106_0x40885f(0x88),a106_0x40885f(0x84),a106_0x40885f(0x83),a106_0x40885f(0x7e),'coverage',a106_0x40885f(0x7f),a106_0x40885f(0x8c)]);
1
+ const a106_0x392919=a106_0x4451;function a106_0x4451(_0x188f8a,_0x463c31){_0x188f8a=_0x188f8a-0x122;const _0x55d20b=a106_0x55d2();let _0x445153=_0x55d20b[_0x188f8a];return _0x445153;}function a106_0x55d2(){const _0x4d6ae8=['.DS_Store','10079514UHGlYB','426483AjwBQP','6381995iLCBuz','dist','.cache','build','1612gUuJGS','node_modules','826070APeqZn','10kbFpCk','4241312vjdzxo','909CmqaYA','11828727pGljAe','lovrabet.skill.json','.svn','.turbo','20IocZel'];a106_0x55d2=function(){return _0x4d6ae8;};return a106_0x55d2();}(function(_0x32b660,_0x4a26c9){const _0x1c147b=a106_0x4451,_0x506f32=_0x32b660();while(!![]){try{const _0x27d3ad=-parseInt(_0x1c147b(0x12a))/0x1*(parseInt(_0x1c147b(0x125))/0x2)+parseInt(_0x1c147b(0x132))/0x3*(parseInt(_0x1c147b(0x12f))/0x4)+parseInt(_0x1c147b(0x133))/0x5+parseInt(_0x1c147b(0x131))/0x6+-parseInt(_0x1c147b(0x127))/0x7+-parseInt(_0x1c147b(0x129))/0x8+-parseInt(_0x1c147b(0x12b))/0x9*(parseInt(_0x1c147b(0x128))/0xa);if(_0x27d3ad===_0x4a26c9)break;else _0x506f32['push'](_0x506f32['shift']());}catch(_0xf8b61e){_0x506f32['push'](_0x506f32['shift']());}}}(a106_0x55d2,0xed4d8));export const METADATA_FILE=a106_0x392919(0x12c);export const SKILL_FILE='SKILL.md';export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a106_0x392919(0x130)]);export const IGNORED_DIR_NAMES=new Set(['.git','.hg',a106_0x392919(0x12d),a106_0x392919(0x126),'.next',a106_0x392919(0x122),a106_0x392919(0x124),'coverage',a106_0x392919(0x12e),a106_0x392919(0x123)]);
@@ -1 +1 @@
1
- (function(_0x37c8c9,_0x5c141e){const _0x1662d2=a107_0x3cf0,_0x121a3e=_0x37c8c9();while(!![]){try{const _0x1e6987=parseInt(_0x1662d2(0xef))/0x1+parseInt(_0x1662d2(0xe8))/0x2*(-parseInt(_0x1662d2(0xe7))/0x3)+parseInt(_0x1662d2(0xf6))/0x4*(-parseInt(_0x1662d2(0xea))/0x5)+parseInt(_0x1662d2(0xec))/0x6*(-parseInt(_0x1662d2(0xf2))/0x7)+parseInt(_0x1662d2(0xe9))/0x8+-parseInt(_0x1662d2(0xf7))/0x9*(parseInt(_0x1662d2(0xf3))/0xa)+parseInt(_0x1662d2(0xf8))/0xb;if(_0x1e6987===_0x5c141e)break;else _0x121a3e['push'](_0x121a3e['shift']());}catch(_0x27c595){_0x121a3e['push'](_0x121a3e['shift']());}}}(a107_0x1c0c,0x71245));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x3f9036,_0x226899){const _0x5d2c87=a107_0x3cf0,_0x240a30=normalizeSkillRelativePath(_0x226899),_0x4594e2=realOrResolved(_0x3f9036),_0x3fa0e0=resolve(_0x4594e2,..._0x240a30[_0x5d2c87(0xf0)]('/'));if(!isPathInside(_0x3fa0e0,_0x4594e2))throw CliErrors[_0x5d2c87(0xf4)](_0x5d2c87(0xf5)+_0x226899);return ensureNoSymlinkInManagedPath(_0x4594e2,_0x240a30),_0x3fa0e0;}export function ensureNoSymlinkInManagedPath(_0x23fa3f,_0x146a39){const _0x347b4b=a107_0x3cf0;let _0x3129f8=_0x23fa3f;for(const _0x35629d of _0x146a39['split']('/')){_0x3129f8=resolve(_0x3129f8,_0x35629d);const _0x194a1f=lstatIfPresent(_0x3129f8);if(_0x194a1f?.[_0x347b4b(0xee)]())throw CliErrors[_0x347b4b(0xf4)](_0x347b4b(0xfb)+_0x146a39);}}export function isDanglingSymlink(_0x33e07a){const _0x40a707=a107_0x3cf0;try{return lstatSync(_0x33e07a)[_0x40a707(0xee)]();}catch{return![];}}export function resolveSymlinkTarget(_0x4ab877){const _0x5087a1=readlinkSync(_0x4ab877);return isAbsolute(_0x5087a1)?_0x5087a1:resolve(dirname(_0x4ab877),_0x5087a1);}export function isPathInside(_0x133cdc,_0x2b56a8){const _0x55608d=a107_0x3cf0,_0x5109c3=_0x133cdc[_0x55608d(0xf9)](sep)?_0x133cdc:''+_0x133cdc+sep,_0x5ea913=_0x2b56a8[_0x55608d(0xf9)](sep)?_0x2b56a8:''+_0x2b56a8+sep;return _0x133cdc===_0x2b56a8||_0x5109c3['startsWith'](_0x5ea913);}export function realOrResolved(_0x4850fc){try{return realpathSync(_0x4850fc);}catch{return resolve(_0x4850fc);}}export function lstatIfPresent(_0xabe706){try{return lstatSync(_0xabe706);}catch{return undefined;}}function a107_0x1c0c(){const _0x1a6fb2=['1614oBRrKW','.tmp','isSymbolicLink','761669vNJdDL','split','utf8','19691wEQjyp','260LNRoMP','validation','Unsafe\x20Skill\x20file\x20path:\x20','2522396DEhUZK','219609sBuPmW','24475759QPREeL','endsWith','from','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','6qSALoW','528648QkMslB','216488nkaBAY','5ZRQUxq','stringify'];a107_0x1c0c=function(){return _0x1a6fb2;};return a107_0x1c0c();}export function writeTextAtomic(_0x560cc0,_0x3f8f8d,_0x1529eb){const _0x38d2fa=a107_0x3cf0;writeBytesAtomic(_0x560cc0,Buffer[_0x38d2fa(0xfa)](_0x3f8f8d,_0x38d2fa(0xf1)),_0x1529eb);}export function writeBytesAtomic(_0x15bf0b,_0x436d85,_0x282efa){const _0x5e9997=a107_0x3cf0,_0x1ae588=_0x15bf0b+_0x5e9997(0xed);try{writeFileSync(_0x1ae588,_0x436d85,{'mode':_0x282efa}),renameSync(_0x1ae588,_0x15bf0b);}catch(_0x529c40){try{rmSync(_0x1ae588,{'force':!![]});}catch{}throw _0x529c40;}}function a107_0x3cf0(_0x3f1d93,_0x4bbc0f){_0x3f1d93=_0x3f1d93-0xe7;const _0x1c0c70=a107_0x1c0c();let _0x3cf0d5=_0x1c0c70[_0x3f1d93];return _0x3cf0d5;}export function writeJsonAtomic(_0x6a359f,_0x1e06da){const _0x40bf48=a107_0x3cf0;writeTextAtomic(_0x6a359f,JSON[_0x40bf48(0xeb)](_0x1e06da,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x49a04c,_0x5ab6ac){const _0x164a00=a107_0x41e5,_0x438da8=_0x49a04c();while(!![]){try{const _0x97a34b=parseInt(_0x164a00(0xbf))/0x1*(parseInt(_0x164a00(0xb8))/0x2)+-parseInt(_0x164a00(0xc5))/0x3+parseInt(_0x164a00(0xc8))/0x4*(-parseInt(_0x164a00(0xb9))/0x5)+-parseInt(_0x164a00(0xbc))/0x6*(parseInt(_0x164a00(0xb7))/0x7)+-parseInt(_0x164a00(0xc3))/0x8+parseInt(_0x164a00(0xbd))/0x9*(-parseInt(_0x164a00(0xc2))/0xa)+parseInt(_0x164a00(0xba))/0xb*(parseInt(_0x164a00(0xc0))/0xc);if(_0x97a34b===_0x5ab6ac)break;else _0x438da8['push'](_0x438da8['shift']());}catch(_0x1adaf4){_0x438da8['push'](_0x438da8['shift']());}}}(a107_0x4a72,0x54adf));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x3f8d53,_0x589cfb){const _0x21ba6f=a107_0x41e5,_0x312efa=normalizeSkillRelativePath(_0x589cfb),_0x15bf73=realOrResolved(_0x3f8d53),_0x412dd5=resolve(_0x15bf73,..._0x312efa['split']('/'));if(!isPathInside(_0x412dd5,_0x15bf73))throw CliErrors[_0x21ba6f(0xc1)](_0x21ba6f(0xb6)+_0x589cfb);return ensureNoSymlinkInManagedPath(_0x15bf73,_0x312efa),_0x412dd5;}export function ensureNoSymlinkInManagedPath(_0x32bcab,_0x4c9682){const _0x3aa41f=a107_0x41e5;let _0x15076e=_0x32bcab;for(const _0x119982 of _0x4c9682[_0x3aa41f(0xc4)]('/')){_0x15076e=resolve(_0x15076e,_0x119982);const _0x417205=lstatIfPresent(_0x15076e);if(_0x417205?.[_0x3aa41f(0xc6)]())throw CliErrors[_0x3aa41f(0xc1)](_0x3aa41f(0xb5)+_0x4c9682);}}export function isDanglingSymlink(_0x1d60d9){const _0x55e182=a107_0x41e5;try{return lstatSync(_0x1d60d9)[_0x55e182(0xc6)]();}catch{return![];}}function a107_0x4a72(){const _0xf037ee=['7hKDqDc','13174LUEymP','25eMiZql','1024133BblSUq','from','2496636HqgurL','1647ZVKwTS','endsWith','23JEzmyg','156FOWaUq','validation','1630bYjfdn','1454656Zjmurx','split','79083ohGJYf','isSymbolicLink','.tmp','288692OYHynr','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','Unsafe\x20Skill\x20file\x20path:\x20'];a107_0x4a72=function(){return _0xf037ee;};return a107_0x4a72();}export function resolveSymlinkTarget(_0x5302c5){const _0x4e6f3b=readlinkSync(_0x5302c5);return isAbsolute(_0x4e6f3b)?_0x4e6f3b:resolve(dirname(_0x5302c5),_0x4e6f3b);}export function isPathInside(_0x2e2f53,_0x5c7b30){const _0x3a4043=a107_0x41e5,_0x34834c=_0x2e2f53[_0x3a4043(0xbe)](sep)?_0x2e2f53:''+_0x2e2f53+sep,_0x1124f7=_0x5c7b30[_0x3a4043(0xbe)](sep)?_0x5c7b30:''+_0x5c7b30+sep;return _0x2e2f53===_0x5c7b30||_0x34834c['startsWith'](_0x1124f7);}export function realOrResolved(_0x1048b3){try{return realpathSync(_0x1048b3);}catch{return resolve(_0x1048b3);}}function a107_0x41e5(_0x43c296,_0x2ab478){_0x43c296=_0x43c296-0xb5;const _0x4a72f7=a107_0x4a72();let _0x41e5d8=_0x4a72f7[_0x43c296];return _0x41e5d8;}export function lstatIfPresent(_0x217418){try{return lstatSync(_0x217418);}catch{return undefined;}}export function writeTextAtomic(_0x579edf,_0x5abfa2,_0x4c16c8){const _0x436f89=a107_0x41e5;writeBytesAtomic(_0x579edf,Buffer[_0x436f89(0xbb)](_0x5abfa2,'utf8'),_0x4c16c8);}export function writeBytesAtomic(_0x54c777,_0x5d4b49,_0x343577){const _0x3ea99a=a107_0x41e5,_0xb35990=_0x54c777+_0x3ea99a(0xc7);try{writeFileSync(_0xb35990,_0x5d4b49,{'mode':_0x343577}),renameSync(_0xb35990,_0x54c777);}catch(_0x5ce4e3){try{rmSync(_0xb35990,{'force':!![]});}catch{}throw _0x5ce4e3;}}export function writeJsonAtomic(_0x15b166,_0xa06a21){writeTextAtomic(_0x15b166,JSON['stringify'](_0xa06a21,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x150575,_0x5cc371){const _0x2d2a93=a108_0x107f,_0x12b283=_0x150575();while(!![]){try{const _0xfd3308=-parseInt(_0x2d2a93(0x7a))/0x1*(parseInt(_0x2d2a93(0x73))/0x2)+parseInt(_0x2d2a93(0x75))/0x3*(-parseInt(_0x2d2a93(0x74))/0x4)+parseInt(_0x2d2a93(0x71))/0x5*(parseInt(_0x2d2a93(0x6f))/0x6)+parseInt(_0x2d2a93(0x6b))/0x7*(-parseInt(_0x2d2a93(0x6c))/0x8)+parseInt(_0x2d2a93(0x6a))/0x9+-parseInt(_0x2d2a93(0x78))/0xa+-parseInt(_0x2d2a93(0x6e))/0xb*(-parseInt(_0x2d2a93(0x70))/0xc);if(_0xfd3308===_0x5cc371)break;else _0x12b283['push'](_0x12b283['shift']());}catch(_0x31cd41){_0x12b283['push'](_0x12b283['shift']());}}}(a108_0x4af7,0xd9a71));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0xa44ffd){const _0x48986d=a108_0x107f;return createHash(_0x48986d(0x76))[_0x48986d(0x72)](_0xa44ffd)[_0x48986d(0x79)](_0x48986d(0x6d));}function a108_0x107f(_0x5a1a42,_0x42fdea){_0x5a1a42=_0x5a1a42-0x6a;const _0x4af7a7=a108_0x4af7();let _0x107ff3=_0x4af7a7[_0x5a1a42];return _0x107ff3;}function a108_0x4af7(){const _0x333dfc=['path','17687740PZpNbO','digest','1GMQErD','size','13356747cMzocv','7kQQKNA','4694552NNlftL','hex','34056djYpTC','24618rnyeax','11292HvMXTh','780MLfETp','update','271186XDLUAy','3309592BlTQad','6qQHCkm','sha256'];a108_0x4af7=function(){return _0x333dfc;};return a108_0x4af7();}export function fileHash(_0x44a005){return bufferSha256(fileContent(_0x44a005));}export function bufferSha256(_0x2f5495){const _0x100af2=a108_0x107f;return createHash('sha256')[_0x100af2(0x72)](_0x2f5495)[_0x100af2(0x79)]('hex');}export function fileTreeHash(_0x19f213){const _0x4ca64e=a108_0x107f,_0x22fb6b=createHash(_0x4ca64e(0x76));for(const _0x21ca3c of normalizeManifestFiles(_0x19f213)){_0x22fb6b['update'](_0x21ca3c[_0x4ca64e(0x77)]),_0x22fb6b['update']('\x00'),_0x22fb6b[_0x4ca64e(0x72)](_0x21ca3c[_0x4ca64e(0x76)]),_0x22fb6b[_0x4ca64e(0x72)]('\x00'),_0x22fb6b[_0x4ca64e(0x72)](String(_0x21ca3c[_0x4ca64e(0x7b)])),_0x22fb6b[_0x4ca64e(0x72)]('\x00');}return _0x22fb6b[_0x4ca64e(0x79)](_0x4ca64e(0x6d));}
1
+ (function(_0x1a5a9b,_0x30ae6c){const _0x4d2c39=a108_0x3f33,_0x44c257=_0x1a5a9b();while(!![]){try{const _0x762cd=parseInt(_0x4d2c39(0x8d))/0x1*(-parseInt(_0x4d2c39(0x87))/0x2)+-parseInt(_0x4d2c39(0x82))/0x3*(-parseInt(_0x4d2c39(0x89))/0x4)+parseInt(_0x4d2c39(0x81))/0x5*(parseInt(_0x4d2c39(0x86))/0x6)+parseInt(_0x4d2c39(0x85))/0x7+-parseInt(_0x4d2c39(0x88))/0x8*(-parseInt(_0x4d2c39(0x8e))/0x9)+-parseInt(_0x4d2c39(0x84))/0xa*(-parseInt(_0x4d2c39(0x8a))/0xb)+-parseInt(_0x4d2c39(0x7f))/0xc;if(_0x762cd===_0x30ae6c)break;else _0x44c257['push'](_0x44c257['shift']());}catch(_0x196f4c){_0x44c257['push'](_0x44c257['shift']());}}}(a108_0x598e,0x21378));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x4525c3){const _0x33f119=a108_0x3f33;return createHash(_0x33f119(0x8b))[_0x33f119(0x80)](_0x4525c3)[_0x33f119(0x83)](_0x33f119(0x8c));}function a108_0x3f33(_0x348861,_0x40cc3c){_0x348861=_0x348861-0x7f;const _0x598e4a=a108_0x598e();let _0x3f33fe=_0x598e4a[_0x348861];return _0x3f33fe;}export function fileHash(_0x5b3b69){return bufferSha256(fileContent(_0x5b3b69));}export function bufferSha256(_0x51ef56){const _0x227ef2=a108_0x3f33;return createHash(_0x227ef2(0x8b))[_0x227ef2(0x80)](_0x51ef56)[_0x227ef2(0x83)]('hex');}function a108_0x598e(){const _0x1f334a=['1394974fobwti','12MkxgEx','114050LhhmQy','16BuAmWx','2044gaEZgv','11TPekqo','sha256','hex','1IgDZdP','666uoZwGO','6051492DSDwqQ','update','326285ApyXAO','627cOnVPA','digest','2606290vaMvKQ'];a108_0x598e=function(){return _0x1f334a;};return a108_0x598e();}export function fileTreeHash(_0x33868a){const _0x1fb8dc=a108_0x3f33,_0x411b8a=createHash('sha256');for(const _0x4bf12d of normalizeManifestFiles(_0x33868a)){_0x411b8a[_0x1fb8dc(0x80)](_0x4bf12d['path']),_0x411b8a[_0x1fb8dc(0x80)]('\x00'),_0x411b8a[_0x1fb8dc(0x80)](_0x4bf12d[_0x1fb8dc(0x8b)]),_0x411b8a[_0x1fb8dc(0x80)]('\x00'),_0x411b8a[_0x1fb8dc(0x80)](String(_0x4bf12d['size'])),_0x411b8a['update']('\x00');}return _0x411b8a[_0x1fb8dc(0x83)](_0x1fb8dc(0x8c));}
@@ -1 +1 @@
1
- (function(_0x58317b,_0x5ad293){const _0x211424=a109_0x48c7,_0x832fe4=_0x58317b();while(!![]){try{const _0x5c349a=parseInt(_0x211424(0xff))/0x1+-parseInt(_0x211424(0x105))/0x2+-parseInt(_0x211424(0x101))/0x3*(parseInt(_0x211424(0xfb))/0x4)+parseInt(_0x211424(0x108))/0x5*(-parseInt(_0x211424(0xfd))/0x6)+-parseInt(_0x211424(0x109))/0x7*(parseInt(_0x211424(0x104))/0x8)+parseInt(_0x211424(0xfe))/0x9+parseInt(_0x211424(0xfc))/0xa;if(_0x5c349a===_0x5ad293)break;else _0x832fe4['push'](_0x832fe4['shift']());}catch(_0x43c297){_0x832fe4['push'](_0x832fe4['shift']());}}}(a109_0x38e1,0xec7a1));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';function a109_0x48c7(_0x1b257d,_0x3face7){_0x1b257d=_0x1b257d-0xfb;const _0x38e15e=a109_0x38e1();let _0x48c724=_0x38e15e[_0x1b257d];return _0x48c724;}function a109_0x38e1(){const _0x2be499=['87zBRvku','freeze','skills','6119632wDNjGo','2415072YFyHZQ','appCode','cwd','755fTSqCH','7TvROoa','managedRoot','6092KLZyOX','16966240PELNYf','8850QRzRlR','6807600kxMZIi','754967leqLoP','.agents'];a109_0x38e1=function(){return _0x2be499;};return a109_0x38e1();}export function resolveRuntimeSkillInstallTarget(_0x3bfede,_0x138e06='global',_0x480313={}){const _0x836d65=a109_0x48c7,_0x4c706a=resolveSkillSyncPaths(_0x480313),_0x50b796=safePathSegment(_0x3bfede,_0x836d65(0x106)),_0x273fba=_0x138e06==='project'?[resolve(_0x480313[_0x836d65(0x107)]??process['cwd'](),_0x836d65(0x100),_0x836d65(0x103))]:runtimeAgentSkillRoots(_0x4c706a);return Object[_0x836d65(0x102)]({'scope':_0x138e06,'appCode':_0x50b796,'skillRoots':Object[_0x836d65(0x102)](_0x273fba),'managedRoot':_0x4c706a[_0x836d65(0x10a)]});}
1
+ function a109_0x426f(){const _0x542ccc=['skills','6953488zRnHUM','3431016wlkvSA','freeze','cwd','1MrrFUO','1561680bXnAoR','18SPjxSR','.agents','1736LZvSuJ','project','3wspBGd','1623947mJtPuO','20bqIEmW','6196488EGjgCe','492JLOzrO','460581pAOMlQ','24012UCdZKd','appCode'];a109_0x426f=function(){return _0x542ccc;};return a109_0x426f();}function a109_0x3c34(_0x5e63c9,_0x33ff6e){_0x5e63c9=_0x5e63c9-0x1c2;const _0x426ff7=a109_0x426f();let _0x3c345f=_0x426ff7[_0x5e63c9];return _0x3c345f;}(function(_0x435c52,_0x5f058b){const _0x44f7a2=a109_0x3c34,_0x4a4090=_0x435c52();while(!![]){try{const _0x2b9809=parseInt(_0x44f7a2(0x1c2))/0x1*(-parseInt(_0x44f7a2(0x1d2))/0x2)+-parseInt(_0x44f7a2(0x1c8))/0x3*(parseInt(_0x44f7a2(0x1cb))/0x4)+-parseInt(_0x44f7a2(0x1c3))/0x5+parseInt(_0x44f7a2(0x1ce))/0x6*(parseInt(_0x44f7a2(0x1c6))/0x7)+-parseInt(_0x44f7a2(0x1d1))/0x8*(parseInt(_0x44f7a2(0x1c4))/0x9)+parseInt(_0x44f7a2(0x1ca))/0xa*(parseInt(_0x44f7a2(0x1cd))/0xb)+-parseInt(_0x44f7a2(0x1cc))/0xc*(-parseInt(_0x44f7a2(0x1c9))/0xd);if(_0x2b9809===_0x5f058b)break;else _0x4a4090['push'](_0x4a4090['shift']());}catch(_0x216f53){_0x4a4090['push'](_0x4a4090['shift']());}}}(a109_0x426f,0xd7793));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x424657,_0x90fa8e='global',_0x2d28b6={}){const _0x448ff4=a109_0x3c34,_0x294803=resolveSkillSyncPaths(_0x2d28b6),_0x5bfe99=safePathSegment(_0x424657,_0x448ff4(0x1cf)),_0x36471b=_0x90fa8e===_0x448ff4(0x1c7)?[resolve(_0x2d28b6[_0x448ff4(0x1d4)]??process[_0x448ff4(0x1d4)](),_0x448ff4(0x1c5),_0x448ff4(0x1d0))]:runtimeAgentSkillRoots(_0x294803);return Object[_0x448ff4(0x1d3)]({'scope':_0x90fa8e,'appCode':_0x5bfe99,'skillRoots':Object['freeze'](_0x36471b),'managedRoot':_0x294803['managedRoot']});}
@@ -1 +1 @@
1
- const a110_0x1f2130=a110_0x9036;(function(_0x51c0cf,_0x1e48ad){const _0x623675=a110_0x9036,_0x3bf3a5=_0x51c0cf();while(!![]){try{const _0x1d2635=-parseInt(_0x623675(0x1b7))/0x1+parseInt(_0x623675(0x1a8))/0x2*(parseInt(_0x623675(0x1b1))/0x3)+-parseInt(_0x623675(0x1b6))/0x4*(parseInt(_0x623675(0x1dc))/0x5)+-parseInt(_0x623675(0x1c2))/0x6+-parseInt(_0x623675(0x1d5))/0x7*(parseInt(_0x623675(0x1ba))/0x8)+parseInt(_0x623675(0x1c6))/0x9*(-parseInt(_0x623675(0x1a5))/0xa)+parseInt(_0x623675(0x1c1))/0xb;if(_0x1d2635===_0x1e48ad)break;else _0x3bf3a5['push'](_0x3bf3a5['shift']());}catch(_0x453273){_0x3bf3a5['push'](_0x3bf3a5['shift']());}}}(a110_0xf9fa,0x81ed7));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a110_0x4e6c91 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';function a110_0x9036(_0x1939a4,_0x1ebfc4){_0x1939a4=_0x1939a4-0x1a4;const _0xf9faa8=a110_0xf9fa();let _0x90362f=_0xf9faa8[_0x1939a4];return _0x90362f;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a110_0x4e6c91,RESERVED_PROJECT_SKILL_CODES=new Set(['lovrabet',a110_0x1f2130(0x1a7),'secret-retriever']);export function linkEffectiveRuntimeSkills(_0x4c461c,_0x369298){const _0x176c01=a110_0x1f2130,_0x32ae85=new Map();for(const _0x526f24 of _0x4c461c){const _0x4f4e8a=_0x526f24['skill'][_0x176c01(0x1c5)];if(!_0x4f4e8a)continue;const _0x5d9447=_0x32ae85[_0x176c01(0x1a6)](_0x4f4e8a);(!_0x5d9447||_0x526f24[_0x176c01(0x1d7)]===_0x176c01(0x1a9))&&_0x32ae85['set'](_0x4f4e8a,_0x526f24);}const _0x18acf5=[];for(const _0x4175d7 of _0x32ae85[_0x176c01(0x1a4)]()){const _0x298105=requireSkillCode(_0x4175d7['skill']),_0x4fe5b2=readMetadataIfPresent(_0x4175d7[_0x176c01(0x1b3)]);if(_0x4fe5b2?.[_0x176c01(0x1c8)]!==_0x369298[_0x176c01(0x1c8)]||_0x4fe5b2[_0x176c01(0x1c5)]!==_0x298105)throw CliErrors[_0x176c01(0x1aa)]('Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20'+_0x369298[_0x176c01(0x1c8)]+':\x20'+_0x4175d7[_0x176c01(0x1b3)]);const _0x4bef61=runtimeSkillLinkName(_0x369298,_0x298105);for(const _0x41cbda of _0x369298[_0x176c01(0x1bc)]){_0x18acf5[_0x176c01(0x1ac)](ensureManagedSymlink(resolve(_0x41cbda,_0x4bef61),_0x4175d7[_0x176c01(0x1b0)],_0x369298,_0x298105));}}return _0x18acf5;}function a110_0xf9fa(){const _0x29ab18=['32837431LTfAyr','1612818oMeDWk','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','company','skillCode','9CVtyAL','name','appCode','filter','protectedLinkRoots','managedRoot','removed','contentHash','slice','map','unchanged','project','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','startsWith','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','729253DwGPtw','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','scope','isSymbolicLink','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','metadata-mismatch','created','495ybkskn','activeSkillCodes','external-symlink','values','9662330XkUEYT','get','runtime-observe','2FJFGcN','personal','validation','agentsSkillsDir','push','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','trim','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','dir','361359pUqbym','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','metadataPath','skipped','updated','13488RBFEUC','796269rtSsOP','length','not-managed-symlink','16wvcaNP','has','skillRoots','isDirectory','pruneSkillCodes','linked-from-protected-root','builtin'];a110_0xf9fa=function(){return _0x29ab18;};return a110_0xf9fa();}export function pruneStaleRuntimeSkillLinks(_0x11f6ef,_0x1f2156,_0x2c08db){const _0x2b0bd8=a110_0x1f2130,_0x4b8c6d=new Set([..._0x1f2156][_0x2b0bd8(0x1cf)](_0x1af763=>_0x1af763[_0x2b0bd8(0x1ae)]())[_0x2b0bd8(0x1c9)](Boolean)),_0x50e77f=_0x2c08db?new Set([..._0x2c08db][_0x2b0bd8(0x1cf)](_0x51fdd8=>_0x51fdd8[_0x2b0bd8(0x1ae)]())[_0x2b0bd8(0x1c9)](Boolean)):undefined,_0x44e11c=[];for(const _0x93b4d4 of _0x11f6ef[_0x2b0bd8(0x1bc)]){for(const _0x5855dc of managedTargetSkillLinkPaths(_0x93b4d4,_0x11f6ef)){const _0x10e7ba=runtimeSkillCodeFromLink(_0x11f6ef,_0x5855dc);if(_0x50e77f&&!_0x50e77f[_0x2b0bd8(0x1bb)](_0x10e7ba))continue;if(_0x4b8c6d[_0x2b0bd8(0x1bb)](_0x10e7ba))continue;_0x44e11c['push'](removeManagedSkillLink(_0x5855dc,_0x11f6ef,_0x10e7ba));}}return _0x44e11c;}export function pruneStaleRuntimeSkillCache(_0x17b3bd,_0x24921e={}){const _0x44f54c=a110_0x1f2130,_0x4940fa=new Set([..._0x17b3bd[_0x44f54c(0x1dd)]][_0x44f54c(0x1cf)](_0x118a34=>_0x118a34[_0x44f54c(0x1ae)]())['filter'](Boolean)),_0x33b375=_0x17b3bd[_0x44f54c(0x1be)]?new Set([..._0x17b3bd['pruneSkillCodes']][_0x44f54c(0x1cf)](_0x5bd8c2=>_0x5bd8c2['trim']())[_0x44f54c(0x1c9)](Boolean)):undefined,_0x5ad8d2=_0x17b3bd['scopes']??[_0x44f54c(0x1a9),_0x44f54c(0x1c4)],_0x125ae3=resolve(getRuntimeSkillCacheRoot(_0x17b3bd['env'],_0x17b3bd['accessKey'],_0x24921e),safePathSegment(_0x17b3bd[_0x44f54c(0x1c8)],_0x44f54c(0x1c8))),_0x28b680=[];for(const _0x2296c1 of _0x5ad8d2){const _0x129a74=resolve(_0x125ae3,_0x2296c1);if(!existsSync(_0x129a74))continue;for(const _0x50b394 of readdirSync(_0x129a74,{'withFileTypes':!![]})){if(!_0x50b394[_0x44f54c(0x1bd)]())continue;const _0x3bbee4=_0x50b394[_0x44f54c(0x1c7)];if(_0x33b375&&!_0x33b375[_0x44f54c(0x1bb)](_0x3bbee4))continue;if(_0x4940fa[_0x44f54c(0x1bb)](_0x3bbee4))continue;const _0x436d27=resolve(_0x129a74,_0x3bbee4),_0xac3532=readMetadataIfPresent(resolve(_0x436d27,METADATA_FILE));if(_0xac3532?.[_0x44f54c(0x1c8)]!==_0x17b3bd[_0x44f54c(0x1c8)]||_0xac3532[_0x44f54c(0x1d7)]!==_0x2296c1||_0xac3532[_0x44f54c(0x1c5)]!==_0x3bbee4){_0x28b680[_0x44f54c(0x1ac)]({'path':_0x436d27,'action':_0x44f54c(0x1b4),'reason':_0x44f54c(0x1da)});continue;}if(isLinkedFromAnyRoot(_0x436d27,_0x17b3bd[_0x44f54c(0x1ca)]??[])){_0x28b680[_0x44f54c(0x1ac)]({'path':_0x436d27,'action':'skipped','reason':_0x44f54c(0x1bf)});continue;}removeSync(_0x436d27),_0x28b680[_0x44f54c(0x1ac)]({'path':_0x436d27,'action':'removed'});}}return _0x28b680;}export function linkGlobalRuntimeSkills(_0x431ce4,_0x3f2c58={}){const _0x1d44ae=a110_0x1f2130,_0x3273ce=resolveSkillSyncPaths(_0x3f2c58),_0x1b1fec=[];for(const _0x30c986 of _0x431ce4){if(_0x30c986[_0x1d44ae(0x1d7)]!==_0x1d44ae(0x1c0))throw CliErrors[_0x1d44ae(0x1aa)]('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x30c986['scope']);const _0x435604=requireSkillCode(_0x30c986['skill']),_0x65a058=copyManagedSkillDirectory(_0x30c986[_0x1d44ae(0x1b0)],resolve(_0x3273ce[_0x1d44ae(0x1ab)],_0x435604));_0x1b1fec[_0x1d44ae(0x1ac)]({..._0x65a058,'contentHash':_0x30c986[_0x1d44ae(0x1cd)]});}return _0x1b1fec;}function ensureManagedSymlink(_0x365933,_0x3df7fa,_0x4c30af,_0x57b3ec){const _0x5774be=a110_0x1f2130;mkdirSync(dirname(_0x365933),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x365933)||isDanglingSymlink(_0x365933)){const _0x32518d=lstatSync(_0x365933);if(!_0x32518d[_0x5774be(0x1d8)]())throw CliErrors[_0x5774be(0x1aa)](_0x5774be(0x1d9)+_0x365933);const _0x3d5616=resolveSymlinkTarget(_0x365933);if(!isPathInside(realOrResolved(_0x3d5616),realOrResolved(_0x4c30af[_0x5774be(0x1cb)])))throw CliErrors['validation'](_0x5774be(0x1ad)+_0x365933);if(realOrResolved(_0x3d5616)===realOrResolved(_0x3df7fa))return{'path':_0x365933,'target':_0x3df7fa,'action':_0x5774be(0x1d0)};const _0x53b153=readMetadataIfPresent(resolve(_0x3d5616,METADATA_FILE));if(_0x4c30af['scope']===_0x5774be(0x1d1)&&(_0x53b153?.['appCode']!==_0x4c30af[_0x5774be(0x1c8)]||_0x53b153[_0x5774be(0x1c5)]!==_0x57b3ec))throw CliErrors[_0x5774be(0x1aa)](_0x5774be(0x1d4)+_0x365933);return unlinkSync(_0x365933),symlinkSync(_0x3df7fa,_0x365933,'dir'),{'path':_0x365933,'target':_0x3df7fa,'action':_0x5774be(0x1b5)};}return symlinkSync(_0x3df7fa,_0x365933,'dir'),{'path':_0x365933,'target':_0x3df7fa,'action':_0x5774be(0x1db)};}function managedTargetSkillLinkPaths(_0x6d9fa7,_0x392e11){const _0x12c4cf=a110_0x1f2130;if(!existsSync(_0x6d9fa7))return[];const _0x3d6323=_0x392e11['appCode']+'--';return readdirSync(_0x6d9fa7,{'withFileTypes':!![]})['filter'](_0x5159be=>_0x392e11[_0x12c4cf(0x1d7)]===_0x12c4cf(0x1d1)||_0x5159be[_0x12c4cf(0x1c7)][_0x12c4cf(0x1d3)](_0x3d6323))['map'](_0x1724af=>resolve(_0x6d9fa7,_0x1724af[_0x12c4cf(0x1c7)]));}function removeManagedSkillLink(_0x453593,_0x5536fc,_0x460e0b){const _0x5862ee=a110_0x1f2130,_0xcf75e4=lstatIfPresent(_0x453593);if(!_0xcf75e4?.['isSymbolicLink']())return{'path':_0x453593,'action':_0x5862ee(0x1b4),'reason':_0x5862ee(0x1b9)};const _0x510a89=resolveSymlinkTarget(_0x453593);if(!isPathInside(realOrResolved(_0x510a89),realOrResolved(_0x5536fc['managedRoot'])))return{'path':_0x453593,'action':'skipped','reason':_0x5862ee(0x1de)};const _0xce2d48=readMetadataIfPresent(resolve(_0x510a89,METADATA_FILE));if(_0x5536fc['scope']===_0x5862ee(0x1d1)&&(_0xce2d48?.['appCode']!==_0x5536fc[_0x5862ee(0x1c8)]||_0xce2d48[_0x5862ee(0x1c5)]!==_0x460e0b))return{'path':_0x453593,'action':_0x5862ee(0x1b4),'reason':_0x5862ee(0x1da)};return unlinkSync(_0x453593),{'path':_0x453593,'action':_0x5862ee(0x1cc)};}function isLinkedFromAnyRoot(_0x15426d,_0x5744e0){const _0x413a0c=realOrResolved(_0x15426d);for(const _0x21b460 of _0x5744e0){if(!existsSync(_0x21b460))continue;for(const _0x47f226 of readdirSync(_0x21b460,{'withFileTypes':!![]})){if(!_0x47f226['isSymbolicLink']())continue;const _0x339eec=resolve(_0x21b460,_0x47f226['name']);if(realOrResolved(resolveSymlinkTarget(_0x339eec))===_0x413a0c)return!![];}}return![];}function runtimeSkillLinkName(_0x20bfe4,_0x23a2da){const _0x4c7842=a110_0x1f2130,_0x577dfb=safePathSegment(_0x23a2da,_0x4c7842(0x1c5));if(_0x20bfe4[_0x4c7842(0x1d7)]===_0x4c7842(0x1d1)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x577dfb))throw CliErrors[_0x4c7842(0x1aa)](_0x4c7842(0x1d6)+_0x577dfb);return _0x20bfe4[_0x4c7842(0x1d7)]===_0x4c7842(0x1d1)?_0x577dfb:_0x20bfe4[_0x4c7842(0x1c8)]+'--'+_0x577dfb;}function runtimeSkillCodeFromLink(_0x5358c5,_0x222470){const _0x5202ec=a110_0x1f2130,_0x42e2cb=basename(_0x222470);return _0x5358c5['scope']===_0x5202ec(0x1d1)?_0x42e2cb:_0x42e2cb[_0x5202ec(0x1ce)]((_0x5358c5[_0x5202ec(0x1c8)]+'--')[_0x5202ec(0x1b8)]);}export function copyManagedSkillDirectory(_0x201dac,_0x1c1428){const _0x220a72=a110_0x1f2130,_0x6c0462=resolve(_0x1c1428,METADATA_FILE),_0x16947c=existsSync(_0x1c1428);if(_0x16947c){const _0x5bf6dc=lstatSync(_0x1c1428);if(_0x5bf6dc['isSymbolicLink']())throw CliErrors[_0x220a72(0x1aa)](_0x220a72(0x1b2)+_0x1c1428);if(!_0x5bf6dc[_0x220a72(0x1bd)]())throw CliErrors[_0x220a72(0x1aa)](_0x220a72(0x1af)+_0x1c1428);const _0x49074a=readMetadataIfPresent(_0x6c0462);if(_0x49074a?.['scope']!=='builtin')throw CliErrors[_0x220a72(0x1aa)](_0x220a72(0x1d2)+_0x1c1428);}ensureDirSync(dirname(_0x1c1428));const _0x107bd8=_0x16947c?readMetadataIfPresent(_0x6c0462)?.[_0x220a72(0x1cd)]:undefined,_0x304b08=readMetadataIfPresent(resolve(_0x201dac,METADATA_FILE))?.[_0x220a72(0x1cd)];return _0x16947c&&removeSync(_0x1c1428),copySkillDirectory(_0x201dac,_0x1c1428),{'path':_0x1c1428,'target':_0x201dac,'action':!_0x16947c?_0x220a72(0x1db):_0x107bd8===_0x304b08?_0x220a72(0x1d0):_0x220a72(0x1b5)};}function copySkillDirectory(_0x12b3bc,_0x7a7e33){copySync(_0x12b3bc,_0x7a7e33,{'dereference':![],'overwrite':!![],'filter'(_0x34f44b){const _0x111b3f=a110_0x9036;if(lstatSync(_0x34f44b)[_0x111b3f(0x1d8)]())throw CliErrors['validation'](_0x111b3f(0x1c3)+_0x34f44b);return!![];}});}
1
+ const a110_0x31efcf=a110_0x3dda;(function(_0x5b7ac3,_0x3d12eb){const _0x420484=a110_0x3dda,_0x1e0bec=_0x5b7ac3();while(!![]){try{const _0x1ea162=-parseInt(_0x420484(0xe3))/0x1*(parseInt(_0x420484(0xe0))/0x2)+-parseInt(_0x420484(0xf6))/0x3*(parseInt(_0x420484(0xf9))/0x4)+-parseInt(_0x420484(0x104))/0x5+-parseInt(_0x420484(0xd8))/0x6+-parseInt(_0x420484(0xe9))/0x7+parseInt(_0x420484(0xef))/0x8*(-parseInt(_0x420484(0xe6))/0x9)+parseInt(_0x420484(0xd7))/0xa;if(_0x1ea162===_0x3d12eb)break;else _0x1e0bec['push'](_0x1e0bec['shift']());}catch(_0x3a1302){_0x1e0bec['push'](_0x1e0bec['shift']());}}}(a110_0x4ae7,0xb49dd));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a110_0x401720 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';function a110_0x4ae7(){const _0x280be9=['appCode','updated','linked-from-protected-root','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','4mzYQYi','filter','managedRoot','376361hAYLhQ','set','company','6678171BqpsRZ','skillCode','skillRoots','9522513pjVzNe','activeSkillCodes','pruneSkillCodes','slice','skipped','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','8fLZyRI','external-symlink','protectedLinkRoots','runtime-observe','isSymbolicLink','isDirectory','contentHash','21aExyjs','scopes','personal','290908szacri','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','trim','builtin','push','secret-retriever','created','unchanged','length','env','removed','303325kRhkSq','project','values','accessKey','validation','metadata-mismatch','map','skill','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','scope','dir','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','name','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','metadataPath','lovrabet','has','agentsSkillsDir','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','52236710pYhkOB','6354072jTFKJl','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','startsWith','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'];a110_0x4ae7=function(){return _0x280be9;};return a110_0x4ae7();}import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a110_0x401720,RESERVED_PROJECT_SKILL_CODES=new Set([a110_0x31efcf(0x113),a110_0x31efcf(0xf2),a110_0x31efcf(0xfe)]);export function linkEffectiveRuntimeSkills(_0x440049,_0x3e1c68){const _0x514f59=a110_0x31efcf,_0x512057=new Map();for(const _0x8c8e85 of _0x440049){const _0x4f0033=_0x8c8e85[_0x514f59(0x10b)][_0x514f59(0xe7)];if(!_0x4f0033)continue;const _0x391adf=_0x512057['get'](_0x4f0033);(!_0x391adf||_0x8c8e85[_0x514f59(0x10d)]===_0x514f59(0xf8))&&_0x512057[_0x514f59(0xe4)](_0x4f0033,_0x8c8e85);}const _0x2af3da=[];for(const _0x3b12e5 of _0x512057[_0x514f59(0x106)]()){const _0x180747=requireSkillCode(_0x3b12e5['skill']),_0x166cbe=readMetadataIfPresent(_0x3b12e5[_0x514f59(0x112)]);if(_0x166cbe?.[_0x514f59(0xdc)]!==_0x3e1c68[_0x514f59(0xdc)]||_0x166cbe[_0x514f59(0xe7)]!==_0x180747)throw CliErrors['validation'](_0x514f59(0x10f)+_0x3e1c68['appCode']+':\x20'+_0x3b12e5[_0x514f59(0x112)]);const _0x50d287=runtimeSkillLinkName(_0x3e1c68,_0x180747);for(const _0x3baa0c of _0x3e1c68[_0x514f59(0xe8)]){_0x2af3da[_0x514f59(0xfd)](ensureManagedSymlink(resolve(_0x3baa0c,_0x50d287),_0x3b12e5['dir'],_0x3e1c68,_0x180747));}}return _0x2af3da;}function a110_0x3dda(_0x1a2803,_0x5d5be2){_0x1a2803=_0x1a2803-0xd7;const _0x4ae746=a110_0x4ae7();let _0x3dda3b=_0x4ae746[_0x1a2803];return _0x3dda3b;}export function pruneStaleRuntimeSkillLinks(_0xa95a4d,_0x800c4f,_0x5861e9){const _0x6fefa2=a110_0x31efcf,_0x26efb0=new Set([..._0x800c4f][_0x6fefa2(0x10a)](_0x18f70f=>_0x18f70f[_0x6fefa2(0xfb)]())[_0x6fefa2(0xe1)](Boolean)),_0x403d23=_0x5861e9?new Set([..._0x5861e9][_0x6fefa2(0x10a)](_0x1ee0d5=>_0x1ee0d5[_0x6fefa2(0xfb)]())[_0x6fefa2(0xe1)](Boolean)):undefined,_0x5b6713=[];for(const _0x576511 of _0xa95a4d[_0x6fefa2(0xe8)]){for(const _0x3cbdeb of managedTargetSkillLinkPaths(_0x576511,_0xa95a4d)){const _0x4fa5a3=runtimeSkillCodeFromLink(_0xa95a4d,_0x3cbdeb);if(_0x403d23&&!_0x403d23[_0x6fefa2(0x114)](_0x4fa5a3))continue;if(_0x26efb0[_0x6fefa2(0x114)](_0x4fa5a3))continue;_0x5b6713[_0x6fefa2(0xfd)](removeManagedSkillLink(_0x3cbdeb,_0xa95a4d,_0x4fa5a3));}}return _0x5b6713;}export function pruneStaleRuntimeSkillCache(_0x52d5ab,_0x137f67={}){const _0xf15218=a110_0x31efcf,_0x132cae=new Set([..._0x52d5ab[_0xf15218(0xea)]][_0xf15218(0x10a)](_0x55dc92=>_0x55dc92[_0xf15218(0xfb)]())[_0xf15218(0xe1)](Boolean)),_0x243443=_0x52d5ab[_0xf15218(0xeb)]?new Set([..._0x52d5ab[_0xf15218(0xeb)]][_0xf15218(0x10a)](_0xab8e62=>_0xab8e62[_0xf15218(0xfb)]())['filter'](Boolean)):undefined,_0x192a59=_0x52d5ab[_0xf15218(0xf7)]??['personal',_0xf15218(0xe5)],_0x2da2b0=resolve(getRuntimeSkillCacheRoot(_0x52d5ab[_0xf15218(0x102)],_0x52d5ab[_0xf15218(0x107)],_0x137f67),safePathSegment(_0x52d5ab[_0xf15218(0xdc)],'appCode')),_0x49a63a=[];for(const _0x4bcb18 of _0x192a59){const _0x58061b=resolve(_0x2da2b0,_0x4bcb18);if(!existsSync(_0x58061b))continue;for(const _0x2dcf84 of readdirSync(_0x58061b,{'withFileTypes':!![]})){if(!_0x2dcf84[_0xf15218(0xf4)]())continue;const _0x4e52f5=_0x2dcf84[_0xf15218(0x110)];if(_0x243443&&!_0x243443[_0xf15218(0x114)](_0x4e52f5))continue;if(_0x132cae[_0xf15218(0x114)](_0x4e52f5))continue;const _0x1ceaac=resolve(_0x58061b,_0x4e52f5),_0x3a8aa9=readMetadataIfPresent(resolve(_0x1ceaac,METADATA_FILE));if(_0x3a8aa9?.[_0xf15218(0xdc)]!==_0x52d5ab['appCode']||_0x3a8aa9[_0xf15218(0x10d)]!==_0x4bcb18||_0x3a8aa9[_0xf15218(0xe7)]!==_0x4e52f5){_0x49a63a[_0xf15218(0xfd)]({'path':_0x1ceaac,'action':_0xf15218(0xed),'reason':'metadata-mismatch'});continue;}if(isLinkedFromAnyRoot(_0x1ceaac,_0x52d5ab[_0xf15218(0xf1)]??[])){_0x49a63a[_0xf15218(0xfd)]({'path':_0x1ceaac,'action':'skipped','reason':_0xf15218(0xde)});continue;}removeSync(_0x1ceaac),_0x49a63a[_0xf15218(0xfd)]({'path':_0x1ceaac,'action':_0xf15218(0x103)});}}return _0x49a63a;}export function linkGlobalRuntimeSkills(_0x2047a8,_0x312271={}){const _0x2fc8fc=a110_0x31efcf,_0x31be76=resolveSkillSyncPaths(_0x312271),_0x57f5af=[];for(const _0x3f50fa of _0x2047a8){if(_0x3f50fa['scope']!==_0x2fc8fc(0xfc))throw CliErrors[_0x2fc8fc(0x108)](_0x2fc8fc(0xdb)+_0x3f50fa['scope']);const _0x54dce4=requireSkillCode(_0x3f50fa[_0x2fc8fc(0x10b)]),_0x1a2d52=copyManagedSkillDirectory(_0x3f50fa[_0x2fc8fc(0x10e)],resolve(_0x31be76[_0x2fc8fc(0x115)],_0x54dce4));_0x57f5af[_0x2fc8fc(0xfd)]({..._0x1a2d52,'contentHash':_0x3f50fa[_0x2fc8fc(0xf5)]});}return _0x57f5af;}function ensureManagedSymlink(_0x4f7b18,_0x3af540,_0x9a7a46,_0xde2e8a){const _0x12231e=a110_0x31efcf;mkdirSync(dirname(_0x4f7b18),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x4f7b18)||isDanglingSymlink(_0x4f7b18)){const _0x1350bf=lstatSync(_0x4f7b18);if(!_0x1350bf['isSymbolicLink']())throw CliErrors[_0x12231e(0x108)](_0x12231e(0x116)+_0x4f7b18);const _0x27b6a9=resolveSymlinkTarget(_0x4f7b18);if(!isPathInside(realOrResolved(_0x27b6a9),realOrResolved(_0x9a7a46[_0x12231e(0xe2)])))throw CliErrors[_0x12231e(0x108)](_0x12231e(0xd9)+_0x4f7b18);if(realOrResolved(_0x27b6a9)===realOrResolved(_0x3af540))return{'path':_0x4f7b18,'target':_0x3af540,'action':_0x12231e(0x100)};const _0x4f2d5a=readMetadataIfPresent(resolve(_0x27b6a9,METADATA_FILE));if(_0x9a7a46[_0x12231e(0x10d)]==='project'&&(_0x4f2d5a?.[_0x12231e(0xdc)]!==_0x9a7a46[_0x12231e(0xdc)]||_0x4f2d5a[_0x12231e(0xe7)]!==_0xde2e8a))throw CliErrors['validation'](_0x12231e(0xfa)+_0x4f7b18);return unlinkSync(_0x4f7b18),symlinkSync(_0x3af540,_0x4f7b18,_0x12231e(0x10e)),{'path':_0x4f7b18,'target':_0x3af540,'action':_0x12231e(0xdd)};}return symlinkSync(_0x3af540,_0x4f7b18,_0x12231e(0x10e)),{'path':_0x4f7b18,'target':_0x3af540,'action':_0x12231e(0xff)};}function managedTargetSkillLinkPaths(_0x50ffd7,_0x57e575){const _0x1fd43e=a110_0x31efcf;if(!existsSync(_0x50ffd7))return[];const _0x4c891e=_0x57e575[_0x1fd43e(0xdc)]+'--';return readdirSync(_0x50ffd7,{'withFileTypes':!![]})[_0x1fd43e(0xe1)](_0x5da330=>_0x57e575[_0x1fd43e(0x10d)]==='project'||_0x5da330[_0x1fd43e(0x110)][_0x1fd43e(0xda)](_0x4c891e))[_0x1fd43e(0x10a)](_0xdfb19e=>resolve(_0x50ffd7,_0xdfb19e['name']));}function removeManagedSkillLink(_0x2a44b8,_0x4e0685,_0x3b6d95){const _0x57f1ba=a110_0x31efcf,_0x2fd648=lstatIfPresent(_0x2a44b8);if(!_0x2fd648?.[_0x57f1ba(0xf3)]())return{'path':_0x2a44b8,'action':_0x57f1ba(0xed),'reason':'not-managed-symlink'};const _0xc22aad=resolveSymlinkTarget(_0x2a44b8);if(!isPathInside(realOrResolved(_0xc22aad),realOrResolved(_0x4e0685['managedRoot'])))return{'path':_0x2a44b8,'action':_0x57f1ba(0xed),'reason':_0x57f1ba(0xf0)};const _0x10dec3=readMetadataIfPresent(resolve(_0xc22aad,METADATA_FILE));if(_0x4e0685[_0x57f1ba(0x10d)]===_0x57f1ba(0x105)&&(_0x10dec3?.['appCode']!==_0x4e0685[_0x57f1ba(0xdc)]||_0x10dec3[_0x57f1ba(0xe7)]!==_0x3b6d95))return{'path':_0x2a44b8,'action':_0x57f1ba(0xed),'reason':_0x57f1ba(0x109)};return unlinkSync(_0x2a44b8),{'path':_0x2a44b8,'action':_0x57f1ba(0x103)};}function isLinkedFromAnyRoot(_0x4a87de,_0x4e337d){const _0x1ed826=a110_0x31efcf,_0x479aab=realOrResolved(_0x4a87de);for(const _0x4fcae6 of _0x4e337d){if(!existsSync(_0x4fcae6))continue;for(const _0x3805e1 of readdirSync(_0x4fcae6,{'withFileTypes':!![]})){if(!_0x3805e1[_0x1ed826(0xf3)]())continue;const _0x1acdb6=resolve(_0x4fcae6,_0x3805e1['name']);if(realOrResolved(resolveSymlinkTarget(_0x1acdb6))===_0x479aab)return!![];}}return![];}function runtimeSkillLinkName(_0x39cd85,_0x53159e){const _0x5cda08=a110_0x31efcf,_0x129758=safePathSegment(_0x53159e,'skillCode');if(_0x39cd85['scope']==='project'&&RESERVED_PROJECT_SKILL_CODES[_0x5cda08(0x114)](_0x129758))throw CliErrors[_0x5cda08(0x108)](_0x5cda08(0xdf)+_0x129758);return _0x39cd85[_0x5cda08(0x10d)]===_0x5cda08(0x105)?_0x129758:_0x39cd85[_0x5cda08(0xdc)]+'--'+_0x129758;}function runtimeSkillCodeFromLink(_0x405204,_0x3bd97d){const _0x53a2f4=a110_0x31efcf,_0x22c67e=basename(_0x3bd97d);return _0x405204[_0x53a2f4(0x10d)]==='project'?_0x22c67e:_0x22c67e[_0x53a2f4(0xec)]((_0x405204[_0x53a2f4(0xdc)]+'--')[_0x53a2f4(0x101)]);}export function copyManagedSkillDirectory(_0x228920,_0x4b1451){const _0x135f47=a110_0x31efcf,_0x3e9f9a=resolve(_0x4b1451,METADATA_FILE),_0xa4ae25=existsSync(_0x4b1451);if(_0xa4ae25){const _0x5b612c=lstatSync(_0x4b1451);if(_0x5b612c['isSymbolicLink']())throw CliErrors[_0x135f47(0x108)](_0x135f47(0x10c)+_0x4b1451);if(!_0x5b612c[_0x135f47(0xf4)]())throw CliErrors[_0x135f47(0x108)](_0x135f47(0x111)+_0x4b1451);const _0x988064=readMetadataIfPresent(_0x3e9f9a);if(_0x988064?.[_0x135f47(0x10d)]!==_0x135f47(0xfc))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x4b1451);}ensureDirSync(dirname(_0x4b1451));const _0x29f6f0=_0xa4ae25?readMetadataIfPresent(_0x3e9f9a)?.[_0x135f47(0xf5)]:undefined,_0x55d1a5=readMetadataIfPresent(resolve(_0x228920,METADATA_FILE))?.[_0x135f47(0xf5)];return _0xa4ae25&&removeSync(_0x4b1451),copySkillDirectory(_0x228920,_0x4b1451),{'path':_0x4b1451,'target':_0x228920,'action':!_0xa4ae25?_0x135f47(0xff):_0x29f6f0===_0x55d1a5?_0x135f47(0x100):_0x135f47(0xdd)};}function copySkillDirectory(_0x4a6708,_0x557c48){copySync(_0x4a6708,_0x557c48,{'dereference':![],'overwrite':!![],'filter'(_0x59d0cc){const _0x6a2718=a110_0x3dda;if(lstatSync(_0x59d0cc)['isSymbolicLink']())throw CliErrors['validation'](_0x6a2718(0xee)+_0x59d0cc);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x1727e8,_0x1f07bd){const _0x473111=a111_0x5b95,_0x53119c=_0x1727e8();while(!![]){try{const _0x4e3638=parseInt(_0x473111(0xf8))/0x1*(parseInt(_0x473111(0xe2))/0x2)+-parseInt(_0x473111(0x107))/0x3*(-parseInt(_0x473111(0xf3))/0x4)+-parseInt(_0x473111(0xf6))/0x5*(-parseInt(_0x473111(0xf1))/0x6)+parseInt(_0x473111(0x100))/0x7+parseInt(_0x473111(0xfe))/0x8+-parseInt(_0x473111(0x109))/0x9*(parseInt(_0x473111(0xec))/0xa)+-parseInt(_0x473111(0xf0))/0xb*(parseInt(_0x473111(0xea))/0xc);if(_0x4e3638===_0x1f07bd)break;else _0x53119c['push'](_0x53119c['shift']());}catch(_0x564268){_0x53119c['push'](_0x53119c['shift']());}}}(a111_0x183c,0xda647));function a111_0x183c(){const _0x21be91=['linkedPaths','3395436OoMfOo','appCode','11512840sPMaen','trim','\x20!=\x20','map','165sMGYmr','6kXGlPi','scopes','688YckbAm','code','skillMdPath','8471620xdJPAw','includes','7022CByiHm','filter','local','accessKey','name','dir','4577000UOqnSe','validation','11870705huHZaQ','tags','scope','has','startsWith','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','set','11820crZFVD','metadataPath','9bFarmv','builtin','linkedPath','isDirectory','isSymbolicLink','cacheDir','project','470RWzrcC','sort','source','link','skillCode','cache','values'];a111_0x183c=function(){return _0x21be91;};return a111_0x183c();}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0xb06614,_0x3a4814,_0x1c07a8={}){const _0x856959=a111_0x5b95,_0x100756=safePathSegment(_0xb06614[_0x856959(0xeb)],_0x856959(0xeb));if(_0x3a4814[_0x856959(0xeb)]!==_0x100756)throw CliErrors[_0x856959(0xff)](_0x856959(0x105)+_0x3a4814[_0x856959(0xeb)]+_0x856959(0xee)+_0x100756);const _0x380e07=normalizeRuntimeSkillScopes(_0xb06614['scopes']),_0x278b3f=new Set(_0x380e07),_0x1f47bd=_0xb06614[_0x856959(0xf4)]?.[_0x856959(0xed)](),_0x170b99=new Map(),_0xd68350=resolve(getRuntimeSkillCacheRoot(_0xb06614['env'],_0xb06614[_0x856959(0xfb)],_0x1c07a8),_0x100756);for(const _0x39b99e of _0x380e07){for(const _0x153980 of localSkillEntryDirs(resolve(_0xd68350,_0x39b99e))){collectLocalRuntimeSkill(_0x170b99,_0x153980,{'appCode':_0x100756,'scopes':_0x278b3f,'code':_0x1f47bd,'source':_0x856959(0xe7)});}}for(const _0x4a0bc2 of _0x3a4814['skillRoots']){for(const _0x137cee of localSkillLinkCandidates(_0x4a0bc2,_0x3a4814,_0x278b3f)){collectLocalRuntimeSkill(_0x170b99,_0x137cee,{'appCode':_0x100756,'scopes':_0x278b3f,'code':_0x1f47bd,'source':_0x856959(0xe5),'linkedPath':_0x137cee});}}return Array['from'](_0x170b99[_0x856959(0xe8)]())[_0x856959(0xe3)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x33f96c){const _0x2360ed=a111_0x5b95;if(!existsSync(_0x33f96c))return[];return readdirSync(_0x33f96c,{'withFileTypes':!![]})[_0x2360ed(0xf9)](_0x2aebe9=>_0x2aebe9[_0x2360ed(0xde)]()||_0x2aebe9[_0x2360ed(0xdf)]())[_0x2360ed(0xef)](_0x3d7a0b=>resolve(_0x33f96c,_0x3d7a0b['name']));}function localSkillLinkCandidates(_0x2b277e,_0x513446,_0x5518dc){const _0x40bb46=a111_0x5b95;if(!existsSync(_0x2b277e))return[];const _0x4fd76e=_0x513446[_0x40bb46(0xeb)]+'--';return readdirSync(_0x2b277e,{'withFileTypes':!![]})['filter'](_0x52498b=>_0x52498b['isDirectory']()||_0x52498b[_0x40bb46(0xdf)]())[_0x40bb46(0xf9)](_0x42aa4b=>_0x513446[_0x40bb46(0x102)]===_0x40bb46(0xe1)||_0x42aa4b[_0x40bb46(0xfc)][_0x40bb46(0x104)](_0x4fd76e)||_0x5518dc[_0x40bb46(0x103)](_0x40bb46(0xdc)))[_0x40bb46(0xef)](_0x57b8e1=>resolve(_0x2b277e,_0x57b8e1['name']));}function a111_0x5b95(_0x40e3e5,_0x31497a){_0x40e3e5=_0x40e3e5-0xdc;const _0x183c9d=a111_0x183c();let _0x5b9580=_0x183c9d[_0x40e3e5];return _0x5b9580;}function collectLocalRuntimeSkill(_0x2b7b2d,_0x17cb64,_0x3abf5c){const _0x9d31f0=a111_0x5b95,_0x4a47df=resolve(_0x17cb64,METADATA_FILE),_0x2d43e7=readMetadataIfPresent(_0x4a47df);if(!_0x2d43e7)return;if(_0x2d43e7['appCode']!==_0x3abf5c['appCode'])return;if(!isRuntimeSkillScope(_0x2d43e7[_0x9d31f0(0x102)])||!_0x3abf5c[_0x9d31f0(0xf2)][_0x9d31f0(0x103)](_0x2d43e7[_0x9d31f0(0x102)]))return;const _0x45825e=_0x2d43e7[_0x9d31f0(0xe6)]?.[_0x9d31f0(0xed)]();if(!_0x45825e)return;if(_0x3abf5c['code']&&_0x45825e!==_0x3abf5c['code'])return;const _0x1c51f4=_0x2d43e7[_0x9d31f0(0x102)]+':'+_0x45825e,_0x5d7ef7=_0x3abf5c['linkedPath']?[_0x3abf5c[_0x9d31f0(0xdd)]]:[],_0x4293f8=_0x2b7b2d['get'](_0x1c51f4);if(_0x4293f8){_0x3abf5c[_0x9d31f0(0xe4)]===_0x9d31f0(0xe7)&&(_0x4293f8['dir']=_0x17cb64,_0x4293f8[_0x9d31f0(0xe0)]=_0x17cb64,_0x4293f8[_0x9d31f0(0xf5)]=resolve(_0x17cb64,SKILL_FILE),_0x4293f8[_0x9d31f0(0x108)]=_0x4a47df);for(const _0x583a08 of _0x5d7ef7){!_0x4293f8[_0x9d31f0(0xe9)][_0x9d31f0(0xf7)](_0x583a08)&&_0x4293f8['linkedPaths']['push'](_0x583a08);}_0x4293f8['linkedPaths'][_0x9d31f0(0xe3)]();return;}_0x2b7b2d[_0x9d31f0(0x106)](_0x1c51f4,{..._0x2d43e7,'tags':Array['isArray'](_0x2d43e7[_0x9d31f0(0x101)])?_0x2d43e7[_0x9d31f0(0x101)]:[],'scope':_0x2d43e7[_0x9d31f0(0x102)],'source':_0x9d31f0(0xfa),'dir':_0x17cb64,'cacheDir':_0x3abf5c[_0x9d31f0(0xe4)]==='cache'?_0x17cb64:undefined,'skillMdPath':resolve(_0x17cb64,SKILL_FILE),'metadataPath':_0x4a47df,'linkedPaths':_0x5d7ef7});}function compareLocalRuntimeSkills(_0x1b2898,_0x36fa9f){const _0x49e4b7=a111_0x5b95,_0x19dad0={'personal':0x0,'company':0x1,'builtin':0x2};return _0x19dad0[_0x1b2898[_0x49e4b7(0x102)]]-_0x19dad0[_0x36fa9f['scope']]||_0x1b2898[_0x49e4b7(0xe6)]['localeCompare'](_0x36fa9f[_0x49e4b7(0xe6)])||_0x1b2898[_0x49e4b7(0xfd)]['localeCompare'](_0x36fa9f[_0x49e4b7(0xfd)]);}
1
+ (function(_0x132ab4,_0x45ea25){const _0xe3d712=a111_0x2bed,_0x224c5b=_0x132ab4();while(!![]){try{const _0x3e74a3=parseInt(_0xe3d712(0x1ff))/0x1+parseInt(_0xe3d712(0x1eb))/0x2*(parseInt(_0xe3d712(0x1ef))/0x3)+-parseInt(_0xe3d712(0x1fa))/0x4*(-parseInt(_0xe3d712(0x211))/0x5)+parseInt(_0xe3d712(0x219))/0x6*(-parseInt(_0xe3d712(0x214))/0x7)+parseInt(_0xe3d712(0x20e))/0x8*(parseInt(_0xe3d712(0x1f3))/0x9)+-parseInt(_0xe3d712(0x216))/0xa*(parseInt(_0xe3d712(0x1f0))/0xb)+-parseInt(_0xe3d712(0x1f2))/0xc*(parseInt(_0xe3d712(0x215))/0xd);if(_0x3e74a3===_0x45ea25)break;else _0x224c5b['push'](_0x224c5b['shift']());}catch(_0x1f7d38){_0x224c5b['push'](_0x224c5b['shift']());}}}(a111_0x149b,0xcac37));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';function a111_0x149b(){const _0x2af08c=['source','link','local','from','map','skillRoots','project','linkedPath','includes','push','scope','cacheDir','appCode','builtin','76704pXhaCp','accessKey','linkedPaths','3860405tDyEZe','filter','localeCompare','706881cqSyhc','525993edcpWT','50ZLjrrv','has','trim','24yMuTKh','values','tags','58600xSWoLQ','name','skillCode','sort','168UKZqgn','737110XfyUfT','scopes','708vihWlJ','540VSkGFD','get','cache','isArray','startsWith','isDirectory','code','8GPdiSZ','dir','metadataPath','\x20!=\x20','isSymbolicLink','196458LLtVsR'];a111_0x149b=function(){return _0x2af08c;};return a111_0x149b();}import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0xfcb479,_0x3130eb,_0xad4fd3={}){const _0x31dde1=a111_0x2bed,_0x408ba8=safePathSegment(_0xfcb479[_0x31dde1(0x20c)],_0x31dde1(0x20c));if(_0x3130eb[_0x31dde1(0x20c)]!==_0x408ba8)throw CliErrors['validation']('Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20'+_0x3130eb['appCode']+_0x31dde1(0x1fd)+_0x408ba8);const _0x39857f=normalizeRuntimeSkillScopes(_0xfcb479[_0x31dde1(0x1f1)]),_0x46799e=new Set(_0x39857f),_0x304998=_0xfcb479['code']?.[_0x31dde1(0x218)](),_0x544fe0=new Map(),_0x3f61ab=resolve(getRuntimeSkillCacheRoot(_0xfcb479['env'],_0xfcb479[_0x31dde1(0x20f)],_0xad4fd3),_0x408ba8);for(const _0x29937b of _0x39857f){for(const _0x354711 of localSkillEntryDirs(resolve(_0x3f61ab,_0x29937b))){collectLocalRuntimeSkill(_0x544fe0,_0x354711,{'appCode':_0x408ba8,'scopes':_0x46799e,'code':_0x304998,'source':_0x31dde1(0x1f5)});}}for(const _0x26a0e6 of _0x3130eb[_0x31dde1(0x205)]){for(const _0x21b435 of localSkillLinkCandidates(_0x26a0e6,_0x3130eb,_0x46799e)){collectLocalRuntimeSkill(_0x544fe0,_0x21b435,{'appCode':_0x408ba8,'scopes':_0x46799e,'code':_0x304998,'source':_0x31dde1(0x201),'linkedPath':_0x21b435});}}return Array[_0x31dde1(0x203)](_0x544fe0[_0x31dde1(0x1e9)]())[_0x31dde1(0x1ee)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x88a17e){const _0x4c0ca6=a111_0x2bed;if(!existsSync(_0x88a17e))return[];return readdirSync(_0x88a17e,{'withFileTypes':!![]})[_0x4c0ca6(0x212)](_0x5b09a6=>_0x5b09a6['isDirectory']()||_0x5b09a6[_0x4c0ca6(0x1fe)]())[_0x4c0ca6(0x204)](_0x1b7eca=>resolve(_0x88a17e,_0x1b7eca['name']));}function a111_0x2bed(_0x10c0db,_0x12204c){_0x10c0db=_0x10c0db-0x1e9;const _0x149bb6=a111_0x149b();let _0x2bed88=_0x149bb6[_0x10c0db];return _0x2bed88;}function localSkillLinkCandidates(_0x4d94a6,_0x4dc9da,_0x2933a1){const _0x4d35b5=a111_0x2bed;if(!existsSync(_0x4d94a6))return[];const _0x1b03af=_0x4dc9da[_0x4d35b5(0x20c)]+'--';return readdirSync(_0x4d94a6,{'withFileTypes':!![]})[_0x4d35b5(0x212)](_0x4eec18=>_0x4eec18[_0x4d35b5(0x1f8)]()||_0x4eec18['isSymbolicLink']())[_0x4d35b5(0x212)](_0x5ed0fa=>_0x4dc9da['scope']===_0x4d35b5(0x206)||_0x5ed0fa[_0x4d35b5(0x1ec)][_0x4d35b5(0x1f7)](_0x1b03af)||_0x2933a1[_0x4d35b5(0x217)](_0x4d35b5(0x20d)))[_0x4d35b5(0x204)](_0x5d7604=>resolve(_0x4d94a6,_0x5d7604[_0x4d35b5(0x1ec)]));}function collectLocalRuntimeSkill(_0x1636dd,_0x1f25e4,_0x4b811c){const _0x13d519=a111_0x2bed,_0x4ecfee=resolve(_0x1f25e4,METADATA_FILE),_0x314ea2=readMetadataIfPresent(_0x4ecfee);if(!_0x314ea2)return;if(_0x314ea2['appCode']!==_0x4b811c[_0x13d519(0x20c)])return;if(!isRuntimeSkillScope(_0x314ea2[_0x13d519(0x20a)])||!_0x4b811c[_0x13d519(0x1f1)][_0x13d519(0x217)](_0x314ea2[_0x13d519(0x20a)]))return;const _0x4fca14=_0x314ea2['skillCode']?.[_0x13d519(0x218)]();if(!_0x4fca14)return;if(_0x4b811c[_0x13d519(0x1f9)]&&_0x4fca14!==_0x4b811c[_0x13d519(0x1f9)])return;const _0x407d69=_0x314ea2[_0x13d519(0x20a)]+':'+_0x4fca14,_0x164426=_0x4b811c['linkedPath']?[_0x4b811c[_0x13d519(0x207)]]:[],_0x1b84e5=_0x1636dd[_0x13d519(0x1f4)](_0x407d69);if(_0x1b84e5){_0x4b811c[_0x13d519(0x200)]===_0x13d519(0x1f5)&&(_0x1b84e5[_0x13d519(0x1fb)]=_0x1f25e4,_0x1b84e5[_0x13d519(0x20b)]=_0x1f25e4,_0x1b84e5['skillMdPath']=resolve(_0x1f25e4,SKILL_FILE),_0x1b84e5[_0x13d519(0x1fc)]=_0x4ecfee);for(const _0x3a2ef7 of _0x164426){!_0x1b84e5[_0x13d519(0x210)][_0x13d519(0x208)](_0x3a2ef7)&&_0x1b84e5[_0x13d519(0x210)][_0x13d519(0x209)](_0x3a2ef7);}_0x1b84e5['linkedPaths'][_0x13d519(0x1ee)]();return;}_0x1636dd['set'](_0x407d69,{..._0x314ea2,'tags':Array[_0x13d519(0x1f6)](_0x314ea2[_0x13d519(0x1ea)])?_0x314ea2['tags']:[],'scope':_0x314ea2['scope'],'source':_0x13d519(0x202),'dir':_0x1f25e4,'cacheDir':_0x4b811c[_0x13d519(0x200)]===_0x13d519(0x1f5)?_0x1f25e4:undefined,'skillMdPath':resolve(_0x1f25e4,SKILL_FILE),'metadataPath':_0x4ecfee,'linkedPaths':_0x164426});}function compareLocalRuntimeSkills(_0x3ec3e3,_0x590096){const _0x128954=a111_0x2bed,_0x1bc480={'personal':0x0,'company':0x1,'builtin':0x2};return _0x1bc480[_0x3ec3e3['scope']]-_0x1bc480[_0x590096[_0x128954(0x20a)]]||_0x3ec3e3[_0x128954(0x1ed)][_0x128954(0x213)](_0x590096[_0x128954(0x1ed)])||_0x3ec3e3[_0x128954(0x1fb)][_0x128954(0x213)](_0x590096['dir']);}
@@ -1 +1 @@
1
- (function(_0x3b3a7e,_0x38d55f){const _0x3bb3b9=a112_0x5b25,_0x138698=_0x3b3a7e();while(!![]){try{const _0x345d61=-parseInt(_0x3bb3b9(0x127))/0x1*(parseInt(_0x3bb3b9(0x13b))/0x2)+parseInt(_0x3bb3b9(0x138))/0x3*(parseInt(_0x3bb3b9(0x134))/0x4)+-parseInt(_0x3bb3b9(0x140))/0x5+-parseInt(_0x3bb3b9(0x136))/0x6*(parseInt(_0x3bb3b9(0x12a))/0x7)+parseInt(_0x3bb3b9(0x12f))/0x8*(parseInt(_0x3bb3b9(0x125))/0x9)+-parseInt(_0x3bb3b9(0x144))/0xa*(-parseInt(_0x3bb3b9(0x128))/0xb)+parseInt(_0x3bb3b9(0x126))/0xc;if(_0x345d61===_0x38d55f)break;else _0x138698['push'](_0x138698['shift']());}catch(_0x2762fb){_0x138698['push'](_0x138698['shift']());}}}(a112_0x104b,0x43707));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x23734d){const _0x4d2926=a112_0x5b25;return _0x23734d['bytes']??Buffer[_0x4d2926(0x11c)](_0x23734d[_0x4d2926(0x118)]??'',_0x4d2926(0x11b));}function a112_0x104b(){const _0x2f539c=['utf8','from','values','has','toString','isArray','push','Skill\x20file\x20size\x20is\x20invalid:\x20','validation','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','36lXDFlP','5582172GBOxZR','1UXWIJJ','11693XIFAhc','length','7oAQESt','startsWith','Unsafe\x20Skill\x20file\x20path:\x20','Duplicate\x20Skill\x20file\x20path:\x20','sort','293464YOWDzg','string','name','Skill\x20file\x20sha256\x20is\x20invalid:\x20','object','616300hFNpAw','size','1736424OxrCVz','isSymbolicLink','6TlspJS','isFile','split','519704DeVZmj','bytes','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','set','toLowerCase','1376430VgUMcb','path','compare','sha256','1700jWOBQc','isSafeInteger','isBuffer','replace','content','isDirectory','Skill\x20file\x20path\x20must\x20be\x20text.'];a112_0x104b=function(){return _0x2f539c;};return a112_0x104b();}export function fileText(_0x45d565){const _0x3aa535=a112_0x5b25;return fileContent(_0x45d565)[_0x3aa535(0x11f)](_0x3aa535(0x11b));}export function normalizeLocalFiles(_0x1894da){const _0x511850=a112_0x5b25;if(!Array[_0x511850(0x120)](_0x1894da)||_0x1894da[_0x511850(0x129)]===0x0)return[];const _0x4f9b74=new Map();for(const _0x40139c of _0x1894da){if(!_0x40139c||typeof _0x40139c!==_0x511850(0x133)||typeof _0x40139c[_0x511850(0x141)]!==_0x511850(0x130))throw CliErrors['validation']('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x41158b=normalizeSkillRelativePath(_0x40139c[_0x511850(0x141)]);if(_0x4f9b74['has'](_0x41158b))throw CliErrors[_0x511850(0x123)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x41158b);if(_0x40139c[_0x511850(0x13c)]!==undefined&&!Buffer[_0x511850(0x116)](_0x40139c[_0x511850(0x13c)]))throw CliErrors[_0x511850(0x123)](_0x511850(0x13d)+_0x41158b);if(_0x40139c[_0x511850(0x13c)]===undefined&&typeof _0x40139c[_0x511850(0x118)]!==_0x511850(0x130))throw CliErrors[_0x511850(0x123)](_0x511850(0x124)+_0x41158b);const _0xb8dddb=fileContent(_0x40139c);_0x4f9b74[_0x511850(0x13e)](_0x41158b,{'path':_0x41158b,'bytes':_0xb8dddb});}return Array[_0x511850(0x11c)](_0x4f9b74[_0x511850(0x11d)]())[_0x511850(0x12e)](compareSkillFiles);}export function normalizeManifestFiles(_0x325b3f){const _0xe28165=a112_0x5b25;if(!Array[_0xe28165(0x120)](_0x325b3f)||_0x325b3f[_0xe28165(0x129)]===0x0)return[];const _0x22fa82=new Map();for(const _0xc562b7 of _0x325b3f){if(!_0xc562b7||typeof _0xc562b7!==_0xe28165(0x133)||typeof _0xc562b7[_0xe28165(0x141)]!==_0xe28165(0x130))throw CliErrors[_0xe28165(0x123)](_0xe28165(0x11a));const _0xcd9d2e=normalizeSkillRelativePath(_0xc562b7[_0xe28165(0x141)]);if(_0x22fa82[_0xe28165(0x11e)](_0xcd9d2e))throw CliErrors['validation'](_0xe28165(0x12d)+_0xcd9d2e);if(!isSha256Hex(_0xc562b7[_0xe28165(0x143)]))throw CliErrors[_0xe28165(0x123)](_0xe28165(0x132)+_0xcd9d2e);if(!Number[_0xe28165(0x115)](_0xc562b7[_0xe28165(0x135)])||_0xc562b7[_0xe28165(0x135)]<0x0)throw CliErrors[_0xe28165(0x123)](_0xe28165(0x122)+_0xcd9d2e);_0x22fa82[_0xe28165(0x13e)](_0xcd9d2e,{'path':_0xcd9d2e,'sha256':_0xc562b7[_0xe28165(0x143)][_0xe28165(0x13f)](),'size':_0xc562b7[_0xe28165(0x135)]});}return Array[_0xe28165(0x11c)](_0x22fa82['values']())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0x184f9c){const _0x512add=realpathSync(_0x184f9c),_0x39e2d1=[];function _0x34cb2e(_0x3a5734){const _0x386cf1=a112_0x5b25,_0x58f1b6=readdirSync(_0x3a5734,{'withFileTypes':!![]})['sort']((_0x4a6020,_0x43f00a)=>_0x4a6020[_0x386cf1(0x131)]['localeCompare'](_0x43f00a[_0x386cf1(0x131)]));for(const _0x449ece of _0x58f1b6){if(_0x449ece[_0x386cf1(0x119)]()&&IGNORED_DIR_NAMES[_0x386cf1(0x11e)](_0x449ece[_0x386cf1(0x131)]))continue;if(IGNORED_FILE_NAMES[_0x386cf1(0x11e)](_0x449ece['name']))continue;const _0x413ead=resolve(_0x3a5734,_0x449ece['name']);if(_0x449ece[_0x386cf1(0x137)]())throw CliErrors[_0x386cf1(0x123)]('Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20'+_0x413ead);const _0x4539b4=toPosixPath(relative(_0x512add,_0x413ead));if(_0x449ece[_0x386cf1(0x119)]()){_0x34cb2e(_0x413ead);continue;}if(!_0x449ece[_0x386cf1(0x139)]())continue;validateSkillRelativePath(_0x4539b4);const _0x1e9212=readFileSync(_0x413ead);_0x39e2d1[_0x386cf1(0x121)]({'path':_0x4539b4,'bytes':_0x1e9212});}}return _0x34cb2e(_0x512add),normalizeLocalFiles(_0x39e2d1);}function a112_0x5b25(_0x311897,_0x3b5026){_0x311897=_0x311897-0x115;const _0x104bd1=a112_0x104b();let _0x5b2518=_0x104bd1[_0x311897];return _0x5b2518;}export function compareSkillFiles(_0x555fb4,_0x4c2136){const _0x14048c=a112_0x5b25;if(_0x555fb4[_0x14048c(0x141)]===SKILL_FILE)return _0x4c2136[_0x14048c(0x141)]===SKILL_FILE?0x0:-0x1;if(_0x4c2136[_0x14048c(0x141)]===SKILL_FILE)return 0x1;return Buffer[_0x14048c(0x142)](Buffer[_0x14048c(0x11c)](_0x555fb4[_0x14048c(0x141)],_0x14048c(0x11b)),Buffer[_0x14048c(0x11c)](_0x4c2136['path'],_0x14048c(0x11b)));}export function normalizeSkillRelativePath(_0x1eb1f3){const _0x53a885=toPosixPath(_0x1eb1f3['trim']());return validateSkillRelativePath(_0x53a885),_0x53a885;}export function validateSkillRelativePath(_0x309e04){const _0x8d8466=a112_0x5b25;if(!_0x309e04||_0x309e04[_0x8d8466(0x12b)]('/')||_0x309e04['includes']('//'))throw CliErrors[_0x8d8466(0x123)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x309e04);for(const _0x5ba5d2 of _0x309e04[_0x8d8466(0x13a)]('/')){if(!_0x5ba5d2||_0x5ba5d2==='.'||_0x5ba5d2==='..')throw CliErrors[_0x8d8466(0x123)](_0x8d8466(0x12c)+_0x309e04);}}export function toPosixPath(_0x4340cb){const _0xc15296=a112_0x5b25;return _0x4340cb[_0xc15296(0x117)](/\\/g,'/');}export function isSha256Hex(_0x13aa9c){const _0x100332=a112_0x5b25;return typeof _0x13aa9c===_0x100332(0x130)&&/^[a-fA-F0-9]{64}$/['test'](_0x13aa9c);}
1
+ (function(_0x22c5e2,_0x4bc00d){const _0x30a8a8=a112_0x13e3,_0x412ab5=_0x22c5e2();while(!![]){try{const _0x1e18c9=-parseInt(_0x30a8a8(0xb6))/0x1+parseInt(_0x30a8a8(0xbf))/0x2*(-parseInt(_0x30a8a8(0xa3))/0x3)+-parseInt(_0x30a8a8(0x9f))/0x4+-parseInt(_0x30a8a8(0x99))/0x5*(-parseInt(_0x30a8a8(0x9a))/0x6)+parseInt(_0x30a8a8(0xa5))/0x7*(parseInt(_0x30a8a8(0xa8))/0x8)+-parseInt(_0x30a8a8(0xbd))/0x9+parseInt(_0x30a8a8(0xba))/0xa*(parseInt(_0x30a8a8(0xaa))/0xb);if(_0x1e18c9===_0x4bc00d)break;else _0x412ab5['push'](_0x412ab5['shift']());}catch(_0xef8644){_0x412ab5['push'](_0x412ab5['shift']());}}}(a112_0x3dcc,0x3a0c6));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x7c6919){const _0x52f555=a112_0x13e3;return _0x7c6919[_0x52f555(0xb3)]??Buffer[_0x52f555(0xab)](_0x7c6919['content']??'','utf8');}export function fileText(_0x5127fe){const _0x54431b=a112_0x13e3;return fileContent(_0x5127fe)[_0x54431b(0xb0)](_0x54431b(0x96));}function a112_0x13e3(_0x2df5b3,_0x244883){_0x2df5b3=_0x2df5b3-0x93;const _0x3dcc9b=a112_0x3dcc();let _0x13e36e=_0x3dcc9b[_0x2df5b3];return _0x13e36e;}export function normalizeLocalFiles(_0x5a8930){const _0x2d4c11=a112_0x13e3;if(!Array[_0x2d4c11(0xb8)](_0x5a8930)||_0x5a8930['length']===0x0)return[];const _0x446622=new Map();for(const _0x39d397 of _0x5a8930){if(!_0x39d397||typeof _0x39d397!==_0x2d4c11(0xa4)||typeof _0x39d397[_0x2d4c11(0xb4)]!==_0x2d4c11(0xb1))throw CliErrors[_0x2d4c11(0x93)](_0x2d4c11(0xb7));const _0x266fcc=normalizeSkillRelativePath(_0x39d397[_0x2d4c11(0xb4)]);if(_0x446622[_0x2d4c11(0x9d)](_0x266fcc))throw CliErrors[_0x2d4c11(0x93)](_0x2d4c11(0xb9)+_0x266fcc);if(_0x39d397[_0x2d4c11(0xb3)]!==undefined&&!Buffer[_0x2d4c11(0xac)](_0x39d397[_0x2d4c11(0xb3)]))throw CliErrors['validation'](_0x2d4c11(0x9c)+_0x266fcc);if(_0x39d397['bytes']===undefined&&typeof _0x39d397[_0x2d4c11(0xae)]!==_0x2d4c11(0xb1))throw CliErrors[_0x2d4c11(0x93)](_0x2d4c11(0xa6)+_0x266fcc);const _0x1be130=fileContent(_0x39d397);_0x446622[_0x2d4c11(0x98)](_0x266fcc,{'path':_0x266fcc,'bytes':_0x1be130});}return Array[_0x2d4c11(0xab)](_0x446622[_0x2d4c11(0xa7)]())[_0x2d4c11(0xbb)](compareSkillFiles);}export function normalizeManifestFiles(_0x187641){const _0x42fd10=a112_0x13e3;if(!Array[_0x42fd10(0xb8)](_0x187641)||_0x187641['length']===0x0)return[];const _0x10a8a7=new Map();for(const _0x37200b of _0x187641){if(!_0x37200b||typeof _0x37200b!=='object'||typeof _0x37200b['path']!==_0x42fd10(0xb1))throw CliErrors[_0x42fd10(0x93)](_0x42fd10(0xb7));const _0x4e928a=normalizeSkillRelativePath(_0x37200b['path']);if(_0x10a8a7[_0x42fd10(0x9d)](_0x4e928a))throw CliErrors[_0x42fd10(0x93)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x4e928a);if(!isSha256Hex(_0x37200b['sha256']))throw CliErrors['validation'](_0x42fd10(0xc1)+_0x4e928a);if(!Number[_0x42fd10(0xaf)](_0x37200b['size'])||_0x37200b[_0x42fd10(0xbe)]<0x0)throw CliErrors[_0x42fd10(0x93)](_0x42fd10(0x9e)+_0x4e928a);_0x10a8a7[_0x42fd10(0x98)](_0x4e928a,{'path':_0x4e928a,'sha256':_0x37200b['sha256'][_0x42fd10(0xad)](),'size':_0x37200b[_0x42fd10(0xbe)]});}return Array[_0x42fd10(0xab)](_0x10a8a7[_0x42fd10(0xa7)]())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0x535465){const _0x737f7a=realpathSync(_0x535465),_0x43f1da=[];function _0x5eec1d(_0x59adb2){const _0x126092=a112_0x13e3,_0x385f3d=readdirSync(_0x59adb2,{'withFileTypes':!![]})[_0x126092(0xbb)]((_0xe24b06,_0x5566a7)=>_0xe24b06[_0x126092(0x97)][_0x126092(0xc0)](_0x5566a7[_0x126092(0x97)]));for(const _0x2c71bc of _0x385f3d){if(_0x2c71bc['isDirectory']()&&IGNORED_DIR_NAMES[_0x126092(0x9d)](_0x2c71bc['name']))continue;if(IGNORED_FILE_NAMES[_0x126092(0x9d)](_0x2c71bc[_0x126092(0x97)]))continue;const _0x471dbb=resolve(_0x59adb2,_0x2c71bc[_0x126092(0x97)]);if(_0x2c71bc['isSymbolicLink']())throw CliErrors[_0x126092(0x93)](_0x126092(0xa0)+_0x471dbb);const _0x5b92a4=toPosixPath(relative(_0x737f7a,_0x471dbb));if(_0x2c71bc[_0x126092(0xa1)]()){_0x5eec1d(_0x471dbb);continue;}if(!_0x2c71bc[_0x126092(0x9b)]())continue;validateSkillRelativePath(_0x5b92a4);const _0x589fbc=readFileSync(_0x471dbb);_0x43f1da[_0x126092(0xc2)]({'path':_0x5b92a4,'bytes':_0x589fbc});}}return _0x5eec1d(_0x737f7a),normalizeLocalFiles(_0x43f1da);}export function compareSkillFiles(_0x22391b,_0x43b7a1){const _0x2e0067=a112_0x13e3;if(_0x22391b[_0x2e0067(0xb4)]===SKILL_FILE)return _0x43b7a1['path']===SKILL_FILE?0x0:-0x1;if(_0x43b7a1[_0x2e0067(0xb4)]===SKILL_FILE)return 0x1;return Buffer[_0x2e0067(0xb2)](Buffer[_0x2e0067(0xab)](_0x22391b[_0x2e0067(0xb4)],'utf8'),Buffer[_0x2e0067(0xab)](_0x43b7a1[_0x2e0067(0xb4)],_0x2e0067(0x96)));}export function normalizeSkillRelativePath(_0x23636b){const _0x56e6d1=a112_0x13e3,_0x5a9e4e=toPosixPath(_0x23636b[_0x56e6d1(0x94)]());return validateSkillRelativePath(_0x5a9e4e),_0x5a9e4e;}export function validateSkillRelativePath(_0x170e0b){const _0x1b5b8c=a112_0x13e3;if(!_0x170e0b||_0x170e0b[_0x1b5b8c(0xa2)]('/')||_0x170e0b[_0x1b5b8c(0x95)]('//'))throw CliErrors[_0x1b5b8c(0x93)](_0x1b5b8c(0xb5)+_0x170e0b);for(const _0xf18370 of _0x170e0b['split']('/')){if(!_0xf18370||_0xf18370==='.'||_0xf18370==='..')throw CliErrors[_0x1b5b8c(0x93)](_0x1b5b8c(0xb5)+_0x170e0b);}}export function toPosixPath(_0x34c3d2){const _0x19187c=a112_0x13e3;return _0x34c3d2[_0x19187c(0xbc)](/\\/g,'/');}export function isSha256Hex(_0x957a53){const _0x5bf6b9=a112_0x13e3;return typeof _0x957a53===_0x5bf6b9(0xb1)&&/^[a-fA-F0-9]{64}$/[_0x5bf6b9(0xa9)](_0x957a53);}function a112_0x3dcc(){const _0x105a17=['values','3656288Kkkvgi','test','11FxOuNX','from','isBuffer','toLowerCase','content','isSafeInteger','toString','string','compare','bytes','path','Unsafe\x20Skill\x20file\x20path:\x20','149882OQsIuP','Skill\x20file\x20path\x20must\x20be\x20text.','isArray','Duplicate\x20Skill\x20file\x20path:\x20','4981490iciiRO','sort','replace','107973CdcSkl','size','38cDwwiu','localeCompare','Skill\x20file\x20sha256\x20is\x20invalid:\x20','push','validation','trim','includes','utf8','name','set','10FYyDtW','658662AlNygm','isFile','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','has','Skill\x20file\x20size\x20is\x20invalid:\x20','1791884uMhHEY','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','isDirectory','startsWith','51651lxcUGl','object','7sJaYkT','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'];a112_0x3dcc=function(){return _0x105a17;};return a112_0x3dcc();}