@lovrabet/lovrabet-cli 2.1.8-beta.2 → 2.1.8

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 (117) 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/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.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/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- const a88_0x521ff5=a88_0x8b21;(function(_0x48f39a,_0x2e1ac7){const _0x27ecc4=a88_0x8b21,_0x34cdc2=_0x48f39a();while(!![]){try{const _0x96bb6c=-parseInt(_0x27ecc4(0x1a3))/0x1*(parseInt(_0x27ecc4(0x1ad))/0x2)+parseInt(_0x27ecc4(0x1a9))/0x3+parseInt(_0x27ecc4(0x1c3))/0x4*(-parseInt(_0x27ecc4(0x1b0))/0x5)+parseInt(_0x27ecc4(0x1b5))/0x6+-parseInt(_0x27ecc4(0x1b4))/0x7*(parseInt(_0x27ecc4(0x1bf))/0x8)+parseInt(_0x27ecc4(0x191))/0x9+parseInt(_0x27ecc4(0x1ca))/0xa*(parseInt(_0x27ecc4(0x1b2))/0xb);if(_0x96bb6c===_0x2e1ac7)break;else _0x34cdc2['push'](_0x34cdc2['shift']());}catch(_0x354bdb){_0x34cdc2['push'](_0x34cdc2['shift']());}}}(a88_0x5a44,0x8b375));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 a88_0x5a44(){const _0x5e08ed=['update','defaultApp','app','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','production','isNonInteractive','APPCODE','../core/api-client.js','6370758XxhSlJ','ACCESS_KEY','command','requiresAuth','ClientAk','defaultPageSize','currentApp','execute','has','error','appcode','authRequired','Set\x20accessKey\x20in\x20','validation','string','nonInteractive','../core/sdk-client.js','newConfigFileName','34kRQSka','catch','resolve','appCode','includes','service','799359RjzAUX','format','cancelled','env','5868WRlSak','filter','pretty','50075ftDlBh','High-risk\x20operation\x20`','81169fSLhyC','appCodeSource','7CzNDTD','2140218dFpAra','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','pageSize','../commands/app/remote-source.js','rawFlags','Run\x20`','doctor','accessKey','name','object','7788552ChrxTK','items','mergedCli','trim','108fBgRsM','requiresAppCode','.appcode\x20to\x20','\x20or\x20pass\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','configMissing','_notice','790lNOJaN','schema'];a88_0x5a44=function(){return _0x5e08ed;};return a88_0x5a44();}function a88_0x8b21(_0x5e6020,_0x5e79c7){_0x5e6020=_0x5e6020-0x18c;const _0x5a446e=a88_0x5a44();let _0x8b2192=_0x5a446e[_0x5e6020];return _0x8b2192;}import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0xf85bf1){const _0x43a605=a88_0x8b21;return void _0xf85bf1,AUTH_MODE[_0x43a605(0x195)];}export function createPipelineEnv(_0x50c67e,_0x20f057){const _0x4e5cb3=a88_0x8b21,_0x9f4ecf=typeof _0x20f057[_0x4e5cb3(0x1ce)]===_0x4e5cb3(0x19f)&&_0x20f057[_0x4e5cb3(0x1ce)][_0x4e5cb3(0x1c2)]();return{'rawFlags':_0x20f057,'appCode':_0x50c67e['appCode']||productEnv('APPCODE')||(_0x9f4ecf?undefined:readAppCodeFromConfig()),'appCodeSource':_0x50c67e['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x20f057),'defaultFormat':_0x50c67e[_0x4e5cb3(0x1aa)],'defaultPageSize':_0x50c67e[_0x4e5cb3(0x1b7)],'defaultVerbose':_0x50c67e['verbose'],'riskLevel':_0x50c67e['riskLevel'],'accessKey':_0x50c67e[_0x4e5cb3(0x1bc)],'env':_0x50c67e[_0x4e5cb3(0x1ac)],'mergedCli':{'defaultApp':_0x50c67e[_0x4e5cb3(0x1cd)],'currentApp':_0x50c67e[_0x4e5cb3(0x197)],'appCode':_0x50c67e[_0x4e5cb3(0x1a6)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a88_0x521ff5(0x1ae)](_0x29fc67=>PIPELINE_FLAG_NAMES[a88_0x521ff5(0x199)](_0x29fc67[a88_0x521ff5(0x1bd)]))['map'](({name:_0x419008,type:_0x5e6545,description:_0x412224})=>({'name':_0x419008,'type':_0x5e6545,'description':_0x412224})),'formatOutput':formatOutput,'getCommandLabel'(_0x29c2ba){const _0x249682=a88_0x521ff5;return CLI_BIN_NAME+'\x20'+_0x29c2ba[_0x249682(0x1a8)]+'\x20'+_0x29c2ba[_0x249682(0x193)];},'riskPolicy':{'onViolation'(_0x12d5ee){const _0x4d6e79=a88_0x521ff5;console[_0x4d6e79(0x19a)](_0x12d5ee);},'createError'(_0x106512){const _0x4e1f35=a88_0x521ff5;return CliErrors[_0x4e1f35(0x1ab)](_0x106512);}},async 'prepare'(_0x394e38,_0x901fe3){const _0x1b23a3=a88_0x521ff5,_0x19d20d=resolveAuthMode(_0x901fe3);if(_0x394e38[_0x1b23a3(0x194)]!==![]){if(!_0x901fe3[_0x1b23a3(0x1bc)])throw CliErrors[_0x1b23a3(0x19c)](_0x1b23a3(0x19d)+PRODUCT_CONFIG[_0x1b23a3(0x1a2)]+_0x1b23a3(0x1c6)+productEnvName(_0x1b23a3(0x192))+'.');const {setActiveAK:_0xec9c0d}=await import(_0x1b23a3(0x190));_0xec9c0d(_0x901fe3[_0x1b23a3(0x1bc)]);}let _0x25968c='';if(_0x394e38[_0x1b23a3(0x1c4)]!==![]){_0x25968c=_0x901fe3[_0x1b23a3(0x1a6)]??'',_0x25968c=await resolveExplicitAppName(_0x394e38,_0x901fe3,_0x25968c);if(!_0x25968c){await assertSelectedAppNameIsRuntimeAccessible(_0x394e38,_0x901fe3);throw CliErrors[_0x1b23a3(0x1c8)](_0x1b23a3(0x1c7)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x394e38,_0x901fe3,_0x25968c);}if(_0x25968c){const {initSdkClient:_0x3c01c9}=await import(_0x1b23a3(0x1a1));_0x3c01c9({'appCode':_0x25968c,'env':_0x901fe3[_0x1b23a3(0x1ac)]??'production','accessKey':_0x901fe3[_0x1b23a3(0x1bc)],'authMode':_0x19d20d});}return{'defaults':{'booleans':{'verbose':_0x901fe3['defaultVerbose']},'numbers':{'pagesize':_0x901fe3[_0x1b23a3(0x196)]}},'extras':{'appCode':_0x25968c,'cookie':'','apiDomain':_0x901fe3['apiDomain'],'apiDir':'','accessKey':_0x901fe3[_0x1b23a3(0x1bc)],'envName':_0x901fe3[_0x1b23a3(0x1ac)],'mergedCli':_0x901fe3[_0x1b23a3(0x1c1)]}};},async 'confirmHighRisk'({def:_0x1db501,env:_0x18ef18,flags:_0x93a3b4,commandLabel:_0x28c7cc}){const _0x5a5ba4=a88_0x521ff5;if(_0x18ef18[_0x5a5ba4(0x18e)]){const _0x382561=reconstructCommandArgv(_0x1db501,_0x93a3b4);throw CliErrors[_0x5a5ba4(0x19e)](_0x5a5ba4(0x1b1)+_0x28c7cc+_0x5a5ba4(0x18c)+('\x20\x20To\x20proceed:\x20'+_0x382561));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1db501,_0x28c7cc,_0x93a3b4),'createCancelledError':_0x14e041=>CliErrors['cancelled'](_0x14e041)});},'mapDryRunError'(_0x101b1f){return mapUserFacingExecuteError(_0x101b1f);},'mapExecuteError'(_0xb35f9f){return mapUserFacingExecuteError(_0xb35f9f);},async 'finalize'(){const _0x1b8cf6=a88_0x521ff5,{clearActiveAK:_0x5d7e1b}=await import(_0x1b8cf6(0x190));_0x5d7e1b();}};async function resolveExplicitAppName(_0x336085,_0x2f959a,_0x198483){const _0x35e89b=a88_0x521ff5;if(_0x336085['requiresAppCode']===![])return _0x198483;const _0x123d23=typeof _0x2f959a[_0x35e89b(0x1b9)][_0x35e89b(0x1ce)]===_0x35e89b(0x19f)?_0x2f959a[_0x35e89b(0x1b9)]['app'][_0x35e89b(0x1c2)]():'';if(!_0x123d23)return _0x198483;const _0x32f3a6=typeof _0x2f959a['rawFlags']['appcode']===_0x35e89b(0x19f)&&_0x2f959a[_0x35e89b(0x1b9)][_0x35e89b(0x19b)]['trim']()||productEnv(_0x35e89b(0x18f));if(_0x32f3a6||_0x2f959a[_0x35e89b(0x1b3)]==='local-alias')return _0x198483;const {getRemoteAppList:_0x142f68}=await import(_0x35e89b(0x1b8)),_0x4b2045=await _0x142f68({'env':_0x2f959a['env']??_0x35e89b(0x18d),'accessKey':_0x2f959a[_0x35e89b(0x1bc)]}),_0x1f0de3=findAppByName(_0x4b2045['items'],_0x123d23);if(_0x1f0de3&&!isRuntimeAccessibleApp(_0x1f0de3))throw runtimeInaccessibleAppError(_0x1f0de3,'\x22'+_0x123d23+'\x22');const _0x55e655=_0x1f0de3?.['appCode']?.[_0x35e89b(0x1c2)]();if(_0x55e655)return _0x55e655;throw CliErrors[_0x35e89b(0x19e)]('Unknown\x20app:\x20'+_0x123d23,_0x35e89b(0x1ba)+CLI_BIN_NAME+_0x35e89b(0x1b6)+_0x123d23+_0x35e89b(0x1c5)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x30b8fa,_0x4fd95a){const _0x7a63f7=a88_0x521ff5;if(_0x30b8fa[_0x7a63f7(0x1c4)]===![]||!_0x4fd95a[_0x7a63f7(0x1bc)])return;const _0x106c8b=(typeof _0x4fd95a[_0x7a63f7(0x1b9)][_0x7a63f7(0x1ce)]===_0x7a63f7(0x19f)&&_0x4fd95a[_0x7a63f7(0x1b9)][_0x7a63f7(0x1ce)][_0x7a63f7(0x1c2)]()?_0x4fd95a[_0x7a63f7(0x1b9)][_0x7a63f7(0x1ce)]:_0x4fd95a[_0x7a63f7(0x1c1)]?.['currentApp']??_0x4fd95a[_0x7a63f7(0x1c1)]?.[_0x7a63f7(0x1cd)])?.[_0x7a63f7(0x1c2)]();if(!_0x106c8b)return;const {getRemoteAppList:_0x39b750}=await import(_0x7a63f7(0x1b8)),_0x4b01bb=await _0x39b750({'env':_0x4fd95a[_0x7a63f7(0x1ac)]??'production','accessKey':_0x4fd95a['accessKey']}),_0x4c3b61=findAppByName(_0x4b01bb[_0x7a63f7(0x1c0)],_0x106c8b);if(_0x4c3b61&&!isRuntimeAccessibleApp(_0x4c3b61))throw runtimeInaccessibleAppError(_0x4c3b61,'\x22'+_0x106c8b+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x21ebf8,_0x2da739,_0x805347){const _0x5111c0=a88_0x521ff5;if(_0x21ebf8[_0x5111c0(0x1c4)]===![]||!_0x2da739[_0x5111c0(0x1bc)])return;const {getRemoteAppList:_0x42716f}=await import(_0x5111c0(0x1b8)),_0x3ce0be=await _0x42716f({'env':_0x2da739['env']??_0x5111c0(0x18d),'accessKey':_0x2da739['accessKey']}),_0xb5ff55=findAppByCode(_0x3ce0be['items'],_0x805347);if(_0xb5ff55&&!isRuntimeAccessibleApp(_0xb5ff55))throw runtimeInaccessibleAppError(_0xb5ff55,'appcode\x20\x22'+_0x805347+'\x22');}export async function runCommand(_0x4f15e6,_0x22be49){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4f15e6)?withUpdateNotice(_0x4f15e6):_0x4f15e6,_0x22be49,runnerAdapter);}function shouldAttachUpdateNotice(_0x2404af){const _0x4b44de=a88_0x521ff5;return![_0x4b44de(0x1cc),_0x4b44de(0x1cb),_0x4b44de(0x1bb)][_0x4b44de(0x1a7)](_0x2404af[_0x4b44de(0x1a8)]);}function withUpdateNotice(_0x1dd39a){return{..._0x1dd39a,async 'execute'(_0x1c1e73){const _0x639f49=a88_0x8b21,_0x8307aa=shouldResolveUpdateNotice(_0x1c1e73)?resolveLatestUpdateNotice()[_0x639f49(0x1a4)](()=>null):Promise[_0x639f49(0x1a5)](null),_0x5c6fbf=await _0x1dd39a[_0x639f49(0x198)](_0x1c1e73);return attachUpdateNotice(_0x5c6fbf,await _0x8307aa);}};}function shouldResolveUpdateNotice(_0x3e4139){const _0x238a11=a88_0x521ff5;return _0x3e4139['format']===_0x238a11(0x1af)&&!_0x3e4139[_0x238a11(0x1a0)];}function attachUpdateNotice(_0x1204dc,_0x2cef8f){const _0x472823=a88_0x521ff5;if(!_0x2cef8f||!_0x1204dc||typeof _0x1204dc!==_0x472823(0x1be))return _0x1204dc;const _0x52ec44=_0x1204dc,_0x452b23=typeof _0x52ec44[_0x472823(0x1c9)]==='object'&&_0x52ec44[_0x472823(0x1c9)]!==null?_0x52ec44['_notice']:{};return{..._0x52ec44,'_notice':{..._0x452b23,'update':_0x2cef8f}};}
1
+ const a88_0x1dcf10=a88_0xde3e;(function(_0x8d26ae,_0x407ac9){const _0x2f89d2=a88_0xde3e,_0x435195=_0x8d26ae();while(!![]){try{const _0x3d9cb0=-parseInt(_0x2f89d2(0x18e))/0x1+parseInt(_0x2f89d2(0x172))/0x2*(-parseInt(_0x2f89d2(0x15b))/0x3)+-parseInt(_0x2f89d2(0x17c))/0x4*(parseInt(_0x2f89d2(0x182))/0x5)+-parseInt(_0x2f89d2(0x17a))/0x6+-parseInt(_0x2f89d2(0x186))/0x7*(-parseInt(_0x2f89d2(0x159))/0x8)+-parseInt(_0x2f89d2(0x165))/0x9+-parseInt(_0x2f89d2(0x194))/0xa*(-parseInt(_0x2f89d2(0x18b))/0xb);if(_0x3d9cb0===_0x407ac9)break;else _0x435195['push'](_0x435195['shift']());}catch(_0x1a596a){_0x435195['push'](_0x435195['shift']());}}}(a88_0x2ef9,0xea6a5));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';function a88_0x2ef9(){const _0x26ada5=['isNonInteractive','.appcode\x20to\x20','execute','../core/api-client.js','service','defaultApp','validation','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','70677NYDHZJ','schema','production','appCodeSource','ACCESS_KEY','newConfigFileName','authRequired','includes','requiresAuth','configMissing','Unknown\x20app:\x20','../core/sdk-client.js','doctor','21674yjuzDh','mergedCli','update','riskLevel','defaultPageSize','pretty','filter','High-risk\x20operation\x20`','4614474zLujbr','app','1360356InvkCG','defaultVerbose','error','appCode','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','Run\x20`','25UBlzLd','currentApp','name','items','170975GBHuai','verbose','appcode','format','map','121XmLkNQ','accessKey','env','10238eGOSvL','cancelled','string','pageSize','apiDomain','rawFlags','3179130zsQDgR','APPCODE','_notice','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','object','requiresAppCode','local-alias','../commands/app/remote-source.js','424nNORyN','trim','372JxRKwJ','ClientAk'];a88_0x2ef9=function(){return _0x26ada5;};return a88_0x2ef9();}import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a88_0xde3e(_0x5aa338,_0x4b3aa1){_0x5aa338=_0x5aa338-0x158;const _0x2ef924=a88_0x2ef9();let _0xde3e91=_0x2ef924[_0x5aa338];return _0xde3e91;}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{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x577aae){const _0x14f9b4=a88_0xde3e;return void _0x577aae,AUTH_MODE[_0x14f9b4(0x15c)];}export function createPipelineEnv(_0x3c2af2,_0x10aebc){const _0x59b4b3=a88_0xde3e,_0x789aa=typeof _0x10aebc[_0x59b4b3(0x17b)]===_0x59b4b3(0x190)&&_0x10aebc['app'][_0x59b4b3(0x15a)]();return{'rawFlags':_0x10aebc,'appCode':_0x3c2af2[_0x59b4b3(0x17f)]||productEnv(_0x59b4b3(0x195))||(_0x789aa?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3c2af2[_0x59b4b3(0x168)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x10aebc),'defaultFormat':_0x3c2af2[_0x59b4b3(0x189)],'defaultPageSize':_0x3c2af2[_0x59b4b3(0x191)],'defaultVerbose':_0x3c2af2[_0x59b4b3(0x187)],'riskLevel':_0x3c2af2[_0x59b4b3(0x175)],'accessKey':_0x3c2af2[_0x59b4b3(0x18c)],'env':_0x3c2af2['env'],'mergedCli':{'defaultApp':_0x3c2af2['defaultApp'],'currentApp':_0x3c2af2[_0x59b4b3(0x183)],'appCode':_0x3c2af2[_0x59b4b3(0x17f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a88_0x1dcf10(0x178)](_0x5de768=>PIPELINE_FLAG_NAMES['has'](_0x5de768[a88_0x1dcf10(0x184)]))[a88_0x1dcf10(0x18a)](({name:_0x1be36a,type:_0x48635c,description:_0x23a775})=>({'name':_0x1be36a,'type':_0x48635c,'description':_0x23a775})),'formatOutput':formatOutput,'getCommandLabel'(_0x428de6){const _0xe940dc=a88_0x1dcf10;return CLI_BIN_NAME+'\x20'+_0x428de6[_0xe940dc(0x161)]+'\x20'+_0x428de6['command'];},'riskPolicy':{'onViolation'(_0x40d1ca){const _0xadbd07=a88_0x1dcf10;console[_0xadbd07(0x17e)](_0x40d1ca);},'createError'(_0xbd3b12){const _0x1d092b=a88_0x1dcf10;return CliErrors[_0x1d092b(0x18f)](_0xbd3b12);}},async 'prepare'(_0x34f7bf,_0x118029){const _0x26bf06=a88_0x1dcf10,_0x4c2354=resolveAuthMode(_0x118029);if(_0x34f7bf[_0x26bf06(0x16d)]!==![]){if(!_0x118029[_0x26bf06(0x18c)])throw CliErrors[_0x26bf06(0x16b)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x26bf06(0x16a)]+'\x20or\x20pass\x20'+productEnvName(_0x26bf06(0x169))+'.');const {setActiveAK:_0x5bdf0b}=await import(_0x26bf06(0x160));_0x5bdf0b(_0x118029[_0x26bf06(0x18c)]);}let _0x125099='';if(_0x34f7bf[_0x26bf06(0x199)]!==![]){_0x125099=_0x118029[_0x26bf06(0x17f)]??'',_0x125099=await resolveExplicitAppName(_0x34f7bf,_0x118029,_0x125099);if(!_0x125099){await assertSelectedAppNameIsRuntimeAccessible(_0x34f7bf,_0x118029);throw CliErrors[_0x26bf06(0x16e)](_0x26bf06(0x180)+PRODUCT_CONFIG[_0x26bf06(0x16a)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x34f7bf,_0x118029,_0x125099);}if(_0x125099){const {initSdkClient:_0x555e1a}=await import(_0x26bf06(0x170));_0x555e1a({'appCode':_0x125099,'env':_0x118029[_0x26bf06(0x18d)]??'production','accessKey':_0x118029['accessKey'],'authMode':_0x4c2354});}return{'defaults':{'booleans':{'verbose':_0x118029[_0x26bf06(0x17d)]},'numbers':{'pagesize':_0x118029[_0x26bf06(0x176)]}},'extras':{'appCode':_0x125099,'cookie':'','apiDomain':_0x118029[_0x26bf06(0x192)],'apiDir':'','accessKey':_0x118029[_0x26bf06(0x18c)],'envName':_0x118029['env'],'mergedCli':_0x118029[_0x26bf06(0x173)]}};},async 'confirmHighRisk'({def:_0x1bb2dd,env:_0x5bd980,flags:_0x27edf2,commandLabel:_0x1ccdba}){const _0x2aa2f9=a88_0x1dcf10;if(_0x5bd980[_0x2aa2f9(0x15d)]){const _0x4e17ec=reconstructCommandArgv(_0x1bb2dd,_0x27edf2);throw CliErrors[_0x2aa2f9(0x163)](_0x2aa2f9(0x179)+_0x1ccdba+_0x2aa2f9(0x164)+('\x20\x20To\x20proceed:\x20'+_0x4e17ec));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1bb2dd,_0x1ccdba,_0x27edf2),'createCancelledError':_0x2892f1=>CliErrors[_0x2aa2f9(0x18f)](_0x2892f1)});},'mapDryRunError'(_0x156ec3){return mapUserFacingExecuteError(_0x156ec3);},'mapExecuteError'(_0x366d60){return mapUserFacingExecuteError(_0x366d60);},async 'finalize'(){const _0x5e553a=a88_0x1dcf10,{clearActiveAK:_0x5a9181}=await import(_0x5e553a(0x160));_0x5a9181();}};async function resolveExplicitAppName(_0x160239,_0x83f0e1,_0x210c4f){const _0x5f3e6c=a88_0x1dcf10;if(_0x160239['requiresAppCode']===![])return _0x210c4f;const _0x594815=typeof _0x83f0e1[_0x5f3e6c(0x193)][_0x5f3e6c(0x17b)]===_0x5f3e6c(0x190)?_0x83f0e1[_0x5f3e6c(0x193)]['app'][_0x5f3e6c(0x15a)]():'';if(!_0x594815)return _0x210c4f;const _0x4a6a41=typeof _0x83f0e1[_0x5f3e6c(0x193)][_0x5f3e6c(0x188)]===_0x5f3e6c(0x190)&&_0x83f0e1['rawFlags'][_0x5f3e6c(0x188)][_0x5f3e6c(0x15a)]()||productEnv(_0x5f3e6c(0x195));if(_0x4a6a41||_0x83f0e1['appCodeSource']===_0x5f3e6c(0x19a))return _0x210c4f;const {getRemoteAppList:_0x1c74dd}=await import('../commands/app/remote-source.js'),_0x37711c=await _0x1c74dd({'env':_0x83f0e1['env']??'production','accessKey':_0x83f0e1['accessKey']}),_0xf729a1=findAppByName(_0x37711c[_0x5f3e6c(0x185)],_0x594815);if(_0xf729a1&&!isRuntimeAccessibleApp(_0xf729a1))throw runtimeInaccessibleAppError(_0xf729a1,'\x22'+_0x594815+'\x22');const _0x348e9d=_0xf729a1?.[_0x5f3e6c(0x17f)]?.['trim']();if(_0x348e9d)return _0x348e9d;throw CliErrors['validation'](_0x5f3e6c(0x16f)+_0x594815,_0x5f3e6c(0x181)+CLI_BIN_NAME+_0x5f3e6c(0x197)+_0x594815+_0x5f3e6c(0x15e)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1e25e6,_0x593685){const _0x4bca02=a88_0x1dcf10;if(_0x1e25e6[_0x4bca02(0x199)]===![]||!_0x593685[_0x4bca02(0x18c)])return;const _0x3bf0b9=(typeof _0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)]==='string'&&_0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)][_0x4bca02(0x15a)]()?_0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)]:_0x593685[_0x4bca02(0x173)]?.[_0x4bca02(0x183)]??_0x593685[_0x4bca02(0x173)]?.[_0x4bca02(0x162)])?.['trim']();if(!_0x3bf0b9)return;const {getRemoteAppList:_0x4ed495}=await import('../commands/app/remote-source.js'),_0x118d5c=await _0x4ed495({'env':_0x593685[_0x4bca02(0x18d)]??_0x4bca02(0x167),'accessKey':_0x593685[_0x4bca02(0x18c)]}),_0x3f9f50=findAppByName(_0x118d5c[_0x4bca02(0x185)],_0x3bf0b9);if(_0x3f9f50&&!isRuntimeAccessibleApp(_0x3f9f50))throw runtimeInaccessibleAppError(_0x3f9f50,'\x22'+_0x3bf0b9+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x4250c2,_0x4fa4c6,_0x566445){const _0x222d0d=a88_0x1dcf10;if(_0x4250c2['requiresAppCode']===![]||!_0x4fa4c6[_0x222d0d(0x18c)])return;const {getRemoteAppList:_0x1bc997}=await import(_0x222d0d(0x158)),_0x256ad4=await _0x1bc997({'env':_0x4fa4c6[_0x222d0d(0x18d)]??'production','accessKey':_0x4fa4c6['accessKey']}),_0x46b3b4=findAppByCode(_0x256ad4[_0x222d0d(0x185)],_0x566445);if(_0x46b3b4&&!isRuntimeAccessibleApp(_0x46b3b4))throw runtimeInaccessibleAppError(_0x46b3b4,'appcode\x20\x22'+_0x566445+'\x22');}export async function runCommand(_0x5af4e6,_0x228bd4){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5af4e6)?withUpdateNotice(_0x5af4e6):_0x5af4e6,_0x228bd4,runnerAdapter);}function shouldAttachUpdateNotice(_0xc1ad0b){const _0x492c24=a88_0x1dcf10;return![_0x492c24(0x174),_0x492c24(0x166),_0x492c24(0x171)][_0x492c24(0x16c)](_0xc1ad0b[_0x492c24(0x161)]);}function withUpdateNotice(_0x200929){return{..._0x200929,async 'execute'(_0x475dc4){const _0x59792a=a88_0xde3e,_0x4d0361=shouldResolveUpdateNotice(_0x475dc4)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x4fb196=await _0x200929[_0x59792a(0x15f)](_0x475dc4);return attachUpdateNotice(_0x4fb196,await _0x4d0361);}};}function shouldResolveUpdateNotice(_0x39521d){const _0x432ef5=a88_0x1dcf10;return _0x39521d[_0x432ef5(0x189)]===_0x432ef5(0x177)&&!_0x39521d['nonInteractive'];}function attachUpdateNotice(_0x3b3b9f,_0x45aa03){const _0x257774=a88_0x1dcf10;if(!_0x45aa03||!_0x3b3b9f||typeof _0x3b3b9f!==_0x257774(0x198))return _0x3b3b9f;const _0x3ee97f=_0x3b3b9f,_0x4866dc=typeof _0x3ee97f[_0x257774(0x196)]==='object'&&_0x3ee97f[_0x257774(0x196)]!==null?_0x3ee97f[_0x257774(0x196)]:{};return{..._0x3ee97f,'_notice':{..._0x4866dc,'update':_0x45aa03}};}
@@ -1 +1 @@
1
- (function(_0x457a76,_0x8094bb){const _0x56539f=a89_0x2bce,_0x19b3a1=_0x457a76();while(!![]){try{const _0x3e412e=parseInt(_0x56539f(0xda))/0x1+-parseInt(_0x56539f(0xde))/0x2*(-parseInt(_0x56539f(0xe0))/0x3)+parseInt(_0x56539f(0xdd))/0x4*(-parseInt(_0x56539f(0xe8))/0x5)+parseInt(_0x56539f(0xe3))/0x6*(parseInt(_0x56539f(0xea))/0x7)+parseInt(_0x56539f(0xed))/0x8*(-parseInt(_0x56539f(0xeb))/0x9)+parseInt(_0x56539f(0xd9))/0xa+-parseInt(_0x56539f(0xe2))/0xb*(parseInt(_0x56539f(0xee))/0xc);if(_0x3e412e===_0x8094bb)break;else _0x19b3a1['push'](_0x19b3a1['shift']());}catch(_0x5215fb){_0x19b3a1['push'](_0x19b3a1['shift']());}}}(a89_0x3158,0x1b2c2));import{buildSchemaPayload as a89_0x688b52}from'@lovrabet/cli-framework';function a89_0x2bce(_0x44dd3f,_0x78b118){_0x44dd3f=_0x44dd3f-0xd8;const _0x31581f=a89_0x3158();let _0x2bcee1=_0x31581f[_0x44dd3f];return _0x2bcee1;}import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';function a89_0x3158(){const _0x5b0d4d=['85357wvoLwJ','auth','map','24QijupN','3394EwggbA','none','210EVUbzM','has','473tveSQq','444LQAggu','required','filter','service','../commands/registry.js','125955OgCnMt','requiresAuth','16051eiDaXY','392319lnpnyZ','commands','8tpJvse','61152YrGsov','services','1513340lylVax'];a89_0x3158=function(){return _0x5b0d4d;};return a89_0x3158();}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 _0x13debe=a89_0x2bce,{serviceRegistry:_0xa49945,findDefinition:_0x2a395d}=await import(_0x13debe(0xe7)),_0x3b3d24=new Set(_0xa49945[_0x13debe(0xdc)](_0x24de5a=>_0x24de5a[_0x13debe(0xe6)])),_0x469954=listDynamicServiceEntries()[_0x13debe(0xe5)](_0x3e0d80=>!_0x3b3d24[_0x13debe(0xe1)](_0x3e0d80[_0x13debe(0xe6)])),_0x2a2058=a89_0x688b52({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xa49945,_0x469954),'buildAllFlags':buildAllFlags,'findDefinition':(_0x48f359,_0x15eead)=>_0x2a395d(_0x48f359,_0x15eead)??findDynamicServiceDefinition(_0x48f359,_0x15eead)});return normalizeSchemaPayload(_0x2a2058);}function normalizeSchemaPayload(_0x2b2e0e){const _0x431fea=a89_0x2bce;return{..._0x2b2e0e,'schemaVersion':0x2,'services':_0x2b2e0e[_0x431fea(0xd8)][_0x431fea(0xdc)](_0x1ea13b=>({..._0x1ea13b,'commands':_0x1ea13b[_0x431fea(0xec)][_0x431fea(0xdc)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x16fbe7){const _0x3533f5=a89_0x2bce,_0x3af712=_0x16fbe7;return{..._0x16fbe7,'auth':_0x3af712[_0x3533f5(0xdb)]??(_0x16fbe7[_0x3533f5(0xe9)]?_0x3533f5(0xe4):_0x3533f5(0xdf))};}
1
+ (function(_0x451f05,_0x3d5bb1){const _0x512f49=a89_0x2cec,_0x4707f8=_0x451f05();while(!![]){try{const _0x5f65f4=-parseInt(_0x512f49(0x152))/0x1+parseInt(_0x512f49(0x15b))/0x2+-parseInt(_0x512f49(0x155))/0x3+parseInt(_0x512f49(0x160))/0x4+-parseInt(_0x512f49(0x15d))/0x5*(-parseInt(_0x512f49(0x163))/0x6)+-parseInt(_0x512f49(0x157))/0x7+parseInt(_0x512f49(0x161))/0x8*(parseInt(_0x512f49(0x15a))/0x9);if(_0x5f65f4===_0x3d5bb1)break;else _0x4707f8['push'](_0x4707f8['shift']());}catch(_0x3249b8){_0x4707f8['push'](_0x4707f8['shift']());}}}(a89_0x47df,0xcf076));import{buildSchemaPayload as a89_0xb5b2be}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a89_0x2cec(_0x3e41c7,_0x2ac143){_0x3e41c7=_0x3e41c7-0x152;const _0x47df05=a89_0x47df();let _0x2cec0f=_0x47df05[_0x3e41c7];return _0x2cec0f;}function a89_0x47df(){const _0x453908=['1884126KeRVXB','none','10997343HZqELX','auth','has','73341AqrKmD','2955760QkJmIc','map','2750645vIPCvi','requiresAuth','../commands/registry.js','2693240Utlnbr','8DrMRrr','services','18WgjPcA','commands','762645AxgLKu','required','service'];a89_0x47df=function(){return _0x453908;};return a89_0x47df();}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 _0x1a37e4=a89_0x2cec,{serviceRegistry:_0x562aa6,findDefinition:_0x1b70d7}=await import(_0x1a37e4(0x15f)),_0xa72468=new Set(_0x562aa6[_0x1a37e4(0x15c)](_0x1d28a3=>_0x1d28a3[_0x1a37e4(0x154)])),_0x551601=listDynamicServiceEntries()['filter'](_0x2455e1=>!_0xa72468[_0x1a37e4(0x159)](_0x2455e1[_0x1a37e4(0x154)])),_0x4e6bdc=a89_0xb5b2be({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x562aa6,_0x551601),'buildAllFlags':buildAllFlags,'findDefinition':(_0x1e3a70,_0x155d9b)=>_0x1b70d7(_0x1e3a70,_0x155d9b)??findDynamicServiceDefinition(_0x1e3a70,_0x155d9b)});return normalizeSchemaPayload(_0x4e6bdc);}function normalizeSchemaPayload(_0x267d52){const _0x441748=a89_0x2cec;return{..._0x267d52,'schemaVersion':0x2,'services':_0x267d52[_0x441748(0x162)][_0x441748(0x15c)](_0x45a9c5=>({..._0x45a9c5,'commands':_0x45a9c5[_0x441748(0x164)][_0x441748(0x15c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x23e6de){const _0x2a257d=a89_0x2cec,_0x47a92f=_0x23e6de;return{..._0x23e6de,'auth':_0x47a92f[_0x2a257d(0x158)]??(_0x23e6de[_0x2a257d(0x15e)]?_0x2a257d(0x153):_0x2a257d(0x156))};}
@@ -1 +1 @@
1
- (function(_0x3d95d6,_0x376988){const _0x57cf2f=a90_0x59a2,_0x1c0700=_0x3d95d6();while(!![]){try{const _0x1f2c22=parseInt(_0x57cf2f(0x17b))/0x1+parseInt(_0x57cf2f(0x17e))/0x2*(-parseInt(_0x57cf2f(0x180))/0x3)+-parseInt(_0x57cf2f(0x17f))/0x4+parseInt(_0x57cf2f(0x178))/0x5*(parseInt(_0x57cf2f(0x179))/0x6)+-parseInt(_0x57cf2f(0x17d))/0x7*(parseInt(_0x57cf2f(0x17c))/0x8)+-parseInt(_0x57cf2f(0x175))/0x9+parseInt(_0x57cf2f(0x177))/0xa*(-parseInt(_0x57cf2f(0x17a))/0xb);if(_0x1f2c22===_0x376988)break;else _0x1c0700['push'](_0x1c0700['shift']());}catch(_0x197551){_0x1c0700['push'](_0x1c0700['shift']());}}}(a90_0x6615,0xc0345));export function insertDynamicServicesAfterServiceTree(_0x21b099,_0xb9f174){const _0xa4fd4c=a90_0x59a2;if(_0xb9f174[_0xa4fd4c(0x176)]===0x0)return[..._0x21b099];const _0xc2fac3=_0x21b099['findIndex'](_0x464181=>_0x464181[_0xa4fd4c(0x174)]===_0xa4fd4c(0x174));if(_0xc2fac3<0x0)return[..._0x21b099,..._0xb9f174];return[..._0x21b099[_0xa4fd4c(0x173)](0x0,_0xc2fac3+0x1),..._0xb9f174,..._0x21b099['slice'](_0xc2fac3+0x1)];}function a90_0x59a2(_0x56be74,_0x511ffc){_0x56be74=_0x56be74-0x173;const _0x6615ab=a90_0x6615();let _0x59a215=_0x6615ab[_0x56be74];return _0x59a215;}function a90_0x6615(){const _0x3ef072=['2709968DoREHs','21TNlPsG','1113646wsdlEe','1252212wZXcpZ','3vDchZU','slice','service','1633680tSyCTu','length','1087110YNEVOO','40025wqWyci','1146Gvlcbk','22kGTXZX','1543370XSkHIy'];a90_0x6615=function(){return _0x3ef072;};return a90_0x6615();}
1
+ (function(_0x2ed7aa,_0x2eb7c5){const _0x22650e=a90_0x5bba,_0x48996d=_0x2ed7aa();while(!![]){try{const _0x1eb1ab=-parseInt(_0x22650e(0x16f))/0x1+parseInt(_0x22650e(0x17a))/0x2*(parseInt(_0x22650e(0x173))/0x3)+-parseInt(_0x22650e(0x179))/0x4*(-parseInt(_0x22650e(0x177))/0x5)+-parseInt(_0x22650e(0x170))/0x6*(-parseInt(_0x22650e(0x176))/0x7)+-parseInt(_0x22650e(0x175))/0x8*(parseInt(_0x22650e(0x178))/0x9)+parseInt(_0x22650e(0x171))/0xa+-parseInt(_0x22650e(0x174))/0xb*(parseInt(_0x22650e(0x17c))/0xc);if(_0x1eb1ab===_0x2eb7c5)break;else _0x48996d['push'](_0x48996d['shift']());}catch(_0x2986f6){_0x48996d['push'](_0x48996d['shift']());}}}(a90_0x577a,0xd37d5));function a90_0x577a(){const _0x83f5d5=['911981ntkRxk','20XceYFm','203976BAPduF','968052XPMpFo','2GewGhJ','length','120bDMxpZ','findIndex','900744sGuSzt','12yEpNBj','15276350qMjRsl','slice','3237114XeHDWz','804221CZrJKl','472BwHtJb'];a90_0x577a=function(){return _0x83f5d5;};return a90_0x577a();}function a90_0x5bba(_0x5355c0,_0x23be15){_0x5355c0=_0x5355c0-0x16f;const _0x577a60=a90_0x577a();let _0x5bbae7=_0x577a60[_0x5355c0];return _0x5bbae7;}export function insertDynamicServicesAfterServiceTree(_0x185a1d,_0xba72c7){const _0x5716b6=a90_0x5bba;if(_0xba72c7[_0x5716b6(0x17b)]===0x0)return[..._0x185a1d];const _0x1b12fa=_0x185a1d[_0x5716b6(0x17d)](_0x33e484=>_0x33e484['service']==='service');if(_0x1b12fa<0x0)return[..._0x185a1d,..._0xba72c7];return[..._0x185a1d[_0x5716b6(0x172)](0x0,_0x1b12fa+0x1),..._0xba72c7,..._0x185a1d[_0x5716b6(0x172)](_0x1b12fa+0x1)];}
@@ -1 +1 @@
1
- (function(_0x9688bc,_0x99d554){var _0x7392f1=a91_0x1dd0,_0x37e1f5=_0x9688bc();while(!![]){try{var _0x562c60=parseInt(_0x7392f1(0x6d))/0x1*(parseInt(_0x7392f1(0x73))/0x2)+-parseInt(_0x7392f1(0x76))/0x3+-parseInt(_0x7392f1(0x71))/0x4*(-parseInt(_0x7392f1(0x72))/0x5)+parseInt(_0x7392f1(0x6e))/0x6+parseInt(_0x7392f1(0x74))/0x7+-parseInt(_0x7392f1(0x75))/0x8*(-parseInt(_0x7392f1(0x6c))/0x9)+parseInt(_0x7392f1(0x70))/0xa*(-parseInt(_0x7392f1(0x6f))/0xb);if(_0x562c60===_0x99d554)break;else _0x37e1f5['push'](_0x37e1f5['shift']());}catch(_0x2a18a3){_0x37e1f5['push'](_0x37e1f5['shift']());}}}(a91_0x1818,0x82df5));function a91_0x1dd0(_0x4d475e,_0x576d34){_0x4d475e=_0x4d475e-0x6c;var _0x181850=a91_0x1818();var _0x1dd0a6=_0x181850[_0x4d475e];return _0x1dd0a6;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a91_0x1818(){var _0x549183=['5MkTXQZ','1001636ZdQjoV','4455605vBuNql','47848QnupbH','1935930lRnvQz','873djciSz','1OgmeJu','6295698mlrNiI','256982ljnQIt','730VyXlXG','480064yvGuRc'];a91_0x1818=function(){return _0x549183;};return a91_0x1818();}
1
+ function a91_0x57eb(){var _0x1d09fa=['8112BpQLKE','774756uduHTf','20410QgxZAE','8CRTmLE','4037zbGoPp','2072grwItN','885585hHGWmO','4572909gqypuu','2185998EyIyeJ','237826jNvUiP','6rEMSah'];a91_0x57eb=function(){return _0x1d09fa;};return a91_0x57eb();}(function(_0x5e5924,_0x3ea751){var _0x138f50=a91_0x38c2,_0x2dc0b2=_0x5e5924();while(!![]){try{var _0xd6e01f=parseInt(_0x138f50(0x157))/0x1+-parseInt(_0x138f50(0x154))/0x2*(-parseInt(_0x138f50(0x155))/0x3)+parseInt(_0x138f50(0x159))/0x4*(parseInt(_0x138f50(0x15c))/0x5)+-parseInt(_0x138f50(0x15e))/0x6+parseInt(_0x138f50(0x15b))/0x7*(-parseInt(_0x138f50(0x156))/0x8)+parseInt(_0x138f50(0x15d))/0x9+parseInt(_0x138f50(0x158))/0xa*(-parseInt(_0x138f50(0x15a))/0xb);if(_0xd6e01f===_0x3ea751)break;else _0x2dc0b2['push'](_0x2dc0b2['shift']());}catch(_0x20ee69){_0x2dc0b2['push'](_0x2dc0b2['shift']());}}}(a91_0x57eb,0x70a51));function a91_0x38c2(_0x18706c,_0x5be407){_0x18706c=_0x18706c-0x154;var _0x57eb00=a91_0x57eb();var _0x38c2a9=_0x57eb00[_0x18706c];return _0x38c2a9;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a92_0x9f07(){const _0x1d7c83=['528642saavQe','v2.1.8-beta.2','2.1.8-beta.2','1006918dTOfhr','7895652eBDlFr','2606770favEUl','c32b75a','18064UHdYAS','20ScGtXD','2026-07-08T03:53:59.263Z','4xAKUSu','21RceviB','138106tYUfab','23502pDJtzw','3474cguDwg','26dbzBWL','5DWcIDf'];a92_0x9f07=function(){return _0x1d7c83;};return a92_0x9f07();}const a92_0x46113b=a92_0x1005;(function(_0x211ab8,_0x4f525b){const _0x2c7f3e=a92_0x1005,_0x53d655=_0x211ab8();while(!![]){try{const _0x5228cf=parseInt(_0x2c7f3e(0x91))/0x1*(parseInt(_0x2c7f3e(0x8d))/0x2)+-parseInt(_0x2c7f3e(0x92))/0x3*(parseInt(_0x2c7f3e(0x8b))/0x4)+parseInt(_0x2c7f3e(0x97))/0x5+-parseInt(_0x2c7f3e(0x8e))/0x6*(-parseInt(_0x2c7f3e(0x8c))/0x7)+parseInt(_0x2c7f3e(0x88))/0x8*(parseInt(_0x2c7f3e(0x8f))/0x9)+parseInt(_0x2c7f3e(0x89))/0xa*(parseInt(_0x2c7f3e(0x95))/0xb)+parseInt(_0x2c7f3e(0x96))/0xc*(-parseInt(_0x2c7f3e(0x90))/0xd);if(_0x5228cf===_0x4f525b)break;else _0x53d655['push'](_0x53d655['shift']());}catch(_0x46f741){_0x53d655['push'](_0x53d655['shift']());}}}(a92_0x9f07,0x6ba2e));function a92_0x1005(_0x2601b7,_0x211fc4){_0x2601b7=_0x2601b7-0x87;const _0x9f07bd=a92_0x9f07();let _0x100549=_0x9f07bd[_0x2601b7];return _0x100549;}export const VERSION=a92_0x46113b(0x94);export const GIT_TAG=a92_0x46113b(0x93);export const GIT_COMMIT=a92_0x46113b(0x87);export const BUILD_TIME=a92_0x46113b(0x8a);
1
+ const a92_0x23ed4c=a92_0x2183;(function(_0x4513a0,_0x2fd344){const _0x150d8b=a92_0x2183,_0xaec112=_0x4513a0();while(!![]){try{const _0x7bcc11=-parseInt(_0x150d8b(0x96))/0x1+-parseInt(_0x150d8b(0x99))/0x2+-parseInt(_0x150d8b(0x97))/0x3*(-parseInt(_0x150d8b(0x98))/0x4)+-parseInt(_0x150d8b(0x9b))/0x5+-parseInt(_0x150d8b(0x94))/0x6+-parseInt(_0x150d8b(0x9c))/0x7*(-parseInt(_0x150d8b(0x9a))/0x8)+-parseInt(_0x150d8b(0x93))/0x9*(-parseInt(_0x150d8b(0x95))/0xa);if(_0x7bcc11===_0x2fd344)break;else _0xaec112['push'](_0xaec112['shift']());}catch(_0x54055e){_0xaec112['push'](_0xaec112['shift']());}}}(a92_0x48ff,0x842d1));export const VERSION='2.1.8';export const GIT_TAG='v2.1.8-beta.3';function a92_0x2183(_0x4b4ed0,_0x5f4a9b){_0x4b4ed0=_0x4b4ed0-0x93;const _0x48ff8a=a92_0x48ff();let _0x21834a=_0x48ff8a[_0x4b4ed0];return _0x21834a;}export const GIT_COMMIT=a92_0x23ed4c(0x9d);function a92_0x48ff(){const _0xaa5a1f=['11973LAvTrX','740pueeeB','1965964BIbnnP','720zIDeCk','1853765vEpnOu','9905KmcIOd','18d879c','18mtUbqr','2792286PFOGLh','8179900Yhiwry','141156eSvtfE'];a92_0x48ff=function(){return _0xaa5a1f;};return a92_0x48ff();}export const BUILD_TIME='2026-07-08T06:21:25.636Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4718c0,_0x239f9e){const _0x58c28c=a93_0x3ea3,_0x2210fb=_0x4718c0();while(!![]){try{const _0x286fee=-parseInt(_0x58c28c(0x168))/0x1+-parseInt(_0x58c28c(0x164))/0x2*(parseInt(_0x58c28c(0x15d))/0x3)+-parseInt(_0x58c28c(0x167))/0x4+parseInt(_0x58c28c(0x166))/0x5*(parseInt(_0x58c28c(0x15e))/0x6)+-parseInt(_0x58c28c(0x163))/0x7*(-parseInt(_0x58c28c(0x161))/0x8)+-parseInt(_0x58c28c(0x162))/0x9*(-parseInt(_0x58c28c(0x15b))/0xa)+-parseInt(_0x58c28c(0x15f))/0xb*(parseInt(_0x58c28c(0x15a))/0xc);if(_0x286fee===_0x239f9e)break;else _0x2210fb['push'](_0x2210fb['shift']());}catch(_0x3a9317){_0x2210fb['push'](_0x2210fb['shift']());}}}(a93_0x4eac,0x2417f));function a93_0x4eac(){const _0x27762e=['1115091GAAITW','14WaWNko','2OAgoVX','\x20--help','448775KeTLMp','316904xdJAyE','5467UypNHF','240pwUWZb','20EykAZg','green','187521OVzyUV','6dszNOR','27742QukkZe','\x20to\x20view\x20available\x20commands.','31704DEHJhX'];a93_0x4eac=function(){return _0x27762e;};return a93_0x4eac();}import{jsx as a93_0x490212,jsxs as a93_0x1fdc49}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a93_0x3ea3(_0x26a9a3,_0xb17854){_0x26a9a3=_0x26a9a3-0x15a;const _0x4eacac=a93_0x4eac();let _0x3ea309=_0x4eacac[_0x26a9a3];return _0x3ea309;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x5c7304=a93_0x3ea3,{exit:_0x3b4da0}=useApp();return useEffect(()=>{_0x3b4da0();},[_0x3b4da0]),a93_0x1fdc49(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a93_0x490212(Box,{'children':a93_0x490212(Text,{'bold':!![],'color':_0x5c7304(0x15c),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a93_0x1fdc49(Box,{'marginTop':0x1,'children':[a93_0x490212(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a93_0x490212(Text,{'bold':!![],'color':_0x5c7304(0x15c),'children':CLI_BIN_NAME+_0x5c7304(0x165)}),a93_0x490212(Text,{'dimColor':!![],'children':_0x5c7304(0x160)})]})]});}
1
+ (function(_0x3c6fc9,_0x42b12c){const _0x11e8e4=a93_0x70c8,_0x3c5876=_0x3c6fc9();while(!![]){try{const _0x7a3768=-parseInt(_0x11e8e4(0x13f))/0x1+-parseInt(_0x11e8e4(0x143))/0x2+-parseInt(_0x11e8e4(0x146))/0x3*(parseInt(_0x11e8e4(0x147))/0x4)+parseInt(_0x11e8e4(0x140))/0x5*(-parseInt(_0x11e8e4(0x141))/0x6)+parseInt(_0x11e8e4(0x13a))/0x7*(parseInt(_0x11e8e4(0x142))/0x8)+parseInt(_0x11e8e4(0x13b))/0x9*(-parseInt(_0x11e8e4(0x144))/0xa)+-parseInt(_0x11e8e4(0x145))/0xb*(-parseInt(_0x11e8e4(0x138))/0xc);if(_0x7a3768===_0x42b12c)break;else _0x3c5876['push'](_0x3c5876['shift']());}catch(_0x16b515){_0x3c5876['push'](_0x3c5876['shift']());}}}(a93_0x4f8b,0x29c16));function a93_0x4f8b(){const _0x348ef6=['42kGreUN','67492tRYUZX','16036932RLJAye','column','7bbISNe','51759fZTpaw','green','\x20to\x20view\x20available\x20commands.','\x20--help','320251nTJnbN','1664445ViOZDb','6OaivTk','109472cdTyUa','27310ILwHRE','480mcoWUH','11HtEQmd'];a93_0x4f8b=function(){return _0x348ef6;};return a93_0x4f8b();}import{jsx as a93_0xf0c6fb,jsxs as a93_0x2aa40f}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a93_0x70c8(_0x4bd139,_0x4dee9a){_0x4bd139=_0x4bd139-0x138;const _0x4f8b7e=a93_0x4f8b();let _0x70c818=_0x4f8b7e[_0x4bd139];return _0x70c818;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x247870=a93_0x70c8,{exit:_0x26cde1}=useApp();return useEffect(()=>{_0x26cde1();},[_0x26cde1]),a93_0x2aa40f(Box,{'flexDirection':_0x247870(0x139),'marginTop':0x1,'marginBottom':0x1,'children':[a93_0xf0c6fb(Box,{'children':a93_0xf0c6fb(Text,{'bold':!![],'color':_0x247870(0x13c),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a93_0x2aa40f(Box,{'marginTop':0x1,'children':[a93_0xf0c6fb(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a93_0xf0c6fb(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x247870(0x13e)}),a93_0xf0c6fb(Text,{'dimColor':!![],'children':_0x247870(0x13d)})]})]});}
@@ -1 +1 @@
1
- const a94_0x60ca24=a94_0x68fc;(function(_0x3d9858,_0x280577){const _0x1c85e2=a94_0x68fc,_0x3f0fdb=_0x3d9858();while(!![]){try{const _0x3ae7aa=-parseInt(_0x1c85e2(0x82))/0x1+-parseInt(_0x1c85e2(0x81))/0x2+-parseInt(_0x1c85e2(0x80))/0x3*(-parseInt(_0x1c85e2(0x7e))/0x4)+parseInt(_0x1c85e2(0x87))/0x5+-parseInt(_0x1c85e2(0x7b))/0x6+parseInt(_0x1c85e2(0x83))/0x7*(-parseInt(_0x1c85e2(0x79))/0x8)+-parseInt(_0x1c85e2(0x77))/0x9*(-parseInt(_0x1c85e2(0x86))/0xa);if(_0x3ae7aa===_0x280577)break;else _0x3f0fdb['push'](_0x3f0fdb['shift']());}catch(_0x397562){_0x3f0fdb['push'](_0x3f0fdb['shift']());}}}(a94_0x41f7,0xdf786));function a94_0x41f7(){const _0x315287=['7pllEji','toString','log','260vAWiaZ','4423655SDGluS','trim','status','stderr','1329840pfzrjm','stdio','13125328uiaCqA','stdout','8011680dfRqem','skipNpxSkillsEnvSuffix','npx','356bVnShX','join','34314xeamiZ','1223690rEQPuW','1241348yrVSjG'];a94_0x41f7=function(){return _0x315287;};return a94_0x41f7();}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a94_0x68fc(_0x1cc688,_0x578550){_0x1cc688=_0x1cc688-0x75;const _0x41f747=a94_0x41f7();let _0x68fcaf=_0x41f747[_0x1cc688];return _0x68fcaf;}import{LOVRABET_SKILL_SOURCE as a94_0xb29f60}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a94_0xb29f60;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a94_0x60ca24(0x7c)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x3ff87c,_0x40f56c=LOVRABET_SKILL_SOURCE,_0x4aac64){const _0x1bafbd=a94_0x60ca24;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5eac85=_0x4aac64?.[_0x1bafbd(0x78)]??'inherit',_0x717a58=resolveNpmBin(_0x1bafbd(0x7d)),_0x2472f1=['skills','add',_0x40f56c,'-g','-y'],_0x31c7a0=[_0x717a58,..._0x2472f1][_0x1bafbd(0x7f)]('\x20');console[_0x1bafbd(0x85)]('*\x20'+_0x31c7a0);const _0x554914=spawnSync(_0x717a58,_0x2472f1,{'cwd':_0x3ff87c,'stdio':_0x5eac85,'env':process.env,'shell':![]});if(_0x554914['status']===0x0)return{'ok':!![],'status':0x0};let _0x172ca3='exit\x20'+(_0x554914[_0x1bafbd(0x75)]??'unknown');if(_0x5eac85==='pipe'){const _0x3a5ffd=_0x554914['stderr']?_0x554914[_0x1bafbd(0x76)][_0x1bafbd(0x84)]()[_0x1bafbd(0x88)]():'',_0x2f4d05=_0x554914[_0x1bafbd(0x7a)]?_0x554914['stdout'][_0x1bafbd(0x84)]()[_0x1bafbd(0x88)]():'';if(_0x3a5ffd)_0x172ca3=_0x3a5ffd;else{if(_0x2f4d05)_0x172ca3=_0x2f4d05;}}return{'ok':![],'status':_0x554914[_0x1bafbd(0x75)]??null,'error':_0x172ca3};}
1
+ (function(_0x134a10,_0x321d09){const _0x90f2b7=a94_0x5f2a,_0x477a2f=_0x134a10();while(!![]){try{const _0x52549e=parseInt(_0x90f2b7(0xee))/0x1+parseInt(_0x90f2b7(0xe0))/0x2*(-parseInt(_0x90f2b7(0xe7))/0x3)+-parseInt(_0x90f2b7(0xed))/0x4*(parseInt(_0x90f2b7(0xdb))/0x5)+parseInt(_0x90f2b7(0xda))/0x6+-parseInt(_0x90f2b7(0xea))/0x7*(parseInt(_0x90f2b7(0xdf))/0x8)+-parseInt(_0x90f2b7(0xe1))/0x9*(parseInt(_0x90f2b7(0xf1))/0xa)+-parseInt(_0x90f2b7(0xe5))/0xb*(-parseInt(_0x90f2b7(0xe4))/0xc);if(_0x52549e===_0x321d09)break;else _0x477a2f['push'](_0x477a2f['shift']());}catch(_0x568ffa){_0x477a2f['push'](_0x477a2f['shift']());}}}(a94_0x4f1c,0x188c1));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a94_0x5f2a(_0x260262,_0x14ed47){_0x260262=_0x260262-0xda;const _0x4f1c2b=a94_0x4f1c();let _0x5f2a3e=_0x4f1c2b[_0x260262];return _0x5f2a3e;}import{LOVRABET_SKILL_SOURCE as a94_0x2a79c3}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a94_0x2a79c3;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);function a94_0x4f1c(){const _0x3043d2=['exit\x20','add','168jGHNuA','130537AQZGem','inherit','3PaVWdF','stdout','npx','14QQppkn','toString','stderr','632TtyULT','101084taPoYF','unknown','join','10qDqHeN','pipe','924822EsWwbD','785tUpfEU','trim','status','skills','317728JyTxdJ','270626PgLjfa','731367rwBMtX'];a94_0x4f1c=function(){return _0x3043d2;};return a94_0x4f1c();}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x577716,_0xc6c944=LOVRABET_SKILL_SOURCE,_0x210575){const _0x89001a=a94_0x5f2a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x9b7972=_0x210575?.['stdio']??_0x89001a(0xe6),_0x48c4bb=resolveNpmBin(_0x89001a(0xe9)),_0x579cfe=[_0x89001a(0xde),_0x89001a(0xe3),_0xc6c944,'-g','-y'],_0x1497b0=[_0x48c4bb,..._0x579cfe][_0x89001a(0xf0)]('\x20');console['log']('*\x20'+_0x1497b0);const _0x1b8815=spawnSync(_0x48c4bb,_0x579cfe,{'cwd':_0x577716,'stdio':_0x9b7972,'env':process.env,'shell':![]});if(_0x1b8815[_0x89001a(0xdd)]===0x0)return{'ok':!![],'status':0x0};let _0x2c920e=_0x89001a(0xe2)+(_0x1b8815[_0x89001a(0xdd)]??_0x89001a(0xef));if(_0x9b7972===_0x89001a(0xf2)){const _0x9590ea=_0x1b8815[_0x89001a(0xec)]?_0x1b8815['stderr']['toString']()[_0x89001a(0xdc)]():'',_0x235a2c=_0x1b8815[_0x89001a(0xe8)]?_0x1b8815[_0x89001a(0xe8)][_0x89001a(0xeb)]()[_0x89001a(0xdc)]():'';if(_0x9590ea)_0x2c920e=_0x9590ea;else{if(_0x235a2c)_0x2c920e=_0x235a2c;}}return{'ok':![],'status':_0x1b8815['status']??null,'error':_0x2c920e};}
@@ -1 +1 @@
1
- const a95_0x379461=a95_0x58ee;(function(_0x594b62,_0x490796){const _0x5ad4a5=a95_0x58ee,_0x3df314=_0x594b62();while(!![]){try{const _0x33d0f2=-parseInt(_0x5ad4a5(0x90))/0x1+-parseInt(_0x5ad4a5(0x9b))/0x2+-parseInt(_0x5ad4a5(0x95))/0x3*(parseInt(_0x5ad4a5(0x89))/0x4)+-parseInt(_0x5ad4a5(0x9d))/0x5+-parseInt(_0x5ad4a5(0x8f))/0x6+parseInt(_0x5ad4a5(0x8c))/0x7+parseInt(_0x5ad4a5(0x8b))/0x8;if(_0x33d0f2===_0x490796)break;else _0x3df314['push'](_0x3df314['shift']());}catch(_0x180456){_0x3df314['push'](_0x3df314['shift']());}}}(a95_0x145b,0x4b8e8));export const METADATA_FILE=a95_0x379461(0x8d);function a95_0x58ee(_0x4ce303,_0x474202){_0x4ce303=_0x4ce303-0x89;const _0x145b59=a95_0x145b();let _0x58eebc=_0x145b59[_0x4ce303];return _0x58eebc;}export const SKILL_FILE=a95_0x379461(0x96);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a95_0x379461(0x97)]);export const IGNORED_DIR_NAMES=new Set([a95_0x379461(0x9a),a95_0x379461(0x8a),a95_0x379461(0x94),a95_0x379461(0x91),a95_0x379461(0x8e),a95_0x379461(0x98),a95_0x379461(0x93),a95_0x379461(0x99),a95_0x379461(0x9c),a95_0x379461(0x92)]);function a95_0x145b(){const _0x2dd24f=['.next','2381148ruztzf','350842ynNjqF','node_modules','.cache','build','.svn','74352kKAYmu','SKILL.md','.DS_Store','dist','coverage','.git','116952rihAuc','.turbo','2989750hiiWEP','8hOGSyR','.hg','13868720uDtjxs','207088NtlDfc','lovrabet.skill.json'];a95_0x145b=function(){return _0x2dd24f;};return a95_0x145b();}
1
+ function a95_0x1611(_0x5b565c,_0x2c8a56){_0x5b565c=_0x5b565c-0xc8;const _0x5cfba0=a95_0x5cfb();let _0x161167=_0x5cfba0[_0x5b565c];return _0x161167;}const a95_0x421507=a95_0x1611;(function(_0x5a04ce,_0x241cd9){const _0x3fd7e7=a95_0x1611,_0x5a50a5=_0x5a04ce();while(!![]){try{const _0x31b7f1=parseInt(_0x3fd7e7(0xd1))/0x1*(-parseInt(_0x3fd7e7(0xd9))/0x2)+-parseInt(_0x3fd7e7(0xda))/0x3*(-parseInt(_0x3fd7e7(0xd2))/0x4)+-parseInt(_0x3fd7e7(0xce))/0x5*(parseInt(_0x3fd7e7(0xd4))/0x6)+parseInt(_0x3fd7e7(0xd3))/0x7*(parseInt(_0x3fd7e7(0xd5))/0x8)+-parseInt(_0x3fd7e7(0xd8))/0x9*(parseInt(_0x3fd7e7(0xc9))/0xa)+parseInt(_0x3fd7e7(0xd7))/0xb+-parseInt(_0x3fd7e7(0xcd))/0xc*(-parseInt(_0x3fd7e7(0xc8))/0xd);if(_0x31b7f1===_0x241cd9)break;else _0x5a50a5['push'](_0x5a50a5['shift']());}catch(_0x149b80){_0x5a50a5['push'](_0x5a50a5['shift']());}}}(a95_0x5cfb,0xa859c));function a95_0x5cfb(){const _0x29505c=['1257MpCkYv','.git','coverage','.hg','node_modules','SKILL.md','26wjhVrv','12106460lrrhhx','.svn','lovrabet.skill.json','.turbo','10618212MOqNSG','15qbMyhK','.cache','.next','9WqztjN','1964EXevyo','924091SJsNIJ','253884GCduLX','8IIzdrJ','dist','3492687EsbaHu','9jFJspM','88402NCKmct'];a95_0x5cfb=function(){return _0x29505c;};return a95_0x5cfb();}export const METADATA_FILE=a95_0x421507(0xcb);export const SKILL_FILE=a95_0x421507(0xdf);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);export const IGNORED_DIR_NAMES=new Set([a95_0x421507(0xdb),a95_0x421507(0xdd),a95_0x421507(0xca),a95_0x421507(0xde),a95_0x421507(0xd0),a95_0x421507(0xd6),'build',a95_0x421507(0xdc),a95_0x421507(0xcc),a95_0x421507(0xcf)]);
@@ -1 +1 @@
1
- (function(_0x263c2f,_0x315fc6){const _0x3dc0ea=a96_0x1324,_0x3aaeb5=_0x263c2f();while(!![]){try{const _0x42c7b8=-parseInt(_0x3dc0ea(0x125))/0x1+-parseInt(_0x3dc0ea(0x123))/0x2*(parseInt(_0x3dc0ea(0x12b))/0x3)+-parseInt(_0x3dc0ea(0x127))/0x4*(parseInt(_0x3dc0ea(0x12d))/0x5)+parseInt(_0x3dc0ea(0x129))/0x6+-parseInt(_0x3dc0ea(0x12f))/0x7+parseInt(_0x3dc0ea(0x124))/0x8+-parseInt(_0x3dc0ea(0x130))/0x9*(-parseInt(_0x3dc0ea(0x120))/0xa);if(_0x42c7b8===_0x315fc6)break;else _0x3aaeb5['push'](_0x3aaeb5['shift']());}catch(_0x2227cc){_0x3aaeb5['push'](_0x3aaeb5['shift']());}}}(a96_0x456b,0xc73fc));function a96_0x456b(){const _0xa5df7d=['10vOquqr','split','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','2mTYVHW','10978768sAsgvl','649256YHNzjS','utf8','20VFYOuM','endsWith','6096852BOpnKX','isSymbolicLink','3859518fuQOmT','stringify','1450405SYkHTe','validation','1519938AblwzH','18278433zxOmmt','startsWith'];a96_0x456b=function(){return _0xa5df7d;};return a96_0x456b();}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(_0x305413,_0x36b82c){const _0x547575=a96_0x1324,_0x4cf7f6=normalizeSkillRelativePath(_0x36b82c),_0x4c408c=realOrResolved(_0x305413),_0x399bf5=resolve(_0x4c408c,..._0x4cf7f6[_0x547575(0x121)]('/'));if(!isPathInside(_0x399bf5,_0x4c408c))throw CliErrors[_0x547575(0x12e)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x36b82c);return ensureNoSymlinkInManagedPath(_0x4c408c,_0x4cf7f6),_0x399bf5;}export function ensureNoSymlinkInManagedPath(_0x217b07,_0x3156e9){const _0x2b791b=a96_0x1324;let _0x355ac6=_0x217b07;for(const _0x3ed5ca of _0x3156e9[_0x2b791b(0x121)]('/')){_0x355ac6=resolve(_0x355ac6,_0x3ed5ca);const _0x21f8e0=lstatIfPresent(_0x355ac6);if(_0x21f8e0?.[_0x2b791b(0x12a)]())throw CliErrors[_0x2b791b(0x12e)](_0x2b791b(0x122)+_0x3156e9);}}export function isDanglingSymlink(_0x579fb2){try{return lstatSync(_0x579fb2)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x404e01){const _0x4c56b1=readlinkSync(_0x404e01);return isAbsolute(_0x4c56b1)?_0x4c56b1:resolve(dirname(_0x404e01),_0x4c56b1);}export function isPathInside(_0x48c72c,_0x6286c1){const _0x391fd5=a96_0x1324,_0x5b4b76=_0x48c72c[_0x391fd5(0x128)](sep)?_0x48c72c:''+_0x48c72c+sep,_0x5b56c8=_0x6286c1[_0x391fd5(0x128)](sep)?_0x6286c1:''+_0x6286c1+sep;return _0x48c72c===_0x6286c1||_0x5b4b76[_0x391fd5(0x131)](_0x5b56c8);}export function realOrResolved(_0x5f2202){try{return realpathSync(_0x5f2202);}catch{return resolve(_0x5f2202);}}export function lstatIfPresent(_0x5b9933){try{return lstatSync(_0x5b9933);}catch{return undefined;}}export function writeTextAtomic(_0x4a2187,_0x31d8e2,_0x56b988){const _0x7ceb96=a96_0x1324;writeBytesAtomic(_0x4a2187,Buffer['from'](_0x31d8e2,_0x7ceb96(0x126)),_0x56b988);}export function writeBytesAtomic(_0x5705fd,_0x1b18b1,_0x37f79d){const _0x2f66a7=_0x5705fd+'.tmp';try{writeFileSync(_0x2f66a7,_0x1b18b1,{'mode':_0x37f79d}),renameSync(_0x2f66a7,_0x5705fd);}catch(_0x5d3f35){try{rmSync(_0x2f66a7,{'force':!![]});}catch{}throw _0x5d3f35;}}function a96_0x1324(_0x427ffc,_0x29bf26){_0x427ffc=_0x427ffc-0x120;const _0x456b69=a96_0x456b();let _0x13247f=_0x456b69[_0x427ffc];return _0x13247f;}export function writeJsonAtomic(_0x29ec42,_0x3d1ae0){const _0x4eb344=a96_0x1324;writeTextAtomic(_0x29ec42,JSON[_0x4eb344(0x12c)](_0x3d1ae0,null,0x2)+'\x0a',0x180);}
1
+ (function(_0xdcdacf,_0xdcbe86){const _0x5e1c80=a96_0x3b10,_0x575a27=_0xdcdacf();while(!![]){try{const _0x10977b=parseInt(_0x5e1c80(0x123))/0x1+parseInt(_0x5e1c80(0x12c))/0x2+parseInt(_0x5e1c80(0x126))/0x3*(parseInt(_0x5e1c80(0x12d))/0x4)+-parseInt(_0x5e1c80(0x130))/0x5+-parseInt(_0x5e1c80(0x124))/0x6+-parseInt(_0x5e1c80(0x12b))/0x7*(-parseInt(_0x5e1c80(0x127))/0x8)+-parseInt(_0x5e1c80(0x131))/0x9*(parseInt(_0x5e1c80(0x120))/0xa);if(_0x10977b===_0xdcbe86)break;else _0x575a27['push'](_0x575a27['shift']());}catch(_0x544d89){_0x575a27['push'](_0x575a27['shift']());}}}(a96_0x35cf,0x73608));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(_0x23325d,_0x3d60f4){const _0x217c10=a96_0x3b10,_0x19a5d7=normalizeSkillRelativePath(_0x3d60f4),_0xc14f11=realOrResolved(_0x23325d),_0x4ff1f9=resolve(_0xc14f11,..._0x19a5d7[_0x217c10(0x132)]('/'));if(!isPathInside(_0x4ff1f9,_0xc14f11))throw CliErrors[_0x217c10(0x128)](_0x217c10(0x129)+_0x3d60f4);return ensureNoSymlinkInManagedPath(_0xc14f11,_0x19a5d7),_0x4ff1f9;}export function ensureNoSymlinkInManagedPath(_0x1763ae,_0x48137f){const _0x773494=a96_0x3b10;let _0x1038d0=_0x1763ae;for(const _0x3651fb of _0x48137f[_0x773494(0x132)]('/')){_0x1038d0=resolve(_0x1038d0,_0x3651fb);const _0x5d94aa=lstatIfPresent(_0x1038d0);if(_0x5d94aa?.['isSymbolicLink']())throw CliErrors[_0x773494(0x128)](_0x773494(0x12f)+_0x48137f);}}export function isDanglingSymlink(_0x123d4f){try{return lstatSync(_0x123d4f)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x564da7){const _0x36b8d9=readlinkSync(_0x564da7);return isAbsolute(_0x36b8d9)?_0x36b8d9:resolve(dirname(_0x564da7),_0x36b8d9);}export function isPathInside(_0x3dccee,_0x5ef511){const _0x5c1d1e=a96_0x3b10,_0x552948=_0x3dccee[_0x5c1d1e(0x125)](sep)?_0x3dccee:''+_0x3dccee+sep,_0x5ecdad=_0x5ef511['endsWith'](sep)?_0x5ef511:''+_0x5ef511+sep;return _0x3dccee===_0x5ef511||_0x552948[_0x5c1d1e(0x122)](_0x5ecdad);}function a96_0x3b10(_0x4ae4bf,_0x785434){_0x4ae4bf=_0x4ae4bf-0x120;const _0x35cf9a=a96_0x35cf();let _0x3b10f1=_0x35cf9a[_0x4ae4bf];return _0x3b10f1;}export function realOrResolved(_0x4e9331){try{return realpathSync(_0x4e9331);}catch{return resolve(_0x4e9331);}}export function lstatIfPresent(_0xe498df){try{return lstatSync(_0xe498df);}catch{return undefined;}}export function writeTextAtomic(_0x28b7af,_0x12d562,_0x3d9b7d){const _0x109c5f=a96_0x3b10;writeBytesAtomic(_0x28b7af,Buffer[_0x109c5f(0x121)](_0x12d562,_0x109c5f(0x12e)),_0x3d9b7d);}export function writeBytesAtomic(_0x364677,_0x180deb,_0xbc3cba){const _0x1a49fe=_0x364677+'.tmp';try{writeFileSync(_0x1a49fe,_0x180deb,{'mode':_0xbc3cba}),renameSync(_0x1a49fe,_0x364677);}catch(_0x57de8a){try{rmSync(_0x1a49fe,{'force':!![]});}catch{}throw _0x57de8a;}}export function writeJsonAtomic(_0x3c0157,_0x181d73){const _0x10475f=a96_0x3b10;writeTextAtomic(_0x3c0157,JSON[_0x10475f(0x12a)](_0x181d73,null,0x2)+'\x0a',0x180);}function a96_0x35cf(){const _0x4f35af=['4921992fmulxW','endsWith','1122219qJMlJu','1173704cKgcad','validation','Unsafe\x20Skill\x20file\x20path:\x20','stringify','35PTTnlk','868536xPPejm','4QvfPnm','utf8','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','1577750eyOYlX','108ZxvIrd','split','229630JvyuEU','from','startsWith','342116zWXPyk'];a96_0x35cf=function(){return _0x4f35af;};return a96_0x35cf();}
@@ -1 +1 @@
1
- (function(_0x3c3664,_0x54c3e6){const _0x4a4f20=a97_0x3512,_0xfc3256=_0x3c3664();while(!![]){try{const _0x15333d=-parseInt(_0x4a4f20(0xbe))/0x1*(parseInt(_0x4a4f20(0xcb))/0x2)+-parseInt(_0x4a4f20(0xc8))/0x3*(parseInt(_0x4a4f20(0xc3))/0x4)+-parseInt(_0x4a4f20(0xc5))/0x5+parseInt(_0x4a4f20(0xc6))/0x6+parseInt(_0x4a4f20(0xca))/0x7+parseInt(_0x4a4f20(0xc4))/0x8+parseInt(_0x4a4f20(0xc1))/0x9;if(_0x15333d===_0x54c3e6)break;else _0xfc3256['push'](_0xfc3256['shift']());}catch(_0x1a8dea){_0xfc3256['push'](_0xfc3256['shift']());}}}(a97_0x2779,0x4e704));function a97_0x3512(_0xe71a76,_0x886760){_0xe71a76=_0xe71a76-0xbe;const _0x277955=a97_0x2779();let _0x3512c6=_0x277955[_0xe71a76];return _0x3512c6;}import{createHash}from'node:crypto';function a97_0x2779(){const _0x6e4fe4=['sha256','hex','7205778PVClSV','path','16naEUJZ','1641640ltnYPs','1926800pqIKCZ','1535460JtaMUg','update','327057SMJSjr','size','2777173kalDsx','32236MATWka','digest','32rnUcMC'];a97_0x2779=function(){return _0x6e4fe4;};return a97_0x2779();}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x120b35){const _0x3f42f4=a97_0x3512;return createHash(_0x3f42f4(0xbf))[_0x3f42f4(0xc7)](_0x120b35)[_0x3f42f4(0xcc)](_0x3f42f4(0xc0));}export function fileHash(_0x197a6c){return bufferSha256(fileContent(_0x197a6c));}export function bufferSha256(_0x4f01bc){const _0x1a1f9e=a97_0x3512;return createHash(_0x1a1f9e(0xbf))[_0x1a1f9e(0xc7)](_0x4f01bc)[_0x1a1f9e(0xcc)]('hex');}export function fileTreeHash(_0x569669){const _0x21ef5c=a97_0x3512,_0x435101=createHash(_0x21ef5c(0xbf));for(const _0x352a49 of normalizeManifestFiles(_0x569669)){_0x435101['update'](_0x352a49[_0x21ef5c(0xc2)]),_0x435101[_0x21ef5c(0xc7)]('\x00'),_0x435101[_0x21ef5c(0xc7)](_0x352a49['sha256']),_0x435101['update']('\x00'),_0x435101[_0x21ef5c(0xc7)](String(_0x352a49[_0x21ef5c(0xc9)])),_0x435101[_0x21ef5c(0xc7)]('\x00');}return _0x435101[_0x21ef5c(0xcc)](_0x21ef5c(0xc0));}
1
+ (function(_0x2fdf60,_0x5e9b2c){const _0x523467=a97_0x1c3a,_0x18c819=_0x2fdf60();while(!![]){try{const _0x3e830e=parseInt(_0x523467(0x73))/0x1*(parseInt(_0x523467(0x7d))/0x2)+parseInt(_0x523467(0x7b))/0x3+-parseInt(_0x523467(0x7e))/0x4*(parseInt(_0x523467(0x7c))/0x5)+-parseInt(_0x523467(0x78))/0x6+parseInt(_0x523467(0x7a))/0x7+-parseInt(_0x523467(0x75))/0x8+parseInt(_0x523467(0x7f))/0x9;if(_0x3e830e===_0x5e9b2c)break;else _0x18c819['push'](_0x18c819['shift']());}catch(_0x9fc3e2){_0x18c819['push'](_0x18c819['shift']());}}}(a97_0x599c,0x82513));function a97_0x599c(){const _0x2445b5=['7243OveRas','size','7294648RRFXCf','sha256','hex','6131400uHXJah','digest','492877yJbbDP','2986677USopKL','85FzZzwJ','4JpXsFG','50356jHFuqQ','14409603bkPzet','update'];a97_0x599c=function(){return _0x2445b5;};return a97_0x599c();}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x4765b0){const _0x3beb2b=a97_0x1c3a;return createHash(_0x3beb2b(0x76))[_0x3beb2b(0x80)](_0x4765b0)[_0x3beb2b(0x79)](_0x3beb2b(0x77));}function a97_0x1c3a(_0x5ba587,_0x112d27){_0x5ba587=_0x5ba587-0x73;const _0x599c6c=a97_0x599c();let _0x1c3a16=_0x599c6c[_0x5ba587];return _0x1c3a16;}export function fileHash(_0x1af56a){return bufferSha256(fileContent(_0x1af56a));}export function bufferSha256(_0x11ab0f){const _0x279f35=a97_0x1c3a;return createHash(_0x279f35(0x76))[_0x279f35(0x80)](_0x11ab0f)['digest']('hex');}export function fileTreeHash(_0x164258){const _0x3a4055=a97_0x1c3a,_0x1204df=createHash(_0x3a4055(0x76));for(const _0x2fb790 of normalizeManifestFiles(_0x164258)){_0x1204df[_0x3a4055(0x80)](_0x2fb790['path']),_0x1204df[_0x3a4055(0x80)]('\x00'),_0x1204df[_0x3a4055(0x80)](_0x2fb790[_0x3a4055(0x76)]),_0x1204df[_0x3a4055(0x80)]('\x00'),_0x1204df[_0x3a4055(0x80)](String(_0x2fb790[_0x3a4055(0x74)])),_0x1204df['update']('\x00');}return _0x1204df[_0x3a4055(0x79)](_0x3a4055(0x77));}
@@ -1 +1 @@
1
- (function(_0x132a08,_0xba5012){const _0x5aab36=a98_0x2e26,_0xf3f9f9=_0x132a08();while(!![]){try{const _0x94d88f=-parseInt(_0x5aab36(0x1e8))/0x1*(-parseInt(_0x5aab36(0x1ed))/0x2)+parseInt(_0x5aab36(0x1f0))/0x3+-parseInt(_0x5aab36(0x1fb))/0x4+parseInt(_0x5aab36(0x1e2))/0x5*(parseInt(_0x5aab36(0x1e7))/0x6)+-parseInt(_0x5aab36(0x1e4))/0x7*(parseInt(_0x5aab36(0x1fa))/0x8)+parseInt(_0x5aab36(0x200))/0x9+parseInt(_0x5aab36(0x1f9))/0xa;if(_0x94d88f===_0xba5012)break;else _0xf3f9f9['push'](_0xf3f9f9['shift']());}catch(_0x154af4){_0xf3f9f9['push'](_0xf3f9f9['shift']());}}}(a98_0x576d,0x7c100));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';function a98_0x576d(){const _0x2aa29b=['validation','9224320ErYhvN','134440nvatEL','3419008mvHDDa','name','accessKey','set','skipped','2376702yMNcCk','personal','created','contentHash','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','scope','map','removed','dir','pruneSkillCodes','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','managedRoot','get','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','updated','trim','claudeSkillsDir','builtin','isSymbolicLink','metadata-mismatch','5SKVqxf','skill','385pAPjUQ','has','isDirectory','239262BFGOUw','1366RYvZkU','appCode','values','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','filter','362jmDtoQ','slice','scopes','2440662CkwSNU','unchanged','push','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','agentsSkillsDir','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','env','skillCode'];a98_0x576d=function(){return _0x2aa29b;};return a98_0x576d();}import a98_0x2c4dbb 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';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a98_0x2c4dbb;export function linkEffectiveRuntimeSkills(_0x13c661,_0x569927,_0x20e02b={}){const _0x3cc6d8=a98_0x2e26,_0x5de39a=new Map();for(const _0x24c19b of _0x13c661){const _0x188653=_0x24c19b['skill'][_0x3cc6d8(0x1f7)];if(!_0x188653)continue;const _0x312eb2=_0x5de39a[_0x3cc6d8(0x20c)](_0x188653);(!_0x312eb2||_0x24c19b[_0x3cc6d8(0x205)]===_0x3cc6d8(0x201))&&_0x5de39a[_0x3cc6d8(0x1fe)](_0x188653,_0x24c19b);}const _0x17b555=[],_0x761e8a=resolveSkillSyncPaths(_0x20e02b);for(const _0x468b61 of _0x5de39a[_0x3cc6d8(0x1ea)]()){const _0x183dfc=requireSkillCode(_0x468b61['skill']),_0x53d13f=_0x569927+'--'+_0x183dfc;for(const _0x11a568 of[_0x761e8a[_0x3cc6d8(0x1f4)],_0x761e8a[_0x3cc6d8(0x1de)]]){_0x17b555[_0x3cc6d8(0x1f2)](ensureManagedSymlink(resolve(_0x11a568,_0x53d13f),_0x468b61[_0x3cc6d8(0x208)],_0x761e8a[_0x3cc6d8(0x20b)]));}}return _0x17b555;}export function pruneStaleRuntimeSkillLinks(_0x2e13c7,_0x5f4a23,_0x4b535a={},_0x2eaf13){const _0x4b5257=a98_0x2e26,_0x4e33af=resolveSkillSyncPaths(_0x4b535a),_0x401811=new Set([..._0x5f4a23][_0x4b5257(0x206)](_0x39fe43=>_0x39fe43[_0x4b5257(0x20f)]())['filter'](Boolean)),_0x321c42=_0x2eaf13?new Set([..._0x2eaf13][_0x4b5257(0x206)](_0x3fbb65=>_0x3fbb65['trim']())[_0x4b5257(0x1ec)](Boolean)):undefined,_0x195cfc=[];for(const _0x292286 of[_0x4e33af[_0x4b5257(0x1f4)],_0x4e33af[_0x4b5257(0x1de)]]){for(const _0xb4b6a6 of managedAppSkillLinkPaths(_0x292286,_0x2e13c7)){const _0x1b6251=basename(_0xb4b6a6)[_0x4b5257(0x1ee)]((_0x2e13c7+'--')['length']);if(_0x321c42&&!_0x321c42[_0x4b5257(0x1e5)](_0x1b6251))continue;if(_0x401811['has'](_0x1b6251))continue;_0x195cfc[_0x4b5257(0x1f2)](removeManagedSkillLink(_0xb4b6a6,_0x4e33af['managedRoot']));}}return _0x195cfc;}export function pruneStaleRuntimeSkillCache(_0x3afa9f,_0x4920ef={}){const _0x2f8273=a98_0x2e26,_0x46c999=new Set([..._0x3afa9f['activeSkillCodes']][_0x2f8273(0x206)](_0x11bc73=>_0x11bc73[_0x2f8273(0x20f)]())[_0x2f8273(0x1ec)](Boolean)),_0x28af20=_0x3afa9f[_0x2f8273(0x209)]?new Set([..._0x3afa9f[_0x2f8273(0x209)]][_0x2f8273(0x206)](_0x5d3cac=>_0x5d3cac['trim']())[_0x2f8273(0x1ec)](Boolean)):undefined,_0x4a01c0=_0x3afa9f[_0x2f8273(0x1ef)]??[_0x2f8273(0x201),'company'],_0x108bfd=resolve(getRuntimeSkillCacheRoot(_0x3afa9f[_0x2f8273(0x1f6)],_0x3afa9f[_0x2f8273(0x1fd)],_0x4920ef),safePathSegment(_0x3afa9f['appCode'],_0x2f8273(0x1e9))),_0x3b1143=[];for(const _0x45e443 of _0x4a01c0){const _0x24d116=resolve(_0x108bfd,_0x45e443);if(!existsSync(_0x24d116))continue;for(const _0x822b13 of readdirSync(_0x24d116,{'withFileTypes':!![]})){if(!_0x822b13[_0x2f8273(0x1e6)]())continue;const _0xe7e121=_0x822b13[_0x2f8273(0x1fc)];if(_0x28af20&&!_0x28af20[_0x2f8273(0x1e5)](_0xe7e121))continue;if(_0x46c999[_0x2f8273(0x1e5)](_0xe7e121))continue;const _0x15b4d2=resolve(_0x24d116,_0xe7e121),_0x37c7f3=readMetadataIfPresent(resolve(_0x15b4d2,METADATA_FILE));if(_0x37c7f3?.['appCode']!==_0x3afa9f['appCode']||_0x37c7f3[_0x2f8273(0x205)]!==_0x45e443||_0x37c7f3[_0x2f8273(0x1f7)]!==_0xe7e121){_0x3b1143[_0x2f8273(0x1f2)]({'path':_0x15b4d2,'action':_0x2f8273(0x1ff),'reason':_0x2f8273(0x1e1)});continue;}removeSync(_0x15b4d2),_0x3b1143[_0x2f8273(0x1f2)]({'path':_0x15b4d2,'action':_0x2f8273(0x207)});}}return _0x3b1143;}export function linkGlobalRuntimeSkills(_0x3115bd,_0x1bec04={}){const _0x3ae28c=a98_0x2e26,_0x58c4a4=resolveSkillSyncPaths(_0x1bec04),_0x32324a=[];for(const _0x18c569 of _0x3115bd){if(_0x18c569['scope']!==_0x3ae28c(0x1df))throw CliErrors[_0x3ae28c(0x1f8)](_0x3ae28c(0x1f3)+_0x18c569[_0x3ae28c(0x205)]);const _0x150c7a=requireSkillCode(_0x18c569[_0x3ae28c(0x1e3)]),_0x3001da=copyManagedSkillDirectory(_0x18c569['dir'],resolve(_0x58c4a4[_0x3ae28c(0x1f4)],_0x150c7a));_0x32324a[_0x3ae28c(0x1f2)]({..._0x3001da,'contentHash':_0x18c569[_0x3ae28c(0x203)]});}return _0x32324a;}function ensureManagedSymlink(_0x3f1cc7,_0x5ae6ed,_0x58cf08){const _0x5b89eb=a98_0x2e26;mkdirSync(dirname(_0x3f1cc7),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x3f1cc7)||isDanglingSymlink(_0x3f1cc7)){const _0x2a0168=lstatSync(_0x3f1cc7);if(!_0x2a0168[_0x5b89eb(0x1e0)]())throw CliErrors[_0x5b89eb(0x1f8)](_0x5b89eb(0x1eb)+_0x3f1cc7);const _0x1b986c=resolveSymlinkTarget(_0x3f1cc7);if(!isPathInside(realOrResolved(_0x1b986c),realOrResolved(_0x58cf08)))throw CliErrors[_0x5b89eb(0x1f8)](_0x5b89eb(0x20d)+_0x3f1cc7);if(realOrResolved(_0x1b986c)===realOrResolved(_0x5ae6ed))return{'path':_0x3f1cc7,'target':_0x5ae6ed,'action':_0x5b89eb(0x1f1)};return unlinkSync(_0x3f1cc7),symlinkSync(_0x5ae6ed,_0x3f1cc7,_0x5b89eb(0x208)),{'path':_0x3f1cc7,'target':_0x5ae6ed,'action':'updated'};}return symlinkSync(_0x5ae6ed,_0x3f1cc7,_0x5b89eb(0x208)),{'path':_0x3f1cc7,'target':_0x5ae6ed,'action':'created'};}function a98_0x2e26(_0x4bb9f1,_0x1ba6be){_0x4bb9f1=_0x4bb9f1-0x1de;const _0x576de3=a98_0x576d();let _0x2e2600=_0x576de3[_0x4bb9f1];return _0x2e2600;}function managedAppSkillLinkPaths(_0x5edf9f,_0x52d997){const _0x4b14cd=a98_0x2e26;if(!existsSync(_0x5edf9f))return[];const _0x1ca9b5=_0x52d997+'--';return readdirSync(_0x5edf9f,{'withFileTypes':!![]})['filter'](_0x1dbb31=>_0x1dbb31[_0x4b14cd(0x1fc)]['startsWith'](_0x1ca9b5))[_0x4b14cd(0x206)](_0x2b573f=>resolve(_0x5edf9f,_0x2b573f['name']));}function removeManagedSkillLink(_0x2812f1,_0x14b0ba){const _0x231372=a98_0x2e26,_0x288af0=lstatIfPresent(_0x2812f1);if(!_0x288af0?.[_0x231372(0x1e0)]())return{'path':_0x2812f1,'action':'skipped','reason':'not-managed-symlink'};const _0x114ce5=resolveSymlinkTarget(_0x2812f1);if(!isPathInside(realOrResolved(_0x114ce5),realOrResolved(_0x14b0ba)))return{'path':_0x2812f1,'action':_0x231372(0x1ff),'reason':'external-symlink'};return unlinkSync(_0x2812f1),{'path':_0x2812f1,'action':'removed'};}export function copyManagedSkillDirectory(_0x57a852,_0x923f58){const _0x1770d0=a98_0x2e26,_0x9b5dd5=resolve(_0x923f58,METADATA_FILE),_0xc7fd84=existsSync(_0x923f58);if(_0xc7fd84){const _0x580d0f=lstatSync(_0x923f58);if(_0x580d0f[_0x1770d0(0x1e0)]())throw CliErrors[_0x1770d0(0x1f8)](_0x1770d0(0x204)+_0x923f58);if(!_0x580d0f[_0x1770d0(0x1e6)]())throw CliErrors[_0x1770d0(0x1f8)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x923f58);const _0x303341=readMetadataIfPresent(_0x9b5dd5);if(_0x303341?.['scope']!==_0x1770d0(0x1df))throw CliErrors[_0x1770d0(0x1f8)](_0x1770d0(0x20a)+_0x923f58);}ensureDirSync(dirname(_0x923f58));const _0x3ef7f8=_0xc7fd84?readMetadataIfPresent(_0x9b5dd5)?.['contentHash']:undefined,_0x446f62=readMetadataIfPresent(resolve(_0x57a852,METADATA_FILE))?.['contentHash'];return _0xc7fd84&&removeSync(_0x923f58),copySkillDirectory(_0x57a852,_0x923f58),{'path':_0x923f58,'target':_0x57a852,'action':!_0xc7fd84?_0x1770d0(0x202):_0x3ef7f8===_0x446f62?_0x1770d0(0x1f1):_0x1770d0(0x20e)};}function copySkillDirectory(_0x12480f,_0xbbf060){copySync(_0x12480f,_0xbbf060,{'dereference':![],'overwrite':!![],'filter'(_0x280b64){const _0x355f99=a98_0x2e26;if(lstatSync(_0x280b64)['isSymbolicLink']())throw CliErrors[_0x355f99(0x1f8)](_0x355f99(0x1f5)+_0x280b64);return!![];}});}
1
+ (function(_0x4d54a6,_0x20a242){const _0x25b049=a98_0x24b1,_0x351d8b=_0x4d54a6();while(!![]){try{const _0x560027=parseInt(_0x25b049(0x165))/0x1*(parseInt(_0x25b049(0x16f))/0x2)+-parseInt(_0x25b049(0x184))/0x3*(-parseInt(_0x25b049(0x174))/0x4)+-parseInt(_0x25b049(0x15b))/0x5+-parseInt(_0x25b049(0x160))/0x6*(parseInt(_0x25b049(0x166))/0x7)+-parseInt(_0x25b049(0x17f))/0x8*(-parseInt(_0x25b049(0x176))/0x9)+-parseInt(_0x25b049(0x177))/0xa+parseInt(_0x25b049(0x17d))/0xb;if(_0x560027===_0x20a242)break;else _0x351d8b['push'](_0x351d8b['shift']());}catch(_0x14c29e){_0x351d8b['push'](_0x351d8b['shift']());}}}(a98_0x292c,0xa95f3));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a98_0x44d28c from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';function a98_0x292c(){const _0x55973a=['2000270BYUPZC','trim','env','length','updated','1770HHOJgE','scope','has','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','skillCode','20549EXUkBG','28882RUGJNA','created','get','name','values','external-symlink','claudeSkillsDir','set','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','52GzgoWu','map','metadata-mismatch','removed','pruneSkillCodes','1092ZOGQyw','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','2402919GtemaY','8461120pnISBg','push','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','slice','isDirectory','accessKey','11544775uWXLgg','startsWith','40qioxEs','appCode','not-managed-symlink','skill','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','2619dQnexy','builtin','skipped','isSymbolicLink','filter','validation','unchanged','dir','agentsSkillsDir','managedRoot','contentHash','personal','activeSkillCodes','scopes'];a98_0x292c=function(){return _0x55973a;};return a98_0x292c();}import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a98_0x44d28c;export function linkEffectiveRuntimeSkills(_0x1d1311,_0x4a3dba,_0x39104e={}){const _0x4426ab=a98_0x24b1,_0x30ba70=new Map();for(const _0x154a01 of _0x1d1311){const _0x4b35e2=_0x154a01[_0x4426ab(0x182)][_0x4426ab(0x164)];if(!_0x4b35e2)continue;const _0x34d8c1=_0x30ba70[_0x4426ab(0x168)](_0x4b35e2);(!_0x34d8c1||_0x154a01['scope']==='personal')&&_0x30ba70[_0x4426ab(0x16d)](_0x4b35e2,_0x154a01);}const _0x350e90=[],_0x4a32d3=resolveSkillSyncPaths(_0x39104e);for(const _0x29b3c6 of _0x30ba70[_0x4426ab(0x16a)]()){const _0x47ebc3=requireSkillCode(_0x29b3c6[_0x4426ab(0x182)]),_0x2c971b=_0x4a3dba+'--'+_0x47ebc3;for(const _0x324a8a of[_0x4a32d3['agentsSkillsDir'],_0x4a32d3['claudeSkillsDir']]){_0x350e90['push'](ensureManagedSymlink(resolve(_0x324a8a,_0x2c971b),_0x29b3c6[_0x4426ab(0x154)],_0x4a32d3[_0x4426ab(0x156)]));}}return _0x350e90;}export function pruneStaleRuntimeSkillLinks(_0x57da9e,_0x531cbc,_0x8e8e29={},_0x4acb7c){const _0x1159bc=a98_0x24b1,_0x3bda8f=resolveSkillSyncPaths(_0x8e8e29),_0x2ba1c8=new Set([..._0x531cbc][_0x1159bc(0x170)](_0x1689ae=>_0x1689ae['trim']())[_0x1159bc(0x188)](Boolean)),_0x50f44f=_0x4acb7c?new Set([..._0x4acb7c][_0x1159bc(0x170)](_0x2a00b0=>_0x2a00b0[_0x1159bc(0x15c)]())[_0x1159bc(0x188)](Boolean)):undefined,_0x5d299d=[];for(const _0x5ba3cd of[_0x3bda8f[_0x1159bc(0x155)],_0x3bda8f[_0x1159bc(0x16c)]]){for(const _0x4ce98e of managedAppSkillLinkPaths(_0x5ba3cd,_0x57da9e)){const _0x166fc7=basename(_0x4ce98e)[_0x1159bc(0x17a)]((_0x57da9e+'--')[_0x1159bc(0x15e)]);if(_0x50f44f&&!_0x50f44f['has'](_0x166fc7))continue;if(_0x2ba1c8[_0x1159bc(0x162)](_0x166fc7))continue;_0x5d299d['push'](removeManagedSkillLink(_0x4ce98e,_0x3bda8f['managedRoot']));}}return _0x5d299d;}export function pruneStaleRuntimeSkillCache(_0x47a9a3,_0x395583={}){const _0x2c02fe=a98_0x24b1,_0x2c0ba1=new Set([..._0x47a9a3[_0x2c02fe(0x159)]][_0x2c02fe(0x170)](_0x62640c=>_0x62640c['trim']())[_0x2c02fe(0x188)](Boolean)),_0x2d919f=_0x47a9a3[_0x2c02fe(0x173)]?new Set([..._0x47a9a3['pruneSkillCodes']]['map'](_0x51e245=>_0x51e245[_0x2c02fe(0x15c)]())[_0x2c02fe(0x188)](Boolean)):undefined,_0xecd13b=_0x47a9a3[_0x2c02fe(0x15a)]??[_0x2c02fe(0x158),'company'],_0x2993f0=resolve(getRuntimeSkillCacheRoot(_0x47a9a3[_0x2c02fe(0x15d)],_0x47a9a3[_0x2c02fe(0x17c)],_0x395583),safePathSegment(_0x47a9a3[_0x2c02fe(0x180)],_0x2c02fe(0x180))),_0x2fa1a6=[];for(const _0x597cf1 of _0xecd13b){const _0x505018=resolve(_0x2993f0,_0x597cf1);if(!existsSync(_0x505018))continue;for(const _0x51ca10 of readdirSync(_0x505018,{'withFileTypes':!![]})){if(!_0x51ca10[_0x2c02fe(0x17b)]())continue;const _0x18e42d=_0x51ca10[_0x2c02fe(0x169)];if(_0x2d919f&&!_0x2d919f[_0x2c02fe(0x162)](_0x18e42d))continue;if(_0x2c0ba1[_0x2c02fe(0x162)](_0x18e42d))continue;const _0x3d5cb6=resolve(_0x505018,_0x18e42d),_0x5cc98c=readMetadataIfPresent(resolve(_0x3d5cb6,METADATA_FILE));if(_0x5cc98c?.[_0x2c02fe(0x180)]!==_0x47a9a3[_0x2c02fe(0x180)]||_0x5cc98c[_0x2c02fe(0x161)]!==_0x597cf1||_0x5cc98c[_0x2c02fe(0x164)]!==_0x18e42d){_0x2fa1a6[_0x2c02fe(0x178)]({'path':_0x3d5cb6,'action':'skipped','reason':_0x2c02fe(0x171)});continue;}removeSync(_0x3d5cb6),_0x2fa1a6['push']({'path':_0x3d5cb6,'action':_0x2c02fe(0x172)});}}return _0x2fa1a6;}export function linkGlobalRuntimeSkills(_0x5aa720,_0x575db1={}){const _0x3388c8=a98_0x24b1,_0x3103e3=resolveSkillSyncPaths(_0x575db1),_0x152510=[];for(const _0x1e5e78 of _0x5aa720){if(_0x1e5e78[_0x3388c8(0x161)]!==_0x3388c8(0x185))throw CliErrors[_0x3388c8(0x189)](_0x3388c8(0x16e)+_0x1e5e78[_0x3388c8(0x161)]);const _0x5c692b=requireSkillCode(_0x1e5e78[_0x3388c8(0x182)]),_0x5497b4=copyManagedSkillDirectory(_0x1e5e78[_0x3388c8(0x154)],resolve(_0x3103e3['agentsSkillsDir'],_0x5c692b));_0x152510['push']({..._0x5497b4,'contentHash':_0x1e5e78[_0x3388c8(0x157)]});}return _0x152510;}function ensureManagedSymlink(_0x5920e8,_0x2b34df,_0x44839c){const _0x3e9c0a=a98_0x24b1;mkdirSync(dirname(_0x5920e8),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x5920e8)||isDanglingSymlink(_0x5920e8)){const _0x557c78=lstatSync(_0x5920e8);if(!_0x557c78[_0x3e9c0a(0x187)]())throw CliErrors[_0x3e9c0a(0x189)](_0x3e9c0a(0x163)+_0x5920e8);const _0x17bd87=resolveSymlinkTarget(_0x5920e8);if(!isPathInside(realOrResolved(_0x17bd87),realOrResolved(_0x44839c)))throw CliErrors[_0x3e9c0a(0x189)](_0x3e9c0a(0x175)+_0x5920e8);if(realOrResolved(_0x17bd87)===realOrResolved(_0x2b34df))return{'path':_0x5920e8,'target':_0x2b34df,'action':_0x3e9c0a(0x18a)};return unlinkSync(_0x5920e8),symlinkSync(_0x2b34df,_0x5920e8,_0x3e9c0a(0x154)),{'path':_0x5920e8,'target':_0x2b34df,'action':_0x3e9c0a(0x15f)};}return symlinkSync(_0x2b34df,_0x5920e8,'dir'),{'path':_0x5920e8,'target':_0x2b34df,'action':'created'};}function managedAppSkillLinkPaths(_0x108e3a,_0x400618){const _0x78dfe1=a98_0x24b1;if(!existsSync(_0x108e3a))return[];const _0x47654b=_0x400618+'--';return readdirSync(_0x108e3a,{'withFileTypes':!![]})[_0x78dfe1(0x188)](_0x10c8fb=>_0x10c8fb['name'][_0x78dfe1(0x17e)](_0x47654b))[_0x78dfe1(0x170)](_0x497f5e=>resolve(_0x108e3a,_0x497f5e[_0x78dfe1(0x169)]));}function removeManagedSkillLink(_0xaafe52,_0x4472ab){const _0xc5f225=a98_0x24b1,_0x321bcb=lstatIfPresent(_0xaafe52);if(!_0x321bcb?.['isSymbolicLink']())return{'path':_0xaafe52,'action':_0xc5f225(0x186),'reason':_0xc5f225(0x181)};const _0x395961=resolveSymlinkTarget(_0xaafe52);if(!isPathInside(realOrResolved(_0x395961),realOrResolved(_0x4472ab)))return{'path':_0xaafe52,'action':_0xc5f225(0x186),'reason':_0xc5f225(0x16b)};return unlinkSync(_0xaafe52),{'path':_0xaafe52,'action':_0xc5f225(0x172)};}export function copyManagedSkillDirectory(_0x450b65,_0x3a2eb4){const _0x1ebd26=a98_0x24b1,_0x421921=resolve(_0x3a2eb4,METADATA_FILE),_0x100b92=existsSync(_0x3a2eb4);if(_0x100b92){const _0x3f1f6f=lstatSync(_0x3a2eb4);if(_0x3f1f6f[_0x1ebd26(0x187)]())throw CliErrors[_0x1ebd26(0x189)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x3a2eb4);if(!_0x3f1f6f[_0x1ebd26(0x17b)]())throw CliErrors[_0x1ebd26(0x189)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x3a2eb4);const _0x3dd10e=readMetadataIfPresent(_0x421921);if(_0x3dd10e?.[_0x1ebd26(0x161)]!==_0x1ebd26(0x185))throw CliErrors['validation'](_0x1ebd26(0x179)+_0x3a2eb4);}ensureDirSync(dirname(_0x3a2eb4));const _0x574b15=_0x100b92?readMetadataIfPresent(_0x421921)?.[_0x1ebd26(0x157)]:undefined,_0x13a086=readMetadataIfPresent(resolve(_0x450b65,METADATA_FILE))?.[_0x1ebd26(0x157)];return _0x100b92&&removeSync(_0x3a2eb4),copySkillDirectory(_0x450b65,_0x3a2eb4),{'path':_0x3a2eb4,'target':_0x450b65,'action':!_0x100b92?_0x1ebd26(0x167):_0x574b15===_0x13a086?_0x1ebd26(0x18a):_0x1ebd26(0x15f)};}function a98_0x24b1(_0x55bd9b,_0x3609ce){_0x55bd9b=_0x55bd9b-0x154;const _0x292c96=a98_0x292c();let _0x24b141=_0x292c96[_0x55bd9b];return _0x24b141;}function copySkillDirectory(_0x4652fb,_0x536fe3){copySync(_0x4652fb,_0x536fe3,{'dereference':![],'overwrite':!![],'filter'(_0x373428){const _0x211527=a98_0x24b1;if(lstatSync(_0x373428)[_0x211527(0x187)]())throw CliErrors['validation'](_0x211527(0x183)+_0x373428);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x7e7855,_0x546277){const _0x39a405=a99_0x3d5e,_0x43e6fb=_0x7e7855();while(!![]){try{const _0x2d7245=parseInt(_0x39a405(0x1bd))/0x1*(-parseInt(_0x39a405(0x1cd))/0x2)+parseInt(_0x39a405(0x1b7))/0x3+-parseInt(_0x39a405(0x1d5))/0x4+-parseInt(_0x39a405(0x1d9))/0x5+parseInt(_0x39a405(0x1cc))/0x6*(-parseInt(_0x39a405(0x1b3))/0x7)+-parseInt(_0x39a405(0x1d4))/0x8*(parseInt(_0x39a405(0x1dc))/0x9)+-parseInt(_0x39a405(0x1c4))/0xa*(-parseInt(_0x39a405(0x1bb))/0xb);if(_0x2d7245===_0x546277)break;else _0x43e6fb['push'](_0x43e6fb['shift']());}catch(_0x18ce1f){_0x43e6fb['push'](_0x43e6fb['shift']());}}}(a99_0x30e9,0x2d392));function a99_0x3d5e(_0x48acfd,_0x4072cb){_0x48acfd=_0x48acfd-0x1b1;const _0x30e90c=a99_0x30e9();let _0x3d5eab=_0x30e90c[_0x48acfd];return _0x3d5eab;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';function a99_0x30e9(){const _0x957d4=['sort','map','skillCode','1616745UPuTfg','metadataPath','scopes','16470QIErtQ','has','values','28JuyErP','dir','filter','trim','190719YifTGP','env','isDirectory','from','9669ylIeCm','name','2QuXYYh','link','skillMdPath','linkedPath','cache','isSymbolicLink','push','16070jCEwaE','isArray','set','claudeSkillsDir','localeCompare','includes','appCode','linkedPaths','515076jcNSsW','268442ZVWvvh','scope','source','builtin','cacheDir','tags','code','480qfOSUa','983668SQveFE'];a99_0x30e9=function(){return _0x957d4;};return a99_0x30e9();}export function listLocalRuntimeSkills(_0x2c02c9,_0x395fa1={}){const _0x5296e4=a99_0x3d5e,_0x4e5f1f=safePathSegment(_0x2c02c9['appCode'],_0x5296e4(0x1ca)),_0x30ec82=normalizeRuntimeSkillScopes(_0x2c02c9[_0x5296e4(0x1db)]),_0x3f7b56=new Set(_0x30ec82),_0x508799=_0x2c02c9[_0x5296e4(0x1d3)]?.[_0x5296e4(0x1b6)](),_0x34f9ae=new Map(),_0x224e02=resolve(getRuntimeSkillCacheRoot(_0x2c02c9[_0x5296e4(0x1b8)],_0x2c02c9['accessKey'],_0x395fa1),_0x4e5f1f);for(const _0x3d4fa8 of _0x30ec82){for(const _0x240bf0 of localSkillEntryDirs(resolve(_0x224e02,_0x3d4fa8))){collectLocalRuntimeSkill(_0x34f9ae,_0x240bf0,{'appCode':_0x4e5f1f,'scopes':_0x3f7b56,'code':_0x508799,'source':_0x5296e4(0x1c1)});}}const _0x414f9b=resolveSkillSyncPaths(_0x395fa1);for(const _0x5c70eb of[_0x414f9b['agentsSkillsDir'],_0x414f9b[_0x5296e4(0x1c7)]]){for(const _0x25fdd4 of localSkillLinkCandidates(_0x5c70eb,_0x4e5f1f,_0x3f7b56)){collectLocalRuntimeSkill(_0x34f9ae,_0x25fdd4,{'appCode':_0x4e5f1f,'scopes':_0x3f7b56,'code':_0x508799,'source':_0x5296e4(0x1be),'linkedPath':_0x25fdd4});}}return Array[_0x5296e4(0x1ba)](_0x34f9ae[_0x5296e4(0x1b2)]())['sort'](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x5ab583){const _0x46719c=a99_0x3d5e;if(!existsSync(_0x5ab583))return[];return readdirSync(_0x5ab583,{'withFileTypes':!![]})[_0x46719c(0x1b5)](_0x371847=>_0x371847[_0x46719c(0x1b9)]()||_0x371847[_0x46719c(0x1c2)]())[_0x46719c(0x1d7)](_0x151052=>resolve(_0x5ab583,_0x151052[_0x46719c(0x1bc)]));}function localSkillLinkCandidates(_0x164407,_0x3d7276,_0x505366){const _0x315100=a99_0x3d5e;if(!existsSync(_0x164407))return[];const _0x13f70f=_0x3d7276+'--';return readdirSync(_0x164407,{'withFileTypes':!![]})[_0x315100(0x1b5)](_0x27b583=>_0x27b583[_0x315100(0x1b9)]()||_0x27b583[_0x315100(0x1c2)]())[_0x315100(0x1b5)](_0x5360bc=>_0x5360bc[_0x315100(0x1bc)]['startsWith'](_0x13f70f)||_0x505366[_0x315100(0x1b1)](_0x315100(0x1d0)))[_0x315100(0x1d7)](_0x226d02=>resolve(_0x164407,_0x226d02[_0x315100(0x1bc)]));}function collectLocalRuntimeSkill(_0x5d0a17,_0x146196,_0x397d4d){const _0x5b864e=a99_0x3d5e,_0x1a26d5=resolve(_0x146196,METADATA_FILE),_0x3c7c2d=readMetadataIfPresent(_0x1a26d5);if(!_0x3c7c2d)return;if(_0x3c7c2d[_0x5b864e(0x1ca)]!==_0x397d4d[_0x5b864e(0x1ca)])return;if(!isRuntimeSkillScope(_0x3c7c2d[_0x5b864e(0x1ce)])||!_0x397d4d[_0x5b864e(0x1db)][_0x5b864e(0x1b1)](_0x3c7c2d[_0x5b864e(0x1ce)]))return;const _0x5c6ddd=_0x3c7c2d['skillCode']?.['trim']();if(!_0x5c6ddd)return;if(_0x397d4d[_0x5b864e(0x1d3)]&&_0x5c6ddd!==_0x397d4d[_0x5b864e(0x1d3)])return;const _0x549593=_0x3c7c2d[_0x5b864e(0x1ce)]+':'+_0x5c6ddd,_0x425bfb=_0x397d4d[_0x5b864e(0x1c0)]?[_0x397d4d[_0x5b864e(0x1c0)]]:[],_0x440ea5=_0x5d0a17['get'](_0x549593);if(_0x440ea5){_0x397d4d[_0x5b864e(0x1cf)]===_0x5b864e(0x1c1)&&(_0x440ea5['dir']=_0x146196,_0x440ea5[_0x5b864e(0x1d1)]=_0x146196,_0x440ea5[_0x5b864e(0x1bf)]=resolve(_0x146196,SKILL_FILE),_0x440ea5[_0x5b864e(0x1da)]=_0x1a26d5);for(const _0x1db35b of _0x425bfb){!_0x440ea5[_0x5b864e(0x1cb)][_0x5b864e(0x1c9)](_0x1db35b)&&_0x440ea5[_0x5b864e(0x1cb)][_0x5b864e(0x1c3)](_0x1db35b);}_0x440ea5[_0x5b864e(0x1cb)][_0x5b864e(0x1d6)]();return;}_0x5d0a17[_0x5b864e(0x1c6)](_0x549593,{..._0x3c7c2d,'tags':Array[_0x5b864e(0x1c5)](_0x3c7c2d[_0x5b864e(0x1d2)])?_0x3c7c2d[_0x5b864e(0x1d2)]:[],'scope':_0x3c7c2d[_0x5b864e(0x1ce)],'source':'local','dir':_0x146196,'cacheDir':_0x397d4d['source']===_0x5b864e(0x1c1)?_0x146196:undefined,'skillMdPath':resolve(_0x146196,SKILL_FILE),'metadataPath':_0x1a26d5,'linkedPaths':_0x425bfb});}function compareLocalRuntimeSkills(_0x59ac37,_0x492deb){const _0x27ae1d=a99_0x3d5e,_0x42e56d={'personal':0x0,'company':0x1,'builtin':0x2};return _0x42e56d[_0x59ac37[_0x27ae1d(0x1ce)]]-_0x42e56d[_0x492deb[_0x27ae1d(0x1ce)]]||_0x59ac37[_0x27ae1d(0x1d8)][_0x27ae1d(0x1c8)](_0x492deb[_0x27ae1d(0x1d8)])||_0x59ac37['dir'][_0x27ae1d(0x1c8)](_0x492deb[_0x27ae1d(0x1b4)]);}
1
+ (function(_0xc328d8,_0x27e46a){const _0x5a4965=a99_0x2424,_0x111e53=_0xc328d8();while(!![]){try{const _0x3ec993=-parseInt(_0x5a4965(0x1bd))/0x1+parseInt(_0x5a4965(0x1b0))/0x2+parseInt(_0x5a4965(0x19e))/0x3*(-parseInt(_0x5a4965(0x1b6))/0x4)+-parseInt(_0x5a4965(0x1a3))/0x5*(parseInt(_0x5a4965(0x1a4))/0x6)+parseInt(_0x5a4965(0x1bb))/0x7*(-parseInt(_0x5a4965(0x1a6))/0x8)+parseInt(_0x5a4965(0x198))/0x9*(-parseInt(_0x5a4965(0x1a5))/0xa)+parseInt(_0x5a4965(0x19d))/0xb;if(_0x3ec993===_0x27e46a)break;else _0x111e53['push'](_0x111e53['shift']());}catch(_0x4f17c2){_0x111e53['push'](_0x111e53['shift']());}}}(a99_0x2bcb,0xb7723));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';function a99_0x2424(_0x20a067,_0x3d8ca7){_0x20a067=_0x20a067-0x193;const _0x2bcb44=a99_0x2bcb();let _0x242436=_0x2bcb44[_0x20a067];return _0x242436;}export function listLocalRuntimeSkills(_0x3e1187,_0x336c0d={}){const _0x335b82=a99_0x2424,_0x145b78=safePathSegment(_0x3e1187[_0x335b82(0x19a)],_0x335b82(0x19a)),_0x1f1e74=normalizeRuntimeSkillScopes(_0x3e1187['scopes']),_0x2fed5f=new Set(_0x1f1e74),_0x3cf04a=_0x3e1187[_0x335b82(0x1b7)]?.[_0x335b82(0x1a1)](),_0x3e34a5=new Map(),_0x317998=resolve(getRuntimeSkillCacheRoot(_0x3e1187[_0x335b82(0x1b1)],_0x3e1187[_0x335b82(0x1ba)],_0x336c0d),_0x145b78);for(const _0x32c735 of _0x1f1e74){for(const _0x28ae99 of localSkillEntryDirs(resolve(_0x317998,_0x32c735))){collectLocalRuntimeSkill(_0x3e34a5,_0x28ae99,{'appCode':_0x145b78,'scopes':_0x2fed5f,'code':_0x3cf04a,'source':_0x335b82(0x1a9)});}}const _0x791653=resolveSkillSyncPaths(_0x336c0d);for(const _0x491abe of[_0x791653[_0x335b82(0x195)],_0x791653[_0x335b82(0x1ac)]]){for(const _0x596785 of localSkillLinkCandidates(_0x491abe,_0x145b78,_0x2fed5f)){collectLocalRuntimeSkill(_0x3e34a5,_0x596785,{'appCode':_0x145b78,'scopes':_0x2fed5f,'code':_0x3cf04a,'source':_0x335b82(0x1ab),'linkedPath':_0x596785});}}return Array[_0x335b82(0x19c)](_0x3e34a5[_0x335b82(0x1be)]())['sort'](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x4315c4){const _0xce5608=a99_0x2424;if(!existsSync(_0x4315c4))return[];return readdirSync(_0x4315c4,{'withFileTypes':!![]})[_0xce5608(0x1b5)](_0x52ab2c=>_0x52ab2c[_0xce5608(0x194)]()||_0x52ab2c[_0xce5608(0x196)]())[_0xce5608(0x19b)](_0x555c55=>resolve(_0x4315c4,_0x555c55[_0xce5608(0x1a2)]));}function a99_0x2bcb(){const _0x3bbebe=['code','startsWith','get','accessKey','7mmnWcT','scopes','852437lpVgUU','values','includes','isDirectory','agentsSkillsDir','isSymbolicLink','skillMdPath','135uxMAQw','linkedPaths','appCode','map','from','45854523suqKUF','239007GJiauK','push','set','trim','name','875395cmPaQE','12QZfQcv','911030QpOAeK','3785384jhUulq','local','dir','cache','metadataPath','link','claudeSkillsDir','linkedPath','localeCompare','tags','365596dnCQTI','env','scope','builtin','skillCode','filter','28hBBIZu'];a99_0x2bcb=function(){return _0x3bbebe;};return a99_0x2bcb();}function localSkillLinkCandidates(_0x461332,_0x5d203e,_0x2520ed){const _0x242b82=a99_0x2424;if(!existsSync(_0x461332))return[];const _0x3c2b93=_0x5d203e+'--';return readdirSync(_0x461332,{'withFileTypes':!![]})[_0x242b82(0x1b5)](_0x282c78=>_0x282c78['isDirectory']()||_0x282c78['isSymbolicLink']())[_0x242b82(0x1b5)](_0x378324=>_0x378324[_0x242b82(0x1a2)][_0x242b82(0x1b8)](_0x3c2b93)||_0x2520ed['has'](_0x242b82(0x1b3)))['map'](_0x83fd9=>resolve(_0x461332,_0x83fd9[_0x242b82(0x1a2)]));}function collectLocalRuntimeSkill(_0x597f98,_0x2ed043,_0x367dae){const _0x338f92=a99_0x2424,_0x2200e4=resolve(_0x2ed043,METADATA_FILE),_0x3474c7=readMetadataIfPresent(_0x2200e4);if(!_0x3474c7)return;if(_0x3474c7['appCode']!==_0x367dae['appCode'])return;if(!isRuntimeSkillScope(_0x3474c7[_0x338f92(0x1b2)])||!_0x367dae[_0x338f92(0x1bc)]['has'](_0x3474c7[_0x338f92(0x1b2)]))return;const _0x3bb511=_0x3474c7[_0x338f92(0x1b4)]?.['trim']();if(!_0x3bb511)return;if(_0x367dae[_0x338f92(0x1b7)]&&_0x3bb511!==_0x367dae['code'])return;const _0x13da60=_0x3474c7[_0x338f92(0x1b2)]+':'+_0x3bb511,_0x47c09a=_0x367dae[_0x338f92(0x1ad)]?[_0x367dae['linkedPath']]:[],_0x1573e0=_0x597f98[_0x338f92(0x1b9)](_0x13da60);if(_0x1573e0){_0x367dae['source']==='cache'&&(_0x1573e0['dir']=_0x2ed043,_0x1573e0['cacheDir']=_0x2ed043,_0x1573e0[_0x338f92(0x197)]=resolve(_0x2ed043,SKILL_FILE),_0x1573e0[_0x338f92(0x1aa)]=_0x2200e4);for(const _0x995324 of _0x47c09a){!_0x1573e0[_0x338f92(0x199)][_0x338f92(0x193)](_0x995324)&&_0x1573e0[_0x338f92(0x199)][_0x338f92(0x19f)](_0x995324);}_0x1573e0[_0x338f92(0x199)]['sort']();return;}_0x597f98[_0x338f92(0x1a0)](_0x13da60,{..._0x3474c7,'tags':Array['isArray'](_0x3474c7['tags'])?_0x3474c7[_0x338f92(0x1af)]:[],'scope':_0x3474c7[_0x338f92(0x1b2)],'source':_0x338f92(0x1a7),'dir':_0x2ed043,'cacheDir':_0x367dae['source']===_0x338f92(0x1a9)?_0x2ed043:undefined,'skillMdPath':resolve(_0x2ed043,SKILL_FILE),'metadataPath':_0x2200e4,'linkedPaths':_0x47c09a});}function compareLocalRuntimeSkills(_0x2ef0c9,_0xe85c27){const _0x563a30=a99_0x2424,_0x4310c3={'personal':0x0,'company':0x1,'builtin':0x2};return _0x4310c3[_0x2ef0c9['scope']]-_0x4310c3[_0xe85c27['scope']]||_0x2ef0c9[_0x563a30(0x1b4)][_0x563a30(0x1ae)](_0xe85c27[_0x563a30(0x1b4)])||_0x2ef0c9[_0x563a30(0x1a8)][_0x563a30(0x1ae)](_0xe85c27[_0x563a30(0x1a8)]);}
@@ -1 +1 @@
1
- function a100_0x44d1(){const _0x26805e=['content','toString','bytes','localeCompare','isSafeInteger','push','isDirectory','5404044KjTtck','Duplicate\x20Skill\x20file\x20path:\x20','compare','5rIkwaM','isBuffer','10kDTMkR','validation','49bDfBby','969wLewbB','includes','set','startsWith','1634exNLEc','isArray','Skill\x20file\x20path\x20must\x20be\x20text.','16vUNZyu','sha256','size','Unsafe\x20Skill\x20file\x20path:\x20','utf8','279068FyMpbs','sort','name','439038CdjPbo','has','object','path','string','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','208038FOvTLG','replace','length','toLowerCase','2799005CNBkUq','Skill\x20file\x20sha256\x20is\x20invalid:\x20','values','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','from','Skill\x20file\x20size\x20is\x20invalid:\x20','37093vUpFOb','split'];a100_0x44d1=function(){return _0x26805e;};return a100_0x44d1();}(function(_0xb7cde9,_0x3907c0){const _0x4476a3=a100_0x4de4,_0x57e15d=_0xb7cde9();while(!![]){try{const _0x1c4612=parseInt(_0x4476a3(0x109))/0x1+parseInt(_0x4476a3(0x11e))/0x2*(-parseInt(_0x4476a3(0x11a))/0x3)+-parseInt(_0x4476a3(0x126))/0x4*(-parseInt(_0x4476a3(0x115))/0x5)+-parseInt(_0x4476a3(0xff))/0x6*(parseInt(_0x4476a3(0x119))/0x7)+-parseInt(_0x4476a3(0x121))/0x8*(parseInt(_0x4476a3(0xf9))/0x9)+-parseInt(_0x4476a3(0x117))/0xa*(-parseInt(_0x4476a3(0x103))/0xb)+parseInt(_0x4476a3(0x112))/0xc;if(_0x1c4612===_0x3907c0)break;else _0x57e15d['push'](_0x57e15d['shift']());}catch(_0x23430a){_0x57e15d['push'](_0x57e15d['shift']());}}}(a100_0x44d1,0x32a7e));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x127f7b){const _0x3945d9=a100_0x4de4;return _0x127f7b[_0x3945d9(0x10d)]??Buffer[_0x3945d9(0x107)](_0x127f7b[_0x3945d9(0x10b)]??'',_0x3945d9(0x125));}export function fileText(_0x9dbc96){const _0x3243cf=a100_0x4de4;return fileContent(_0x9dbc96)[_0x3243cf(0x10c)](_0x3243cf(0x125));}export function normalizeLocalFiles(_0x2959ab){const _0x3ef574=a100_0x4de4;if(!Array[_0x3ef574(0x11f)](_0x2959ab)||_0x2959ab[_0x3ef574(0x101)]===0x0)return[];const _0x4ff41d=new Map();for(const _0x2234a6 of _0x2959ab){if(!_0x2234a6||typeof _0x2234a6!==_0x3ef574(0xfb)||typeof _0x2234a6[_0x3ef574(0xfc)]!==_0x3ef574(0xfd))throw CliErrors[_0x3ef574(0x118)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x16f990=normalizeSkillRelativePath(_0x2234a6['path']);if(_0x4ff41d[_0x3ef574(0xfa)](_0x16f990))throw CliErrors['validation'](_0x3ef574(0x113)+_0x16f990);if(_0x2234a6[_0x3ef574(0x10d)]!==undefined&&!Buffer[_0x3ef574(0x116)](_0x2234a6[_0x3ef574(0x10d)]))throw CliErrors[_0x3ef574(0x118)](_0x3ef574(0xfe)+_0x16f990);if(_0x2234a6['bytes']===undefined&&typeof _0x2234a6['content']!==_0x3ef574(0xfd))throw CliErrors[_0x3ef574(0x118)](_0x3ef574(0x106)+_0x16f990);const _0x4508e6=fileContent(_0x2234a6);_0x4ff41d['set'](_0x16f990,{'path':_0x16f990,'bytes':_0x4508e6});}return Array['from'](_0x4ff41d[_0x3ef574(0x105)]())[_0x3ef574(0x127)](compareSkillFiles);}export function normalizeManifestFiles(_0x1b6a2e){const _0x1df67a=a100_0x4de4;if(!Array[_0x1df67a(0x11f)](_0x1b6a2e)||_0x1b6a2e[_0x1df67a(0x101)]===0x0)return[];const _0x47bf06=new Map();for(const _0x44cff6 of _0x1b6a2e){if(!_0x44cff6||typeof _0x44cff6!=='object'||typeof _0x44cff6[_0x1df67a(0xfc)]!==_0x1df67a(0xfd))throw CliErrors[_0x1df67a(0x118)](_0x1df67a(0x120));const _0x5944c7=normalizeSkillRelativePath(_0x44cff6['path']);if(_0x47bf06['has'](_0x5944c7))throw CliErrors[_0x1df67a(0x118)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x5944c7);if(!isSha256Hex(_0x44cff6[_0x1df67a(0x122)]))throw CliErrors[_0x1df67a(0x118)](_0x1df67a(0x104)+_0x5944c7);if(!Number[_0x1df67a(0x10f)](_0x44cff6[_0x1df67a(0x123)])||_0x44cff6['size']<0x0)throw CliErrors[_0x1df67a(0x118)](_0x1df67a(0x108)+_0x5944c7);_0x47bf06[_0x1df67a(0x11c)](_0x5944c7,{'path':_0x5944c7,'sha256':_0x44cff6[_0x1df67a(0x122)][_0x1df67a(0x102)](),'size':_0x44cff6['size']});}return Array['from'](_0x47bf06[_0x1df67a(0x105)]())[_0x1df67a(0x127)](compareSkillFiles);}export function scanSkillDirectory(_0x7d6f3a){const _0x77583d=realpathSync(_0x7d6f3a),_0xbec1e4=[];function _0x412409(_0x10d7b9){const _0x5e288b=a100_0x4de4,_0x3e635b=readdirSync(_0x10d7b9,{'withFileTypes':!![]})[_0x5e288b(0x127)]((_0x26ef49,_0x588974)=>_0x26ef49['name'][_0x5e288b(0x10e)](_0x588974[_0x5e288b(0x128)]));for(const _0x14c496 of _0x3e635b){if(_0x14c496[_0x5e288b(0x111)]()&&IGNORED_DIR_NAMES['has'](_0x14c496[_0x5e288b(0x128)]))continue;if(IGNORED_FILE_NAMES[_0x5e288b(0xfa)](_0x14c496[_0x5e288b(0x128)]))continue;const _0x415622=resolve(_0x10d7b9,_0x14c496[_0x5e288b(0x128)]);if(_0x14c496['isSymbolicLink']())throw CliErrors[_0x5e288b(0x118)]('Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20'+_0x415622);const _0x4865ac=toPosixPath(relative(_0x77583d,_0x415622));if(_0x14c496[_0x5e288b(0x111)]()){_0x412409(_0x415622);continue;}if(!_0x14c496['isFile']())continue;validateSkillRelativePath(_0x4865ac);const _0x1e8a2d=readFileSync(_0x415622);_0xbec1e4[_0x5e288b(0x110)]({'path':_0x4865ac,'bytes':_0x1e8a2d});}}return _0x412409(_0x77583d),normalizeLocalFiles(_0xbec1e4);}export function compareSkillFiles(_0x475229,_0x272f09){const _0x42b0b2=a100_0x4de4;if(_0x475229[_0x42b0b2(0xfc)]===SKILL_FILE)return _0x272f09[_0x42b0b2(0xfc)]===SKILL_FILE?0x0:-0x1;if(_0x272f09[_0x42b0b2(0xfc)]===SKILL_FILE)return 0x1;return Buffer[_0x42b0b2(0x114)](Buffer[_0x42b0b2(0x107)](_0x475229[_0x42b0b2(0xfc)],_0x42b0b2(0x125)),Buffer[_0x42b0b2(0x107)](_0x272f09[_0x42b0b2(0xfc)],_0x42b0b2(0x125)));}export function normalizeSkillRelativePath(_0x527e7c){const _0x417a4c=toPosixPath(_0x527e7c['trim']());return validateSkillRelativePath(_0x417a4c),_0x417a4c;}function a100_0x4de4(_0x382129,_0x57196d){_0x382129=_0x382129-0xf9;const _0x44d188=a100_0x44d1();let _0x4de46a=_0x44d188[_0x382129];return _0x4de46a;}export function validateSkillRelativePath(_0x4f744f){const _0x5b1ebf=a100_0x4de4;if(!_0x4f744f||_0x4f744f[_0x5b1ebf(0x11d)]('/')||_0x4f744f[_0x5b1ebf(0x11b)]('//'))throw CliErrors[_0x5b1ebf(0x118)](_0x5b1ebf(0x124)+_0x4f744f);for(const _0xb3242 of _0x4f744f[_0x5b1ebf(0x10a)]('/')){if(!_0xb3242||_0xb3242==='.'||_0xb3242==='..')throw CliErrors[_0x5b1ebf(0x118)](_0x5b1ebf(0x124)+_0x4f744f);}}export function toPosixPath(_0x5566d2){const _0x56b72a=a100_0x4de4;return _0x5566d2[_0x56b72a(0x100)](/\\/g,'/');}export function isSha256Hex(_0x3975c6){const _0x1e0e6c=a100_0x4de4;return typeof _0x3975c6===_0x1e0e6c(0xfd)&&/^[a-fA-F0-9]{64}$/['test'](_0x3975c6);}
1
+ (function(_0x3db9de,_0x378d02){const _0x40d078=a100_0x132f,_0x4532ef=_0x3db9de();while(!![]){try{const _0x4306dd=parseInt(_0x40d078(0x134))/0x1*(parseInt(_0x40d078(0x112))/0x2)+-parseInt(_0x40d078(0x113))/0x3+parseInt(_0x40d078(0x12e))/0x4+parseInt(_0x40d078(0x124))/0x5+parseInt(_0x40d078(0x123))/0x6*(parseInt(_0x40d078(0x117))/0x7)+-parseInt(_0x40d078(0x114))/0x8*(parseInt(_0x40d078(0x115))/0x9)+-parseInt(_0x40d078(0x10f))/0xa*(-parseInt(_0x40d078(0x11f))/0xb);if(_0x4306dd===_0x378d02)break;else _0x4532ef['push'](_0x4532ef['shift']());}catch(_0x4fd976){_0x4532ef['push'](_0x4532ef['shift']());}}}(a100_0x4705,0xd94d8));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x25e8f7){const _0x4c4643=a100_0x132f;return _0x25e8f7[_0x4c4643(0x120)]??Buffer[_0x4c4643(0x12c)](_0x25e8f7['content']??'',_0x4c4643(0x127));}export function fileText(_0x53b211){const _0x247cfe=a100_0x132f;return fileContent(_0x53b211)[_0x247cfe(0x10e)]('utf8');}export function normalizeLocalFiles(_0x363a4d){const _0x2bae80=a100_0x132f;if(!Array[_0x2bae80(0x138)](_0x363a4d)||_0x363a4d[_0x2bae80(0x13a)]===0x0)return[];const _0x25b007=new Map();for(const _0x3bd052 of _0x363a4d){if(!_0x3bd052||typeof _0x3bd052!==_0x2bae80(0x122)||typeof _0x3bd052['path']!==_0x2bae80(0x132))throw CliErrors[_0x2bae80(0x128)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x3850a1=normalizeSkillRelativePath(_0x3bd052[_0x2bae80(0x131)]);if(_0x25b007[_0x2bae80(0x135)](_0x3850a1))throw CliErrors['validation'](_0x2bae80(0x12b)+_0x3850a1);if(_0x3bd052[_0x2bae80(0x120)]!==undefined&&!Buffer[_0x2bae80(0x11d)](_0x3bd052['bytes']))throw CliErrors[_0x2bae80(0x128)](_0x2bae80(0x110)+_0x3850a1);if(_0x3bd052['bytes']===undefined&&typeof _0x3bd052[_0x2bae80(0x139)]!=='string')throw CliErrors[_0x2bae80(0x128)](_0x2bae80(0x12d)+_0x3850a1);const _0x26d206=fileContent(_0x3bd052);_0x25b007[_0x2bae80(0x12a)](_0x3850a1,{'path':_0x3850a1,'bytes':_0x26d206});}return Array[_0x2bae80(0x12c)](_0x25b007[_0x2bae80(0x130)]())['sort'](compareSkillFiles);}function a100_0x4705(){const _0x364829=['Duplicate\x20Skill\x20file\x20path:\x20','from','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','643732BVxesm','localeCompare','values','path','string','test','1619791OpemSh','has','Skill\x20file\x20path\x20must\x20be\x20text.','includes','isArray','content','length','split','compare','toLowerCase','isDirectory','toString','3297040GrABjh','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','isSymbolicLink','2BmvrvG','3309339KePOeM','72tFalUj','1626597cxshkK','sort','7BefhCQ','size','startsWith','sha256','isSafeInteger','Skill\x20file\x20size\x20is\x20invalid:\x20','isBuffer','push','33KhzZNv','bytes','Unsafe\x20Skill\x20file\x20path:\x20','object','2885712kXMcSh','1844970DWyUHj','name','replace','utf8','validation','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','set'];a100_0x4705=function(){return _0x364829;};return a100_0x4705();}export function normalizeManifestFiles(_0x42eff4){const _0x2afb19=a100_0x132f;if(!Array['isArray'](_0x42eff4)||_0x42eff4[_0x2afb19(0x13a)]===0x0)return[];const _0x5cde7d=new Map();for(const _0x1a542e of _0x42eff4){if(!_0x1a542e||typeof _0x1a542e!==_0x2afb19(0x122)||typeof _0x1a542e['path']!==_0x2afb19(0x132))throw CliErrors[_0x2afb19(0x128)](_0x2afb19(0x136));const _0x2270ba=normalizeSkillRelativePath(_0x1a542e[_0x2afb19(0x131)]);if(_0x5cde7d[_0x2afb19(0x135)](_0x2270ba))throw CliErrors[_0x2afb19(0x128)](_0x2afb19(0x12b)+_0x2270ba);if(!isSha256Hex(_0x1a542e[_0x2afb19(0x11a)]))throw CliErrors[_0x2afb19(0x128)]('Skill\x20file\x20sha256\x20is\x20invalid:\x20'+_0x2270ba);if(!Number[_0x2afb19(0x11b)](_0x1a542e[_0x2afb19(0x118)])||_0x1a542e[_0x2afb19(0x118)]<0x0)throw CliErrors[_0x2afb19(0x128)](_0x2afb19(0x11c)+_0x2270ba);_0x5cde7d[_0x2afb19(0x12a)](_0x2270ba,{'path':_0x2270ba,'sha256':_0x1a542e[_0x2afb19(0x11a)][_0x2afb19(0x13d)](),'size':_0x1a542e[_0x2afb19(0x118)]});}return Array['from'](_0x5cde7d['values']())[_0x2afb19(0x116)](compareSkillFiles);}export function scanSkillDirectory(_0x144e27){const _0x350e00=realpathSync(_0x144e27),_0x59d327=[];function _0x28a8b9(_0x73c0d1){const _0x4029d5=a100_0x132f,_0xde56c1=readdirSync(_0x73c0d1,{'withFileTypes':!![]})[_0x4029d5(0x116)]((_0xae9e8e,_0x3ce783)=>_0xae9e8e[_0x4029d5(0x125)][_0x4029d5(0x12f)](_0x3ce783[_0x4029d5(0x125)]));for(const _0x3e2053 of _0xde56c1){if(_0x3e2053['isDirectory']()&&IGNORED_DIR_NAMES[_0x4029d5(0x135)](_0x3e2053[_0x4029d5(0x125)]))continue;if(IGNORED_FILE_NAMES[_0x4029d5(0x135)](_0x3e2053[_0x4029d5(0x125)]))continue;const _0x29f5fd=resolve(_0x73c0d1,_0x3e2053['name']);if(_0x3e2053[_0x4029d5(0x111)]())throw CliErrors[_0x4029d5(0x128)](_0x4029d5(0x129)+_0x29f5fd);const _0x41a49c=toPosixPath(relative(_0x350e00,_0x29f5fd));if(_0x3e2053[_0x4029d5(0x10d)]()){_0x28a8b9(_0x29f5fd);continue;}if(!_0x3e2053['isFile']())continue;validateSkillRelativePath(_0x41a49c);const _0x3c9193=readFileSync(_0x29f5fd);_0x59d327[_0x4029d5(0x11e)]({'path':_0x41a49c,'bytes':_0x3c9193});}}return _0x28a8b9(_0x350e00),normalizeLocalFiles(_0x59d327);}export function compareSkillFiles(_0x4867bd,_0x24421c){const _0x383d64=a100_0x132f;if(_0x4867bd[_0x383d64(0x131)]===SKILL_FILE)return _0x24421c[_0x383d64(0x131)]===SKILL_FILE?0x0:-0x1;if(_0x24421c[_0x383d64(0x131)]===SKILL_FILE)return 0x1;return Buffer[_0x383d64(0x13c)](Buffer[_0x383d64(0x12c)](_0x4867bd[_0x383d64(0x131)],_0x383d64(0x127)),Buffer[_0x383d64(0x12c)](_0x24421c[_0x383d64(0x131)],'utf8'));}function a100_0x132f(_0x1bc1b2,_0x118546){_0x1bc1b2=_0x1bc1b2-0x10d;const _0x47057c=a100_0x4705();let _0x132f11=_0x47057c[_0x1bc1b2];return _0x132f11;}export function normalizeSkillRelativePath(_0x579b44){const _0x5bc2f9=toPosixPath(_0x579b44['trim']());return validateSkillRelativePath(_0x5bc2f9),_0x5bc2f9;}export function validateSkillRelativePath(_0xb3720e){const _0x343298=a100_0x132f;if(!_0xb3720e||_0xb3720e[_0x343298(0x119)]('/')||_0xb3720e[_0x343298(0x137)]('//'))throw CliErrors[_0x343298(0x128)](_0x343298(0x121)+_0xb3720e);for(const _0x14aeb8 of _0xb3720e[_0x343298(0x13b)]('/')){if(!_0x14aeb8||_0x14aeb8==='.'||_0x14aeb8==='..')throw CliErrors['validation'](_0x343298(0x121)+_0xb3720e);}}export function toPosixPath(_0x4e9e83){const _0x58a068=a100_0x132f;return _0x4e9e83[_0x58a068(0x126)](/\\/g,'/');}export function isSha256Hex(_0x45a8d1){const _0x2a68b6=a100_0x132f;return typeof _0x45a8d1==='string'&&/^[a-fA-F0-9]{64}$/[_0x2a68b6(0x133)](_0x45a8d1);}
@@ -1 +1 @@
1
- (function(_0x2cfe32,_0x10bba3){const _0x5cbfb3=a101_0x3aa5,_0x47df5d=_0x2cfe32();while(!![]){try{const _0x144aab=-parseInt(_0x5cbfb3(0x6c))/0x1*(-parseInt(_0x5cbfb3(0x7f))/0x2)+-parseInt(_0x5cbfb3(0x70))/0x3+parseInt(_0x5cbfb3(0x91))/0x4+-parseInt(_0x5cbfb3(0x96))/0x5+parseInt(_0x5cbfb3(0x8c))/0x6*(parseInt(_0x5cbfb3(0x7c))/0x7)+-parseInt(_0x5cbfb3(0x85))/0x8*(-parseInt(_0x5cbfb3(0x8e))/0x9)+-parseInt(_0x5cbfb3(0x97))/0xa;if(_0x144aab===_0x10bba3)break;else _0x47df5d['push'](_0x47df5d['shift']());}catch(_0x7fcb72){_0x47df5d['push'](_0x47df5d['shift']());}}}(a101_0x30f5,0xe80e6));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isMap,parseDocument}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';function a101_0x3aa5(_0xf0f4a1,_0x28a14d){_0xf0f4a1=_0xf0f4a1-0x68;const _0x30f5e3=a101_0x30f5();let _0x3aa5b0=_0x30f5e3[_0xf0f4a1];return _0x3aa5b0;}import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x26b75f,_0xe6f785,_0x3eeecc){const _0x54ff71=a101_0x3aa5,_0x2d33ca=requireSkillCode(_0x26b75f),_0x2d365c=requirePackageBytes(_0x2d33ca,_0x3eeecc[_0x54ff71(0x6f)]),_0x4870ea=extractDownloadedPackage(_0x2d365c),_0x1fcdb8=_0x4870ea[_0x54ff71(0x94)](_0x88576c=>_0x88576c[_0x54ff71(0x98)]===SKILL_FILE);if(!_0x1fcdb8)throw CliErrors[_0x54ff71(0x72)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x2d33ca);const _0x57e8e1=withMaterializedSkillFrontmatter(_0x4870ea,_0x26b75f,_0x2d33ca),_0x4a0865=_0x57e8e1[_0x54ff71(0x94)](_0x13734b=>_0x13734b['path']===SKILL_FILE),_0xd307d6=fileText(_0x4a0865),_0x230faa=getRuntimeSkillDir(_0x3eeecc['env'],_0x3eeecc[_0x54ff71(0x77)],_0x3eeecc['appCode'],_0xe6f785,_0x2d33ca,_0x3eeecc[_0x54ff71(0x7b)]),_0x4670a2=resolve(_0x230faa,SKILL_FILE),_0x44936f=resolve(_0x230faa,METADATA_FILE),_0x54dc39=contentHash(_0xd307d6),_0x145466=readMetadataIfPresent(_0x44936f)?.['fileHashes'];ensurePulledFilesCanBeOverwritten(_0x230faa,_0x44936f,_0x57e8e1,_0x3eeecc[_0x54ff71(0x7d)]===!![]),mkdirSync(_0x230faa,{'recursive':!![],'mode':0x1c0});const _0x524064=existsSync(_0x4670a2)?readFileSync(_0x4670a2,_0x54ff71(0x92)):undefined;return materializeFiles(_0x230faa,_0x57e8e1),removeStaleManagedFiles(_0x230faa,_0x145466,_0x57e8e1),writeJsonAtomic(_0x44936f,buildMetadata(_0x26b75f,_0xe6f785,_0x3eeecc[_0x54ff71(0x8f)],_0x54dc39,_0x3eeecc[_0x54ff71(0x8b)],_0x57e8e1,_0x2d365c)),{'skill':_0x26b75f,'scope':_0xe6f785,'dir':_0x230faa,'skillMdPath':_0x4670a2,'metadataPath':_0x44936f,'contentHash':_0x54dc39,'changed':_0x524064!==_0xd307d6};}function withMaterializedSkillFrontmatter(_0x442b68,_0x1b21ea,_0x416038){const _0x599855=a101_0x3aa5,_0x51c679=skillDisplayName(_0x1b21ea,_0x416038),_0x241a8b=_0x1b21ea[_0x599855(0x6d)]?.[_0x599855(0x80)]()||_0x51c679||_0x416038;return normalizeLocalFiles(_0x442b68)[_0x599855(0x68)](_0x9c14c3=>{const _0x63112=_0x599855,_0x7b2b77=fileText(_0x9c14c3);if(_0x9c14c3[_0x63112(0x98)]!==SKILL_FILE)return _0x9c14c3;if(hasYamlFrontmatter(_0x7b2b77))return{'path':_0x9c14c3[_0x63112(0x98)],'content':withSyncedDisplayName(_0x7b2b77,_0x51c679)};return{'path':_0x9c14c3[_0x63112(0x98)],'content':prependSkillFrontmatter(_0x7b2b77,{'name':_0x416038,'displayName':_0x51c679,'description':_0x241a8b})};});}function hasYamlFrontmatter(_0x1d2357){const _0x29bbb6=a101_0x3aa5;return/^\uFEFF?---\s*\r?\n/[_0x29bbb6(0x6e)](_0x1d2357);}function a101_0x30f5(){const _0x1d88da=['3711200WPDwdr','utf8','trimEnd','find','replace','2300135yNjglv','1576460jcvmrO','path','displayName','filter','keys','displayName:\x20','map','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','isFile','---','778CkgduV','description','test','packageBytes','4474779XeJJMK','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','validation','slice','skillName','has','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','accessKey','match','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','paths','14ZSSpAp','force','contentHash','2586SQOvCD','trim','Managed\x20file\x20was\x20removed\x20locally:\x20','entries','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','fileHashes','16ExQtgk','length','contents','delete','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','name:\x20','pulledAt','3291726aRpUCr','set','129474nUStwO','appCode','stringify'];a101_0x30f5=function(){return _0x1d88da;};return a101_0x30f5();}function prependSkillFrontmatter(_0x14f186,_0x1296bd){const _0x4c8ead=a101_0x3aa5,_0xe2430e=_0x14f186[_0x4c8ead(0x95)](/^\uFEFF/,'');return[_0x4c8ead(0x6b),_0x4c8ead(0x8a)+yamlString(_0x1296bd['name']),_0x1296bd[_0x4c8ead(0x99)]?_0x4c8ead(0x9c)+yamlString(_0x1296bd[_0x4c8ead(0x99)]):undefined,'description:\x20'+yamlString(_0x1296bd[_0x4c8ead(0x6d)]),_0x4c8ead(0x6b),'',_0xe2430e][_0x4c8ead(0x9a)](_0xccea22=>_0xccea22!==undefined)['join']('\x0a');}function yamlString(_0x4e8c26){const _0x5ad566=a101_0x3aa5;return JSON[_0x5ad566(0x90)](_0x4e8c26[_0x5ad566(0x95)](/\r/g,'')[_0x5ad566(0x80)]());}function skillDisplayName(_0xfacbdf,_0x157bd0){const _0x4912c3=a101_0x3aa5,_0x41bf0c=_0xfacbdf[_0x4912c3(0x74)]?.['trim']();return _0x41bf0c&&_0x41bf0c!==_0x157bd0?_0x41bf0c:undefined;}function withSyncedDisplayName(_0x50cd1d,_0x47938e){const _0x13f6ad=a101_0x3aa5,_0x2157a1=_0x50cd1d[_0x13f6ad(0x78)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2157a1)return _0x50cd1d;const _0x41b88f=_0x2157a1[0x1]??'',_0x297bf1=_0x2157a1[0x2]??'',_0x6ddea1=parseDocument(_0x297bf1);if(_0x6ddea1['errors'][_0x13f6ad(0x86)]>0x0||!isMap(_0x6ddea1[_0x13f6ad(0x87)]))return _0x50cd1d;if(_0x47938e)_0x6ddea1[_0x13f6ad(0x8d)](_0x13f6ad(0x99),_0x47938e);else{if(_0x6ddea1[_0x13f6ad(0x75)](_0x13f6ad(0x99)))_0x6ddea1[_0x13f6ad(0x88)]('displayName');else return _0x50cd1d;}const _0x5ab778=String(_0x6ddea1)[_0x13f6ad(0x93)](),_0x382eee=_0x50cd1d[_0x13f6ad(0x73)](_0x2157a1[0x0]['length'])[_0x13f6ad(0x95)](/^\r?\n/,'');return _0x41b88f+'---\x0a'+_0x5ab778+'\x0a---\x0a\x0a'+_0x382eee;}function ensurePulledFilesCanBeOverwritten(_0x46e9e2,_0x3c6326,_0x29f11e,_0x576796){const _0x469798=a101_0x3aa5;if(_0x576796||!existsSync(_0x3c6326))return;const _0x1d24be=readMetadataIfPresent(_0x3c6326);if(!_0x1d24be)return;const _0x1ada92=_0x1d24be[_0x469798(0x84)]&&Object[_0x469798(0x9b)](_0x1d24be[_0x469798(0x84)])[_0x469798(0x86)]>0x0?_0x1d24be['fileHashes']:undefined;if(_0x1ada92)for(const [_0x4b9b64,_0x4c7911]of Object[_0x469798(0x82)](_0x1ada92)){const _0x3b05cc=resolveManagedFilePath(_0x46e9e2,_0x4b9b64);if(!existsSync(_0x3b05cc))throw CliErrors[_0x469798(0x72)](_0x469798(0x71)+_0x46e9e2,_0x469798(0x81)+_0x4b9b64);const _0x5f34c3=lstatSync(_0x3b05cc);if(!_0x5f34c3['isFile']())throw CliErrors[_0x469798(0x72)](_0x469798(0x71)+_0x46e9e2,_0x469798(0x89)+_0x4b9b64);const _0xca7579=bufferSha256(readFileSync(_0x3b05cc));if(_0xca7579!==_0x4c7911)throw CliErrors[_0x469798(0x72)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x46e9e2+'.\x20Changed\x20file:\x20'+_0x4b9b64,_0x469798(0x7a)+_0x4b9b64);}else{const _0x19a0b1=resolve(_0x46e9e2,SKILL_FILE);if(existsSync(_0x19a0b1)&&_0x1d24be['contentHash']){const _0x782383=contentHash(readFileSync(_0x19a0b1,_0x469798(0x92)));if(_0x782383!==_0x1d24be[_0x469798(0x7e)])throw CliErrors[_0x469798(0x72)](_0x469798(0x79)+_0x19a0b1,_0x469798(0x83));}}for(const _0x1d2795 of normalizeLocalFiles(_0x29f11e)){if(_0x1ada92?.[_0x1d2795[_0x469798(0x98)]])continue;if(!_0x1ada92&&_0x1d2795[_0x469798(0x98)]===SKILL_FILE)continue;const _0x2e2fc2=resolveManagedFilePath(_0x46e9e2,_0x1d2795[_0x469798(0x98)]);if(!existsSync(_0x2e2fc2))continue;const _0x1dd26e=lstatSync(_0x2e2fc2);if(!_0x1dd26e[_0x469798(0x6a)]())throw CliErrors['validation'](_0x469798(0x71)+_0x46e9e2,_0x469798(0x76)+_0x1d2795[_0x469798(0x98)]);const _0x17f73c=bufferSha256(readFileSync(_0x2e2fc2));if(_0x17f73c!==fileHash(_0x1d2795))throw CliErrors[_0x469798(0x72)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x46e9e2,_0x469798(0x69)+_0x1d2795[_0x469798(0x98)]);}}function materializeFiles(_0x10cfe0,_0x1644fa){const _0x5427d7=a101_0x3aa5;for(const _0xbe76c0 of normalizeLocalFiles(_0x1644fa)){const _0x5120fa=resolveManagedFilePath(_0x10cfe0,_0xbe76c0[_0x5427d7(0x98)]);mkdirSync(dirname(_0x5120fa),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x5120fa,fileContent(_0xbe76c0),0x180);}}function removeStaleManagedFiles(_0x54a96c,_0x162b9e,_0x84572d){const _0x4f5ba0=a101_0x3aa5;if(!_0x162b9e)return;const _0x3cf80a=new Set(normalizeLocalFiles(_0x84572d)[_0x4f5ba0(0x68)](_0x221363=>_0x221363['path']));for(const _0x39b902 of Object[_0x4f5ba0(0x9b)](_0x162b9e)){if(_0x3cf80a[_0x4f5ba0(0x75)](_0x39b902))continue;const _0x21d71e=resolveManagedFilePath(_0x54a96c,_0x39b902);existsSync(_0x21d71e)&&lstatSync(_0x21d71e)['isFile']()&&rmSync(_0x21d71e,{'force':!![]});}}
1
+ (function(_0xfd62c0,_0x547550){const _0x459a48=a101_0x2574,_0xc892e6=_0xfd62c0();while(!![]){try{const _0x4d6138=-parseInt(_0x459a48(0x135))/0x1*(-parseInt(_0x459a48(0x122))/0x2)+-parseInt(_0x459a48(0x146))/0x3*(parseInt(_0x459a48(0x128))/0x4)+-parseInt(_0x459a48(0x14d))/0x5*(-parseInt(_0x459a48(0x151))/0x6)+parseInt(_0x459a48(0x125))/0x7*(parseInt(_0x459a48(0x130))/0x8)+-parseInt(_0x459a48(0x138))/0x9+parseInt(_0x459a48(0x12b))/0xa+parseInt(_0x459a48(0x129))/0xb;if(_0x4d6138===_0x547550)break;else _0xc892e6['push'](_0xc892e6['shift']());}catch(_0x254cdf){_0xc892e6['push'](_0xc892e6['shift']());}}}(a101_0x4e6c,0xc45da));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isMap,parseDocument}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';function a101_0x4e6c(){const _0x5576ac=['length','test','description','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','env','map','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','39yOzkGU','entries','appCode','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','stringify','contents','displayName','365DWgUtx','---\x0a','trimEnd','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','17634ldOVhr','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','skillName','name','displayName:\x20','89428XvYYHO','force','utf8','7CZXjVm','pulledAt','Managed\x20file\x20was\x20removed\x20locally:\x20','274136pNcDWQ','8420302JEThje','Runtime\x20Skill\x20package\x20is\x20missing\x20','2456850OgBdDl','replace','trim','validation','path','3669576MaFiPi','.\x20Changed\x20file:\x20','fileHashes','isFile','keys','19ohCMfB','has','---','7548489SrrMlw','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','accessKey','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','contentHash','filter','join'];a101_0x4e6c=function(){return _0x5576ac;};return a101_0x4e6c();}import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';function a101_0x2574(_0x45ac48,_0xd008a9){_0x45ac48=_0x45ac48-0x122;const _0x4e6c47=a101_0x4e6c();let _0x2574a1=_0x4e6c47[_0x45ac48];return _0x2574a1;}import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x578b3f,_0x5da9fa,_0xf7cb6){const _0x20a466=a101_0x2574,_0x3f2681=requireSkillCode(_0x578b3f),_0xebf01c=requirePackageBytes(_0x3f2681,_0xf7cb6['packageBytes']),_0x35a0c9=extractDownloadedPackage(_0xebf01c),_0xc3e2e3=_0x35a0c9['find'](_0xe9716e=>_0xe9716e[_0x20a466(0x12f)]===SKILL_FILE);if(!_0xc3e2e3)throw CliErrors[_0x20a466(0x12e)](_0x20a466(0x12a)+SKILL_FILE+':\x20'+_0x3f2681);const _0x41c142=withMaterializedSkillFrontmatter(_0x35a0c9,_0x578b3f,_0x3f2681),_0x5e645a=_0x41c142['find'](_0x12fea2=>_0x12fea2[_0x20a466(0x12f)]===SKILL_FILE),_0x2aaffc=fileText(_0x5e645a),_0x35d3fe=getRuntimeSkillDir(_0xf7cb6[_0x20a466(0x143)],_0xf7cb6[_0x20a466(0x13a)],_0xf7cb6[_0x20a466(0x148)],_0x5da9fa,_0x3f2681,_0xf7cb6['paths']),_0x4efa52=resolve(_0x35d3fe,SKILL_FILE),_0x41c741=resolve(_0x35d3fe,METADATA_FILE),_0xb56850=contentHash(_0x2aaffc),_0x14c6f3=readMetadataIfPresent(_0x41c741)?.[_0x20a466(0x132)];ensurePulledFilesCanBeOverwritten(_0x35d3fe,_0x41c741,_0x41c142,_0xf7cb6[_0x20a466(0x123)]===!![]),mkdirSync(_0x35d3fe,{'recursive':!![],'mode':0x1c0});const _0x448e0b=existsSync(_0x4efa52)?readFileSync(_0x4efa52,_0x20a466(0x124)):undefined;return materializeFiles(_0x35d3fe,_0x41c142),removeStaleManagedFiles(_0x35d3fe,_0x14c6f3,_0x41c142),writeJsonAtomic(_0x41c741,buildMetadata(_0x578b3f,_0x5da9fa,_0xf7cb6['appCode'],_0xb56850,_0xf7cb6[_0x20a466(0x126)],_0x41c142,_0xebf01c)),{'skill':_0x578b3f,'scope':_0x5da9fa,'dir':_0x35d3fe,'skillMdPath':_0x4efa52,'metadataPath':_0x41c741,'contentHash':_0xb56850,'changed':_0x448e0b!==_0x2aaffc};}function withMaterializedSkillFrontmatter(_0x94878,_0x4e753c,_0x1487f6){const _0x50ef1d=a101_0x2574,_0x3a90e8=skillDisplayName(_0x4e753c,_0x1487f6),_0xa8bcd2=_0x4e753c[_0x50ef1d(0x141)]?.[_0x50ef1d(0x12d)]()||_0x3a90e8||_0x1487f6;return normalizeLocalFiles(_0x94878)[_0x50ef1d(0x144)](_0x442413=>{const _0x236550=_0x50ef1d,_0x5f49d7=fileText(_0x442413);if(_0x442413[_0x236550(0x12f)]!==SKILL_FILE)return _0x442413;if(hasYamlFrontmatter(_0x5f49d7))return{'path':_0x442413[_0x236550(0x12f)],'content':withSyncedDisplayName(_0x5f49d7,_0x3a90e8)};return{'path':_0x442413[_0x236550(0x12f)],'content':prependSkillFrontmatter(_0x5f49d7,{'name':_0x1487f6,'displayName':_0x3a90e8,'description':_0xa8bcd2})};});}function hasYamlFrontmatter(_0x1dfe65){const _0x194c97=a101_0x2574;return/^\uFEFF?---\s*\r?\n/[_0x194c97(0x140)](_0x1dfe65);}function prependSkillFrontmatter(_0x594806,_0x29596c){const _0x420185=a101_0x2574,_0x27f504=_0x594806['replace'](/^\uFEFF/,'');return[_0x420185(0x137),'name:\x20'+yamlString(_0x29596c[_0x420185(0x154)]),_0x29596c[_0x420185(0x14c)]?_0x420185(0x155)+yamlString(_0x29596c['displayName']):undefined,'description:\x20'+yamlString(_0x29596c[_0x420185(0x141)]),_0x420185(0x137),'',_0x27f504][_0x420185(0x13d)](_0x33b628=>_0x33b628!==undefined)[_0x420185(0x13e)]('\x0a');}function yamlString(_0x210c83){const _0x10f518=a101_0x2574;return JSON[_0x10f518(0x14a)](_0x210c83[_0x10f518(0x12c)](/\r/g,'')[_0x10f518(0x12d)]());}function skillDisplayName(_0x4fb34a,_0x14e962){const _0x5395f5=a101_0x2574,_0x58e0e4=_0x4fb34a[_0x5395f5(0x153)]?.['trim']();return _0x58e0e4||_0x14e962;}function withSyncedDisplayName(_0x183e80,_0x1142af){const _0x328b53=a101_0x2574,_0x141a77=_0x183e80['match'](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x141a77)return _0x183e80;const _0x40f9f8=_0x141a77[0x1]??'',_0x5d6ff5=_0x141a77[0x2]??'',_0x3a8209=parseDocument(_0x5d6ff5);if(_0x3a8209['errors'][_0x328b53(0x13f)]>0x0||!isMap(_0x3a8209[_0x328b53(0x14b)]))return _0x183e80;if(_0x1142af)_0x3a8209['set'](_0x328b53(0x14c),_0x1142af);else{if(_0x3a8209[_0x328b53(0x136)](_0x328b53(0x14c)))_0x3a8209['delete'](_0x328b53(0x14c));else return _0x183e80;}const _0x351611=String(_0x3a8209)[_0x328b53(0x14f)](),_0x21ef65=_0x183e80['slice'](_0x141a77[0x0][_0x328b53(0x13f)])['replace'](/^\r?\n/,'');return _0x40f9f8+_0x328b53(0x14e)+_0x351611+'\x0a---\x0a\x0a'+_0x21ef65;}function ensurePulledFilesCanBeOverwritten(_0x11d500,_0x3cd022,_0x23724e,_0x23749b){const _0x17b40e=a101_0x2574;if(_0x23749b||!existsSync(_0x3cd022))return;const _0x564942=readMetadataIfPresent(_0x3cd022);if(!_0x564942)return;const _0x15f658=_0x564942[_0x17b40e(0x132)]&&Object['keys'](_0x564942[_0x17b40e(0x132)])['length']>0x0?_0x564942[_0x17b40e(0x132)]:undefined;if(_0x15f658)for(const [_0x2d76cc,_0xa85584]of Object[_0x17b40e(0x147)](_0x15f658)){const _0x147b79=resolveManagedFilePath(_0x11d500,_0x2d76cc);if(!existsSync(_0x147b79))throw CliErrors[_0x17b40e(0x12e)](_0x17b40e(0x150)+_0x11d500,_0x17b40e(0x127)+_0x2d76cc);const _0x3ba555=lstatSync(_0x147b79);if(!_0x3ba555[_0x17b40e(0x133)]())throw CliErrors[_0x17b40e(0x12e)](_0x17b40e(0x150)+_0x11d500,_0x17b40e(0x149)+_0x2d76cc);const _0x1f16f0=bufferSha256(readFileSync(_0x147b79));if(_0x1f16f0!==_0xa85584)throw CliErrors[_0x17b40e(0x12e)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x11d500+_0x17b40e(0x131)+_0x2d76cc,_0x17b40e(0x139)+_0x2d76cc);}else{const _0x2d032a=resolve(_0x11d500,SKILL_FILE);if(existsSync(_0x2d032a)&&_0x564942[_0x17b40e(0x13c)]){const _0x4b15c3=contentHash(readFileSync(_0x2d032a,'utf8'));if(_0x4b15c3!==_0x564942[_0x17b40e(0x13c)])throw CliErrors['validation'](_0x17b40e(0x145)+_0x2d032a,_0x17b40e(0x152));}}for(const _0x594323 of normalizeLocalFiles(_0x23724e)){if(_0x15f658?.[_0x594323[_0x17b40e(0x12f)]])continue;if(!_0x15f658&&_0x594323[_0x17b40e(0x12f)]===SKILL_FILE)continue;const _0x595ccc=resolveManagedFilePath(_0x11d500,_0x594323['path']);if(!existsSync(_0x595ccc))continue;const _0x58d4e0=lstatSync(_0x595ccc);if(!_0x58d4e0[_0x17b40e(0x133)]())throw CliErrors[_0x17b40e(0x12e)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x11d500,_0x17b40e(0x142)+_0x594323[_0x17b40e(0x12f)]);const _0x58c9ad=bufferSha256(readFileSync(_0x595ccc));if(_0x58c9ad!==fileHash(_0x594323))throw CliErrors[_0x17b40e(0x12e)](_0x17b40e(0x150)+_0x11d500,_0x17b40e(0x13b)+_0x594323[_0x17b40e(0x12f)]);}}function materializeFiles(_0x1ff89e,_0x4448f0){const _0x393df2=a101_0x2574;for(const _0x5e6e51 of normalizeLocalFiles(_0x4448f0)){const _0x247103=resolveManagedFilePath(_0x1ff89e,_0x5e6e51[_0x393df2(0x12f)]);mkdirSync(dirname(_0x247103),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x247103,fileContent(_0x5e6e51),0x180);}}function removeStaleManagedFiles(_0xe5fc02,_0x151d6d,_0x201b0c){const _0x4dfa80=a101_0x2574;if(!_0x151d6d)return;const _0x5cfc4e=new Set(normalizeLocalFiles(_0x201b0c)[_0x4dfa80(0x144)](_0x180087=>_0x180087['path']));for(const _0x5bc467 of Object[_0x4dfa80(0x134)](_0x151d6d)){if(_0x5cfc4e[_0x4dfa80(0x136)](_0x5bc467))continue;const _0x56228a=resolveManagedFilePath(_0xe5fc02,_0x5bc467);existsSync(_0x56228a)&&lstatSync(_0x56228a)[_0x4dfa80(0x133)]()&&rmSync(_0x56228a,{'force':!![]});}}
@@ -1 +1 @@
1
- (function(_0x3039ee,_0xb8beab){const _0x3c51a6=a102_0x2b3a,_0x3367f9=_0x3039ee();while(!![]){try{const _0x5b2c29=-parseInt(_0x3c51a6(0x200))/0x1*(-parseInt(_0x3c51a6(0x207))/0x2)+-parseInt(_0x3c51a6(0x1fe))/0x3*(-parseInt(_0x3c51a6(0x1fb))/0x4)+parseInt(_0x3c51a6(0x209))/0x5+parseInt(_0x3c51a6(0x1f6))/0x6+parseInt(_0x3c51a6(0x213))/0x7*(-parseInt(_0x3c51a6(0x1f2))/0x8)+-parseInt(_0x3c51a6(0x1f4))/0x9+parseInt(_0x3c51a6(0x203))/0xa;if(_0x5b2c29===_0xb8beab)break;else _0x3367f9['push'](_0x3367f9['shift']());}catch(_0x186438){_0x3367f9['push'](_0x3367f9['shift']());}}}(a102_0x25f5,0xb6417));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a102_0x25f5(){const _0x5035f6=['manifest','96qSRedV','path','11035107dIhsvf','version','2192268gMnbQt','userId','zipSize','zipSha256','utf8','1167448RBaYNQ','Runtime\x20Skill\x20is\x20missing\x20skillCode.','trim','3qADkOL','forkedFromVersion','108487iVfnCZ','map','skillCode','3215850rDmxRY','tenantCode','tags','files','20zaNtKR','readonly','2342715ztxUyc','validation','isArray','description','sourceSessionId','string','toISOString','fromEntries','status','forkedFromSkillId','326431qLUyDs','length','ossPath'];a102_0x25f5=function(){return _0x5035f6;};return a102_0x25f5();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x22cf13,_0xf478fe,_0x58c69c,_0x3883d9,_0x5e7097,_0x3e5b6a,_0x456f61){const _0x32084a=a102_0x2b3a,_0x1d30b3=_0x3e5b6a?normalizeLocalFiles(_0x3e5b6a):[],_0x33d485=!_0x456f61&&_0x1d30b3[_0x32084a(0x214)]>0x0?buildSkillPackage(_0x1d30b3):undefined,_0x4ab5cd=_0x456f61?bufferSha256(_0x456f61):_0x33d485?.[_0x32084a(0x1f1)][_0x32084a(0x1f9)],_0x30d45b=_0x456f61?.[_0x32084a(0x214)]??_0x33d485?.[_0x32084a(0x1f1)][_0x32084a(0x1f8)],_0x1c1531=_0x1d30b3[_0x32084a(0x214)]>0x0?Object[_0x32084a(0x210)](_0x1d30b3[_0x32084a(0x201)](_0x5bf6f7=>[_0x5bf6f7['path'],fileHash(_0x5bf6f7)])):undefined;return{'schemaVersion':_0x1d30b3['length']>0x0?0x2:0x1,'id':_0x22cf13['id'],'appCode':_0x58c69c,'skillCode':requireSkillCode(_0x22cf13),'skillName':_0x22cf13['skillName'],'description':_0x22cf13[_0x32084a(0x20c)],'scope':_0xf478fe,'readonly':_0xf478fe!=='personal'||_0x22cf13[_0x32084a(0x208)]===!![],'tenantCode':_0x22cf13[_0x32084a(0x204)],'userId':_0x22cf13[_0x32084a(0x1f7)],'version':_0x22cf13[_0x32084a(0x1f5)],'status':_0x22cf13[_0x32084a(0x211)],'tags':Array[_0x32084a(0x20b)](_0x22cf13['tags'])?_0x22cf13[_0x32084a(0x205)]:[],'hasUpstreamUpdate':_0x22cf13['hasUpstreamUpdate'],'forkedFromSkillId':_0x22cf13[_0x32084a(0x212)],'forkedFromVersion':_0x22cf13[_0x32084a(0x1ff)],'sourceSessionId':_0x22cf13[_0x32084a(0x20d)],'contentHash':_0x3883d9,'fileHashes':_0x1c1531,'treeHash':_0x1d30b3['length']>0x0?fileTreeHash(localFilesToManifestFiles(_0x1d30b3)):undefined,'ossPath':remoteManifestOssPath(_0x22cf13[_0x32084a(0x206)]),'zipSha256':_0x4ab5cd,'zipSize':_0x30d45b,'files':_0x1d30b3[_0x32084a(0x214)]>0x0?_0x1d30b3[_0x32084a(0x201)](_0x5a575f=>({'path':_0x5a575f[_0x32084a(0x1f3)],'hash':fileHash(_0x5a575f),'size':fileContent(_0x5a575f)[_0x32084a(0x214)]})):undefined,'pulledAt':_0x5e7097??new Date()[_0x32084a(0x20f)]()};}export function requireSkillCode(_0x3dee34){const _0x5e260d=a102_0x2b3a,_0x2047f4=_0x3dee34[_0x5e260d(0x202)]?.[_0x5e260d(0x1fd)]();if(!_0x2047f4)throw CliErrors[_0x5e260d(0x20a)](_0x5e260d(0x1fc));return _0x2047f4;}export function readMetadataIfPresent(_0x1b9576){const _0x2006b8=a102_0x2b3a;if(!existsSync(_0x1b9576))return undefined;try{const _0xbaee2d=JSON['parse'](readFileSync(_0x1b9576,_0x2006b8(0x1fa)));return _0xbaee2d;}catch{throw CliErrors[_0x2006b8(0x20a)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x1b9576);}}function a102_0x2b3a(_0x3da6d9,_0x5ca44d){_0x3da6d9=_0x3da6d9-0x1f1;const _0x25f544=a102_0x25f5();let _0x2b3a36=_0x25f544[_0x3da6d9];return _0x2b3a36;}function remoteManifestOssPath(_0x28b613){const _0x32bf5e=a102_0x2b3a;if(!_0x28b613||typeof _0x28b613!=='object'||Array[_0x32bf5e(0x20b)](_0x28b613))return undefined;const _0x28144b=_0x28b613[_0x32bf5e(0x215)];return typeof _0x28144b===_0x32bf5e(0x20e)&&_0x28144b[_0x32bf5e(0x1fd)]()?_0x28144b[_0x32bf5e(0x1fd)]():undefined;}
1
+ (function(_0x55e4b5,_0x13a10e){const _0x3ed626=a102_0x692e,_0xbfc815=_0x55e4b5();while(!![]){try{const _0x2f0df1=parseInt(_0x3ed626(0x9a))/0x1+parseInt(_0x3ed626(0xa2))/0x2*(parseInt(_0x3ed626(0x94))/0x3)+parseInt(_0x3ed626(0x8f))/0x4+parseInt(_0x3ed626(0xa1))/0x5*(parseInt(_0x3ed626(0x9c))/0x6)+-parseInt(_0x3ed626(0x98))/0x7*(parseInt(_0x3ed626(0x88))/0x8)+-parseInt(_0x3ed626(0x86))/0x9*(parseInt(_0x3ed626(0x85))/0xa)+parseInt(_0x3ed626(0xa6))/0xb*(-parseInt(_0x3ed626(0x87))/0xc);if(_0x2f0df1===_0x13a10e)break;else _0xbfc815['push'](_0xbfc815['shift']());}catch(_0x129784){_0xbfc815['push'](_0xbfc815['shift']());}}}(a102_0x4a61,0x5f311));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a102_0x4a61(){const _0x23f54e=['13196kWycKd','version','Invalid\x20','map','491557YZOdrF','isArray','personal','10kVNHLM','6425883sZLqDo','108uOukgc','32rHVZLV','zipSha256','fromEntries','skillName','path','parse','sourceSessionId','2815084QSJVDe','files','string','trim','tenantCode','351JwhjXK','manifest','length','zipSize','593278wxOzIE','forkedFromSkillId','287718amhWdm','skillCode','81636FAkyww','object','utf8','status','validation','30eOaIcG'];a102_0x4a61=function(){return _0x23f54e;};return a102_0x4a61();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x464be1,_0xf1a61b,_0x439260,_0x27ddca,_0x29a842,_0x38c0e0,_0xb3d680){const _0x27fb5d=a102_0x692e,_0x4c85cf=_0x38c0e0?normalizeLocalFiles(_0x38c0e0):[],_0x2c3f45=!_0xb3d680&&_0x4c85cf[_0x27fb5d(0x96)]>0x0?buildSkillPackage(_0x4c85cf):undefined,_0x27c030=_0xb3d680?bufferSha256(_0xb3d680):_0x2c3f45?.['manifest'][_0x27fb5d(0x89)],_0x1be8ea=_0xb3d680?.[_0x27fb5d(0x96)]??_0x2c3f45?.[_0x27fb5d(0x95)][_0x27fb5d(0x97)],_0x872a4=_0x4c85cf[_0x27fb5d(0x96)]>0x0?Object[_0x27fb5d(0x8a)](_0x4c85cf[_0x27fb5d(0xa5)](_0x14d172=>[_0x14d172[_0x27fb5d(0x8c)],fileHash(_0x14d172)])):undefined;return{'schemaVersion':_0x4c85cf[_0x27fb5d(0x96)]>0x0?0x2:0x1,'id':_0x464be1['id'],'appCode':_0x439260,'skillCode':requireSkillCode(_0x464be1),'skillName':_0x464be1[_0x27fb5d(0x8b)],'description':_0x464be1['description'],'scope':_0xf1a61b,'readonly':_0xf1a61b!==_0x27fb5d(0x84)||_0x464be1['readonly']===!![],'tenantCode':_0x464be1[_0x27fb5d(0x93)],'userId':_0x464be1['userId'],'version':_0x464be1[_0x27fb5d(0xa3)],'status':_0x464be1[_0x27fb5d(0x9f)],'tags':Array['isArray'](_0x464be1['tags'])?_0x464be1['tags']:[],'hasUpstreamUpdate':_0x464be1['hasUpstreamUpdate'],'forkedFromSkillId':_0x464be1[_0x27fb5d(0x99)],'forkedFromVersion':_0x464be1['forkedFromVersion'],'sourceSessionId':_0x464be1[_0x27fb5d(0x8e)],'contentHash':_0x27ddca,'fileHashes':_0x872a4,'treeHash':_0x4c85cf[_0x27fb5d(0x96)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x4c85cf)):undefined,'ossPath':remoteManifestOssPath(_0x464be1[_0x27fb5d(0x90)]),'zipSha256':_0x27c030,'zipSize':_0x1be8ea,'files':_0x4c85cf[_0x27fb5d(0x96)]>0x0?_0x4c85cf['map'](_0x1a44a4=>({'path':_0x1a44a4['path'],'hash':fileHash(_0x1a44a4),'size':fileContent(_0x1a44a4)[_0x27fb5d(0x96)]})):undefined,'pulledAt':_0x29a842??new Date()['toISOString']()};}function a102_0x692e(_0x946f24,_0x1740bd){_0x946f24=_0x946f24-0x83;const _0x4a6166=a102_0x4a61();let _0x692e16=_0x4a6166[_0x946f24];return _0x692e16;}export function requireSkillCode(_0x31cd58){const _0x31178d=a102_0x692e,_0x26852a=_0x31cd58[_0x31178d(0x9b)]?.[_0x31178d(0x92)]();if(!_0x26852a)throw CliErrors[_0x31178d(0xa0)]('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0x26852a;}export function readMetadataIfPresent(_0x4aa514){const _0x22b2ac=a102_0x692e;if(!existsSync(_0x4aa514))return undefined;try{const _0x2b9bfc=JSON[_0x22b2ac(0x8d)](readFileSync(_0x4aa514,_0x22b2ac(0x9e)));return _0x2b9bfc;}catch{throw CliErrors['validation'](_0x22b2ac(0xa4)+METADATA_FILE+':\x20'+_0x4aa514);}}function remoteManifestOssPath(_0x1ab7f8){const _0xdd549c=a102_0x692e;if(!_0x1ab7f8||typeof _0x1ab7f8!==_0xdd549c(0x9d)||Array[_0xdd549c(0x83)](_0x1ab7f8))return undefined;const _0x337447=_0x1ab7f8['ossPath'];return typeof _0x337447===_0xdd549c(0x91)&&_0x337447[_0xdd549c(0x92)]()?_0x337447['trim']():undefined;}
@@ -1 +1 @@
1
- (function(_0x39b291,_0x392478){const _0x40e508=a103_0x49ff,_0x43fa27=_0x39b291();while(!![]){try{const _0xadc395=parseInt(_0x40e508(0x158))/0x1*(parseInt(_0x40e508(0x142))/0x2)+-parseInt(_0x40e508(0x146))/0x3+-parseInt(_0x40e508(0x152))/0x4+-parseInt(_0x40e508(0x14c))/0x5+parseInt(_0x40e508(0x151))/0x6*(parseInt(_0x40e508(0x157))/0x7)+parseInt(_0x40e508(0x15a))/0x8+parseInt(_0x40e508(0x153))/0x9;if(_0xadc395===_0x392478)break;else _0x43fa27['push'](_0x43fa27['shift']());}catch(_0x528e6e){_0x43fa27['push'](_0x43fa27['shift']());}}}(a103_0x44ba,0x903f8));import{homedir}from'node:os';function a103_0x44ba(){const _0xa95c80=['homeDir','.agents','homeDirName','validation','\x20for\x20local\x20path:\x20','4777975NzaxTq','skillCode','Unsafe\x20','skills','trim','1038UPZvAe','4551656MNPUod','14360697NmsWNj','appCode','SKILL_ROOT','includes','17703upomNK','2CHShgi','.claude','5554088ZABQWs','claudeSkillsDir','19986mcovFh','cache','agentsSkillsDir','cacheRoot','189144PHhijg'];a103_0x44ba=function(){return _0xa95c80;};return a103_0x44ba();}import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';function a103_0x49ff(_0x27c8ea,_0xa6337b){_0x27c8ea=_0x27c8ea-0x142;const _0x44ba86=a103_0x44ba();let _0x49ff4a=_0x44ba86[_0x27c8ea];return _0x49ff4a;}import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x43ef35={}){const _0x55ae66=a103_0x49ff,_0x934e91=_0x43ef35[_0x55ae66(0x147)]??homedir(),_0x410b6c=resolve(_0x934e91,PRODUCT_CONFIG[_0x55ae66(0x149)],_0x55ae66(0x143)),_0x486b3d=trimmedEnv(_0x55ae66(0x155)),_0x2af3d4=trimmedEnv('CLAUDE_SKILL_ROOT');return{'homeDir':_0x934e91,'cacheRoot':_0x410b6c,'managedRoot':resolve(_0x934e91,PRODUCT_CONFIG[_0x55ae66(0x149)]),'agentsSkillsDir':_0x43ef35[_0x55ae66(0x144)]??_0x486b3d??resolve(_0x934e91,_0x55ae66(0x148),_0x55ae66(0x14f)),'claudeSkillsDir':_0x43ef35[_0x55ae66(0x15b)]??_0x2af3d4??resolve(_0x934e91,_0x55ae66(0x159),'skills')};}export function getRuntimeSkillCacheRoot(_0x316345,_0x542a21,_0x3949f1={}){const _0xcb31d2=a103_0x49ff,_0x5d7e2a=resolveSkillSyncPaths(_0x3949f1);return resolve(_0x5d7e2a[_0xcb31d2(0x145)],_0x316345,fingerprintAccessKey(_0x542a21),_0xcb31d2(0x14f));}export function getRuntimeSkillDir(_0x52e7f0,_0x433569,_0x2ea92f,_0x489ed4,_0x43cef7,_0x5ce6b4={}){const _0x2cf1aa=a103_0x49ff;return resolve(getRuntimeSkillCacheRoot(_0x52e7f0,_0x433569,_0x5ce6b4),safePathSegment(_0x2ea92f,_0x2cf1aa(0x154)),_0x489ed4,safePathSegment(_0x43cef7,_0x2cf1aa(0x14d)));}export function safePathSegment(_0x397d33,_0x4ce619='path\x20segment'){const _0xbfe465=a103_0x49ff;if(!_0x397d33||_0x397d33[_0xbfe465(0x156)]('/')||_0x397d33[_0xbfe465(0x156)]('\x5c')||_0x397d33[_0xbfe465(0x156)]('..'))throw CliErrors[_0xbfe465(0x14a)](_0xbfe465(0x14e)+_0x4ce619+_0xbfe465(0x14b)+_0x397d33);return _0x397d33;}function trimmedEnv(_0x35e775){const _0x23d4fb=a103_0x49ff,_0x4ef765=productEnv(_0x35e775)?.[_0x23d4fb(0x150)]();return _0x4ef765?_0x4ef765:undefined;}
1
+ (function(_0x2fd316,_0x168a56){const _0x186200=a103_0x4d0f,_0x1c4d6e=_0x2fd316();while(!![]){try{const _0x321218=-parseInt(_0x186200(0x17a))/0x1+parseInt(_0x186200(0x17b))/0x2*(-parseInt(_0x186200(0x174))/0x3)+parseInt(_0x186200(0x173))/0x4*(parseInt(_0x186200(0x179))/0x5)+-parseInt(_0x186200(0x170))/0x6*(-parseInt(_0x186200(0x163))/0x7)+parseInt(_0x186200(0x166))/0x8+parseInt(_0x186200(0x16d))/0x9+-parseInt(_0x186200(0x172))/0xa*(parseInt(_0x186200(0x167))/0xb);if(_0x321218===_0x168a56)break;else _0x1c4d6e['push'](_0x1c4d6e['shift']());}catch(_0x34f8e2){_0x1c4d6e['push'](_0x1c4d6e['shift']());}}}(a103_0xf31f,0x81add));function a103_0xf31f(){const _0x4a79ac=['claudeSkillsDir','cache','SKILL_ROOT','7777395jDibFF','homeDirName','CLAUDE_SKILL_ROOT','1032sKwERu','.agents','6369470fgppwR','6512SJvVvF','6tGqBXs','homeDir','agentsSkillsDir','appCode','cacheRoot','560yytnmt','239292nrTRcq','137726WcCnAe','Unsafe\x20','.claude','includes','5362HNdIMJ','skills','trim','2935096ouktcE','11FLLEPv','\x20for\x20local\x20path:\x20','skillCode'];a103_0xf31f=function(){return _0x4a79ac;};return a103_0xf31f();}function a103_0x4d0f(_0x23aa34,_0x2cf64e){_0x23aa34=_0x23aa34-0x160;const _0xf31f3b=a103_0xf31f();let _0x4d0fff=_0xf31f3b[_0x23aa34];return _0x4d0fff;}import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0xac9a05={}){const _0x233223=a103_0x4d0f,_0x140ac9=_0xac9a05[_0x233223(0x175)]??homedir(),_0x416503=resolve(_0x140ac9,PRODUCT_CONFIG[_0x233223(0x16e)],_0x233223(0x16b)),_0x1a4752=trimmedEnv(_0x233223(0x16c)),_0x2cecda=trimmedEnv(_0x233223(0x16f));return{'homeDir':_0x140ac9,'cacheRoot':_0x416503,'managedRoot':resolve(_0x140ac9,PRODUCT_CONFIG[_0x233223(0x16e)]),'agentsSkillsDir':_0xac9a05[_0x233223(0x176)]??_0x1a4752??resolve(_0x140ac9,_0x233223(0x171),_0x233223(0x164)),'claudeSkillsDir':_0xac9a05[_0x233223(0x16a)]??_0x2cecda??resolve(_0x140ac9,_0x233223(0x161),'skills')};}export function getRuntimeSkillCacheRoot(_0x36c125,_0x1121b6,_0x9c1f78={}){const _0x1f7627=a103_0x4d0f,_0x2ad41e=resolveSkillSyncPaths(_0x9c1f78);return resolve(_0x2ad41e[_0x1f7627(0x178)],_0x36c125,fingerprintAccessKey(_0x1121b6),_0x1f7627(0x164));}export function getRuntimeSkillDir(_0x426908,_0x3d65c7,_0x4eb2ce,_0x1ba61e,_0x5ca416,_0x4fba3e={}){const _0x27e98e=a103_0x4d0f;return resolve(getRuntimeSkillCacheRoot(_0x426908,_0x3d65c7,_0x4fba3e),safePathSegment(_0x4eb2ce,_0x27e98e(0x177)),_0x1ba61e,safePathSegment(_0x5ca416,_0x27e98e(0x169)));}export function safePathSegment(_0x3e59df,_0x519644='path\x20segment'){const _0x2768a7=a103_0x4d0f;if(!_0x3e59df||_0x3e59df[_0x2768a7(0x162)]('/')||_0x3e59df[_0x2768a7(0x162)]('\x5c')||_0x3e59df[_0x2768a7(0x162)]('..'))throw CliErrors['validation'](_0x2768a7(0x160)+_0x519644+_0x2768a7(0x168)+_0x3e59df);return _0x3e59df;}function trimmedEnv(_0x3bf285){const _0x186566=a103_0x4d0f,_0x507307=productEnv(_0x3bf285)?.[_0x186566(0x165)]();return _0x507307?_0x507307:undefined;}