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

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(_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(_0x2c3398,_0x21fd8a){const _0x411153=a74_0x37ef,_0x56538d=_0x2c3398();while(!![]){try{const _0x5930c4=parseInt(_0x411153(0x72))/0x1+parseInt(_0x411153(0x70))/0x2*(parseInt(_0x411153(0x78))/0x3)+-parseInt(_0x411153(0x6b))/0x4+-parseInt(_0x411153(0x6d))/0x5+-parseInt(_0x411153(0x6f))/0x6+-parseInt(_0x411153(0x77))/0x7*(-parseInt(_0x411153(0x75))/0x8)+-parseInt(_0x411153(0x71))/0x9*(-parseInt(_0x411153(0x73))/0xa);if(_0x5930c4===_0x21fd8a)break;else _0x56538d['push'](_0x56538d['shift']());}catch(_0x5342f6){_0x56538d['push'](_0x56538d['shift']());}}}(a74_0x8daf,0x6dc40));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x58a7e4,_0x362f13){const _0x479949=a74_0x37ef,_0x18d75c=_0x58a7e4[_0x479949(0x76)],{_notice:_0x276a5b,..._0x3e55ad}=_0x58a7e4;void _0x276a5b,baseFormatOutput(_0x3e55ad,_0x362f13),_0x362f13['format']==='pretty'&&printPrettyNotice(_0x18d75c);}function a74_0x37ef(_0x35d2ed,_0xba9580){_0x35d2ed=_0x35d2ed-0x6b;const _0x8daf66=a74_0x8daf();let _0x37efd7=_0x8daf66[_0x35d2ed];return _0x37efd7;}function printPrettyNotice(_0x509834){const _0x4ddf6c=a74_0x37ef;if(!_0x509834?.[_0x4ddf6c(0x74)])return;console[_0x4ddf6c(0x6e)](_0x509834[_0x4ddf6c(0x74)]['message']+'\x20('+_0x509834[_0x4ddf6c(0x74)][_0x4ddf6c(0x6c)]+')');}function a74_0x8daf(){const _0x28f129=['621460lPqxBo','293980KtZpCf','update','319768SEwBPs','_notice','91ayBeLq','15rWzAbb','3041776dUiiTI','url','3676795TboocV','error','1967310kUtPAX','158902RlLxnO','225BqfZYL'];a74_0x8daf=function(){return _0x28f129;};return a74_0x8daf();}
@@ -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(_0x27ab9,_0x40173a){const _0xa522fe=a75_0x1d78,_0x20774a=_0x27ab9();while(!![]){try{const _0x2e52e3=-parseInt(_0xa522fe(0xcb))/0x1*(parseInt(_0xa522fe(0xbd))/0x2)+parseInt(_0xa522fe(0xb9))/0x3+-parseInt(_0xa522fe(0xcd))/0x4*(parseInt(_0xa522fe(0xc6))/0x5)+-parseInt(_0xa522fe(0xba))/0x6*(parseInt(_0xa522fe(0xc3))/0x7)+parseInt(_0xa522fe(0xd6))/0x8*(-parseInt(_0xa522fe(0xd1))/0x9)+parseInt(_0xa522fe(0xbc))/0xa*(parseInt(_0xa522fe(0xb8))/0xb)+parseInt(_0xa522fe(0xca))/0xc;if(_0x2e52e3===_0x40173a)break;else _0x20774a['push'](_0x20774a['shift']());}catch(_0x37bf9a){_0x20774a['push'](_0x20774a['shift']());}}}(a75_0xefce,0x1d413));function toKebab(_0x576c8f){const _0x4f0b24=a75_0x1d78;return _0x576c8f[_0x4f0b24(0xc7)](/_/g,'-')[_0x4f0b24(0xc7)](/-([A-Z]+)/g,(_0x2728b5,_0x3ec233)=>'-'+_0x3ec233[_0x4f0b24(0xc9)]())[_0x4f0b24(0xc7)](/([a-z0-9])([A-Z])/g,(_0xf017d6,_0x3a4c7f,_0x4b92f0)=>_0x3a4c7f+'-'+_0x4b92f0)[_0x4f0b24(0xc9)]();}function a75_0xefce(){const _0x1f8a4c=['77557EsTZdF','has','8PSCwPc','name','get','push','74421zPFRBN','boolean','type','format','non-interactive','208xnBmYp','nonInteractive','env','string','slice','help','number','set','dry-run','66PQVUFl','500466IsnKaO','6KcmuTY','yes','215870thYnGu','4XADSfW','global','corrected','add','length','app','356986hdhjzx','dryRun','sticky','529990dnDpAV','replace','keys','toLowerCase','5479020OSlEcm'];a75_0xefce=function(){return _0x1f8a4c;};return a75_0xefce();}function buildKnownFlags(_0x39e72a){const _0x299b52=a75_0x1d78,_0x788945=new Set();for(const _0x651b29 of _0x39e72a){_0x788945[_0x299b52(0xc0)](_0x651b29['name']),_0x788945[_0x299b52(0xc0)](toCamelCase(_0x651b29['name']));}for(const _0x577e28 of[_0x299b52(0xb7),_0x299b52(0xc4),_0x299b52(0xbb),_0x299b52(0xd4)]){_0x788945[_0x299b52(0xc0)](_0x577e28);}for(const _0x358c7c of[_0x299b52(0xdb),_0x299b52(0xd8),'appcode',_0x299b52(0xc2),_0x299b52(0xd7),_0x299b52(0xd5),'ci',_0x299b52(0xbe),'version']){_0x788945['add'](_0x358c7c);}return _0x788945;}function a75_0x1d78(_0x85b0e,_0x3c497c){_0x85b0e=_0x85b0e-0xb6;const _0xefcec7=a75_0xefce();let _0x1d7805=_0xefcec7[_0x85b0e];return _0x1d7805;}function buildFlagTypeMap(_0x510c50){const _0x3b4030=a75_0x1d78,_0x19f14f=new Map();for(const _0x34face of _0x510c50){_0x19f14f[_0x3b4030(0xb6)](_0x34face[_0x3b4030(0xce)],_0x34face['type']),_0x19f14f[_0x3b4030(0xb6)](toCamelCase(_0x34face[_0x3b4030(0xce)]),_0x34face[_0x3b4030(0xd3)]);}return _0x19f14f;}function toCamelCase(_0x5a66eb){const _0x454ab6=a75_0x1d78;return _0x5a66eb[_0x454ab6(0xc7)](/-([a-z])/g,(_0x4dee44,_0x7a32e2)=>_0x7a32e2['toUpperCase']());}function aliasHandler(_0x1d3793,_0x26cb3f){const _0x2bc1a4=a75_0x1d78,_0x4d0f2b=[];for(const _0x425994 of Object[_0x2bc1a4(0xc8)](_0x1d3793)){if(_0x26cb3f[_0x2bc1a4(0xcc)](_0x425994))continue;const _0x49d5a7=toKebab(_0x425994);_0x49d5a7!==_0x425994&&_0x26cb3f[_0x2bc1a4(0xcc)](_0x49d5a7)&&_0x4d0f2b[_0x2bc1a4(0xd0)]({'original':_0x425994,'corrected':_0x49d5a7,'handler':'alias'});}return _0x4d0f2b;}function stickyHandler(_0x4f38d9,_0x5f2f6e,_0x52f2a7){const _0x4a26ce=a75_0x1d78,_0x407e17=[];for(const [_0x500587,_0x5f08e3]of Object['entries'](_0x4f38d9)){if(_0x5f08e3!==!![])continue;for(let _0x100442=_0x500587[_0x4a26ce(0xc1)]-0x1;_0x100442>0x0;_0x100442--){const _0x5dc578=_0x500587[_0x4a26ce(0xda)](0x0,_0x100442),_0x46e8ab=_0x500587[_0x4a26ce(0xda)](_0x100442),_0x37ee36=toKebab(_0x5dc578),_0x5c98ae=toCamelCase(_0x5dc578),_0x4cf725=_0x5f2f6e[_0x4a26ce(0xcc)](_0x5dc578)?_0x5dc578:_0x5f2f6e[_0x4a26ce(0xcc)](_0x37ee36)?_0x37ee36:_0x5f2f6e['has'](_0x5c98ae)?_0x5c98ae:null;if(!_0x4cf725)continue;const _0xa9c0b0=_0x52f2a7[_0x4a26ce(0xcf)](_0x4cf725)??'string';let _0x3db6f4;if(_0xa9c0b0===_0x4a26ce(0xdc)){const _0x56eeee=Number(_0x46e8ab);if(isNaN(_0x56eeee)||_0x46e8ab==='')continue;_0x3db6f4=_0x56eeee;}else{if(_0xa9c0b0===_0x4a26ce(0xd2))continue;else{if(_0x46e8ab==='')continue;_0x3db6f4=_0x46e8ab;}}_0x407e17[_0x4a26ce(0xd0)]({'original':_0x500587,'corrected':_0x4cf725+'='+_0x3db6f4,'handler':_0x4a26ce(0xc5)});break;}}return _0x407e17;}export function correctFlags(_0x2edb5e,_0x4fb9f5){const _0x59bb8c=a75_0x1d78,_0x3e4021=buildKnownFlags(_0x4fb9f5),_0x43ebf9=buildFlagTypeMap(_0x4fb9f5),_0x5b5fdd=aliasHandler(_0x2edb5e,_0x3e4021),_0xacd222=stickyHandler(_0x2edb5e,_0x3e4021,_0x43ebf9),_0x504aa0=[..._0x5b5fdd,..._0xacd222];if(_0x504aa0[_0x59bb8c(0xc1)]===0x0)return{'flags':_0x2edb5e,'corrections':[]};const _0x22812d={..._0x2edb5e},_0x25259d=new Set();for(const _0x5e7946 of _0x5b5fdd){_0x22812d[_0x5e7946['corrected']]=_0x2edb5e[_0x5e7946['original']],_0x25259d['add'](_0x5e7946['original']);}for(const _0x5db49b of _0xacd222){const _0x34b225=_0x5db49b[_0x59bb8c(0xbf)]['indexOf']('='),_0x527f0e=_0x5db49b[_0x59bb8c(0xbf)]['slice'](0x0,_0x34b225),_0x50ed2e=_0x5db49b[_0x59bb8c(0xbf)][_0x59bb8c(0xda)](_0x34b225+0x1),_0x4605fb=_0x43ebf9['get'](_0x527f0e)??_0x59bb8c(0xd9);_0x4605fb===_0x59bb8c(0xdc)?_0x22812d[_0x527f0e]=Number(_0x50ed2e):_0x22812d[_0x527f0e]=_0x50ed2e,_0x25259d[_0x59bb8c(0xc0)](_0x5db49b['original']);}for(const _0x2a0c94 of _0x25259d){delete _0x22812d[_0x2a0c94];}return{'flags':_0x22812d,'corrections':_0x504aa0};}
@@ -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 a76_0x332c(_0x42f1c4,_0x4052bd){_0x42f1c4=_0x42f1c4-0x129;var _0x5b5bd2=a76_0x5b5b();var _0x332c73=_0x5b5bd2[_0x42f1c4];return _0x332c73;}function a76_0x5b5b(){var _0x676d36=['386634dFMhgQ','463987RvexSd','5430260tJXbeO','1510710uHGTOA','18956qKBYXF','2292332mgKsgj','6nDAoad','4455108NHMKtv','1368EkSJud','5QculCY'];a76_0x5b5b=function(){return _0x676d36;};return a76_0x5b5b();}(function(_0x4d4140,_0x59d47e){var _0x28ac17=a76_0x332c,_0x2288a3=_0x4d4140();while(!![]){try{var _0x2d9358=-parseInt(_0x28ac17(0x130))/0x1+-parseInt(_0x28ac17(0x12b))/0x2*(parseInt(_0x28ac17(0x12f))/0x3)+parseInt(_0x28ac17(0x12a))/0x4+parseInt(_0x28ac17(0x12e))/0x5*(parseInt(_0x28ac17(0x132))/0x6)+-parseInt(_0x28ac17(0x129))/0x7*(parseInt(_0x28ac17(0x12d))/0x8)+parseInt(_0x28ac17(0x12c))/0x9+parseInt(_0x28ac17(0x131))/0xa;if(_0x2d9358===_0x59d47e)break;else _0x2288a3['push'](_0x2288a3['shift']());}catch(_0x38e140){_0x2288a3['push'](_0x2288a3['shift']());}}}(a76_0x5b5b,0x86161));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -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 a77_0x55fd(_0x5b1491,_0x46c445){_0x5b1491=_0x5b1491-0xa2;const _0x28a443=a77_0x28a4();let _0x55fd45=_0x28a443[_0x5b1491];return _0x55fd45;}function a77_0x28a4(){const _0x4f3150=['code=','5VpuBoq','2137773mzBUOv','5074734VMJHMh','id=','⚠\x20\x20High-risk\x20operation:\x20','30GubNoY','params','name','4ZRiyZs','\x20\x20\x20','12145816JonvPW','916146Ezqome','join','code','stringify','service','push','11128740hzXLVb','params=','9awLVYC','24fFrkib','482231YrpMjV','\x20\x20\x20Continue?\x20[y/N]\x20','commandLabel','\x20\x20\x20Affected:\x20','command','--yes','description','name=','646480LpYUaW','length','entries'];a77_0x28a4=function(){return _0x4f3150;};return a77_0x28a4();}(function(_0x59220f,_0x4ce2e5){const _0x197feb=a77_0x55fd,_0xb7bc9f=_0x59220f();while(!![]){try{const _0x5f04d7=-parseInt(_0x197feb(0xbb))/0x1*(parseInt(_0x197feb(0xae))/0x2)+-parseInt(_0x197feb(0xba))/0x3*(-parseInt(_0x197feb(0xa2))/0x4)+-parseInt(_0x197feb(0xa6))/0x5*(parseInt(_0x197feb(0xb1))/0x6)+parseInt(_0x197feb(0xa8))/0x7+-parseInt(_0x197feb(0xb0))/0x8*(-parseInt(_0x197feb(0xb9))/0x9)+-parseInt(_0x197feb(0xab))/0xa*(parseInt(_0x197feb(0xa7))/0xb)+-parseInt(_0x197feb(0xb7))/0xc;if(_0x5f04d7===_0x4ce2e5)break;else _0xb7bc9f['push'](_0xb7bc9f['shift']());}catch(_0x500adc){_0xb7bc9f['push'](_0xb7bc9f['shift']());}}}(a77_0x28a4,0xddd1c));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x14b6f0,_0x118b64,_0x5cb5d6){const _0x536c9d=a77_0x55fd,_0x3ccc8d=buildConfirmationContext(_0x14b6f0,_0x118b64,_0x5cb5d6),_0x5f24f6=[_0x536c9d(0xaa)+_0x3ccc8d[_0x536c9d(0xbd)]];return _0x3ccc8d[_0x536c9d(0xc1)]&&_0x5f24f6[_0x536c9d(0xb6)](_0x536c9d(0xaf)+_0x3ccc8d[_0x536c9d(0xc1)]),_0x3ccc8d['affectedRecords']&&_0x5f24f6[_0x536c9d(0xb6)](_0x536c9d(0xbe)+_0x3ccc8d['affectedRecords']),_0x5f24f6[_0x536c9d(0xb6)](_0x536c9d(0xbc)),_0x5f24f6;}export function reconstructCommandArgv(_0x7cc0b5,_0x9b009c){const _0x1d6599=a77_0x55fd,_0x621a8d=[CLI_BIN_NAME,_0x7cc0b5[_0x1d6599(0xb5)],_0x7cc0b5[_0x1d6599(0xbf)]];for(const [_0x2b5a22,_0x2e6a25]of Object[_0x1d6599(0xa4)](_0x9b009c)){if(_0x2e6a25===!![])_0x621a8d[_0x1d6599(0xb6)]('--'+_0x2b5a22);else _0x2e6a25!==![]&&_0x2e6a25!==undefined&&_0x2e6a25!==''&&_0x621a8d[_0x1d6599(0xb6)]('--'+_0x2b5a22+'\x20'+JSON[_0x1d6599(0xb4)](_0x2e6a25));}return _0x621a8d[_0x1d6599(0xb6)](_0x1d6599(0xc0)),_0x621a8d[_0x1d6599(0xb2)]('\x20');}function buildConfirmationContext(_0x4de509,_0x273385,_0x49d159){const _0x3cc9cb=a77_0x55fd,_0x4f277f=extractAffectedRecords(_0x49d159);return{'commandLabel':_0x273385,'description':_0x4de509[_0x3cc9cb(0xc1)],'affectedRecords':_0x4f277f};}function extractAffectedRecords(_0x464178){const _0x138e77=a77_0x55fd,_0x21362c=[];if(_0x464178[_0x138e77(0xb3)])_0x21362c[_0x138e77(0xb6)](_0x138e77(0xa5)+_0x464178['code']);if(_0x464178['id'])_0x21362c[_0x138e77(0xb6)](_0x138e77(0xa9)+_0x464178['id']);if(_0x464178[_0x138e77(0xad)])_0x21362c[_0x138e77(0xb6)](_0x138e77(0xc2)+_0x464178[_0x138e77(0xad)]);if(_0x464178[_0x138e77(0xac)])_0x21362c[_0x138e77(0xb6)](_0x138e77(0xb8)+_0x464178[_0x138e77(0xac)]);return _0x21362c[_0x138e77(0xa3)]>0x0?_0x21362c['join'](',\x20'):undefined;}
@@ -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(_0x41179b,_0x267d2f){const _0x19aef3=a78_0x247b,_0x1da528=_0x41179b();while(!![]){try{const _0x5ba953=-parseInt(_0x19aef3(0x1ee))/0x1+parseInt(_0x19aef3(0x1f4))/0x2*(-parseInt(_0x19aef3(0x1ef))/0x3)+parseInt(_0x19aef3(0x1fa))/0x4*(-parseInt(_0x19aef3(0x1f1))/0x5)+-parseInt(_0x19aef3(0x1f8))/0x6*(-parseInt(_0x19aef3(0x1f0))/0x7)+parseInt(_0x19aef3(0x1ea))/0x8+-parseInt(_0x19aef3(0x1f7))/0x9*(-parseInt(_0x19aef3(0x1f9))/0xa)+-parseInt(_0x19aef3(0x1eb))/0xb*(-parseInt(_0x19aef3(0x1f6))/0xc);if(_0x5ba953===_0x267d2f)break;else _0x1da528['push'](_0x1da528['shift']());}catch(_0x53f1f2){_0x1da528['push'](_0x1da528['shift']());}}}(a78_0x5145,0x90612));function a78_0x247b(_0x14c22e,_0x16396e){_0x14c22e=_0x14c22e-0x1ea;const _0x514542=a78_0x5145();let _0x247b01=_0x514542[_0x14c22e];return _0x247b01;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x582e03){const _0x1c55f7=a78_0x247b;if(_0x582e03 instanceof LovrabetError)return CliErrors[_0x1c55f7(0x1ec)](userFacingLovrabetMessage(_0x582e03));return _0x582e03;}function a78_0x5145(){const _0x7334e7=['4vKprbC','message','24cHmALG','9tHSTtV','2074818LQWmGc','2601690ZZyPXm','996RcqYqz','6819160GAoVLR','5579783sVcyxh','validation','trim','896044yfgOII','1232787dMYtyQ','7ziENfQ','3285nmYKVa','stringify','string'];a78_0x5145=function(){return _0x7334e7;};return a78_0x5145();}function userFacingLovrabetMessage(_0x5b9c11){const _0x5817b=a78_0x247b,_0x1d896a=_0x5b9c11['description'];if(_0x1d896a!==undefined&&_0x1d896a!==null){if(typeof _0x1d896a===_0x5817b(0x1f3)&&_0x1d896a[_0x5817b(0x1ed)]())return _0x1d896a[_0x5817b(0x1ed)]();try{return JSON[_0x5817b(0x1f2)](_0x1d896a);}catch{}}return _0x5b9c11[_0x5817b(0x1f5)];}
@@ -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_0x4109b1=a79_0x106d;(function(_0x512fc6,_0x509d99){const _0x5c838c=a79_0x106d,_0x4f16ed=_0x512fc6();while(!![]){try{const _0x3eacc7=parseInt(_0x5c838c(0x9a))/0x1*(-parseInt(_0x5c838c(0x79))/0x2)+parseInt(_0x5c838c(0x89))/0x3+parseInt(_0x5c838c(0x6e))/0x4*(parseInt(_0x5c838c(0x80))/0x5)+-parseInt(_0x5c838c(0x8a))/0x6+parseInt(_0x5c838c(0x84))/0x7*(-parseInt(_0x5c838c(0x72))/0x8)+parseInt(_0x5c838c(0x93))/0x9*(parseInt(_0x5c838c(0x7e))/0xa)+-parseInt(_0x5c838c(0x98))/0xb;if(_0x3eacc7===_0x509d99)break;else _0x4f16ed['push'](_0x4f16ed['shift']());}catch(_0x126511){_0x4f16ed['push'](_0x4f16ed['shift']());}}}(a79_0x35cf,0x870ae));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';function a79_0x35cf(){const _0x4ba1c6=['appcode\x20\x22','production','5115781DjETFq','rawFlags','18608ZyoLlL','currentApp','cancelled','pageSize','.appcode\x20to\x20','\x20\x20To\x20proceed:\x20','requiresAuth','_notice','APPCODE','error','catch','appcode','trim','appCodeSource','string','name','execute','accessKey','appCode','resolve','env','local-alias','\x20or\x20pass\x20','108oTaQDl','doctor','validation','defaultVerbose','15568OJCaym','pretty','filter','newConfigFileName','items','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','object','90rUhofY','Unknown\x20app:\x20','includes','../core/api-client.js','service','10CcDNBp','ClientAk','159185tDbzGc','verbose','app','../core/sdk-client.js','574gnWLJi','command','Run\x20`','Set\x20accessKey\x20in\x20','isNonInteractive','1456971UFITdZ','625956gcOAza','defaultApp','map','nonInteractive','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','update','requiresAppCode','ACCESS_KEY','../commands/app/remote-source.js','6967863GpWiNT','defaultPageSize','mergedCli'];a79_0x35cf=function(){return _0x4ba1c6;};return a79_0x35cf();}export function resolveAuthMode(_0x4e83ab){const _0x1e55f5=a79_0x106d;return void _0x4e83ab,AUTH_MODE[_0x1e55f5(0x7f)];}export function createPipelineEnv(_0x37a8a5,_0x6d1dbe){const _0x37ffd3=a79_0x106d,_0x4c7e25=typeof _0x6d1dbe[_0x37ffd3(0x82)]===_0x37ffd3(0xa8)&&_0x6d1dbe[_0x37ffd3(0x82)][_0x37ffd3(0xa6)]();return{'rawFlags':_0x6d1dbe,'appCode':_0x37a8a5[_0x37ffd3(0x69)]||productEnv(_0x37ffd3(0xa2))||(_0x4c7e25?undefined:readAppCodeFromConfig()),'appCodeSource':_0x37a8a5[_0x37ffd3(0xa7)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x6d1dbe),'defaultFormat':_0x37a8a5['format'],'defaultPageSize':_0x37a8a5[_0x37ffd3(0x9d)],'defaultVerbose':_0x37a8a5[_0x37ffd3(0x81)],'riskLevel':_0x37a8a5['riskLevel'],'accessKey':_0x37a8a5['accessKey'],'env':_0x37a8a5[_0x37ffd3(0x6b)],'mergedCli':{'defaultApp':_0x37a8a5[_0x37ffd3(0x8b)],'currentApp':_0x37a8a5[_0x37ffd3(0x9b)],'appCode':_0x37a8a5[_0x37ffd3(0x69)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a79_0x4109b1(0x74)](_0x59dee3=>PIPELINE_FLAG_NAMES['has'](_0x59dee3[a79_0x4109b1(0xa9)]))[a79_0x4109b1(0x8c)](({name:_0x345e84,type:_0x1839a4,description:_0x20e209})=>({'name':_0x345e84,'type':_0x1839a4,'description':_0x20e209})),'formatOutput':formatOutput,'getCommandLabel'(_0x5d5ee4){const _0x1d5fee=a79_0x4109b1;return CLI_BIN_NAME+'\x20'+_0x5d5ee4[_0x1d5fee(0x7d)]+'\x20'+_0x5d5ee4[_0x1d5fee(0x85)];},'riskPolicy':{'onViolation'(_0x662a97){const _0x335f10=a79_0x4109b1;console[_0x335f10(0xa3)](_0x662a97);},'createError'(_0x1357b8){const _0x56ef7e=a79_0x4109b1;return CliErrors[_0x56ef7e(0x9c)](_0x1357b8);}},async 'prepare'(_0x1119a4,_0x55c524){const _0x49641e=a79_0x4109b1,_0x23b392=resolveAuthMode(_0x55c524);if(_0x1119a4[_0x49641e(0xa0)]!==![]){if(!_0x55c524[_0x49641e(0x68)])throw CliErrors['authRequired'](_0x49641e(0x87)+PRODUCT_CONFIG[_0x49641e(0x75)]+_0x49641e(0x6d)+productEnvName(_0x49641e(0x91))+'.');const {setActiveAK:_0x4bbba1}=await import(_0x49641e(0x7c));_0x4bbba1(_0x55c524[_0x49641e(0x68)]);}let _0x81e9c8='';if(_0x1119a4[_0x49641e(0x90)]!==![]){_0x81e9c8=_0x55c524[_0x49641e(0x69)]??'',_0x81e9c8=await resolveExplicitAppName(_0x1119a4,_0x55c524,_0x81e9c8);if(!_0x81e9c8){await assertSelectedAppNameIsRuntimeAccessible(_0x1119a4,_0x55c524);throw CliErrors['configMissing'](_0x49641e(0x77)+PRODUCT_CONFIG[_0x49641e(0x75)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1119a4,_0x55c524,_0x81e9c8);}if(_0x81e9c8){const {initSdkClient:_0x289f31}=await import(_0x49641e(0x83));_0x289f31({'appCode':_0x81e9c8,'env':_0x55c524[_0x49641e(0x6b)]??'production','accessKey':_0x55c524['accessKey'],'authMode':_0x23b392});}return{'defaults':{'booleans':{'verbose':_0x55c524[_0x49641e(0x71)]},'numbers':{'pagesize':_0x55c524[_0x49641e(0x94)]}},'extras':{'appCode':_0x81e9c8,'cookie':'','apiDomain':_0x55c524['apiDomain'],'apiDir':'','accessKey':_0x55c524[_0x49641e(0x68)],'envName':_0x55c524[_0x49641e(0x6b)],'mergedCli':_0x55c524['mergedCli']}};},async 'confirmHighRisk'({def:_0x1fd377,env:_0xe043df,flags:_0x1727ca,commandLabel:_0x4a05fe}){const _0x2baf73=a79_0x4109b1;if(_0xe043df[_0x2baf73(0x88)]){const _0xabd903=reconstructCommandArgv(_0x1fd377,_0x1727ca);throw CliErrors[_0x2baf73(0x70)]('High-risk\x20operation\x20`'+_0x4a05fe+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x2baf73(0x9f)+_0xabd903));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1fd377,_0x4a05fe,_0x1727ca),'createCancelledError':_0x4c774f=>CliErrors[_0x2baf73(0x9c)](_0x4c774f)});},'mapDryRunError'(_0x163d6d){return mapUserFacingExecuteError(_0x163d6d);},'mapExecuteError'(_0x18aa7c){return mapUserFacingExecuteError(_0x18aa7c);},async 'finalize'(){const _0x363365=a79_0x4109b1,{clearActiveAK:_0x5012a1}=await import(_0x363365(0x7c));_0x5012a1();}};async function resolveExplicitAppName(_0x43e50e,_0x591270,_0x1f7478){const _0x2520e7=a79_0x4109b1;if(_0x43e50e['requiresAppCode']===![])return _0x1f7478;const _0x1a3f90=typeof _0x591270[_0x2520e7(0x99)]['app']==='string'?_0x591270[_0x2520e7(0x99)]['app'][_0x2520e7(0xa6)]():'';if(!_0x1a3f90)return _0x1f7478;const _0xef24b4=typeof _0x591270[_0x2520e7(0x99)][_0x2520e7(0xa5)]==='string'&&_0x591270[_0x2520e7(0x99)]['appcode'][_0x2520e7(0xa6)]()||productEnv(_0x2520e7(0xa2));if(_0xef24b4||_0x591270[_0x2520e7(0xa7)]===_0x2520e7(0x6c))return _0x1f7478;const {getRemoteAppList:_0x2372e3}=await import('../commands/app/remote-source.js'),_0x55973a=await _0x2372e3({'env':_0x591270['env']??'production','accessKey':_0x591270[_0x2520e7(0x68)]}),_0x4308ad=findAppByName(_0x55973a['items'],_0x1a3f90);if(_0x4308ad&&!isRuntimeAccessibleApp(_0x4308ad))throw runtimeInaccessibleAppError(_0x4308ad,'\x22'+_0x1a3f90+'\x22');const _0x2cdef8=_0x4308ad?.[_0x2520e7(0x69)]?.['trim']();if(_0x2cdef8)return _0x2cdef8;throw CliErrors[_0x2520e7(0x70)](_0x2520e7(0x7a)+_0x1a3f90,_0x2520e7(0x86)+CLI_BIN_NAME+_0x2520e7(0x8e)+_0x1a3f90+_0x2520e7(0x9e)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xad6d58,_0x388528){const _0x10a594=a79_0x4109b1;if(_0xad6d58['requiresAppCode']===![]||!_0x388528['accessKey'])return;const _0x11ccfa=(typeof _0x388528[_0x10a594(0x99)][_0x10a594(0x82)]==='string'&&_0x388528['rawFlags'][_0x10a594(0x82)][_0x10a594(0xa6)]()?_0x388528['rawFlags']['app']:_0x388528[_0x10a594(0x95)]?.[_0x10a594(0x9b)]??_0x388528['mergedCli']?.['defaultApp'])?.[_0x10a594(0xa6)]();if(!_0x11ccfa)return;const {getRemoteAppList:_0x4be547}=await import(_0x10a594(0x92)),_0x2d0f9a=await _0x4be547({'env':_0x388528[_0x10a594(0x6b)]??_0x10a594(0x97),'accessKey':_0x388528[_0x10a594(0x68)]}),_0x2476c9=findAppByName(_0x2d0f9a[_0x10a594(0x76)],_0x11ccfa);if(_0x2476c9&&!isRuntimeAccessibleApp(_0x2476c9))throw runtimeInaccessibleAppError(_0x2476c9,'\x22'+_0x11ccfa+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5cf64f,_0xa5b7d1,_0x20722d){const _0x2e3dd2=a79_0x4109b1;if(_0x5cf64f[_0x2e3dd2(0x90)]===![]||!_0xa5b7d1[_0x2e3dd2(0x68)])return;const {getRemoteAppList:_0x218a78}=await import(_0x2e3dd2(0x92)),_0x4cba37=await _0x218a78({'env':_0xa5b7d1[_0x2e3dd2(0x6b)]??'production','accessKey':_0xa5b7d1[_0x2e3dd2(0x68)]}),_0x359a6e=findAppByCode(_0x4cba37[_0x2e3dd2(0x76)],_0x20722d);if(_0x359a6e&&!isRuntimeAccessibleApp(_0x359a6e))throw runtimeInaccessibleAppError(_0x359a6e,_0x2e3dd2(0x96)+_0x20722d+'\x22');}export async function runCommand(_0x2e057f,_0x40ed73){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2e057f)?withUpdateNotice(_0x2e057f):_0x2e057f,_0x40ed73,runnerAdapter);}function a79_0x106d(_0x15e9bb,_0x5f3669){_0x15e9bb=_0x15e9bb-0x68;const _0x35cf7c=a79_0x35cf();let _0x106d42=_0x35cf7c[_0x15e9bb];return _0x106d42;}function shouldAttachUpdateNotice(_0x2b66de){const _0x52160a=a79_0x4109b1;return![_0x52160a(0x8f),'schema',_0x52160a(0x6f)][_0x52160a(0x7b)](_0x2b66de[_0x52160a(0x7d)]);}function withUpdateNotice(_0x5b6753){return{..._0x5b6753,async 'execute'(_0x131596){const _0x2af52c=a79_0x106d,_0x5d4205=shouldResolveUpdateNotice(_0x131596)?resolveLatestUpdateNotice()[_0x2af52c(0xa4)](()=>null):Promise[_0x2af52c(0x6a)](null),_0x24cf14=await _0x5b6753[_0x2af52c(0xaa)](_0x131596);return attachUpdateNotice(_0x24cf14,await _0x5d4205);}};}function shouldResolveUpdateNotice(_0x50544a){const _0x266eff=a79_0x4109b1;return _0x50544a['format']===_0x266eff(0x73)&&!_0x50544a[_0x266eff(0x8d)];}function attachUpdateNotice(_0x47ae08,_0x2000e1){const _0xea63d7=a79_0x4109b1;if(!_0x2000e1||!_0x47ae08||typeof _0x47ae08!=='object')return _0x47ae08;const _0x1a5418=_0x47ae08,_0x8599e0=typeof _0x1a5418[_0xea63d7(0xa1)]===_0xea63d7(0x78)&&_0x1a5418['_notice']!==null?_0x1a5418[_0xea63d7(0xa1)]:{};return{..._0x1a5418,'_notice':{..._0x8599e0,'update':_0x2000e1}};}
@@ -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(_0x145bad,_0xc787a2){const _0x39da85=a80_0x43f4,_0x5d6ba6=_0x145bad();while(!![]){try{const _0x247c77=-parseInt(_0x39da85(0xe6))/0x1*(parseInt(_0x39da85(0xe3))/0x2)+-parseInt(_0x39da85(0xde))/0x3+-parseInt(_0x39da85(0xe2))/0x4+-parseInt(_0x39da85(0xd7))/0x5*(parseInt(_0x39da85(0xe1))/0x6)+parseInt(_0x39da85(0xe5))/0x7+parseInt(_0x39da85(0xd9))/0x8+parseInt(_0x39da85(0xd6))/0x9*(parseInt(_0x39da85(0xe7))/0xa);if(_0x247c77===_0xc787a2)break;else _0x5d6ba6['push'](_0x5d6ba6['shift']());}catch(_0x3775e1){_0x5d6ba6['push'](_0x5d6ba6['shift']());}}}(a80_0x1532,0x4cc69));import{buildSchemaPayload as a80_0x40dd35}from'@lovrabet/cli-framework';function a80_0x1532(){const _0x4b0b7b=['required','1936986DCvQME','2306088PJmkVR','34bGNkNi','map','3695517QNHWaJ','4207YKHRnm','180FIbRez','filter','service','292302rgVEJJ','5fjfdky','services','2804184PcXfDr','none','has','../commands/registry.js','commands','533139yRtkKS','requiresAuth'];a80_0x1532=function(){return _0x4b0b7b;};return a80_0x1532();}function a80_0x43f4(_0xd39f33,_0x146330){_0xd39f33=_0xd39f33-0xd5;const _0x15325e=a80_0x1532();let _0x43f426=_0x15325e[_0xd39f33];return _0x43f426;}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 _0x52ad6a=a80_0x43f4,{serviceRegistry:_0x283f57,findDefinition:_0x5808a3}=await import(_0x52ad6a(0xdc)),_0x2bf058=new Set(_0x283f57['map'](_0x3ba845=>_0x3ba845['service'])),_0x269f57=listDynamicServiceEntries()[_0x52ad6a(0xe8)](_0x29899a=>!_0x2bf058[_0x52ad6a(0xdb)](_0x29899a[_0x52ad6a(0xd5)])),_0x40df7b=a80_0x40dd35({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x283f57,..._0x269f57],'buildAllFlags':buildAllFlags,'findDefinition':(_0xebaf2e,_0x22c97e)=>_0x5808a3(_0xebaf2e,_0x22c97e)??findDynamicServiceDefinition(_0xebaf2e,_0x22c97e)});return normalizeSchemaPayload(_0x40df7b);}function normalizeSchemaPayload(_0x4c84e2){const _0x48fb77=a80_0x43f4;return{..._0x4c84e2,'schemaVersion':0x2,'services':_0x4c84e2[_0x48fb77(0xd8)][_0x48fb77(0xe4)](_0x4a6b35=>({..._0x4a6b35,'commands':_0x4a6b35[_0x48fb77(0xdd)][_0x48fb77(0xe4)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x2846ea){const _0x3c678d=a80_0x43f4,_0x17ee15=_0x2846ea;return{..._0x2846ea,'auth':_0x17ee15['auth']??(_0x2846ea[_0x3c678d(0xdf)]?_0x3c678d(0xe0):_0x3c678d(0xda))};}
@@ -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_0x3c7f(_0x16d553,_0x424e7f){_0x16d553=_0x16d553-0x160;var _0x136013=a81_0x1360();var _0x3c7fcf=_0x136013[_0x16d553];return _0x3c7fcf;}(function(_0x1ae6c7,_0xbcb984){var _0x4556c8=a81_0x3c7f,_0x2b48b5=_0x1ae6c7();while(!![]){try{var _0x31274a=-parseInt(_0x4556c8(0x167))/0x1+parseInt(_0x4556c8(0x162))/0x2+-parseInt(_0x4556c8(0x165))/0x3+-parseInt(_0x4556c8(0x166))/0x4+parseInt(_0x4556c8(0x168))/0x5*(parseInt(_0x4556c8(0x160))/0x6)+parseInt(_0x4556c8(0x163))/0x7+-parseInt(_0x4556c8(0x161))/0x8*(-parseInt(_0x4556c8(0x164))/0x9);if(_0x31274a===_0xbcb984)break;else _0x2b48b5['push'](_0x2b48b5['shift']());}catch(_0x41a921){_0x2b48b5['push'](_0x2b48b5['shift']());}}}(a81_0x1360,0x19112));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a81_0x1360(){var _0x471c1b=['3287qjZSoB','25660jFBOlQ','180BJpWVM','99104kGGARJ','33876tlntlU','119469oTyOTK','36UKqbSx','196158BNWiiO','264680vaTTXv'];a81_0x1360=function(){return _0x471c1b;};return a81_0x1360();}
@@ -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_0x39db34=a82_0x2927;(function(_0x3a4263,_0x395f92){const _0x5a01a7=a82_0x2927,_0x32e68d=_0x3a4263();while(!![]){try{const _0x1df720=-parseInt(_0x5a01a7(0x153))/0x1*(parseInt(_0x5a01a7(0x157))/0x2)+parseInt(_0x5a01a7(0x15b))/0x3*(parseInt(_0x5a01a7(0x15d))/0x4)+-parseInt(_0x5a01a7(0x159))/0x5*(-parseInt(_0x5a01a7(0x15c))/0x6)+-parseInt(_0x5a01a7(0x160))/0x7*(parseInt(_0x5a01a7(0x15a))/0x8)+parseInt(_0x5a01a7(0x155))/0x9+-parseInt(_0x5a01a7(0x15e))/0xa+-parseInt(_0x5a01a7(0x15f))/0xb*(-parseInt(_0x5a01a7(0x156))/0xc);if(_0x1df720===_0x395f92)break;else _0x32e68d['push'](_0x32e68d['shift']());}catch(_0x173d94){_0x32e68d['push'](_0x32e68d['shift']());}}}(a82_0x35a3,0xcbb67));function a82_0x2927(_0x42a4ce,_0xa96caa){_0x42a4ce=_0x42a4ce-0x153;const _0x35a3c1=a82_0x35a3();let _0x292776=_0x35a3c1[_0x42a4ce];return _0x292776;}export const VERSION=a82_0x39db34(0x158);export const GIT_TAG='v2.1.4';export const GIT_COMMIT='c583916';export const BUILD_TIME=a82_0x39db34(0x154);function a82_0x35a3(){const _0xd89465=['6mSimJO','3288wqLPir','422790iDxsot','13838CMhHNc','6713tRVlqF','3xThIeI','2026-07-04T08:45:51.363Z','11887470QPeIoO','2508OkTzjT','748742FNofis','2.1.5','5113415kYviOh','12768NBlOik','3372XAldwg'];a82_0x35a3=function(){return _0xd89465;};return a82_0x35a3();}
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_0x365d(){const _0x287387=['3180XlIpYZ','26AjWGnz','31028592SrnXwg','9PdIPsK','515558rClShn','green','360NEvnZR','3HXTMaI','4107000bIkqge','42116JkhDNU','6006955bhNtIj','column','44HAfMhE','\x20--help','2527oCmTLZ','3689210IYQtAb','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20'];a83_0x365d=function(){return _0x287387;};return a83_0x365d();}(function(_0x3cc425,_0x104efe){const _0x4eac8d=a83_0x8502,_0x25b0d4=_0x3cc425();while(!![]){try{const _0xa0d654=parseInt(_0x4eac8d(0x17d))/0x1*(-parseInt(_0x4eac8d(0x17a))/0x2)+parseInt(_0x4eac8d(0x17c))/0x3*(-parseInt(_0x4eac8d(0x17f))/0x4)+-parseInt(_0x4eac8d(0x180))/0x5+parseInt(_0x4eac8d(0x176))/0x6*(-parseInt(_0x4eac8d(0x172))/0x7)+parseInt(_0x4eac8d(0x17e))/0x8*(parseInt(_0x4eac8d(0x179))/0x9)+-parseInt(_0x4eac8d(0x173))/0xa*(parseInt(_0x4eac8d(0x182))/0xb)+-parseInt(_0x4eac8d(0x178))/0xc*(-parseInt(_0x4eac8d(0x177))/0xd);if(_0xa0d654===_0x104efe)break;else _0x25b0d4['push'](_0x25b0d4['shift']());}catch(_0x1201fe){_0x25b0d4['push'](_0x25b0d4['shift']());}}}(a83_0x365d,0xbe541));import{jsx as a83_0x258d12,jsxs as a83_0x53d3ac}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_0x8502(_0x5aabda,_0x959d98){_0x5aabda=_0x5aabda-0x172;const _0x365d35=a83_0x365d();let _0x850203=_0x365d35[_0x5aabda];return _0x850203;}export function Help(){const _0x6bd70d=a83_0x8502,{exit:_0x399529}=useApp();return useEffect(()=>{_0x399529();},[_0x399529]),a83_0x53d3ac(Box,{'flexDirection':_0x6bd70d(0x181),'marginTop':0x1,'marginBottom':0x1,'children':[a83_0x258d12(Box,{'children':a83_0x258d12(Text,{'bold':!![],'color':_0x6bd70d(0x17b),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x53d3ac(Box,{'marginTop':0x1,'children':[a83_0x258d12(Text,{'dimColor':!![],'children':_0x6bd70d(0x175)}),a83_0x258d12(Text,{'bold':!![],'color':_0x6bd70d(0x17b),'children':CLI_BIN_NAME+_0x6bd70d(0x183)}),a83_0x258d12(Text,{'dimColor':!![],'children':_0x6bd70d(0x174)})]})]});}
@@ -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 a84_0xb691(_0x14315b,_0x8fd609){_0x14315b=_0x14315b-0x1bd;const _0x336795=a84_0x3367();let _0xb6919c=_0x336795[_0x14315b];return _0xb6919c;}const a84_0x58a61b=a84_0xb691;(function(_0x4b8a68,_0x3d7b54){const _0x45deda=a84_0xb691,_0x44f1a1=_0x4b8a68();while(!![]){try{const _0x5d22ec=parseInt(_0x45deda(0x1c0))/0x1*(-parseInt(_0x45deda(0x1be))/0x2)+-parseInt(_0x45deda(0x1c2))/0x3*(parseInt(_0x45deda(0x1bf))/0x4)+-parseInt(_0x45deda(0x1ce))/0x5+parseInt(_0x45deda(0x1c1))/0x6+parseInt(_0x45deda(0x1c5))/0x7+-parseInt(_0x45deda(0x1d0))/0x8+parseInt(_0x45deda(0x1ca))/0x9;if(_0x5d22ec===_0x3d7b54)break;else _0x44f1a1['push'](_0x44f1a1['shift']());}catch(_0x52d39d){_0x44f1a1['push'](_0x44f1a1['shift']());}}}(a84_0x3367,0x515f9));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a84_0x4b9118}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a84_0x4b9118;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a84_0x58a61b(0x1c4)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x1758ce,_0x5600fa=LOVRABET_SKILL_SOURCE,_0x18a23c){const _0x324c32=a84_0x58a61b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5543a5=_0x18a23c?.[_0x324c32(0x1c9)]??'inherit',_0x350f07=resolveNpmBin('npx'),_0x147b3d=[_0x324c32(0x1bd),'add',_0x5600fa,'-g','-y'],_0x498893=[_0x350f07,..._0x147b3d][_0x324c32(0x1cd)]('\x20');console[_0x324c32(0x1d1)]('*\x20'+_0x498893);const _0x59f045=spawnSync(_0x350f07,_0x147b3d,{'cwd':_0x1758ce,'stdio':_0x5543a5,'env':process.env,'shell':![]});if(_0x59f045[_0x324c32(0x1c8)]===0x0)return{'ok':!![],'status':0x0};let _0x5c26e2=_0x324c32(0x1c7)+(_0x59f045[_0x324c32(0x1c8)]??_0x324c32(0x1c6));if(_0x5543a5==='pipe'){const _0x25c8ee=_0x59f045[_0x324c32(0x1cf)]?_0x59f045[_0x324c32(0x1cf)][_0x324c32(0x1c3)]()[_0x324c32(0x1cc)]():'',_0xbc3b4c=_0x59f045[_0x324c32(0x1cb)]?_0x59f045[_0x324c32(0x1cb)]['toString']()[_0x324c32(0x1cc)]():'';if(_0x25c8ee)_0x5c26e2=_0x25c8ee;else{if(_0xbc3b4c)_0x5c26e2=_0xbc3b4c;}}return{'ok':![],'status':_0x59f045[_0x324c32(0x1c8)]??null,'error':_0x5c26e2};}function a84_0x3367(){const _0x4501c1=['log','skills','8bEIWxG','580gBHDNB','93454NTiXeY','2672322tjzezN','5685KJSyGt','toString','skipNpxSkillsEnvSuffix','423745pPboGi','unknown','exit\x20','status','stdio','9962064AkzYPR','stdout','trim','join','1229815rWLbtp','stderr','3079672yYtTJD'];a84_0x3367=function(){return _0x4501c1;};return a84_0x3367();}
@@ -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
+ function a85_0x36c0(){const _0x494769=['24xUHPlw','SKILL.md','build','.git','10fwVXxp','351275YhRNFu','3924990sNIphC','.turbo','216198OyavFm','.svn','4xSSqlz','1370382owLMSm','.cache','3238176PfVLgb','152258JHxqqK','coverage','.hg','lovrabet.skill.json','.DS_Store','607201UCUrpC'];a85_0x36c0=function(){return _0x494769;};return a85_0x36c0();}const a85_0xb5ef80=a85_0x4f5e;(function(_0x299a80,_0xf66bb5){const _0x3dd1dd=a85_0x4f5e,_0x31077b=_0x299a80();while(!![]){try{const _0x5ef1e1=-parseInt(_0x3dd1dd(0x1b1))/0x1+parseInt(_0x3dd1dd(0x1ab))/0x2*(parseInt(_0x3dd1dd(0x1b7))/0x3)+parseInt(_0x3dd1dd(0x1ad))/0x4*(parseInt(_0x3dd1dd(0x1bc))/0x5)+-parseInt(_0x3dd1dd(0x1ae))/0x6+-parseInt(_0x3dd1dd(0x1b6))/0x7+-parseInt(_0x3dd1dd(0x1b0))/0x8+-parseInt(_0x3dd1dd(0x1bd))/0x9*(-parseInt(_0x3dd1dd(0x1bb))/0xa);if(_0x5ef1e1===_0xf66bb5)break;else _0x31077b['push'](_0x31077b['shift']());}catch(_0x3a8878){_0x31077b['push'](_0x31077b['shift']());}}}(a85_0x36c0,0x79d2b));export const METADATA_FILE=a85_0xb5ef80(0x1b4);export const SKILL_FILE=a85_0xb5ef80(0x1b8);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;function a85_0x4f5e(_0x26bf40,_0x1a4bce){_0x26bf40=_0x26bf40-0x1aa;const _0x36c0d0=a85_0x36c0();let _0x4f5e31=_0x36c0d0[_0x26bf40];return _0x4f5e31;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0xb5ef80(0x1b5)]);export const IGNORED_DIR_NAMES=new Set([a85_0xb5ef80(0x1ba),a85_0xb5ef80(0x1b3),a85_0xb5ef80(0x1ac),'node_modules','.next','dist',a85_0xb5ef80(0x1b9),a85_0xb5ef80(0x1b2),a85_0xb5ef80(0x1aa),a85_0xb5ef80(0x1af)]);
@@ -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(_0x126e28,_0x3dcf87){const _0xe602f0=a86_0x44a0,_0x184c89=_0x126e28();while(!![]){try{const _0x9463e9=parseInt(_0xe602f0(0x90))/0x1*(-parseInt(_0xe602f0(0x85))/0x2)+parseInt(_0xe602f0(0x95))/0x3*(-parseInt(_0xe602f0(0x91))/0x4)+-parseInt(_0xe602f0(0x93))/0x5+parseInt(_0xe602f0(0x8d))/0x6*(parseInt(_0xe602f0(0x87))/0x7)+parseInt(_0xe602f0(0x8a))/0x8*(parseInt(_0xe602f0(0x92))/0x9)+-parseInt(_0xe602f0(0x88))/0xa+parseInt(_0xe602f0(0x8b))/0xb*(parseInt(_0xe602f0(0x8c))/0xc);if(_0x9463e9===_0x3dcf87)break;else _0x184c89['push'](_0x184c89['shift']());}catch(_0x52a224){_0x184c89['push'](_0x184c89['shift']());}}}(a86_0x34b6,0xb5cd1));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(_0x34e06d,_0x5c923b){const _0x409b14=a86_0x44a0,_0x29e0f6=normalizeSkillRelativePath(_0x5c923b),_0x339a9f=realOrResolved(_0x34e06d),_0x47e448=resolve(_0x339a9f,..._0x29e0f6[_0x409b14(0x8f)]('/'));if(!isPathInside(_0x47e448,_0x339a9f))throw CliErrors['validation'](_0x409b14(0x82)+_0x5c923b);return ensureNoSymlinkInManagedPath(_0x339a9f,_0x29e0f6),_0x47e448;}export function ensureNoSymlinkInManagedPath(_0x465959,_0x52bb7f){const _0x5a3388=a86_0x44a0;let _0x467039=_0x465959;for(const _0x3d0f42 of _0x52bb7f[_0x5a3388(0x8f)]('/')){_0x467039=resolve(_0x467039,_0x3d0f42);const _0x2a1b90=lstatIfPresent(_0x467039);if(_0x2a1b90?.[_0x5a3388(0x89)]())throw CliErrors[_0x5a3388(0x84)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x52bb7f);}}export function isDanglingSymlink(_0x1ecd1e){const _0x5a4736=a86_0x44a0;try{return lstatSync(_0x1ecd1e)[_0x5a4736(0x89)]();}catch{return![];}}function a86_0x34b6(){const _0x5117e2=['91kSdjTl','549320oKNOsS','isSymbolicLink','8977048xozIpc','203236diCKcc','852oVdktW','258828doMixX','utf8','split','1169wxgFaL','560SiXsUz','9WmOHVo','2161785SuwKMl','startsWith','17859BdvbMO','from','Unsafe\x20Skill\x20file\x20path:\x20','.tmp','validation','1590UGxCUb','stringify'];a86_0x34b6=function(){return _0x5117e2;};return a86_0x34b6();}export function resolveSymlinkTarget(_0x20ee7e){const _0x216c2b=readlinkSync(_0x20ee7e);return isAbsolute(_0x216c2b)?_0x216c2b:resolve(dirname(_0x20ee7e),_0x216c2b);}export function isPathInside(_0x5ef44d,_0x4dd00a){const _0x12a2a7=a86_0x44a0,_0x77bb37=_0x5ef44d['endsWith'](sep)?_0x5ef44d:''+_0x5ef44d+sep,_0x35f9b0=_0x4dd00a['endsWith'](sep)?_0x4dd00a:''+_0x4dd00a+sep;return _0x5ef44d===_0x4dd00a||_0x77bb37[_0x12a2a7(0x94)](_0x35f9b0);}export function realOrResolved(_0x574a77){try{return realpathSync(_0x574a77);}catch{return resolve(_0x574a77);}}function a86_0x44a0(_0x148f64,_0xf5824a){_0x148f64=_0x148f64-0x82;const _0x34b6f9=a86_0x34b6();let _0x44a083=_0x34b6f9[_0x148f64];return _0x44a083;}export function lstatIfPresent(_0x46f213){try{return lstatSync(_0x46f213);}catch{return undefined;}}export function writeTextAtomic(_0x516cce,_0x4e6dc6,_0x485bd2){const _0x1cab20=a86_0x44a0;writeBytesAtomic(_0x516cce,Buffer[_0x1cab20(0x96)](_0x4e6dc6,_0x1cab20(0x8e)),_0x485bd2);}export function writeBytesAtomic(_0x21c1c1,_0x561465,_0x4bbf85){const _0x331624=a86_0x44a0,_0x3b72ca=_0x21c1c1+_0x331624(0x83);try{writeFileSync(_0x3b72ca,_0x561465,{'mode':_0x4bbf85}),renameSync(_0x3b72ca,_0x21c1c1);}catch(_0x178eb2){try{rmSync(_0x3b72ca,{'force':!![]});}catch{}throw _0x178eb2;}}export function writeJsonAtomic(_0x1bd5b5,_0x3615cc){const _0x12e5e9=a86_0x44a0;writeTextAtomic(_0x1bd5b5,JSON[_0x12e5e9(0x86)](_0x3615cc,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(_0x1a1cba,_0x4b23e9){const _0x166912=a87_0x5bee,_0x41e5ab=_0x1a1cba();while(!![]){try{const _0xa25ea2=parseInt(_0x166912(0x167))/0x1*(parseInt(_0x166912(0x168))/0x2)+-parseInt(_0x166912(0x164))/0x3+parseInt(_0x166912(0x163))/0x4+parseInt(_0x166912(0x171))/0x5+parseInt(_0x166912(0x16d))/0x6*(-parseInt(_0x166912(0x170))/0x7)+-parseInt(_0x166912(0x16e))/0x8+parseInt(_0x166912(0x165))/0x9*(parseInt(_0x166912(0x166))/0xa);if(_0xa25ea2===_0x4b23e9)break;else _0x41e5ab['push'](_0x41e5ab['shift']());}catch(_0x170e89){_0x41e5ab['push'](_0x41e5ab['shift']());}}}(a87_0x2932,0xb9b93));function a87_0x5bee(_0x13b957,_0x213f12){_0x13b957=_0x13b957-0x162;const _0x293263=a87_0x2932();let _0x5bee8a=_0x293263[_0x13b957];return _0x5bee8a;}function a87_0x2932(){const _0x2b6939=['6736928aQELHz','hex','7176974HaMcoU','6474530ULIavp','digest','2439640sNpysu','1849644cijsqf','7227891Lfhalq','10objpxP','89459QFtXqs','12XZCgWC','sha256','path','size','update','6YdLKXS'];a87_0x2932=function(){return _0x2b6939;};return a87_0x2932();}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x204e2e){const _0x1662a1=a87_0x5bee;return createHash(_0x1662a1(0x169))[_0x1662a1(0x16c)](_0x204e2e)[_0x1662a1(0x162)](_0x1662a1(0x16f));}export function fileHash(_0x201057){return bufferSha256(fileContent(_0x201057));}export function bufferSha256(_0x5a7777){const _0x2f1380=a87_0x5bee;return createHash(_0x2f1380(0x169))['update'](_0x5a7777)[_0x2f1380(0x162)](_0x2f1380(0x16f));}export function fileTreeHash(_0x5de30c){const _0x2a2924=a87_0x5bee,_0x582b15=createHash(_0x2a2924(0x169));for(const _0x3be58a of normalizeManifestFiles(_0x5de30c)){_0x582b15[_0x2a2924(0x16c)](_0x3be58a[_0x2a2924(0x16a)]),_0x582b15[_0x2a2924(0x16c)]('\x00'),_0x582b15['update'](_0x3be58a[_0x2a2924(0x169)]),_0x582b15[_0x2a2924(0x16c)]('\x00'),_0x582b15[_0x2a2924(0x16c)](String(_0x3be58a[_0x2a2924(0x16b)])),_0x582b15[_0x2a2924(0x16c)]('\x00');}return _0x582b15[_0x2a2924(0x162)](_0x2a2924(0x16f));}
@@ -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(_0x36e6ca,_0x3c36ca){const _0x4f34cd=a88_0x5c00,_0x4158da=_0x36e6ca();while(!![]){try{const _0x44fe47=-parseInt(_0x4f34cd(0x147))/0x1+parseInt(_0x4f34cd(0x140))/0x2+parseInt(_0x4f34cd(0x13a))/0x3+-parseInt(_0x4f34cd(0x144))/0x4*(parseInt(_0x4f34cd(0x149))/0x5)+-parseInt(_0x4f34cd(0x14e))/0x6+-parseInt(_0x4f34cd(0x158))/0x7*(-parseInt(_0x4f34cd(0x165))/0x8)+-parseInt(_0x4f34cd(0x150))/0x9*(-parseInt(_0x4f34cd(0x164))/0xa);if(_0x44fe47===_0x3c36ca)break;else _0x4158da['push'](_0x4158da['shift']());}catch(_0xbeeae4){_0x4158da['push'](_0x4158da['shift']());}}}(a88_0x585c,0xa5c0e));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a88_0x49505a from'fs-extra';import{CliErrors}from'../../errors.js';function a88_0x5c00(_0x57009f,_0x3652f6){_0x57009f=_0x57009f-0x139;const _0x585cfa=a88_0x585c();let _0x5c00ac=_0x585cfa[_0x57009f];return _0x5c00ac;}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_0x49505a;export function linkEffectiveRuntimeSkills(_0x2774cb,_0x286b04,_0x3b1923={}){const _0x2d1d51=a88_0x5c00,_0x5029b5=new Map();for(const _0xfd549c of _0x2774cb){const _0x467f3e=_0xfd549c[_0x2d1d51(0x163)][_0x2d1d51(0x167)];if(!_0x467f3e)continue;const _0x24ffdc=_0x5029b5[_0x2d1d51(0x15e)](_0x467f3e);(!_0x24ffdc||_0xfd549c['scope']===_0x2d1d51(0x154))&&_0x5029b5[_0x2d1d51(0x159)](_0x467f3e,_0xfd549c);}const _0x2d0bb3=[],_0x494531=resolveSkillSyncPaths(_0x3b1923);for(const _0x1c4248 of _0x5029b5['values']()){const _0x5ea88a=requireSkillCode(_0x1c4248[_0x2d1d51(0x163)]),_0x562336=_0x286b04+'--'+_0x5ea88a;for(const _0x5c6924 of[_0x494531[_0x2d1d51(0x152)],_0x494531[_0x2d1d51(0x13c)]]){_0x2d0bb3['push'](ensureManagedSymlink(resolve(_0x5c6924,_0x562336),_0x1c4248[_0x2d1d51(0x13b)],_0x494531[_0x2d1d51(0x168)]));}}return _0x2d0bb3;}export function pruneStaleRuntimeSkillLinks(_0x2e2fad,_0x59cc33,_0x5c1f41={},_0x4151e3){const _0x20c11d=a88_0x5c00,_0x2aacf3=resolveSkillSyncPaths(_0x5c1f41),_0x4c9b27=new Set([..._0x59cc33][_0x20c11d(0x142)](_0x34b9ce=>_0x34b9ce['trim']())[_0x20c11d(0x169)](Boolean)),_0x2e4076=_0x4151e3?new Set([..._0x4151e3][_0x20c11d(0x142)](_0x2f16d8=>_0x2f16d8['trim']())[_0x20c11d(0x169)](Boolean)):undefined,_0x5c8478=[];for(const _0x3b4cce of[_0x2aacf3[_0x20c11d(0x152)],_0x2aacf3[_0x20c11d(0x13c)]]){for(const _0xf8f2d8 of managedAppSkillLinkPaths(_0x3b4cce,_0x2e2fad)){const _0x39aa17=basename(_0xf8f2d8)[_0x20c11d(0x156)]((_0x2e2fad+'--')[_0x20c11d(0x166)]);if(_0x2e4076&&!_0x2e4076[_0x20c11d(0x15b)](_0x39aa17))continue;if(_0x4c9b27[_0x20c11d(0x15b)](_0x39aa17))continue;_0x5c8478[_0x20c11d(0x15d)](removeManagedSkillLink(_0xf8f2d8,_0x2aacf3[_0x20c11d(0x168)]));}}return _0x5c8478;}function a88_0x585c(){const _0x50e05f=['dir','claudeSkillsDir','accessKey','scopes','validation','1221792GRQLsR','created','map','skipped','4cHCBOP','contentHash','trim','669893qrkKEj','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','476145TVwvJU','unchanged','name','isSymbolicLink','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','6476520HqiJZm','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','2996271KcqLwB','not-managed-symlink','agentsSkillsDir','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','personal','isDirectory','slice','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','154vbrjOS','set','scope','has','company','push','get','env','appCode','external-symlink','pruneSkillCodes','skill','10ohqjuZ','445872XPFgWm','length','skillCode','managedRoot','filter','activeSkillCodes','metadata-mismatch','removed','1060515UFSkoW'];a88_0x585c=function(){return _0x50e05f;};return a88_0x585c();}export function pruneStaleRuntimeSkillCache(_0x12911f,_0x8d9ab7={}){const _0x354f7e=a88_0x5c00,_0x3c335f=new Set([..._0x12911f[_0x354f7e(0x16a)]][_0x354f7e(0x142)](_0x3099fc=>_0x3099fc[_0x354f7e(0x146)]())['filter'](Boolean)),_0x2ae516=_0x12911f[_0x354f7e(0x162)]?new Set([..._0x12911f[_0x354f7e(0x162)]][_0x354f7e(0x142)](_0x6b96fb=>_0x6b96fb[_0x354f7e(0x146)]())['filter'](Boolean)):undefined,_0x412c71=_0x12911f[_0x354f7e(0x13e)]??[_0x354f7e(0x154),_0x354f7e(0x15c)],_0x414a19=resolve(getRuntimeSkillCacheRoot(_0x12911f[_0x354f7e(0x15f)],_0x12911f[_0x354f7e(0x13d)],_0x8d9ab7),safePathSegment(_0x12911f[_0x354f7e(0x160)],_0x354f7e(0x160))),_0x5eb12c=[];for(const _0x16e64d of _0x412c71){const _0x3b3bcb=resolve(_0x414a19,_0x16e64d);if(!existsSync(_0x3b3bcb))continue;for(const _0x5ad9b5 of readdirSync(_0x3b3bcb,{'withFileTypes':!![]})){if(!_0x5ad9b5[_0x354f7e(0x155)]())continue;const _0xfaef13=_0x5ad9b5[_0x354f7e(0x14b)];if(_0x2ae516&&!_0x2ae516['has'](_0xfaef13))continue;if(_0x3c335f['has'](_0xfaef13))continue;const _0x16cb22=resolve(_0x3b3bcb,_0xfaef13),_0x23d441=readMetadataIfPresent(resolve(_0x16cb22,METADATA_FILE));if(_0x23d441?.['appCode']!==_0x12911f[_0x354f7e(0x160)]||_0x23d441['scope']!==_0x16e64d||_0x23d441[_0x354f7e(0x167)]!==_0xfaef13){_0x5eb12c[_0x354f7e(0x15d)]({'path':_0x16cb22,'action':'skipped','reason':_0x354f7e(0x16b)});continue;}removeSync(_0x16cb22),_0x5eb12c[_0x354f7e(0x15d)]({'path':_0x16cb22,'action':_0x354f7e(0x139)});}}return _0x5eb12c;}export function linkGlobalRuntimeSkills(_0x34885c,_0x26da46={}){const _0x51a289=a88_0x5c00,_0x47111e=resolveSkillSyncPaths(_0x26da46),_0x4031d3=[];for(const _0x48b023 of _0x34885c){if(_0x48b023[_0x51a289(0x15a)]!=='builtin')throw CliErrors[_0x51a289(0x13f)](_0x51a289(0x148)+_0x48b023[_0x51a289(0x15a)]);const _0xd502ad=requireSkillCode(_0x48b023['skill']),_0x51ac86=copyManagedSkillDirectory(_0x48b023[_0x51a289(0x13b)],resolve(_0x47111e[_0x51a289(0x152)],_0xd502ad));_0x4031d3[_0x51a289(0x15d)]({..._0x51ac86,'contentHash':_0x48b023[_0x51a289(0x145)]});}return _0x4031d3;}function ensureManagedSymlink(_0x331725,_0x478401,_0x4651b4){const _0x566bce=a88_0x5c00;mkdirSync(dirname(_0x331725),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x331725)||isDanglingSymlink(_0x331725)){const _0x3d67ca=lstatSync(_0x331725);if(!_0x3d67ca[_0x566bce(0x14c)]())throw CliErrors[_0x566bce(0x13f)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x331725);const _0x1b3652=resolveSymlinkTarget(_0x331725);if(!isPathInside(realOrResolved(_0x1b3652),realOrResolved(_0x4651b4)))throw CliErrors[_0x566bce(0x13f)](_0x566bce(0x14f)+_0x331725);if(realOrResolved(_0x1b3652)===realOrResolved(_0x478401))return{'path':_0x331725,'target':_0x478401,'action':_0x566bce(0x14a)};return unlinkSync(_0x331725),symlinkSync(_0x478401,_0x331725,_0x566bce(0x13b)),{'path':_0x331725,'target':_0x478401,'action':'updated'};}return symlinkSync(_0x478401,_0x331725,_0x566bce(0x13b)),{'path':_0x331725,'target':_0x478401,'action':_0x566bce(0x141)};}function managedAppSkillLinkPaths(_0x2ba314,_0x4f1080){const _0x3feb20=a88_0x5c00;if(!existsSync(_0x2ba314))return[];const _0xb0277=_0x4f1080+'--';return readdirSync(_0x2ba314,{'withFileTypes':!![]})[_0x3feb20(0x169)](_0x3205b1=>_0x3205b1[_0x3feb20(0x14b)]['startsWith'](_0xb0277))['map'](_0x278ade=>resolve(_0x2ba314,_0x278ade[_0x3feb20(0x14b)]));}function removeManagedSkillLink(_0x17fc70,_0x401871){const _0x14d704=a88_0x5c00,_0x1c3437=lstatIfPresent(_0x17fc70);if(!_0x1c3437?.[_0x14d704(0x14c)]())return{'path':_0x17fc70,'action':_0x14d704(0x143),'reason':_0x14d704(0x151)};const _0x40f77e=resolveSymlinkTarget(_0x17fc70);if(!isPathInside(realOrResolved(_0x40f77e),realOrResolved(_0x401871)))return{'path':_0x17fc70,'action':_0x14d704(0x143),'reason':_0x14d704(0x161)};return unlinkSync(_0x17fc70),{'path':_0x17fc70,'action':_0x14d704(0x139)};}export function copyManagedSkillDirectory(_0x876eec,_0x29dfd0){const _0x378146=a88_0x5c00,_0x3a6c03=resolve(_0x29dfd0,METADATA_FILE),_0x157bdc=existsSync(_0x29dfd0);if(_0x157bdc){const _0x192354=lstatSync(_0x29dfd0);if(_0x192354[_0x378146(0x14c)]())throw CliErrors[_0x378146(0x13f)](_0x378146(0x157)+_0x29dfd0);if(!_0x192354[_0x378146(0x155)]())throw CliErrors[_0x378146(0x13f)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x29dfd0);const _0x4763d2=readMetadataIfPresent(_0x3a6c03);if(_0x4763d2?.[_0x378146(0x15a)]!=='builtin')throw CliErrors['validation'](_0x378146(0x153)+_0x29dfd0);}ensureDirSync(dirname(_0x29dfd0));const _0xe03ed8=_0x157bdc?readMetadataIfPresent(_0x3a6c03)?.[_0x378146(0x145)]:undefined,_0x25bc51=readMetadataIfPresent(resolve(_0x876eec,METADATA_FILE))?.[_0x378146(0x145)];return _0x157bdc&&removeSync(_0x29dfd0),copySkillDirectory(_0x876eec,_0x29dfd0),{'path':_0x29dfd0,'target':_0x876eec,'action':!_0x157bdc?_0x378146(0x141):_0xe03ed8===_0x25bc51?'unchanged':'updated'};}function copySkillDirectory(_0x18bf1a,_0x2953cd){copySync(_0x18bf1a,_0x2953cd,{'dereference':![],'overwrite':!![],'filter'(_0x249119){const _0x108644=a88_0x5c00;if(lstatSync(_0x249119)[_0x108644(0x14c)]())throw CliErrors[_0x108644(0x13f)](_0x108644(0x14d)+_0x249119);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(_0x60d3a1,_0x57f7b6){const _0x278664=a89_0x52aa,_0x18b2d5=_0x60d3a1();while(!![]){try{const _0x24378b=-parseInt(_0x278664(0xa1))/0x1*(parseInt(_0x278664(0xc7))/0x2)+parseInt(_0x278664(0xbf))/0x3+parseInt(_0x278664(0xb5))/0x4*(-parseInt(_0x278664(0xb3))/0x5)+parseInt(_0x278664(0xa3))/0x6+-parseInt(_0x278664(0xa5))/0x7*(parseInt(_0x278664(0xb9))/0x8)+parseInt(_0x278664(0xaf))/0x9+parseInt(_0x278664(0xba))/0xa;if(_0x24378b===_0x57f7b6)break;else _0x18b2d5['push'](_0x18b2d5['shift']());}catch(_0x11c19){_0x18b2d5['push'](_0x18b2d5['shift']());}}}(a89_0x25e0,0xb345c));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_0x52aa(_0x2f7a97,_0x433448){_0x2f7a97=_0x2f7a97-0x9d;const _0x25e039=a89_0x25e0();let _0x52aafd=_0x25e039[_0x2f7a97];return _0x52aafd;}function a89_0x25e0(){const _0x2ebc13=['2302768bssFcF','4839170uhZyJD','sort','scopes','trim','link','4312209AyLfxj','skillCode','code','isDirectory','dir','filter','startsWith','builtin','14yXjfAM','push','name','appCode','linkedPath','165107pyhfQo','get','6029994UZuXGc','isArray','28mdjlLX','source','metadataPath','accessKey','tags','scope','includes','values','agentsSkillsDir','isSymbolicLink','8739351PZPHzb','skillMdPath','localeCompare','cacheDir','1825stsPCN','map','9380BWPHsk','claudeSkillsDir','linkedPaths','cache'];a89_0x25e0=function(){return _0x2ebc13;};return a89_0x25e0();}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0xf1dc1c,_0x5b04b5={}){const _0xf9d0db=a89_0x52aa,_0x551ad2=safePathSegment(_0xf1dc1c[_0xf9d0db(0x9f)],'appCode'),_0x3c8a73=normalizeRuntimeSkillScopes(_0xf1dc1c['scopes']),_0xdaacf5=new Set(_0x3c8a73),_0x819cb7=_0xf1dc1c[_0xf9d0db(0xc1)]?.[_0xf9d0db(0xbd)](),_0x58ccb8=new Map(),_0x13958a=resolve(getRuntimeSkillCacheRoot(_0xf1dc1c['env'],_0xf1dc1c[_0xf9d0db(0xa8)],_0x5b04b5),_0x551ad2);for(const _0x36c728 of _0x3c8a73){for(const _0x8e9b3d of localSkillEntryDirs(resolve(_0x13958a,_0x36c728))){collectLocalRuntimeSkill(_0x58ccb8,_0x8e9b3d,{'appCode':_0x551ad2,'scopes':_0xdaacf5,'code':_0x819cb7,'source':_0xf9d0db(0xb8)});}}const _0x2f755b=resolveSkillSyncPaths(_0x5b04b5);for(const _0x16d3d9 of[_0x2f755b[_0xf9d0db(0xad)],_0x2f755b[_0xf9d0db(0xb6)]]){for(const _0x4e805f of localSkillLinkCandidates(_0x16d3d9,_0x551ad2,_0xdaacf5)){collectLocalRuntimeSkill(_0x58ccb8,_0x4e805f,{'appCode':_0x551ad2,'scopes':_0xdaacf5,'code':_0x819cb7,'source':_0xf9d0db(0xbe),'linkedPath':_0x4e805f});}}return Array['from'](_0x58ccb8[_0xf9d0db(0xac)]())[_0xf9d0db(0xbb)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x117105){const _0x18c005=a89_0x52aa;if(!existsSync(_0x117105))return[];return readdirSync(_0x117105,{'withFileTypes':!![]})[_0x18c005(0xc4)](_0x2b097f=>_0x2b097f[_0x18c005(0xc2)]()||_0x2b097f['isSymbolicLink']())['map'](_0x5ddd93=>resolve(_0x117105,_0x5ddd93['name']));}function localSkillLinkCandidates(_0x1e9f67,_0x3c8b0a,_0x347bb0){const _0x5b27fc=a89_0x52aa;if(!existsSync(_0x1e9f67))return[];const _0x48dba3=_0x3c8b0a+'--';return readdirSync(_0x1e9f67,{'withFileTypes':!![]})['filter'](_0x4369e7=>_0x4369e7['isDirectory']()||_0x4369e7[_0x5b27fc(0xae)]())['filter'](_0x83d80f=>_0x83d80f[_0x5b27fc(0x9e)][_0x5b27fc(0xc5)](_0x48dba3)||_0x347bb0['has'](_0x5b27fc(0xc6)))[_0x5b27fc(0xb4)](_0x4867f2=>resolve(_0x1e9f67,_0x4867f2['name']));}function collectLocalRuntimeSkill(_0x1e55e9,_0x15fc79,_0x3104ee){const _0x2c6acb=a89_0x52aa,_0xd8f000=resolve(_0x15fc79,METADATA_FILE),_0x5ad434=readMetadataIfPresent(_0xd8f000);if(!_0x5ad434)return;if(_0x5ad434[_0x2c6acb(0x9f)]!==_0x3104ee[_0x2c6acb(0x9f)])return;if(!isRuntimeSkillScope(_0x5ad434[_0x2c6acb(0xaa)])||!_0x3104ee[_0x2c6acb(0xbc)]['has'](_0x5ad434['scope']))return;const _0x160cb6=_0x5ad434[_0x2c6acb(0xc0)]?.['trim']();if(!_0x160cb6)return;if(_0x3104ee[_0x2c6acb(0xc1)]&&_0x160cb6!==_0x3104ee[_0x2c6acb(0xc1)])return;const _0x2b3ad2=_0x5ad434[_0x2c6acb(0xaa)]+':'+_0x160cb6,_0x491a29=_0x3104ee[_0x2c6acb(0xa0)]?[_0x3104ee[_0x2c6acb(0xa0)]]:[],_0x10d1a8=_0x1e55e9[_0x2c6acb(0xa2)](_0x2b3ad2);if(_0x10d1a8){_0x3104ee[_0x2c6acb(0xa6)]==='cache'&&(_0x10d1a8[_0x2c6acb(0xc3)]=_0x15fc79,_0x10d1a8[_0x2c6acb(0xb2)]=_0x15fc79,_0x10d1a8[_0x2c6acb(0xb0)]=resolve(_0x15fc79,SKILL_FILE),_0x10d1a8[_0x2c6acb(0xa7)]=_0xd8f000);for(const _0x4d8322 of _0x491a29){!_0x10d1a8['linkedPaths'][_0x2c6acb(0xab)](_0x4d8322)&&_0x10d1a8['linkedPaths'][_0x2c6acb(0x9d)](_0x4d8322);}_0x10d1a8[_0x2c6acb(0xb7)]['sort']();return;}_0x1e55e9['set'](_0x2b3ad2,{..._0x5ad434,'tags':Array[_0x2c6acb(0xa4)](_0x5ad434['tags'])?_0x5ad434[_0x2c6acb(0xa9)]:[],'scope':_0x5ad434[_0x2c6acb(0xaa)],'source':'local','dir':_0x15fc79,'cacheDir':_0x3104ee[_0x2c6acb(0xa6)]==='cache'?_0x15fc79:undefined,'skillMdPath':resolve(_0x15fc79,SKILL_FILE),'metadataPath':_0xd8f000,'linkedPaths':_0x491a29});}function compareLocalRuntimeSkills(_0x2ae198,_0x32d5cc){const _0x328181=a89_0x52aa,_0x4d7876={'personal':0x0,'company':0x1,'builtin':0x2};return _0x4d7876[_0x2ae198['scope']]-_0x4d7876[_0x32d5cc['scope']]||_0x2ae198['skillCode'][_0x328181(0xb1)](_0x32d5cc['skillCode'])||_0x2ae198[_0x328181(0xc3)][_0x328181(0xb1)](_0x32d5cc[_0x328181(0xc3)]);}
@@ -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 a90_0xe620(_0x15b1d9,_0x48d3d4){_0x15b1d9=_0x15b1d9-0xbc;const _0x416dfb=a90_0x416d();let _0xe620ef=_0x416dfb[_0x15b1d9];return _0xe620ef;}(function(_0x427268,_0x6e6fbf){const _0x17641d=a90_0xe620,_0x1be18b=_0x427268();while(!![]){try{const _0x57e867=-parseInt(_0x17641d(0xd3))/0x1+parseInt(_0x17641d(0xe4))/0x2+-parseInt(_0x17641d(0xd8))/0x3*(-parseInt(_0x17641d(0xcb))/0x4)+parseInt(_0x17641d(0xcd))/0x5*(parseInt(_0x17641d(0xbe))/0x6)+-parseInt(_0x17641d(0xc9))/0x7+parseInt(_0x17641d(0xdf))/0x8+parseInt(_0x17641d(0xc5))/0x9*(-parseInt(_0x17641d(0xc0))/0xa);if(_0x57e867===_0x6e6fbf)break;else _0x1be18b['push'](_0x1be18b['shift']());}catch(_0x5e574f){_0x1be18b['push'](_0x1be18b['shift']());}}}(a90_0x416d,0xac03a));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';function a90_0x416d(){const _0xb64f39=['sort','75cSIEmu','set','compare','Skill\x20file\x20size\x20is\x20invalid:\x20','path','Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.','isDirectory','4518856XdgHKn','Skill\x20file\x20exceeds\x20size\x20limit:\x20','startsWith','has','utf8','1475366zyhNSr','content','length','Skill\x20file\x20sha256\x20is\x20invalid:\x20','values','toString','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','string','size','1794594ibVpDI','push','713710tgvlvJ','trim','sha256','Unsafe\x20Skill\x20file\x20path:\x20','Skill\x20file\x20path\x20must\x20be\x20text.','117vFoGvZ','from','isFile','replace','3853290AyiQYn','bytes','88744HGlLta','name','15UdrIRL','Duplicate\x20Skill\x20file\x20path:\x20','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','validation','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','localeCompare','571624rDmQXu','toLowerCase','isArray','isSymbolicLink'];a90_0x416d=function(){return _0xb64f39;};return a90_0x416d();}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(_0x480b6a){const _0x597501=a90_0xe620;return _0x480b6a['bytes']??Buffer[_0x597501(0xc6)](_0x480b6a[_0x597501(0xe5)]??'',_0x597501(0xe3));}export function fileText(_0xf41a0){const _0x24c4c7=a90_0xe620;return fileContent(_0xf41a0)[_0x24c4c7(0xe9)](_0x24c4c7(0xe3));}export function normalizeLocalFiles(_0x4a3475){const _0x5169b8=a90_0xe620;if(!Array[_0x5169b8(0xd5)](_0x4a3475)||_0x4a3475['length']===0x0)return[];if(_0x4a3475[_0x5169b8(0xe6)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x5169b8(0xd0)](_0x5169b8(0xd1));const _0x243633=new Map();let _0x553c97=0x0;for(const _0x98e3d2 of _0x4a3475){if(!_0x98e3d2||typeof _0x98e3d2!=='object'||typeof _0x98e3d2[_0x5169b8(0xdc)]!==_0x5169b8(0xbc))throw CliErrors['validation'](_0x5169b8(0xc4));const _0x24ac05=normalizeSkillRelativePath(_0x98e3d2[_0x5169b8(0xdc)]);if(_0x243633[_0x5169b8(0xe2)](_0x24ac05))throw CliErrors[_0x5169b8(0xd0)](_0x5169b8(0xce)+_0x24ac05);if(_0x98e3d2[_0x5169b8(0xca)]!==undefined&&!Buffer['isBuffer'](_0x98e3d2[_0x5169b8(0xca)]))throw CliErrors[_0x5169b8(0xd0)]('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0x24ac05);if(_0x98e3d2[_0x5169b8(0xca)]===undefined&&typeof _0x98e3d2[_0x5169b8(0xe5)]!==_0x5169b8(0xbc))throw CliErrors[_0x5169b8(0xd0)](_0x5169b8(0xcf)+_0x24ac05);const _0x3b56f2=fileContent(_0x98e3d2),_0x10aecd=_0x3b56f2[_0x5169b8(0xe6)];if(_0x10aecd>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x5169b8(0xd0)](_0x5169b8(0xe0)+_0x24ac05);_0x553c97+=_0x10aecd;if(_0x553c97>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0x5169b8(0xdd));_0x243633[_0x5169b8(0xd9)](_0x24ac05,{'path':_0x24ac05,'bytes':_0x3b56f2});}return Array['from'](_0x243633[_0x5169b8(0xe8)]())[_0x5169b8(0xd7)](compareSkillFiles);}export function normalizeManifestFiles(_0x1a78cc){const _0x1137d4=a90_0xe620;if(!Array[_0x1137d4(0xd5)](_0x1a78cc)||_0x1a78cc[_0x1137d4(0xe6)]===0x0)return[];if(_0x1a78cc[_0x1137d4(0xe6)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x1137d4(0xd0)]('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');const _0x1d849e=new Map();let _0x4dfb8c=0x0;for(const _0x374db8 of _0x1a78cc){if(!_0x374db8||typeof _0x374db8!=='object'||typeof _0x374db8[_0x1137d4(0xdc)]!=='string')throw CliErrors['validation'](_0x1137d4(0xc4));const _0x248c07=normalizeSkillRelativePath(_0x374db8['path']);if(_0x1d849e['has'](_0x248c07))throw CliErrors[_0x1137d4(0xd0)](_0x1137d4(0xce)+_0x248c07);if(!isSha256Hex(_0x374db8[_0x1137d4(0xc2)]))throw CliErrors[_0x1137d4(0xd0)](_0x1137d4(0xe7)+_0x248c07);if(!Number['isSafeInteger'](_0x374db8[_0x1137d4(0xbd)])||_0x374db8[_0x1137d4(0xbd)]<0x0)throw CliErrors[_0x1137d4(0xd0)](_0x1137d4(0xdb)+_0x248c07);if(_0x374db8[_0x1137d4(0xbd)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x1137d4(0xd0)](_0x1137d4(0xe0)+_0x248c07);_0x4dfb8c+=_0x374db8[_0x1137d4(0xbd)];if(_0x4dfb8c>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x1137d4(0xd0)](_0x1137d4(0xdd));_0x1d849e['set'](_0x248c07,{'path':_0x248c07,'sha256':_0x374db8[_0x1137d4(0xc2)][_0x1137d4(0xd4)](),'size':_0x374db8[_0x1137d4(0xbd)]});}return Array[_0x1137d4(0xc6)](_0x1d849e[_0x1137d4(0xe8)]())[_0x1137d4(0xd7)](compareSkillFiles);}export function scanSkillDirectory(_0x10110d){const _0x507f0=realpathSync(_0x10110d),_0xebb6dc=[];let _0x723dcd=0x0;function _0x1d6113(_0xf77084){const _0x3d2ab8=a90_0xe620,_0x27f48b=readdirSync(_0xf77084,{'withFileTypes':!![]})['sort']((_0xcc0f6a,_0x2f2f3a)=>_0xcc0f6a[_0x3d2ab8(0xcc)][_0x3d2ab8(0xd2)](_0x2f2f3a[_0x3d2ab8(0xcc)]));for(const _0xf84ba0 of _0x27f48b){if(_0xf84ba0[_0x3d2ab8(0xde)]()&&IGNORED_DIR_NAMES[_0x3d2ab8(0xe2)](_0xf84ba0[_0x3d2ab8(0xcc)]))continue;if(IGNORED_FILE_NAMES['has'](_0xf84ba0['name']))continue;const _0x1df0d5=resolve(_0xf77084,_0xf84ba0[_0x3d2ab8(0xcc)]);if(_0xf84ba0[_0x3d2ab8(0xd6)]())throw CliErrors[_0x3d2ab8(0xd0)](_0x3d2ab8(0xea)+_0x1df0d5);const _0x2a800d=toPosixPath(relative(_0x507f0,_0x1df0d5));if(_0xf84ba0[_0x3d2ab8(0xde)]()){_0x1d6113(_0x1df0d5);continue;}if(!_0xf84ba0[_0x3d2ab8(0xc7)]())continue;validateSkillRelativePath(_0x2a800d);const _0x290732=readFileSync(_0x1df0d5);if(_0x290732['length']>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x3d2ab8(0xd0)](_0x3d2ab8(0xe0)+_0x2a800d);_0x723dcd+=_0x290732[_0x3d2ab8(0xe6)];if(_0x723dcd>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x3d2ab8(0xd0)](_0x3d2ab8(0xdd));_0xebb6dc[_0x3d2ab8(0xbf)]({'path':_0x2a800d,'bytes':_0x290732});if(_0xebb6dc[_0x3d2ab8(0xe6)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x3d2ab8(0xd0)](_0x3d2ab8(0xd1));}}return _0x1d6113(_0x507f0),normalizeLocalFiles(_0xebb6dc);}export function compareSkillFiles(_0x4b906f,_0x467eef){const _0x2855d2=a90_0xe620;if(_0x4b906f[_0x2855d2(0xdc)]===SKILL_FILE)return _0x467eef[_0x2855d2(0xdc)]===SKILL_FILE?0x0:-0x1;if(_0x467eef[_0x2855d2(0xdc)]===SKILL_FILE)return 0x1;return Buffer[_0x2855d2(0xda)](Buffer[_0x2855d2(0xc6)](_0x4b906f[_0x2855d2(0xdc)],_0x2855d2(0xe3)),Buffer['from'](_0x467eef[_0x2855d2(0xdc)],_0x2855d2(0xe3)));}export function normalizeSkillRelativePath(_0x110d49){const _0x2229c6=a90_0xe620,_0x3eede4=toPosixPath(_0x110d49[_0x2229c6(0xc1)]());return validateSkillRelativePath(_0x3eede4),_0x3eede4;}export function validateSkillRelativePath(_0x1c81ef){const _0x2902f6=a90_0xe620;if(!_0x1c81ef||_0x1c81ef[_0x2902f6(0xe1)]('/')||_0x1c81ef['includes']('//'))throw CliErrors[_0x2902f6(0xd0)](_0x2902f6(0xc3)+_0x1c81ef);for(const _0x316e04 of _0x1c81ef['split']('/')){if(!_0x316e04||_0x316e04==='.'||_0x316e04==='..')throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x1c81ef);}}export function toPosixPath(_0x5afc87){const _0x473c66=a90_0xe620;return _0x5afc87[_0x473c66(0xc8)](/\\/g,'/');}export function isSha256Hex(_0x1e8d36){const _0x38ef03=a90_0xe620;return typeof _0x1e8d36===_0x38ef03(0xbc)&&/^[a-fA-F0-9]{64}$/['test'](_0x1e8d36);}