@lovrabet/lovrabet-cli 2.1.22-beta.6 → 2.1.22

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 (133) 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.d.ts +4 -0
  99. package/lib/framework/types.js +1 -1
  100. package/lib/generated/build-info.d.ts +4 -4
  101. package/lib/generated/build-info.js +1 -1
  102. package/lib/help.js +1 -1
  103. package/lib/runtime/confirmation.d.ts +9 -0
  104. package/lib/runtime/confirmation.js +1 -0
  105. package/lib/runtime/event.js +1 -1
  106. package/lib/runtime/index.js +1 -1
  107. package/lib/runtime/queue.js +1 -1
  108. package/lib/runtime/resolve.js +1 -1
  109. package/lib/skills/npx-skills-add.js +1 -1
  110. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  111. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  112. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  113. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  114. package/lib/skills/runtime-skill-sync/links.js +1 -1
  115. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  116. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  117. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  118. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  119. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  120. package/lib/skills/runtime-skill-sync/push.js +1 -1
  121. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  122. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  124. package/lib/skills/runtime-skill-sync.js +1 -1
  125. package/lib/utils/apply-jq-filter.js +1 -1
  126. package/lib/utils/logger.js +1 -1
  127. package/lib/utils/lossless-json.js +1 -1
  128. package/lib/utils/params.js +1 -1
  129. package/lib/utils/platform.js +1 -1
  130. package/lib/utils/update-notice.js +1 -1
  131. package/lib/utils/version.js +1 -1
  132. package/lib/utils/write-cli-side-channel.js +1 -1
  133. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4f811f,_0x1cb851){const _0x2f9436=a94_0x5413,_0x53cfc9=_0x4f811f();while(!![]){try{const _0x3cfc44=-parseInt(_0x2f9436(0x219))/0x1*(parseInt(_0x2f9436(0x1fe))/0x2)+-parseInt(_0x2f9436(0x1e3))/0x3*(-parseInt(_0x2f9436(0x1f5))/0x4)+-parseInt(_0x2f9436(0x205))/0x5+parseInt(_0x2f9436(0x1e9))/0x6*(parseInt(_0x2f9436(0x20e))/0x7)+-parseInt(_0x2f9436(0x211))/0x8+parseInt(_0x2f9436(0x20b))/0x9+parseInt(_0x2f9436(0x1e5))/0xa;if(_0x3cfc44===_0x1cb851)break;else _0x53cfc9['push'](_0x53cfc9['shift']());}catch(_0x3f3a39){_0x53cfc9['push'](_0x53cfc9['shift']());}}}(a94_0x58cc,0xb335a));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(_0x713d62){const _0x51da57=a94_0x5413;return void _0x713d62,AUTH_MODE[_0x51da57(0x1f6)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x184316,_0x136c51){const _0x1f628a=a94_0x5413,_0x3b5a6e=typeof _0x136c51['app']==='string'&&_0x136c51[_0x1f628a(0x1ed)]['trim']();return{'rawFlags':_0x136c51,'appCode':_0x184316[_0x1f628a(0x1e4)]||productEnv(_0x1f628a(0x20c))||(_0x3b5a6e?undefined:readAppCodeFromConfig()),'appCodeSource':_0x184316[_0x1f628a(0x208)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x136c51),'defaultFormat':_0x184316['format'],'defaultPageSize':_0x184316[_0x1f628a(0x1e6)],'defaultVerbose':_0x184316[_0x1f628a(0x224)],'riskLevel':_0x184316['riskLevel'],'accessKey':_0x184316[_0x1f628a(0x21c)],'env':_0x184316[_0x1f628a(0x20d)],'mergedCli':{'defaultApp':_0x184316[_0x1f628a(0x21d)],'currentApp':_0x184316[_0x1f628a(0x1ea)],'appCode':_0x184316['appCode']}};}export function createLovrabetRunnerAdapter(_0x128414={}){const _0xf387ea=a94_0x5413,_0x238f43={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xf387ea(0x1f3)](_0x5bd22f=>PIPELINE_FLAG_NAMES[_0xf387ea(0x201)](_0x5bd22f[_0xf387ea(0x1f9)]))[_0xf387ea(0x200)](({name:_0x1276e0,type:_0x1b248a,description:_0x15976c})=>({'name':_0x1276e0,'type':_0x1b248a,'description':_0x15976c})),'formatOutput':_0x128414[_0xf387ea(0x1ee)]??formatOutput,'getCommandLabel'(_0x223e71){const _0x28d7c9=_0xf387ea;return CLI_BIN_NAME+'\x20'+_0x223e71[_0x28d7c9(0x1ec)]+'\x20'+_0x223e71[_0x28d7c9(0x203)];},'riskPolicy':{'onViolation'(_0x11ab31){console['error'](_0x11ab31);},'createError'(_0x4544ff){const _0x24d9b2=_0xf387ea;return CliErrors[_0x24d9b2(0x225)](_0x4544ff);}},async 'prepare'(_0x5ef829,_0x29976b){const _0x547174=_0xf387ea,_0x122273=resolveAuthMode(_0x29976b);if(_0x5ef829['requiresAuth']!==![]){if(!_0x29976b[_0x547174(0x21c)])throw CliErrors[_0x547174(0x221)](_0x547174(0x204)+PRODUCT_CONFIG[_0x547174(0x207)]+_0x547174(0x226)+productEnvName(_0x547174(0x1f0))+'.');const {setActiveAK:_0x288f46}=await import(_0x547174(0x1e7));_0x288f46(_0x29976b[_0x547174(0x21c)]);}let _0x3a7224='';if(_0x5ef829['requiresAppCode']!==![]){_0x3a7224=_0x29976b[_0x547174(0x1e4)]??'',_0x3a7224=await resolveExplicitAppName(_0x5ef829,_0x29976b,_0x3a7224);if(!_0x3a7224){await assertSelectedAppNameIsRuntimeAccessible(_0x5ef829,_0x29976b);throw CliErrors[_0x547174(0x217)](_0x547174(0x209)+PRODUCT_CONFIG[_0x547174(0x207)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5ef829,_0x29976b,_0x3a7224);}if(_0x3a7224){const {initSdkClient:_0x270548}=await import(_0x547174(0x21e));_0x270548({'appCode':_0x3a7224,'env':_0x29976b['env']??_0x547174(0x1fb),'accessKey':_0x29976b[_0x547174(0x21c)],'authMode':_0x122273}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x29976b[_0x547174(0x1fc)]},'numbers':{'pagesize':_0x29976b[_0x547174(0x1f7)]}},'extras':{'appCode':_0x3a7224,'cookie':'','apiDomain':_0x29976b[_0x547174(0x1e2)],'apiDir':'','accessKey':_0x29976b[_0x547174(0x21c)],'envName':_0x29976b[_0x547174(0x20d)],'mergedCli':_0x29976b[_0x547174(0x21a)]}};},'confirmHighRisk':_0x128414[_0xf387ea(0x210)]??(async({def:_0x5dacc4,env:_0x40c256,flags:_0x2fe4b2,commandLabel:_0x5977b1})=>{const _0x229767=_0xf387ea;if(_0x40c256[_0x229767(0x1eb)]){const _0x4e0780=reconstructCommandArgv(_0x5dacc4,_0x2fe4b2);throw CliErrors[_0x229767(0x21f)](_0x229767(0x1ef)+_0x5977b1+_0x229767(0x220)+('\x20\x20To\x20proceed:\x20'+_0x4e0780));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5dacc4,_0x5977b1,_0x2fe4b2),'createCancelledError':_0x3e873d=>CliErrors['cancelled'](_0x3e873d)});}),'mapDryRunError'(_0x37ad02){return mapUserFacingExecuteError(_0x37ad02);},'mapExecuteError'(_0x2beef0){return mapUserFacingExecuteError(_0x2beef0);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x238f43;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x5e20fe}=await import('../core/sdk-client.js');_0x5e20fe();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x37bace}=await import('../core/api-client.js');_0x37bace();}}async function resolveExplicitAppName(_0x1939bc,_0x5df989,_0x5a07f5){const _0x5d0275=a94_0x5413;if(_0x1939bc[_0x5d0275(0x222)]===![])return _0x5a07f5;const _0x396ee4=typeof _0x5df989[_0x5d0275(0x212)][_0x5d0275(0x1ed)]===_0x5d0275(0x206)?_0x5df989[_0x5d0275(0x212)]['app'][_0x5d0275(0x20f)]():'';if(!_0x396ee4)return _0x5a07f5;const _0x4873a8=typeof _0x5df989[_0x5d0275(0x212)][_0x5d0275(0x21b)]==='string'&&_0x5df989[_0x5d0275(0x212)][_0x5d0275(0x21b)][_0x5d0275(0x20f)]()||productEnv(_0x5d0275(0x20c));if(_0x4873a8||_0x5df989[_0x5d0275(0x208)]===_0x5d0275(0x216))return _0x5a07f5;const {getRemoteAppList:_0x27a9e8}=await import(_0x5d0275(0x1f4)),_0x26ab74=await _0x27a9e8({'env':_0x5df989[_0x5d0275(0x20d)]??_0x5d0275(0x1fb),'accessKey':_0x5df989['accessKey']}),_0x390e42=findAppByName(_0x26ab74[_0x5d0275(0x215)],_0x396ee4);if(_0x390e42&&!isRuntimeAccessibleApp(_0x390e42))throw runtimeInaccessibleAppError(_0x390e42,'\x22'+_0x396ee4+'\x22');const _0x1bf33e=_0x390e42?.['appCode']?.[_0x5d0275(0x20f)]();if(_0x1bf33e)return _0x1bf33e;throw CliErrors['validation'](_0x5d0275(0x1fd)+_0x396ee4,_0x5d0275(0x1ff)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x396ee4+_0x5d0275(0x1e8)+PRODUCT_CONFIG[_0x5d0275(0x207)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x28aa1e,_0x41fdc6){const _0x1eb0b3=a94_0x5413;if(_0x28aa1e[_0x1eb0b3(0x222)]===![]||!_0x41fdc6[_0x1eb0b3(0x21c)])return;const _0x12d1c8=(typeof _0x41fdc6[_0x1eb0b3(0x212)][_0x1eb0b3(0x1ed)]===_0x1eb0b3(0x206)&&_0x41fdc6['rawFlags'][_0x1eb0b3(0x1ed)][_0x1eb0b3(0x20f)]()?_0x41fdc6[_0x1eb0b3(0x212)]['app']:_0x41fdc6[_0x1eb0b3(0x21a)]?.[_0x1eb0b3(0x1ea)]??_0x41fdc6[_0x1eb0b3(0x21a)]?.[_0x1eb0b3(0x21d)])?.[_0x1eb0b3(0x20f)]();if(!_0x12d1c8)return;const {getRemoteAppList:_0x5e0ffb}=await import('../commands/app/remote-source.js'),_0x65f6b9=await _0x5e0ffb({'env':_0x41fdc6[_0x1eb0b3(0x20d)]??_0x1eb0b3(0x1fb),'accessKey':_0x41fdc6['accessKey']}),_0x45a1fb=findAppByName(_0x65f6b9['items'],_0x12d1c8);if(_0x45a1fb&&!isRuntimeAccessibleApp(_0x45a1fb))throw runtimeInaccessibleAppError(_0x45a1fb,'\x22'+_0x12d1c8+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5529bf,_0x18f36b,_0x470439){const _0x40c40e=a94_0x5413;if(_0x5529bf['requiresAppCode']===![]||!_0x18f36b[_0x40c40e(0x21c)])return;const {getRemoteAppList:_0x1f9623}=await import(_0x40c40e(0x1f4)),_0x4faeac=await _0x1f9623({'env':_0x18f36b[_0x40c40e(0x20d)]??_0x40c40e(0x1fb),'accessKey':_0x18f36b['accessKey']}),_0xfc1dad=findAppByCode(_0x4faeac[_0x40c40e(0x215)],_0x470439);if(_0xfc1dad&&!isRuntimeAccessibleApp(_0xfc1dad))throw runtimeInaccessibleAppError(_0xfc1dad,'appcode\x20\x22'+_0x470439+'\x22');}export async function runCommand(_0x34847e,_0x6fe819,_0x2674cc=terminalRunnerAdapter){assertKnownCommandFlags(_0x34847e,_0x6fe819['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x34847e)?withUpdateNotice(_0x34847e):_0x34847e,_0x6fe819,_0x2674cc);}function a94_0x5413(_0x2d5955,_0x15f568){_0x2d5955=_0x2d5955-0x1e2;const _0x58cc4c=a94_0x58cc();let _0x541341=_0x58cc4c[_0x2d5955];return _0x541341;}function shouldAttachUpdateNotice(_0x25ee25){const _0xb986d=a94_0x5413;return![_0xb986d(0x1fa),'schema',_0xb986d(0x214)][_0xb986d(0x1f8)](_0x25ee25[_0xb986d(0x1ec)]);}function withUpdateNotice(_0x25fbfd){return{..._0x25fbfd,async 'execute'(_0x22536e){const _0x3f4c08=a94_0x5413,_0x2a9927=shouldResolveUpdateNotice(_0x22536e)?resolveLatestUpdateNotice()[_0x3f4c08(0x213)](()=>null):Promise[_0x3f4c08(0x20a)](null),_0x4ba0ea=await _0x25fbfd[_0x3f4c08(0x223)](_0x22536e);return attachUpdateNotice(_0x4ba0ea,await _0x2a9927);}};}function shouldResolveUpdateNotice(_0x23cb47){const _0x4b32bb=a94_0x5413;return _0x23cb47[_0x4b32bb(0x1f1)]==='pretty'&&!_0x23cb47[_0x4b32bb(0x218)];}function a94_0x58cc(){const _0x24eeed=['546HAWxLf','appCode','10191850SnAIrX','pageSize','../core/api-client.js','.appcode\x20to\x20','526026zABSGz','currentApp','isNonInteractive','service','app','formatOutput','High-risk\x20operation\x20`','ACCESS_KEY','format','_notice','filter','../commands/app/remote-source.js','24216KtFXdZ','ClientAk','defaultPageSize','includes','name','update','production','defaultVerbose','Unknown\x20app:\x20','2WaNmdB','Run\x20`','map','has','object','command','Set\x20accessKey\x20in\x20','2778745STwcqU','string','newConfigFileName','appCodeSource','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','resolve','4697334dmpWrR','APPCODE','env','35UtxIJm','trim','confirmHighRisk','8268248okiWeY','rawFlags','catch','doctor','items','local-alias','configMissing','nonInteractive','757972TXZgiE','mergedCli','appcode','accessKey','defaultApp','../core/sdk-client.js','validation','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','authRequired','requiresAppCode','execute','verbose','cancelled','\x20or\x20pass\x20','apiDomain'];a94_0x58cc=function(){return _0x24eeed;};return a94_0x58cc();}function attachUpdateNotice(_0x454fe1,_0x27e752){const _0x1d8434=a94_0x5413;if(!_0x27e752||!_0x454fe1||typeof _0x454fe1!==_0x1d8434(0x202))return _0x454fe1;const _0x5b6559=_0x454fe1,_0x573e2a=typeof _0x5b6559[_0x1d8434(0x1f2)]==='object'&&_0x5b6559['_notice']!==null?_0x5b6559[_0x1d8434(0x1f2)]:{};return{..._0x5b6559,'_notice':{..._0x573e2a,'update':_0x27e752}};}
1
+ function a94_0x4b62(){const _0x2f64ab=['production','newConfigFileName','verbose','string','../core/sdk-client.js','380526wDBbtG','2499040lZVOog','riskLevel','apiDomain','validation','doctor','appcode\x20\x22','3798258gVMrsm','_notice','\x20\x20To\x20proceed:\x20','service','has','formatOutput','appCode','defaultVerbose','pretty','rawFlags','ACCESS_KEY','currentApp','89878FJATGS','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','Run\x20`','nonInteractive','cancelled','accessKey','confirmHighRisk','High-risk\x20operation\x20`','ClientAk','.appcode\x20to\x20','6568eorsls','requiresAuth','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','mergedCli','error','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','defaultPageSize','15966LgayNJ','local-alias','defaultApp','Set\x20accessKey\x20in\x20','14322wpfFlu','isNonInteractive','app','Unknown\x20app:\x20','execute','requiresAppCode','trim','appCodeSource','\x20or\x20pass\x20','7ySbxoQ','3555735BPeAim','authRequired','catch','12HFgjvj','name','object','18XxnYKs','../commands/app/remote-source.js','map','29712QVXBMN','items','../core/api-client.js','format','env','appcode'];a94_0x4b62=function(){return _0x2f64ab;};return a94_0x4b62();}(function(_0x2927a0,_0x1f9c6f){const _0x1bbbb3=a94_0x1015,_0x4fce1d=_0x2927a0();while(!![]){try{const _0x3141f2=parseInt(_0x1bbbb3(0x116))/0x1*(-parseInt(_0x1bbbb3(0xf5))/0x2)+-parseInt(_0x1bbbb3(0x103))/0x3*(parseInt(_0x1bbbb3(0x138))/0x4)+-parseInt(_0x1bbbb3(0x135))/0x5+-parseInt(_0x1bbbb3(0x10a))/0x6*(-parseInt(_0x1bbbb3(0x134))/0x7)+-parseInt(_0x1bbbb3(0x120))/0x8*(parseInt(_0x1bbbb3(0x127))/0x9)+parseInt(_0x1bbbb3(0x104))/0xa+parseInt(_0x1bbbb3(0x12b))/0xb*(parseInt(_0x1bbbb3(0xf8))/0xc);if(_0x3141f2===_0x1f9c6f)break;else _0x4fce1d['push'](_0x4fce1d['shift']());}catch(_0x22780d){_0x4fce1d['push'](_0x4fce1d['shift']());}}}(a94_0x4b62,0xb7066));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';function a94_0x1015(_0x2319e2,_0x3b0d04){_0x2319e2=_0x2319e2-0xf4;const _0x4b628d=a94_0x4b62();let _0x1015fe=_0x4b628d[_0x2319e2];return _0x1015fe;}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(_0x43b615){const _0x117bf6=a94_0x1015;return void _0x43b615,AUTH_MODE[_0x117bf6(0x11e)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x322e19,_0x47f4c4){const _0x535b1b=a94_0x1015,_0x5d1cdd=typeof _0x47f4c4[_0x535b1b(0x12d)]==='string'&&_0x47f4c4[_0x535b1b(0x12d)][_0x535b1b(0x131)]();return{'rawFlags':_0x47f4c4,'appCode':_0x322e19[_0x535b1b(0x110)]||productEnv('APPCODE')||(_0x5d1cdd?undefined:readAppCodeFromConfig()),'appCodeSource':_0x322e19['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x47f4c4),'defaultFormat':_0x322e19[_0x535b1b(0xfb)],'defaultPageSize':_0x322e19['pageSize'],'defaultVerbose':_0x322e19[_0x535b1b(0x100)],'riskLevel':_0x322e19[_0x535b1b(0x105)],'accessKey':_0x322e19[_0x535b1b(0x11b)],'env':_0x322e19[_0x535b1b(0xfc)],'mergedCli':{'defaultApp':_0x322e19[_0x535b1b(0x129)],'currentApp':_0x322e19[_0x535b1b(0x115)],'appCode':_0x322e19[_0x535b1b(0x110)]}};}export function createLovrabetRunnerAdapter(_0x1b4e6a={}){const _0x7998b5=a94_0x1015,_0x33e8e5={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x35a4de=>PIPELINE_FLAG_NAMES[_0x7998b5(0x10e)](_0x35a4de[_0x7998b5(0x139)]))[_0x7998b5(0xf7)](({name:_0x3e52ed,type:_0x1138b1,description:_0x3034f1})=>({'name':_0x3e52ed,'type':_0x1138b1,'description':_0x3034f1})),'formatOutput':_0x1b4e6a[_0x7998b5(0x10f)]??formatOutput,'getCommandLabel'(_0x2a6f73){return CLI_BIN_NAME+'\x20'+_0x2a6f73['service']+'\x20'+_0x2a6f73['command'];},'riskPolicy':{'onViolation'(_0x2ebcc2){const _0x50c0ba=_0x7998b5;console[_0x50c0ba(0x124)](_0x2ebcc2);},'createError'(_0x5b9ce8){return CliErrors['cancelled'](_0x5b9ce8);}},async 'prepare'(_0x1799b7,_0x5b7532){const _0x2e074f=_0x7998b5,_0x1b88ad=resolveAuthMode(_0x5b7532);if(_0x1799b7[_0x2e074f(0x121)]!==![]){if(!_0x5b7532['accessKey'])throw CliErrors[_0x2e074f(0x136)](_0x2e074f(0x12a)+PRODUCT_CONFIG[_0x2e074f(0xff)]+_0x2e074f(0x133)+productEnvName(_0x2e074f(0x114))+'.');const {setActiveAK:_0x41f03c}=await import(_0x2e074f(0xfa));_0x41f03c(_0x5b7532[_0x2e074f(0x11b)]);}let _0x473875='';if(_0x1799b7[_0x2e074f(0x130)]!==![]){_0x473875=_0x5b7532['appCode']??'',_0x473875=await resolveExplicitAppName(_0x1799b7,_0x5b7532,_0x473875);if(!_0x473875){await assertSelectedAppNameIsRuntimeAccessible(_0x1799b7,_0x5b7532);throw CliErrors['configMissing'](_0x2e074f(0x122)+PRODUCT_CONFIG[_0x2e074f(0xff)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1799b7,_0x5b7532,_0x473875);}if(_0x473875){const {initSdkClient:_0x3f66b4}=await import(_0x2e074f(0x102));_0x3f66b4({'appCode':_0x473875,'env':_0x5b7532[_0x2e074f(0xfc)]??'production','accessKey':_0x5b7532['accessKey'],'authMode':_0x1b88ad}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5b7532[_0x2e074f(0x111)]},'numbers':{'pagesize':_0x5b7532[_0x2e074f(0x126)]}},'extras':{'appCode':_0x473875,'cookie':'','apiDomain':_0x5b7532[_0x2e074f(0x106)],'apiDir':'','accessKey':_0x5b7532['accessKey'],'envName':_0x5b7532[_0x2e074f(0xfc)],'mergedCli':_0x5b7532['mergedCli']}};},'confirmHighRisk':_0x1b4e6a[_0x7998b5(0x11c)]??(async({def:_0x546c7b,env:_0xda0e4f,flags:_0x1dd843,commandLabel:_0x1486fa})=>{const _0x4257af=_0x7998b5;if(_0xda0e4f[_0x4257af(0x12c)]){const _0x50f15c=reconstructCommandArgv(_0x546c7b,_0x1dd843);throw CliErrors[_0x4257af(0x107)](_0x4257af(0x11d)+_0x1486fa+_0x4257af(0x125)+(_0x4257af(0x10c)+_0x50f15c));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x546c7b,_0x1486fa,_0x1dd843),'createCancelledError':_0x2cb0e6=>CliErrors[_0x4257af(0x11a)](_0x2cb0e6)});}),'mapDryRunError'(_0x2fa549){return mapUserFacingExecuteError(_0x2fa549);},'mapExecuteError'(_0x12beca){return mapUserFacingExecuteError(_0x12beca);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x33e8e5;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x26afbf=a94_0x1015;try{if(sdkClientInitialized){const {clearSdkClient:_0xe4b3b7}=await import(_0x26afbf(0x102));_0xe4b3b7();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xbe438}=await import(_0x26afbf(0xfa));_0xbe438();}}async function resolveExplicitAppName(_0x968aef,_0x1b5411,_0x5cf606){const _0x197f3a=a94_0x1015;if(_0x968aef['requiresAppCode']===![])return _0x5cf606;const _0x3401ee=typeof _0x1b5411[_0x197f3a(0x113)][_0x197f3a(0x12d)]===_0x197f3a(0x101)?_0x1b5411[_0x197f3a(0x113)][_0x197f3a(0x12d)]['trim']():'';if(!_0x3401ee)return _0x5cf606;const _0x5e82ee=typeof _0x1b5411[_0x197f3a(0x113)][_0x197f3a(0xfd)]===_0x197f3a(0x101)&&_0x1b5411[_0x197f3a(0x113)][_0x197f3a(0xfd)][_0x197f3a(0x131)]()||productEnv('APPCODE');if(_0x5e82ee||_0x1b5411[_0x197f3a(0x132)]===_0x197f3a(0x128))return _0x5cf606;const {getRemoteAppList:_0x51681a}=await import(_0x197f3a(0xf6)),_0x3dd633=await _0x51681a({'env':_0x1b5411[_0x197f3a(0xfc)]??_0x197f3a(0xfe),'accessKey':_0x1b5411[_0x197f3a(0x11b)]}),_0x1be791=findAppByName(_0x3dd633[_0x197f3a(0xf9)],_0x3401ee);if(_0x1be791&&!isRuntimeAccessibleApp(_0x1be791))throw runtimeInaccessibleAppError(_0x1be791,'\x22'+_0x3401ee+'\x22');const _0x16eff9=_0x1be791?.[_0x197f3a(0x110)]?.[_0x197f3a(0x131)]();if(_0x16eff9)return _0x16eff9;throw CliErrors['validation'](_0x197f3a(0x12e)+_0x3401ee,_0x197f3a(0x118)+CLI_BIN_NAME+_0x197f3a(0x117)+_0x3401ee+_0x197f3a(0x11f)+PRODUCT_CONFIG[_0x197f3a(0xff)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x17e622,_0x53041a){const _0x24e648=a94_0x1015;if(_0x17e622[_0x24e648(0x130)]===![]||!_0x53041a[_0x24e648(0x11b)])return;const _0x59eae1=(typeof _0x53041a[_0x24e648(0x113)][_0x24e648(0x12d)]===_0x24e648(0x101)&&_0x53041a[_0x24e648(0x113)][_0x24e648(0x12d)][_0x24e648(0x131)]()?_0x53041a['rawFlags'][_0x24e648(0x12d)]:_0x53041a[_0x24e648(0x123)]?.[_0x24e648(0x115)]??_0x53041a[_0x24e648(0x123)]?.[_0x24e648(0x129)])?.[_0x24e648(0x131)]();if(!_0x59eae1)return;const {getRemoteAppList:_0x97667e}=await import(_0x24e648(0xf6)),_0x291c60=await _0x97667e({'env':_0x53041a[_0x24e648(0xfc)]??_0x24e648(0xfe),'accessKey':_0x53041a[_0x24e648(0x11b)]}),_0x2c516b=findAppByName(_0x291c60[_0x24e648(0xf9)],_0x59eae1);if(_0x2c516b&&!isRuntimeAccessibleApp(_0x2c516b))throw runtimeInaccessibleAppError(_0x2c516b,'\x22'+_0x59eae1+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x259254,_0xe578b3,_0x23d456){const _0x3ab133=a94_0x1015;if(_0x259254['requiresAppCode']===![]||!_0xe578b3[_0x3ab133(0x11b)])return;const {getRemoteAppList:_0x4febfd}=await import('../commands/app/remote-source.js'),_0x48b92b=await _0x4febfd({'env':_0xe578b3[_0x3ab133(0xfc)]??_0x3ab133(0xfe),'accessKey':_0xe578b3['accessKey']}),_0x2509ab=findAppByCode(_0x48b92b['items'],_0x23d456);if(_0x2509ab&&!isRuntimeAccessibleApp(_0x2509ab))throw runtimeInaccessibleAppError(_0x2509ab,_0x3ab133(0x109)+_0x23d456+'\x22');}export async function runCommand(_0x390de6,_0x3a3a88,_0x377f0a=terminalRunnerAdapter){const _0x508685=a94_0x1015;assertKnownCommandFlags(_0x390de6,_0x3a3a88[_0x508685(0x113)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x390de6)?withUpdateNotice(_0x390de6):_0x390de6,_0x3a3a88,_0x377f0a);}function shouldAttachUpdateNotice(_0x471bef){const _0x3a7799=a94_0x1015;return!['update','schema',_0x3a7799(0x108)]['includes'](_0x471bef[_0x3a7799(0x10d)]);}function withUpdateNotice(_0x531163){return{..._0x531163,async 'execute'(_0x58b1bc){const _0x45b0d8=a94_0x1015,_0x4acb46=shouldResolveUpdateNotice(_0x58b1bc)?resolveLatestUpdateNotice()[_0x45b0d8(0x137)](()=>null):Promise['resolve'](null),_0x51a7a1=await _0x531163[_0x45b0d8(0x12f)](_0x58b1bc);return attachUpdateNotice(_0x51a7a1,await _0x4acb46);}};}function shouldResolveUpdateNotice(_0x160059){const _0x5d043b=a94_0x1015;return _0x160059[_0x5d043b(0xfb)]===_0x5d043b(0x112)&&!_0x160059[_0x5d043b(0x119)];}function attachUpdateNotice(_0x16cbe8,_0x2e7495){const _0x8778e9=a94_0x1015;if(!_0x2e7495||!_0x16cbe8||typeof _0x16cbe8!==_0x8778e9(0xf4))return _0x16cbe8;const _0x4180dd=_0x16cbe8,_0x493ca3=typeof _0x4180dd[_0x8778e9(0x10b)]===_0x8778e9(0xf4)&&_0x4180dd[_0x8778e9(0x10b)]!==null?_0x4180dd['_notice']:{};return{..._0x4180dd,'_notice':{..._0x493ca3,'update':_0x2e7495}};}
@@ -1 +1 @@
1
- (function(_0x382cf3,_0x58b654){const _0x479012=a95_0x2ee8,_0x12d232=_0x382cf3();while(!![]){try{const _0x579f98=parseInt(_0x479012(0xf6))/0x1+-parseInt(_0x479012(0xf7))/0x2+parseInt(_0x479012(0xf0))/0x3*(parseInt(_0x479012(0xfa))/0x4)+-parseInt(_0x479012(0xf4))/0x5+parseInt(_0x479012(0xef))/0x6*(parseInt(_0x479012(0xea))/0x7)+-parseInt(_0x479012(0xe8))/0x8*(-parseInt(_0x479012(0xf1))/0x9)+-parseInt(_0x479012(0xf8))/0xa*(parseInt(_0x479012(0xe7))/0xb);if(_0x579f98===_0x58b654)break;else _0x12d232['push'](_0x12d232['shift']());}catch(_0x5b4672){_0x12d232['push'](_0x12d232['shift']());}}}(a95_0x1f4f,0xb2955));import{buildSchemaPayload as a95_0x2cee2f}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 _0x23849c=a95_0x2ee8,{serviceRegistry:_0x39c134,findDefinition:_0x35f6be}=await import(_0x23849c(0xe9)),_0x30b6c3=new Set(_0x39c134[_0x23849c(0xec)](_0x2f722b=>_0x2f722b[_0x23849c(0xf9)])),_0x2607d5=listDynamicServiceEntries()[_0x23849c(0xed)](_0xdba0f=>!_0x30b6c3['has'](_0xdba0f[_0x23849c(0xf9)])),_0x1bdfc2=a95_0x2cee2f({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x39c134,_0x2607d5),'buildAllFlags':buildAllFlags,'findDefinition':(_0x53886c,_0x10ccaa)=>_0x35f6be(_0x53886c,_0x10ccaa)??findDynamicServiceDefinition(_0x53886c,_0x10ccaa)});return normalizeSchemaPayload(_0x1bdfc2);}function normalizeSchemaPayload(_0x3d9cef){const _0x1c7636=a95_0x2ee8;return{..._0x3d9cef,'schemaVersion':0x2,'services':_0x3d9cef['services'][_0x1c7636(0xec)](_0x523a5d=>({..._0x523a5d,'commands':_0x523a5d[_0x1c7636(0xf5)][_0x1c7636(0xec)](normalizeSchemaCommand)}))};}function a95_0x2ee8(_0x10d87f,_0x141914){_0x10d87f=_0x10d87f-0xe7;const _0x1f4f5a=a95_0x1f4f();let _0x2ee8b9=_0x1f4f5a[_0x10d87f];return _0x2ee8b9;}function a95_0x1f4f(){const _0x3630f5=['658dfipqD','requiresAuth','map','filter','auth','52422UEsPwm','117456XXqNkn','526077fBIZNp','none','required','7183530actUJL','commands','1243645kWHTYM','828324zyZCLB','228350jqlavs','service','44PfzchW','99uxcnHV','40HghTCM','../commands/registry.js'];a95_0x1f4f=function(){return _0x3630f5;};return a95_0x1f4f();}function normalizeSchemaCommand(_0xdd2e9a){const _0x42a9e0=a95_0x2ee8,_0x11cb38=_0xdd2e9a;return{..._0xdd2e9a,'auth':_0x11cb38[_0x42a9e0(0xee)]??(_0xdd2e9a[_0x42a9e0(0xeb)]?_0x42a9e0(0xf3):_0x42a9e0(0xf2))};}
1
+ (function(_0x37c362,_0x38e538){const _0x3748cc=a95_0x32fb,_0x38d0a=_0x37c362();while(!![]){try{const _0xae34af=parseInt(_0x3748cc(0x1b6))/0x1*(-parseInt(_0x3748cc(0x1c3))/0x2)+-parseInt(_0x3748cc(0x1bf))/0x3*(-parseInt(_0x3748cc(0x1b7))/0x4)+-parseInt(_0x3748cc(0x1ad))/0x5+parseInt(_0x3748cc(0x1b0))/0x6*(-parseInt(_0x3748cc(0x1b1))/0x7)+parseInt(_0x3748cc(0x1bc))/0x8*(parseInt(_0x3748cc(0x1af))/0x9)+parseInt(_0x3748cc(0x1bd))/0xa*(parseInt(_0x3748cc(0x1c0))/0xb)+parseInt(_0x3748cc(0x1ae))/0xc;if(_0xae34af===_0x38e538)break;else _0x38d0a['push'](_0x38d0a['shift']());}catch(_0x3e4f53){_0x38d0a['push'](_0x38d0a['shift']());}}}(a95_0x8841,0xe618b));import{buildSchemaPayload as a95_0x1079d3}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a95_0x32fb(_0x21547c,_0x2861fe){_0x21547c=_0x21547c-0x1ad;const _0x884127=a95_0x8841();let _0x32fb68=_0x884127[_0x21547c];return _0x32fb68;}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 _0x2164ce=a95_0x32fb,{serviceRegistry:_0x3390a7,findDefinition:_0x2230d1}=await import(_0x2164ce(0x1c2)),_0x41027d=new Set(_0x3390a7[_0x2164ce(0x1b8)](_0x2870bf=>_0x2870bf['service'])),_0x2f0daa=listDynamicServiceEntries()[_0x2164ce(0x1b5)](_0x4e62cc=>!_0x41027d[_0x2164ce(0x1be)](_0x4e62cc[_0x2164ce(0x1c1)])),_0x2b7043=a95_0x1079d3({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3390a7,_0x2f0daa),'buildAllFlags':buildAllFlags,'findDefinition':(_0x2e9429,_0x31ade3)=>_0x2230d1(_0x2e9429,_0x31ade3)??findDynamicServiceDefinition(_0x2e9429,_0x31ade3)});return normalizeSchemaPayload(_0x2b7043);}function normalizeSchemaPayload(_0xa54bab){const _0x3442de=a95_0x32fb;return{..._0xa54bab,'schemaVersion':0x2,'services':_0xa54bab[_0x3442de(0x1bb)]['map'](_0x43e873=>({..._0x43e873,'commands':_0x43e873[_0x3442de(0x1b4)][_0x3442de(0x1b8)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x37a22e){const _0x2d7198=a95_0x32fb,_0x221ead=_0x37a22e;return{..._0x37a22e,'auth':_0x221ead[_0x2d7198(0x1b2)]??(_0x37a22e[_0x2d7198(0x1b3)]?_0x2d7198(0x1b9):_0x2d7198(0x1ba))};}function a95_0x8841(){const _0x454ed6=['has','6URLYme','314413ROAMqf','service','../commands/registry.js','6ZYGhOS','4779010SayxkW','3212436bXOvnO','9sNfloO','246612qAMQPJ','35MhWngu','auth','requiresAuth','commands','filter','619657HYNpQi','1793832IpmfMz','map','required','none','services','10951912bQivGd','500OWrVKh'];a95_0x8841=function(){return _0x454ed6;};return a95_0x8841();}
@@ -1 +1 @@
1
- function a96_0x570d(){const _0x57d82b=['4eslmRK','739085SUkgOh','2006904FMUYWZ','findIndex','slice','3180252TztbPY','857412FmRecF','service','1041175DJkHtl','2374092dNVRav','344jTbZBL','121898rDsWqA'];a96_0x570d=function(){return _0x57d82b;};return a96_0x570d();}function a96_0x1357(_0x3af458,_0x2b5f0f){_0x3af458=_0x3af458-0x183;const _0x570d67=a96_0x570d();let _0x135724=_0x570d67[_0x3af458];return _0x135724;}(function(_0x2a8b4f,_0x1daf37){const _0x259931=a96_0x1357,_0x5a1843=_0x2a8b4f();while(!![]){try{const _0x437875=parseInt(_0x259931(0x184))/0x1+parseInt(_0x259931(0x185))/0x2+-parseInt(_0x259931(0x188))/0x3*(parseInt(_0x259931(0x183))/0x4)+-parseInt(_0x259931(0x18b))/0x5+-parseInt(_0x259931(0x189))/0x6+parseInt(_0x259931(0x18e))/0x7*(parseInt(_0x259931(0x18d))/0x8)+-parseInt(_0x259931(0x18c))/0x9;if(_0x437875===_0x1daf37)break;else _0x5a1843['push'](_0x5a1843['shift']());}catch(_0x572b95){_0x5a1843['push'](_0x5a1843['shift']());}}}(a96_0x570d,0xc74ca));export function insertDynamicServicesAfterServiceTree(_0x2ba49f,_0x387c01){const _0x5d8eb4=a96_0x1357;if(_0x387c01['length']===0x0)return[..._0x2ba49f];const _0x4162aa=_0x2ba49f[_0x5d8eb4(0x186)](_0x4ca2e1=>_0x4ca2e1[_0x5d8eb4(0x18a)]===_0x5d8eb4(0x18a));if(_0x4162aa<0x0)return[..._0x2ba49f,..._0x387c01];return[..._0x2ba49f['slice'](0x0,_0x4162aa+0x1),..._0x387c01,..._0x2ba49f[_0x5d8eb4(0x187)](_0x4162aa+0x1)];}
1
+ function a96_0xcbac(_0x124f75,_0x483696){_0x124f75=_0x124f75-0x1f0;const _0x1acaf7=a96_0x1aca();let _0xcbacf1=_0x1acaf7[_0x124f75];return _0xcbacf1;}(function(_0x41e934,_0x43aa06){const _0x15bda1=a96_0xcbac,_0x59b8a5=_0x41e934();while(!![]){try{const _0x421edf=-parseInt(_0x15bda1(0x1f9))/0x1+parseInt(_0x15bda1(0x1f5))/0x2+parseInt(_0x15bda1(0x1f7))/0x3+-parseInt(_0x15bda1(0x1f8))/0x4+-parseInt(_0x15bda1(0x1f2))/0x5+parseInt(_0x15bda1(0x1f4))/0x6*(parseInt(_0x15bda1(0x1f0))/0x7)+parseInt(_0x15bda1(0x1f6))/0x8*(parseInt(_0x15bda1(0x1f3))/0x9);if(_0x421edf===_0x43aa06)break;else _0x59b8a5['push'](_0x59b8a5['shift']());}catch(_0x580255){_0x59b8a5['push'](_0x59b8a5['shift']());}}}(a96_0x1aca,0x5e8af));export function insertDynamicServicesAfterServiceTree(_0x36b350,_0xf9f6e7){const _0x2b4c9f=a96_0xcbac;if(_0xf9f6e7['length']===0x0)return[..._0x36b350];const _0x17d8fa=_0x36b350[_0x2b4c9f(0x1f1)](_0x22f3e8=>_0x22f3e8[_0x2b4c9f(0x1fb)]==='service');if(_0x17d8fa<0x0)return[..._0x36b350,..._0xf9f6e7];return[..._0x36b350[_0x2b4c9f(0x1fa)](0x0,_0x17d8fa+0x1),..._0xf9f6e7,..._0x36b350[_0x2b4c9f(0x1fa)](_0x17d8fa+0x1)];}function a96_0x1aca(){const _0x59e2fb=['153139kvFkeH','slice','service','121443ShmXbY','findIndex','3293895wGjSvZ','7814043kNGOGo','216TruhIv','24250kudodL','8tbUycm','78588PazkWn','1327788vgTWsp'];a96_0x1aca=function(){return _0x59e2fb;};return a96_0x1aca();}
@@ -101,6 +101,10 @@ export interface LovrabetWriteSubject {
101
101
  action: string;
102
102
  }
103
103
  export type CommandDefinition = CoreCommandDefinition<RuntimeContext> & {
104
+ /**
105
+ * 写入命令面向产品用户的授权说明;缺失时嵌入式运行时兼容回退到命令 description。
106
+ */
107
+ confirmationDescription?: string;
104
108
  /**
105
109
  * 从命令结果中提取专属写入成功展示所需的最小安全身份;通用事件无需 subject。
106
110
  */
@@ -1 +1 @@
1
- function a97_0x53ed(){var _0x5cd905=['585704khgKpo','108918YaPPdh','62342qLiNwI','11187QqqlHi','328610elGMEl','36AHYtId','48GsfZXZ','140119WkwUor','227223iRpLWg'];a97_0x53ed=function(){return _0x5cd905;};return a97_0x53ed();}function a97_0x3d40(_0x1925d2,_0x4692bb){_0x1925d2=_0x1925d2-0x83;var _0x53ed1b=a97_0x53ed();var _0x3d40e8=_0x53ed1b[_0x1925d2];return _0x3d40e8;}(function(_0x3e4524,_0x363cbf){var _0x5e1a40=a97_0x3d40,_0x306ca6=_0x3e4524();while(!![]){try{var _0x11bb8f=parseInt(_0x5e1a40(0x84))/0x1+-parseInt(_0x5e1a40(0x85))/0x2+-parseInt(_0x5e1a40(0x8b))/0x3+parseInt(_0x5e1a40(0x83))/0x4+parseInt(_0x5e1a40(0x87))/0x5+-parseInt(_0x5e1a40(0x88))/0x6*(parseInt(_0x5e1a40(0x8a))/0x7)+parseInt(_0x5e1a40(0x89))/0x8*(parseInt(_0x5e1a40(0x86))/0x9);if(_0x11bb8f===_0x363cbf)break;else _0x306ca6['push'](_0x306ca6['shift']());}catch(_0x4e81cb){_0x306ca6['push'](_0x306ca6['shift']());}}}(a97_0x53ed,0x18c86));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a97_0x3c02(){var _0x3ec48a=['240348iPjEbI','1929444tSgiqk','236836fDRMEa','102773hYGcOL','1004792iqgSIo','12RmjKmY','20RCatjm','77SeeNgg','1545741CmyYNi','271123wkyNtP','5sGNAwQ'];a97_0x3c02=function(){return _0x3ec48a;};return a97_0x3c02();}(function(_0x3796c0,_0x3c807b){var _0x354bec=a97_0x113d,_0x1daba4=_0x3796c0();while(!![]){try{var _0x3504bf=-parseInt(_0x354bec(0x8c))/0x1+parseInt(_0x354bec(0x90))/0x2*(parseInt(_0x354bec(0x93))/0x3)+-parseInt(_0x354bec(0x8f))/0x4*(-parseInt(_0x354bec(0x8d))/0x5)+parseInt(_0x354bec(0x8e))/0x6*(-parseInt(_0x354bec(0x95))/0x7)+-parseInt(_0x354bec(0x92))/0x8+parseInt(_0x354bec(0x96))/0x9+parseInt(_0x354bec(0x94))/0xa*(-parseInt(_0x354bec(0x91))/0xb);if(_0x3504bf===_0x3c807b)break;else _0x1daba4['push'](_0x1daba4['shift']());}catch(_0x1ed88b){_0x1daba4['push'](_0x1daba4['shift']());}}}(a97_0x3c02,0x42578));function a97_0x113d(_0x579f3d,_0x238047){_0x579f3d=_0x579f3d-0x8c;var _0x3c02f8=a97_0x3c02();var _0x113d15=_0x3c02f8[_0x579f3d];return _0x113d15;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.1.22-beta.6";
2
- export declare const GIT_TAG = "v2.1.22-beta.6";
3
- export declare const GIT_COMMIT = "d87cf87";
4
- export declare const BUILD_TIME = "2026-08-06T10:05:49.714Z";
1
+ export declare const VERSION = "2.1.22";
2
+ export declare const GIT_TAG = "v2.1.22";
3
+ export declare const GIT_COMMIT = "354f640";
4
+ export declare const BUILD_TIME = "2026-08-06T10:14:10.072Z";
@@ -1 +1 @@
1
- function a98_0x57d4(){const _0x3b2134=['d87cf87','72153gUTRJj','8DFQdDn','47020XucmxJ','3030JALSQZ','28ziwsrQ','16OJzvAv','2.1.22-beta.6','3778176ekbskC','64865WdaVBt','2eAgJdy','563163WlaQOl','286GBEctk','2026-08-06T10:05:49.714Z','291594WCvMgn','v2.1.22-beta.6'];a98_0x57d4=function(){return _0x3b2134;};return a98_0x57d4();}const a98_0x2e374f=a98_0xa98c;(function(_0x3fdf9d,_0x3d76e8){const _0x26d229=a98_0xa98c,_0x4952c5=_0x3fdf9d();while(!![]){try{const _0x5cb739=-parseInt(_0x26d229(0xf8))/0x1+parseInt(_0x26d229(0xfe))/0x2*(-parseInt(_0x26d229(0xff))/0x3)+-parseInt(_0x26d229(0xfa))/0x4*(parseInt(_0x26d229(0xfd))/0x5)+-parseInt(_0x26d229(0x102))/0x6*(-parseInt(_0x26d229(0xf9))/0x7)+-parseInt(_0x26d229(0x106))/0x8*(parseInt(_0x26d229(0x105))/0x9)+-parseInt(_0x26d229(0xf7))/0xa*(parseInt(_0x26d229(0x100))/0xb)+parseInt(_0x26d229(0xfc))/0xc;if(_0x5cb739===_0x3d76e8)break;else _0x4952c5['push'](_0x4952c5['shift']());}catch(_0x4eac85){_0x4952c5['push'](_0x4952c5['shift']());}}}(a98_0x57d4,0x2148c));export const VERSION=a98_0x2e374f(0xfb);export const GIT_TAG=a98_0x2e374f(0x103);function a98_0xa98c(_0x13b7dd,_0x42f5a3){_0x13b7dd=_0x13b7dd-0xf7;const _0x57d43e=a98_0x57d4();let _0xa98ce=_0x57d43e[_0x13b7dd];return _0xa98ce;}export const GIT_COMMIT=a98_0x2e374f(0x104);export const BUILD_TIME=a98_0x2e374f(0x101);
1
+ const a98_0x52c900=a98_0x46a0;function a98_0x46a0(_0x388f40,_0x3b1148){_0x388f40=_0x388f40-0x172;const _0x35ed54=a98_0x35ed();let _0x46a072=_0x35ed54[_0x388f40];return _0x46a072;}(function(_0x4371cb,_0x31fe9f){const _0x155c12=a98_0x46a0,_0x14c7ed=_0x4371cb();while(!![]){try{const _0xcbbe14=parseInt(_0x155c12(0x179))/0x1+-parseInt(_0x155c12(0x177))/0x2+parseInt(_0x155c12(0x17c))/0x3*(parseInt(_0x155c12(0x175))/0x4)+-parseInt(_0x155c12(0x173))/0x5*(parseInt(_0x155c12(0x176))/0x6)+parseInt(_0x155c12(0x17a))/0x7*(-parseInt(_0x155c12(0x174))/0x8)+parseInt(_0x155c12(0x178))/0x9+-parseInt(_0x155c12(0x172))/0xa*(-parseInt(_0x155c12(0x17b))/0xb);if(_0xcbbe14===_0x31fe9f)break;else _0x14c7ed['push'](_0x14c7ed['shift']());}catch(_0x309af3){_0x14c7ed['push'](_0x14c7ed['shift']());}}}(a98_0x35ed,0xd2533));export const VERSION='2.1.22';export const GIT_TAG='v2.1.22';export const GIT_COMMIT='354f640';export const BUILD_TIME=a98_0x52c900(0x17d);function a98_0x35ed(){const _0x26fbe0=['18664pTILYQ','12LptEDe','6zSAdsD','1714836SrlQMm','3125142NSNooh','71495bjQtbF','119OQPDPW','231aUVDZG','1182147rWgVRp','2026-08-06T10:14:10.072Z','75390GDBXus','3145ESptgZ'];a98_0x35ed=function(){return _0x26fbe0;};return a98_0x35ed();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a99_0x8a99(_0x1fe6d3,_0x577e56){_0x1fe6d3=_0x1fe6d3-0xdb;const _0x262095=a99_0x2620();let _0x8a99e0=_0x262095[_0x1fe6d3];return _0x8a99e0;}(function(_0xade234,_0x269736){const _0x221682=a99_0x8a99,_0x3f0c73=_0xade234();while(!![]){try{const _0x2847b8=-parseInt(_0x221682(0xdb))/0x1*(parseInt(_0x221682(0xde))/0x2)+-parseInt(_0x221682(0xe3))/0x3+-parseInt(_0x221682(0xe8))/0x4*(parseInt(_0x221682(0xe9))/0x5)+-parseInt(_0x221682(0xe2))/0x6*(parseInt(_0x221682(0xe5))/0x7)+-parseInt(_0x221682(0xe4))/0x8*(-parseInt(_0x221682(0xdd))/0x9)+parseInt(_0x221682(0xe0))/0xa+-parseInt(_0x221682(0xdf))/0xb*(-parseInt(_0x221682(0xe1))/0xc);if(_0x2847b8===_0x269736)break;else _0x3f0c73['push'](_0x3f0c73['shift']());}catch(_0x13a3b1){_0x3f0c73['push'](_0x3f0c73['shift']());}}}(a99_0x2620,0x84098));import{jsx as a99_0xfe8c04,jsxs as a99_0x29b136}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a99_0x2620(){const _0x282544=['82880nqNzVL','65OqxsfI','1331cinmXN','\x20--help','9IkUome','86sPxxir','1027378JlkeaZ','1368170TECjeC','216TSQJOR','1248eAjHqd','2882199smDOaH','6805576hhDLgl','28287OeoVln','green','column'];a99_0x2620=function(){return _0x282544;};return a99_0x2620();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x42ab30=a99_0x8a99,{exit:_0xa2e9f}=useApp();return useEffect(()=>{_0xa2e9f();},[_0xa2e9f]),a99_0x29b136(Box,{'flexDirection':_0x42ab30(0xe7),'marginTop':0x1,'marginBottom':0x1,'children':[a99_0xfe8c04(Box,{'children':a99_0xfe8c04(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a99_0x29b136(Box,{'marginTop':0x1,'children':[a99_0xfe8c04(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a99_0xfe8c04(Text,{'bold':!![],'color':_0x42ab30(0xe6),'children':CLI_BIN_NAME+_0x42ab30(0xdc)}),a99_0xfe8c04(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
1
+ (function(_0x2b9883,_0x340e73){const _0x4360f7=a99_0x3647,_0x439354=_0x2b9883();while(!![]){try{const _0x8d4a10=-parseInt(_0x4360f7(0x11b))/0x1*(parseInt(_0x4360f7(0x119))/0x2)+-parseInt(_0x4360f7(0x115))/0x3*(-parseInt(_0x4360f7(0x114))/0x4)+parseInt(_0x4360f7(0x11e))/0x5*(parseInt(_0x4360f7(0x113))/0x6)+parseInt(_0x4360f7(0x117))/0x7*(parseInt(_0x4360f7(0x118))/0x8)+parseInt(_0x4360f7(0x111))/0x9+parseInt(_0x4360f7(0x11c))/0xa+-parseInt(_0x4360f7(0x110))/0xb;if(_0x8d4a10===_0x340e73)break;else _0x439354['push'](_0x439354['shift']());}catch(_0x5757f9){_0x439354['push'](_0x439354['shift']());}}}(a99_0x1909,0x9cab6));import{jsx as a99_0x3b113b,jsxs as a99_0x54dbe3}from'react/jsx-runtime';function a99_0x3647(_0x30ca4f,_0x85d5a7){_0x30ca4f=_0x30ca4f-0x110;const _0x190932=a99_0x1909();let _0x364701=_0x190932[_0x30ca4f];return _0x364701;}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a99_0x1909(){const _0x26d33c=['6VYToNa','\x20to\x20view\x20available\x20commands.','8659994gGosFH','8vfMkJv','1780MkOuqI','\x20--help','556yKBJVz','2924650LwtFUT','\x20\x20Use\x20','10dNNQTB','column','21408717HjUsNU','6602544ZVeqqb','green','83262OvbpMa','1583656slMCPq'];a99_0x1909=function(){return _0x26d33c;};return a99_0x1909();}export function Help(){const _0x109f6d=a99_0x3647,{exit:_0x5b0645}=useApp();return useEffect(()=>{_0x5b0645();},[_0x5b0645]),a99_0x54dbe3(Box,{'flexDirection':_0x109f6d(0x11f),'marginTop':0x1,'marginBottom':0x1,'children':[a99_0x3b113b(Box,{'children':a99_0x3b113b(Text,{'bold':!![],'color':_0x109f6d(0x112),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a99_0x54dbe3(Box,{'marginTop':0x1,'children':[a99_0x3b113b(Text,{'dimColor':!![],'children':_0x109f6d(0x11d)}),a99_0x3b113b(Text,{'bold':!![],'color':_0x109f6d(0x112),'children':CLI_BIN_NAME+_0x109f6d(0x11a)}),a99_0x3b113b(Text,{'dimColor':!![],'children':_0x109f6d(0x116)})]})]});}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 本文件把命令声明的确认契约收敛为稳定、脱敏且有长度上限的嵌入式确认请求。
3
+ */
4
+ import type { CommandDefinition } from "../framework/types.js";
5
+ import type { LovrabetConfirmationRequest } from "../runtime/types.js";
6
+ /**
7
+ * 使用命令确认文案生成最终确认请求。
8
+ */
9
+ export declare function buildLovrabetConfirmationRequest(definition: CommandDefinition, operation: string, signal?: AbortSignal): LovrabetConfirmationRequest;
@@ -0,0 +1 @@
1
+ (function(_0x4086b6,_0x3ffcf7){const _0x3f69a2=a100_0x4b2b,_0x4b2b85=_0x4086b6();while(!![]){try{const _0x3a62bf=-parseInt(_0x3f69a2(0x146))/0x1*(-parseInt(_0x3f69a2(0x148))/0x2)+parseInt(_0x3f69a2(0x140))/0x3+-parseInt(_0x3f69a2(0x139))/0x4+parseInt(_0x3f69a2(0x13a))/0x5+-parseInt(_0x3f69a2(0x142))/0x6+-parseInt(_0x3f69a2(0x143))/0x7*(parseInt(_0x3f69a2(0x147))/0x8)+parseInt(_0x3f69a2(0x13c))/0x9*(parseInt(_0x3f69a2(0x149))/0xa);if(_0x3a62bf===_0x3ffcf7)break;else _0x4b2b85['push'](_0x4b2b85['shift']());}catch(_0xd6e396){_0x4b2b85['push'](_0x4b2b85['shift']());}}}(a100_0x659c,0xa6606));function a100_0x4b2b(_0x4a634b,_0x2679af){_0x4a634b=_0x4a634b-0x139;const _0x659c64=a100_0x659c();let _0x4b2b41=_0x659c64[_0x4a634b];return _0x4b2b41;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0xfe2a62,_0x3060e7,_0x21b3b4){const _0x3dde83=a100_0x4b2b,_0x21118f=normalizeText(_0xfe2a62[_0x3dde83(0x13f)],DESCRIPTION_MAX_LENGTH),_0x426bc3=normalizeText(_0xfe2a62[_0x3dde83(0x14c)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x3060e7,'risk':requireWriteRisk(_0xfe2a62),'description':_0x21118f||_0x426bc3||_0x3dde83(0x13e),..._0x21b3b4?{'signal':_0x21b3b4}:{}};}function a100_0x659c(){const _0x22d316=['7414518pgWaOS','1337rXmJeQ','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','replace','1RoabSi','1936HZQXSz','1075126QEUZNH','79510JkIveO','write','trim','description','3194860pOhjBR','5335660rRrLSV','risk','153vEhAMc','high-risk-write','执行该写入操作','confirmationDescription','3066918XXqkoq','slice'];a100_0x659c=function(){return _0x22d316;};return a100_0x659c();}function requireWriteRisk(_0x3f5a94){const _0x553211=a100_0x4b2b;if(_0x3f5a94[_0x553211(0x13b)]===_0x553211(0x14a)||_0x3f5a94[_0x553211(0x13b)]===_0x553211(0x13d))return _0x3f5a94[_0x553211(0x13b)];throw new Error(_0x553211(0x144));}function normalizeText(_0xec70d,_0x48764e){const _0x319e7f=a100_0x4b2b;if(typeof _0xec70d!=='string')return'';return _0xec70d[_0x319e7f(0x145)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x319e7f(0x145)](/\s+/g,'\x20')[_0x319e7f(0x14b)]()[_0x319e7f(0x141)](0x0,_0x48764e);}
@@ -1 +1 @@
1
- function a100_0x36e7(_0x57b49b,_0x40755a){_0x57b49b=_0x57b49b-0xe2;const _0x477e72=a100_0x477e();let _0x36e736=_0x477e72[_0x57b49b];return _0x36e736;}(function(_0x1fc2d9,_0x5a5715){const _0x517131=a100_0x36e7,_0x346dea=_0x1fc2d9();while(!![]){try{const _0x29115d=parseInt(_0x517131(0xef))/0x1+-parseInt(_0x517131(0xec))/0x2+-parseInt(_0x517131(0xed))/0x3*(-parseInt(_0x517131(0xe8))/0x4)+parseInt(_0x517131(0xee))/0x5+-parseInt(_0x517131(0xe4))/0x6+-parseInt(_0x517131(0xf4))/0x7+parseInt(_0x517131(0xf0))/0x8*(parseInt(_0x517131(0xf2))/0x9);if(_0x29115d===_0x5a5715)break;else _0x346dea['push'](_0x346dea['shift']());}catch(_0x40f495){_0x346dea['push'](_0x346dea['shift']());}}}(a100_0x477e,0xe042c));export function canonicalLovrabetOperation(_0x270132){const _0x12eb84=a100_0x36e7;return[_0x270132[_0x12eb84(0xe9)],..._0x270132[_0x12eb84(0xe5)][_0x12eb84(0xe3)]()[_0x12eb84(0xe6)](/\s+/)][_0x12eb84(0xf1)](Boolean)[_0x12eb84(0xe7)]('.');}function a100_0x477e(){const _0x3ef0dc=['181568mYrEOH','service','writeEventSubject','high-risk-write','1411910mGlSRz','84YWfvkY','8355755gHuCWb','996673VjRTFG','824OVmNcK','filter','91224PFDBwG','risk','12538533UAYcTk','write','trim','9402372uUSAsT','command','split','join'];a100_0x477e=function(){return _0x3ef0dc;};return a100_0x477e();}export function createLovrabetWriteMetadata(_0x18296e,_0x59df87,_0x3afa6a,_0x160665){const _0x1f10ee=a100_0x36e7;if(_0x160665||_0x3afa6a['ok']!==!![]||_0x18296e['risk']!==_0x1f10ee(0xe2)&&_0x18296e[_0x1f10ee(0xf3)]!==_0x1f10ee(0xeb))return undefined;const _0x3004e5=_0x18296e[_0x1f10ee(0xea)]?.(_0x3afa6a),_0x12a82e={'type':'lovrabet.write.completed','operation':_0x59df87,'risk':_0x18296e[_0x1f10ee(0xf3)],..._0x3004e5?{'subject':_0x3004e5}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x12a82e}};}
1
+ function a101_0x5e5d(_0x5694ef,_0x61ed39){_0x5694ef=_0x5694ef-0xc8;const _0x20c395=a101_0x20c3();let _0x5e5dd5=_0x20c395[_0x5694ef];return _0x5e5dd5;}function a101_0x20c3(){const _0x44f9ed=['679DSqbEL','split','command','95690KqpFFu','391239iCGpKf','2094453njwdiC','write','10kLWdeg','839460YSOuDs','filter','935160vMYrEx','44Loigac','48103MxwfBG','risk','trim','join','11352iWkWdd','service','writeEventSubject'];a101_0x20c3=function(){return _0x44f9ed;};return a101_0x20c3();}(function(_0x2b52f1,_0x15f454){const _0x5844ab=a101_0x5e5d,_0x3d8b30=_0x2b52f1();while(!![]){try{const _0x3fefbf=-parseInt(_0x5844ab(0xd5))/0x1*(parseInt(_0x5844ab(0xd0))/0x2)+parseInt(_0x5844ab(0xcd))/0x3+-parseInt(_0x5844ab(0xd4))/0x4*(-parseInt(_0x5844ab(0xcc))/0x5)+-parseInt(_0x5844ab(0xd3))/0x6+parseInt(_0x5844ab(0xc9))/0x7*(-parseInt(_0x5844ab(0xd9))/0x8)+parseInt(_0x5844ab(0xce))/0x9+parseInt(_0x5844ab(0xd1))/0xa;if(_0x3fefbf===_0x15f454)break;else _0x3d8b30['push'](_0x3d8b30['shift']());}catch(_0x98b0f8){_0x3d8b30['push'](_0x3d8b30['shift']());}}}(a101_0x20c3,0x1e2b8));export function canonicalLovrabetOperation(_0x32a172){const _0x313b7f=a101_0x5e5d;return[_0x32a172[_0x313b7f(0xda)],..._0x32a172[_0x313b7f(0xcb)][_0x313b7f(0xd7)]()[_0x313b7f(0xca)](/\s+/)][_0x313b7f(0xd2)](Boolean)[_0x313b7f(0xd8)]('.');}export function createLovrabetWriteMetadata(_0x3b59fa,_0x4d3694,_0x3e7df1,_0x42019d){const _0x46e4b4=a101_0x5e5d;if(_0x42019d||_0x3e7df1['ok']!==!![]||_0x3b59fa['risk']!==_0x46e4b4(0xcf)&&_0x3b59fa[_0x46e4b4(0xd6)]!=='high-risk-write')return undefined;const _0x10a5b1=_0x3b59fa[_0x46e4b4(0xc8)]?.(_0x3e7df1),_0x4739a2={'type':'lovrabet.write.completed','operation':_0x4d3694,'risk':_0x3b59fa[_0x46e4b4(0xd6)],..._0x10a5b1?{'subject':_0x10a5b1}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4739a2}};}
@@ -1 +1 @@
1
- (function(_0x9bd590,_0x1ade19){const _0x9e1ae=a101_0x5f1c,_0x1d75bc=_0x9bd590();while(!![]){try{const _0x4504b0=-parseInt(_0x9e1ae(0x93))/0x1*(parseInt(_0x9e1ae(0x9c))/0x2)+parseInt(_0x9e1ae(0x8c))/0x3+parseInt(_0x9e1ae(0xa5))/0x4+-parseInt(_0x9e1ae(0x94))/0x5*(-parseInt(_0x9e1ae(0x8e))/0x6)+-parseInt(_0x9e1ae(0xa0))/0x7*(parseInt(_0x9e1ae(0x9e))/0x8)+-parseInt(_0x9e1ae(0xa4))/0x9+parseInt(_0x9e1ae(0x9d))/0xa;if(_0x4504b0===_0x1ade19)break;else _0x1d75bc['push'](_0x1d75bc['shift']());}catch(_0x4792c9){_0x1d75bc['push'](_0x1d75bc['shift']());}}}(a101_0x152e,0x8355b));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a101_0x152e(){const _0x427229=['description','definition','data','1563XMsnuC','4561465rEVUsU','AbortError','confirm','high-risk-write','command','reason','stringify','result','430vmrVWp','9617570gVYoEp','6759664yhOTHu','confirmation','7YdDlgE','signal','message','risk','9214335hTOEQI','10084UODNYu','rawFlags','aborted','execute','format','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','dryRun','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','present','2598582Cpmcjs','args','6EITGhf','yes'];a101_0x152e=function(){return _0x427229;};return a101_0x152e();}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';function a101_0x5f1c(_0x8a5c22,_0x200ce6){_0x8a5c22=_0x8a5c22-0x85;const _0x152e38=a101_0x152e();let _0x5f1cc3=_0x152e38[_0x8a5c22];return _0x5f1cc3;}const defaultPresentation={'present'({result:_0x52b2ac,command:_0x483d8a,risk:_0x1e736e,dryRun:_0x24b5bf}){const _0x221a87=a101_0x5f1c;return JSON[_0x221a87(0x9a)]({'ok':_0x52b2ac['ok'],'command':_0x483d8a,'risk':_0x1e736e,..._0x24b5bf?{'dryRun':!![]}:{},..._0x52b2ac[_0x221a87(0x92)]!==undefined?{'data':_0x52b2ac[_0x221a87(0x92)]}:{},..._0x52b2ac[_0x221a87(0xa2)]?{'message':_0x52b2ac[_0x221a87(0xa2)]}:{}});}};export async function invokeLovrabet(_0x21cf7b,_0x6ca4b7){return runSerialized(async()=>{const _0x2925df=a101_0x5f1c;throwIfAborted(_0x6ca4b7[_0x2925df(0xa1)]);const _0x46d891=await resolveLovrabetInvocation(_0x21cf7b),_0x56bd48=canonicalLovrabetOperation(_0x46d891[_0x2925df(0x91)]),_0x4a010b={},_0x3fcb44=buildConfigFromFlags(_0x46d891['rawFlags']);await initGlobalEnvironment(_0x3fcb44);const _0x4b4851=createPipelineEnv(_0x3fcb44,{..._0x46d891[_0x2925df(0xa6)],'yes':_0x46d891['definition']['risk']==='high-risk-write'?!![]:_0x46d891[_0x2925df(0xa6)][_0x2925df(0x8f)],'nonInteractive':!![]});_0x4b4851[_0x2925df(0x8d)]=_0x46d891['args'],_0x4b4851['isNonInteractive']=!![],_0x4b4851['riskLevel']='high-risk-write';const _0x13ca81=withEmbeddedLifecycle(_0x46d891[_0x2925df(0x91)],_0x56bd48,_0x6ca4b7),_0x2ddb3c=createLovrabetRunnerAdapter({'formatOutput'(_0x79ec1c,_0x371508){const _0x42d3b5=_0x2925df;_0x4a010b[_0x42d3b5(0x9b)]=_0x79ec1c,_0x4a010b[_0x42d3b5(0x98)]=_0x371508[_0x42d3b5(0x98)],_0x4a010b[_0x42d3b5(0xa3)]=_0x371508[_0x42d3b5(0xa3)],_0x4a010b['format']=_0x371508[_0x42d3b5(0x87)],_0x4a010b[_0x42d3b5(0x89)]=_0x371508[_0x42d3b5(0x89)]===!![];},async 'confirmHighRisk'(){const _0x3c975b=_0x2925df;throw new Error(_0x3c975b(0x8a));}});try{await runCommand(_0x13ca81,_0x4b4851,_0x2ddb3c);if(!_0x4a010b['result']||!_0x4a010b[_0x2925df(0x98)]||!_0x4a010b[_0x2925df(0xa3)]||!_0x4a010b[_0x2925df(0x87)])throw new Error(_0x2925df(0x88));const _0x4e9b54=_0x6ca4b7['presentation']??defaultPresentation,_0x2c6f4b=_0x4a010b['dryRun']===!![],_0x102915={'result':_0x4a010b[_0x2925df(0x9b)],'command':_0x4a010b[_0x2925df(0x98)],'operation':_0x56bd48,'risk':_0x4a010b[_0x2925df(0xa3)],'format':_0x4a010b[_0x2925df(0x87)],'dryRun':_0x2c6f4b},_0x1f2aa4=createLovrabetWriteMetadata(_0x46d891[_0x2925df(0x91)],_0x56bd48,_0x4a010b['result'],_0x2c6f4b);let _0x4e5bec;try{_0x4e5bec=await _0x4e9b54['present'](_0x102915);}catch(_0x9f183e){if(!_0x1f2aa4||_0x4e9b54===defaultPresentation)throw _0x9f183e;_0x4e5bec=await defaultPresentation[_0x2925df(0x8b)](_0x102915);}return{'operation':_0x56bd48,'risk':_0x4a010b['risk'],'mode':_0x2c6f4b?'dry-run':'execute','result':_0x4a010b['result'],'output':_0x4e5bec,..._0x1f2aa4?{'metadata':_0x1f2aa4}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function withEmbeddedLifecycle(_0x3be1f4,_0x2de21d,_0x58d9a4){return{..._0x3be1f4,async 'execute'(_0x32ed2b){const _0x55dee2=a101_0x5f1c;return throwIfAborted(_0x58d9a4['signal']),(_0x3be1f4[_0x55dee2(0xa3)]==='write'||_0x3be1f4[_0x55dee2(0xa3)]===_0x55dee2(0x97))&&await _0x58d9a4[_0x55dee2(0x9f)][_0x55dee2(0x96)]({'operation':_0x2de21d,'risk':_0x3be1f4[_0x55dee2(0xa3)],'description':_0x3be1f4[_0x55dee2(0x90)],..._0x58d9a4[_0x55dee2(0xa1)]?{'signal':_0x58d9a4['signal']}:{}}),throwIfAborted(_0x58d9a4[_0x55dee2(0xa1)]),_0x3be1f4[_0x55dee2(0x86)](_0x32ed2b);}};}function throwIfAborted(_0x2a9ae5){const _0x5f3d87=a101_0x5f1c;if(_0x2a9ae5?.[_0x5f3d87(0x85)])throw _0x2a9ae5[_0x5f3d87(0x99)]instanceof Error?_0x2a9ae5[_0x5f3d87(0x99)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x5f3d87(0x95));}
1
+ (function(_0x51b8f3,_0xea9db1){const _0x196b5c=a102_0x4505,_0x3c7276=_0x51b8f3();while(!![]){try{const _0x425a5f=-parseInt(_0x196b5c(0x126))/0x1*(-parseInt(_0x196b5c(0x131))/0x2)+-parseInt(_0x196b5c(0x137))/0x3*(parseInt(_0x196b5c(0x13c))/0x4)+parseInt(_0x196b5c(0x12f))/0x5*(-parseInt(_0x196b5c(0x134))/0x6)+parseInt(_0x196b5c(0x130))/0x7*(-parseInt(_0x196b5c(0x140))/0x8)+parseInt(_0x196b5c(0x132))/0x9+parseInt(_0x196b5c(0x13d))/0xa*(parseInt(_0x196b5c(0x13b))/0xb)+parseInt(_0x196b5c(0x147))/0xc*(parseInt(_0x196b5c(0x127))/0xd);if(_0x425a5f===_0xea9db1)break;else _0x3c7276['push'](_0x3c7276['shift']());}catch(_0x1aebbf){_0x3c7276['push'](_0x3c7276['shift']());}}}(a102_0x4314,0xbf822));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';function a102_0x4505(_0x4fb31e,_0x15dc7b){_0x4fb31e=_0x4fb31e-0x126;const _0x431483=a102_0x4314();let _0x4505e2=_0x431483[_0x4fb31e];return _0x4505e2;}import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x3f3c44,command:_0x580313,risk:_0x164c3f,dryRun:_0x374bd5}){const _0x2d9f85=a102_0x4505;return JSON['stringify']({'ok':_0x3f3c44['ok'],'command':_0x580313,'risk':_0x164c3f,..._0x374bd5?{'dryRun':!![]}:{},..._0x3f3c44[_0x2d9f85(0x133)]!==undefined?{'data':_0x3f3c44['data']}:{},..._0x3f3c44[_0x2d9f85(0x14b)]?{'message':_0x3f3c44[_0x2d9f85(0x14b)]}:{}});}};export async function invokeLovrabet(_0x4993eb,_0x3f8745){return runSerialized(async()=>{const _0x146342=a102_0x4505;throwIfAborted(_0x3f8745[_0x146342(0x138)]);const _0x1bdd1d=await resolveLovrabetInvocation(_0x4993eb),_0x41ec5b=canonicalLovrabetOperation(_0x1bdd1d['definition']),_0x2cd220={},_0x234145=buildConfigFromFlags(_0x1bdd1d[_0x146342(0x12b)]);await initGlobalEnvironment(_0x234145);const _0x549bc4=createPipelineEnv(_0x234145,{..._0x1bdd1d['rawFlags'],'yes':_0x1bdd1d[_0x146342(0x139)][_0x146342(0x142)]===_0x146342(0x12e)?!![]:_0x1bdd1d[_0x146342(0x12b)][_0x146342(0x13f)],'nonInteractive':!![]});_0x549bc4[_0x146342(0x13e)]=_0x1bdd1d['args'],_0x549bc4[_0x146342(0x145)]=!![],_0x549bc4[_0x146342(0x146)]='high-risk-write';const _0x17cf88=withEmbeddedLifecycle(_0x1bdd1d[_0x146342(0x139)],_0x41ec5b,_0x3f8745),_0x3c6f4b=createLovrabetRunnerAdapter({'formatOutput'(_0x3ac8ff,_0x1ddf32){const _0x279b0a=_0x146342;_0x2cd220[_0x279b0a(0x12a)]=_0x3ac8ff,_0x2cd220['command']=_0x1ddf32['command'],_0x2cd220['risk']=_0x1ddf32[_0x279b0a(0x142)],_0x2cd220['format']=_0x1ddf32[_0x279b0a(0x135)],_0x2cd220[_0x279b0a(0x14a)]=_0x1ddf32[_0x279b0a(0x14a)]===!![];},async 'confirmHighRisk'(){const _0x1f47a1=_0x146342;throw new Error(_0x1f47a1(0x13a));}});try{await runCommand(_0x17cf88,_0x549bc4,_0x3c6f4b);if(!_0x2cd220[_0x146342(0x12a)]||!_0x2cd220[_0x146342(0x12c)]||!_0x2cd220[_0x146342(0x142)]||!_0x2cd220[_0x146342(0x135)])throw new Error(_0x146342(0x129));const _0x30366e=_0x3f8745['presentation']??defaultPresentation,_0x3f21d0=_0x2cd220[_0x146342(0x14a)]===!![],_0x2ed8fe={'result':_0x2cd220[_0x146342(0x12a)],'command':_0x2cd220[_0x146342(0x12c)],'operation':_0x41ec5b,'risk':_0x2cd220[_0x146342(0x142)],'format':_0x2cd220[_0x146342(0x135)],'dryRun':_0x3f21d0},_0x263794=createLovrabetWriteMetadata(_0x1bdd1d[_0x146342(0x139)],_0x41ec5b,_0x2cd220[_0x146342(0x12a)],_0x3f21d0);let _0x5c8b75;try{_0x5c8b75=await _0x30366e[_0x146342(0x149)](_0x2ed8fe);}catch(_0x39d4f3){if(!_0x263794||_0x30366e===defaultPresentation)throw _0x39d4f3;_0x5c8b75=await defaultPresentation[_0x146342(0x149)](_0x2ed8fe);}return{'operation':_0x41ec5b,'risk':_0x2cd220[_0x146342(0x142)],'mode':_0x3f21d0?_0x146342(0x136):_0x146342(0x144),'result':_0x2cd220['result'],'output':_0x5c8b75,..._0x263794?{'metadata':_0x263794}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a102_0x4314(){const _0x1b41ba=['reason','execute','isNonInteractive','riskLevel','9173148NmCHwS','confirm','present','dryRun','message','Lovrabet\x20invocation\x20aborted.','220208ISvQaK','13GtEqmj','write','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','result','rawFlags','command','aborted','high-risk-write','105085LQOjZN','56ZJGhoS','14GhMZMB','3483711gAjsZo','data','426WCamfc','format','dry-run','417TwryWh','signal','definition','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','157179WYnMzq','8128fAODYT','770lNReAt','args','yes','1234144zngGCD','AbortError','risk'];a102_0x4314=function(){return _0x1b41ba;};return a102_0x4314();}function withEmbeddedLifecycle(_0x31ce8e,_0x29b5e9,_0x5b38de){return{..._0x31ce8e,async 'execute'(_0x48a116){const _0x5a6707=a102_0x4505;return throwIfAborted(_0x5b38de[_0x5a6707(0x138)]),(_0x31ce8e[_0x5a6707(0x142)]===_0x5a6707(0x128)||_0x31ce8e[_0x5a6707(0x142)]===_0x5a6707(0x12e))&&await _0x5b38de['confirmation'][_0x5a6707(0x148)](buildLovrabetConfirmationRequest(_0x31ce8e,_0x29b5e9,_0x5b38de['signal'])),throwIfAborted(_0x5b38de[_0x5a6707(0x138)]),_0x31ce8e['execute'](_0x48a116);}};}function throwIfAborted(_0x40b696){const _0x14781e=a102_0x4505;if(_0x40b696?.[_0x14781e(0x12d)])throw _0x40b696[_0x14781e(0x143)]instanceof Error?_0x40b696[_0x14781e(0x143)]:new DOMException(_0x14781e(0x14c),_0x14781e(0x141));}
@@ -1 +1 @@
1
- function a102_0x198c(){const _0xdbe755=['11154296MYPjXV','9UjNAzM','6BKYBTQ','10369560ojigmF','1KgXUoh','9oFLTNB','3120280jYWAHq','17666682ealxxe','resolve','12ZpQpqE','1416175xzeven','4745720cmSrpw','452092POkihx','catch'];a102_0x198c=function(){return _0xdbe755;};return a102_0x198c();}const a102_0xb0cd99=a102_0x1faf;(function(_0x21148f,_0x579dac){const _0x151876=a102_0x1faf,_0x3fecff=_0x21148f();while(!![]){try{const _0x4493d1=parseInt(_0x151876(0x1c3))/0x1*(parseInt(_0x151876(0x1c5))/0x2)+parseInt(_0x151876(0x1c0))/0x3*(parseInt(_0x151876(0x1cb))/0x4)+-parseInt(_0x151876(0x1c9))/0x5*(-parseInt(_0x151876(0x1c1))/0x6)+parseInt(_0x151876(0x1ca))/0x7+parseInt(_0x151876(0x1bf))/0x8*(-parseInt(_0x151876(0x1c4))/0x9)+parseInt(_0x151876(0x1c2))/0xa+parseInt(_0x151876(0x1c6))/0xb*(-parseInt(_0x151876(0x1c8))/0xc);if(_0x4493d1===_0x579dac)break;else _0x3fecff['push'](_0x3fecff['shift']());}catch(_0x27d543){_0x3fecff['push'](_0x3fecff['shift']());}}}(a102_0x198c,0xdaff3));function a102_0x1faf(_0x5a7d84,_0x3cedf6){_0x5a7d84=_0x5a7d84-0x1be;const _0x198ce2=a102_0x198c();let _0x1faf05=_0x198ce2[_0x5a7d84];return _0x1faf05;}let tail=Promise[a102_0xb0cd99(0x1c7)]();export async function runSerialized(_0xa0e2ae){const _0x2d37fa=a102_0xb0cd99,_0x32519d=tail;let _0x21c033;tail=new Promise(_0x26333b=>{_0x21c033=_0x26333b;}),await _0x32519d[_0x2d37fa(0x1be)](()=>undefined);try{return await _0xa0e2ae();}finally{_0x21c033();}}
1
+ const a103_0x1637a7=a103_0x49aa;(function(_0x33b36c,_0x58d205){const _0x4f4871=a103_0x49aa,_0x2965e7=_0x33b36c();while(!![]){try{const _0x2e702c=-parseInt(_0x4f4871(0xa5))/0x1*(parseInt(_0x4f4871(0xa8))/0x2)+-parseInt(_0x4f4871(0xa3))/0x3+parseInt(_0x4f4871(0xa4))/0x4*(parseInt(_0x4f4871(0xaa))/0x5)+parseInt(_0x4f4871(0x9f))/0x6+-parseInt(_0x4f4871(0xa6))/0x7*(parseInt(_0x4f4871(0xa9))/0x8)+parseInt(_0x4f4871(0xa2))/0x9*(parseInt(_0x4f4871(0xa0))/0xa)+-parseInt(_0x4f4871(0xab))/0xb;if(_0x2e702c===_0x58d205)break;else _0x2965e7['push'](_0x2965e7['shift']());}catch(_0x316d36){_0x2965e7['push'](_0x2965e7['shift']());}}}(a103_0x3d3d,0x1c19e));let tail=Promise[a103_0x1637a7(0xa7)]();function a103_0x49aa(_0x5ee941,_0x3b5b16){_0x5ee941=_0x5ee941-0x9f;const _0x3d3de0=a103_0x3d3d();let _0x49aa75=_0x3d3de0[_0x5ee941];return _0x49aa75;}export async function runSerialized(_0x83863c){const _0x51d853=a103_0x1637a7,_0x356fb2=tail;let _0x54778b;tail=new Promise(_0x2995ab=>{_0x54778b=_0x2995ab;}),await _0x356fb2[_0x51d853(0xa1)](()=>undefined);try{return await _0x83863c();}finally{_0x54778b();}}function a103_0x3d3d(){const _0x3a5582=['407847MSVgkq','8cDAgDi','124JIYNGv','61859ErxGXZ','resolve','62QuCnpi','64kMqlNY','10975HrSLVt','377102DtCDkR','779094tQrVfy','1128170wuOmdy','catch','18HFkAuN'];a103_0x3d3d=function(){return _0x3a5582;};return a103_0x3d3d();}
@@ -1 +1 @@
1
- (function(_0x3d762a,_0x46219a){const _0x392173=a103_0x1e32,_0x539d62=_0x3d762a();while(!![]){try{const _0x28e060=parseInt(_0x392173(0x119))/0x1+-parseInt(_0x392173(0x112))/0x2*(-parseInt(_0x392173(0x11d))/0x3)+-parseInt(_0x392173(0x122))/0x4*(parseInt(_0x392173(0x116))/0x5)+-parseInt(_0x392173(0x120))/0x6+parseInt(_0x392173(0x126))/0x7*(-parseInt(_0x392173(0x11c))/0x8)+parseInt(_0x392173(0x11f))/0x9*(parseInt(_0x392173(0x129))/0xa)+parseInt(_0x392173(0x124))/0xb*(-parseInt(_0x392173(0x115))/0xc);if(_0x28e060===_0x46219a)break;else _0x539d62['push'](_0x539d62['shift']());}catch(_0x4b7142){_0x539d62['push'](_0x539d62['shift']());}}}(a103_0x59a9,0x18c4f));import a103_0x4efbb0 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_0x1e32(_0x3b11bf,_0x570adf){_0x3b11bf=_0x3b11bf-0x112;const _0x59a9fd=a103_0x59a9();let _0x1e3238=_0x59a9fd[_0x3b11bf];return _0x1e3238;}export async function resolveLovrabetInvocation(_0x57978d){const _0x3cfaf1=a103_0x1e32,_0x35dc4e=a103_0x4efbb0('',{'importMeta':import.meta,'argv':_0x57978d,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1a6c73=[..._0x35dc4e['input']],_0x17caea=_0x35dc4e['flags'];await correctFlags(_0x17caea);const _0x4cb6c4=_0x1a6c73[0x0];if(!_0x4cb6c4)throw CliErrors[_0x3cfaf1(0x125)](_0x3cfaf1(0x114));if(!isKnownService(_0x4cb6c4)){const _0x2b9be7=resolveDynamicServiceCommand(_0x1a6c73,_0x17caea);if(!_0x2b9be7)throw CliErrors[_0x3cfaf1(0x113)](_0x1a6c73[_0x3cfaf1(0x121)]('\x20'));return Object['assign'](_0x17caea,_0x2b9be7['flags']),{'definition':_0x2b9be7[_0x3cfaf1(0x11e)],'rawFlags':_0x17caea,'args':_0x2b9be7[_0x3cfaf1(0x117)]};}const _0x51fe6b=getServiceEntry(_0x4cb6c4),_0x49a08b=_0x1a6c73[0x1]||_0x51fe6b[_0x3cfaf1(0x118)];if(!_0x49a08b)throw CliErrors[_0x3cfaf1(0x125)](_0x3cfaf1(0x11a)+_0x4cb6c4+'\x22.');const _0x42ea4d=findDefinition(_0x4cb6c4,_0x49a08b);if(!_0x42ea4d)throw CliErrors[_0x3cfaf1(0x113)](_0x4cb6c4+'\x20'+_0x49a08b);return{'definition':_0x42ea4d,'rawFlags':_0x17caea,'args':_0x1a6c73['slice'](0x2)};}function a103_0x59a9(){const _0x43fbed=['18QbxLAj','42996apVHAH','join','9364YmrjtF','../framework/preparse.js','7997XXjAQN','validation','114947MSEqbp','flags','flatMap','851720nMvkiF','../commands/registry.js','391916mpuWXZ','unknownCommand','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','780yZiEdm','165izERKh','args','defaultCommand','47458wWmGcg','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','assign','88sxQYpe','3UzREvL','definition'];a103_0x59a9=function(){return _0x43fbed;};return a103_0x59a9();}async function correctFlags(_0x5e090b){const _0x598575=a103_0x1e32;try{const {correctFlags:_0x26b387}=await import(_0x598575(0x123)),{getAllDefinitions:_0x812ad7}=await import(_0x598575(0x12a)),_0x46a6eb=_0x812ad7()[_0x598575(0x128)](_0x1659c3=>_0x1659c3[_0x598575(0x127)]??[]),_0x28aa63=_0x26b387(_0x5e090b,_0x46a6eb);Object[_0x598575(0x11b)](_0x5e090b,_0x28aa63[_0x598575(0x127)]);}catch{}}
1
+ (function(_0x579197,_0x5e749c){const _0x10754c=a104_0x9e1f,_0x42537f=_0x579197();while(!![]){try{const _0x70ed04=-parseInt(_0x10754c(0xf7))/0x1+-parseInt(_0x10754c(0xfc))/0x2+parseInt(_0x10754c(0xee))/0x3*(-parseInt(_0x10754c(0xf1))/0x4)+parseInt(_0x10754c(0xfb))/0x5*(parseInt(_0x10754c(0xec))/0x6)+parseInt(_0x10754c(0xfd))/0x7+-parseInt(_0x10754c(0xf9))/0x8+-parseInt(_0x10754c(0xe9))/0x9*(parseInt(_0x10754c(0xff))/0xa);if(_0x70ed04===_0x5e749c)break;else _0x42537f['push'](_0x42537f['shift']());}catch(_0x2a03ad){_0x42537f['push'](_0x42537f['shift']());}}}(a104_0x13b6,0x6dcc9));function a104_0x13b6(){const _0x473d89=['206530VibGOS','4762737xNQGxi','assign','10rsakLn','validation','164196CrUXJA','slice','definition','4241958ubWAOf','args','2799wsIjXs','flags','../commands/registry.js','64EMCIGe','input','defaultCommand','flatMap','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','../framework/preparse.js','142097lgWXRA','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','5272904WrIQpj','unknownCommand','5GarUbr'];a104_0x13b6=function(){return _0x473d89;};return a104_0x13b6();}import a104_0x409de5 from'meow';import{findDefinition,getServiceEntry,isKnownService}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a104_0x9e1f(_0x6223c5,_0x4ece40){_0x6223c5=_0x6223c5-0xe8;const _0x13b68f=a104_0x13b6();let _0x9e1f6b=_0x13b68f[_0x6223c5];return _0x9e1f6b;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x595dd8){const _0x733e7d=a104_0x9e1f,_0xffe00c=a104_0x409de5('',{'importMeta':import.meta,'argv':_0x595dd8,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x505558=[..._0xffe00c[_0x733e7d(0xf2)]],_0x1bbdbb=_0xffe00c['flags'];await correctFlags(_0x1bbdbb);const _0x5534b2=_0x505558[0x0];if(!_0x5534b2)throw CliErrors[_0x733e7d(0xe8)](_0x733e7d(0xf8));if(!isKnownService(_0x5534b2)){const _0x3c5532=resolveDynamicServiceCommand(_0x505558,_0x1bbdbb);if(!_0x3c5532)throw CliErrors['unknownCommand'](_0x505558['join']('\x20'));return Object[_0x733e7d(0xfe)](_0x1bbdbb,_0x3c5532[_0x733e7d(0xef)]),{'definition':_0x3c5532[_0x733e7d(0xeb)],'rawFlags':_0x1bbdbb,'args':_0x3c5532[_0x733e7d(0xed)]};}const _0x49b1dd=getServiceEntry(_0x5534b2),_0x857028=_0x505558[0x1]||_0x49b1dd[_0x733e7d(0xf3)];if(!_0x857028)throw CliErrors[_0x733e7d(0xe8)](_0x733e7d(0xf5)+_0x5534b2+'\x22.');const _0x1b684a=findDefinition(_0x5534b2,_0x857028);if(!_0x1b684a)throw CliErrors[_0x733e7d(0xfa)](_0x5534b2+'\x20'+_0x857028);return{'definition':_0x1b684a,'rawFlags':_0x1bbdbb,'args':_0x505558[_0x733e7d(0xea)](0x2)};}async function correctFlags(_0x4c9e91){const _0x37c993=a104_0x9e1f;try{const {correctFlags:_0x513d58}=await import(_0x37c993(0xf6)),{getAllDefinitions:_0x19363b}=await import(_0x37c993(0xf0)),_0x28053f=_0x19363b()[_0x37c993(0xf4)](_0x4905e4=>_0x4905e4[_0x37c993(0xef)]??[]),_0x4c7dd8=_0x513d58(_0x4c9e91,_0x28053f);Object[_0x37c993(0xfe)](_0x4c9e91,_0x4c7dd8[_0x37c993(0xef)]);}catch{}}
@@ -1 +1 @@
1
- const a105_0x5afbdb=a105_0x2751;(function(_0x40501c,_0x52fde3){const _0x387c2c=a105_0x2751,_0x2ceb31=_0x40501c();while(!![]){try{const _0x2c5a67=parseInt(_0x387c2c(0xa1))/0x1*(parseInt(_0x387c2c(0xac))/0x2)+parseInt(_0x387c2c(0xa7))/0x3*(-parseInt(_0x387c2c(0x9a))/0x4)+parseInt(_0x387c2c(0x9c))/0x5+parseInt(_0x387c2c(0xa4))/0x6*(-parseInt(_0x387c2c(0xa9))/0x7)+-parseInt(_0x387c2c(0xad))/0x8+parseInt(_0x387c2c(0xab))/0x9*(-parseInt(_0x387c2c(0xa6))/0xa)+parseInt(_0x387c2c(0xb1))/0xb;if(_0x2c5a67===_0x52fde3)break;else _0x2ceb31['push'](_0x2ceb31['shift']());}catch(_0x1b551a){_0x2ceb31['push'](_0x2ceb31['shift']());}}}(a105_0x3028,0xbfe7b));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a105_0x284f46}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a105_0x3028(){const _0x338a8b=['pipe','join','inherit','24209471yNVbXS','status','trim','32gRcsEX','toString','7655545TnZMEn','skipNpxSkillsEnvSuffix','exit\x20','npx','stderr','179ngTfoB','stdio','unknown','203124ikvUPq','skills','6690040mVYZco','328029epNqis','stdout','56XdlavN','log','18cxNwaH','2106QewyUB','5206640EzCRck'];a105_0x3028=function(){return _0x338a8b;};return a105_0x3028();}function a105_0x2751(_0x28acf7,_0x56768a){_0x28acf7=_0x28acf7-0x9a;const _0x302882=a105_0x3028();let _0x27511f=_0x302882[_0x28acf7];return _0x27511f;}export const LOVRABET_SKILL_SOURCE=a105_0x284f46;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a105_0x5afbdb(0x9d)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x13669f,_0x4bc6cd=LOVRABET_SKILL_SOURCE,_0x4505db){const _0x50bfa7=a105_0x5afbdb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xd254e=_0x4505db?.[_0x50bfa7(0xa2)]??_0x50bfa7(0xb0),_0x51c05e=resolveNpmBin(_0x50bfa7(0x9f)),_0x16d519=[_0x50bfa7(0xa5),'add',_0x4bc6cd,'-g','-y'],_0x385400=[_0x51c05e,..._0x16d519][_0x50bfa7(0xaf)]('\x20');console[_0x50bfa7(0xaa)]('*\x20'+_0x385400);const _0x7f1d45=spawnSync(_0x51c05e,_0x16d519,{'cwd':_0x13669f,'stdio':_0xd254e,'env':process.env,'shell':![]});if(_0x7f1d45[_0x50bfa7(0xb2)]===0x0)return{'ok':!![],'status':0x0};let _0x1088ea=_0x50bfa7(0x9e)+(_0x7f1d45[_0x50bfa7(0xb2)]??_0x50bfa7(0xa3));if(_0xd254e===_0x50bfa7(0xae)){const _0x1db90e=_0x7f1d45[_0x50bfa7(0xa0)]?_0x7f1d45[_0x50bfa7(0xa0)][_0x50bfa7(0x9b)]()['trim']():'',_0x338ab3=_0x7f1d45[_0x50bfa7(0xa8)]?_0x7f1d45[_0x50bfa7(0xa8)][_0x50bfa7(0x9b)]()[_0x50bfa7(0xb3)]():'';if(_0x1db90e)_0x1088ea=_0x1db90e;else{if(_0x338ab3)_0x1088ea=_0x338ab3;}}return{'ok':![],'status':_0x7f1d45[_0x50bfa7(0xb2)]??null,'error':_0x1088ea};}
1
+ const a106_0x3e724c=a106_0x40d1;(function(_0x193474,_0x528813){const _0x4a9965=a106_0x40d1,_0x423123=_0x193474();while(!![]){try{const _0x1fe258=-parseInt(_0x4a9965(0xa2))/0x1*(-parseInt(_0x4a9965(0x98))/0x2)+parseInt(_0x4a9965(0x9b))/0x3*(parseInt(_0x4a9965(0x9f))/0x4)+-parseInt(_0x4a9965(0xa4))/0x5*(parseInt(_0x4a9965(0x96))/0x6)+-parseInt(_0x4a9965(0x9a))/0x7+parseInt(_0x4a9965(0x94))/0x8+parseInt(_0x4a9965(0xab))/0x9+parseInt(_0x4a9965(0xa3))/0xa*(-parseInt(_0x4a9965(0xa6))/0xb);if(_0x1fe258===_0x528813)break;else _0x423123['push'](_0x423123['shift']());}catch(_0x2540b5){_0x423123['push'](_0x423123['shift']());}}}(a106_0x35db,0x93983));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a106_0x35db(){const _0x2230f7=['skipNpxSkillsEnvSuffix','7855839aVofKK','status','2647360GPLRSf','join','27936VFdxRK','toString','198052auyqhl','stdio','4448087YACZFY','39QBbIwW','stdout','npx','trim','42572zHpWtp','stderr','inherit','7QbqTma','8800tmLGqF','770BqnINU','unknown','979JXvCfn','exit\x20','skills','log'];a106_0x35db=function(){return _0x2230f7;};return a106_0x35db();}import{LOVRABET_SKILL_SOURCE as a106_0x1810df}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a106_0x40d1(_0x75a62a,_0x516fe6){_0x75a62a=_0x75a62a-0x93;const _0x35db1a=a106_0x35db();let _0x40d1b1=_0x35db1a[_0x75a62a];return _0x40d1b1;}export const LOVRABET_SKILL_SOURCE=a106_0x1810df;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a106_0x3e724c(0xaa)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x287b6c,_0x9beac=LOVRABET_SKILL_SOURCE,_0x164586){const _0x5d72c3=a106_0x3e724c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4e6a5e=_0x164586?.[_0x5d72c3(0x99)]??_0x5d72c3(0xa1),_0xbb8483=resolveNpmBin(_0x5d72c3(0x9d)),_0x57cc28=[_0x5d72c3(0xa8),'add',_0x9beac,'-g','-y'],_0x55ca5b=[_0xbb8483,..._0x57cc28][_0x5d72c3(0x95)]('\x20');console[_0x5d72c3(0xa9)]('*\x20'+_0x55ca5b);const _0xb93dc6=spawnSync(_0xbb8483,_0x57cc28,{'cwd':_0x287b6c,'stdio':_0x4e6a5e,'env':process.env,'shell':![]});if(_0xb93dc6[_0x5d72c3(0x93)]===0x0)return{'ok':!![],'status':0x0};let _0x1395ae=_0x5d72c3(0xa7)+(_0xb93dc6[_0x5d72c3(0x93)]??_0x5d72c3(0xa5));if(_0x4e6a5e==='pipe'){const _0x23c398=_0xb93dc6[_0x5d72c3(0xa0)]?_0xb93dc6[_0x5d72c3(0xa0)][_0x5d72c3(0x97)]()[_0x5d72c3(0x9e)]():'',_0x4f5d2c=_0xb93dc6['stdout']?_0xb93dc6[_0x5d72c3(0x9c)][_0x5d72c3(0x97)]()[_0x5d72c3(0x9e)]():'';if(_0x23c398)_0x1395ae=_0x23c398;else{if(_0x4f5d2c)_0x1395ae=_0x4f5d2c;}}return{'ok':![],'status':_0xb93dc6[_0x5d72c3(0x93)]??null,'error':_0x1395ae};}
@@ -1 +1 @@
1
- const a106_0x362440=a106_0x26dc;(function(_0x478a8e,_0x24e7d1){const _0x1cf52b=a106_0x26dc,_0x4af8ad=_0x478a8e();while(!![]){try{const _0xd96dd8=parseInt(_0x1cf52b(0x85))/0x1*(parseInt(_0x1cf52b(0x88))/0x2)+parseInt(_0x1cf52b(0x83))/0x3*(parseInt(_0x1cf52b(0x81))/0x4)+parseInt(_0x1cf52b(0x8c))/0x5+-parseInt(_0x1cf52b(0x8e))/0x6+-parseInt(_0x1cf52b(0x8f))/0x7+-parseInt(_0x1cf52b(0x80))/0x8+-parseInt(_0x1cf52b(0x87))/0x9*(-parseInt(_0x1cf52b(0x92))/0xa);if(_0xd96dd8===_0x24e7d1)break;else _0x4af8ad['push'](_0x4af8ad['shift']());}catch(_0x3504cf){_0x4af8ad['push'](_0x4af8ad['shift']());}}}(a106_0xff9a,0xd975a));export const METADATA_FILE=a106_0x362440(0x7f);export const SKILL_FILE=a106_0x362440(0x8b);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a106_0x362440(0x86)]);function a106_0x26dc(_0x166308,_0x5989f6){_0x166308=_0x166308-0x7f;const _0xff9ab9=a106_0xff9a();let _0x26dcc0=_0xff9ab9[_0x166308];return _0x26dcc0;}function a106_0xff9a(){const _0x2f76d8=['51436Dijzyn','.DS_Store','234irNSsJ','44dOliYk','.svn','.next','SKILL.md','5506030IUobau','.cache','5668938goyUXR','323946QqJKmF','build','.turbo','214670nmLBme','.hg','lovrabet.skill.json','13005928jsnOjw','1776vfaTPK','.git','4842EpwKhp','coverage'];a106_0xff9a=function(){return _0x2f76d8;};return a106_0xff9a();}export const IGNORED_DIR_NAMES=new Set([a106_0x362440(0x82),a106_0x362440(0x93),a106_0x362440(0x89),'node_modules',a106_0x362440(0x8a),'dist',a106_0x362440(0x90),a106_0x362440(0x84),a106_0x362440(0x91),a106_0x362440(0x8d)]);
1
+ const a107_0x3ff452=a107_0x5680;(function(_0x218d26,_0x163410){const _0x1f6b87=a107_0x5680,_0x48f903=_0x218d26();while(!![]){try{const _0x2ac65e=parseInt(_0x1f6b87(0x1c5))/0x1*(-parseInt(_0x1f6b87(0x1c7))/0x2)+parseInt(_0x1f6b87(0x1c2))/0x3*(-parseInt(_0x1f6b87(0x1c0))/0x4)+-parseInt(_0x1f6b87(0x1c1))/0x5*(parseInt(_0x1f6b87(0x1b9))/0x6)+-parseInt(_0x1f6b87(0x1bf))/0x7+parseInt(_0x1f6b87(0x1c9))/0x8+-parseInt(_0x1f6b87(0x1c3))/0x9*(-parseInt(_0x1f6b87(0x1c4))/0xa)+parseInt(_0x1f6b87(0x1b8))/0xb;if(_0x2ac65e===_0x163410)break;else _0x48f903['push'](_0x48f903['shift']());}catch(_0x29ee37){_0x48f903['push'](_0x48f903['shift']());}}}(a107_0x3554,0x2d49e));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE='SKILL.md';function a107_0x5680(_0x12c6fa,_0x560e0b){_0x12c6fa=_0x12c6fa-0x1b6;const _0x35540b=a107_0x3554();let _0x5680d5=_0x35540b[_0x12c6fa];return _0x5680d5;}function a107_0x3554(){const _0x454430=['2oqxFpV','build','1211400liGNVS','.hg','.svn','3502598dLdkfq','30aqWwXV','coverage','node_modules','dist','.DS_Store','.git','1328943NLDrWq','16572NrqZbZ','57710fKwbXB','117QnryFQ','2451033ffTopW','10lskDbw','147542xUyPxi','.next'];a107_0x3554=function(){return _0x454430;};return a107_0x3554();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a107_0x3ff452(0x1bd)]);export const IGNORED_DIR_NAMES=new Set([a107_0x3ff452(0x1be),a107_0x3ff452(0x1b6),a107_0x3ff452(0x1b7),a107_0x3ff452(0x1bb),a107_0x3ff452(0x1c6),a107_0x3ff452(0x1bc),a107_0x3ff452(0x1c8),a107_0x3ff452(0x1ba),'.turbo','.cache']);
@@ -1 +1 @@
1
- (function(_0x1f5744,_0x1a797e){const _0x3b17a7=a107_0x382c,_0x3f26e1=_0x1f5744();while(!![]){try{const _0x4f7a0a=parseInt(_0x3b17a7(0x9d))/0x1*(-parseInt(_0x3b17a7(0x91))/0x2)+-parseInt(_0x3b17a7(0x90))/0x3+parseInt(_0x3b17a7(0x92))/0x4*(-parseInt(_0x3b17a7(0x8f))/0x5)+-parseInt(_0x3b17a7(0x97))/0x6+parseInt(_0x3b17a7(0x9b))/0x7*(-parseInt(_0x3b17a7(0x98))/0x8)+parseInt(_0x3b17a7(0x99))/0x9*(parseInt(_0x3b17a7(0x96))/0xa)+parseInt(_0x3b17a7(0x9a))/0xb;if(_0x4f7a0a===_0x1a797e)break;else _0x3f26e1['push'](_0x3f26e1['shift']());}catch(_0x50cfae){_0x3f26e1['push'](_0x3f26e1['shift']());}}}(a107_0x2182,0x59f5d));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(_0x1eef8d,_0x43002b){const _0x14cc79=a107_0x382c,_0x5e0357=normalizeSkillRelativePath(_0x43002b),_0x797551=realOrResolved(_0x1eef8d),_0x1a9403=resolve(_0x797551,..._0x5e0357[_0x14cc79(0x9f)]('/'));if(!isPathInside(_0x1a9403,_0x797551))throw CliErrors[_0x14cc79(0x9e)](_0x14cc79(0x93)+_0x43002b);return ensureNoSymlinkInManagedPath(_0x797551,_0x5e0357),_0x1a9403;}export function ensureNoSymlinkInManagedPath(_0x80e68c,_0x316d9f){const _0x52d9a6=a107_0x382c;let _0x49dcec=_0x80e68c;for(const _0x551546 of _0x316d9f['split']('/')){_0x49dcec=resolve(_0x49dcec,_0x551546);const _0x4aee3a=lstatIfPresent(_0x49dcec);if(_0x4aee3a?.[_0x52d9a6(0x94)]())throw CliErrors[_0x52d9a6(0x9e)](_0x52d9a6(0x9c)+_0x316d9f);}}export function isDanglingSymlink(_0x10d7d0){const _0x124290=a107_0x382c;try{return lstatSync(_0x10d7d0)[_0x124290(0x94)]();}catch{return![];}}export function resolveSymlinkTarget(_0x564edb){const _0x14f024=readlinkSync(_0x564edb);return isAbsolute(_0x14f024)?_0x14f024:resolve(dirname(_0x564edb),_0x14f024);}export function isPathInside(_0x337867,_0x38ef05){const _0x109c83=a107_0x382c,_0x256a41=_0x337867[_0x109c83(0x8c)](sep)?_0x337867:''+_0x337867+sep,_0x2e4f0b=_0x38ef05['endsWith'](sep)?_0x38ef05:''+_0x38ef05+sep;return _0x337867===_0x38ef05||_0x256a41[_0x109c83(0x95)](_0x2e4f0b);}export function realOrResolved(_0x40a322){try{return realpathSync(_0x40a322);}catch{return resolve(_0x40a322);}}function a107_0x2182(){const _0x145807=['1482366IExhzN','8UsdjqC','52866mfsfgJ','23606000hYdWgw','3461745zOZpMJ','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','2pqBQMX','validation','split','utf8','endsWith','stringify','.tmp','5QWDKaG','1153584AHHBQt','659278nEiUWF','1895156NBOSgN','Unsafe\x20Skill\x20file\x20path:\x20','isSymbolicLink','startsWith','820rCjvew'];a107_0x2182=function(){return _0x145807;};return a107_0x2182();}export function lstatIfPresent(_0x26eb7e){try{return lstatSync(_0x26eb7e);}catch{return undefined;}}export function writeTextAtomic(_0x3d09a3,_0x488a7c,_0x1c58e7){const _0x2b3391=a107_0x382c;writeBytesAtomic(_0x3d09a3,Buffer['from'](_0x488a7c,_0x2b3391(0xa0)),_0x1c58e7);}function a107_0x382c(_0x328932,_0x3e4222){_0x328932=_0x328932-0x8c;const _0x21827e=a107_0x2182();let _0x382c5b=_0x21827e[_0x328932];return _0x382c5b;}export function writeBytesAtomic(_0x5275bd,_0x4aaf83,_0x276e82){const _0x5365b8=a107_0x382c,_0x436db4=_0x5275bd+_0x5365b8(0x8e);try{writeFileSync(_0x436db4,_0x4aaf83,{'mode':_0x276e82}),renameSync(_0x436db4,_0x5275bd);}catch(_0x57d13a){try{rmSync(_0x436db4,{'force':!![]});}catch{}throw _0x57d13a;}}export function writeJsonAtomic(_0x3984f3,_0x43d79b){const _0x399f73=a107_0x382c;writeTextAtomic(_0x3984f3,JSON[_0x399f73(0x8d)](_0x43d79b,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x147bbb,_0x2a2595){const _0xc2793e=a108_0x471c,_0x914119=_0x147bbb();while(!![]){try{const _0x4c6c5b=-parseInt(_0xc2793e(0xbd))/0x1+-parseInt(_0xc2793e(0xb9))/0x2+parseInt(_0xc2793e(0xbb))/0x3+-parseInt(_0xc2793e(0xb1))/0x4+-parseInt(_0xc2793e(0xbc))/0x5+parseInt(_0xc2793e(0xb2))/0x6*(parseInt(_0xc2793e(0xb7))/0x7)+parseInt(_0xc2793e(0xb4))/0x8*(parseInt(_0xc2793e(0xbf))/0x9);if(_0x4c6c5b===_0x2a2595)break;else _0x914119['push'](_0x914119['shift']());}catch(_0x46c388){_0x914119['push'](_0x914119['shift']());}}}(a108_0x20e6,0x60ea9));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(_0xf0f6f6,_0xc178ec){const _0x420a50=a108_0x471c,_0x59b400=normalizeSkillRelativePath(_0xc178ec),_0x2e9421=realOrResolved(_0xf0f6f6),_0x187be4=resolve(_0x2e9421,..._0x59b400[_0x420a50(0xb6)]('/'));if(!isPathInside(_0x187be4,_0x2e9421))throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0xc178ec);return ensureNoSymlinkInManagedPath(_0x2e9421,_0x59b400),_0x187be4;}function a108_0x471c(_0x3505bf,_0x517543){_0x3505bf=_0x3505bf-0xb0;const _0x20e6ab=a108_0x20e6();let _0x471c6e=_0x20e6ab[_0x3505bf];return _0x471c6e;}export function ensureNoSymlinkInManagedPath(_0x4946fc,_0x46c85e){const _0x52cdd4=a108_0x471c;let _0x493bc2=_0x4946fc;for(const _0x5a06a3 of _0x46c85e['split']('/')){_0x493bc2=resolve(_0x493bc2,_0x5a06a3);const _0x83ea6a=lstatIfPresent(_0x493bc2);if(_0x83ea6a?.['isSymbolicLink']())throw CliErrors['validation'](_0x52cdd4(0xb8)+_0x46c85e);}}export function isDanglingSymlink(_0x2aac57){const _0x178662=a108_0x471c;try{return lstatSync(_0x2aac57)[_0x178662(0xb0)]();}catch{return![];}}export function resolveSymlinkTarget(_0x5003a9){const _0x2a0c02=readlinkSync(_0x5003a9);return isAbsolute(_0x2a0c02)?_0x2a0c02:resolve(dirname(_0x5003a9),_0x2a0c02);}export function isPathInside(_0x74630f,_0x410f5b){const _0x2c640d=a108_0x471c,_0xdb5430=_0x74630f[_0x2c640d(0xbe)](sep)?_0x74630f:''+_0x74630f+sep,_0x1e45d9=_0x410f5b[_0x2c640d(0xbe)](sep)?_0x410f5b:''+_0x410f5b+sep;return _0x74630f===_0x410f5b||_0xdb5430['startsWith'](_0x1e45d9);}export function realOrResolved(_0x327eda){try{return realpathSync(_0x327eda);}catch{return resolve(_0x327eda);}}function a108_0x20e6(){const _0x2606ad=['utf8','split','2316727FzqdET','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','390838tCfbiP','stringify','927495DGJviW','861455aTnceh','793704msuths','endsWith','36CCuzhY','isSymbolicLink','2610412uOQXzI','6cVlIxm','.tmp','3141720cxUSff'];a108_0x20e6=function(){return _0x2606ad;};return a108_0x20e6();}export function lstatIfPresent(_0x278d77){try{return lstatSync(_0x278d77);}catch{return undefined;}}export function writeTextAtomic(_0x1bfdab,_0x6bf5ee,_0x42166e){const _0x3c5d30=a108_0x471c;writeBytesAtomic(_0x1bfdab,Buffer['from'](_0x6bf5ee,_0x3c5d30(0xb5)),_0x42166e);}export function writeBytesAtomic(_0x4955be,_0x3b6b7e,_0x32885f){const _0x453f50=a108_0x471c,_0x1fc772=_0x4955be+_0x453f50(0xb3);try{writeFileSync(_0x1fc772,_0x3b6b7e,{'mode':_0x32885f}),renameSync(_0x1fc772,_0x4955be);}catch(_0xfe6f9b){try{rmSync(_0x1fc772,{'force':!![]});}catch{}throw _0xfe6f9b;}}export function writeJsonAtomic(_0x192bc,_0x2dfd4a){const _0x43db11=a108_0x471c;writeTextAtomic(_0x192bc,JSON[_0x43db11(0xba)](_0x2dfd4a,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x33e24b,_0x572dd9){const _0x12db50=a108_0x5865,_0x4a9e33=_0x33e24b();while(!![]){try{const _0x16b235=parseInt(_0x12db50(0x1e7))/0x1+-parseInt(_0x12db50(0x1eb))/0x2*(parseInt(_0x12db50(0x1e5))/0x3)+parseInt(_0x12db50(0x1e4))/0x4+-parseInt(_0x12db50(0x1ea))/0x5*(parseInt(_0x12db50(0x1ed))/0x6)+-parseInt(_0x12db50(0x1e3))/0x7+parseInt(_0x12db50(0x1e9))/0x8+-parseInt(_0x12db50(0x1e8))/0x9;if(_0x16b235===_0x572dd9)break;else _0x4a9e33['push'](_0x4a9e33['shift']());}catch(_0x142f04){_0x4a9e33['push'](_0x4a9e33['shift']());}}}(a108_0x43b3,0x9f3c9));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a108_0x5865(_0x159f1c,_0x394b59){_0x159f1c=_0x159f1c-0x1e1;const _0x43b35c=a108_0x43b3();let _0x5865d1=_0x43b35c[_0x159f1c];return _0x5865d1;}function a108_0x43b3(){const _0x94df06=['sha256','574020xuLbaM','657126HDgoer','3935264fQNAos','5kyYdkC','84978zFqKot','hex','1534398oEQojW','update','digest','4179735GTxCDC','3578232rkByum','27mDyDpT'];a108_0x43b3=function(){return _0x94df06;};return a108_0x43b3();}export function contentHash(_0x35d5c1){const _0x2b72da=a108_0x5865;return createHash(_0x2b72da(0x1e6))[_0x2b72da(0x1e1)](_0x35d5c1)['digest']('hex');}export function fileHash(_0x54877f){return bufferSha256(fileContent(_0x54877f));}export function bufferSha256(_0x4a39cb){const _0x4339d3=a108_0x5865;return createHash('sha256')[_0x4339d3(0x1e1)](_0x4a39cb)[_0x4339d3(0x1e2)](_0x4339d3(0x1ec));}export function fileTreeHash(_0x3b2dff){const _0x39b22c=a108_0x5865,_0x472088=createHash(_0x39b22c(0x1e6));for(const _0x20ffae of normalizeManifestFiles(_0x3b2dff)){_0x472088['update'](_0x20ffae['path']),_0x472088[_0x39b22c(0x1e1)]('\x00'),_0x472088[_0x39b22c(0x1e1)](_0x20ffae['sha256']),_0x472088[_0x39b22c(0x1e1)]('\x00'),_0x472088[_0x39b22c(0x1e1)](String(_0x20ffae['size'])),_0x472088[_0x39b22c(0x1e1)]('\x00');}return _0x472088['digest'](_0x39b22c(0x1ec));}
1
+ (function(_0x5e9beb,_0x38e9f8){const _0x2de973=a109_0x1e13,_0x5aa117=_0x5e9beb();while(!![]){try{const _0x4cfefd=parseInt(_0x2de973(0xf9))/0x1*(-parseInt(_0x2de973(0xf3))/0x2)+parseInt(_0x2de973(0xf0))/0x3+-parseInt(_0x2de973(0xf8))/0x4*(parseInt(_0x2de973(0xfc))/0x5)+-parseInt(_0x2de973(0xf1))/0x6+-parseInt(_0x2de973(0xf4))/0x7+parseInt(_0x2de973(0xec))/0x8*(parseInt(_0x2de973(0xef))/0x9)+-parseInt(_0x2de973(0xf7))/0xa*(-parseInt(_0x2de973(0xf2))/0xb);if(_0x4cfefd===_0x38e9f8)break;else _0x5aa117['push'](_0x5aa117['shift']());}catch(_0x27d2ad){_0x5aa117['push'](_0x5aa117['shift']());}}}(a109_0x56b8,0xa8369));import{createHash}from'node:crypto';function a109_0x1e13(_0x4711fe,_0x78be24){_0x4711fe=_0x4711fe-0xec;const _0x56b8f9=a109_0x56b8();let _0x1e1396=_0x56b8f9[_0x4711fe];return _0x1e1396;}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x4961b9){const _0x45828e=a109_0x1e13;return createHash(_0x45828e(0xfa))['update'](_0x4961b9)['digest'](_0x45828e(0xed));}export function fileHash(_0x5d09b9){return bufferSha256(fileContent(_0x5d09b9));}export function bufferSha256(_0xc4cd57){const _0xed665=a109_0x1e13;return createHash(_0xed665(0xfa))[_0xed665(0xf5)](_0xc4cd57)[_0xed665(0xf6)](_0xed665(0xed));}export function fileTreeHash(_0x1f3e5b){const _0x103810=a109_0x1e13,_0x359e6d=createHash(_0x103810(0xfa));for(const _0x41ddb7 of normalizeManifestFiles(_0x1f3e5b)){_0x359e6d[_0x103810(0xf5)](_0x41ddb7[_0x103810(0xfb)]),_0x359e6d[_0x103810(0xf5)]('\x00'),_0x359e6d['update'](_0x41ddb7[_0x103810(0xfa)]),_0x359e6d[_0x103810(0xf5)]('\x00'),_0x359e6d['update'](String(_0x41ddb7[_0x103810(0xee)])),_0x359e6d[_0x103810(0xf5)]('\x00');}return _0x359e6d[_0x103810(0xf6)](_0x103810(0xed));}function a109_0x56b8(){const _0x381a5d=['325QsANDj','48FXkfFP','hex','size','871362uKMgCn','431694LzcFUD','4091040uOpdGr','1716539KkgXKQ','9956aVicKQ','8701791VzEKCF','update','digest','190AHUYZn','44452zayJLl','71pfmKaE','sha256','path'];a109_0x56b8=function(){return _0x381a5d;};return a109_0x56b8();}
@@ -1 +1 @@
1
- function a109_0x152d(){const _0xc2de0a=['2678070BEpEPw','928590hHQCUZ','global','skills','110664hmJMsD','8lKYLFg','869127gqQqay','34ZMPHxF','.agents','44bJfSdC','9BlYxKW','project','freeze','appCode','6pLQfet','cwd','211408nintvX','18986phzegD','73540VMaZRJ'];a109_0x152d=function(){return _0xc2de0a;};return a109_0x152d();}function a109_0x4e2d(_0x165572,_0x26871c){_0x165572=_0x165572-0x171;const _0x152de1=a109_0x152d();let _0x4e2d82=_0x152de1[_0x165572];return _0x4e2d82;}const a109_0x1c23d6=a109_0x4e2d;(function(_0x1a7588,_0xa36050){const _0x194985=a109_0x4e2d,_0x523c18=_0x1a7588();while(!![]){try{const _0x1ad14f=parseInt(_0x194985(0x180))/0x1*(parseInt(_0x194985(0x177))/0x2)+parseInt(_0x194985(0x17a))/0x3+-parseInt(_0x194985(0x176))/0x4+-parseInt(_0x194985(0x178))/0x5*(-parseInt(_0x194985(0x174))/0x6)+parseInt(_0x194985(0x17f))/0x7*(-parseInt(_0x194985(0x17e))/0x8)+parseInt(_0x194985(0x183))/0x9*(-parseInt(_0x194985(0x179))/0xa)+parseInt(_0x194985(0x182))/0xb*(-parseInt(_0x194985(0x17d))/0xc);if(_0x1ad14f===_0xa36050)break;else _0x523c18['push'](_0x523c18['shift']());}catch(_0x557378){_0x523c18['push'](_0x523c18['shift']());}}}(a109_0x152d,0x285ac));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x4b9462,_0x179df8=a109_0x1c23d6(0x17b),_0x5e2b11={}){const _0x5997f4=a109_0x1c23d6,_0x546b84=resolveSkillSyncPaths(_0x5e2b11),_0x56d00f=safePathSegment(_0x4b9462,_0x5997f4(0x173)),_0x163c93=_0x179df8===_0x5997f4(0x171)?[resolve(_0x5e2b11['cwd']??process[_0x5997f4(0x175)](),_0x5997f4(0x181),_0x5997f4(0x17c))]:runtimeAgentSkillRoots(_0x546b84);return Object[_0x5997f4(0x172)]({'scope':_0x179df8,'appCode':_0x56d00f,'skillRoots':Object['freeze'](_0x163c93),'managedRoot':_0x546b84['managedRoot']});}
1
+ const a110_0x3ebd46=a110_0x33e9;function a110_0x2a65(){const _0x57605c=['44sUkAbi','28518216HhydUN','.agents','global','10413930UrcYMm','3824VUogEJ','6722325xsaPjK','cwd','5201430cRssKS','624147myLIyA','skills','11SXEavk','8SdBtwe','freeze','6yApoTD','33388rCphKQ','7126iZQWpY'];a110_0x2a65=function(){return _0x57605c;};return a110_0x2a65();}(function(_0x45b650,_0x57cb8a){const _0x3bfb1b=a110_0x33e9,_0x34772c=_0x45b650();while(!![]){try{const _0xce9e97=parseInt(_0x3bfb1b(0x140))/0x1*(parseInt(_0x3bfb1b(0x13e))/0x2)+-parseInt(_0x3bfb1b(0x149))/0x3*(-parseInt(_0x3bfb1b(0x14c))/0x4)+parseInt(_0x3bfb1b(0x148))/0x5*(parseInt(_0x3bfb1b(0x14e))/0x6)+parseInt(_0x3bfb1b(0x13f))/0x7*(parseInt(_0x3bfb1b(0x145))/0x8)+-parseInt(_0x3bfb1b(0x146))/0x9+parseInt(_0x3bfb1b(0x144))/0xa+parseInt(_0x3bfb1b(0x14b))/0xb*(-parseInt(_0x3bfb1b(0x141))/0xc);if(_0xce9e97===_0x57cb8a)break;else _0x34772c['push'](_0x34772c['shift']());}catch(_0x37d50f){_0x34772c['push'](_0x34772c['shift']());}}}(a110_0x2a65,0x91612));function a110_0x33e9(_0x4a01b9,_0x4fa126){_0x4a01b9=_0x4a01b9-0x13e;const _0x2a65cf=a110_0x2a65();let _0x33e945=_0x2a65cf[_0x4a01b9];return _0x33e945;}import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x16cbac,_0xa08f40=a110_0x3ebd46(0x143),_0x310447={}){const _0x2d9617=a110_0x3ebd46,_0x392038=resolveSkillSyncPaths(_0x310447),_0x57e182=safePathSegment(_0x16cbac,'appCode'),_0x460fa5=_0xa08f40==='project'?[resolve(_0x310447[_0x2d9617(0x147)]??process['cwd'](),_0x2d9617(0x142),_0x2d9617(0x14a))]:runtimeAgentSkillRoots(_0x392038);return Object[_0x2d9617(0x14d)]({'scope':_0xa08f40,'appCode':_0x57e182,'skillRoots':Object[_0x2d9617(0x14d)](_0x460fa5),'managedRoot':_0x392038['managedRoot']});}
@@ -1 +1 @@
1
- const a110_0x185668=a110_0x40bd;(function(_0x1a487a,_0x108bbe){const _0x17fb5b=a110_0x40bd,_0x3a12f5=_0x1a487a();while(!![]){try{const _0x5c436a=-parseInt(_0x17fb5b(0x129))/0x1+parseInt(_0x17fb5b(0x142))/0x2*(-parseInt(_0x17fb5b(0x130))/0x3)+parseInt(_0x17fb5b(0x126))/0x4+parseInt(_0x17fb5b(0x14c))/0x5+-parseInt(_0x17fb5b(0x12d))/0x6*(parseInt(_0x17fb5b(0x154))/0x7)+parseInt(_0x17fb5b(0x14d))/0x8*(-parseInt(_0x17fb5b(0x156))/0x9)+parseInt(_0x17fb5b(0x148))/0xa;if(_0x5c436a===_0x108bbe)break;else _0x3a12f5['push'](_0x3a12f5['shift']());}catch(_0x54fd0e){_0x3a12f5['push'](_0x3a12f5['shift']());}}}(a110_0x182c,0x91f1c));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a110_0x3af542 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';function a110_0x40bd(_0x358a8e,_0x1ea09c){_0x358a8e=_0x358a8e-0x11c;const _0x182ccb=a110_0x182c();let _0x40bdaa=_0x182ccb[_0x358a8e];return _0x40bdaa;}import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a110_0x3af542,RESERVED_PROJECT_SKILL_CODES=new Set(['lovrabet',a110_0x185668(0x151),a110_0x185668(0x135)]);export function linkEffectiveRuntimeSkills(_0xbeb975,_0x4ea438){const _0x1585e7=a110_0x185668,_0x59d9be=new Map();for(const _0x1eccf8 of _0xbeb975){const _0xe80cdc=_0x1eccf8[_0x1585e7(0x137)][_0x1585e7(0x11c)];if(!_0xe80cdc)continue;const _0xada14e=_0x59d9be[_0x1585e7(0x125)](_0xe80cdc);(!_0xada14e||_0x1eccf8[_0x1585e7(0x13f)]===_0x1585e7(0x128))&&_0x59d9be[_0x1585e7(0x13a)](_0xe80cdc,_0x1eccf8);}const _0x1674c2=[];for(const _0x5bde56 of _0x59d9be[_0x1585e7(0x11f)]()){const _0x438713=requireSkillCode(_0x5bde56[_0x1585e7(0x137)]),_0x3b27aa=readMetadataIfPresent(_0x5bde56[_0x1585e7(0x12f)]);if(_0x3b27aa?.[_0x1585e7(0x141)]!==_0x4ea438[_0x1585e7(0x141)]||_0x3b27aa[_0x1585e7(0x11c)]!==_0x438713)throw CliErrors['validation'](_0x1585e7(0x136)+_0x4ea438['appCode']+':\x20'+_0x5bde56[_0x1585e7(0x12f)]);const _0x1375ac=runtimeSkillLinkName(_0x4ea438,_0x438713);for(const _0x3e21f7 of _0x4ea438[_0x1585e7(0x158)]){_0x1674c2[_0x1585e7(0x138)](ensureManagedSymlink(resolve(_0x3e21f7,_0x1375ac),_0x5bde56[_0x1585e7(0x13b)],_0x4ea438,_0x438713));}}return _0x1674c2;}export function pruneStaleRuntimeSkillLinks(_0xd6cda,_0x465fca,_0x4c2553){const _0x5d3224=a110_0x185668,_0x272878=new Set([..._0x465fca][_0x5d3224(0x124)](_0x2033f2=>_0x2033f2[_0x5d3224(0x12c)]())[_0x5d3224(0x143)](Boolean)),_0x40b529=_0x4c2553?new Set([..._0x4c2553][_0x5d3224(0x124)](_0x1f5562=>_0x1f5562[_0x5d3224(0x12c)]())[_0x5d3224(0x143)](Boolean)):undefined,_0x9b8f2b=[];for(const _0x5d0d76 of _0xd6cda[_0x5d3224(0x158)]){for(const _0x1f6702 of managedTargetSkillLinkPaths(_0x5d0d76,_0xd6cda)){const _0x51eba4=runtimeSkillCodeFromLink(_0xd6cda,_0x1f6702);if(_0x40b529&&!_0x40b529[_0x5d3224(0x121)](_0x51eba4))continue;if(_0x272878[_0x5d3224(0x121)](_0x51eba4))continue;_0x9b8f2b[_0x5d3224(0x138)](removeManagedSkillLink(_0x1f6702,_0xd6cda,_0x51eba4));}}return _0x9b8f2b;}export function pruneStaleRuntimeSkillCache(_0x3abfcf,_0x2d06fa={}){const _0x46f295=a110_0x185668,_0x130da3=new Set([..._0x3abfcf[_0x46f295(0x152)]][_0x46f295(0x124)](_0x56ea75=>_0x56ea75[_0x46f295(0x12c)]())[_0x46f295(0x143)](Boolean)),_0x30f689=_0x3abfcf['pruneSkillCodes']?new Set([..._0x3abfcf[_0x46f295(0x11e)]][_0x46f295(0x124)](_0x33c04e=>_0x33c04e[_0x46f295(0x12c)]())[_0x46f295(0x143)](Boolean)):undefined,_0x3685d5=_0x3abfcf[_0x46f295(0x150)]??[_0x46f295(0x128),_0x46f295(0x139)],_0x4bfa3e=resolve(getRuntimeSkillCacheRoot(_0x3abfcf[_0x46f295(0x155)],_0x3abfcf[_0x46f295(0x123)],_0x2d06fa),safePathSegment(_0x3abfcf[_0x46f295(0x141)],_0x46f295(0x141))),_0x6ae138=[];for(const _0x2ee1f8 of _0x3685d5){const _0x18b123=resolve(_0x4bfa3e,_0x2ee1f8);if(!existsSync(_0x18b123))continue;for(const _0xbc701 of readdirSync(_0x18b123,{'withFileTypes':!![]})){if(!_0xbc701[_0x46f295(0x12e)]())continue;const _0x351aa6=_0xbc701[_0x46f295(0x13d)];if(_0x30f689&&!_0x30f689['has'](_0x351aa6))continue;if(_0x130da3[_0x46f295(0x121)](_0x351aa6))continue;const _0x48c073=resolve(_0x18b123,_0x351aa6),_0x4ee874=readMetadataIfPresent(resolve(_0x48c073,METADATA_FILE));if(_0x4ee874?.[_0x46f295(0x141)]!==_0x3abfcf[_0x46f295(0x141)]||_0x4ee874['scope']!==_0x2ee1f8||_0x4ee874[_0x46f295(0x11c)]!==_0x351aa6){_0x6ae138['push']({'path':_0x48c073,'action':_0x46f295(0x12a),'reason':_0x46f295(0x122)});continue;}if(isLinkedFromAnyRoot(_0x48c073,_0x3abfcf['protectedLinkRoots']??[])){_0x6ae138[_0x46f295(0x138)]({'path':_0x48c073,'action':'skipped','reason':'linked-from-protected-root'});continue;}removeSync(_0x48c073),_0x6ae138[_0x46f295(0x138)]({'path':_0x48c073,'action':_0x46f295(0x11d)});}}return _0x6ae138;}export function linkGlobalRuntimeSkills(_0x17edd8,_0x1c6879={}){const _0xe91443=a110_0x185668,_0x83cd65=resolveSkillSyncPaths(_0x1c6879),_0x157e2e=[];for(const _0x5524ab of _0x17edd8){if(_0x5524ab[_0xe91443(0x13f)]!==_0xe91443(0x153))throw CliErrors[_0xe91443(0x132)](_0xe91443(0x140)+_0x5524ab[_0xe91443(0x13f)]);const _0x2a8b35=requireSkillCode(_0x5524ab[_0xe91443(0x137)]),_0x42d32b=copyManagedSkillDirectory(_0x5524ab['dir'],resolve(_0x83cd65[_0xe91443(0x120)],_0x2a8b35));_0x157e2e[_0xe91443(0x138)]({..._0x42d32b,'contentHash':_0x5524ab[_0xe91443(0x144)]});}return _0x157e2e;}function ensureManagedSymlink(_0xaaed64,_0x23ddd1,_0xfecbb9,_0x5cad27){const _0x2601b2=a110_0x185668;mkdirSync(dirname(_0xaaed64),{'recursive':!![],'mode':0x1c0});if(existsSync(_0xaaed64)||isDanglingSymlink(_0xaaed64)){const _0x473edc=lstatSync(_0xaaed64);if(!_0x473edc[_0x2601b2(0x14a)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0xaaed64);const _0x3b0e3d=resolveSymlinkTarget(_0xaaed64);if(!isPathInside(realOrResolved(_0x3b0e3d),realOrResolved(_0xfecbb9[_0x2601b2(0x127)])))throw CliErrors['validation'](_0x2601b2(0x131)+_0xaaed64);if(realOrResolved(_0x3b0e3d)===realOrResolved(_0x23ddd1))return{'path':_0xaaed64,'target':_0x23ddd1,'action':_0x2601b2(0x14e)};const _0x4be7d7=readMetadataIfPresent(resolve(_0x3b0e3d,METADATA_FILE));if(_0xfecbb9[_0x2601b2(0x13f)]===_0x2601b2(0x146)&&(_0x4be7d7?.[_0x2601b2(0x141)]!==_0xfecbb9[_0x2601b2(0x141)]||_0x4be7d7[_0x2601b2(0x11c)]!==_0x5cad27))throw CliErrors[_0x2601b2(0x132)](_0x2601b2(0x14f)+_0xaaed64);return unlinkSync(_0xaaed64),symlinkSync(_0x23ddd1,_0xaaed64,'dir'),{'path':_0xaaed64,'target':_0x23ddd1,'action':_0x2601b2(0x145)};}return symlinkSync(_0x23ddd1,_0xaaed64,_0x2601b2(0x13b)),{'path':_0xaaed64,'target':_0x23ddd1,'action':'created'};}function a110_0x182c(){const _0x43d7e4=['metadataPath','69ilCTuC','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','validation','created','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','secret-retriever','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','skill','push','company','set','dir','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','name','not-managed-symlink','scope','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','appCode','34794yClher','filter','contentHash','updated','project','length','4281890rBailG','startsWith','isSymbolicLink','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','2463580lxFZYZ','8gdxpIr','unchanged','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','scopes','runtime-observe','activeSkillCodes','builtin','44653BrnziA','env','1515222yDujUD','slice','skillRoots','skillCode','removed','pruneSkillCodes','values','agentsSkillsDir','has','metadata-mismatch','accessKey','map','get','1844492UCIEEk','managedRoot','personal','145582rdMjKO','skipped','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','trim','66cLlJAC','isDirectory'];a110_0x182c=function(){return _0x43d7e4;};return a110_0x182c();}function managedTargetSkillLinkPaths(_0x5c4f45,_0x56a343){const _0xc6773a=a110_0x185668;if(!existsSync(_0x5c4f45))return[];const _0x237602=_0x56a343[_0xc6773a(0x141)]+'--';return readdirSync(_0x5c4f45,{'withFileTypes':!![]})[_0xc6773a(0x143)](_0x135976=>_0x56a343['scope']===_0xc6773a(0x146)||_0x135976[_0xc6773a(0x13d)][_0xc6773a(0x149)](_0x237602))['map'](_0x3bd38a=>resolve(_0x5c4f45,_0x3bd38a[_0xc6773a(0x13d)]));}function removeManagedSkillLink(_0x344a94,_0x2d5a0e,_0x528a43){const _0x3f9fbe=a110_0x185668,_0x1bb16e=lstatIfPresent(_0x344a94);if(!_0x1bb16e?.[_0x3f9fbe(0x14a)]())return{'path':_0x344a94,'action':_0x3f9fbe(0x12a),'reason':_0x3f9fbe(0x13e)};const _0x2f6476=resolveSymlinkTarget(_0x344a94);if(!isPathInside(realOrResolved(_0x2f6476),realOrResolved(_0x2d5a0e[_0x3f9fbe(0x127)])))return{'path':_0x344a94,'action':_0x3f9fbe(0x12a),'reason':'external-symlink'};const _0x1cb36e=readMetadataIfPresent(resolve(_0x2f6476,METADATA_FILE));if(_0x2d5a0e[_0x3f9fbe(0x13f)]===_0x3f9fbe(0x146)&&(_0x1cb36e?.[_0x3f9fbe(0x141)]!==_0x2d5a0e[_0x3f9fbe(0x141)]||_0x1cb36e[_0x3f9fbe(0x11c)]!==_0x528a43))return{'path':_0x344a94,'action':_0x3f9fbe(0x12a),'reason':_0x3f9fbe(0x122)};return unlinkSync(_0x344a94),{'path':_0x344a94,'action':_0x3f9fbe(0x11d)};}function isLinkedFromAnyRoot(_0x17b965,_0x2a2b44){const _0x307116=a110_0x185668,_0x223168=realOrResolved(_0x17b965);for(const _0x47bc9c of _0x2a2b44){if(!existsSync(_0x47bc9c))continue;for(const _0xb2ae4a of readdirSync(_0x47bc9c,{'withFileTypes':!![]})){if(!_0xb2ae4a[_0x307116(0x14a)]())continue;const _0x1ec5b8=resolve(_0x47bc9c,_0xb2ae4a['name']);if(realOrResolved(resolveSymlinkTarget(_0x1ec5b8))===_0x223168)return!![];}}return![];}function runtimeSkillLinkName(_0x383a49,_0x474836){const _0x1c5c4e=a110_0x185668,_0x36226d=safePathSegment(_0x474836,'skillCode');if(_0x383a49[_0x1c5c4e(0x13f)]===_0x1c5c4e(0x146)&&RESERVED_PROJECT_SKILL_CODES[_0x1c5c4e(0x121)](_0x36226d))throw CliErrors[_0x1c5c4e(0x132)](_0x1c5c4e(0x12b)+_0x36226d);return _0x383a49['scope']==='project'?_0x36226d:_0x383a49[_0x1c5c4e(0x141)]+'--'+_0x36226d;}function runtimeSkillCodeFromLink(_0x5d598f,_0x48dd2e){const _0x3e8f49=a110_0x185668,_0x18336b=basename(_0x48dd2e);return _0x5d598f[_0x3e8f49(0x13f)]===_0x3e8f49(0x146)?_0x18336b:_0x18336b[_0x3e8f49(0x157)]((_0x5d598f[_0x3e8f49(0x141)]+'--')[_0x3e8f49(0x147)]);}export function copyManagedSkillDirectory(_0x22d07c,_0x4534f8){const _0x17e58e=a110_0x185668,_0x1bf506=resolve(_0x4534f8,METADATA_FILE),_0x2ea003=existsSync(_0x4534f8);if(_0x2ea003){const _0x3fdd0a=lstatSync(_0x4534f8);if(_0x3fdd0a[_0x17e58e(0x14a)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x4534f8);if(!_0x3fdd0a[_0x17e58e(0x12e)]())throw CliErrors[_0x17e58e(0x132)](_0x17e58e(0x13c)+_0x4534f8);const _0x45f01d=readMetadataIfPresent(_0x1bf506);if(_0x45f01d?.[_0x17e58e(0x13f)]!=='builtin')throw CliErrors[_0x17e58e(0x132)](_0x17e58e(0x14b)+_0x4534f8);}ensureDirSync(dirname(_0x4534f8));const _0x207a19=_0x2ea003?readMetadataIfPresent(_0x1bf506)?.[_0x17e58e(0x144)]:undefined,_0x4f9eee=readMetadataIfPresent(resolve(_0x22d07c,METADATA_FILE))?.[_0x17e58e(0x144)];return _0x2ea003&&removeSync(_0x4534f8),copySkillDirectory(_0x22d07c,_0x4534f8),{'path':_0x4534f8,'target':_0x22d07c,'action':!_0x2ea003?_0x17e58e(0x133):_0x207a19===_0x4f9eee?_0x17e58e(0x14e):_0x17e58e(0x145)};}function copySkillDirectory(_0x104bcc,_0x255253){copySync(_0x104bcc,_0x255253,{'dereference':![],'overwrite':!![],'filter'(_0x1d1128){const _0x4d6719=a110_0x40bd;if(lstatSync(_0x1d1128)[_0x4d6719(0x14a)]())throw CliErrors[_0x4d6719(0x132)](_0x4d6719(0x134)+_0x1d1128);return!![];}});}
1
+ const a111_0x4f2c16=a111_0x3a4b;function a111_0x48f1(){const _0xb95e75=['Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','skipped','validation','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','696enRaph','removed','skillCode','631264KPKLkE','trim','metadataPath','3044328iedShN','appCode','isDirectory','agentsSkillsDir','activeSkillCodes','linked-from-protected-root','lovrabet','project','accessKey','pruneSkillCodes','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','skill','protectedLinkRoots','values','external-symlink','metadata-mismatch','4rxRxJn','created','has','dir','isSymbolicLink','unchanged','19736343FffrRk','filter','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','map','push','updated','scopes','name','managedRoot','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','scope','slice','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','runtime-observe','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','contentHash','env','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','1091311yyDXrW','set','2053090ZmfQSp','builtin','personal','length','get','secret-retriever','1653BiXonp','6476130fDKDVo','startsWith'];a111_0x48f1=function(){return _0xb95e75;};return a111_0x48f1();}(function(_0x31b91e,_0x4de220){const _0x5ea6a6=a111_0x3a4b,_0x311963=_0x31b91e();while(!![]){try{const _0x285fa2=parseInt(_0x5ea6a6(0x117))/0x1+parseInt(_0x5ea6a6(0x126))/0x2*(-parseInt(_0x5ea6a6(0x11f))/0x3)+parseInt(_0x5ea6a6(0x13c))/0x4*(parseInt(_0x5ea6a6(0x119))/0x5)+parseInt(_0x5ea6a6(0x120))/0x6+parseInt(_0x5ea6a6(0x12c))/0x7+-parseInt(_0x5ea6a6(0x129))/0x8+-parseInt(_0x5ea6a6(0x142))/0x9;if(_0x285fa2===_0x4de220)break;else _0x311963['push'](_0x311963['shift']());}catch(_0x3bee62){_0x311963['push'](_0x311963['shift']());}}}(a111_0x48f1,0x86e9d));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a111_0x343c5c 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 a111_0x3a4b(_0x5dca4e,_0x81ba10){_0x5dca4e=_0x5dca4e-0x106;const _0x48f1e1=a111_0x48f1();let _0x3a4b53=_0x48f1e1[_0x5dca4e];return _0x3a4b53;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a111_0x343c5c,RESERVED_PROJECT_SKILL_CODES=new Set([a111_0x4f2c16(0x132),a111_0x4f2c16(0x112),a111_0x4f2c16(0x11e)]);export function linkEffectiveRuntimeSkills(_0x3e8bfc,_0x3d4631){const _0x156237=a111_0x4f2c16,_0x3eb284=new Map();for(const _0x29d216 of _0x3e8bfc){const _0x3899e5=_0x29d216[_0x156237(0x137)]['skillCode'];if(!_0x3899e5)continue;const _0x146335=_0x3eb284[_0x156237(0x11d)](_0x3899e5);(!_0x146335||_0x29d216[_0x156237(0x10f)]===_0x156237(0x11b))&&_0x3eb284[_0x156237(0x118)](_0x3899e5,_0x29d216);}const _0x593f3f=[];for(const _0x493924 of _0x3eb284[_0x156237(0x139)]()){const _0x6e0653=requireSkillCode(_0x493924['skill']),_0x19e999=readMetadataIfPresent(_0x493924[_0x156237(0x12b)]);if(_0x19e999?.[_0x156237(0x12d)]!==_0x3d4631[_0x156237(0x12d)]||_0x19e999[_0x156237(0x128)]!==_0x6e0653)throw CliErrors[_0x156237(0x124)](_0x156237(0x122)+_0x3d4631[_0x156237(0x12d)]+':\x20'+_0x493924['metadataPath']);const _0x43f7af=runtimeSkillLinkName(_0x3d4631,_0x6e0653);for(const _0x4681a6 of _0x3d4631['skillRoots']){_0x593f3f[_0x156237(0x109)](ensureManagedSymlink(resolve(_0x4681a6,_0x43f7af),_0x493924[_0x156237(0x13f)],_0x3d4631,_0x6e0653));}}return _0x593f3f;}export function pruneStaleRuntimeSkillLinks(_0x451c32,_0x18a321,_0x1d75e4){const _0x261189=a111_0x4f2c16,_0x1dbde2=new Set([..._0x18a321]['map'](_0x46958b=>_0x46958b[_0x261189(0x12a)]())[_0x261189(0x106)](Boolean)),_0x23d163=_0x1d75e4?new Set([..._0x1d75e4]['map'](_0x39c5f7=>_0x39c5f7[_0x261189(0x12a)]())[_0x261189(0x106)](Boolean)):undefined,_0x5a9b0e=[];for(const _0x1dd6e0 of _0x451c32['skillRoots']){for(const _0x1a3a52 of managedTargetSkillLinkPaths(_0x1dd6e0,_0x451c32)){const _0x2011dd=runtimeSkillCodeFromLink(_0x451c32,_0x1a3a52);if(_0x23d163&&!_0x23d163[_0x261189(0x13e)](_0x2011dd))continue;if(_0x1dbde2[_0x261189(0x13e)](_0x2011dd))continue;_0x5a9b0e[_0x261189(0x109)](removeManagedSkillLink(_0x1a3a52,_0x451c32,_0x2011dd));}}return _0x5a9b0e;}export function pruneStaleRuntimeSkillCache(_0x172a34,_0x270dd3={}){const _0x4f94e7=a111_0x4f2c16,_0x7bf64d=new Set([..._0x172a34[_0x4f94e7(0x130)]][_0x4f94e7(0x108)](_0x3d2b5d=>_0x3d2b5d['trim']())[_0x4f94e7(0x106)](Boolean)),_0x170450=_0x172a34['pruneSkillCodes']?new Set([..._0x172a34[_0x4f94e7(0x135)]][_0x4f94e7(0x108)](_0x16d7fa=>_0x16d7fa[_0x4f94e7(0x12a)]())[_0x4f94e7(0x106)](Boolean)):undefined,_0x2fc0b9=_0x172a34[_0x4f94e7(0x10b)]??['personal','company'],_0x16136b=resolve(getRuntimeSkillCacheRoot(_0x172a34[_0x4f94e7(0x115)],_0x172a34[_0x4f94e7(0x134)],_0x270dd3),safePathSegment(_0x172a34['appCode'],_0x4f94e7(0x12d))),_0x523a9c=[];for(const _0x2e3e19 of _0x2fc0b9){const _0x414b2b=resolve(_0x16136b,_0x2e3e19);if(!existsSync(_0x414b2b))continue;for(const _0x512ae1 of readdirSync(_0x414b2b,{'withFileTypes':!![]})){if(!_0x512ae1[_0x4f94e7(0x12e)]())continue;const _0x12ec24=_0x512ae1['name'];if(_0x170450&&!_0x170450['has'](_0x12ec24))continue;if(_0x7bf64d[_0x4f94e7(0x13e)](_0x12ec24))continue;const _0x29a443=resolve(_0x414b2b,_0x12ec24),_0x58ddaa=readMetadataIfPresent(resolve(_0x29a443,METADATA_FILE));if(_0x58ddaa?.[_0x4f94e7(0x12d)]!==_0x172a34[_0x4f94e7(0x12d)]||_0x58ddaa['scope']!==_0x2e3e19||_0x58ddaa[_0x4f94e7(0x128)]!==_0x12ec24){_0x523a9c[_0x4f94e7(0x109)]({'path':_0x29a443,'action':_0x4f94e7(0x123),'reason':_0x4f94e7(0x13b)});continue;}if(isLinkedFromAnyRoot(_0x29a443,_0x172a34[_0x4f94e7(0x138)]??[])){_0x523a9c[_0x4f94e7(0x109)]({'path':_0x29a443,'action':_0x4f94e7(0x123),'reason':_0x4f94e7(0x131)});continue;}removeSync(_0x29a443),_0x523a9c[_0x4f94e7(0x109)]({'path':_0x29a443,'action':'removed'});}}return _0x523a9c;}export function linkGlobalRuntimeSkills(_0x30fd7b,_0x5db20d={}){const _0x1f352b=a111_0x4f2c16,_0x1ad368=resolveSkillSyncPaths(_0x5db20d),_0x15ba60=[];for(const _0x2a56f7 of _0x30fd7b){if(_0x2a56f7[_0x1f352b(0x10f)]!=='builtin')throw CliErrors[_0x1f352b(0x124)](_0x1f352b(0x116)+_0x2a56f7[_0x1f352b(0x10f)]);const _0xf842e3=requireSkillCode(_0x2a56f7[_0x1f352b(0x137)]),_0x16744a=copyManagedSkillDirectory(_0x2a56f7[_0x1f352b(0x13f)],resolve(_0x1ad368[_0x1f352b(0x12f)],_0xf842e3));_0x15ba60[_0x1f352b(0x109)]({..._0x16744a,'contentHash':_0x2a56f7[_0x1f352b(0x114)]});}return _0x15ba60;}function ensureManagedSymlink(_0x37bdd1,_0x566ac0,_0x695322,_0x1eb911){const _0x29062a=a111_0x4f2c16;mkdirSync(dirname(_0x37bdd1),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x37bdd1)||isDanglingSymlink(_0x37bdd1)){const _0x1ff5bd=lstatSync(_0x37bdd1);if(!_0x1ff5bd['isSymbolicLink']())throw CliErrors[_0x29062a(0x124)](_0x29062a(0x113)+_0x37bdd1);const _0x54ca04=resolveSymlinkTarget(_0x37bdd1);if(!isPathInside(realOrResolved(_0x54ca04),realOrResolved(_0x695322[_0x29062a(0x10d)])))throw CliErrors[_0x29062a(0x124)](_0x29062a(0x136)+_0x37bdd1);if(realOrResolved(_0x54ca04)===realOrResolved(_0x566ac0))return{'path':_0x37bdd1,'target':_0x566ac0,'action':_0x29062a(0x141)};const _0x5be9d2=readMetadataIfPresent(resolve(_0x54ca04,METADATA_FILE));if(_0x695322[_0x29062a(0x10f)]===_0x29062a(0x133)&&(_0x5be9d2?.[_0x29062a(0x12d)]!==_0x695322[_0x29062a(0x12d)]||_0x5be9d2[_0x29062a(0x128)]!==_0x1eb911))throw CliErrors['validation'](_0x29062a(0x10e)+_0x37bdd1);return unlinkSync(_0x37bdd1),symlinkSync(_0x566ac0,_0x37bdd1,_0x29062a(0x13f)),{'path':_0x37bdd1,'target':_0x566ac0,'action':_0x29062a(0x10a)};}return symlinkSync(_0x566ac0,_0x37bdd1,_0x29062a(0x13f)),{'path':_0x37bdd1,'target':_0x566ac0,'action':_0x29062a(0x13d)};}function managedTargetSkillLinkPaths(_0xb7a8d7,_0x46f390){const _0x352eb8=a111_0x4f2c16;if(!existsSync(_0xb7a8d7))return[];const _0x4f05ff=_0x46f390[_0x352eb8(0x12d)]+'--';return readdirSync(_0xb7a8d7,{'withFileTypes':!![]})[_0x352eb8(0x106)](_0x1b8122=>_0x46f390['scope']==='project'||_0x1b8122[_0x352eb8(0x10c)][_0x352eb8(0x121)](_0x4f05ff))['map'](_0xdff138=>resolve(_0xb7a8d7,_0xdff138[_0x352eb8(0x10c)]));}function removeManagedSkillLink(_0x349971,_0x1a1eba,_0x57e56e){const _0x3f1cae=a111_0x4f2c16,_0x1f851c=lstatIfPresent(_0x349971);if(!_0x1f851c?.[_0x3f1cae(0x140)]())return{'path':_0x349971,'action':_0x3f1cae(0x123),'reason':'not-managed-symlink'};const _0x308a0d=resolveSymlinkTarget(_0x349971);if(!isPathInside(realOrResolved(_0x308a0d),realOrResolved(_0x1a1eba['managedRoot'])))return{'path':_0x349971,'action':_0x3f1cae(0x123),'reason':_0x3f1cae(0x13a)};const _0x5883a2=readMetadataIfPresent(resolve(_0x308a0d,METADATA_FILE));if(_0x1a1eba['scope']==='project'&&(_0x5883a2?.[_0x3f1cae(0x12d)]!==_0x1a1eba[_0x3f1cae(0x12d)]||_0x5883a2[_0x3f1cae(0x128)]!==_0x57e56e))return{'path':_0x349971,'action':_0x3f1cae(0x123),'reason':'metadata-mismatch'};return unlinkSync(_0x349971),{'path':_0x349971,'action':_0x3f1cae(0x127)};}function isLinkedFromAnyRoot(_0x39d375,_0xeb2e9b){const _0x24be15=a111_0x4f2c16,_0x432649=realOrResolved(_0x39d375);for(const _0x31b9af of _0xeb2e9b){if(!existsSync(_0x31b9af))continue;for(const _0x12b556 of readdirSync(_0x31b9af,{'withFileTypes':!![]})){if(!_0x12b556[_0x24be15(0x140)]())continue;const _0x4fdff2=resolve(_0x31b9af,_0x12b556[_0x24be15(0x10c)]);if(realOrResolved(resolveSymlinkTarget(_0x4fdff2))===_0x432649)return!![];}}return![];}function runtimeSkillLinkName(_0x11a579,_0xadf1b9){const _0x398f52=a111_0x4f2c16,_0x154c17=safePathSegment(_0xadf1b9,_0x398f52(0x128));if(_0x11a579[_0x398f52(0x10f)]===_0x398f52(0x133)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x154c17))throw CliErrors['validation'](_0x398f52(0x125)+_0x154c17);return _0x11a579[_0x398f52(0x10f)]===_0x398f52(0x133)?_0x154c17:_0x11a579['appCode']+'--'+_0x154c17;}function runtimeSkillCodeFromLink(_0x130a62,_0x4b54a9){const _0x440b8d=a111_0x4f2c16,_0x24c360=basename(_0x4b54a9);return _0x130a62[_0x440b8d(0x10f)]===_0x440b8d(0x133)?_0x24c360:_0x24c360[_0x440b8d(0x110)]((_0x130a62[_0x440b8d(0x12d)]+'--')[_0x440b8d(0x11c)]);}export function copyManagedSkillDirectory(_0x18c076,_0x53bc72){const _0x2b65a3=a111_0x4f2c16,_0x50aa97=resolve(_0x53bc72,METADATA_FILE),_0x425094=existsSync(_0x53bc72);if(_0x425094){const _0x46e414=lstatSync(_0x53bc72);if(_0x46e414[_0x2b65a3(0x140)]())throw CliErrors[_0x2b65a3(0x124)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x53bc72);if(!_0x46e414['isDirectory']())throw CliErrors[_0x2b65a3(0x124)](_0x2b65a3(0x111)+_0x53bc72);const _0x3fec6c=readMetadataIfPresent(_0x50aa97);if(_0x3fec6c?.[_0x2b65a3(0x10f)]!==_0x2b65a3(0x11a))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x53bc72);}ensureDirSync(dirname(_0x53bc72));const _0x2c8fe1=_0x425094?readMetadataIfPresent(_0x50aa97)?.['contentHash']:undefined,_0x2906fc=readMetadataIfPresent(resolve(_0x18c076,METADATA_FILE))?.[_0x2b65a3(0x114)];return _0x425094&&removeSync(_0x53bc72),copySkillDirectory(_0x18c076,_0x53bc72),{'path':_0x53bc72,'target':_0x18c076,'action':!_0x425094?_0x2b65a3(0x13d):_0x2c8fe1===_0x2906fc?_0x2b65a3(0x141):_0x2b65a3(0x10a)};}function copySkillDirectory(_0x29d038,_0x25d097){copySync(_0x29d038,_0x25d097,{'dereference':![],'overwrite':!![],'filter'(_0x145e45){const _0x208b6b=a111_0x3a4b;if(lstatSync(_0x145e45)[_0x208b6b(0x140)]())throw CliErrors['validation'](_0x208b6b(0x107)+_0x145e45);return!![];}});}
@@ -1 +1 @@
1
- function a111_0x5dec(_0x166146,_0x4039fa){_0x166146=_0x166146-0x11c;const _0x72be82=a111_0x72be();let _0x5dec1d=_0x72be82[_0x166146];return _0x5dec1d;}(function(_0x287f2a,_0x55f3dd){const _0xad82f2=a111_0x5dec,_0x32b7fe=_0x287f2a();while(!![]){try{const _0x5db843=-parseInt(_0xad82f2(0x11d))/0x1*(parseInt(_0xad82f2(0x134))/0x2)+parseInt(_0xad82f2(0x138))/0x3+-parseInt(_0xad82f2(0x11e))/0x4*(parseInt(_0xad82f2(0x12a))/0x5)+parseInt(_0xad82f2(0x13e))/0x6*(parseInt(_0xad82f2(0x145))/0x7)+-parseInt(_0xad82f2(0x125))/0x8+-parseInt(_0xad82f2(0x126))/0x9*(parseInt(_0xad82f2(0x133))/0xa)+parseInt(_0xad82f2(0x11f))/0xb;if(_0x5db843===_0x55f3dd)break;else _0x32b7fe['push'](_0x32b7fe['shift']());}catch(_0x15e278){_0x32b7fe['push'](_0x32b7fe['shift']());}}}(a111_0x72be,0x5ff87));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';function a111_0x72be(){const _0x9c4b64=['2272336DDEPpm','9ChhvKx','\x20!=\x20','scopes','startsWith','156230qKkGZz','project','dir','isDirectory','isSymbolicLink','has','code','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','source','4087190ZuKMfe','9486SkKcGg','cache','isArray','linkedPath','818955mVirvK','set','validation','skillCode','localeCompare','sort','27954VKkoSx','get','metadataPath','skillMdPath','scope','filter','name','1148YGKkxb','linkedPaths','trim','tags','cacheDir','skillRoots','includes','104sUhJxh','76KVrpya','12493151FgPhOo','accessKey','from','map','env','appCode'];a111_0x72be=function(){return _0x9c4b64;};return a111_0x72be();}export function listLocalRuntimeSkills(_0x28e4ff,_0x33d602,_0x13c535={}){const _0x37e5db=a111_0x5dec,_0x8742f=safePathSegment(_0x28e4ff[_0x37e5db(0x124)],_0x37e5db(0x124));if(_0x33d602[_0x37e5db(0x124)]!==_0x8742f)throw CliErrors[_0x37e5db(0x13a)](_0x37e5db(0x131)+_0x33d602[_0x37e5db(0x124)]+_0x37e5db(0x127)+_0x8742f);const _0x51d334=normalizeRuntimeSkillScopes(_0x28e4ff[_0x37e5db(0x128)]),_0x5104f9=new Set(_0x51d334),_0xc94097=_0x28e4ff[_0x37e5db(0x130)]?.[_0x37e5db(0x147)](),_0x1f692e=new Map(),_0x7dbe7f=resolve(getRuntimeSkillCacheRoot(_0x28e4ff[_0x37e5db(0x123)],_0x28e4ff[_0x37e5db(0x120)],_0x13c535),_0x8742f);for(const _0x5b8a9d of _0x51d334){for(const _0x29ccb1 of localSkillEntryDirs(resolve(_0x7dbe7f,_0x5b8a9d))){collectLocalRuntimeSkill(_0x1f692e,_0x29ccb1,{'appCode':_0x8742f,'scopes':_0x5104f9,'code':_0xc94097,'source':_0x37e5db(0x135)});}}for(const _0x192a49 of _0x33d602[_0x37e5db(0x14a)]){for(const _0x251667 of localSkillLinkCandidates(_0x192a49,_0x33d602,_0x5104f9)){collectLocalRuntimeSkill(_0x1f692e,_0x251667,{'appCode':_0x8742f,'scopes':_0x5104f9,'code':_0xc94097,'source':'link','linkedPath':_0x251667});}}return Array[_0x37e5db(0x121)](_0x1f692e['values']())[_0x37e5db(0x13d)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x35b469){const _0x5d223e=a111_0x5dec;if(!existsSync(_0x35b469))return[];return readdirSync(_0x35b469,{'withFileTypes':!![]})[_0x5d223e(0x143)](_0xe4a1e6=>_0xe4a1e6[_0x5d223e(0x12d)]()||_0xe4a1e6[_0x5d223e(0x12e)]())['map'](_0x5799e0=>resolve(_0x35b469,_0x5799e0[_0x5d223e(0x144)]));}function localSkillLinkCandidates(_0x2db791,_0x4e27c2,_0xac97e0){const _0x132120=a111_0x5dec;if(!existsSync(_0x2db791))return[];const _0x51334b=_0x4e27c2[_0x132120(0x124)]+'--';return readdirSync(_0x2db791,{'withFileTypes':!![]})[_0x132120(0x143)](_0x4091e1=>_0x4091e1[_0x132120(0x12d)]()||_0x4091e1[_0x132120(0x12e)]())[_0x132120(0x143)](_0x24ce80=>_0x4e27c2['scope']===_0x132120(0x12b)||_0x24ce80[_0x132120(0x144)][_0x132120(0x129)](_0x51334b)||_0xac97e0[_0x132120(0x12f)]('builtin'))[_0x132120(0x122)](_0x564c82=>resolve(_0x2db791,_0x564c82['name']));}function collectLocalRuntimeSkill(_0x530969,_0x6d3c4,_0x4ec717){const _0x4044dc=a111_0x5dec,_0x205d6a=resolve(_0x6d3c4,METADATA_FILE),_0x424fb3=readMetadataIfPresent(_0x205d6a);if(!_0x424fb3)return;if(_0x424fb3[_0x4044dc(0x124)]!==_0x4ec717['appCode'])return;if(!isRuntimeSkillScope(_0x424fb3[_0x4044dc(0x142)])||!_0x4ec717[_0x4044dc(0x128)][_0x4044dc(0x12f)](_0x424fb3[_0x4044dc(0x142)]))return;const _0x4f6099=_0x424fb3[_0x4044dc(0x13b)]?.[_0x4044dc(0x147)]();if(!_0x4f6099)return;if(_0x4ec717[_0x4044dc(0x130)]&&_0x4f6099!==_0x4ec717['code'])return;const _0x2ff338=_0x424fb3['scope']+':'+_0x4f6099,_0xbcc333=_0x4ec717[_0x4044dc(0x137)]?[_0x4ec717['linkedPath']]:[],_0x7fd6b8=_0x530969[_0x4044dc(0x13f)](_0x2ff338);if(_0x7fd6b8){_0x4ec717[_0x4044dc(0x132)]==='cache'&&(_0x7fd6b8['dir']=_0x6d3c4,_0x7fd6b8[_0x4044dc(0x149)]=_0x6d3c4,_0x7fd6b8[_0x4044dc(0x141)]=resolve(_0x6d3c4,SKILL_FILE),_0x7fd6b8[_0x4044dc(0x140)]=_0x205d6a);for(const _0x11f4cf of _0xbcc333){!_0x7fd6b8[_0x4044dc(0x146)][_0x4044dc(0x11c)](_0x11f4cf)&&_0x7fd6b8[_0x4044dc(0x146)]['push'](_0x11f4cf);}_0x7fd6b8['linkedPaths']['sort']();return;}_0x530969[_0x4044dc(0x139)](_0x2ff338,{..._0x424fb3,'tags':Array[_0x4044dc(0x136)](_0x424fb3[_0x4044dc(0x148)])?_0x424fb3['tags']:[],'scope':_0x424fb3[_0x4044dc(0x142)],'source':'local','dir':_0x6d3c4,'cacheDir':_0x4ec717[_0x4044dc(0x132)]==='cache'?_0x6d3c4:undefined,'skillMdPath':resolve(_0x6d3c4,SKILL_FILE),'metadataPath':_0x205d6a,'linkedPaths':_0xbcc333});}function compareLocalRuntimeSkills(_0x1c7776,_0x380144){const _0x40da7a=a111_0x5dec,_0x1f1dae={'personal':0x0,'company':0x1,'builtin':0x2};return _0x1f1dae[_0x1c7776[_0x40da7a(0x142)]]-_0x1f1dae[_0x380144['scope']]||_0x1c7776[_0x40da7a(0x13b)]['localeCompare'](_0x380144[_0x40da7a(0x13b)])||_0x1c7776[_0x40da7a(0x12c)][_0x40da7a(0x13c)](_0x380144[_0x40da7a(0x12c)]);}
1
+ (function(_0x421343,_0x44fdb8){const _0x1a6960=a112_0x19e5,_0x49153e=_0x421343();while(!![]){try{const _0x5adfad=-parseInt(_0x1a6960(0x14a))/0x1+parseInt(_0x1a6960(0x135))/0x2*(parseInt(_0x1a6960(0x147))/0x3)+parseInt(_0x1a6960(0x146))/0x4*(-parseInt(_0x1a6960(0x150))/0x5)+-parseInt(_0x1a6960(0x149))/0x6+-parseInt(_0x1a6960(0x140))/0x7*(parseInt(_0x1a6960(0x141))/0x8)+parseInt(_0x1a6960(0x145))/0x9+parseInt(_0x1a6960(0x14b))/0xa;if(_0x5adfad===_0x44fdb8)break;else _0x49153e['push'](_0x49153e['shift']());}catch(_0x531c9a){_0x49153e['push'](_0x49153e['shift']());}}}(a112_0x1de1,0x67bf1));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';function a112_0x19e5(_0x3d38e8,_0x222669){_0x3d38e8=_0x3d38e8-0x12f;const _0x1de153=a112_0x1de1();let _0x19e5c9=_0x1de153[_0x3d38e8];return _0x19e5c9;}import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x533a4f,_0x2bdd8e,_0x394a5a={}){const _0x2829ef=a112_0x19e5,_0x23406a=safePathSegment(_0x533a4f[_0x2829ef(0x137)],_0x2829ef(0x137));if(_0x2bdd8e[_0x2829ef(0x137)]!==_0x23406a)throw CliErrors[_0x2829ef(0x132)](_0x2829ef(0x142)+_0x2bdd8e[_0x2829ef(0x137)]+'\x20!=\x20'+_0x23406a);const _0x2bd500=normalizeRuntimeSkillScopes(_0x533a4f[_0x2829ef(0x13e)]),_0x5b40b9=new Set(_0x2bd500),_0x1e7a94=_0x533a4f[_0x2829ef(0x155)]?.[_0x2829ef(0x153)](),_0x143f2b=new Map(),_0x11c7cc=resolve(getRuntimeSkillCacheRoot(_0x533a4f[_0x2829ef(0x136)],_0x533a4f[_0x2829ef(0x152)],_0x394a5a),_0x23406a);for(const _0x3504c8 of _0x2bd500){for(const _0x1d55c9 of localSkillEntryDirs(resolve(_0x11c7cc,_0x3504c8))){collectLocalRuntimeSkill(_0x143f2b,_0x1d55c9,{'appCode':_0x23406a,'scopes':_0x5b40b9,'code':_0x1e7a94,'source':'cache'});}}for(const _0x4708c7 of _0x2bdd8e[_0x2829ef(0x144)]){for(const _0xd9968c of localSkillLinkCandidates(_0x4708c7,_0x2bdd8e,_0x5b40b9)){collectLocalRuntimeSkill(_0x143f2b,_0xd9968c,{'appCode':_0x23406a,'scopes':_0x5b40b9,'code':_0x1e7a94,'source':'link','linkedPath':_0xd9968c});}}return Array['from'](_0x143f2b[_0x2829ef(0x133)]())[_0x2829ef(0x12f)](compareLocalRuntimeSkills);}function a112_0x1de1(){const _0xf9c370=['cache','sort','get','has','validation','values','startsWith','2etaKWy','env','appCode','linkedPath','skillCode','localeCompare','metadataPath','builtin','tags','scopes','name','91mUebLN','114344FHepJZ','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','isDirectory','skillRoots','5320008BIHttU','7528JWypYj','1582605FtwUDq','filter','3590238ErVGjz','519865MEyQRv','14421890OIOObP','includes','dir','project','source','2210ndXKvs','linkedPaths','accessKey','trim','push','code','isSymbolicLink','skillMdPath','isArray','scope'];a112_0x1de1=function(){return _0xf9c370;};return a112_0x1de1();}function localSkillEntryDirs(_0x176596){const _0x5d718c=a112_0x19e5;if(!existsSync(_0x176596))return[];return readdirSync(_0x176596,{'withFileTypes':!![]})[_0x5d718c(0x148)](_0x3b8b62=>_0x3b8b62['isDirectory']()||_0x3b8b62[_0x5d718c(0x156)]())['map'](_0x100fb3=>resolve(_0x176596,_0x100fb3[_0x5d718c(0x13f)]));}function localSkillLinkCandidates(_0x38a3be,_0x1d5fc2,_0x5693d5){const _0x2deaae=a112_0x19e5;if(!existsSync(_0x38a3be))return[];const _0x1d8cbd=_0x1d5fc2[_0x2deaae(0x137)]+'--';return readdirSync(_0x38a3be,{'withFileTypes':!![]})[_0x2deaae(0x148)](_0x4d7061=>_0x4d7061[_0x2deaae(0x143)]()||_0x4d7061[_0x2deaae(0x156)]())[_0x2deaae(0x148)](_0x311d22=>_0x1d5fc2[_0x2deaae(0x159)]===_0x2deaae(0x14e)||_0x311d22[_0x2deaae(0x13f)][_0x2deaae(0x134)](_0x1d8cbd)||_0x5693d5['has'](_0x2deaae(0x13c)))['map'](_0xedb5e8=>resolve(_0x38a3be,_0xedb5e8[_0x2deaae(0x13f)]));}function collectLocalRuntimeSkill(_0xa4b593,_0x121ab8,_0x3dbf13){const _0x114022=a112_0x19e5,_0x2fc9d5=resolve(_0x121ab8,METADATA_FILE),_0x5c4485=readMetadataIfPresent(_0x2fc9d5);if(!_0x5c4485)return;if(_0x5c4485['appCode']!==_0x3dbf13[_0x114022(0x137)])return;if(!isRuntimeSkillScope(_0x5c4485[_0x114022(0x159)])||!_0x3dbf13[_0x114022(0x13e)][_0x114022(0x131)](_0x5c4485[_0x114022(0x159)]))return;const _0x1d497a=_0x5c4485['skillCode']?.[_0x114022(0x153)]();if(!_0x1d497a)return;if(_0x3dbf13[_0x114022(0x155)]&&_0x1d497a!==_0x3dbf13[_0x114022(0x155)])return;const _0x3f2bc5=_0x5c4485[_0x114022(0x159)]+':'+_0x1d497a,_0x5640a8=_0x3dbf13[_0x114022(0x138)]?[_0x3dbf13[_0x114022(0x138)]]:[],_0x2ab263=_0xa4b593[_0x114022(0x130)](_0x3f2bc5);if(_0x2ab263){_0x3dbf13['source']===_0x114022(0x15a)&&(_0x2ab263[_0x114022(0x14d)]=_0x121ab8,_0x2ab263['cacheDir']=_0x121ab8,_0x2ab263[_0x114022(0x157)]=resolve(_0x121ab8,SKILL_FILE),_0x2ab263[_0x114022(0x13b)]=_0x2fc9d5);for(const _0x5089da of _0x5640a8){!_0x2ab263[_0x114022(0x151)][_0x114022(0x14c)](_0x5089da)&&_0x2ab263[_0x114022(0x151)][_0x114022(0x154)](_0x5089da);}_0x2ab263[_0x114022(0x151)][_0x114022(0x12f)]();return;}_0xa4b593['set'](_0x3f2bc5,{..._0x5c4485,'tags':Array[_0x114022(0x158)](_0x5c4485['tags'])?_0x5c4485[_0x114022(0x13d)]:[],'scope':_0x5c4485[_0x114022(0x159)],'source':'local','dir':_0x121ab8,'cacheDir':_0x3dbf13[_0x114022(0x14f)]==='cache'?_0x121ab8:undefined,'skillMdPath':resolve(_0x121ab8,SKILL_FILE),'metadataPath':_0x2fc9d5,'linkedPaths':_0x5640a8});}function compareLocalRuntimeSkills(_0x4c36e8,_0x5ba35a){const _0x9fbb81=a112_0x19e5,_0x1d48c4={'personal':0x0,'company':0x1,'builtin':0x2};return _0x1d48c4[_0x4c36e8[_0x9fbb81(0x159)]]-_0x1d48c4[_0x5ba35a['scope']]||_0x4c36e8[_0x9fbb81(0x139)][_0x9fbb81(0x13a)](_0x5ba35a[_0x9fbb81(0x139)])||_0x4c36e8['dir'][_0x9fbb81(0x13a)](_0x5ba35a[_0x9fbb81(0x14d)]);}