@lovrabet/lovrabet-cli 2.1.4-beta.1 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) 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/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5cc56d,_0x52fd86){var _0x5f5ae3=a73_0x2853,_0x536e8a=_0x5cc56d();while(!![]){try{var _0x155b08=parseInt(_0x5f5ae3(0x1c9))/0x1*(parseInt(_0x5f5ae3(0x1cf))/0x2)+-parseInt(_0x5f5ae3(0x1cc))/0x3+-parseInt(_0x5f5ae3(0x1cb))/0x4+parseInt(_0x5f5ae3(0x1ca))/0x5+parseInt(_0x5f5ae3(0x1c8))/0x6*(-parseInt(_0x5f5ae3(0x1d0))/0x7)+-parseInt(_0x5f5ae3(0x1cd))/0x8+parseInt(_0x5f5ae3(0x1ce))/0x9;if(_0x155b08===_0x52fd86)break;else _0x536e8a['push'](_0x536e8a['shift']());}catch(_0x4a4221){_0x536e8a['push'](_0x536e8a['shift']());}}}(a73_0x42ec,0xc1ec3));function a73_0x42ec(){var _0x50a624=['6521910AHWmlx','349tKUWxS','5068100QWprFi','201520sbSWNi','3206007XQOGHj','276472hGXyeE','12792141MlgBOP','3438BKixMH','7oSNhXF'];a73_0x42ec=function(){return _0x50a624;};return a73_0x42ec();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a73_0x2853(_0x5d067c,_0x5c750a){_0x5d067c=_0x5d067c-0x1c8;var _0x42ecde=a73_0x42ec();var _0x2853e3=_0x42ecde[_0x5d067c];return _0x2853e3;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x163436,_0x3afe3d){var _0x4cd286=a73_0x7eaf,_0x38da83=_0x163436();while(!![]){try{var _0xbac07a=-parseInt(_0x4cd286(0xd7))/0x1+parseInt(_0x4cd286(0xd5))/0x2+parseInt(_0x4cd286(0xda))/0x3+-parseInt(_0x4cd286(0xd3))/0x4+-parseInt(_0x4cd286(0xd6))/0x5*(parseInt(_0x4cd286(0xdb))/0x6)+-parseInt(_0x4cd286(0xd4))/0x7*(parseInt(_0x4cd286(0xd8))/0x8)+-parseInt(_0x4cd286(0xd9))/0x9*(-parseInt(_0x4cd286(0xdc))/0xa);if(_0xbac07a===_0x3afe3d)break;else _0x38da83['push'](_0x38da83['shift']());}catch(_0x342739){_0x38da83['push'](_0x38da83['shift']());}}}(a73_0x5021,0x1abdc));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a73_0x7eaf(_0xadc8b4,_0x5d7d31){_0xadc8b4=_0xadc8b4-0xd3;var _0x5021f5=a73_0x5021();var _0x7eafcd=_0x5021f5[_0xadc8b4];return _0x7eafcd;}function a73_0x5021(){var _0x2aa1ad=['512408IhjxVt','1076810LjqOhB','312548pvmeUS','45gtXxHt','42229LAQQic','8qEdpbF','43083zroeDd','390237KngoqK','13470jpwxhM','350OeKeiG'];a73_0x5021=function(){return _0x2aa1ad;};return a73_0x5021();}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x5744ce,_0x240869){const _0x18de4b=a74_0x27f3,_0x29d66a=_0x5744ce();while(!![]){try{const _0x43b5f5=-parseInt(_0x18de4b(0x126))/0x1+parseInt(_0x18de4b(0x129))/0x2+-parseInt(_0x18de4b(0x123))/0x3+parseInt(_0x18de4b(0x121))/0x4+-parseInt(_0x18de4b(0x128))/0x5*(-parseInt(_0x18de4b(0x12a))/0x6)+-parseInt(_0x18de4b(0x124))/0x7+-parseInt(_0x18de4b(0x11f))/0x8;if(_0x43b5f5===_0x240869)break;else _0x29d66a['push'](_0x29d66a['shift']());}catch(_0x60b032){_0x29d66a['push'](_0x29d66a['shift']());}}}(a74_0x35e6,0x492c2));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a74_0x35e6(){const _0x33e1b0=['1974440wZHQeS','update','2101452TOAoBD','message','1179978NTmgfb','2946440hVIxxg','url','248799RgHmEr','pretty','895YTRaRq','1104068ViwAXZ','17838rCjpqT','error'];a74_0x35e6=function(){return _0x33e1b0;};return a74_0x35e6();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a74_0x27f3(_0x13adff,_0x157186){_0x13adff=_0x13adff-0x11e;const _0x35e646=a74_0x35e6();let _0x27f31c=_0x35e646[_0x13adff];return _0x27f31c;}export function formatOutput(_0x54aa32,_0x94a5f6){const _0x371a86=a74_0x27f3,_0x417f82=_0x54aa32['_notice'],{_notice:_0x257185,..._0x48ee15}=_0x54aa32;void _0x257185,baseFormatOutput(_0x48ee15,_0x94a5f6),_0x94a5f6['format']===_0x371a86(0x127)&&printPrettyNotice(_0x417f82);}function printPrettyNotice(_0x17ae1a){const _0x8217b=a74_0x27f3;if(!_0x17ae1a?.[_0x8217b(0x120)])return;console[_0x8217b(0x11e)](_0x17ae1a['update'][_0x8217b(0x122)]+'\x20('+_0x17ae1a['update'][_0x8217b(0x125)]+')');}
1
+ (function(_0x56fa2e,_0x1bca5d){const _0x96603f=a74_0x5971,_0x5718f9=_0x56fa2e();while(!![]){try{const _0x5159ae=parseInt(_0x96603f(0xd8))/0x1+-parseInt(_0x96603f(0xd1))/0x2*(parseInt(_0x96603f(0xcf))/0x3)+-parseInt(_0x96603f(0xd6))/0x4*(-parseInt(_0x96603f(0xcd))/0x5)+parseInt(_0x96603f(0xd4))/0x6*(-parseInt(_0x96603f(0xcc))/0x7)+-parseInt(_0x96603f(0xd3))/0x8*(-parseInt(_0x96603f(0xcb))/0x9)+parseInt(_0x96603f(0xd5))/0xa+-parseInt(_0x96603f(0xd2))/0xb;if(_0x5159ae===_0x1bca5d)break;else _0x5718f9['push'](_0x5718f9['shift']());}catch(_0x8e1753){_0x5718f9['push'](_0x5718f9['shift']());}}}(a74_0x19dc,0xdfb20));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a74_0x5971(_0x2650f9,_0x5579c7){_0x2650f9=_0x2650f9-0xcb;const _0x19dc5b=a74_0x19dc();let _0x5971df=_0x19dc5b[_0x2650f9];return _0x5971df;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a74_0x19dc(){const _0x179d18=['8TUnIpD','24pAXsMt','6143170lmcvpq','5031612kxCNnO','update','1161335GACeCi','8797374cyinUV','1693678lAbzap','5oMGupK','format','121818WNAlYV','_notice','58FawDOU','10443345KNbXEX'];a74_0x19dc=function(){return _0x179d18;};return a74_0x19dc();}export function formatOutput(_0x4a168b,_0x315837){const _0x12bd4d=a74_0x5971,_0xf0b0a4=_0x4a168b[_0x12bd4d(0xd0)],{_notice:_0x3bcd92,..._0x4fb9d4}=_0x4a168b;void _0x3bcd92,baseFormatOutput(_0x4fb9d4,_0x315837),_0x315837[_0x12bd4d(0xce)]==='pretty'&&printPrettyNotice(_0xf0b0a4);}function printPrettyNotice(_0x28e7c9){const _0x13aba0=a74_0x5971;if(!_0x28e7c9?.[_0x13aba0(0xd7)])return;console['error'](_0x28e7c9[_0x13aba0(0xd7)]['message']+'\x20('+_0x28e7c9[_0x13aba0(0xd7)]['url']+')');}
@@ -1 +1 @@
1
- (function(_0x42d893,_0xc1e5c7){const _0x2015b6=a75_0x3f38,_0x4fb163=_0x42d893();while(!![]){try{const _0x534bfc=-parseInt(_0x2015b6(0x15c))/0x1*(-parseInt(_0x2015b6(0x151))/0x2)+parseInt(_0x2015b6(0x14d))/0x3*(-parseInt(_0x2015b6(0x162))/0x4)+-parseInt(_0x2015b6(0x140))/0x5+-parseInt(_0x2015b6(0x14e))/0x6+parseInt(_0x2015b6(0x13e))/0x7+-parseInt(_0x2015b6(0x158))/0x8+parseInt(_0x2015b6(0x142))/0x9*(parseInt(_0x2015b6(0x152))/0xa);if(_0x534bfc===_0xc1e5c7)break;else _0x4fb163['push'](_0x4fb163['shift']());}catch(_0x48cdb4){_0x4fb163['push'](_0x4fb163['shift']());}}}(a75_0x168d,0xe759a));function toKebab(_0x19ba3c){const _0x4594ed=a75_0x3f38;return _0x19ba3c[_0x4594ed(0x150)](/_/g,'-')[_0x4594ed(0x150)](/-([A-Z]+)/g,(_0x24f5ee,_0x405313)=>'-'+_0x405313[_0x4594ed(0x156)]())[_0x4594ed(0x150)](/([a-z0-9])([A-Z])/g,(_0x27621c,_0x268d70,_0x2f710a)=>_0x268d70+'-'+_0x2f710a)['toLowerCase']();}function buildKnownFlags(_0x50adc8){const _0x57aff9=a75_0x3f38,_0x26cab9=new Set();for(const _0x51e832 of _0x50adc8){_0x26cab9[_0x57aff9(0x15a)](_0x51e832[_0x57aff9(0x15b)]),_0x26cab9['add'](toCamelCase(_0x51e832[_0x57aff9(0x15b)]));}for(const _0x36f0de of['dry-run',_0x57aff9(0x13d),_0x57aff9(0x145),_0x57aff9(0x149)]){_0x26cab9[_0x57aff9(0x15a)](_0x36f0de);}for(const _0x2aded9 of[_0x57aff9(0x14f),_0x57aff9(0x15e),_0x57aff9(0x144),'app',_0x57aff9(0x148),_0x57aff9(0x14c),'ci','global',_0x57aff9(0x13c)]){_0x26cab9['add'](_0x2aded9);}return _0x26cab9;}function a75_0x168d(){const _0x50c197=['4699zzBCFa','length','env','toUpperCase','number','sticky','4793072bhiapZ','version','dryRun','2908276ETTXJM','type','5061935ATsAaJ','corrected','18GQfYBO','has','appcode','yes','alias','slice','nonInteractive','format','string','original','non-interactive','3AOeUay','5977560GKAeVx','help','replace','18sbwUBd','19090230pGAFWM','set','push','keys','toLowerCase','indexOf','970240nCGBkh','get','add','name'];a75_0x168d=function(){return _0x50c197;};return a75_0x168d();}function buildFlagTypeMap(_0x5e685d){const _0x55a9f3=a75_0x3f38,_0x16addc=new Map();for(const _0x3bbc51 of _0x5e685d){_0x16addc[_0x55a9f3(0x153)](_0x3bbc51[_0x55a9f3(0x15b)],_0x3bbc51[_0x55a9f3(0x13f)]),_0x16addc[_0x55a9f3(0x153)](toCamelCase(_0x3bbc51[_0x55a9f3(0x15b)]),_0x3bbc51[_0x55a9f3(0x13f)]);}return _0x16addc;}function toCamelCase(_0x58e90f){const _0x5e9f8c=a75_0x3f38;return _0x58e90f['replace'](/-([a-z])/g,(_0x107078,_0x216941)=>_0x216941[_0x5e9f8c(0x15f)]());}function aliasHandler(_0x4932b2,_0x933b40){const _0x2e4ca4=a75_0x3f38,_0x573318=[];for(const _0x34048a of Object[_0x2e4ca4(0x155)](_0x4932b2)){if(_0x933b40[_0x2e4ca4(0x143)](_0x34048a))continue;const _0x25048b=toKebab(_0x34048a);_0x25048b!==_0x34048a&&_0x933b40[_0x2e4ca4(0x143)](_0x25048b)&&_0x573318[_0x2e4ca4(0x154)]({'original':_0x34048a,'corrected':_0x25048b,'handler':_0x2e4ca4(0x146)});}return _0x573318;}function stickyHandler(_0x29f3b1,_0x32ea3c,_0x5ba92a){const _0x2f80c4=a75_0x3f38,_0x4c7b40=[];for(const [_0x2ebf3b,_0x1835bc]of Object['entries'](_0x29f3b1)){if(_0x1835bc!==!![])continue;for(let _0x42f119=_0x2ebf3b[_0x2f80c4(0x15d)]-0x1;_0x42f119>0x0;_0x42f119--){const _0x5f0d57=_0x2ebf3b[_0x2f80c4(0x147)](0x0,_0x42f119),_0x1129dd=_0x2ebf3b[_0x2f80c4(0x147)](_0x42f119),_0x2500ac=toKebab(_0x5f0d57),_0x350549=toCamelCase(_0x5f0d57),_0x5d8f50=_0x32ea3c[_0x2f80c4(0x143)](_0x5f0d57)?_0x5f0d57:_0x32ea3c[_0x2f80c4(0x143)](_0x2500ac)?_0x2500ac:_0x32ea3c[_0x2f80c4(0x143)](_0x350549)?_0x350549:null;if(!_0x5d8f50)continue;const _0x27458e=_0x5ba92a[_0x2f80c4(0x159)](_0x5d8f50)??_0x2f80c4(0x14a);let _0x121aa0;if(_0x27458e==='number'){const _0x98ef35=Number(_0x1129dd);if(isNaN(_0x98ef35)||_0x1129dd==='')continue;_0x121aa0=_0x98ef35;}else{if(_0x27458e==='boolean')continue;else{if(_0x1129dd==='')continue;_0x121aa0=_0x1129dd;}}_0x4c7b40[_0x2f80c4(0x154)]({'original':_0x2ebf3b,'corrected':_0x5d8f50+'='+_0x121aa0,'handler':_0x2f80c4(0x161)});break;}}return _0x4c7b40;}function a75_0x3f38(_0x33af2e,_0x25331a){_0x33af2e=_0x33af2e-0x13c;const _0x168d74=a75_0x168d();let _0x3f3850=_0x168d74[_0x33af2e];return _0x3f3850;}export function correctFlags(_0x226b4c,_0x3802c7){const _0x446e85=a75_0x3f38,_0x4323bd=buildKnownFlags(_0x3802c7),_0x34382e=buildFlagTypeMap(_0x3802c7),_0x10db2d=aliasHandler(_0x226b4c,_0x4323bd),_0x2cc3ff=stickyHandler(_0x226b4c,_0x4323bd,_0x34382e),_0x440aae=[..._0x10db2d,..._0x2cc3ff];if(_0x440aae[_0x446e85(0x15d)]===0x0)return{'flags':_0x226b4c,'corrections':[]};const _0x204c8b={..._0x226b4c},_0x6de50f=new Set();for(const _0x57f434 of _0x10db2d){_0x204c8b[_0x57f434[_0x446e85(0x141)]]=_0x226b4c[_0x57f434[_0x446e85(0x14b)]],_0x6de50f[_0x446e85(0x15a)](_0x57f434[_0x446e85(0x14b)]);}for(const _0x3aa408 of _0x2cc3ff){const _0x5e5d93=_0x3aa408[_0x446e85(0x141)][_0x446e85(0x157)]('='),_0x18a308=_0x3aa408['corrected'][_0x446e85(0x147)](0x0,_0x5e5d93),_0x3161b6=_0x3aa408[_0x446e85(0x141)]['slice'](_0x5e5d93+0x1),_0x210720=_0x34382e[_0x446e85(0x159)](_0x18a308)??_0x446e85(0x14a);_0x210720===_0x446e85(0x160)?_0x204c8b[_0x18a308]=Number(_0x3161b6):_0x204c8b[_0x18a308]=_0x3161b6,_0x6de50f['add'](_0x3aa408[_0x446e85(0x14b)]);}for(const _0x3e8fa6 of _0x6de50f){delete _0x204c8b[_0x3e8fa6];}return{'flags':_0x204c8b,'corrections':_0x440aae};}
1
+ (function(_0x36d229,_0x54ea2f){const _0x49a34b=a75_0x2a0e,_0x5f7ee=_0x36d229();while(!![]){try{const _0x5e1ae5=parseInt(_0x49a34b(0xe2))/0x1*(parseInt(_0x49a34b(0xce))/0x2)+parseInt(_0x49a34b(0xea))/0x3*(-parseInt(_0x49a34b(0xf1))/0x4)+parseInt(_0x49a34b(0xe5))/0x5*(parseInt(_0x49a34b(0xe1))/0x6)+-parseInt(_0x49a34b(0xda))/0x7*(parseInt(_0x49a34b(0xf0))/0x8)+-parseInt(_0x49a34b(0xc9))/0x9+parseInt(_0x49a34b(0xd3))/0xa*(-parseInt(_0x49a34b(0xd1))/0xb)+parseInt(_0x49a34b(0xd9))/0xc*(parseInt(_0x49a34b(0xd2))/0xd);if(_0x5e1ae5===_0x54ea2f)break;else _0x5f7ee['push'](_0x5f7ee['shift']());}catch(_0x1e543a){_0x5f7ee['push'](_0x5f7ee['shift']());}}}(a75_0x58ff,0xbdb66));function a75_0x2a0e(_0x53e404,_0x197382){_0x53e404=_0x53e404-0xc7;const _0x58ff08=a75_0x58ff();let _0x2a0e68=_0x58ff08[_0x53e404];return _0x2a0e68;}function toKebab(_0x20cf1b){const _0x2adbdd=a75_0x2a0e;return _0x20cf1b['replace'](/_/g,'-')[_0x2adbdd(0xe7)](/-([A-Z]+)/g,(_0x316352,_0x40c107)=>'-'+_0x40c107[_0x2adbdd(0xdf)]())[_0x2adbdd(0xe7)](/([a-z0-9])([A-Z])/g,(_0x3b6a46,_0x27c98d,_0x1b849e)=>_0x27c98d+'-'+_0x1b849e)[_0x2adbdd(0xdf)]();}function buildKnownFlags(_0x4ae3a4){const _0x1e4b31=a75_0x2a0e,_0x248e4e=new Set();for(const _0x37313c of _0x4ae3a4){_0x248e4e[_0x1e4b31(0xdb)](_0x37313c[_0x1e4b31(0xd6)]),_0x248e4e[_0x1e4b31(0xdb)](toCamelCase(_0x37313c[_0x1e4b31(0xd6)]));}for(const _0x566c4c of[_0x1e4b31(0xd8),_0x1e4b31(0xd4),_0x1e4b31(0xcb),_0x1e4b31(0xca)]){_0x248e4e['add'](_0x566c4c);}for(const _0x772c08 of['help',_0x1e4b31(0xe9),_0x1e4b31(0xcc),_0x1e4b31(0xeb),_0x1e4b31(0xd7),_0x1e4b31(0xcf),'ci',_0x1e4b31(0xcd),_0x1e4b31(0xef)]){_0x248e4e['add'](_0x772c08);}return _0x248e4e;}function buildFlagTypeMap(_0x126c48){const _0x1a85bf=a75_0x2a0e,_0xf7018b=new Map();for(const _0x35ceb6 of _0x126c48){_0xf7018b[_0x1a85bf(0xee)](_0x35ceb6[_0x1a85bf(0xd6)],_0x35ceb6['type']),_0xf7018b[_0x1a85bf(0xee)](toCamelCase(_0x35ceb6[_0x1a85bf(0xd6)]),_0x35ceb6[_0x1a85bf(0xed)]);}return _0xf7018b;}function a75_0x58ff(){const _0x1e4399=['add','slice','sticky','alias','toLowerCase','has','12bzlaBi','3wOoyXR','entries','indexOf','396615kDlRxY','number','replace','string','env','2506533JclaRr','app','original','type','set','version','72952BahPOK','4ILRmSk','toUpperCase','boolean','8785287fhaMAy','format','yes','appcode','global','297454WYStHN','non-interactive','corrected','11mKzPuF','39375037uGSINp','7075570faSjEC','dryRun','get','name','nonInteractive','dry-run','12gzTxGe','259IbedGj'];a75_0x58ff=function(){return _0x1e4399;};return a75_0x58ff();}function toCamelCase(_0x10fe9f){const _0x17a51a=a75_0x2a0e;return _0x10fe9f[_0x17a51a(0xe7)](/-([a-z])/g,(_0x4a486e,_0x388fac)=>_0x388fac[_0x17a51a(0xc7)]());}function aliasHandler(_0x2a5b59,_0x2325f2){const _0x1d2af8=a75_0x2a0e,_0x2e8a72=[];for(const _0x49db57 of Object['keys'](_0x2a5b59)){if(_0x2325f2[_0x1d2af8(0xe0)](_0x49db57))continue;const _0x4b6796=toKebab(_0x49db57);_0x4b6796!==_0x49db57&&_0x2325f2[_0x1d2af8(0xe0)](_0x4b6796)&&_0x2e8a72['push']({'original':_0x49db57,'corrected':_0x4b6796,'handler':_0x1d2af8(0xde)});}return _0x2e8a72;}function stickyHandler(_0x2e8167,_0xf30e9d,_0x3c5d88){const _0x6de29f=a75_0x2a0e,_0x39ad12=[];for(const [_0x4f4023,_0x115d0b]of Object[_0x6de29f(0xe3)](_0x2e8167)){if(_0x115d0b!==!![])continue;for(let _0x133ffe=_0x4f4023['length']-0x1;_0x133ffe>0x0;_0x133ffe--){const _0x4d6adc=_0x4f4023[_0x6de29f(0xdc)](0x0,_0x133ffe),_0x10debd=_0x4f4023[_0x6de29f(0xdc)](_0x133ffe),_0x5884c5=toKebab(_0x4d6adc),_0x364eb0=toCamelCase(_0x4d6adc),_0x479829=_0xf30e9d[_0x6de29f(0xe0)](_0x4d6adc)?_0x4d6adc:_0xf30e9d['has'](_0x5884c5)?_0x5884c5:_0xf30e9d['has'](_0x364eb0)?_0x364eb0:null;if(!_0x479829)continue;const _0xa9571d=_0x3c5d88[_0x6de29f(0xd5)](_0x479829)??'string';let _0x39c61f;if(_0xa9571d===_0x6de29f(0xe6)){const _0x27ab7c=Number(_0x10debd);if(isNaN(_0x27ab7c)||_0x10debd==='')continue;_0x39c61f=_0x27ab7c;}else{if(_0xa9571d===_0x6de29f(0xc8))continue;else{if(_0x10debd==='')continue;_0x39c61f=_0x10debd;}}_0x39ad12['push']({'original':_0x4f4023,'corrected':_0x479829+'='+_0x39c61f,'handler':_0x6de29f(0xdd)});break;}}return _0x39ad12;}export function correctFlags(_0x29ce44,_0x175473){const _0x5b398d=a75_0x2a0e,_0xbe2aab=buildKnownFlags(_0x175473),_0x6aacd6=buildFlagTypeMap(_0x175473),_0x1d49ce=aliasHandler(_0x29ce44,_0xbe2aab),_0x2a11a7=stickyHandler(_0x29ce44,_0xbe2aab,_0x6aacd6),_0xb9be61=[..._0x1d49ce,..._0x2a11a7];if(_0xb9be61['length']===0x0)return{'flags':_0x29ce44,'corrections':[]};const _0xf2b16c={..._0x29ce44},_0x4ff315=new Set();for(const _0x3fc144 of _0x1d49ce){_0xf2b16c[_0x3fc144['corrected']]=_0x29ce44[_0x3fc144['original']],_0x4ff315[_0x5b398d(0xdb)](_0x3fc144[_0x5b398d(0xec)]);}for(const _0xead1d9 of _0x2a11a7){const _0x2151bf=_0xead1d9['corrected'][_0x5b398d(0xe4)]('='),_0x48870c=_0xead1d9[_0x5b398d(0xd0)]['slice'](0x0,_0x2151bf),_0x4e4041=_0xead1d9[_0x5b398d(0xd0)][_0x5b398d(0xdc)](_0x2151bf+0x1),_0x359456=_0x6aacd6[_0x5b398d(0xd5)](_0x48870c)??_0x5b398d(0xe8);_0x359456===_0x5b398d(0xe6)?_0xf2b16c[_0x48870c]=Number(_0x4e4041):_0xf2b16c[_0x48870c]=_0x4e4041,_0x4ff315[_0x5b398d(0xdb)](_0xead1d9['original']);}for(const _0x596ab7 of _0x4ff315){delete _0xf2b16c[_0x596ab7];}return{'flags':_0xf2b16c,'corrections':_0xb9be61};}
@@ -1 +1 @@
1
- function a76_0xf750(_0x4a27bc,_0x448060){_0x4a27bc=_0x4a27bc-0x1de;var _0x56c5e9=a76_0x56c5();var _0xf750f8=_0x56c5e9[_0x4a27bc];return _0xf750f8;}function a76_0x56c5(){var _0x17ce97=['4FNemsP','1391135SjGkOW','77hHIxss','546298uxAfvP','227490elrKnp','25510NlMfJG','5157KwaVRi','413074SqiwPK','1269080dcrYCZ','442383IslfeU'];a76_0x56c5=function(){return _0x17ce97;};return a76_0x56c5();}(function(_0x29bcf7,_0x49cc03){var _0x3e5520=a76_0xf750,_0x1bfa31=_0x29bcf7();while(!![]){try{var _0x32a05c=parseInt(_0x3e5520(0x1e5))/0x1+parseInt(_0x3e5520(0x1e1))/0x2+-parseInt(_0x3e5520(0x1e7))/0x3*(-parseInt(_0x3e5520(0x1de))/0x4)+parseInt(_0x3e5520(0x1df))/0x5+-parseInt(_0x3e5520(0x1e2))/0x6*(-parseInt(_0x3e5520(0x1e0))/0x7)+parseInt(_0x3e5520(0x1e6))/0x8+parseInt(_0x3e5520(0x1e4))/0x9*(-parseInt(_0x3e5520(0x1e3))/0xa);if(_0x32a05c===_0x49cc03)break;else _0x1bfa31['push'](_0x1bfa31['shift']());}catch(_0x10ce4d){_0x1bfa31['push'](_0x1bfa31['shift']());}}}(a76_0x56c5,0x37260));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x2e9173,_0x411fe6){var _0x5397ed=a76_0x47ee,_0xf6b9b6=_0x2e9173();while(!![]){try{var _0xe5747c=parseInt(_0x5397ed(0x15c))/0x1+-parseInt(_0x5397ed(0x153))/0x2+parseInt(_0x5397ed(0x157))/0x3*(parseInt(_0x5397ed(0x154))/0x4)+parseInt(_0x5397ed(0x159))/0x5*(parseInt(_0x5397ed(0x158))/0x6)+-parseInt(_0x5397ed(0x155))/0x7+-parseInt(_0x5397ed(0x15b))/0x8+-parseInt(_0x5397ed(0x156))/0x9*(-parseInt(_0x5397ed(0x15a))/0xa);if(_0xe5747c===_0x411fe6)break;else _0xf6b9b6['push'](_0xf6b9b6['shift']());}catch(_0x10deff){_0xf6b9b6['push'](_0xf6b9b6['shift']());}}}(a76_0x1797,0x83b6a));function a76_0x47ee(_0x2e228f,_0x25b18c){_0x2e228f=_0x2e228f-0x153;var _0x179790=a76_0x1797();var _0x47ee85=_0x179790[_0x2e228f];return _0x47ee85;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a76_0x1797(){var _0x30ef06=['483938pExUKY','1265918LXANtW','154664LzeODO','3081428AiRhHf','4638861rAShZS','78IUnkab','108EtWDsf','23465nOfEOb','10BnVYnX','3811968ziVVvR'];a76_0x1797=function(){return _0x30ef06;};return a76_0x1797();}
@@ -1 +1 @@
1
- (function(_0x53aae0,_0x31d2cf){const _0x4fa54f=a77_0x2979,_0x37d11c=_0x53aae0();while(!![]){try{const _0x35d0cf=-parseInt(_0x4fa54f(0x150))/0x1+parseInt(_0x4fa54f(0x14c))/0x2*(parseInt(_0x4fa54f(0x159))/0x3)+-parseInt(_0x4fa54f(0x149))/0x4+parseInt(_0x4fa54f(0x147))/0x5*(parseInt(_0x4fa54f(0x14e))/0x6)+parseInt(_0x4fa54f(0x15c))/0x7*(parseInt(_0x4fa54f(0x15d))/0x8)+-parseInt(_0x4fa54f(0x148))/0x9+parseInt(_0x4fa54f(0x15a))/0xa*(parseInt(_0x4fa54f(0x151))/0xb);if(_0x35d0cf===_0x31d2cf)break;else _0x37d11c['push'](_0x37d11c['shift']());}catch(_0x27368c){_0x37d11c['push'](_0x37d11c['shift']());}}}(a77_0x2ea7,0x835ee));function a77_0x2ea7(){const _0x79503a=['9631539hhDTLi','1842548aWfAXZ','id=','\x20\x20\x20Affected:\x20','6WjBRrP','code','24YwvYaD','join','915171vtPTQe','1342pahMrk','\x20\x20\x20','commandLabel','params','service','stringify','name','push','155691xrLfna','136020pnfSkb','length','182ltIilN','165656cAzFHI','description','\x20\x20\x20Continue?\x20[y/N]\x20','command','params=','--yes','code=','entries','name=','788195HrxoZv'];a77_0x2ea7=function(){return _0x79503a;};return a77_0x2ea7();}import{CLI_BIN_NAME}from'../constant/cli.js';function a77_0x2979(_0x5f5495,_0x436ad0){_0x5f5495=_0x5f5495-0x142;const _0x2ea788=a77_0x2ea7();let _0x2979f2=_0x2ea788[_0x5f5495];return _0x2979f2;}export function buildConfirmationLines(_0x170651,_0x208323,_0x730a3a){const _0x2aacb8=a77_0x2979,_0x52ffd3=buildConfirmationContext(_0x170651,_0x208323,_0x730a3a),_0xc9c785=['⚠\x20\x20High-risk\x20operation:\x20'+_0x52ffd3[_0x2aacb8(0x153)]];return _0x52ffd3['description']&&_0xc9c785[_0x2aacb8(0x158)](_0x2aacb8(0x152)+_0x52ffd3[_0x2aacb8(0x15e)]),_0x52ffd3['affectedRecords']&&_0xc9c785[_0x2aacb8(0x158)](_0x2aacb8(0x14b)+_0x52ffd3['affectedRecords']),_0xc9c785[_0x2aacb8(0x158)](_0x2aacb8(0x15f)),_0xc9c785;}export function reconstructCommandArgv(_0x3cc6ab,_0x3d739e){const _0x541dc1=a77_0x2979,_0x5d50f3=[CLI_BIN_NAME,_0x3cc6ab[_0x541dc1(0x155)],_0x3cc6ab[_0x541dc1(0x160)]];for(const [_0x20f9dd,_0x16c8fd]of Object[_0x541dc1(0x145)](_0x3d739e)){if(_0x16c8fd===!![])_0x5d50f3[_0x541dc1(0x158)]('--'+_0x20f9dd);else _0x16c8fd!==![]&&_0x16c8fd!==undefined&&_0x16c8fd!==''&&_0x5d50f3[_0x541dc1(0x158)]('--'+_0x20f9dd+'\x20'+JSON[_0x541dc1(0x156)](_0x16c8fd));}return _0x5d50f3[_0x541dc1(0x158)](_0x541dc1(0x143)),_0x5d50f3[_0x541dc1(0x14f)]('\x20');}function buildConfirmationContext(_0x6ed96e,_0x49b3cb,_0x2c6b69){const _0x2361cb=extractAffectedRecords(_0x2c6b69);return{'commandLabel':_0x49b3cb,'description':_0x6ed96e['description'],'affectedRecords':_0x2361cb};}function extractAffectedRecords(_0x5138ea){const _0xa0b822=a77_0x2979,_0x1fda61=[];if(_0x5138ea[_0xa0b822(0x14d)])_0x1fda61[_0xa0b822(0x158)](_0xa0b822(0x144)+_0x5138ea[_0xa0b822(0x14d)]);if(_0x5138ea['id'])_0x1fda61['push'](_0xa0b822(0x14a)+_0x5138ea['id']);if(_0x5138ea[_0xa0b822(0x157)])_0x1fda61[_0xa0b822(0x158)](_0xa0b822(0x146)+_0x5138ea[_0xa0b822(0x157)]);if(_0x5138ea['params'])_0x1fda61['push'](_0xa0b822(0x142)+_0x5138ea[_0xa0b822(0x154)]);return _0x1fda61[_0xa0b822(0x15b)]>0x0?_0x1fda61[_0xa0b822(0x14f)](',\x20'):undefined;}
1
+ (function(_0x54a478,_0x264087){const _0x45face=a77_0x2149,_0x181208=_0x54a478();while(!![]){try{const _0x51c30c=-parseInt(_0x45face(0x14d))/0x1+-parseInt(_0x45face(0x14b))/0x2+-parseInt(_0x45face(0x157))/0x3+-parseInt(_0x45face(0x158))/0x4+-parseInt(_0x45face(0x143))/0x5+-parseInt(_0x45face(0x148))/0x6+-parseInt(_0x45face(0x14f))/0x7*(-parseInt(_0x45face(0x150))/0x8);if(_0x51c30c===_0x264087)break;else _0x181208['push'](_0x181208['shift']());}catch(_0x104392){_0x181208['push'](_0x181208['shift']());}}}(a77_0x402a,0x5ad6b));import{CLI_BIN_NAME}from'../constant/cli.js';function a77_0x2149(_0x24816f,_0x22f1e2){_0x24816f=_0x24816f-0x143;const _0x402adb=a77_0x402a();let _0x2149aa=_0x402adb[_0x24816f];return _0x2149aa;}export function buildConfirmationLines(_0x5e11be,_0x41aaaf,_0x4dc69b){const _0x201f75=a77_0x2149,_0x111d0b=buildConfirmationContext(_0x5e11be,_0x41aaaf,_0x4dc69b),_0x4868a8=[_0x201f75(0x14c)+_0x111d0b[_0x201f75(0x15c)]];return _0x111d0b[_0x201f75(0x14e)]&&_0x4868a8[_0x201f75(0x156)](_0x201f75(0x145)+_0x111d0b[_0x201f75(0x14e)]),_0x111d0b[_0x201f75(0x153)]&&_0x4868a8[_0x201f75(0x156)]('\x20\x20\x20Affected:\x20'+_0x111d0b[_0x201f75(0x153)]),_0x4868a8[_0x201f75(0x156)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x4868a8;}export function reconstructCommandArgv(_0x22f2c7,_0x35ab20){const _0x14340d=a77_0x2149,_0x1a3527=[CLI_BIN_NAME,_0x22f2c7[_0x14340d(0x146)],_0x22f2c7[_0x14340d(0x14a)]];for(const [_0x402663,_0x2ba1f4]of Object[_0x14340d(0x15a)](_0x35ab20)){if(_0x2ba1f4===!![])_0x1a3527[_0x14340d(0x156)]('--'+_0x402663);else _0x2ba1f4!==![]&&_0x2ba1f4!==undefined&&_0x2ba1f4!==''&&_0x1a3527[_0x14340d(0x156)]('--'+_0x402663+'\x20'+JSON[_0x14340d(0x154)](_0x2ba1f4));}return _0x1a3527[_0x14340d(0x156)](_0x14340d(0x15b)),_0x1a3527[_0x14340d(0x155)]('\x20');}function buildConfirmationContext(_0x13f2ec,_0x4cba1f,_0x213a30){const _0x3aeb5d=a77_0x2149,_0x481203=extractAffectedRecords(_0x213a30);return{'commandLabel':_0x4cba1f,'description':_0x13f2ec[_0x3aeb5d(0x14e)],'affectedRecords':_0x481203};}function extractAffectedRecords(_0x5b6f57){const _0x294bce=a77_0x2149,_0x2cd3b3=[];if(_0x5b6f57[_0x294bce(0x152)])_0x2cd3b3[_0x294bce(0x156)](_0x294bce(0x144)+_0x5b6f57[_0x294bce(0x152)]);if(_0x5b6f57['id'])_0x2cd3b3[_0x294bce(0x156)](_0x294bce(0x151)+_0x5b6f57['id']);if(_0x5b6f57[_0x294bce(0x15d)])_0x2cd3b3[_0x294bce(0x156)](_0x294bce(0x159)+_0x5b6f57[_0x294bce(0x15d)]);if(_0x5b6f57[_0x294bce(0x149)])_0x2cd3b3[_0x294bce(0x156)]('params='+_0x5b6f57['params']);return _0x2cd3b3[_0x294bce(0x147)]>0x0?_0x2cd3b3[_0x294bce(0x155)](',\x20'):undefined;}function a77_0x402a(){const _0x3ae2e0=['stringify','join','push','1527111vexfjR','2841372ZKOxdY','name=','entries','--yes','commandLabel','name','1303160FoHoKi','code=','\x20\x20\x20','service','length','4438404iBrkws','params','command','227524tWPibC','⚠\x20\x20High-risk\x20operation:\x20','15188JDWlWU','description','7paaIdD','21766168WsIgkT','id=','code','affectedRecords'];a77_0x402a=function(){return _0x3ae2e0;};return a77_0x402a();}
@@ -1 +1 @@
1
- (function(_0x276e8d,_0x328e6f){const _0x312ec6=a78_0x2eb9,_0x23319b=_0x276e8d();while(!![]){try{const _0x53a8e4=-parseInt(_0x312ec6(0x1c9))/0x1+parseInt(_0x312ec6(0x1d0))/0x2*(parseInt(_0x312ec6(0x1ca))/0x3)+-parseInt(_0x312ec6(0x1cb))/0x4+parseInt(_0x312ec6(0x1c7))/0x5*(-parseInt(_0x312ec6(0x1c6))/0x6)+-parseInt(_0x312ec6(0x1d3))/0x7+parseInt(_0x312ec6(0x1cd))/0x8+parseInt(_0x312ec6(0x1cf))/0x9;if(_0x53a8e4===_0x328e6f)break;else _0x23319b['push'](_0x23319b['shift']());}catch(_0x10671f){_0x23319b['push'](_0x23319b['shift']());}}}(a78_0x1b3c,0x4681e));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x512b0f){const _0x21ab5b=a78_0x2eb9;if(_0x512b0f instanceof LovrabetError)return CliErrors[_0x21ab5b(0x1ce)](userFacingLovrabetMessage(_0x512b0f));return _0x512b0f;}function a78_0x2eb9(_0x2179cc,_0x1fead1){_0x2179cc=_0x2179cc-0x1c6;const _0x1b3c16=a78_0x1b3c();let _0x2eb9d0=_0x1b3c16[_0x2179cc];return _0x2eb9d0;}function userFacingLovrabetMessage(_0x4ea734){const _0x1557ab=a78_0x2eb9,_0x2ffe02=_0x4ea734[_0x1557ab(0x1cc)];if(_0x2ffe02!==undefined&&_0x2ffe02!==null){if(typeof _0x2ffe02===_0x1557ab(0x1d2)&&_0x2ffe02[_0x1557ab(0x1c8)]())return _0x2ffe02[_0x1557ab(0x1c8)]();try{return JSON[_0x1557ab(0x1d4)](_0x2ffe02);}catch{}}return _0x4ea734[_0x1557ab(0x1d1)];}function a78_0x1b3c(){const _0x37e940=['42FoLXsp','25455uVgILN','trim','48623CcSXBg','170349BwCxbh','880044WRyYUd','description','399312oXBzRf','validation','5995026ElETXv','8xWzkwB','message','string','2450637uHUFgN','stringify'];a78_0x1b3c=function(){return _0x37e940;};return a78_0x1b3c();}
1
+ (function(_0x2b7239,_0x3d436a){const _0x28ccc2=a78_0x1c1c,_0x5d92b3=_0x2b7239();while(!![]){try{const _0xef535c=parseInt(_0x28ccc2(0xb7))/0x1*(-parseInt(_0x28ccc2(0xb5))/0x2)+-parseInt(_0x28ccc2(0xb9))/0x3*(-parseInt(_0x28ccc2(0xb0))/0x4)+parseInt(_0x28ccc2(0xb8))/0x5*(parseInt(_0x28ccc2(0xa9))/0x6)+parseInt(_0x28ccc2(0xb6))/0x7*(parseInt(_0x28ccc2(0xb2))/0x8)+-parseInt(_0x28ccc2(0xab))/0x9+parseInt(_0x28ccc2(0xad))/0xa*(-parseInt(_0x28ccc2(0xaa))/0xb)+parseInt(_0x28ccc2(0xac))/0xc*(parseInt(_0x28ccc2(0xae))/0xd);if(_0xef535c===_0x3d436a)break;else _0x5d92b3['push'](_0x5d92b3['shift']());}catch(_0x4d0d94){_0x5d92b3['push'](_0x5d92b3['shift']());}}}(a78_0x210c,0x1adbf));function a78_0x1c1c(_0x29c464,_0x425d2d){_0x29c464=_0x29c464-0xa9;const _0x210c30=a78_0x210c();let _0x1c1ccb=_0x210c30[_0x29c464];return _0x1c1ccb;}import{LovrabetError}from'@lovrabet/sdk';function a78_0x210c(){const _0x53ac45=['message','176sBZyZM','stringify','trim','2856FmNZYx','51702dKJYER','6vLSHfs','264485VwOMAA','5268kdiuHn','validation','6QbeuGA','578270wmAbEo','1533474SNBkID','4728uJRAcU','40ZRtYMB','9308PxpszW','description','4wrnrGN'];a78_0x210c=function(){return _0x53ac45;};return a78_0x210c();}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x934c25){const _0x37fa79=a78_0x1c1c;if(_0x934c25 instanceof LovrabetError)return CliErrors[_0x37fa79(0xba)](userFacingLovrabetMessage(_0x934c25));return _0x934c25;}function userFacingLovrabetMessage(_0x5209e1){const _0x10bd09=a78_0x1c1c,_0x2ce0b2=_0x5209e1[_0x10bd09(0xaf)];if(_0x2ce0b2!==undefined&&_0x2ce0b2!==null){if(typeof _0x2ce0b2==='string'&&_0x2ce0b2[_0x10bd09(0xb4)]())return _0x2ce0b2[_0x10bd09(0xb4)]();try{return JSON[_0x10bd09(0xb3)](_0x2ce0b2);}catch{}}return _0x5209e1[_0x10bd09(0xb1)];}
@@ -1 +1 @@
1
- const a79_0x1cc94c=a79_0x5bde;(function(_0x42e174,_0x14b304){const _0x16cade=a79_0x5bde,_0x2f94b9=_0x42e174();while(!![]){try{const _0x15b0d6=-parseInt(_0x16cade(0x110))/0x1*(parseInt(_0x16cade(0x114))/0x2)+-parseInt(_0x16cade(0x11b))/0x3*(-parseInt(_0x16cade(0xfe))/0x4)+-parseInt(_0x16cade(0x11a))/0x5+parseInt(_0x16cade(0x109))/0x6+-parseInt(_0x16cade(0x124))/0x7+parseInt(_0x16cade(0xec))/0x8*(-parseInt(_0x16cade(0x121))/0x9)+parseInt(_0x16cade(0x126))/0xa;if(_0x15b0d6===_0x14b304)break;else _0x2f94b9['push'](_0x2f94b9['shift']());}catch(_0x19c969){_0x2f94b9['push'](_0x2f94b9['shift']());}}}(a79_0x1555,0xe7e7a));function a79_0x5bde(_0x1ede67,_0x2e1f4d){_0x1ede67=_0x1ede67-0xec;const _0x1555cf=a79_0x1555();let _0x5bde5b=_0x1555cf[_0x1ede67];return _0x5bde5b;}import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x5bf197){const _0xf595e6=a79_0x5bde;return void _0x5bf197,AUTH_MODE[_0xf595e6(0x108)];}export function createPipelineEnv(_0x4586b0,_0x30493e){const _0x4652a3=a79_0x5bde,_0x1e0e9c=typeof _0x30493e[_0x4652a3(0x128)]===_0x4652a3(0xf5)&&_0x30493e[_0x4652a3(0x128)][_0x4652a3(0x104)]();return{'rawFlags':_0x30493e,'appCode':_0x4586b0[_0x4652a3(0xf7)]||productEnv(_0x4652a3(0x10d))||(_0x1e0e9c?undefined:readAppCodeFromConfig()),'appCodeSource':_0x4586b0[_0x4652a3(0xef)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x30493e),'defaultFormat':_0x4586b0[_0x4652a3(0xee)],'defaultPageSize':_0x4586b0['pageSize'],'defaultVerbose':_0x4586b0[_0x4652a3(0x10c)],'riskLevel':_0x4586b0[_0x4652a3(0x120)],'accessKey':_0x4586b0[_0x4652a3(0x118)],'env':_0x4586b0[_0x4652a3(0x10a)],'mergedCli':{'defaultApp':_0x4586b0[_0x4652a3(0xf2)],'currentApp':_0x4586b0[_0x4652a3(0xf1)],'appCode':_0x4586b0['appCode']}};}function a79_0x1555(){const _0x2e4cfc=['ACCESS_KEY','cancelled','appcode\x20\x22','accessKey','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','8239230TvUKzg','982815OvTyuz','rawFlags','name','appcode','mergedCli','riskLevel','4998627SCXirB','schema','../core/sdk-client.js','9768780eaLJWt','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','45946190VozraF','High-risk\x20operation\x20`','app','8BYAize','Run\x20`','format','appCodeSource','_notice','currentApp','defaultApp','includes','\x20\x20To\x20proceed:\x20','string','../commands/app/remote-source.js','appCode','isNonInteractive','error','Unknown\x20app:\x20','requiresAppCode','object','.appcode\x20to\x20','20hHeOVf','\x20or\x20pass\x20','service','has','../core/api-client.js','Set\x20accessKey\x20in\x20','trim','newConfigFileName','defaultVerbose','production','ClientAk','75144LvsFqa','env','execute','verbose','APPCODE','authRequired','doctor','565499PFZVdH','requiresAuth','defaultPageSize','resolve','6IXGYNn'];a79_0x1555=function(){return _0x2e4cfc;};return a79_0x1555();}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x23686f=>PIPELINE_FLAG_NAMES[a79_0x1cc94c(0x101)](_0x23686f[a79_0x1cc94c(0x11d)]))['map'](({name:_0x20e7d3,type:_0x878a53,description:_0x13f6d6})=>({'name':_0x20e7d3,'type':_0x878a53,'description':_0x13f6d6})),'formatOutput':formatOutput,'getCommandLabel'(_0x1d6f76){return CLI_BIN_NAME+'\x20'+_0x1d6f76['service']+'\x20'+_0x1d6f76['command'];},'riskPolicy':{'onViolation'(_0x26f6d7){const _0x493dfe=a79_0x1cc94c;console[_0x493dfe(0xf9)](_0x26f6d7);},'createError'(_0x237b1e){const _0x37ef08=a79_0x1cc94c;return CliErrors[_0x37ef08(0x116)](_0x237b1e);}},async 'prepare'(_0x22a313,_0x5c517b){const _0x327613=a79_0x1cc94c,_0x3fa8e7=resolveAuthMode(_0x5c517b);if(_0x22a313[_0x327613(0x111)]!==![]){if(!_0x5c517b[_0x327613(0x118)])throw CliErrors[_0x327613(0x10e)](_0x327613(0x103)+PRODUCT_CONFIG[_0x327613(0x105)]+_0x327613(0xff)+productEnvName(_0x327613(0x115))+'.');const {setActiveAK:_0x491094}=await import(_0x327613(0x102));_0x491094(_0x5c517b[_0x327613(0x118)]);}let _0x26f90b='';if(_0x22a313[_0x327613(0xfb)]!==![]){_0x26f90b=_0x5c517b[_0x327613(0xf7)]??'',_0x26f90b=await resolveExplicitAppName(_0x22a313,_0x5c517b,_0x26f90b);if(!_0x26f90b){await assertSelectedAppNameIsRuntimeAccessible(_0x22a313,_0x5c517b);throw CliErrors['configMissing'](_0x327613(0x125)+PRODUCT_CONFIG[_0x327613(0x105)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x22a313,_0x5c517b,_0x26f90b);}if(_0x26f90b){const {initSdkClient:_0x3b6042}=await import(_0x327613(0x123));_0x3b6042({'appCode':_0x26f90b,'env':_0x5c517b[_0x327613(0x10a)]??_0x327613(0x107),'accessKey':_0x5c517b[_0x327613(0x118)],'authMode':_0x3fa8e7});}return{'defaults':{'booleans':{'verbose':_0x5c517b[_0x327613(0x106)]},'numbers':{'pagesize':_0x5c517b[_0x327613(0x112)]}},'extras':{'appCode':_0x26f90b,'cookie':'','apiDomain':_0x5c517b['apiDomain'],'apiDir':'','accessKey':_0x5c517b['accessKey'],'envName':_0x5c517b[_0x327613(0x10a)],'mergedCli':_0x5c517b[_0x327613(0x11f)]}};},async 'confirmHighRisk'({def:_0x666edb,env:_0x22720f,flags:_0x399399,commandLabel:_0x399571}){const _0x17343e=a79_0x1cc94c;if(_0x22720f[_0x17343e(0xf8)]){const _0x14c86a=reconstructCommandArgv(_0x666edb,_0x399399);throw CliErrors['validation'](_0x17343e(0x127)+_0x399571+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x17343e(0xf4)+_0x14c86a));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x666edb,_0x399571,_0x399399),'createCancelledError':_0x37b1a7=>CliErrors[_0x17343e(0x116)](_0x37b1a7)});},'mapDryRunError'(_0x19b97f){return mapUserFacingExecuteError(_0x19b97f);},'mapExecuteError'(_0xa9ae7f){return mapUserFacingExecuteError(_0xa9ae7f);},async 'finalize'(){const {clearActiveAK:_0x457838}=await import('../core/api-client.js');_0x457838();}};async function resolveExplicitAppName(_0x4b0b8b,_0x289f84,_0x332edf){const _0x135e34=a79_0x1cc94c;if(_0x4b0b8b['requiresAppCode']===![])return _0x332edf;const _0x25668f=typeof _0x289f84['rawFlags'][_0x135e34(0x128)]===_0x135e34(0xf5)?_0x289f84[_0x135e34(0x11c)][_0x135e34(0x128)][_0x135e34(0x104)]():'';if(!_0x25668f)return _0x332edf;const _0x12481e=typeof _0x289f84[_0x135e34(0x11c)]['appcode']==='string'&&_0x289f84[_0x135e34(0x11c)][_0x135e34(0x11e)][_0x135e34(0x104)]()||productEnv(_0x135e34(0x10d));if(_0x12481e||_0x289f84[_0x135e34(0xef)]==='local-alias')return _0x332edf;const {getRemoteAppList:_0x22921a}=await import(_0x135e34(0xf6)),_0x15248f=await _0x22921a({'env':_0x289f84[_0x135e34(0x10a)]??'production','accessKey':_0x289f84[_0x135e34(0x118)]}),_0x12ec74=findAppByName(_0x15248f['items'],_0x25668f);if(_0x12ec74&&!isRuntimeAccessibleApp(_0x12ec74))throw runtimeInaccessibleAppError(_0x12ec74,'\x22'+_0x25668f+'\x22');const _0xc72fa7=_0x12ec74?.[_0x135e34(0xf7)]?.[_0x135e34(0x104)]();if(_0xc72fa7)return _0xc72fa7;throw CliErrors['validation'](_0x135e34(0xfa)+_0x25668f,_0x135e34(0xed)+CLI_BIN_NAME+_0x135e34(0x119)+_0x25668f+_0x135e34(0xfd)+PRODUCT_CONFIG[_0x135e34(0x105)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x434013,_0x45980a){const _0x3e89f5=a79_0x1cc94c;if(_0x434013[_0x3e89f5(0xfb)]===![]||!_0x45980a[_0x3e89f5(0x118)])return;const _0x8cf545=(typeof _0x45980a[_0x3e89f5(0x11c)][_0x3e89f5(0x128)]==='string'&&_0x45980a[_0x3e89f5(0x11c)][_0x3e89f5(0x128)][_0x3e89f5(0x104)]()?_0x45980a['rawFlags'][_0x3e89f5(0x128)]:_0x45980a[_0x3e89f5(0x11f)]?.['currentApp']??_0x45980a[_0x3e89f5(0x11f)]?.[_0x3e89f5(0xf2)])?.[_0x3e89f5(0x104)]();if(!_0x8cf545)return;const {getRemoteAppList:_0xaf0a89}=await import(_0x3e89f5(0xf6)),_0x2cf7fe=await _0xaf0a89({'env':_0x45980a[_0x3e89f5(0x10a)]??_0x3e89f5(0x107),'accessKey':_0x45980a[_0x3e89f5(0x118)]}),_0x2b9b11=findAppByName(_0x2cf7fe['items'],_0x8cf545);if(_0x2b9b11&&!isRuntimeAccessibleApp(_0x2b9b11))throw runtimeInaccessibleAppError(_0x2b9b11,'\x22'+_0x8cf545+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x198b79,_0x2807c5,_0x24e951){const _0x418317=a79_0x1cc94c;if(_0x198b79[_0x418317(0xfb)]===![]||!_0x2807c5[_0x418317(0x118)])return;const {getRemoteAppList:_0x36e002}=await import(_0x418317(0xf6)),_0x28d193=await _0x36e002({'env':_0x2807c5[_0x418317(0x10a)]??_0x418317(0x107),'accessKey':_0x2807c5['accessKey']}),_0x4e2bae=findAppByCode(_0x28d193['items'],_0x24e951);if(_0x4e2bae&&!isRuntimeAccessibleApp(_0x4e2bae))throw runtimeInaccessibleAppError(_0x4e2bae,_0x418317(0x117)+_0x24e951+'\x22');}export async function runCommand(_0x4282f3,_0x182440){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4282f3)?withUpdateNotice(_0x4282f3):_0x4282f3,_0x182440,runnerAdapter);}function shouldAttachUpdateNotice(_0x19978e){const _0x397d24=a79_0x1cc94c;return!['update',_0x397d24(0x122),_0x397d24(0x10f)][_0x397d24(0xf3)](_0x19978e[_0x397d24(0x100)]);}function withUpdateNotice(_0x590235){return{..._0x590235,async 'execute'(_0x2087ac){const _0x2d2e6b=a79_0x5bde,_0x48a122=shouldResolveUpdateNotice(_0x2087ac)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x2d2e6b(0x113)](null),_0x47efe9=await _0x590235[_0x2d2e6b(0x10b)](_0x2087ac);return attachUpdateNotice(_0x47efe9,await _0x48a122);}};}function shouldResolveUpdateNotice(_0x3278c){const _0x50cf32=a79_0x1cc94c;return _0x3278c[_0x50cf32(0xee)]==='pretty'&&!_0x3278c['nonInteractive'];}function attachUpdateNotice(_0x198c1b,_0x37eb67){const _0x361e3e=a79_0x1cc94c;if(!_0x37eb67||!_0x198c1b||typeof _0x198c1b!==_0x361e3e(0xfc))return _0x198c1b;const _0x571e32=_0x198c1b,_0x5bbe09=typeof _0x571e32[_0x361e3e(0xf0)]===_0x361e3e(0xfc)&&_0x571e32[_0x361e3e(0xf0)]!==null?_0x571e32['_notice']:{};return{..._0x571e32,'_notice':{..._0x5bbe09,'update':_0x37eb67}};}
1
+ const a79_0xb0580a=a79_0x382c;(function(_0x4bdb80,_0x2ff58f){const _0x3dd831=a79_0x382c,_0x222b19=_0x4bdb80();while(!![]){try{const _0x143e9b=-parseInt(_0x3dd831(0xf0))/0x1*(-parseInt(_0x3dd831(0xda))/0x2)+parseInt(_0x3dd831(0x108))/0x3*(-parseInt(_0x3dd831(0x10d))/0x4)+-parseInt(_0x3dd831(0xec))/0x5+-parseInt(_0x3dd831(0xd9))/0x6*(parseInt(_0x3dd831(0xd6))/0x7)+parseInt(_0x3dd831(0xe8))/0x8+parseInt(_0x3dd831(0xeb))/0x9+parseInt(_0x3dd831(0xfa))/0xa*(parseInt(_0x3dd831(0xee))/0xb);if(_0x143e9b===_0x2ff58f)break;else _0x222b19['push'](_0x222b19['shift']());}catch(_0x51391d){_0x222b19['push'](_0x222b19['shift']());}}}(a79_0x281e,0xde241));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';function a79_0x281e(){const _0x308736=['defaultApp','local-alias','string','schema','catch','newConfigFileName','38860oVnUaj','Unknown\x20app:\x20','../commands/app/remote-source.js','error','rawFlags','pretty','doctor','nonInteractive','ACCESS_KEY','requiresAppCode','Set\x20accessKey\x20in\x20','apiDomain','validation','APPCODE','901917MLuthm','app','items','authRequired','requiresAuth','12iQFGle','verbose','7622741AJLIAy','\x20\x20To\x20proceed:\x20','riskLevel','6fnuBDN','124QQCUBD','_notice','defaultPageSize','service','appcode','isNonInteractive','pageSize','production','execute','currentApp','mergedCli','trim','High-risk\x20operation\x20`','update','4984160YpikfO','appCode','format','1568853SUDXSk','754130cKDSrj','appCodeSource','2387BTfRDc','has','22758bVmdAP','accessKey','env','cancelled'];a79_0x281e=function(){return _0x308736;};return a79_0x281e();}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(_0x1c159d){return void _0x1c159d,AUTH_MODE['ClientAk'];}export function createPipelineEnv(_0x5d23e4,_0x5f09e2){const _0x42469e=a79_0x382c,_0x5a67a5=typeof _0x5f09e2[_0x42469e(0x109)]===_0x42469e(0xf6)&&_0x5f09e2[_0x42469e(0x109)]['trim']();return{'rawFlags':_0x5f09e2,'appCode':_0x5d23e4[_0x42469e(0xe9)]||productEnv(_0x42469e(0x107))||(_0x5a67a5?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5d23e4[_0x42469e(0xed)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x5f09e2),'defaultFormat':_0x5d23e4[_0x42469e(0xea)],'defaultPageSize':_0x5d23e4[_0x42469e(0xe0)],'defaultVerbose':_0x5d23e4[_0x42469e(0xd5)],'riskLevel':_0x5d23e4[_0x42469e(0xd8)],'accessKey':_0x5d23e4[_0x42469e(0xf1)],'env':_0x5d23e4['env'],'mergedCli':{'defaultApp':_0x5d23e4[_0x42469e(0xf4)],'currentApp':_0x5d23e4['currentApp'],'appCode':_0x5d23e4['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x431250=>PIPELINE_FLAG_NAMES[a79_0xb0580a(0xef)](_0x431250['name']))['map'](({name:_0x12ef8d,type:_0x147f2c,description:_0x3278a6})=>({'name':_0x12ef8d,'type':_0x147f2c,'description':_0x3278a6})),'formatOutput':formatOutput,'getCommandLabel'(_0x224744){const _0xe257f6=a79_0xb0580a;return CLI_BIN_NAME+'\x20'+_0x224744[_0xe257f6(0xdd)]+'\x20'+_0x224744['command'];},'riskPolicy':{'onViolation'(_0x12cf2f){const _0x5df0f9=a79_0xb0580a;console[_0x5df0f9(0xfd)](_0x12cf2f);},'createError'(_0x2c2d1a){const _0x542777=a79_0xb0580a;return CliErrors[_0x542777(0xf3)](_0x2c2d1a);}},async 'prepare'(_0x57669a,_0x319937){const _0x1f046b=a79_0xb0580a,_0x26455c=resolveAuthMode(_0x319937);if(_0x57669a[_0x1f046b(0x10c)]!==![]){if(!_0x319937[_0x1f046b(0xf1)])throw CliErrors[_0x1f046b(0x10b)](_0x1f046b(0x104)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20pass\x20'+productEnvName(_0x1f046b(0x102))+'.');const {setActiveAK:_0x168248}=await import('../core/api-client.js');_0x168248(_0x319937[_0x1f046b(0xf1)]);}let _0x44867a='';if(_0x57669a[_0x1f046b(0x103)]!==![]){_0x44867a=_0x319937[_0x1f046b(0xe9)]??'',_0x44867a=await resolveExplicitAppName(_0x57669a,_0x319937,_0x44867a);if(!_0x44867a){await assertSelectedAppNameIsRuntimeAccessible(_0x57669a,_0x319937);throw CliErrors['configMissing']('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x1f046b(0xf9)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x57669a,_0x319937,_0x44867a);}if(_0x44867a){const {initSdkClient:_0x2d5c27}=await import('../core/sdk-client.js');_0x2d5c27({'appCode':_0x44867a,'env':_0x319937['env']??_0x1f046b(0xe1),'accessKey':_0x319937['accessKey'],'authMode':_0x26455c});}return{'defaults':{'booleans':{'verbose':_0x319937['defaultVerbose']},'numbers':{'pagesize':_0x319937[_0x1f046b(0xdc)]}},'extras':{'appCode':_0x44867a,'cookie':'','apiDomain':_0x319937[_0x1f046b(0x105)],'apiDir':'','accessKey':_0x319937[_0x1f046b(0xf1)],'envName':_0x319937[_0x1f046b(0xf2)],'mergedCli':_0x319937[_0x1f046b(0xe4)]}};},async 'confirmHighRisk'({def:_0x42e10d,env:_0x10ed1a,flags:_0x165728,commandLabel:_0x400056}){const _0x3f44fc=a79_0xb0580a;if(_0x10ed1a[_0x3f44fc(0xdf)]){const _0x136ca1=reconstructCommandArgv(_0x42e10d,_0x165728);throw CliErrors[_0x3f44fc(0x106)](_0x3f44fc(0xe6)+_0x400056+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x3f44fc(0xd7)+_0x136ca1));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x42e10d,_0x400056,_0x165728),'createCancelledError':_0x26bd74=>CliErrors['cancelled'](_0x26bd74)});},'mapDryRunError'(_0x2c9a45){return mapUserFacingExecuteError(_0x2c9a45);},'mapExecuteError'(_0xa0fccb){return mapUserFacingExecuteError(_0xa0fccb);},async 'finalize'(){const {clearActiveAK:_0x554468}=await import('../core/api-client.js');_0x554468();}};async function resolveExplicitAppName(_0x6c03f6,_0x315daf,_0x262905){const _0x5e653f=a79_0xb0580a;if(_0x6c03f6[_0x5e653f(0x103)]===![])return _0x262905;const _0x37cb15=typeof _0x315daf[_0x5e653f(0xfe)][_0x5e653f(0x109)]===_0x5e653f(0xf6)?_0x315daf[_0x5e653f(0xfe)][_0x5e653f(0x109)]['trim']():'';if(!_0x37cb15)return _0x262905;const _0x2cf1d3=typeof _0x315daf[_0x5e653f(0xfe)][_0x5e653f(0xde)]===_0x5e653f(0xf6)&&_0x315daf[_0x5e653f(0xfe)][_0x5e653f(0xde)][_0x5e653f(0xe5)]()||productEnv('APPCODE');if(_0x2cf1d3||_0x315daf[_0x5e653f(0xed)]===_0x5e653f(0xf5))return _0x262905;const {getRemoteAppList:_0x297870}=await import(_0x5e653f(0xfc)),_0x1d94a9=await _0x297870({'env':_0x315daf['env']??_0x5e653f(0xe1),'accessKey':_0x315daf[_0x5e653f(0xf1)]}),_0x362718=findAppByName(_0x1d94a9[_0x5e653f(0x10a)],_0x37cb15);if(_0x362718&&!isRuntimeAccessibleApp(_0x362718))throw runtimeInaccessibleAppError(_0x362718,'\x22'+_0x37cb15+'\x22');const _0x240977=_0x362718?.[_0x5e653f(0xe9)]?.[_0x5e653f(0xe5)]();if(_0x240977)return _0x240977;throw CliErrors[_0x5e653f(0x106)](_0x5e653f(0xfb)+_0x37cb15,'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x37cb15+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x184a54,_0x3bb937){const _0x36ec85=a79_0xb0580a;if(_0x184a54[_0x36ec85(0x103)]===![]||!_0x3bb937['accessKey'])return;const _0xbd0c06=(typeof _0x3bb937[_0x36ec85(0xfe)][_0x36ec85(0x109)]===_0x36ec85(0xf6)&&_0x3bb937[_0x36ec85(0xfe)][_0x36ec85(0x109)][_0x36ec85(0xe5)]()?_0x3bb937['rawFlags'][_0x36ec85(0x109)]:_0x3bb937['mergedCli']?.[_0x36ec85(0xe3)]??_0x3bb937[_0x36ec85(0xe4)]?.[_0x36ec85(0xf4)])?.[_0x36ec85(0xe5)]();if(!_0xbd0c06)return;const {getRemoteAppList:_0xd10aa0}=await import(_0x36ec85(0xfc)),_0x1b6f36=await _0xd10aa0({'env':_0x3bb937[_0x36ec85(0xf2)]??_0x36ec85(0xe1),'accessKey':_0x3bb937[_0x36ec85(0xf1)]}),_0x26a528=findAppByName(_0x1b6f36['items'],_0xbd0c06);if(_0x26a528&&!isRuntimeAccessibleApp(_0x26a528))throw runtimeInaccessibleAppError(_0x26a528,'\x22'+_0xbd0c06+'\x22');}function a79_0x382c(_0x41f411,_0x9a7a04){_0x41f411=_0x41f411-0xd5;const _0x281e05=a79_0x281e();let _0x382c98=_0x281e05[_0x41f411];return _0x382c98;}async function assertAppCodeIsRuntimeAccessible(_0x798864,_0x4e0a1e,_0x2b53f9){const _0x896dd=a79_0xb0580a;if(_0x798864[_0x896dd(0x103)]===![]||!_0x4e0a1e[_0x896dd(0xf1)])return;const {getRemoteAppList:_0x42ce80}=await import('../commands/app/remote-source.js'),_0x47e2c1=await _0x42ce80({'env':_0x4e0a1e[_0x896dd(0xf2)]??'production','accessKey':_0x4e0a1e[_0x896dd(0xf1)]}),_0x196585=findAppByCode(_0x47e2c1[_0x896dd(0x10a)],_0x2b53f9);if(_0x196585&&!isRuntimeAccessibleApp(_0x196585))throw runtimeInaccessibleAppError(_0x196585,'appcode\x20\x22'+_0x2b53f9+'\x22');}export async function runCommand(_0x53d4e2,_0x4290ed){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x53d4e2)?withUpdateNotice(_0x53d4e2):_0x53d4e2,_0x4290ed,runnerAdapter);}function shouldAttachUpdateNotice(_0x278c6e){const _0x2b98df=a79_0xb0580a;return![_0x2b98df(0xe7),_0x2b98df(0xf7),_0x2b98df(0x100)]['includes'](_0x278c6e[_0x2b98df(0xdd)]);}function withUpdateNotice(_0x41833b){return{..._0x41833b,async 'execute'(_0x1dcb5f){const _0x5b54ea=a79_0x382c,_0x540415=shouldResolveUpdateNotice(_0x1dcb5f)?resolveLatestUpdateNotice()[_0x5b54ea(0xf8)](()=>null):Promise['resolve'](null),_0x4512ef=await _0x41833b[_0x5b54ea(0xe2)](_0x1dcb5f);return attachUpdateNotice(_0x4512ef,await _0x540415);}};}function shouldResolveUpdateNotice(_0x761845){const _0x49a9d1=a79_0xb0580a;return _0x761845[_0x49a9d1(0xea)]===_0x49a9d1(0xff)&&!_0x761845[_0x49a9d1(0x101)];}function attachUpdateNotice(_0x2cab87,_0x2c4164){const _0x42db7e=a79_0xb0580a;if(!_0x2c4164||!_0x2cab87||typeof _0x2cab87!=='object')return _0x2cab87;const _0x3e265c=_0x2cab87,_0x22295b=typeof _0x3e265c[_0x42db7e(0xdb)]==='object'&&_0x3e265c[_0x42db7e(0xdb)]!==null?_0x3e265c[_0x42db7e(0xdb)]:{};return{..._0x3e265c,'_notice':{..._0x22295b,'update':_0x2c4164}};}
@@ -1 +1 @@
1
- (function(_0x476a91,_0x56fa22){const _0x5a7a8a=a80_0x5d79,_0x4d0c80=_0x476a91();while(!![]){try{const _0x426e5d=-parseInt(_0x5a7a8a(0x1c7))/0x1*(-parseInt(_0x5a7a8a(0x1c2))/0x2)+parseInt(_0x5a7a8a(0x1c3))/0x3*(-parseInt(_0x5a7a8a(0x1cb))/0x4)+-parseInt(_0x5a7a8a(0x1c9))/0x5+-parseInt(_0x5a7a8a(0x1c6))/0x6*(parseInt(_0x5a7a8a(0x1ce))/0x7)+-parseInt(_0x5a7a8a(0x1cd))/0x8*(-parseInt(_0x5a7a8a(0x1c8))/0x9)+-parseInt(_0x5a7a8a(0x1d0))/0xa*(-parseInt(_0x5a7a8a(0x1c5))/0xb)+parseInt(_0x5a7a8a(0x1ca))/0xc;if(_0x426e5d===_0x56fa22)break;else _0x4d0c80['push'](_0x4d0c80['shift']());}catch(_0x499950){_0x4d0c80['push'](_0x4d0c80['shift']());}}}(a80_0x2458,0xaae65));import{buildSchemaPayload as a80_0x48fb38}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.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 _0xc87579=a80_0x5d79,{serviceRegistry:_0x2818f9,findDefinition:_0x2aedb0}=await import(_0xc87579(0x1d5)),_0x4a0241=new Set(_0x2818f9[_0xc87579(0x1d4)](_0x68d095=>_0x68d095[_0xc87579(0x1c4)])),_0xdfe6a9=listDynamicServiceEntries()[_0xc87579(0x1d1)](_0xacb995=>!_0x4a0241[_0xc87579(0x1cf)](_0xacb995['service'])),_0x12103e=a80_0x48fb38({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x2818f9,..._0xdfe6a9],'buildAllFlags':buildAllFlags,'findDefinition':(_0x3c6ae7,_0x5024b1)=>_0x2aedb0(_0x3c6ae7,_0x5024b1)??findDynamicServiceDefinition(_0x3c6ae7,_0x5024b1)});return normalizeSchemaPayload(_0x12103e);}function a80_0x2458(){const _0x202a80=['84244fDWEcu','27426ALxLtl','service','99omRUlT','210618DfkBCv','21bvNWkb','1647918znqZEF','2576700GllveN','3946224tFUbSI','172oHRbFH','none','56FREMKT','182TnIKKc','has','28890RDaMrv','filter','commands','required','map','../commands/registry.js','requiresAuth'];a80_0x2458=function(){return _0x202a80;};return a80_0x2458();}function normalizeSchemaPayload(_0x4d5163){const _0x356d1f=a80_0x5d79;return{..._0x4d5163,'schemaVersion':0x2,'services':_0x4d5163['services'][_0x356d1f(0x1d4)](_0x4e17de=>({..._0x4e17de,'commands':_0x4e17de[_0x356d1f(0x1d2)][_0x356d1f(0x1d4)](normalizeSchemaCommand)}))};}function a80_0x5d79(_0x10b90b,_0x196b19){_0x10b90b=_0x10b90b-0x1c2;const _0x245835=a80_0x2458();let _0x5d79f2=_0x245835[_0x10b90b];return _0x5d79f2;}function normalizeSchemaCommand(_0x4fd727){const _0x23770b=a80_0x5d79,_0x4a5daf=_0x4fd727;return{..._0x4fd727,'auth':_0x4a5daf['auth']??(_0x4fd727[_0x23770b(0x1d6)]?_0x23770b(0x1d3):_0x23770b(0x1cc))};}
1
+ function a80_0x31d0(_0x971cc3,_0x18270a){_0x971cc3=_0x971cc3-0x97;const _0x13c778=a80_0x13c7();let _0x31d096=_0x13c778[_0x971cc3];return _0x31d096;}(function(_0x2818b7,_0x4972a2){const _0x24cee0=a80_0x31d0,_0x57f528=_0x2818b7();while(!![]){try{const _0x53fca5=-parseInt(_0x24cee0(0x9d))/0x1+-parseInt(_0x24cee0(0xa7))/0x2+parseInt(_0x24cee0(0xa1))/0x3+-parseInt(_0x24cee0(0x9c))/0x4*(parseInt(_0x24cee0(0x99))/0x5)+parseInt(_0x24cee0(0x97))/0x6*(-parseInt(_0x24cee0(0xa0))/0x7)+-parseInt(_0x24cee0(0xa6))/0x8*(parseInt(_0x24cee0(0xa2))/0x9)+parseInt(_0x24cee0(0xa4))/0xa*(parseInt(_0x24cee0(0x9f))/0xb);if(_0x53fca5===_0x4972a2)break;else _0x57f528['push'](_0x57f528['shift']());}catch(_0x445f80){_0x57f528['push'](_0x57f528['shift']());}}}(a80_0x13c7,0x520c8));import{buildSchemaPayload as a80_0x2809f0}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a80_0x13c7(){const _0x59abda=['auth','35272zjXaOb','1029532KpVKUN','38412vTuHaF','filter','1686355XJMzbP','none','map','4YMgqwA','380826RxHmUT','commands','8851227FYPPwR','63ANOcDz','316257IRGsOW','180UpdTFq','../commands/registry.js','20IFKRlp'];a80_0x13c7=function(){return _0x59abda;};return a80_0x13c7();}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x447696=a80_0x31d0,{serviceRegistry:_0x57b637,findDefinition:_0x3ddff1}=await import(_0x447696(0xa3)),_0x23b36a=new Set(_0x57b637[_0x447696(0x9b)](_0x1ff311=>_0x1ff311['service'])),_0x43ee77=listDynamicServiceEntries()[_0x447696(0x98)](_0x54a560=>!_0x23b36a['has'](_0x54a560['service'])),_0x39091e=a80_0x2809f0({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x57b637,..._0x43ee77],'buildAllFlags':buildAllFlags,'findDefinition':(_0x48d917,_0x32c83a)=>_0x3ddff1(_0x48d917,_0x32c83a)??findDynamicServiceDefinition(_0x48d917,_0x32c83a)});return normalizeSchemaPayload(_0x39091e);}function normalizeSchemaPayload(_0x3a0524){const _0x38e062=a80_0x31d0;return{..._0x3a0524,'schemaVersion':0x2,'services':_0x3a0524['services']['map'](_0x4748e1=>({..._0x4748e1,'commands':_0x4748e1[_0x38e062(0x9e)][_0x38e062(0x9b)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x50048e){const _0x11ced2=a80_0x31d0,_0x1a251d=_0x50048e;return{..._0x50048e,'auth':_0x1a251d[_0x11ced2(0xa5)]??(_0x50048e['requiresAuth']?'required':_0x11ced2(0x9a))};}
@@ -1 +1 @@
1
- (function(_0x2ff68b,_0x370ef1){var _0x3e11a4=a81_0x1d27,_0x47dba2=_0x2ff68b();while(!![]){try{var _0x77bba7=-parseInt(_0x3e11a4(0xf3))/0x1*(parseInt(_0x3e11a4(0xf0))/0x2)+parseInt(_0x3e11a4(0xfb))/0x3*(parseInt(_0x3e11a4(0xfa))/0x4)+parseInt(_0x3e11a4(0xf9))/0x5+-parseInt(_0x3e11a4(0xf2))/0x6+-parseInt(_0x3e11a4(0xf7))/0x7*(parseInt(_0x3e11a4(0xf6))/0x8)+parseInt(_0x3e11a4(0xf5))/0x9*(-parseInt(_0x3e11a4(0xf4))/0xa)+parseInt(_0x3e11a4(0xf8))/0xb*(parseInt(_0x3e11a4(0xf1))/0xc);if(_0x77bba7===_0x370ef1)break;else _0x47dba2['push'](_0x47dba2['shift']());}catch(_0x34e1e0){_0x47dba2['push'](_0x47dba2['shift']());}}}(a81_0x585a,0x278da));function a81_0x1d27(_0x5b8527,_0x316450){_0x5b8527=_0x5b8527-0xf0;var _0x585ae9=a81_0x585a();var _0x1d2734=_0x585ae9[_0x5b8527];return _0x1d2734;}function a81_0x585a(){var _0xe3b7e9=['1732936XVtbrX','7gkiFnu','1231043sUMvsg','746285XDpFfY','80nIgkNT','32043PrPWMQ','2VkUNPE','48GvqcTb','542376RpMGDy','317201mjhOPd','10JBmggs','218745CbsoWS'];a81_0x585a=function(){return _0xe3b7e9;};return a81_0x585a();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a81_0x47cc(_0x124f34,_0x36f2f5){_0x124f34=_0x124f34-0xd8;var _0x170e28=a81_0x170e();var _0x47ccbe=_0x170e28[_0x124f34];return _0x47ccbe;}(function(_0x4f318a,_0x3b0f70){var _0x2953bc=a81_0x47cc,_0x703819=_0x4f318a();while(!![]){try{var _0x4bec6b=-parseInt(_0x2953bc(0xd9))/0x1+parseInt(_0x2953bc(0xd8))/0x2*(-parseInt(_0x2953bc(0xdd))/0x3)+parseInt(_0x2953bc(0xdf))/0x4+parseInt(_0x2953bc(0xde))/0x5+parseInt(_0x2953bc(0xe1))/0x6*(parseInt(_0x2953bc(0xe0))/0x7)+parseInt(_0x2953bc(0xdc))/0x8+parseInt(_0x2953bc(0xda))/0x9*(parseInt(_0x2953bc(0xdb))/0xa);if(_0x4bec6b===_0x3b0f70)break;else _0x703819['push'](_0x703819['shift']());}catch(_0x17ab66){_0x703819['push'](_0x703819['shift']());}}}(a81_0x170e,0x2b619));function a81_0x170e(){var _0x36d002=['303868KPDndI','73548fyCciM','130hzWpuJ','179176asSram','39vAFAAr','913605dwzahW','1403388gdhumi','22575xtgSFA','102paPrnn','36226XClwxv'];a81_0x170e=function(){return _0x36d002;};return a81_0x170e();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a82_0x2b2d(_0x2204ca,_0x505458){_0x2204ca=_0x2204ca-0x1de;const _0x1359c7=a82_0x1359();let _0x2b2de7=_0x1359c7[_0x2204ca];return _0x2b2de7;}const a82_0x49d7bc=a82_0x2b2d;(function(_0x57c5aa,_0x168caa){const _0x178513=a82_0x2b2d,_0xd6425=_0x57c5aa();while(!![]){try{const _0x4ff686=parseInt(_0x178513(0x1e9))/0x1*(parseInt(_0x178513(0x1e5))/0x2)+parseInt(_0x178513(0x1df))/0x3*(-parseInt(_0x178513(0x1e2))/0x4)+parseInt(_0x178513(0x1e1))/0x5+-parseInt(_0x178513(0x1e8))/0x6+parseInt(_0x178513(0x1e7))/0x7*(parseInt(_0x178513(0x1e6))/0x8)+-parseInt(_0x178513(0x1e0))/0x9+-parseInt(_0x178513(0x1de))/0xa*(-parseInt(_0x178513(0x1e4))/0xb);if(_0x4ff686===_0x168caa)break;else _0xd6425['push'](_0xd6425['shift']());}catch(_0x3e042a){_0xd6425['push'](_0xd6425['shift']());}}}(a82_0x1359,0x7b0cb));export const VERSION='2.1.4-beta.1';export const GIT_TAG='v2.1.4-beta.1';export const GIT_COMMIT=a82_0x49d7bc(0x1e3);export const BUILD_TIME=a82_0x49d7bc(0x1ea);function a82_0x1359(){const _0x5750ae=['1691198XSpBdx','8mSeuji','2360449vomcFs','4352124AoqPTi','1TYMeDA','2026-07-04T07:03:15.065Z','9230uBhVth','262374BXnzGU','3651120rIgdHB','2257865HWfnRZ','28pHZYwp','b4d435b','7304zlssFY'];a82_0x1359=function(){return _0x5750ae;};return a82_0x1359();}
1
+ const a82_0x26d0d6=a82_0x4c38;(function(_0x25f0ee,_0x2b8fe8){const _0x180140=a82_0x4c38,_0x27c70a=_0x25f0ee();while(!![]){try{const _0x1e6ff5=parseInt(_0x180140(0x108))/0x1*(parseInt(_0x180140(0x101))/0x2)+parseInt(_0x180140(0x104))/0x3*(parseInt(_0x180140(0xff))/0x4)+-parseInt(_0x180140(0x107))/0x5*(-parseInt(_0x180140(0x106))/0x6)+parseInt(_0x180140(0x105))/0x7*(-parseInt(_0x180140(0xfe))/0x8)+parseInt(_0x180140(0x102))/0x9+-parseInt(_0x180140(0x100))/0xa*(parseInt(_0x180140(0x10a))/0xb)+parseInt(_0x180140(0x10c))/0xc*(-parseInt(_0x180140(0x10d))/0xd);if(_0x1e6ff5===_0x2b8fe8)break;else _0x27c70a['push'](_0x27c70a['shift']());}catch(_0x14d8ad){_0x27c70a['push'](_0x27c70a['shift']());}}}(a82_0x490d,0x757e8));export const VERSION=a82_0x26d0d6(0x103);function a82_0x490d(){const _0x1782a1=['72ifAUzH','4bUcfbk','10lIyBlH','1596yJBVad','8604594qcOXvu','2.1.4','449271lDpvUT','442883NYeHxg','6nxLaWj','3937435qjOjJu','682pjombO','2026-07-04T07:04:25.154Z','9325701imvDCA','v2.1.4-beta.1','6468936KJcDTF','13wvqdAR'];a82_0x490d=function(){return _0x1782a1;};return a82_0x490d();}function a82_0x4c38(_0x5f11fb,_0x64b4e4){_0x5f11fb=_0x5f11fb-0xfe;const _0x490d1a=a82_0x490d();let _0x4c38d1=_0x490d1a[_0x5f11fb];return _0x4c38d1;}export const GIT_TAG=a82_0x26d0d6(0x10b);export const GIT_COMMIT='b4d435b';export const BUILD_TIME=a82_0x26d0d6(0x109);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2a7098,_0x3655a6){const _0x249f7d=a83_0x4cc8,_0x24b742=_0x2a7098();while(!![]){try{const _0x48b7fd=parseInt(_0x249f7d(0x144))/0x1*(parseInt(_0x249f7d(0x143))/0x2)+-parseInt(_0x249f7d(0x148))/0x3+parseInt(_0x249f7d(0x149))/0x4*(parseInt(_0x249f7d(0x141))/0x5)+-parseInt(_0x249f7d(0x146))/0x6*(-parseInt(_0x249f7d(0x14b))/0x7)+-parseInt(_0x249f7d(0x140))/0x8*(-parseInt(_0x249f7d(0x13f))/0x9)+-parseInt(_0x249f7d(0x14a))/0xa+parseInt(_0x249f7d(0x142))/0xb;if(_0x48b7fd===_0x3655a6)break;else _0x24b742['push'](_0x24b742['shift']());}catch(_0x67ea62){_0x24b742['push'](_0x24b742['shift']());}}}(a83_0x1dbd,0xd53f7));import{jsx as a83_0x5bc76e,jsxs as a83_0x391873}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a83_0x4cc8(_0x2e169f,_0x258d82){_0x2e169f=_0x2e169f-0x13f;const _0x1dbd7d=a83_0x1dbd();let _0x4cc884=_0x1dbd7d[_0x2e169f];return _0x4cc884;}export function Help(){const _0x1f7c22=a83_0x4cc8,{exit:_0x4e7696}=useApp();return useEffect(()=>{_0x4e7696();},[_0x4e7696]),a83_0x391873(Box,{'flexDirection':_0x1f7c22(0x14c),'marginTop':0x1,'marginBottom':0x1,'children':[a83_0x5bc76e(Box,{'children':a83_0x5bc76e(Text,{'bold':!![],'color':_0x1f7c22(0x145),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x391873(Box,{'marginTop':0x1,'children':[a83_0x5bc76e(Text,{'dimColor':!![],'children':_0x1f7c22(0x147)}),a83_0x5bc76e(Text,{'bold':!![],'color':_0x1f7c22(0x145),'children':CLI_BIN_NAME+_0x1f7c22(0x14e)}),a83_0x5bc76e(Text,{'dimColor':!![],'children':_0x1f7c22(0x14d)})]})]});}function a83_0x1dbd(){const _0x2c1810=['column','\x20to\x20view\x20available\x20commands.','\x20--help','711WoYHot','17640hMxoZx','58625eQGSfL','2945195ZcYYxm','2678394yAHHzL','1NZekAm','green','1146suEcYJ','\x20\x20Use\x20','4309833JYRhye','400GxuboG','8019020hPsuoP','5803XsKoaW'];a83_0x1dbd=function(){return _0x2c1810;};return a83_0x1dbd();}
1
+ function a83_0x4708(_0x3f0d29,_0x86255){_0x3f0d29=_0x3f0d29-0x8e;const _0x2fb85a=a83_0x2fb8();let _0x47083f=_0x2fb85a[_0x3f0d29];return _0x47083f;}function a83_0x2fb8(){const _0x5385de=['\x20--help','1498878bHuUsi','column','\x20to\x20view\x20available\x20commands.','20icfLNB','\x20\x20Use\x20','green','900326OKUMfP','82453dfWuco','416UQvbiP','731430vHMdCk','2534211NswFsZ','734982tAwqnj','109780EdizgM','3zFtYVa'];a83_0x2fb8=function(){return _0x5385de;};return a83_0x2fb8();}(function(_0x49f17e,_0x2ad5e6){const _0x266d84=a83_0x4708,_0x47ab72=_0x49f17e();while(!![]){try{const _0x506cd1=parseInt(_0x266d84(0x95))/0x1+-parseInt(_0x266d84(0x90))/0x2*(parseInt(_0x266d84(0x97))/0x3)+-parseInt(_0x266d84(0x96))/0x4*(-parseInt(_0x266d84(0x9c))/0x5)+parseInt(_0x266d84(0x99))/0x6+parseInt(_0x266d84(0x91))/0x7*(-parseInt(_0x266d84(0x92))/0x8)+parseInt(_0x266d84(0x94))/0x9+parseInt(_0x266d84(0x93))/0xa;if(_0x506cd1===_0x2ad5e6)break;else _0x47ab72['push'](_0x47ab72['shift']());}catch(_0x2048f5){_0x47ab72['push'](_0x47ab72['shift']());}}}(a83_0x2fb8,0x5e642));import{jsx as a83_0x15c1c3,jsxs as a83_0x2ba633}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x3c3c11=a83_0x4708,{exit:_0x28fa3c}=useApp();return useEffect(()=>{_0x28fa3c();},[_0x28fa3c]),a83_0x2ba633(Box,{'flexDirection':_0x3c3c11(0x9a),'marginTop':0x1,'marginBottom':0x1,'children':[a83_0x15c1c3(Box,{'children':a83_0x15c1c3(Text,{'bold':!![],'color':_0x3c3c11(0x8f),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x2ba633(Box,{'marginTop':0x1,'children':[a83_0x15c1c3(Text,{'dimColor':!![],'children':_0x3c3c11(0x8e)}),a83_0x15c1c3(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x3c3c11(0x98)}),a83_0x15c1c3(Text,{'dimColor':!![],'children':_0x3c3c11(0x9b)})]})]});}
@@ -1 +1 @@
1
- const a84_0x2ed700=a84_0x46a6;(function(_0x3c1eeb,_0x472ce6){const _0x20aa74=a84_0x46a6,_0x1cb600=_0x3c1eeb();while(!![]){try{const _0x3d3ac2=-parseInt(_0x20aa74(0x1a8))/0x1+-parseInt(_0x20aa74(0x1a1))/0x2+parseInt(_0x20aa74(0x1a0))/0x3+parseInt(_0x20aa74(0x1a5))/0x4+parseInt(_0x20aa74(0x19e))/0x5*(parseInt(_0x20aa74(0x19c))/0x6)+-parseInt(_0x20aa74(0x19f))/0x7+-parseInt(_0x20aa74(0x1a4))/0x8;if(_0x3d3ac2===_0x472ce6)break;else _0x1cb600['push'](_0x1cb600['shift']());}catch(_0x330781){_0x1cb600['push'](_0x1cb600['shift']());}}}(a84_0x36cf,0xecf56));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a84_0x36cf(){const _0x1aee07=['10FZilbX','3093755EsBSRh','5227248FjydXi','2278248hqtrRt','stdio','unknown','10620480BymhFr','7693848usPYaw','status','stderr','496889MdyWOF','trim','inherit','pipe','skills','toString','skipNpxSkillsEnvSuffix','2130726xOoTxQ','stdout'];a84_0x36cf=function(){return _0x1aee07;};return a84_0x36cf();}import{LOVRABET_SKILL_SOURCE as a84_0x7b944f}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a84_0x7b944f;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a84_0x2ed700(0x19b)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}function a84_0x46a6(_0x2ddb6a,_0x173b67){_0x2ddb6a=_0x2ddb6a-0x196;const _0x36cf3b=a84_0x36cf();let _0x46a689=_0x36cf3b[_0x2ddb6a];return _0x46a689;}export function runNpxSkillsAddGlobal(_0x5244df,_0x4cdc3a=LOVRABET_SKILL_SOURCE,_0xd6eb44){const _0x2ac1ba=a84_0x2ed700;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x42fbfc=_0xd6eb44?.[_0x2ac1ba(0x1a2)]??_0x2ac1ba(0x197),_0x2748a4=resolveNpmBin('npx'),_0x47abe3=[_0x2ac1ba(0x199),'add',_0x4cdc3a,'-g','-y'],_0x57644d=[_0x2748a4,..._0x47abe3]['join']('\x20');console['log']('*\x20'+_0x57644d);const _0x4f7cb2=spawnSync(_0x2748a4,_0x47abe3,{'cwd':_0x5244df,'stdio':_0x42fbfc,'env':process.env,'shell':![]});if(_0x4f7cb2[_0x2ac1ba(0x1a6)]===0x0)return{'ok':!![],'status':0x0};let _0x1fc61b='exit\x20'+(_0x4f7cb2[_0x2ac1ba(0x1a6)]??_0x2ac1ba(0x1a3));if(_0x42fbfc===_0x2ac1ba(0x198)){const _0x3bc381=_0x4f7cb2['stderr']?_0x4f7cb2[_0x2ac1ba(0x1a7)][_0x2ac1ba(0x19a)]()[_0x2ac1ba(0x196)]():'',_0x1210ed=_0x4f7cb2[_0x2ac1ba(0x19d)]?_0x4f7cb2['stdout'][_0x2ac1ba(0x19a)]()[_0x2ac1ba(0x196)]():'';if(_0x3bc381)_0x1fc61b=_0x3bc381;else{if(_0x1210ed)_0x1fc61b=_0x1210ed;}}return{'ok':![],'status':_0x4f7cb2[_0x2ac1ba(0x1a6)]??null,'error':_0x1fc61b};}
1
+ (function(_0x381abd,_0x3c493a){const _0x4e6910=a84_0xf447,_0x3834f7=_0x381abd();while(!![]){try{const _0x39cbc4=parseInt(_0x4e6910(0xa8))/0x1+parseInt(_0x4e6910(0xb2))/0x2+-parseInt(_0x4e6910(0xac))/0x3+parseInt(_0x4e6910(0xb5))/0x4+-parseInt(_0x4e6910(0xa6))/0x5+parseInt(_0x4e6910(0xb4))/0x6+-parseInt(_0x4e6910(0xaf))/0x7;if(_0x39cbc4===_0x3c493a)break;else _0x3834f7['push'](_0x3834f7['shift']());}catch(_0x40c2a2){_0x3834f7['push'](_0x3834f7['shift']());}}}(a84_0x46ec,0xe446f));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a84_0x41717c}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a84_0x41717c;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);function a84_0xf447(_0x4d5507,_0x26baa2){_0x4d5507=_0x4d5507-0xa6;const _0x46ec4f=a84_0x46ec();let _0xf4472b=_0x46ec4f[_0x4d5507];return _0xf4472b;}function a84_0x46ec(){const _0x55e0d2=['skills','trim','pipe','543210iWfXyM','stdout','1469099YYkgwS','add','status','unknown','4693224NZseOP','toString','inherit','6996626GXlxhv','stderr','stdio','2301610JbtDTu','exit\x20','1509234owcEFO','2944592mTrfXg'];a84_0x46ec=function(){return _0x55e0d2;};return a84_0x46ec();}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x405c6a,_0x30d80a=LOVRABET_SKILL_SOURCE,_0x35a98b){const _0x544162=a84_0xf447;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2e949e=_0x35a98b?.[_0x544162(0xb1)]??_0x544162(0xae),_0x551872=resolveNpmBin('npx'),_0x3bb015=[_0x544162(0xb6),_0x544162(0xa9),_0x30d80a,'-g','-y'],_0x294b3b=[_0x551872,..._0x3bb015]['join']('\x20');console['log']('*\x20'+_0x294b3b);const _0x4f2d7e=spawnSync(_0x551872,_0x3bb015,{'cwd':_0x405c6a,'stdio':_0x2e949e,'env':process.env,'shell':![]});if(_0x4f2d7e['status']===0x0)return{'ok':!![],'status':0x0};let _0x27c0e0=_0x544162(0xb3)+(_0x4f2d7e[_0x544162(0xaa)]??_0x544162(0xab));if(_0x2e949e===_0x544162(0xb8)){const _0x4f0c59=_0x4f2d7e[_0x544162(0xb0)]?_0x4f2d7e[_0x544162(0xb0)][_0x544162(0xad)]()[_0x544162(0xb7)]():'',_0x28bedc=_0x4f2d7e[_0x544162(0xa7)]?_0x4f2d7e[_0x544162(0xa7)][_0x544162(0xad)]()[_0x544162(0xb7)]():'';if(_0x4f0c59)_0x27c0e0=_0x4f0c59;else{if(_0x28bedc)_0x27c0e0=_0x28bedc;}}return{'ok':![],'status':_0x4f2d7e[_0x544162(0xaa)]??null,'error':_0x27c0e0};}
@@ -1 +1 @@
1
- const a85_0x41d4a3=a85_0x30d8;(function(_0x24fe8b,_0x1f3ca8){const _0x4fe14d=a85_0x30d8,_0x1c431e=_0x24fe8b();while(!![]){try{const _0x2df41e=parseInt(_0x4fe14d(0xe2))/0x1*(-parseInt(_0x4fe14d(0xe8))/0x2)+parseInt(_0x4fe14d(0xeb))/0x3+-parseInt(_0x4fe14d(0xe1))/0x4*(parseInt(_0x4fe14d(0xdc))/0x5)+-parseInt(_0x4fe14d(0xe0))/0x6+parseInt(_0x4fe14d(0xec))/0x7+parseInt(_0x4fe14d(0xea))/0x8*(parseInt(_0x4fe14d(0xe9))/0x9)+parseInt(_0x4fe14d(0xe6))/0xa;if(_0x2df41e===_0x1f3ca8)break;else _0x1c431e['push'](_0x1c431e['shift']());}catch(_0x400296){_0x1c431e['push'](_0x1c431e['shift']());}}}(a85_0x469b,0xc7c9e));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE=a85_0x41d4a3(0xe5);export const MAX_SKILL_FILE_COUNT=0xc8;function a85_0x469b(){const _0x450725=['coverage','SKILL.md','4415980osGKMk','.cache','723092pGsuDj','569349JhLWAM','88ZSYPgC','4374543zYcbXS','10289482JjwNQA','.svn','5VbkDPC','.turbo','build','dist','7686822oDZLFu','6418236hISxgL','1oBYERi','.DS_Store'];a85_0x469b=function(){return _0x450725;};return a85_0x469b();}export const MAX_SKILL_FILE_BYTES=0x100*0x400;export const MAX_SKILL_TOTAL_BYTES=0x2*0x400*0x400;function a85_0x30d8(_0x2af96a,_0x3559ff){_0x2af96a=_0x2af96a-0xdb;const _0x469b38=a85_0x469b();let _0x30d8a1=_0x469b38[_0x2af96a];return _0x30d8a1;}export const MAX_SKILL_PACKAGE_BYTES=0x4*0x400*0x400;export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0x41d4a3(0xe3)]);export const IGNORED_DIR_NAMES=new Set(['.git','.hg',a85_0x41d4a3(0xdb),'node_modules','.next',a85_0x41d4a3(0xdf),a85_0x41d4a3(0xde),a85_0x41d4a3(0xe4),a85_0x41d4a3(0xdd),a85_0x41d4a3(0xe7)]);
1
+ const a85_0x1e9df3=a85_0x31d8;(function(_0x5bbf98,_0x14a138){const _0x5ea7dd=a85_0x31d8,_0x1b84fd=_0x5bbf98();while(!![]){try{const _0x37f97a=-parseInt(_0x5ea7dd(0xe9))/0x1*(parseInt(_0x5ea7dd(0xef))/0x2)+parseInt(_0x5ea7dd(0xf0))/0x3+parseInt(_0x5ea7dd(0xe5))/0x4*(parseInt(_0x5ea7dd(0xe4))/0x5)+parseInt(_0x5ea7dd(0xf6))/0x6+-parseInt(_0x5ea7dd(0xf1))/0x7+-parseInt(_0x5ea7dd(0xe6))/0x8*(-parseInt(_0x5ea7dd(0xec))/0x9)+-parseInt(_0x5ea7dd(0xea))/0xa;if(_0x37f97a===_0x14a138)break;else _0x1b84fd['push'](_0x1b84fd['shift']());}catch(_0x3bc95a){_0x1b84fd['push'](_0x1b84fd['shift']());}}}(a85_0x5933,0x46380));function a85_0x31d8(_0x64cdce,_0x10bff4){_0x64cdce=_0x64cdce-0xe1;const _0x59331b=a85_0x5933();let _0x31d853=_0x59331b[_0x64cdce];return _0x31d853;}export const METADATA_FILE=a85_0x1e9df3(0xe3);function a85_0x5933(){const _0x2ed02c=['coverage','878726YwhZVE','413223LcJLKy','413840xJDixC','.hg','.next','.svn','.git','2150634bqtiTM','.cache','build','lovrabet.skill.json','5VwXdqq','1656908KViLmG','8uPSmeh','dist','node_modules','1bQPlPA','5918170NxLquh','.DS_Store','4207581oAiUOL','.turbo'];a85_0x5933=function(){return _0x2ed02c;};return a85_0x5933();}export const SKILL_FILE='SKILL.md';export const MAX_SKILL_FILE_COUNT=0xc8;export const MAX_SKILL_FILE_BYTES=0x100*0x400;export const MAX_SKILL_TOTAL_BYTES=0x2*0x400*0x400;export const MAX_SKILL_PACKAGE_BYTES=0x4*0x400*0x400;export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0x1e9df3(0xeb)]);export const IGNORED_DIR_NAMES=new Set([a85_0x1e9df3(0xf5),a85_0x1e9df3(0xf2),a85_0x1e9df3(0xf4),a85_0x1e9df3(0xe8),a85_0x1e9df3(0xf3),a85_0x1e9df3(0xe7),a85_0x1e9df3(0xe2),a85_0x1e9df3(0xee),a85_0x1e9df3(0xed),a85_0x1e9df3(0xe1)]);
@@ -1 +1 @@
1
- (function(_0x52d78e,_0x32f5d3){const _0x2eb5a4=a86_0x495a,_0x50e4bb=_0x52d78e();while(!![]){try{const _0x5c3323=parseInt(_0x2eb5a4(0xa3))/0x1*(-parseInt(_0x2eb5a4(0xa7))/0x2)+-parseInt(_0x2eb5a4(0xa9))/0x3*(parseInt(_0x2eb5a4(0xaa))/0x4)+-parseInt(_0x2eb5a4(0xad))/0x5*(-parseInt(_0x2eb5a4(0xae))/0x6)+parseInt(_0x2eb5a4(0xa1))/0x7+-parseInt(_0x2eb5a4(0xa2))/0x8+parseInt(_0x2eb5a4(0xac))/0x9+-parseInt(_0x2eb5a4(0x9d))/0xa*(parseInt(_0x2eb5a4(0xa4))/0xb);if(_0x5c3323===_0x32f5d3)break;else _0x50e4bb['push'](_0x50e4bb['shift']());}catch(_0x3e5223){_0x50e4bb['push'](_0x50e4bb['shift']());}}}(a86_0x56ff,0xd31d5));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(_0x21aad1,_0x5ebccc){const _0x364c8e=a86_0x495a,_0x4bc638=normalizeSkillRelativePath(_0x5ebccc),_0x5d87cb=realOrResolved(_0x21aad1),_0x36ce8b=resolve(_0x5d87cb,..._0x4bc638[_0x364c8e(0xa5)]('/'));if(!isPathInside(_0x36ce8b,_0x5d87cb))throw CliErrors[_0x364c8e(0xab)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x5ebccc);return ensureNoSymlinkInManagedPath(_0x5d87cb,_0x4bc638),_0x36ce8b;}export function ensureNoSymlinkInManagedPath(_0x3108b6,_0x40e381){const _0x226728=a86_0x495a;let _0x58733c=_0x3108b6;for(const _0xafed49 of _0x40e381['split']('/')){_0x58733c=resolve(_0x58733c,_0xafed49);const _0x231a8b=lstatIfPresent(_0x58733c);if(_0x231a8b?.[_0x226728(0x9e)]())throw CliErrors[_0x226728(0xab)](_0x226728(0xaf)+_0x40e381);}}export function isDanglingSymlink(_0x3e9751){try{return lstatSync(_0x3e9751)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x12e415){const _0x2b32dc=readlinkSync(_0x12e415);return isAbsolute(_0x2b32dc)?_0x2b32dc:resolve(dirname(_0x12e415),_0x2b32dc);}export function isPathInside(_0x310ca8,_0x1f6854){const _0xa3dace=a86_0x495a,_0x12d912=_0x310ca8[_0xa3dace(0xa8)](sep)?_0x310ca8:''+_0x310ca8+sep,_0x3a5663=_0x1f6854[_0xa3dace(0xa8)](sep)?_0x1f6854:''+_0x1f6854+sep;return _0x310ca8===_0x1f6854||_0x12d912[_0xa3dace(0xa6)](_0x3a5663);}export function realOrResolved(_0x3eaaf7){try{return realpathSync(_0x3eaaf7);}catch{return resolve(_0x3eaaf7);}}export function lstatIfPresent(_0x54e12e){try{return lstatSync(_0x54e12e);}catch{return undefined;}}export function writeTextAtomic(_0x26d8c9,_0x4292e7,_0x1976d6){const _0xd24b86=a86_0x495a;writeBytesAtomic(_0x26d8c9,Buffer[_0xd24b86(0x9f)](_0x4292e7,'utf8'),_0x1976d6);}export function writeBytesAtomic(_0xfd5870,_0xe5d32f,_0x2d1275){const _0x1e7300=_0xfd5870+'.tmp';try{writeFileSync(_0x1e7300,_0xe5d32f,{'mode':_0x2d1275}),renameSync(_0x1e7300,_0xfd5870);}catch(_0x1f2d19){try{rmSync(_0x1e7300,{'force':!![]});}catch{}throw _0x1f2d19;}}function a86_0x495a(_0x2d3d2e,_0x192c06){_0x2d3d2e=_0x2d3d2e-0x9d;const _0x56ff2b=a86_0x56ff();let _0x495a47=_0x56ff2b[_0x2d3d2e];return _0x495a47;}function a86_0x56ff(){const _0x4590f4=['endsWith','319161ltAkTf','20qlUQUj','validation','11867652uiPEYZ','35bPniuR','921846lGlPmb','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','3642910hPEexv','isSymbolicLink','from','stringify','10320947FsnKHB','1084624HRwANy','7025dCHSXy','33Olznag','split','startsWith','354aPljur'];a86_0x56ff=function(){return _0x4590f4;};return a86_0x56ff();}export function writeJsonAtomic(_0x166b5f,_0x23fab6){const _0x15f137=a86_0x495a;writeTextAtomic(_0x166b5f,JSON[_0x15f137(0xa0)](_0x23fab6,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x3e4a99,_0x5299b5){const _0x1fbeda=a86_0x238f,_0x3c5c69=_0x3e4a99();while(!![]){try{const _0x106173=parseInt(_0x1fbeda(0x16a))/0x1*(parseInt(_0x1fbeda(0x170))/0x2)+parseInt(_0x1fbeda(0x15f))/0x3*(parseInt(_0x1fbeda(0x15d))/0x4)+-parseInt(_0x1fbeda(0x15e))/0x5+-parseInt(_0x1fbeda(0x169))/0x6*(-parseInt(_0x1fbeda(0x171))/0x7)+parseInt(_0x1fbeda(0x167))/0x8*(parseInt(_0x1fbeda(0x15c))/0x9)+parseInt(_0x1fbeda(0x168))/0xa*(-parseInt(_0x1fbeda(0x161))/0xb)+-parseInt(_0x1fbeda(0x165))/0xc*(-parseInt(_0x1fbeda(0x16b))/0xd);if(_0x106173===_0x5299b5)break;else _0x3c5c69['push'](_0x3c5c69['shift']());}catch(_0x989520){_0x3c5c69['push'](_0x3c5c69['shift']());}}}(a86_0x41b7,0x86122));function a86_0x238f(_0x4a6452,_0x1e7338){_0x4a6452=_0x4a6452-0x15c;const _0x41b77f=a86_0x41b7();let _0x238ff9=_0x41b77f[_0x4a6452];return _0x238ff9;}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(_0x189bac,_0x7e7cf4){const _0x31b96e=a86_0x238f,_0x591d77=normalizeSkillRelativePath(_0x7e7cf4),_0x565ae8=realOrResolved(_0x189bac),_0x308c86=resolve(_0x565ae8,..._0x591d77[_0x31b96e(0x164)]('/'));if(!isPathInside(_0x308c86,_0x565ae8))throw CliErrors['validation'](_0x31b96e(0x16c)+_0x7e7cf4);return ensureNoSymlinkInManagedPath(_0x565ae8,_0x591d77),_0x308c86;}export function ensureNoSymlinkInManagedPath(_0x4f02a0,_0x2b45e8){const _0x4b9f41=a86_0x238f;let _0x5c7f23=_0x4f02a0;for(const _0x4c6367 of _0x2b45e8[_0x4b9f41(0x164)]('/')){_0x5c7f23=resolve(_0x5c7f23,_0x4c6367);const _0x1cdce4=lstatIfPresent(_0x5c7f23);if(_0x1cdce4?.[_0x4b9f41(0x16e)]())throw CliErrors['validation'](_0x4b9f41(0x16f)+_0x2b45e8);}}export function isDanglingSymlink(_0x3a56fd){const _0x327221=a86_0x238f;try{return lstatSync(_0x3a56fd)[_0x327221(0x16e)]();}catch{return![];}}export function resolveSymlinkTarget(_0x4b6d0e){const _0x443b9a=readlinkSync(_0x4b6d0e);return isAbsolute(_0x443b9a)?_0x443b9a:resolve(dirname(_0x4b6d0e),_0x443b9a);}export function isPathInside(_0x1f6632,_0x3529b5){const _0x66420b=a86_0x238f,_0x2b8275=_0x1f6632[_0x66420b(0x162)](sep)?_0x1f6632:''+_0x1f6632+sep,_0x491ec6=_0x3529b5[_0x66420b(0x162)](sep)?_0x3529b5:''+_0x3529b5+sep;return _0x1f6632===_0x3529b5||_0x2b8275[_0x66420b(0x166)](_0x491ec6);}export function realOrResolved(_0x2e34a9){try{return realpathSync(_0x2e34a9);}catch{return resolve(_0x2e34a9);}}export function lstatIfPresent(_0x2a05de){try{return lstatSync(_0x2a05de);}catch{return undefined;}}export function writeTextAtomic(_0x4904ee,_0x2a70e4,_0xd31b92){const _0x183754=a86_0x238f;writeBytesAtomic(_0x4904ee,Buffer[_0x183754(0x163)](_0x2a70e4,_0x183754(0x160)),_0xd31b92);}export function writeBytesAtomic(_0x2caa5d,_0x7cf894,_0x203ded){const _0xa19719=_0x2caa5d+'.tmp';try{writeFileSync(_0xa19719,_0x7cf894,{'mode':_0x203ded}),renameSync(_0xa19719,_0x2caa5d);}catch(_0x7f3d6c){try{rmSync(_0xa19719,{'force':!![]});}catch{}throw _0x7f3d6c;}}function a86_0x41b7(){const _0x2ea2aa=['split','12VbmJmX','startsWith','293672RKGaPL','9263530SAtsYu','1248aCIbyD','884829tdJkOn','3159897qPqFRh','Unsafe\x20Skill\x20file\x20path:\x20','stringify','isSymbolicLink','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','2kAVAIw','8806KpwGCS','45KhNaEM','288MwaYdU','3463040ZYvYXY','24792tYnNge','utf8','11qceIlP','endsWith','from'];a86_0x41b7=function(){return _0x2ea2aa;};return a86_0x41b7();}export function writeJsonAtomic(_0x47f38,_0xb67fa2){const _0x264051=a86_0x238f;writeTextAtomic(_0x47f38,JSON[_0x264051(0x16d)](_0xb67fa2,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x13c5f5,_0x3f7eb6){const _0x2a94df=a87_0x4c42,_0x42b4f0=_0x13c5f5();while(!![]){try{const _0xac622e=-parseInt(_0x2a94df(0xb1))/0x1+-parseInt(_0x2a94df(0xaa))/0x2*(-parseInt(_0x2a94df(0xa5))/0x3)+parseInt(_0x2a94df(0xad))/0x4+-parseInt(_0x2a94df(0xa8))/0x5*(-parseInt(_0x2a94df(0xb3))/0x6)+parseInt(_0x2a94df(0xa6))/0x7+-parseInt(_0x2a94df(0xa7))/0x8+-parseInt(_0x2a94df(0xa9))/0x9*(parseInt(_0x2a94df(0xaf))/0xa);if(_0xac622e===_0x3f7eb6)break;else _0x42b4f0['push'](_0x42b4f0['shift']());}catch(_0x5241fc){_0x42b4f0['push'](_0x42b4f0['shift']());}}}(a87_0x1d2c,0xc43e1));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x38e64d){const _0x57abce=a87_0x4c42;return createHash('sha256')[_0x57abce(0xab)](_0x38e64d)[_0x57abce(0xb2)](_0x57abce(0xb0));}function a87_0x4c42(_0x28e03f,_0x19c703){_0x28e03f=_0x28e03f-0xa5;const _0x1d2c63=a87_0x1d2c();let _0x4c4287=_0x1d2c63[_0x28e03f];return _0x4c4287;}export function fileHash(_0x1ebd91){return bufferSha256(fileContent(_0x1ebd91));}export function bufferSha256(_0x4a6e58){const _0x5578cb=a87_0x4c42;return createHash(_0x5578cb(0xae))['update'](_0x4a6e58)[_0x5578cb(0xb2)](_0x5578cb(0xb0));}function a87_0x1d2c(){const _0x6b41b7=['10239138DptFIN','12144512dhzakj','6921065EmCkZv','117eQmcdA','2694902rpDAtX','update','size','6291968eJMEXw','sha256','2506690kyQLie','hex','186820GMnHri','digest','6KyQgjx','3TwgrDp'];a87_0x1d2c=function(){return _0x6b41b7;};return a87_0x1d2c();}export function fileTreeHash(_0x35e02a){const _0x3c087b=a87_0x4c42,_0x116b38=createHash('sha256');for(const _0x10e818 of normalizeManifestFiles(_0x35e02a)){_0x116b38['update'](_0x10e818['path']),_0x116b38[_0x3c087b(0xab)]('\x00'),_0x116b38[_0x3c087b(0xab)](_0x10e818[_0x3c087b(0xae)]),_0x116b38['update']('\x00'),_0x116b38[_0x3c087b(0xab)](String(_0x10e818[_0x3c087b(0xac)])),_0x116b38['update']('\x00');}return _0x116b38[_0x3c087b(0xb2)](_0x3c087b(0xb0));}
1
+ (function(_0x3e80f2,_0x174a72){const _0x47decb=a87_0x21b5,_0x2eed02=_0x3e80f2();while(!![]){try{const _0x31b6eb=parseInt(_0x47decb(0xf7))/0x1+parseInt(_0x47decb(0xf5))/0x2+parseInt(_0x47decb(0xff))/0x3*(-parseInt(_0x47decb(0xf2))/0x4)+-parseInt(_0x47decb(0xf6))/0x5+parseInt(_0x47decb(0xf4))/0x6+parseInt(_0x47decb(0xfc))/0x7*(-parseInt(_0x47decb(0xfd))/0x8)+parseInt(_0x47decb(0xf8))/0x9*(parseInt(_0x47decb(0xfb))/0xa);if(_0x31b6eb===_0x174a72)break;else _0x2eed02['push'](_0x2eed02['shift']());}catch(_0x91b0a6){_0x2eed02['push'](_0x2eed02['shift']());}}}(a87_0x1a74,0xd5b56));function a87_0x1a74(){const _0x44991c=['hex','2659080fqTYWe','5080691VWKfeO','8IQrEjB','digest','147bhCYXH','sha256','path','71172CfYRCW','size','3795636BYKMTz','145360KUREZS','6034290EuoAmz','49604xnKmPC','99BvQioJ','update'];a87_0x1a74=function(){return _0x44991c;};return a87_0x1a74();}import{createHash}from'node:crypto';function a87_0x21b5(_0x906bc9,_0x24fb60){_0x906bc9=_0x906bc9-0xf1;const _0x1a7423=a87_0x1a74();let _0x21b559=_0x1a7423[_0x906bc9];return _0x21b559;}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x7f1d65){const _0x5728da=a87_0x21b5;return createHash(_0x5728da(0x100))[_0x5728da(0xf9)](_0x7f1d65)[_0x5728da(0xfe)](_0x5728da(0xfa));}export function fileHash(_0x388b31){return bufferSha256(fileContent(_0x388b31));}export function bufferSha256(_0x3b0dc6){const _0x11c30b=a87_0x21b5;return createHash(_0x11c30b(0x100))[_0x11c30b(0xf9)](_0x3b0dc6)['digest'](_0x11c30b(0xfa));}export function fileTreeHash(_0x1198c0){const _0x218776=a87_0x21b5,_0x1844f8=createHash(_0x218776(0x100));for(const _0x4d9809 of normalizeManifestFiles(_0x1198c0)){_0x1844f8[_0x218776(0xf9)](_0x4d9809[_0x218776(0xf1)]),_0x1844f8[_0x218776(0xf9)]('\x00'),_0x1844f8[_0x218776(0xf9)](_0x4d9809[_0x218776(0x100)]),_0x1844f8[_0x218776(0xf9)]('\x00'),_0x1844f8[_0x218776(0xf9)](String(_0x4d9809[_0x218776(0xf3)])),_0x1844f8[_0x218776(0xf9)]('\x00');}return _0x1844f8[_0x218776(0xfe)](_0x218776(0xfa));}
@@ -1 +1 @@
1
- (function(_0x3bd48a,_0x1a59e4){const _0x3377f3=a88_0xc817,_0x5e908e=_0x3bd48a();while(!![]){try{const _0x494422=parseInt(_0x3377f3(0x118))/0x1+parseInt(_0x3377f3(0x10c))/0x2*(parseInt(_0x3377f3(0x117))/0x3)+-parseInt(_0x3377f3(0x111))/0x4+-parseInt(_0x3377f3(0x128))/0x5+parseInt(_0x3377f3(0x115))/0x6+-parseInt(_0x3377f3(0x108))/0x7*(-parseInt(_0x3377f3(0x12e))/0x8)+parseInt(_0x3377f3(0x10d))/0x9;if(_0x494422===_0x1a59e4)break;else _0x5e908e['push'](_0x5e908e['shift']());}catch(_0x4264ad){_0x5e908e['push'](_0x5e908e['shift']());}}}(a88_0x2f81,0xdcce8));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a88_0x2a8e8a from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';function a88_0xc817(_0x5a1a57,_0x3333dc){_0x5a1a57=_0x5a1a57-0x108;const _0x2f81ac=a88_0x2f81();let _0xc81772=_0x2f81ac[_0x5a1a57];return _0xc81772;}import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a88_0x2a8e8a;export function linkEffectiveRuntimeSkills(_0x266bf2,_0x42c079,_0x2818d5={}){const _0x286f1e=a88_0xc817,_0x2f615b=new Map();for(const _0x355262 of _0x266bf2){const _0x235bfb=_0x355262[_0x286f1e(0x119)][_0x286f1e(0x11c)];if(!_0x235bfb)continue;const _0x11b6e7=_0x2f615b[_0x286f1e(0x109)](_0x235bfb);(!_0x11b6e7||_0x355262['scope']===_0x286f1e(0x130))&&_0x2f615b['set'](_0x235bfb,_0x355262);}const _0x38a7d5=[],_0x5d9eb5=resolveSkillSyncPaths(_0x2818d5);for(const _0x56936a of _0x2f615b['values']()){const _0x222268=requireSkillCode(_0x56936a[_0x286f1e(0x119)]),_0x25482d=_0x42c079+'--'+_0x222268;for(const _0x4e68ae of[_0x5d9eb5[_0x286f1e(0x124)],_0x5d9eb5[_0x286f1e(0x11b)]]){_0x38a7d5['push'](ensureManagedSymlink(resolve(_0x4e68ae,_0x25482d),_0x56936a['dir'],_0x5d9eb5[_0x286f1e(0x133)]));}}return _0x38a7d5;}export function pruneStaleRuntimeSkillLinks(_0x242b43,_0x5b8e79,_0x3e0af6={},_0x1b13f0){const _0x582b4d=a88_0xc817,_0x824554=resolveSkillSyncPaths(_0x3e0af6),_0x5f31f5=new Set([..._0x5b8e79][_0x582b4d(0x12a)](_0x415c0a=>_0x415c0a['trim']())[_0x582b4d(0x10a)](Boolean)),_0xe47149=_0x1b13f0?new Set([..._0x1b13f0][_0x582b4d(0x12a)](_0x1f995f=>_0x1f995f[_0x582b4d(0x11a)]())['filter'](Boolean)):undefined,_0x4c3b5f=[];for(const _0x37af94 of[_0x824554[_0x582b4d(0x124)],_0x824554[_0x582b4d(0x11b)]]){for(const _0x451d34 of managedAppSkillLinkPaths(_0x37af94,_0x242b43)){const _0x17b175=basename(_0x451d34)[_0x582b4d(0x110)]((_0x242b43+'--')['length']);if(_0xe47149&&!_0xe47149[_0x582b4d(0x131)](_0x17b175))continue;if(_0x5f31f5[_0x582b4d(0x131)](_0x17b175))continue;_0x4c3b5f[_0x582b4d(0x123)](removeManagedSkillLink(_0x451d34,_0x824554[_0x582b4d(0x133)]));}}return _0x4c3b5f;}export function pruneStaleRuntimeSkillCache(_0x525a00,_0x206153={}){const _0x1d66f5=a88_0xc817,_0x5b416c=new Set([..._0x525a00['activeSkillCodes']][_0x1d66f5(0x12a)](_0x531d31=>_0x531d31[_0x1d66f5(0x11a)]())[_0x1d66f5(0x10a)](Boolean)),_0x44afe1=_0x525a00[_0x1d66f5(0x135)]?new Set([..._0x525a00['pruneSkillCodes']][_0x1d66f5(0x12a)](_0x4a07cc=>_0x4a07cc['trim']())[_0x1d66f5(0x10a)](Boolean)):undefined,_0x20e07b=_0x525a00[_0x1d66f5(0x11e)]??[_0x1d66f5(0x130),_0x1d66f5(0x126)],_0x2f6737=resolve(getRuntimeSkillCacheRoot(_0x525a00[_0x1d66f5(0x12f)],_0x525a00[_0x1d66f5(0x12b)],_0x206153),safePathSegment(_0x525a00[_0x1d66f5(0x114)],_0x1d66f5(0x114))),_0x4766ae=[];for(const _0x52df4f of _0x20e07b){const _0x4ac728=resolve(_0x2f6737,_0x52df4f);if(!existsSync(_0x4ac728))continue;for(const _0x6324f6 of readdirSync(_0x4ac728,{'withFileTypes':!![]})){if(!_0x6324f6[_0x1d66f5(0x11d)]())continue;const _0x33d709=_0x6324f6[_0x1d66f5(0x121)];if(_0x44afe1&&!_0x44afe1[_0x1d66f5(0x131)](_0x33d709))continue;if(_0x5b416c['has'](_0x33d709))continue;const _0x1973bc=resolve(_0x4ac728,_0x33d709),_0xc97b7d=readMetadataIfPresent(resolve(_0x1973bc,METADATA_FILE));if(_0xc97b7d?.[_0x1d66f5(0x114)]!==_0x525a00[_0x1d66f5(0x114)]||_0xc97b7d[_0x1d66f5(0x116)]!==_0x52df4f||_0xc97b7d[_0x1d66f5(0x11c)]!==_0x33d709){_0x4766ae[_0x1d66f5(0x123)]({'path':_0x1973bc,'action':_0x1d66f5(0x113),'reason':_0x1d66f5(0x127)});continue;}removeSync(_0x1973bc),_0x4766ae['push']({'path':_0x1973bc,'action':'removed'});}}return _0x4766ae;}export function linkGlobalRuntimeSkills(_0x3fad6f,_0x5cd2e6={}){const _0xeff42b=a88_0xc817,_0x247adc=resolveSkillSyncPaths(_0x5cd2e6),_0x14c27a=[];for(const _0x1d4fb1 of _0x3fad6f){if(_0x1d4fb1['scope']!=='builtin')throw CliErrors[_0xeff42b(0x125)](_0xeff42b(0x10e)+_0x1d4fb1[_0xeff42b(0x116)]);const _0x30d7d1=requireSkillCode(_0x1d4fb1[_0xeff42b(0x119)]),_0x3ff1ba=copyManagedSkillDirectory(_0x1d4fb1[_0xeff42b(0x134)],resolve(_0x247adc[_0xeff42b(0x124)],_0x30d7d1));_0x14c27a[_0xeff42b(0x123)]({..._0x3ff1ba,'contentHash':_0x1d4fb1['contentHash']});}return _0x14c27a;}function ensureManagedSymlink(_0x1ca02e,_0x54fcae,_0x5ba448){const _0x12d74f=a88_0xc817;mkdirSync(dirname(_0x1ca02e),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x1ca02e)||isDanglingSymlink(_0x1ca02e)){const _0x77dbca=lstatSync(_0x1ca02e);if(!_0x77dbca[_0x12d74f(0x12c)]())throw CliErrors[_0x12d74f(0x125)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x1ca02e);const _0x3fa0b2=resolveSymlinkTarget(_0x1ca02e);if(!isPathInside(realOrResolved(_0x3fa0b2),realOrResolved(_0x5ba448)))throw CliErrors[_0x12d74f(0x125)](_0x12d74f(0x120)+_0x1ca02e);if(realOrResolved(_0x3fa0b2)===realOrResolved(_0x54fcae))return{'path':_0x1ca02e,'target':_0x54fcae,'action':'unchanged'};return unlinkSync(_0x1ca02e),symlinkSync(_0x54fcae,_0x1ca02e,_0x12d74f(0x134)),{'path':_0x1ca02e,'target':_0x54fcae,'action':'updated'};}return symlinkSync(_0x54fcae,_0x1ca02e,_0x12d74f(0x134)),{'path':_0x1ca02e,'target':_0x54fcae,'action':_0x12d74f(0x10b)};}function a88_0x2f81(){const _0xe447a6=['get','filter','created','6zJODyW','6321186BlUCBZ','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','slice','6157460mbotXp','external-symlink','skipped','appCode','4168788oAusDP','scope','178491wHdKsV','1705092oxRbpJ','skill','trim','claudeSkillsDir','skillCode','isDirectory','scopes','updated','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','name','not-managed-symlink','push','agentsSkillsDir','validation','company','metadata-mismatch','7468285DNJbTw','contentHash','map','accessKey','isSymbolicLink','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','88OQhWAh','env','personal','has','startsWith','managedRoot','dir','pruneSkillCodes','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','removed','417907CfmLLp'];a88_0x2f81=function(){return _0xe447a6;};return a88_0x2f81();}function managedAppSkillLinkPaths(_0x4e16a2,_0x3ca35d){const _0x2d75e7=a88_0xc817;if(!existsSync(_0x4e16a2))return[];const _0x106f38=_0x3ca35d+'--';return readdirSync(_0x4e16a2,{'withFileTypes':!![]})[_0x2d75e7(0x10a)](_0x3cfff7=>_0x3cfff7[_0x2d75e7(0x121)][_0x2d75e7(0x132)](_0x106f38))['map'](_0x5283b9=>resolve(_0x4e16a2,_0x5283b9['name']));}function removeManagedSkillLink(_0x2c68ec,_0x5da194){const _0x431474=a88_0xc817,_0xeff0f8=lstatIfPresent(_0x2c68ec);if(!_0xeff0f8?.[_0x431474(0x12c)]())return{'path':_0x2c68ec,'action':_0x431474(0x113),'reason':_0x431474(0x122)};const _0x4c0ff9=resolveSymlinkTarget(_0x2c68ec);if(!isPathInside(realOrResolved(_0x4c0ff9),realOrResolved(_0x5da194)))return{'path':_0x2c68ec,'action':_0x431474(0x113),'reason':_0x431474(0x112)};return unlinkSync(_0x2c68ec),{'path':_0x2c68ec,'action':_0x431474(0x137)};}export function copyManagedSkillDirectory(_0x4ce827,_0x4d41e1){const _0x37cb1a=a88_0xc817,_0x24b60a=resolve(_0x4d41e1,METADATA_FILE),_0x1891ef=existsSync(_0x4d41e1);if(_0x1891ef){const _0x71fec3=lstatSync(_0x4d41e1);if(_0x71fec3['isSymbolicLink']())throw CliErrors[_0x37cb1a(0x125)](_0x37cb1a(0x136)+_0x4d41e1);if(!_0x71fec3[_0x37cb1a(0x11d)]())throw CliErrors[_0x37cb1a(0x125)](_0x37cb1a(0x10f)+_0x4d41e1);const _0x1549a3=readMetadataIfPresent(_0x24b60a);if(_0x1549a3?.[_0x37cb1a(0x116)]!=='builtin')throw CliErrors[_0x37cb1a(0x125)](_0x37cb1a(0x12d)+_0x4d41e1);}ensureDirSync(dirname(_0x4d41e1));const _0xab3b31=_0x1891ef?readMetadataIfPresent(_0x24b60a)?.[_0x37cb1a(0x129)]:undefined,_0xdc1b99=readMetadataIfPresent(resolve(_0x4ce827,METADATA_FILE))?.[_0x37cb1a(0x129)];return _0x1891ef&&removeSync(_0x4d41e1),copySkillDirectory(_0x4ce827,_0x4d41e1),{'path':_0x4d41e1,'target':_0x4ce827,'action':!_0x1891ef?'created':_0xab3b31===_0xdc1b99?'unchanged':_0x37cb1a(0x11f)};}function copySkillDirectory(_0x577ce0,_0x4f553d){copySync(_0x577ce0,_0x4f553d,{'dereference':![],'overwrite':!![],'filter'(_0xdc08ea){const _0x4ae2bf=a88_0xc817;if(lstatSync(_0xdc08ea)['isSymbolicLink']())throw CliErrors[_0x4ae2bf(0x125)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0xdc08ea);return!![];}});}
1
+ (function(_0x4e6bfc,_0x1099b2){const _0x2eb8dc=a88_0x40cf,_0x59c372=_0x4e6bfc();while(!![]){try{const _0x22cc09=parseInt(_0x2eb8dc(0x1c3))/0x1*(-parseInt(_0x2eb8dc(0x1a1))/0x2)+parseInt(_0x2eb8dc(0x1bc))/0x3+parseInt(_0x2eb8dc(0x1b8))/0x4*(parseInt(_0x2eb8dc(0x195))/0x5)+-parseInt(_0x2eb8dc(0x1a0))/0x6+parseInt(_0x2eb8dc(0x1a9))/0x7+-parseInt(_0x2eb8dc(0x1b1))/0x8*(parseInt(_0x2eb8dc(0x19d))/0x9)+-parseInt(_0x2eb8dc(0x1c4))/0xa;if(_0x22cc09===_0x1099b2)break;else _0x59c372['push'](_0x59c372['shift']());}catch(_0x3ad195){_0x59c372['push'](_0x59c372['shift']());}}}(a88_0x2c77,0x88534));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a88_0x40e2be 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}=a88_0x40e2be;function a88_0x2c77(){const _0x5492f3=['2386RGiKXj','scopes','pruneSkillCodes','isSymbolicLink','company','appCode','length','external-symlink','3649345SoZpTu','not-managed-symlink','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','skillCode','has','get','isDirectory','managedRoot','4848RxGrKc','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','created','values','set','removed','personal','40PHFifX','validation','name','builtin','2731800jOoKtU','push','skill','dir','map','env','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','61TOTiCl','2406670Obsids','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','activeSkillCodes','261915DmkQpg','agentsSkillsDir','contentHash','updated','metadata-mismatch','filter','trim','skipped','450aHHvLZ','scope','unchanged','6321822ToyiUr'];a88_0x2c77=function(){return _0x5492f3;};return a88_0x2c77();}export function linkEffectiveRuntimeSkills(_0x51c455,_0x4dea67,_0x4606d8={}){const _0x2f9900=a88_0x40cf,_0x1adbf3=new Map();for(const _0x597fdc of _0x51c455){const _0x3c9f88=_0x597fdc['skill']['skillCode'];if(!_0x3c9f88)continue;const _0x3eadc8=_0x1adbf3[_0x2f9900(0x1ae)](_0x3c9f88);(!_0x3eadc8||_0x597fdc[_0x2f9900(0x19e)]===_0x2f9900(0x1b7))&&_0x1adbf3[_0x2f9900(0x1b5)](_0x3c9f88,_0x597fdc);}const _0x466b75=[],_0x5caf16=resolveSkillSyncPaths(_0x4606d8);for(const _0x151b12 of _0x1adbf3[_0x2f9900(0x1b4)]()){const _0x21a536=requireSkillCode(_0x151b12['skill']),_0x26c072=_0x4dea67+'--'+_0x21a536;for(const _0x5f2278 of[_0x5caf16[_0x2f9900(0x196)],_0x5caf16['claudeSkillsDir']]){_0x466b75[_0x2f9900(0x1bd)](ensureManagedSymlink(resolve(_0x5f2278,_0x26c072),_0x151b12[_0x2f9900(0x1bf)],_0x5caf16[_0x2f9900(0x1b0)]));}}return _0x466b75;}export function pruneStaleRuntimeSkillLinks(_0x50cdfb,_0x3f13b1,_0x2df2b6={},_0x18e88e){const _0x5f418b=a88_0x40cf,_0x1b1ba5=resolveSkillSyncPaths(_0x2df2b6),_0x5b5e75=new Set([..._0x3f13b1]['map'](_0x5cd5d3=>_0x5cd5d3['trim']())[_0x5f418b(0x19a)](Boolean)),_0x4bba8c=_0x18e88e?new Set([..._0x18e88e][_0x5f418b(0x1c0)](_0x33157e=>_0x33157e[_0x5f418b(0x19b)]())['filter'](Boolean)):undefined,_0x222ada=[];for(const _0x1b523e of[_0x1b1ba5[_0x5f418b(0x196)],_0x1b1ba5['claudeSkillsDir']]){for(const _0x48ed06 of managedAppSkillLinkPaths(_0x1b523e,_0x50cdfb)){const _0x5b3cb2=basename(_0x48ed06)['slice']((_0x50cdfb+'--')[_0x5f418b(0x1a7)]);if(_0x4bba8c&&!_0x4bba8c['has'](_0x5b3cb2))continue;if(_0x5b5e75[_0x5f418b(0x1ad)](_0x5b3cb2))continue;_0x222ada['push'](removeManagedSkillLink(_0x48ed06,_0x1b1ba5[_0x5f418b(0x1b0)]));}}return _0x222ada;}export function pruneStaleRuntimeSkillCache(_0x1f7a90,_0xee61cb={}){const _0x3e6815=a88_0x40cf,_0x2bd01e=new Set([..._0x1f7a90[_0x3e6815(0x194)]]['map'](_0x1a3a65=>_0x1a3a65['trim']())[_0x3e6815(0x19a)](Boolean)),_0x4bbf50=_0x1f7a90[_0x3e6815(0x1a3)]?new Set([..._0x1f7a90[_0x3e6815(0x1a3)]]['map'](_0x1ee266=>_0x1ee266[_0x3e6815(0x19b)]())[_0x3e6815(0x19a)](Boolean)):undefined,_0x8ac06f=_0x1f7a90[_0x3e6815(0x1a2)]??[_0x3e6815(0x1b7),_0x3e6815(0x1a5)],_0x4dda47=resolve(getRuntimeSkillCacheRoot(_0x1f7a90[_0x3e6815(0x1c1)],_0x1f7a90['accessKey'],_0xee61cb),safePathSegment(_0x1f7a90['appCode'],_0x3e6815(0x1a6))),_0xd0a5e5=[];for(const _0x4a5a45 of _0x8ac06f){const _0x4011bd=resolve(_0x4dda47,_0x4a5a45);if(!existsSync(_0x4011bd))continue;for(const _0x3ba31f of readdirSync(_0x4011bd,{'withFileTypes':!![]})){if(!_0x3ba31f[_0x3e6815(0x1af)]())continue;const _0x4c2e17=_0x3ba31f[_0x3e6815(0x1ba)];if(_0x4bbf50&&!_0x4bbf50[_0x3e6815(0x1ad)](_0x4c2e17))continue;if(_0x2bd01e[_0x3e6815(0x1ad)](_0x4c2e17))continue;const _0x12878a=resolve(_0x4011bd,_0x4c2e17),_0x46c11e=readMetadataIfPresent(resolve(_0x12878a,METADATA_FILE));if(_0x46c11e?.[_0x3e6815(0x1a6)]!==_0x1f7a90[_0x3e6815(0x1a6)]||_0x46c11e['scope']!==_0x4a5a45||_0x46c11e[_0x3e6815(0x1ac)]!==_0x4c2e17){_0xd0a5e5[_0x3e6815(0x1bd)]({'path':_0x12878a,'action':_0x3e6815(0x19c),'reason':_0x3e6815(0x199)});continue;}removeSync(_0x12878a),_0xd0a5e5[_0x3e6815(0x1bd)]({'path':_0x12878a,'action':_0x3e6815(0x1b6)});}}return _0xd0a5e5;}export function linkGlobalRuntimeSkills(_0x3c7d11,_0x2a29a1={}){const _0x2ce543=a88_0x40cf,_0x5184bb=resolveSkillSyncPaths(_0x2a29a1),_0x159970=[];for(const _0x49b2c0 of _0x3c7d11){if(_0x49b2c0[_0x2ce543(0x19e)]!==_0x2ce543(0x1bb))throw CliErrors[_0x2ce543(0x1b9)](_0x2ce543(0x1ab)+_0x49b2c0[_0x2ce543(0x19e)]);const _0x181eec=requireSkillCode(_0x49b2c0[_0x2ce543(0x1be)]),_0x1f0f30=copyManagedSkillDirectory(_0x49b2c0[_0x2ce543(0x1bf)],resolve(_0x5184bb[_0x2ce543(0x196)],_0x181eec));_0x159970[_0x2ce543(0x1bd)]({..._0x1f0f30,'contentHash':_0x49b2c0[_0x2ce543(0x197)]});}return _0x159970;}function ensureManagedSymlink(_0x3162f0,_0x264913,_0x134f7f){const _0xe5ae03=a88_0x40cf;mkdirSync(dirname(_0x3162f0),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x3162f0)||isDanglingSymlink(_0x3162f0)){const _0x3e8fd7=lstatSync(_0x3162f0);if(!_0x3e8fd7[_0xe5ae03(0x1a4)]())throw CliErrors[_0xe5ae03(0x1b9)](_0xe5ae03(0x1c5)+_0x3162f0);const _0x50c188=resolveSymlinkTarget(_0x3162f0);if(!isPathInside(realOrResolved(_0x50c188),realOrResolved(_0x134f7f)))throw CliErrors[_0xe5ae03(0x1b9)](_0xe5ae03(0x1c2)+_0x3162f0);if(realOrResolved(_0x50c188)===realOrResolved(_0x264913))return{'path':_0x3162f0,'target':_0x264913,'action':_0xe5ae03(0x19f)};return unlinkSync(_0x3162f0),symlinkSync(_0x264913,_0x3162f0,'dir'),{'path':_0x3162f0,'target':_0x264913,'action':_0xe5ae03(0x198)};}return symlinkSync(_0x264913,_0x3162f0,_0xe5ae03(0x1bf)),{'path':_0x3162f0,'target':_0x264913,'action':_0xe5ae03(0x1b3)};}function a88_0x40cf(_0x3d52eb,_0xdbe3ff){_0x3d52eb=_0x3d52eb-0x194;const _0x2c77ae=a88_0x2c77();let _0x40cfc5=_0x2c77ae[_0x3d52eb];return _0x40cfc5;}function managedAppSkillLinkPaths(_0x40704b,_0x3c9849){const _0x44dcc2=a88_0x40cf;if(!existsSync(_0x40704b))return[];const _0x260e69=_0x3c9849+'--';return readdirSync(_0x40704b,{'withFileTypes':!![]})[_0x44dcc2(0x19a)](_0x5065a1=>_0x5065a1[_0x44dcc2(0x1ba)]['startsWith'](_0x260e69))[_0x44dcc2(0x1c0)](_0x465716=>resolve(_0x40704b,_0x465716[_0x44dcc2(0x1ba)]));}function removeManagedSkillLink(_0x4976d1,_0xbacd35){const _0x295581=a88_0x40cf,_0x274a1a=lstatIfPresent(_0x4976d1);if(!_0x274a1a?.[_0x295581(0x1a4)]())return{'path':_0x4976d1,'action':_0x295581(0x19c),'reason':_0x295581(0x1aa)};const _0x157e3c=resolveSymlinkTarget(_0x4976d1);if(!isPathInside(realOrResolved(_0x157e3c),realOrResolved(_0xbacd35)))return{'path':_0x4976d1,'action':'skipped','reason':_0x295581(0x1a8)};return unlinkSync(_0x4976d1),{'path':_0x4976d1,'action':_0x295581(0x1b6)};}export function copyManagedSkillDirectory(_0xcd2207,_0x10fd09){const _0x540698=a88_0x40cf,_0x46b00e=resolve(_0x10fd09,METADATA_FILE),_0x44566e=existsSync(_0x10fd09);if(_0x44566e){const _0x5120a0=lstatSync(_0x10fd09);if(_0x5120a0['isSymbolicLink']())throw CliErrors[_0x540698(0x1b9)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x10fd09);if(!_0x5120a0[_0x540698(0x1af)]())throw CliErrors[_0x540698(0x1b9)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x10fd09);const _0x2cd0df=readMetadataIfPresent(_0x46b00e);if(_0x2cd0df?.[_0x540698(0x19e)]!==_0x540698(0x1bb))throw CliErrors['validation'](_0x540698(0x1b2)+_0x10fd09);}ensureDirSync(dirname(_0x10fd09));const _0x2a9aa5=_0x44566e?readMetadataIfPresent(_0x46b00e)?.['contentHash']:undefined,_0x2e83e5=readMetadataIfPresent(resolve(_0xcd2207,METADATA_FILE))?.[_0x540698(0x197)];return _0x44566e&&removeSync(_0x10fd09),copySkillDirectory(_0xcd2207,_0x10fd09),{'path':_0x10fd09,'target':_0xcd2207,'action':!_0x44566e?_0x540698(0x1b3):_0x2a9aa5===_0x2e83e5?_0x540698(0x19f):'updated'};}function copySkillDirectory(_0x693ffe,_0x2cc80f){copySync(_0x693ffe,_0x2cc80f,{'dereference':![],'overwrite':!![],'filter'(_0x342463){const _0xd1ce9d=a88_0x40cf;if(lstatSync(_0x342463)[_0xd1ce9d(0x1a4)]())throw CliErrors[_0xd1ce9d(0x1b9)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x342463);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x3b8958,_0x5e9c09){const _0xce16f7=a89_0x2f8e,_0x55870e=_0x3b8958();while(!![]){try{const _0x596859=parseInt(_0xce16f7(0x149))/0x1*(-parseInt(_0xce16f7(0x161))/0x2)+-parseInt(_0xce16f7(0x15a))/0x3*(parseInt(_0xce16f7(0x15b))/0x4)+parseInt(_0xce16f7(0x172))/0x5+parseInt(_0xce16f7(0x156))/0x6*(parseInt(_0xce16f7(0x14d))/0x7)+parseInt(_0xce16f7(0x15c))/0x8+parseInt(_0xce16f7(0x16e))/0x9+parseInt(_0xce16f7(0x166))/0xa*(parseInt(_0xce16f7(0x16a))/0xb);if(_0x596859===_0x5e9c09)break;else _0x55870e['push'](_0x55870e['shift']());}catch(_0xb891c){_0x55870e['push'](_0x55870e['shift']());}}}(a89_0x5aae,0x9fc1a));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';function a89_0x5aae(){const _0x208d34=['code','filter','localeCompare','998627tFdCvs','scopes','appCode','skillMdPath','has','link','name','isSymbolicLink','linkedPaths','6hrWoCv','scope','dir','metadataPath','579fEwfKY','2944gnbCQZ','7615240VMwZEc','set','skillCode','agentsSkillsDir','tags','2pqMVNH','linkedPath','push','cacheDir','local','30BFLXxr','map','includes','source','185141lHCTvT','cache','values','builtin','1074708KLUbzt','trim','startsWith','sort','1495840CmGkAv','767229ETbqFu'];a89_0x5aae=function(){return _0x208d34;};return a89_0x5aae();}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x310218,_0x12858e={}){const _0x2fd908=a89_0x2f8e,_0x10f459=safePathSegment(_0x310218[_0x2fd908(0x14f)],_0x2fd908(0x14f)),_0x367584=normalizeRuntimeSkillScopes(_0x310218[_0x2fd908(0x14e)]),_0x19ab75=new Set(_0x367584),_0x25412c=_0x310218[_0x2fd908(0x14a)]?.['trim'](),_0x24d07b=new Map(),_0x32bbc9=resolve(getRuntimeSkillCacheRoot(_0x310218['env'],_0x310218['accessKey'],_0x12858e),_0x10f459);for(const _0x2419d1 of _0x367584){for(const _0x4cdbb6 of localSkillEntryDirs(resolve(_0x32bbc9,_0x2419d1))){collectLocalRuntimeSkill(_0x24d07b,_0x4cdbb6,{'appCode':_0x10f459,'scopes':_0x19ab75,'code':_0x25412c,'source':_0x2fd908(0x16b)});}}const _0x4060b6=resolveSkillSyncPaths(_0x12858e);for(const _0x78c7a of[_0x4060b6[_0x2fd908(0x15f)],_0x4060b6['claudeSkillsDir']]){for(const _0x1b5176 of localSkillLinkCandidates(_0x78c7a,_0x10f459,_0x19ab75)){collectLocalRuntimeSkill(_0x24d07b,_0x1b5176,{'appCode':_0x10f459,'scopes':_0x19ab75,'code':_0x25412c,'source':_0x2fd908(0x152),'linkedPath':_0x1b5176});}}return Array['from'](_0x24d07b[_0x2fd908(0x16c)]())[_0x2fd908(0x171)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x541cc9){const _0x241efc=a89_0x2f8e;if(!existsSync(_0x541cc9))return[];return readdirSync(_0x541cc9,{'withFileTypes':!![]})[_0x241efc(0x14b)](_0x1bb0c7=>_0x1bb0c7['isDirectory']()||_0x1bb0c7[_0x241efc(0x154)]())[_0x241efc(0x167)](_0x50a68e=>resolve(_0x541cc9,_0x50a68e[_0x241efc(0x153)]));}function localSkillLinkCandidates(_0x386d4a,_0x22a331,_0xd78bce){const _0x32514d=a89_0x2f8e;if(!existsSync(_0x386d4a))return[];const _0x3352f4=_0x22a331+'--';return readdirSync(_0x386d4a,{'withFileTypes':!![]})[_0x32514d(0x14b)](_0x2ee981=>_0x2ee981['isDirectory']()||_0x2ee981[_0x32514d(0x154)]())[_0x32514d(0x14b)](_0x783595=>_0x783595[_0x32514d(0x153)][_0x32514d(0x170)](_0x3352f4)||_0xd78bce[_0x32514d(0x151)](_0x32514d(0x16d)))['map'](_0x4a0ca0=>resolve(_0x386d4a,_0x4a0ca0[_0x32514d(0x153)]));}function a89_0x2f8e(_0x1390b1,_0x37a161){_0x1390b1=_0x1390b1-0x149;const _0x5aae2c=a89_0x5aae();let _0x2f8eb9=_0x5aae2c[_0x1390b1];return _0x2f8eb9;}function collectLocalRuntimeSkill(_0xfc81e8,_0x5c6b3e,_0x389925){const _0x480ef8=a89_0x2f8e,_0x16198f=resolve(_0x5c6b3e,METADATA_FILE),_0x4e6850=readMetadataIfPresent(_0x16198f);if(!_0x4e6850)return;if(_0x4e6850['appCode']!==_0x389925[_0x480ef8(0x14f)])return;if(!isRuntimeSkillScope(_0x4e6850[_0x480ef8(0x157)])||!_0x389925['scopes']['has'](_0x4e6850[_0x480ef8(0x157)]))return;const _0x23b343=_0x4e6850['skillCode']?.[_0x480ef8(0x16f)]();if(!_0x23b343)return;if(_0x389925['code']&&_0x23b343!==_0x389925[_0x480ef8(0x14a)])return;const _0x28ef6b=_0x4e6850['scope']+':'+_0x23b343,_0x30069b=_0x389925['linkedPath']?[_0x389925[_0x480ef8(0x162)]]:[],_0x181151=_0xfc81e8['get'](_0x28ef6b);if(_0x181151){_0x389925[_0x480ef8(0x169)]===_0x480ef8(0x16b)&&(_0x181151['dir']=_0x5c6b3e,_0x181151[_0x480ef8(0x164)]=_0x5c6b3e,_0x181151[_0x480ef8(0x150)]=resolve(_0x5c6b3e,SKILL_FILE),_0x181151[_0x480ef8(0x159)]=_0x16198f);for(const _0x2f94b8 of _0x30069b){!_0x181151[_0x480ef8(0x155)][_0x480ef8(0x168)](_0x2f94b8)&&_0x181151[_0x480ef8(0x155)][_0x480ef8(0x163)](_0x2f94b8);}_0x181151[_0x480ef8(0x155)][_0x480ef8(0x171)]();return;}_0xfc81e8[_0x480ef8(0x15d)](_0x28ef6b,{..._0x4e6850,'tags':Array['isArray'](_0x4e6850[_0x480ef8(0x160)])?_0x4e6850[_0x480ef8(0x160)]:[],'scope':_0x4e6850[_0x480ef8(0x157)],'source':_0x480ef8(0x165),'dir':_0x5c6b3e,'cacheDir':_0x389925[_0x480ef8(0x169)]===_0x480ef8(0x16b)?_0x5c6b3e:undefined,'skillMdPath':resolve(_0x5c6b3e,SKILL_FILE),'metadataPath':_0x16198f,'linkedPaths':_0x30069b});}function compareLocalRuntimeSkills(_0x44ca35,_0xab4ebc){const _0x58a1d8=a89_0x2f8e,_0x318be2={'personal':0x0,'company':0x1,'builtin':0x2};return _0x318be2[_0x44ca35[_0x58a1d8(0x157)]]-_0x318be2[_0xab4ebc[_0x58a1d8(0x157)]]||_0x44ca35[_0x58a1d8(0x15e)][_0x58a1d8(0x14c)](_0xab4ebc[_0x58a1d8(0x15e)])||_0x44ca35[_0x58a1d8(0x158)]['localeCompare'](_0xab4ebc[_0x58a1d8(0x158)]);}
1
+ (function(_0x4f1b18,_0x1d4e25){const _0xa54d61=a89_0x599c,_0x5396af=_0x4f1b18();while(!![]){try{const _0x9347f8=-parseInt(_0xa54d61(0x11c))/0x1+parseInt(_0xa54d61(0x11b))/0x2*(parseInt(_0xa54d61(0x124))/0x3)+parseInt(_0xa54d61(0x121))/0x4*(-parseInt(_0xa54d61(0x12b))/0x5)+parseInt(_0xa54d61(0x125))/0x6+-parseInt(_0xa54d61(0x11f))/0x7*(parseInt(_0xa54d61(0x126))/0x8)+-parseInt(_0xa54d61(0x11e))/0x9+parseInt(_0xa54d61(0x110))/0xa;if(_0x9347f8===_0x1d4e25)break;else _0x5396af['push'](_0x5396af['shift']());}catch(_0xe3aee7){_0x5396af['push'](_0x5396af['shift']());}}}(a89_0x7937,0xdaea4));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 a89_0x7937(){const _0x549e6b=['get','startsWith','2383135gEoHKe','cacheDir','dir','agentsSkillsDir','link','set','env','filter','linkedPaths','sort','isDirectory','name','scope','includes','trim','skillCode','17851660oseFSz','map','code','skillMdPath','source','localeCompare','tags','isSymbolicLink','appCode','has','metadataPath','1150OroWhZ','1549390IlClHh','scopes','11293560pfLQBM','322uIPSHA','push','4OIlAPn','accessKey','linkedPath','8448DoISgL','7020606bdFZZU','69032PFHNzi','cache','from'];a89_0x7937=function(){return _0x549e6b;};return a89_0x7937();}function a89_0x599c(_0x39d3bc,_0x2860cd){_0x39d3bc=_0x39d3bc-0x10e;const _0x793748=a89_0x7937();let _0x599c48=_0x793748[_0x39d3bc];return _0x599c48;}export function listLocalRuntimeSkills(_0xd12077,_0xb23265={}){const _0x477806=a89_0x599c,_0x32e688=safePathSegment(_0xd12077[_0x477806(0x118)],_0x477806(0x118)),_0x8fcdd2=normalizeRuntimeSkillScopes(_0xd12077[_0x477806(0x11d)]),_0xdd5d85=new Set(_0x8fcdd2),_0x1dc1e8=_0xd12077['code']?.['trim'](),_0x402a95=new Map(),_0x47068c=resolve(getRuntimeSkillCacheRoot(_0xd12077[_0x477806(0x131)],_0xd12077[_0x477806(0x122)],_0xb23265),_0x32e688);for(const _0x3de95a of _0x8fcdd2){for(const _0x4ea476 of localSkillEntryDirs(resolve(_0x47068c,_0x3de95a))){collectLocalRuntimeSkill(_0x402a95,_0x4ea476,{'appCode':_0x32e688,'scopes':_0xdd5d85,'code':_0x1dc1e8,'source':_0x477806(0x127)});}}const _0x4b77b1=resolveSkillSyncPaths(_0xb23265);for(const _0x34174f of[_0x4b77b1[_0x477806(0x12e)],_0x4b77b1['claudeSkillsDir']]){for(const _0x326de2 of localSkillLinkCandidates(_0x34174f,_0x32e688,_0xdd5d85)){collectLocalRuntimeSkill(_0x402a95,_0x326de2,{'appCode':_0x32e688,'scopes':_0xdd5d85,'code':_0x1dc1e8,'source':_0x477806(0x12f),'linkedPath':_0x326de2});}}return Array[_0x477806(0x128)](_0x402a95['values']())[_0x477806(0x134)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x235720){const _0xba5cd=a89_0x599c;if(!existsSync(_0x235720))return[];return readdirSync(_0x235720,{'withFileTypes':!![]})[_0xba5cd(0x132)](_0x7558dd=>_0x7558dd[_0xba5cd(0x135)]()||_0x7558dd[_0xba5cd(0x117)]())[_0xba5cd(0x111)](_0x57aaa7=>resolve(_0x235720,_0x57aaa7[_0xba5cd(0x136)]));}function localSkillLinkCandidates(_0x2b45fd,_0x8f800f,_0x3e6edf){const _0x3328bf=a89_0x599c;if(!existsSync(_0x2b45fd))return[];const _0x364ca9=_0x8f800f+'--';return readdirSync(_0x2b45fd,{'withFileTypes':!![]})[_0x3328bf(0x132)](_0x2aaf6c=>_0x2aaf6c[_0x3328bf(0x135)]()||_0x2aaf6c[_0x3328bf(0x117)]())['filter'](_0x40ca1f=>_0x40ca1f[_0x3328bf(0x136)][_0x3328bf(0x12a)](_0x364ca9)||_0x3e6edf[_0x3328bf(0x119)]('builtin'))[_0x3328bf(0x111)](_0x130659=>resolve(_0x2b45fd,_0x130659[_0x3328bf(0x136)]));}function collectLocalRuntimeSkill(_0x1ad8a8,_0x42c04c,_0x20ded8){const _0x1e2851=a89_0x599c,_0x2db0cf=resolve(_0x42c04c,METADATA_FILE),_0x502cde=readMetadataIfPresent(_0x2db0cf);if(!_0x502cde)return;if(_0x502cde['appCode']!==_0x20ded8[_0x1e2851(0x118)])return;if(!isRuntimeSkillScope(_0x502cde[_0x1e2851(0x137)])||!_0x20ded8[_0x1e2851(0x11d)][_0x1e2851(0x119)](_0x502cde['scope']))return;const _0x21d00f=_0x502cde[_0x1e2851(0x10f)]?.[_0x1e2851(0x10e)]();if(!_0x21d00f)return;if(_0x20ded8['code']&&_0x21d00f!==_0x20ded8[_0x1e2851(0x112)])return;const _0x57d4e1=_0x502cde[_0x1e2851(0x137)]+':'+_0x21d00f,_0x3e6ab1=_0x20ded8[_0x1e2851(0x123)]?[_0x20ded8[_0x1e2851(0x123)]]:[],_0x3a82d7=_0x1ad8a8[_0x1e2851(0x129)](_0x57d4e1);if(_0x3a82d7){_0x20ded8[_0x1e2851(0x114)]===_0x1e2851(0x127)&&(_0x3a82d7[_0x1e2851(0x12d)]=_0x42c04c,_0x3a82d7[_0x1e2851(0x12c)]=_0x42c04c,_0x3a82d7[_0x1e2851(0x113)]=resolve(_0x42c04c,SKILL_FILE),_0x3a82d7[_0x1e2851(0x11a)]=_0x2db0cf);for(const _0xa608 of _0x3e6ab1){!_0x3a82d7['linkedPaths'][_0x1e2851(0x138)](_0xa608)&&_0x3a82d7[_0x1e2851(0x133)][_0x1e2851(0x120)](_0xa608);}_0x3a82d7[_0x1e2851(0x133)][_0x1e2851(0x134)]();return;}_0x1ad8a8[_0x1e2851(0x130)](_0x57d4e1,{..._0x502cde,'tags':Array['isArray'](_0x502cde[_0x1e2851(0x116)])?_0x502cde[_0x1e2851(0x116)]:[],'scope':_0x502cde[_0x1e2851(0x137)],'source':'local','dir':_0x42c04c,'cacheDir':_0x20ded8['source']===_0x1e2851(0x127)?_0x42c04c:undefined,'skillMdPath':resolve(_0x42c04c,SKILL_FILE),'metadataPath':_0x2db0cf,'linkedPaths':_0x3e6ab1});}function compareLocalRuntimeSkills(_0x24e0ee,_0x6fb614){const _0x266228=a89_0x599c,_0x34a68e={'personal':0x0,'company':0x1,'builtin':0x2};return _0x34a68e[_0x24e0ee[_0x266228(0x137)]]-_0x34a68e[_0x6fb614[_0x266228(0x137)]]||_0x24e0ee[_0x266228(0x10f)][_0x266228(0x115)](_0x6fb614[_0x266228(0x10f)])||_0x24e0ee[_0x266228(0x12d)][_0x266228(0x115)](_0x6fb614[_0x266228(0x12d)]);}
@@ -1 +1 @@
1
- (function(_0x38a071,_0x4bb6ae){const _0xafcd28=a90_0x3d02,_0x2f7295=_0x38a071();while(!![]){try{const _0x34d65b=parseInt(_0xafcd28(0x1d9))/0x1+parseInt(_0xafcd28(0x1ca))/0x2+-parseInt(_0xafcd28(0x1f4))/0x3*(parseInt(_0xafcd28(0x1e0))/0x4)+-parseInt(_0xafcd28(0x1f8))/0x5*(-parseInt(_0xafcd28(0x1e6))/0x6)+parseInt(_0xafcd28(0x1d0))/0x7+parseInt(_0xafcd28(0x1cd))/0x8*(-parseInt(_0xafcd28(0x1f7))/0x9)+parseInt(_0xafcd28(0x1ce))/0xa*(-parseInt(_0xafcd28(0x1f6))/0xb);if(_0x34d65b===_0x4bb6ae)break;else _0x2f7295['push'](_0x2f7295['shift']());}catch(_0x2f1374){_0x2f7295['push'](_0x2f7295['shift']());}}}(a90_0x5452,0x2e81e));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,MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_TOTAL_BYTES,SKILL_FILE}from'./constants.js';export function fileContent(_0x38f03e){const _0x342606=a90_0x3d02;return _0x38f03e[_0x342606(0x1cc)]??Buffer[_0x342606(0x1f5)](_0x38f03e[_0x342606(0x1dc)]??'',_0x342606(0x1d5));}export function fileText(_0x39a15d){const _0x2e682e=a90_0x3d02;return fileContent(_0x39a15d)[_0x2e682e(0x1d7)](_0x2e682e(0x1d5));}function a90_0x3d02(_0x48b1b5,_0x194a30){_0x48b1b5=_0x48b1b5-0x1c9;const _0x545270=a90_0x5452();let _0x3d02ea=_0x545270[_0x48b1b5];return _0x3d02ea;}export function normalizeLocalFiles(_0x1a6dea){const _0x2b2a01=a90_0x3d02;if(!Array[_0x2b2a01(0x1ee)](_0x1a6dea)||_0x1a6dea[_0x2b2a01(0x1ef)]===0x0)return[];if(_0x1a6dea[_0x2b2a01(0x1ef)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x2b2a01(0x1ed));const _0x23ad32=new Map();let _0x36cda3=0x0;for(const _0x3a6369 of _0x1a6dea){if(!_0x3a6369||typeof _0x3a6369!=='object'||typeof _0x3a6369[_0x2b2a01(0x1e3)]!==_0x2b2a01(0x1ea))throw CliErrors[_0x2b2a01(0x1d8)](_0x2b2a01(0x1d1));const _0x26f24d=normalizeSkillRelativePath(_0x3a6369['path']);if(_0x23ad32[_0x2b2a01(0x1db)](_0x26f24d))throw CliErrors['validation'](_0x2b2a01(0x1d3)+_0x26f24d);if(_0x3a6369[_0x2b2a01(0x1cc)]!==undefined&&!Buffer[_0x2b2a01(0x1ec)](_0x3a6369['bytes']))throw CliErrors[_0x2b2a01(0x1d8)](_0x2b2a01(0x1e7)+_0x26f24d);if(_0x3a6369[_0x2b2a01(0x1cc)]===undefined&&typeof _0x3a6369[_0x2b2a01(0x1dc)]!==_0x2b2a01(0x1ea))throw CliErrors[_0x2b2a01(0x1d8)](_0x2b2a01(0x1cf)+_0x26f24d);const _0x411940=fileContent(_0x3a6369),_0x111317=_0x411940[_0x2b2a01(0x1ef)];if(_0x111317>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x2b2a01(0x1d8)](_0x2b2a01(0x1d4)+_0x26f24d);_0x36cda3+=_0x111317;if(_0x36cda3>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x2b2a01(0x1d8)](_0x2b2a01(0x1f0));_0x23ad32[_0x2b2a01(0x1d2)](_0x26f24d,{'path':_0x26f24d,'bytes':_0x411940});}return Array[_0x2b2a01(0x1f5)](_0x23ad32['values']())[_0x2b2a01(0x1d6)](compareSkillFiles);}export function normalizeManifestFiles(_0x50dffc){const _0x3a2c51=a90_0x3d02;if(!Array[_0x3a2c51(0x1ee)](_0x50dffc)||_0x50dffc[_0x3a2c51(0x1ef)]===0x0)return[];if(_0x50dffc[_0x3a2c51(0x1ef)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x3a2c51(0x1d8)]('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');const _0x4a01a3=new Map();let _0x4c1906=0x0;for(const _0x44bfc6 of _0x50dffc){if(!_0x44bfc6||typeof _0x44bfc6!==_0x3a2c51(0x1f2)||typeof _0x44bfc6[_0x3a2c51(0x1e3)]!==_0x3a2c51(0x1ea))throw CliErrors[_0x3a2c51(0x1d8)](_0x3a2c51(0x1d1));const _0x225c89=normalizeSkillRelativePath(_0x44bfc6['path']);if(_0x4a01a3['has'](_0x225c89))throw CliErrors[_0x3a2c51(0x1d8)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x225c89);if(!isSha256Hex(_0x44bfc6['sha256']))throw CliErrors['validation'](_0x3a2c51(0x1e8)+_0x225c89);if(!Number['isSafeInteger'](_0x44bfc6['size'])||_0x44bfc6[_0x3a2c51(0x1da)]<0x0)throw CliErrors[_0x3a2c51(0x1d8)](_0x3a2c51(0x1e9)+_0x225c89);if(_0x44bfc6[_0x3a2c51(0x1da)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x3a2c51(0x1d8)](_0x3a2c51(0x1d4)+_0x225c89);_0x4c1906+=_0x44bfc6[_0x3a2c51(0x1da)];if(_0x4c1906>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x3a2c51(0x1d8)]('Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.');_0x4a01a3[_0x3a2c51(0x1d2)](_0x225c89,{'path':_0x225c89,'sha256':_0x44bfc6[_0x3a2c51(0x1e4)][_0x3a2c51(0x1e1)](),'size':_0x44bfc6['size']});}return Array[_0x3a2c51(0x1f5)](_0x4a01a3['values']())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0x464fb1){const _0x211cb7=realpathSync(_0x464fb1),_0x2036c2=[];let _0x2a3d01=0x0;function _0x49a4c4(_0x54888a){const _0x14b909=a90_0x3d02,_0x2901b0=readdirSync(_0x54888a,{'withFileTypes':!![]})[_0x14b909(0x1d6)]((_0x11a767,_0x1863d7)=>_0x11a767[_0x14b909(0x1dd)]['localeCompare'](_0x1863d7[_0x14b909(0x1dd)]));for(const _0x537000 of _0x2901b0){if(_0x537000[_0x14b909(0x1f1)]()&&IGNORED_DIR_NAMES['has'](_0x537000[_0x14b909(0x1dd)]))continue;if(IGNORED_FILE_NAMES[_0x14b909(0x1db)](_0x537000[_0x14b909(0x1dd)]))continue;const _0x4310cd=resolve(_0x54888a,_0x537000['name']);if(_0x537000[_0x14b909(0x1c9)]())throw CliErrors[_0x14b909(0x1d8)](_0x14b909(0x1de)+_0x4310cd);const _0x54a4a5=toPosixPath(relative(_0x211cb7,_0x4310cd));if(_0x537000['isDirectory']()){_0x49a4c4(_0x4310cd);continue;}if(!_0x537000[_0x14b909(0x1df)]())continue;validateSkillRelativePath(_0x54a4a5);const _0x32a4e8=readFileSync(_0x4310cd);if(_0x32a4e8[_0x14b909(0x1ef)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x14b909(0x1d8)](_0x14b909(0x1d4)+_0x54a4a5);_0x2a3d01+=_0x32a4e8['length'];if(_0x2a3d01>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x14b909(0x1d8)]('Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.');_0x2036c2['push']({'path':_0x54a4a5,'bytes':_0x32a4e8});if(_0x2036c2[_0x14b909(0x1ef)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x14b909(0x1ed));}}return _0x49a4c4(_0x211cb7),normalizeLocalFiles(_0x2036c2);}export function compareSkillFiles(_0x30f878,_0xf615b5){const _0x2140dd=a90_0x3d02;if(_0x30f878['path']===SKILL_FILE)return _0xf615b5['path']===SKILL_FILE?0x0:-0x1;if(_0xf615b5[_0x2140dd(0x1e3)]===SKILL_FILE)return 0x1;return Buffer[_0x2140dd(0x1e2)](Buffer[_0x2140dd(0x1f5)](_0x30f878[_0x2140dd(0x1e3)],_0x2140dd(0x1d5)),Buffer[_0x2140dd(0x1f5)](_0xf615b5['path'],_0x2140dd(0x1d5)));}function a90_0x5452(){const _0x43564c=['12344MqGklb','1170hQRoIN','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','692671ldADKS','Skill\x20file\x20path\x20must\x20be\x20text.','set','Duplicate\x20Skill\x20file\x20path:\x20','Skill\x20file\x20exceeds\x20size\x20limit:\x20','utf8','sort','toString','validation','368657YqaqPO','size','has','content','name','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','isFile','180IUYqsS','toLowerCase','compare','path','sha256','Unsafe\x20Skill\x20file\x20path:\x20','66PjiYNm','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','Skill\x20file\x20sha256\x20is\x20invalid:\x20','Skill\x20file\x20size\x20is\x20invalid:\x20','string','trim','isBuffer','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','isArray','length','Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.','isDirectory','object','replace','16098tGocdg','from','33913VEhHPg','459qzBDdV','155035dxXeWE','isSymbolicLink','125362ncDQeP','test','bytes'];a90_0x5452=function(){return _0x43564c;};return a90_0x5452();}export function normalizeSkillRelativePath(_0x468640){const _0xf00388=a90_0x3d02,_0x603ef1=toPosixPath(_0x468640[_0xf00388(0x1eb)]());return validateSkillRelativePath(_0x603ef1),_0x603ef1;}export function validateSkillRelativePath(_0x1ed3cc){const _0x55a8ac=a90_0x3d02;if(!_0x1ed3cc||_0x1ed3cc['startsWith']('/')||_0x1ed3cc['includes']('//'))throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x1ed3cc);for(const _0x32706a of _0x1ed3cc['split']('/')){if(!_0x32706a||_0x32706a==='.'||_0x32706a==='..')throw CliErrors[_0x55a8ac(0x1d8)](_0x55a8ac(0x1e5)+_0x1ed3cc);}}export function toPosixPath(_0x331658){const _0x876f80=a90_0x3d02;return _0x331658[_0x876f80(0x1f3)](/\\/g,'/');}export function isSha256Hex(_0x234119){const _0x35a6a2=a90_0x3d02;return typeof _0x234119===_0x35a6a2(0x1ea)&&/^[a-fA-F0-9]{64}$/[_0x35a6a2(0x1cb)](_0x234119);}
1
+ (function(_0x2552b2,_0x5a616c){const _0x3d8b52=a90_0x1d5c,_0xd90043=_0x2552b2();while(!![]){try{const _0xf929ec=parseInt(_0x3d8b52(0x18a))/0x1*(parseInt(_0x3d8b52(0x181))/0x2)+-parseInt(_0x3d8b52(0x184))/0x3+-parseInt(_0x3d8b52(0x179))/0x4*(-parseInt(_0x3d8b52(0x174))/0x5)+-parseInt(_0x3d8b52(0x17d))/0x6+parseInt(_0x3d8b52(0x166))/0x7*(parseInt(_0x3d8b52(0x182))/0x8)+-parseInt(_0x3d8b52(0x15c))/0x9*(-parseInt(_0x3d8b52(0x16d))/0xa)+parseInt(_0x3d8b52(0x16f))/0xb*(-parseInt(_0x3d8b52(0x177))/0xc);if(_0xf929ec===_0x5a616c)break;else _0xd90043['push'](_0xd90043['shift']());}catch(_0x2e3de1){_0xd90043['push'](_0xd90043['shift']());}}}(a90_0x30eb,0x70023));import{readFileSync,readdirSync,realpathSync}from'node:fs';function a90_0x1d5c(_0x3b115d,_0x32ab6e){_0x3b115d=_0x3b115d-0x15b;const _0x30eb62=a90_0x30eb();let _0x1d5c11=_0x30eb62[_0x3b115d];return _0x1d5c11;}import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_TOTAL_BYTES,SKILL_FILE}from'./constants.js';export function fileContent(_0x4d2874){const _0x36d5be=a90_0x1d5c;return _0x4d2874[_0x36d5be(0x163)]??Buffer[_0x36d5be(0x183)](_0x4d2874[_0x36d5be(0x167)]??'',_0x36d5be(0x17b));}function a90_0x30eb(){const _0x1281a2=['103078puMntL','10232GzRGCZ','from','1604142IcQxIx','set','test','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','has','startsWith','13kqEczl','Skill\x20file\x20sha256\x20is\x20invalid:\x20','9621CxoFgT','path','isFile','push','split','Unsafe\x20Skill\x20file\x20path:\x20','compare','bytes','Skill\x20file\x20exceeds\x20size\x20limit:\x20','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','427NVcsdX','content','length','Skill\x20file\x20size\x20is\x20invalid:\x20','values','Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.','size','2920mhGUDl','toLowerCase','2563SZSdem','isDirectory','validation','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','sort','612355WSjixz','sha256','name','12504PHTGTE','isArray','8tWuHwC','includes','utf8','string','412974yIUlnq','Duplicate\x20Skill\x20file\x20path:\x20','isSymbolicLink','trim'];a90_0x30eb=function(){return _0x1281a2;};return a90_0x30eb();}export function fileText(_0x4d70a8){const _0x22aca8=a90_0x1d5c;return fileContent(_0x4d70a8)['toString'](_0x22aca8(0x17b));}export function normalizeLocalFiles(_0x556741){const _0xae62d=a90_0x1d5c;if(!Array[_0xae62d(0x178)](_0x556741)||_0x556741[_0xae62d(0x168)]===0x0)return[];if(_0x556741['length']>MAX_SKILL_FILE_COUNT)throw CliErrors[_0xae62d(0x171)](_0xae62d(0x165));const _0x111cbe=new Map();let _0x28ff21=0x0;for(const _0x4d77ee of _0x556741){if(!_0x4d77ee||typeof _0x4d77ee!=='object'||typeof _0x4d77ee[_0xae62d(0x15d)]!==_0xae62d(0x17c))throw CliErrors[_0xae62d(0x171)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x5b3532=normalizeSkillRelativePath(_0x4d77ee[_0xae62d(0x15d)]);if(_0x111cbe[_0xae62d(0x188)](_0x5b3532))throw CliErrors['validation'](_0xae62d(0x17e)+_0x5b3532);if(_0x4d77ee[_0xae62d(0x163)]!==undefined&&!Buffer['isBuffer'](_0x4d77ee[_0xae62d(0x163)]))throw CliErrors[_0xae62d(0x171)](_0xae62d(0x172)+_0x5b3532);if(_0x4d77ee[_0xae62d(0x163)]===undefined&&typeof _0x4d77ee['content']!==_0xae62d(0x17c))throw CliErrors[_0xae62d(0x171)](_0xae62d(0x187)+_0x5b3532);const _0x5d45db=fileContent(_0x4d77ee),_0x584c94=_0x5d45db[_0xae62d(0x168)];if(_0x584c94>MAX_SKILL_FILE_BYTES)throw CliErrors[_0xae62d(0x171)](_0xae62d(0x164)+_0x5b3532);_0x28ff21+=_0x584c94;if(_0x28ff21>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation']('Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.');_0x111cbe['set'](_0x5b3532,{'path':_0x5b3532,'bytes':_0x5d45db});}return Array[_0xae62d(0x183)](_0x111cbe[_0xae62d(0x16a)]())[_0xae62d(0x173)](compareSkillFiles);}export function normalizeManifestFiles(_0x53d8ff){const _0x1b5760=a90_0x1d5c;if(!Array[_0x1b5760(0x178)](_0x53d8ff)||_0x53d8ff['length']===0x0)return[];if(_0x53d8ff[_0x1b5760(0x168)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x1b5760(0x171)](_0x1b5760(0x165));const _0x189ca7=new Map();let _0x365c69=0x0;for(const _0x59a7b9 of _0x53d8ff){if(!_0x59a7b9||typeof _0x59a7b9!=='object'||typeof _0x59a7b9[_0x1b5760(0x15d)]!=='string')throw CliErrors[_0x1b5760(0x171)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x183acf=normalizeSkillRelativePath(_0x59a7b9[_0x1b5760(0x15d)]);if(_0x189ca7[_0x1b5760(0x188)](_0x183acf))throw CliErrors[_0x1b5760(0x171)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x183acf);if(!isSha256Hex(_0x59a7b9[_0x1b5760(0x175)]))throw CliErrors[_0x1b5760(0x171)](_0x1b5760(0x15b)+_0x183acf);if(!Number['isSafeInteger'](_0x59a7b9[_0x1b5760(0x16c)])||_0x59a7b9['size']<0x0)throw CliErrors[_0x1b5760(0x171)](_0x1b5760(0x169)+_0x183acf);if(_0x59a7b9[_0x1b5760(0x16c)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x1b5760(0x171)]('Skill\x20file\x20exceeds\x20size\x20limit:\x20'+_0x183acf);_0x365c69+=_0x59a7b9[_0x1b5760(0x16c)];if(_0x365c69>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x1b5760(0x171)](_0x1b5760(0x16b));_0x189ca7[_0x1b5760(0x185)](_0x183acf,{'path':_0x183acf,'sha256':_0x59a7b9['sha256'][_0x1b5760(0x16e)](),'size':_0x59a7b9[_0x1b5760(0x16c)]});}return Array[_0x1b5760(0x183)](_0x189ca7['values']())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0xce4345){const _0xa5cc03=realpathSync(_0xce4345),_0x539d09=[];let _0x9949b3=0x0;function _0x14265a(_0x2e96b0){const _0x564eed=a90_0x1d5c,_0x28831b=readdirSync(_0x2e96b0,{'withFileTypes':!![]})[_0x564eed(0x173)]((_0x45eafb,_0x2f8638)=>_0x45eafb['name']['localeCompare'](_0x2f8638[_0x564eed(0x176)]));for(const _0x34a8dd of _0x28831b){if(_0x34a8dd['isDirectory']()&&IGNORED_DIR_NAMES[_0x564eed(0x188)](_0x34a8dd[_0x564eed(0x176)]))continue;if(IGNORED_FILE_NAMES[_0x564eed(0x188)](_0x34a8dd[_0x564eed(0x176)]))continue;const _0x473518=resolve(_0x2e96b0,_0x34a8dd[_0x564eed(0x176)]);if(_0x34a8dd[_0x564eed(0x17f)]())throw CliErrors[_0x564eed(0x171)]('Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20'+_0x473518);const _0x281dc7=toPosixPath(relative(_0xa5cc03,_0x473518));if(_0x34a8dd[_0x564eed(0x170)]()){_0x14265a(_0x473518);continue;}if(!_0x34a8dd[_0x564eed(0x15e)]())continue;validateSkillRelativePath(_0x281dc7);const _0x508260=readFileSync(_0x473518);if(_0x508260[_0x564eed(0x168)]>MAX_SKILL_FILE_BYTES)throw CliErrors['validation'](_0x564eed(0x164)+_0x281dc7);_0x9949b3+=_0x508260[_0x564eed(0x168)];if(_0x9949b3>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x564eed(0x171)](_0x564eed(0x16b));_0x539d09[_0x564eed(0x15f)]({'path':_0x281dc7,'bytes':_0x508260});if(_0x539d09[_0x564eed(0x168)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x564eed(0x171)](_0x564eed(0x165));}}return _0x14265a(_0xa5cc03),normalizeLocalFiles(_0x539d09);}export function compareSkillFiles(_0x428ab1,_0x54fe0f){const _0x4b89e3=a90_0x1d5c;if(_0x428ab1['path']===SKILL_FILE)return _0x54fe0f['path']===SKILL_FILE?0x0:-0x1;if(_0x54fe0f[_0x4b89e3(0x15d)]===SKILL_FILE)return 0x1;return Buffer[_0x4b89e3(0x162)](Buffer[_0x4b89e3(0x183)](_0x428ab1['path'],_0x4b89e3(0x17b)),Buffer[_0x4b89e3(0x183)](_0x54fe0f['path'],_0x4b89e3(0x17b)));}export function normalizeSkillRelativePath(_0x41cb3c){const _0x54c44b=a90_0x1d5c,_0x2b8a77=toPosixPath(_0x41cb3c[_0x54c44b(0x180)]());return validateSkillRelativePath(_0x2b8a77),_0x2b8a77;}export function validateSkillRelativePath(_0x59caa0){const _0x418b73=a90_0x1d5c;if(!_0x59caa0||_0x59caa0[_0x418b73(0x189)]('/')||_0x59caa0[_0x418b73(0x17a)]('//'))throw CliErrors[_0x418b73(0x171)](_0x418b73(0x161)+_0x59caa0);for(const _0x5a3fe0 of _0x59caa0[_0x418b73(0x160)]('/')){if(!_0x5a3fe0||_0x5a3fe0==='.'||_0x5a3fe0==='..')throw CliErrors['validation'](_0x418b73(0x161)+_0x59caa0);}}export function toPosixPath(_0x22dbf6){return _0x22dbf6['replace'](/\\/g,'/');}export function isSha256Hex(_0x43b5d6){const _0x573b1e=a90_0x1d5c;return typeof _0x43b5d6==='string'&&/^[a-fA-F0-9]{64}$/[_0x573b1e(0x186)](_0x43b5d6);}