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

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 a74_0x4608(_0x111ffc,_0x4185e8){_0x111ffc=_0x111ffc-0x1e8;const _0x552d86=a74_0x552d();let _0x460894=_0x552d86[_0x111ffc];return _0x460894;}(function(_0x301e2b,_0x5eeb73){const _0x372e0d=a74_0x4608,_0x24fd62=_0x301e2b();while(!![]){try{const _0x1f94ba=-parseInt(_0x372e0d(0x1ec))/0x1+-parseInt(_0x372e0d(0x1f4))/0x2*(parseInt(_0x372e0d(0x1f6))/0x3)+-parseInt(_0x372e0d(0x1f7))/0x4+parseInt(_0x372e0d(0x1e8))/0x5+parseInt(_0x372e0d(0x1ef))/0x6*(-parseInt(_0x372e0d(0x1ee))/0x7)+-parseInt(_0x372e0d(0x1f0))/0x8*(parseInt(_0x372e0d(0x1f2))/0x9)+parseInt(_0x372e0d(0x1f1))/0xa;if(_0x1f94ba===_0x5eeb73)break;else _0x24fd62['push'](_0x24fd62['shift']());}catch(_0x239921){_0x24fd62['push'](_0x24fd62['shift']());}}}(a74_0x552d,0x95bae));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x26bc65,_0x78d5e4){const _0x58082e=a74_0x4608,_0x572b47=_0x26bc65[_0x58082e(0x1ea)],{_notice:_0x3c8fdb,..._0x2fa471}=_0x26bc65;void _0x3c8fdb,baseFormatOutput(_0x2fa471,_0x78d5e4),_0x78d5e4[_0x58082e(0x1f5)]===_0x58082e(0x1ed)&&printPrettyNotice(_0x572b47);}function a74_0x552d(){const _0x500fc4=['108773cBbOCa','426tQnjxE','248gmLbhh','33919120MAmLFZ','58077rCtejg','update','32426RWQSZN','format','123aQZeQz','4023404iWmcbR','1544595CfxluU','url','_notice','error','113641wJsjHR','pretty'];a74_0x552d=function(){return _0x500fc4;};return a74_0x552d();}function printPrettyNotice(_0x3a45b6){const _0x4e044d=a74_0x4608;if(!_0x3a45b6?.[_0x4e044d(0x1f3)])return;console[_0x4e044d(0x1eb)](_0x3a45b6['update']['message']+'\x20('+_0x3a45b6[_0x4e044d(0x1f3)][_0x4e044d(0x1e9)]+')');}
1
+ (function(_0x4040fd,_0x30bb40){const _0x1194bf=a74_0x1ff6,_0x1d1349=_0x4040fd();while(!![]){try{const _0x55639c=-parseInt(_0x1194bf(0xf1))/0x1+-parseInt(_0x1194bf(0xeb))/0x2+parseInt(_0x1194bf(0xee))/0x3*(parseInt(_0x1194bf(0xe0))/0x4)+-parseInt(_0x1194bf(0xe2))/0x5*(-parseInt(_0x1194bf(0xef))/0x6)+-parseInt(_0x1194bf(0xe7))/0x7*(-parseInt(_0x1194bf(0xe1))/0x8)+-parseInt(_0x1194bf(0xf0))/0x9*(parseInt(_0x1194bf(0xe5))/0xa)+-parseInt(_0x1194bf(0xe9))/0xb*(-parseInt(_0x1194bf(0xec))/0xc);if(_0x55639c===_0x30bb40)break;else _0x1d1349['push'](_0x1d1349['shift']());}catch(_0x433cc4){_0x1d1349['push'](_0x1d1349['shift']());}}}(a74_0x4089,0xa2b25));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a74_0x1ff6(_0xd69ed5,_0x21710f){_0xd69ed5=_0xd69ed5-0xe0;const _0x4089b5=a74_0x4089();let _0x1ff6ab=_0x4089b5[_0xd69ed5];return _0x1ff6ab;}export function formatOutput(_0x5eb14e,_0x49c111){const _0x207e5a=a74_0x1ff6,_0x568cc0=_0x5eb14e[_0x207e5a(0xed)],{_notice:_0x20f965,..._0x288b74}=_0x5eb14e;void _0x20f965,baseFormatOutput(_0x288b74,_0x49c111),_0x49c111[_0x207e5a(0xe8)]===_0x207e5a(0xea)&&printPrettyNotice(_0x568cc0);}function a74_0x4089(){const _0x5e3ecc=['2651820eVgISo','12fHCNfk','_notice','1798695LjShYe','149874bPDgsW','18xBIYdR','984541wrtYkd','4EyEOQL','8sUDzRT','95PcWsWs','message','update','2099600vYucFm','url','1284479byDwOR','format','23530243pHsTxD','pretty'];a74_0x4089=function(){return _0x5e3ecc;};return a74_0x4089();}function printPrettyNotice(_0x323365){const _0x3d15e5=a74_0x1ff6;if(!_0x323365?.[_0x3d15e5(0xe4)])return;console['error'](_0x323365['update'][_0x3d15e5(0xe3)]+'\x20('+_0x323365[_0x3d15e5(0xe4)][_0x3d15e5(0xe6)]+')');}
@@ -1 +1 @@
1
- (function(_0x5c6b3f,_0x11e776){const _0x5ce013=a75_0x4066,_0x4ef968=_0x5c6b3f();while(!![]){try{const _0x14ee0d=parseInt(_0x5ce013(0xaa))/0x1*(-parseInt(_0x5ce013(0xa7))/0x2)+parseInt(_0x5ce013(0x97))/0x3*(parseInt(_0x5ce013(0xbb))/0x4)+-parseInt(_0x5ce013(0xa1))/0x5*(-parseInt(_0x5ce013(0xa6))/0x6)+-parseInt(_0x5ce013(0xa2))/0x7*(-parseInt(_0x5ce013(0xad))/0x8)+-parseInt(_0x5ce013(0xab))/0x9+parseInt(_0x5ce013(0xb2))/0xa+-parseInt(_0x5ce013(0xaf))/0xb;if(_0x14ee0d===_0x11e776)break;else _0x4ef968['push'](_0x4ef968['shift']());}catch(_0x20a068){_0x4ef968['push'](_0x4ef968['shift']());}}}(a75_0xd0bb,0x61480));function toKebab(_0x1dbde2){const _0x4f7a09=a75_0x4066;return _0x1dbde2[_0x4f7a09(0x9a)](/_/g,'-')[_0x4f7a09(0x9a)](/-([A-Z]+)/g,(_0x132377,_0x318a31)=>'-'+_0x318a31[_0x4f7a09(0xa4)]())[_0x4f7a09(0x9a)](/([a-z0-9])([A-Z])/g,(_0x3deb26,_0x5d9b59,_0x227a76)=>_0x5d9b59+'-'+_0x227a76)[_0x4f7a09(0xa4)]();}function a75_0xd0bb(){const _0x6d4eb6=['yes','get','string','name','corrected','length','1025Bwwjfa','204911wBHmrR','number','toLowerCase','slice','21174HymhXH','18cehNgL','dryRun','help','10063sWyoux','516096MkZcwN','push','112RLvgZt','add','13556532iDtrah','has','app','834020MyDBQY','boolean','version','entries','sticky','set','env','keys','original','424QBcVPu','appcode','type','global','15909hUOCZU','format','toUpperCase','replace'];a75_0xd0bb=function(){return _0x6d4eb6;};return a75_0xd0bb();}function buildKnownFlags(_0x1fb6bc){const _0x17429b=a75_0x4066,_0x4a3b97=new Set();for(const _0x4cc9ce of _0x1fb6bc){_0x4a3b97[_0x17429b(0xae)](_0x4cc9ce[_0x17429b(0x9e)]),_0x4a3b97[_0x17429b(0xae)](toCamelCase(_0x4cc9ce[_0x17429b(0x9e)]));}for(const _0x5326fe of['dry-run',_0x17429b(0xa8),_0x17429b(0x9b),_0x17429b(0x98)]){_0x4a3b97[_0x17429b(0xae)](_0x5326fe);}for(const _0x4fe498 of[_0x17429b(0xa9),_0x17429b(0xb8),_0x17429b(0xbc),_0x17429b(0xb1),'nonInteractive','non-interactive','ci',_0x17429b(0x96),_0x17429b(0xb4)]){_0x4a3b97['add'](_0x4fe498);}return _0x4a3b97;}function buildFlagTypeMap(_0x17d85c){const _0x13f40a=a75_0x4066,_0x4d52fd=new Map();for(const _0x2e7230 of _0x17d85c){_0x4d52fd[_0x13f40a(0xb7)](_0x2e7230['name'],_0x2e7230[_0x13f40a(0x95)]),_0x4d52fd['set'](toCamelCase(_0x2e7230[_0x13f40a(0x9e)]),_0x2e7230[_0x13f40a(0x95)]);}return _0x4d52fd;}function toCamelCase(_0x69c0da){const _0x104b3e=a75_0x4066;return _0x69c0da[_0x104b3e(0x9a)](/-([a-z])/g,(_0x5162a9,_0x26c05b)=>_0x26c05b[_0x104b3e(0x99)]());}function a75_0x4066(_0x54eb4a,_0x2d0d50){_0x54eb4a=_0x54eb4a-0x95;const _0xd0bbe2=a75_0xd0bb();let _0x40661a=_0xd0bbe2[_0x54eb4a];return _0x40661a;}function aliasHandler(_0x4299a6,_0x146b0c){const _0x2fdf42=a75_0x4066,_0x58489b=[];for(const _0x1bd547 of Object[_0x2fdf42(0xb9)](_0x4299a6)){if(_0x146b0c[_0x2fdf42(0xb0)](_0x1bd547))continue;const _0x1c1519=toKebab(_0x1bd547);_0x1c1519!==_0x1bd547&&_0x146b0c[_0x2fdf42(0xb0)](_0x1c1519)&&_0x58489b[_0x2fdf42(0xac)]({'original':_0x1bd547,'corrected':_0x1c1519,'handler':'alias'});}return _0x58489b;}function stickyHandler(_0x5b09fa,_0x611ac5,_0x10ff32){const _0x5e9008=a75_0x4066,_0x54eeb1=[];for(const [_0x50036a,_0x6ce9ae]of Object[_0x5e9008(0xb5)](_0x5b09fa)){if(_0x6ce9ae!==!![])continue;for(let _0x4b29d9=_0x50036a[_0x5e9008(0xa0)]-0x1;_0x4b29d9>0x0;_0x4b29d9--){const _0x213a4b=_0x50036a[_0x5e9008(0xa5)](0x0,_0x4b29d9),_0x577885=_0x50036a[_0x5e9008(0xa5)](_0x4b29d9),_0x563281=toKebab(_0x213a4b),_0x21fd43=toCamelCase(_0x213a4b),_0x2e224c=_0x611ac5[_0x5e9008(0xb0)](_0x213a4b)?_0x213a4b:_0x611ac5[_0x5e9008(0xb0)](_0x563281)?_0x563281:_0x611ac5[_0x5e9008(0xb0)](_0x21fd43)?_0x21fd43:null;if(!_0x2e224c)continue;const _0x5ae433=_0x10ff32[_0x5e9008(0x9c)](_0x2e224c)??_0x5e9008(0x9d);let _0x31fbeb;if(_0x5ae433===_0x5e9008(0xa3)){const _0x1ab906=Number(_0x577885);if(isNaN(_0x1ab906)||_0x577885==='')continue;_0x31fbeb=_0x1ab906;}else{if(_0x5ae433===_0x5e9008(0xb3))continue;else{if(_0x577885==='')continue;_0x31fbeb=_0x577885;}}_0x54eeb1[_0x5e9008(0xac)]({'original':_0x50036a,'corrected':_0x2e224c+'='+_0x31fbeb,'handler':_0x5e9008(0xb6)});break;}}return _0x54eeb1;}export function correctFlags(_0x18f5f5,_0x33a7f2){const _0x1b5935=a75_0x4066,_0x1a9543=buildKnownFlags(_0x33a7f2),_0x103b13=buildFlagTypeMap(_0x33a7f2),_0x3fa935=aliasHandler(_0x18f5f5,_0x1a9543),_0x1bd0dc=stickyHandler(_0x18f5f5,_0x1a9543,_0x103b13),_0x520788=[..._0x3fa935,..._0x1bd0dc];if(_0x520788['length']===0x0)return{'flags':_0x18f5f5,'corrections':[]};const _0x126a5c={..._0x18f5f5},_0x413b28=new Set();for(const _0x177267 of _0x3fa935){_0x126a5c[_0x177267['corrected']]=_0x18f5f5[_0x177267['original']],_0x413b28[_0x1b5935(0xae)](_0x177267[_0x1b5935(0xba)]);}for(const _0x5ad1a8 of _0x1bd0dc){const _0x4af836=_0x5ad1a8[_0x1b5935(0x9f)]['indexOf']('='),_0x4ff649=_0x5ad1a8['corrected'][_0x1b5935(0xa5)](0x0,_0x4af836),_0x569bc4=_0x5ad1a8['corrected'][_0x1b5935(0xa5)](_0x4af836+0x1),_0x43f372=_0x103b13[_0x1b5935(0x9c)](_0x4ff649)??_0x1b5935(0x9d);_0x43f372==='number'?_0x126a5c[_0x4ff649]=Number(_0x569bc4):_0x126a5c[_0x4ff649]=_0x569bc4,_0x413b28[_0x1b5935(0xae)](_0x5ad1a8[_0x1b5935(0xba)]);}for(const _0x1ef665 of _0x413b28){delete _0x126a5c[_0x1ef665];}return{'flags':_0x126a5c,'corrections':_0x520788};}
1
+ (function(_0x1cdc74,_0x3b618e){const _0x17688f=a75_0x5ce3,_0xaba43e=_0x1cdc74();while(!![]){try{const _0x33cf1e=parseInt(_0x17688f(0x1b3))/0x1*(-parseInt(_0x17688f(0x19e))/0x2)+-parseInt(_0x17688f(0x1a8))/0x3+parseInt(_0x17688f(0x1b1))/0x4+-parseInt(_0x17688f(0x1ad))/0x5+parseInt(_0x17688f(0x1a2))/0x6+-parseInt(_0x17688f(0x1aa))/0x7+parseInt(_0x17688f(0x19f))/0x8;if(_0x33cf1e===_0x3b618e)break;else _0xaba43e['push'](_0xaba43e['shift']());}catch(_0x1248b8){_0xaba43e['push'](_0xaba43e['shift']());}}}(a75_0x2eac,0x74deb));function toKebab(_0x10b0a2){const _0x1acf7e=a75_0x5ce3;return _0x10b0a2[_0x1acf7e(0x1ae)](/_/g,'-')[_0x1acf7e(0x1ae)](/-([A-Z]+)/g,(_0x17394d,_0x2ae042)=>'-'+_0x2ae042[_0x1acf7e(0x1bc)]())[_0x1acf7e(0x1ae)](/([a-z0-9])([A-Z])/g,(_0x12c1d5,_0x4a82cf,_0x172b5f)=>_0x4a82cf+'-'+_0x172b5f)[_0x1acf7e(0x1bc)]();}function buildKnownFlags(_0x59e417){const _0x3ca9f6=a75_0x5ce3,_0x305083=new Set();for(const _0x2b7644 of _0x59e417){_0x305083[_0x3ca9f6(0x1a6)](_0x2b7644[_0x3ca9f6(0x1b2)]),_0x305083[_0x3ca9f6(0x1a6)](toCamelCase(_0x2b7644[_0x3ca9f6(0x1b2)]));}for(const _0x2ce337 of[_0x3ca9f6(0x1ba),'dryRun','yes',_0x3ca9f6(0x1ac)]){_0x305083['add'](_0x2ce337);}for(const _0x46da2d of[_0x3ca9f6(0x1b9),'env',_0x3ca9f6(0x1a1),_0x3ca9f6(0x1a7),'nonInteractive','non-interactive','ci',_0x3ca9f6(0x1af),_0x3ca9f6(0x1b6)]){_0x305083[_0x3ca9f6(0x1a6)](_0x46da2d);}return _0x305083;}function buildFlagTypeMap(_0x4c5c88){const _0x2ccf23=a75_0x5ce3,_0x390a0f=new Map();for(const _0x2f2cc9 of _0x4c5c88){_0x390a0f['set'](_0x2f2cc9[_0x2ccf23(0x1b2)],_0x2f2cc9[_0x2ccf23(0x1bf)]),_0x390a0f['set'](toCamelCase(_0x2f2cc9[_0x2ccf23(0x1b2)]),_0x2f2cc9[_0x2ccf23(0x1bf)]);}return _0x390a0f;}function toCamelCase(_0x1de6f0){const _0x500b7e=a75_0x5ce3;return _0x1de6f0[_0x500b7e(0x1ae)](/-([a-z])/g,(_0x5195c5,_0x2b0f76)=>_0x2b0f76[_0x500b7e(0x1be)]());}function aliasHandler(_0x252171,_0x5708f3){const _0x497f05=a75_0x5ce3,_0x2df5a9=[];for(const _0x49a42b of Object[_0x497f05(0x1b7)](_0x252171)){if(_0x5708f3[_0x497f05(0x1b0)](_0x49a42b))continue;const _0x975b83=toKebab(_0x49a42b);_0x975b83!==_0x49a42b&&_0x5708f3['has'](_0x975b83)&&_0x2df5a9[_0x497f05(0x1a5)]({'original':_0x49a42b,'corrected':_0x975b83,'handler':_0x497f05(0x1b5)});}return _0x2df5a9;}function a75_0x5ce3(_0x76d9ec,_0x8bab23){_0x76d9ec=_0x76d9ec-0x19e;const _0x2eac1b=a75_0x2eac();let _0x5ce378=_0x2eac1b[_0x76d9ec];return _0x5ce378;}function stickyHandler(_0x272f79,_0x1fdf87,_0x2d8c12){const _0x421d8d=a75_0x5ce3,_0x2b3518=[];for(const [_0x3b7599,_0xffd7f1]of Object['entries'](_0x272f79)){if(_0xffd7f1!==!![])continue;for(let _0x44fc50=_0x3b7599['length']-0x1;_0x44fc50>0x0;_0x44fc50--){const _0x404dce=_0x3b7599[_0x421d8d(0x1bd)](0x0,_0x44fc50),_0x205e83=_0x3b7599['slice'](_0x44fc50),_0x12fe30=toKebab(_0x404dce),_0x12ff9c=toCamelCase(_0x404dce),_0x5c929d=_0x1fdf87[_0x421d8d(0x1b0)](_0x404dce)?_0x404dce:_0x1fdf87[_0x421d8d(0x1b0)](_0x12fe30)?_0x12fe30:_0x1fdf87[_0x421d8d(0x1b0)](_0x12ff9c)?_0x12ff9c:null;if(!_0x5c929d)continue;const _0x2dad1d=_0x2d8c12[_0x421d8d(0x1a9)](_0x5c929d)??_0x421d8d(0x1a3);let _0xdc1816;if(_0x2dad1d==='number'){const _0x2bdc77=Number(_0x205e83);if(isNaN(_0x2bdc77)||_0x205e83==='')continue;_0xdc1816=_0x2bdc77;}else{if(_0x2dad1d==='boolean')continue;else{if(_0x205e83==='')continue;_0xdc1816=_0x205e83;}}_0x2b3518[_0x421d8d(0x1a5)]({'original':_0x3b7599,'corrected':_0x5c929d+'='+_0xdc1816,'handler':_0x421d8d(0x1b8)});break;}}return _0x2b3518;}export function correctFlags(_0x4b11e7,_0xd1e32c){const _0x124503=a75_0x5ce3,_0x33231a=buildKnownFlags(_0xd1e32c),_0x58f7f8=buildFlagTypeMap(_0xd1e32c),_0xcfaa24=aliasHandler(_0x4b11e7,_0x33231a),_0x29caf3=stickyHandler(_0x4b11e7,_0x33231a,_0x58f7f8),_0x178998=[..._0xcfaa24,..._0x29caf3];if(_0x178998[_0x124503(0x1b4)]===0x0)return{'flags':_0x4b11e7,'corrections':[]};const _0x25a367={..._0x4b11e7},_0x49f96a=new Set();for(const _0x468399 of _0xcfaa24){_0x25a367[_0x468399['corrected']]=_0x4b11e7[_0x468399[_0x124503(0x1bb)]],_0x49f96a[_0x124503(0x1a6)](_0x468399[_0x124503(0x1bb)]);}for(const _0x301268 of _0x29caf3){const _0x5f5978=_0x301268[_0x124503(0x1ab)][_0x124503(0x1a0)]('='),_0x28ce73=_0x301268[_0x124503(0x1ab)][_0x124503(0x1bd)](0x0,_0x5f5978),_0xacd6b6=_0x301268[_0x124503(0x1ab)]['slice'](_0x5f5978+0x1),_0x146f16=_0x58f7f8[_0x124503(0x1a9)](_0x28ce73)??_0x124503(0x1a3);_0x146f16===_0x124503(0x1a4)?_0x25a367[_0x28ce73]=Number(_0xacd6b6):_0x25a367[_0x28ce73]=_0xacd6b6,_0x49f96a['add'](_0x301268['original']);}for(const _0x3e708b of _0x49f96a){delete _0x25a367[_0x3e708b];}return{'flags':_0x25a367,'corrections':_0x178998};}function a75_0x2eac(){const _0x16f279=['add','app','212553fTIiPG','get','5694304cFAJpK','corrected','format','1444465AwLMqV','replace','global','has','3771300SJHchQ','name','2xBpTwe','length','alias','version','keys','sticky','help','dry-run','original','toLowerCase','slice','toUpperCase','type','836762zNTrbK','12276808Fvssdb','indexOf','appcode','67506MFUCsD','string','number','push'];a75_0x2eac=function(){return _0x16f279;};return a75_0x2eac();}
@@ -1 +1 @@
1
- (function(_0x179f7b,_0x429437){var _0x22374d=a76_0x49fb,_0x48ac07=_0x179f7b();while(!![]){try{var _0x267f52=-parseInt(_0x22374d(0xc1))/0x1+parseInt(_0x22374d(0xbe))/0x2*(-parseInt(_0x22374d(0xc0))/0x3)+-parseInt(_0x22374d(0xbf))/0x4+parseInt(_0x22374d(0xc2))/0x5*(-parseInt(_0x22374d(0xc3))/0x6)+parseInt(_0x22374d(0xbc))/0x7+-parseInt(_0x22374d(0xc4))/0x8+parseInt(_0x22374d(0xc5))/0x9*(parseInt(_0x22374d(0xbd))/0xa);if(_0x267f52===_0x429437)break;else _0x48ac07['push'](_0x48ac07['shift']());}catch(_0x5982fd){_0x48ac07['push'](_0x48ac07['shift']());}}}(a76_0x109f,0xa3456));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a76_0x49fb(_0x5cb1ee,_0x3fe71d){_0x5cb1ee=_0x5cb1ee-0xbc;var _0x109fba=a76_0x109f();var _0x49fb6c=_0x109fba[_0x5cb1ee];return _0x49fb6c;}function a76_0x109f(){var _0x5cd02b=['256058MhKJDg','3600196zVyRHP','9KBnaia','1254499AkbYhn','2176675zYtrTQ','18pjASdx','4630248raGjXE','135WGsOMy','5669748IvCOlY','2854810NxNTYh'];a76_0x109f=function(){return _0x5cd02b;};return a76_0x109f();}
1
+ (function(_0x4ba77b,_0x45435a){var _0x41a54b=a76_0x1579,_0x321aa6=_0x4ba77b();while(!![]){try{var _0xa5a902=-parseInt(_0x41a54b(0xa5))/0x1*(-parseInt(_0x41a54b(0xa1))/0x2)+parseInt(_0x41a54b(0x9e))/0x3+parseInt(_0x41a54b(0xa4))/0x4+-parseInt(_0x41a54b(0x9f))/0x5*(parseInt(_0x41a54b(0x9b))/0x6)+parseInt(_0x41a54b(0xa3))/0x7*(parseInt(_0x41a54b(0xa2))/0x8)+parseInt(_0x41a54b(0xa0))/0x9+-parseInt(_0x41a54b(0x9d))/0xa*(parseInt(_0x41a54b(0x9c))/0xb);if(_0xa5a902===_0x45435a)break;else _0x321aa6['push'](_0x321aa6['shift']());}catch(_0x5ded28){_0x321aa6['push'](_0x321aa6['shift']());}}}(a76_0x1c25,0x77ffd));function a76_0x1579(_0x136bf7,_0x3763db){_0x136bf7=_0x136bf7-0x9b;var _0x1c25ea=a76_0x1c25();var _0x1579d5=_0x1c25ea[_0x136bf7];return _0x1579d5;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a76_0x1c25(){var _0x3929da=['3864915qwkwao','659508gyvXMm','56wfECMj','602287FqsELL','249968oewHRF','2IQrFjv','67494ZcxcEF','11jGBIZP','19310040pNVDKq','2850072LAnLAj','125mbLUpv'];a76_0x1c25=function(){return _0x3929da;};return a76_0x1c25();}
@@ -1 +1 @@
1
- (function(_0x574b31,_0x128ed0){const _0x2a574a=a77_0x182f,_0x356bad=_0x574b31();while(!![]){try{const _0x560229=-parseInt(_0x2a574a(0x99))/0x1*(parseInt(_0x2a574a(0x83))/0x2)+parseInt(_0x2a574a(0x92))/0x3*(parseInt(_0x2a574a(0x98))/0x4)+parseInt(_0x2a574a(0x8b))/0x5+-parseInt(_0x2a574a(0x9c))/0x6*(-parseInt(_0x2a574a(0x95))/0x7)+parseInt(_0x2a574a(0x96))/0x8*(-parseInt(_0x2a574a(0x9a))/0x9)+-parseInt(_0x2a574a(0x93))/0xa+parseInt(_0x2a574a(0x90))/0xb;if(_0x560229===_0x128ed0)break;else _0x356bad['push'](_0x356bad['shift']());}catch(_0x1c0e31){_0x356bad['push'](_0x356bad['shift']());}}}(a77_0xb460,0xb2f84));function a77_0x182f(_0x3854c5,_0x271107){_0x3854c5=_0x3854c5-0x82;const _0xb4603f=a77_0xb460();let _0x182f0a=_0xb4603f[_0x3854c5];return _0x182f0a;}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0xc65d63,_0x47a9cf,_0x57d56b){const _0x2cad50=a77_0x182f,_0x18eed6=buildConfirmationContext(_0xc65d63,_0x47a9cf,_0x57d56b),_0x4a70a2=['⚠\x20\x20High-risk\x20operation:\x20'+_0x18eed6[_0x2cad50(0x89)]];return _0x18eed6[_0x2cad50(0x87)]&&_0x4a70a2[_0x2cad50(0x8e)](_0x2cad50(0x9b)+_0x18eed6['description']),_0x18eed6[_0x2cad50(0x88)]&&_0x4a70a2[_0x2cad50(0x8e)]('\x20\x20\x20Affected:\x20'+_0x18eed6[_0x2cad50(0x88)]),_0x4a70a2[_0x2cad50(0x8e)](_0x2cad50(0x8c)),_0x4a70a2;}function a77_0xb460(){const _0x3f1994=['\x20\x20\x20','485454KpjYpG','params=','command','service','code=','4098fPSuNG','join','params','name=','description','affectedRecords','commandLabel','length','5765350zpyxUY','\x20\x20\x20Continue?\x20[y/N]\x20','--yes','push','stringify','4587209MZvKCZ','name','2044443WGmSNw','3679120aTJynJ','code','35xsFZZk','32RVlJhv','id=','4TCKOVJ','195rFfzJp','2600073YXEOZL'];a77_0xb460=function(){return _0x3f1994;};return a77_0xb460();}export function reconstructCommandArgv(_0x489d23,_0x47cd74){const _0x3905e7=a77_0x182f,_0x525217=[CLI_BIN_NAME,_0x489d23[_0x3905e7(0x9f)],_0x489d23[_0x3905e7(0x9e)]];for(const [_0x1614bb,_0x5b8b32]of Object['entries'](_0x47cd74)){if(_0x5b8b32===!![])_0x525217[_0x3905e7(0x8e)]('--'+_0x1614bb);else _0x5b8b32!==![]&&_0x5b8b32!==undefined&&_0x5b8b32!==''&&_0x525217['push']('--'+_0x1614bb+'\x20'+JSON[_0x3905e7(0x8f)](_0x5b8b32));}return _0x525217[_0x3905e7(0x8e)](_0x3905e7(0x8d)),_0x525217[_0x3905e7(0x84)]('\x20');}function buildConfirmationContext(_0x2dddaa,_0xdbaa60,_0x4929dc){const _0x14e216=extractAffectedRecords(_0x4929dc);return{'commandLabel':_0xdbaa60,'description':_0x2dddaa['description'],'affectedRecords':_0x14e216};}function extractAffectedRecords(_0x4c1ebf){const _0x50783f=a77_0x182f,_0x34c1fc=[];if(_0x4c1ebf[_0x50783f(0x94)])_0x34c1fc[_0x50783f(0x8e)](_0x50783f(0x82)+_0x4c1ebf[_0x50783f(0x94)]);if(_0x4c1ebf['id'])_0x34c1fc['push'](_0x50783f(0x97)+_0x4c1ebf['id']);if(_0x4c1ebf[_0x50783f(0x91)])_0x34c1fc[_0x50783f(0x8e)](_0x50783f(0x86)+_0x4c1ebf[_0x50783f(0x91)]);if(_0x4c1ebf[_0x50783f(0x85)])_0x34c1fc[_0x50783f(0x8e)](_0x50783f(0x9d)+_0x4c1ebf['params']);return _0x34c1fc[_0x50783f(0x8a)]>0x0?_0x34c1fc['join'](',\x20'):undefined;}
1
+ (function(_0x412bec,_0x3dd40e){const _0x52df51=a77_0xa7a5,_0x30d1b6=_0x412bec();while(!![]){try{const _0x29aa8a=parseInt(_0x52df51(0xcc))/0x1*(parseInt(_0x52df51(0xb6))/0x2)+parseInt(_0x52df51(0xc1))/0x3*(parseInt(_0x52df51(0xc6))/0x4)+-parseInt(_0x52df51(0xbe))/0x5+-parseInt(_0x52df51(0xbb))/0x6*(parseInt(_0x52df51(0xc9))/0x7)+parseInt(_0x52df51(0xc3))/0x8+-parseInt(_0x52df51(0xaf))/0x9+parseInt(_0x52df51(0xb5))/0xa;if(_0x29aa8a===_0x3dd40e)break;else _0x30d1b6['push'](_0x30d1b6['shift']());}catch(_0x5f5852){_0x30d1b6['push'](_0x30d1b6['shift']());}}}(a77_0x256f,0x95ae8));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x198b34,_0x169a0f,_0x49545e){const _0x56e2c3=a77_0xa7a5,_0x3a11f2=buildConfirmationContext(_0x198b34,_0x169a0f,_0x49545e),_0x3f0b97=[_0x56e2c3(0xc5)+_0x3a11f2[_0x56e2c3(0xb9)]];return _0x3a11f2[_0x56e2c3(0xc8)]&&_0x3f0b97[_0x56e2c3(0xba)](_0x56e2c3(0xb0)+_0x3a11f2[_0x56e2c3(0xc8)]),_0x3a11f2[_0x56e2c3(0xcb)]&&_0x3f0b97['push'](_0x56e2c3(0xca)+_0x3a11f2[_0x56e2c3(0xcb)]),_0x3f0b97[_0x56e2c3(0xba)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x3f0b97;}export function reconstructCommandArgv(_0x180b11,_0x18c2ea){const _0x541641=a77_0xa7a5,_0x43f9ce=[CLI_BIN_NAME,_0x180b11[_0x541641(0xb4)],_0x180b11[_0x541641(0xc7)]];for(const [_0x169f06,_0x2d75aa]of Object[_0x541641(0xc2)](_0x18c2ea)){if(_0x2d75aa===!![])_0x43f9ce[_0x541641(0xba)]('--'+_0x169f06);else _0x2d75aa!==![]&&_0x2d75aa!==undefined&&_0x2d75aa!==''&&_0x43f9ce[_0x541641(0xba)]('--'+_0x169f06+'\x20'+JSON[_0x541641(0xbf)](_0x2d75aa));}return _0x43f9ce['push'](_0x541641(0xc0)),_0x43f9ce[_0x541641(0xb1)]('\x20');}function buildConfirmationContext(_0x4412ae,_0x22e583,_0x520130){const _0xbf3aa4=extractAffectedRecords(_0x520130);return{'commandLabel':_0x22e583,'description':_0x4412ae['description'],'affectedRecords':_0xbf3aa4};}function a77_0x256f(){const _0x15878f=['name','params','4364170uMxFAE','stringify','--yes','3tByvXy','entries','7821208ulZsxM','code','⚠\x20\x20High-risk\x20operation:\x20','3261764YwdpeQ','command','description','6145069EknUUF','\x20\x20\x20Affected:\x20','affectedRecords','6rJooQA','5868126XOyGez','\x20\x20\x20','join','id=','name=','service','4181970kVCsfs','268174TYkLPl','params=','code=','commandLabel','push','6ZxsZjV'];a77_0x256f=function(){return _0x15878f;};return a77_0x256f();}function a77_0xa7a5(_0x3e2352,_0x541ccc){_0x3e2352=_0x3e2352-0xaf;const _0x256f22=a77_0x256f();let _0xa7a5cb=_0x256f22[_0x3e2352];return _0xa7a5cb;}function extractAffectedRecords(_0x1d0df3){const _0x2adb4f=a77_0xa7a5,_0x4e3f31=[];if(_0x1d0df3[_0x2adb4f(0xc4)])_0x4e3f31[_0x2adb4f(0xba)](_0x2adb4f(0xb8)+_0x1d0df3[_0x2adb4f(0xc4)]);if(_0x1d0df3['id'])_0x4e3f31[_0x2adb4f(0xba)](_0x2adb4f(0xb2)+_0x1d0df3['id']);if(_0x1d0df3[_0x2adb4f(0xbc)])_0x4e3f31['push'](_0x2adb4f(0xb3)+_0x1d0df3[_0x2adb4f(0xbc)]);if(_0x1d0df3[_0x2adb4f(0xbd)])_0x4e3f31[_0x2adb4f(0xba)](_0x2adb4f(0xb7)+_0x1d0df3[_0x2adb4f(0xbd)]);return _0x4e3f31['length']>0x0?_0x4e3f31[_0x2adb4f(0xb1)](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0x115056,_0x39bbf6){const _0x5c1499=a78_0x1a6c,_0x567cee=_0x115056();while(!![]){try{const _0x5d4e34=parseInt(_0x5c1499(0x16e))/0x1+parseInt(_0x5c1499(0x16d))/0x2+parseInt(_0x5c1499(0x16a))/0x3*(-parseInt(_0x5c1499(0x171))/0x4)+-parseInt(_0x5c1499(0x16c))/0x5+-parseInt(_0x5c1499(0x170))/0x6+parseInt(_0x5c1499(0x173))/0x7+parseInt(_0x5c1499(0x16b))/0x8*(parseInt(_0x5c1499(0x172))/0x9);if(_0x5d4e34===_0x39bbf6)break;else _0x567cee['push'](_0x567cee['shift']());}catch(_0x2dc26a){_0x567cee['push'](_0x567cee['shift']());}}}(a78_0x31b6,0x7068e));function a78_0x1a6c(_0x2e9537,_0x3cd8e8){_0x2e9537=_0x2e9537-0x168;const _0x31b600=a78_0x31b6();let _0x1a6c51=_0x31b600[_0x2e9537];return _0x1a6c51;}function a78_0x31b6(){const _0x433e40=['154562DRRBQf','string','1367982vVyiZw','2823752wxgCfW','9aGgpXo','3984127WOIOiX','description','message','stringify','validation','trim','3zhcdwH','738160EUaHcc','1551370iWIpnt','1777292CKqoZc'];a78_0x31b6=function(){return _0x433e40;};return a78_0x31b6();}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x154e3f){const _0x15190d=a78_0x1a6c;if(_0x154e3f instanceof LovrabetError)return CliErrors[_0x15190d(0x168)](userFacingLovrabetMessage(_0x154e3f));return _0x154e3f;}function userFacingLovrabetMessage(_0x3cf04f){const _0x3c6860=a78_0x1a6c,_0x508ac2=_0x3cf04f[_0x3c6860(0x174)];if(_0x508ac2!==undefined&&_0x508ac2!==null){if(typeof _0x508ac2===_0x3c6860(0x16f)&&_0x508ac2[_0x3c6860(0x169)]())return _0x508ac2[_0x3c6860(0x169)]();try{return JSON[_0x3c6860(0x176)](_0x508ac2);}catch{}}return _0x3cf04f[_0x3c6860(0x175)];}
1
+ function a78_0x26ad(){const _0x50bde4=['100WCVgwW','6281901TiDNwM','stringify','113195ZhAIHY','5828904wLnLfj','6809eHoCAB','message','735216PFCGsW','description','10ksBImV','14052icNykn','70EvPJQM','trim','string','validation','339832dWmWfM','21207uRNRQX','91SIoOUh'];a78_0x26ad=function(){return _0x50bde4;};return a78_0x26ad();}(function(_0x5a520c,_0x592851){const _0x51b433=a78_0x3eb8,_0x2f415e=_0x5a520c();while(!![]){try{const _0x5c35e6=-parseInt(_0x51b433(0x7a))/0x1+parseInt(_0x51b433(0x7e))/0x2*(-parseInt(_0x51b433(0x83))/0x3)+-parseInt(_0x51b433(0x85))/0x4*(-parseInt(_0x51b433(0x88))/0x5)+-parseInt(_0x51b433(0x89))/0x6+-parseInt(_0x51b433(0x84))/0x7*(-parseInt(_0x51b433(0x82))/0x8)+-parseInt(_0x51b433(0x86))/0x9*(-parseInt(_0x51b433(0x7c))/0xa)+parseInt(_0x51b433(0x8a))/0xb*(parseInt(_0x51b433(0x7d))/0xc);if(_0x5c35e6===_0x592851)break;else _0x2f415e['push'](_0x2f415e['shift']());}catch(_0x567f8b){_0x2f415e['push'](_0x2f415e['shift']());}}}(a78_0x26ad,0x8f4ad));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a78_0x3eb8(_0x5b48a0,_0x3a4fb8){_0x5b48a0=_0x5b48a0-0x7a;const _0x26ad48=a78_0x26ad();let _0x3eb89e=_0x26ad48[_0x5b48a0];return _0x3eb89e;}export function mapUserFacingExecuteError(_0x148cdf){const _0x1bb20c=a78_0x3eb8;if(_0x148cdf instanceof LovrabetError)return CliErrors[_0x1bb20c(0x81)](userFacingLovrabetMessage(_0x148cdf));return _0x148cdf;}function userFacingLovrabetMessage(_0x1e89a9){const _0x42be29=a78_0x3eb8,_0x1dd2d6=_0x1e89a9[_0x42be29(0x7b)];if(_0x1dd2d6!==undefined&&_0x1dd2d6!==null){if(typeof _0x1dd2d6===_0x42be29(0x80)&&_0x1dd2d6[_0x42be29(0x7f)]())return _0x1dd2d6['trim']();try{return JSON[_0x42be29(0x87)](_0x1dd2d6);}catch{}}return _0x1e89a9[_0x42be29(0x8b)];}
@@ -1 +1 @@
1
- const a79_0x32e76c=a79_0x3fc6;function a79_0x3fc6(_0x4fa82f,_0x295d4e){_0x4fa82f=_0x4fa82f-0x96;const _0xfd72ef=a79_0xfd72();let _0x3fc611=_0xfd72ef[_0x4fa82f];return _0x3fc611;}(function(_0x1f0d09,_0x344477){const _0x1b287f=a79_0x3fc6,_0x5118ed=_0x1f0d09();while(!![]){try{const _0x3b3122=-parseInt(_0x1b287f(0xba))/0x1+-parseInt(_0x1b287f(0xbb))/0x2+parseInt(_0x1b287f(0xd4))/0x3+parseInt(_0x1b287f(0xad))/0x4*(-parseInt(_0x1b287f(0xb4))/0x5)+parseInt(_0x1b287f(0xc8))/0x6+parseInt(_0x1b287f(0xcc))/0x7+-parseInt(_0x1b287f(0xab))/0x8*(-parseInt(_0x1b287f(0xaa))/0x9);if(_0x3b3122===_0x344477)break;else _0x5118ed['push'](_0x5118ed['shift']());}catch(_0x5df9c4){_0x5118ed['push'](_0x5118ed['shift']());}}}(a79_0xfd72,0x6216e));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(_0x538372){return void _0x538372,AUTH_MODE['ClientAk'];}export function createPipelineEnv(_0x4a3d26,_0x498bbd){const _0x3e03bb=a79_0x3fc6,_0xbf3715=typeof _0x498bbd[_0x3e03bb(0xc0)]==='string'&&_0x498bbd[_0x3e03bb(0xc0)][_0x3e03bb(0xc9)]();return{'rawFlags':_0x498bbd,'appCode':_0x4a3d26[_0x3e03bb(0xc1)]||productEnv('APPCODE')||(_0xbf3715?undefined:readAppCodeFromConfig()),'appCodeSource':_0x4a3d26[_0x3e03bb(0x9c)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x498bbd),'defaultFormat':_0x4a3d26[_0x3e03bb(0xa9)],'defaultPageSize':_0x4a3d26[_0x3e03bb(0x9a)],'defaultVerbose':_0x4a3d26[_0x3e03bb(0xd5)],'riskLevel':_0x4a3d26[_0x3e03bb(0xb9)],'accessKey':_0x4a3d26['accessKey'],'env':_0x4a3d26[_0x3e03bb(0x98)],'mergedCli':{'defaultApp':_0x4a3d26[_0x3e03bb(0xbf)],'currentApp':_0x4a3d26[_0x3e03bb(0xae)],'appCode':_0x4a3d26[_0x3e03bb(0xc1)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a79_0x32e76c(0xa6)](_0x168257=>PIPELINE_FLAG_NAMES[a79_0x32e76c(0xd2)](_0x168257[a79_0x32e76c(0xb6)]))['map'](({name:_0x3536e6,type:_0x2bd439,description:_0x1cf8aa})=>({'name':_0x3536e6,'type':_0x2bd439,'description':_0x1cf8aa})),'formatOutput':formatOutput,'getCommandLabel'(_0x319cc1){const _0x17549a=a79_0x32e76c;return CLI_BIN_NAME+'\x20'+_0x319cc1[_0x17549a(0xc3)]+'\x20'+_0x319cc1[_0x17549a(0xa3)];},'riskPolicy':{'onViolation'(_0x2a7989){console['error'](_0x2a7989);},'createError'(_0x4b0736){return CliErrors['cancelled'](_0x4b0736);}},async 'prepare'(_0x48a27a,_0x445d34){const _0xef8261=a79_0x32e76c,_0x28dba3=resolveAuthMode(_0x445d34);if(_0x48a27a[_0xef8261(0xb0)]!==![]){if(!_0x445d34[_0xef8261(0xca)])throw CliErrors[_0xef8261(0x9d)](_0xef8261(0x9b)+PRODUCT_CONFIG[_0xef8261(0xac)]+_0xef8261(0xc7)+productEnvName(_0xef8261(0xcf))+'.');const {setActiveAK:_0x4588b8}=await import(_0xef8261(0xd3));_0x4588b8(_0x445d34[_0xef8261(0xca)]);}let _0x26c33a='';if(_0x48a27a['requiresAppCode']!==![]){_0x26c33a=_0x445d34['appCode']??'',_0x26c33a=await resolveExplicitAppName(_0x48a27a,_0x445d34,_0x26c33a);if(!_0x26c33a){await assertSelectedAppNameIsRuntimeAccessible(_0x48a27a,_0x445d34);throw CliErrors[_0xef8261(0xaf)](_0xef8261(0x9e)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x48a27a,_0x445d34,_0x26c33a);}if(_0x26c33a){const {initSdkClient:_0x1b7581}=await import(_0xef8261(0xc6));_0x1b7581({'appCode':_0x26c33a,'env':_0x445d34[_0xef8261(0x98)]??_0xef8261(0xa1),'accessKey':_0x445d34[_0xef8261(0xca)],'authMode':_0x28dba3});}return{'defaults':{'booleans':{'verbose':_0x445d34[_0xef8261(0xa2)]},'numbers':{'pagesize':_0x445d34['defaultPageSize']}},'extras':{'appCode':_0x26c33a,'cookie':'','apiDomain':_0x445d34[_0xef8261(0xd0)],'apiDir':'','accessKey':_0x445d34[_0xef8261(0xca)],'envName':_0x445d34[_0xef8261(0x98)],'mergedCli':_0x445d34[_0xef8261(0xb7)]}};},async 'confirmHighRisk'({def:_0x2d0e55,env:_0x286955,flags:_0x736e0e,commandLabel:_0x1c95a4}){const _0x52dbfc=a79_0x32e76c;if(_0x286955['isNonInteractive']){const _0x22ab88=reconstructCommandArgv(_0x2d0e55,_0x736e0e);throw CliErrors[_0x52dbfc(0xa5)](_0x52dbfc(0xce)+_0x1c95a4+_0x52dbfc(0xa8)+(_0x52dbfc(0xb5)+_0x22ab88));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2d0e55,_0x1c95a4,_0x736e0e),'createCancelledError':_0x7aa9e1=>CliErrors[_0x52dbfc(0x9f)](_0x7aa9e1)});},'mapDryRunError'(_0x5a4c56){return mapUserFacingExecuteError(_0x5a4c56);},'mapExecuteError'(_0x670c4d){return mapUserFacingExecuteError(_0x670c4d);},async 'finalize'(){const _0x39b062=a79_0x32e76c,{clearActiveAK:_0x2983a7}=await import(_0x39b062(0xd3));_0x2983a7();}};async function resolveExplicitAppName(_0x1632e5,_0x4a01ec,_0x62fcf){const _0x127bfb=a79_0x32e76c;if(_0x1632e5[_0x127bfb(0x99)]===![])return _0x62fcf;const _0x156733=typeof _0x4a01ec[_0x127bfb(0xa4)][_0x127bfb(0xc0)]==='string'?_0x4a01ec[_0x127bfb(0xa4)][_0x127bfb(0xc0)][_0x127bfb(0xc9)]():'';if(!_0x156733)return _0x62fcf;const _0xc34cf4=typeof _0x4a01ec[_0x127bfb(0xa4)][_0x127bfb(0xbc)]==='string'&&_0x4a01ec['rawFlags'][_0x127bfb(0xbc)][_0x127bfb(0xc9)]()||productEnv('APPCODE');if(_0xc34cf4||_0x4a01ec[_0x127bfb(0x9c)]===_0x127bfb(0xc4))return _0x62fcf;const {getRemoteAppList:_0x57d226}=await import(_0x127bfb(0xc5)),_0x33a0da=await _0x57d226({'env':_0x4a01ec[_0x127bfb(0x98)]??'production','accessKey':_0x4a01ec['accessKey']}),_0x46f365=findAppByName(_0x33a0da['items'],_0x156733);if(_0x46f365&&!isRuntimeAccessibleApp(_0x46f365))throw runtimeInaccessibleAppError(_0x46f365,'\x22'+_0x156733+'\x22');const _0x2cb79c=_0x46f365?.[_0x127bfb(0xc1)]?.[_0x127bfb(0xc9)]();if(_0x2cb79c)return _0x2cb79c;throw CliErrors[_0x127bfb(0xa5)]('Unknown\x20app:\x20'+_0x156733,_0x127bfb(0x97)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x156733+_0x127bfb(0xb8)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5aca4a,_0x1d8b2d){const _0x3a55b4=a79_0x32e76c;if(_0x5aca4a[_0x3a55b4(0x99)]===![]||!_0x1d8b2d['accessKey'])return;const _0x455881=(typeof _0x1d8b2d[_0x3a55b4(0xa4)][_0x3a55b4(0xc0)]===_0x3a55b4(0xc2)&&_0x1d8b2d[_0x3a55b4(0xa4)][_0x3a55b4(0xc0)][_0x3a55b4(0xc9)]()?_0x1d8b2d[_0x3a55b4(0xa4)]['app']:_0x1d8b2d[_0x3a55b4(0xb7)]?.['currentApp']??_0x1d8b2d['mergedCli']?.[_0x3a55b4(0xbf)])?.[_0x3a55b4(0xc9)]();if(!_0x455881)return;const {getRemoteAppList:_0x563760}=await import(_0x3a55b4(0xc5)),_0x113574=await _0x563760({'env':_0x1d8b2d[_0x3a55b4(0x98)]??_0x3a55b4(0xa1),'accessKey':_0x1d8b2d[_0x3a55b4(0xca)]}),_0x59c546=findAppByName(_0x113574[_0x3a55b4(0xa7)],_0x455881);if(_0x59c546&&!isRuntimeAccessibleApp(_0x59c546))throw runtimeInaccessibleAppError(_0x59c546,'\x22'+_0x455881+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x23c064,_0x3430cc,_0x19d5e4){const _0x5ab310=a79_0x32e76c;if(_0x23c064[_0x5ab310(0x99)]===![]||!_0x3430cc[_0x5ab310(0xca)])return;const {getRemoteAppList:_0xc777d1}=await import(_0x5ab310(0xc5)),_0x330382=await _0xc777d1({'env':_0x3430cc[_0x5ab310(0x98)]??_0x5ab310(0xa1),'accessKey':_0x3430cc['accessKey']}),_0x3aa985=findAppByCode(_0x330382[_0x5ab310(0xa7)],_0x19d5e4);if(_0x3aa985&&!isRuntimeAccessibleApp(_0x3aa985))throw runtimeInaccessibleAppError(_0x3aa985,_0x5ab310(0x96)+_0x19d5e4+'\x22');}export async function runCommand(_0x9a0279,_0x3800aa){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x9a0279)?withUpdateNotice(_0x9a0279):_0x9a0279,_0x3800aa,runnerAdapter);}function a79_0xfd72(){const _0x20b5b7=['local-alias','../commands/app/remote-source.js','../core/sdk-client.js','\x20or\x20pass\x20','3989262rAZCLu','trim','accessKey','nonInteractive','731619gLXqSn','update','High-risk\x20operation\x20`','ACCESS_KEY','apiDomain','doctor','has','../core/api-client.js','1242171IGBIZc','verbose','appcode\x20\x22','Run\x20`','env','requiresAppCode','pageSize','Set\x20accessKey\x20in\x20','appCodeSource','authRequired','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','cancelled','catch','production','defaultVerbose','command','rawFlags','validation','filter','items','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','format','4640634OyYbBK','8BtDRNE','newConfigFileName','2349104lAXIQt','currentApp','configMissing','requiresAuth','resolve','execute','_notice','5UxVUHk','\x20\x20To\x20proceed:\x20','name','mergedCli','.appcode\x20to\x20','riskLevel','269581flLwrx','880892TbmOMv','appcode','object','pretty','defaultApp','app','appCode','string','service'];a79_0xfd72=function(){return _0x20b5b7;};return a79_0xfd72();}function shouldAttachUpdateNotice(_0x50e322){const _0x375f28=a79_0x32e76c;return![_0x375f28(0xcd),'schema',_0x375f28(0xd1)]['includes'](_0x50e322[_0x375f28(0xc3)]);}function withUpdateNotice(_0xdca3a3){return{..._0xdca3a3,async 'execute'(_0x5410e4){const _0x530a26=a79_0x3fc6,_0x1b1384=shouldResolveUpdateNotice(_0x5410e4)?resolveLatestUpdateNotice()[_0x530a26(0xa0)](()=>null):Promise[_0x530a26(0xb1)](null),_0x53e7ec=await _0xdca3a3[_0x530a26(0xb2)](_0x5410e4);return attachUpdateNotice(_0x53e7ec,await _0x1b1384);}};}function shouldResolveUpdateNotice(_0x1791b8){const _0xc692a8=a79_0x32e76c;return _0x1791b8[_0xc692a8(0xa9)]===_0xc692a8(0xbe)&&!_0x1791b8[_0xc692a8(0xcb)];}function attachUpdateNotice(_0x2b9127,_0x2d0022){const _0x341b9f=a79_0x32e76c;if(!_0x2d0022||!_0x2b9127||typeof _0x2b9127!==_0x341b9f(0xbd))return _0x2b9127;const _0x110d55=_0x2b9127,_0x1bbcca=typeof _0x110d55[_0x341b9f(0xb3)]===_0x341b9f(0xbd)&&_0x110d55[_0x341b9f(0xb3)]!==null?_0x110d55['_notice']:{};return{..._0x110d55,'_notice':{..._0x1bbcca,'update':_0x2d0022}};}
1
+ const a79_0x2bdfb8=a79_0xf82d;(function(_0x1cb684,_0x30cd75){const _0x29b782=a79_0xf82d,_0x92b52f=_0x1cb684();while(!![]){try{const _0xb4fa8b=parseInt(_0x29b782(0xaf))/0x1*(-parseInt(_0x29b782(0x91))/0x2)+-parseInt(_0x29b782(0xaa))/0x3*(-parseInt(_0x29b782(0xb5))/0x4)+parseInt(_0x29b782(0xb0))/0x5+-parseInt(_0x29b782(0x96))/0x6+parseInt(_0x29b782(0xce))/0x7+-parseInt(_0x29b782(0xa5))/0x8*(parseInt(_0x29b782(0xa9))/0x9)+-parseInt(_0x29b782(0xcc))/0xa*(parseInt(_0x29b782(0xd1))/0xb);if(_0xb4fa8b===_0x30cd75)break;else _0x92b52f['push'](_0x92b52f['shift']());}catch(_0x164f7e){_0x92b52f['push'](_0x92b52f['shift']());}}}(a79_0x5f06,0xa7cd8));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(_0x3e0131){return void _0x3e0131,AUTH_MODE['ClientAk'];}export function createPipelineEnv(_0x274ef7,_0x5aa787){const _0x1e7680=a79_0xf82d,_0x5d9758=typeof _0x5aa787[_0x1e7680(0xbd)]===_0x1e7680(0x9c)&&_0x5aa787[_0x1e7680(0xbd)][_0x1e7680(0x9d)]();return{'rawFlags':_0x5aa787,'appCode':_0x274ef7[_0x1e7680(0x9a)]||productEnv(_0x1e7680(0x9b))||(_0x5d9758?undefined:readAppCodeFromConfig()),'appCodeSource':_0x274ef7['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x5aa787),'defaultFormat':_0x274ef7[_0x1e7680(0xa8)],'defaultPageSize':_0x274ef7[_0x1e7680(0xa3)],'defaultVerbose':_0x274ef7[_0x1e7680(0xa1)],'riskLevel':_0x274ef7[_0x1e7680(0xc8)],'accessKey':_0x274ef7['accessKey'],'env':_0x274ef7[_0x1e7680(0xa6)],'mergedCli':{'defaultApp':_0x274ef7[_0x1e7680(0xb6)],'currentApp':_0x274ef7[_0x1e7680(0xb7)],'appCode':_0x274ef7[_0x1e7680(0x9a)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a79_0x2bdfb8(0xc9)](_0x2ad724=>PIPELINE_FLAG_NAMES[a79_0x2bdfb8(0x99)](_0x2ad724[a79_0x2bdfb8(0xcd)]))[a79_0x2bdfb8(0x9e)](({name:_0x2fc279,type:_0x94641c,description:_0x31cb08})=>({'name':_0x2fc279,'type':_0x94641c,'description':_0x31cb08})),'formatOutput':formatOutput,'getCommandLabel'(_0x277016){const _0x379ca8=a79_0x2bdfb8;return CLI_BIN_NAME+'\x20'+_0x277016[_0x379ca8(0x95)]+'\x20'+_0x277016[_0x379ca8(0xad)];},'riskPolicy':{'onViolation'(_0x55b862){const _0x2afefa=a79_0x2bdfb8;console[_0x2afefa(0xc3)](_0x55b862);},'createError'(_0x24efd1){const _0x1b63bd=a79_0x2bdfb8;return CliErrors[_0x1b63bd(0xc4)](_0x24efd1);}},async 'prepare'(_0x52b734,_0x4da0d7){const _0x4eb7fc=a79_0x2bdfb8,_0x3925eb=resolveAuthMode(_0x4da0d7);if(_0x52b734[_0x4eb7fc(0xd2)]!==![]){if(!_0x4da0d7[_0x4eb7fc(0x98)])throw CliErrors[_0x4eb7fc(0xb4)](_0x4eb7fc(0xa7)+PRODUCT_CONFIG['newConfigFileName']+_0x4eb7fc(0x93)+productEnvName(_0x4eb7fc(0xc7))+'.');const {setActiveAK:_0x2e88ef}=await import(_0x4eb7fc(0xa2));_0x2e88ef(_0x4da0d7['accessKey']);}let _0x5288b3='';if(_0x52b734[_0x4eb7fc(0xb2)]!==![]){_0x5288b3=_0x4da0d7['appCode']??'',_0x5288b3=await resolveExplicitAppName(_0x52b734,_0x4da0d7,_0x5288b3);if(!_0x5288b3){await assertSelectedAppNameIsRuntimeAccessible(_0x52b734,_0x4da0d7);throw CliErrors[_0x4eb7fc(0xac)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x4eb7fc(0xb8)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x52b734,_0x4da0d7,_0x5288b3);}if(_0x5288b3){const {initSdkClient:_0x145e58}=await import('../core/sdk-client.js');_0x145e58({'appCode':_0x5288b3,'env':_0x4da0d7[_0x4eb7fc(0xa6)]??'production','accessKey':_0x4da0d7[_0x4eb7fc(0x98)],'authMode':_0x3925eb});}return{'defaults':{'booleans':{'verbose':_0x4da0d7[_0x4eb7fc(0xca)]},'numbers':{'pagesize':_0x4da0d7[_0x4eb7fc(0xa0)]}},'extras':{'appCode':_0x5288b3,'cookie':'','apiDomain':_0x4da0d7['apiDomain'],'apiDir':'','accessKey':_0x4da0d7[_0x4eb7fc(0x98)],'envName':_0x4da0d7[_0x4eb7fc(0xa6)],'mergedCli':_0x4da0d7[_0x4eb7fc(0x9f)]}};},async 'confirmHighRisk'({def:_0x423047,env:_0x2ec29e,flags:_0x2ffd2d,commandLabel:_0x418a4d}){const _0x52c723=a79_0x2bdfb8;if(_0x2ec29e[_0x52c723(0xbc)]){const _0x4a733c=reconstructCommandArgv(_0x423047,_0x2ffd2d);throw CliErrors[_0x52c723(0xa4)](_0x52c723(0x94)+_0x418a4d+_0x52c723(0xc0)+('\x20\x20To\x20proceed:\x20'+_0x4a733c));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x423047,_0x418a4d,_0x2ffd2d),'createCancelledError':_0xff384a=>CliErrors[_0x52c723(0xc4)](_0xff384a)});},'mapDryRunError'(_0x1592f1){return mapUserFacingExecuteError(_0x1592f1);},'mapExecuteError'(_0x9f0629){return mapUserFacingExecuteError(_0x9f0629);},async 'finalize'(){const _0x45b1b1=a79_0x2bdfb8,{clearActiveAK:_0x1357dc}=await import(_0x45b1b1(0xa2));_0x1357dc();}};async function resolveExplicitAppName(_0x1918d5,_0x310cd1,_0x1fcc6c){const _0x56da54=a79_0x2bdfb8;if(_0x1918d5['requiresAppCode']===![])return _0x1fcc6c;const _0x27ca88=typeof _0x310cd1['rawFlags']['app']===_0x56da54(0x9c)?_0x310cd1[_0x56da54(0xbb)][_0x56da54(0xbd)][_0x56da54(0x9d)]():'';if(!_0x27ca88)return _0x1fcc6c;const _0x37b1c4=typeof _0x310cd1[_0x56da54(0xbb)][_0x56da54(0xb9)]===_0x56da54(0x9c)&&_0x310cd1[_0x56da54(0xbb)][_0x56da54(0xb9)][_0x56da54(0x9d)]()||productEnv(_0x56da54(0x9b));if(_0x37b1c4||_0x310cd1[_0x56da54(0x97)]===_0x56da54(0xc1))return _0x1fcc6c;const {getRemoteAppList:_0x33bba}=await import(_0x56da54(0xb1)),_0x2a168b=await _0x33bba({'env':_0x310cd1[_0x56da54(0xa6)]??_0x56da54(0xab),'accessKey':_0x310cd1[_0x56da54(0x98)]}),_0x1a5812=findAppByName(_0x2a168b[_0x56da54(0xcf)],_0x27ca88);if(_0x1a5812&&!isRuntimeAccessibleApp(_0x1a5812))throw runtimeInaccessibleAppError(_0x1a5812,'\x22'+_0x27ca88+'\x22');const _0x44be31=_0x1a5812?.[_0x56da54(0x9a)]?.[_0x56da54(0x9d)]();if(_0x44be31)return _0x44be31;throw CliErrors[_0x56da54(0xa4)](_0x56da54(0xb3)+_0x27ca88,'Run\x20`'+CLI_BIN_NAME+_0x56da54(0xc2)+_0x27ca88+_0x56da54(0xbe)+PRODUCT_CONFIG['newConfigFileName']+'.');}function a79_0xf82d(_0x4f90a0,_0x3b5157){_0x4f90a0=_0x4f90a0-0x91;const _0x5f065f=a79_0x5f06();let _0xf82d5d=_0x5f065f[_0x4f90a0];return _0xf82d5d;}async function assertSelectedAppNameIsRuntimeAccessible(_0x46c6fe,_0x2fc510){const _0x444d9c=a79_0x2bdfb8;if(_0x46c6fe[_0x444d9c(0xb2)]===![]||!_0x2fc510['accessKey'])return;const _0x54b049=(typeof _0x2fc510[_0x444d9c(0xbb)][_0x444d9c(0xbd)]===_0x444d9c(0x9c)&&_0x2fc510[_0x444d9c(0xbb)][_0x444d9c(0xbd)][_0x444d9c(0x9d)]()?_0x2fc510[_0x444d9c(0xbb)]['app']:_0x2fc510['mergedCli']?.[_0x444d9c(0xb7)]??_0x2fc510['mergedCli']?.['defaultApp'])?.[_0x444d9c(0x9d)]();if(!_0x54b049)return;const {getRemoteAppList:_0x1a0eb4}=await import(_0x444d9c(0xb1)),_0x303d31=await _0x1a0eb4({'env':_0x2fc510[_0x444d9c(0xa6)]??_0x444d9c(0xab),'accessKey':_0x2fc510[_0x444d9c(0x98)]}),_0x1541b9=findAppByName(_0x303d31['items'],_0x54b049);if(_0x1541b9&&!isRuntimeAccessibleApp(_0x1541b9))throw runtimeInaccessibleAppError(_0x1541b9,'\x22'+_0x54b049+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x444059,_0x1f44da,_0x6a2a9f){const _0x32f067=a79_0x2bdfb8;if(_0x444059[_0x32f067(0xb2)]===![]||!_0x1f44da['accessKey'])return;const {getRemoteAppList:_0x48f1a6}=await import('../commands/app/remote-source.js'),_0x292e30=await _0x48f1a6({'env':_0x1f44da[_0x32f067(0xa6)]??_0x32f067(0xab),'accessKey':_0x1f44da['accessKey']}),_0x1fd336=findAppByCode(_0x292e30['items'],_0x6a2a9f);if(_0x1fd336&&!isRuntimeAccessibleApp(_0x1fd336))throw runtimeInaccessibleAppError(_0x1fd336,_0x32f067(0xd0)+_0x6a2a9f+'\x22');}function a79_0x5f06(){const _0x577abd=['../core/api-client.js','pageSize','validation','2758208SDypBx','env','Set\x20accessKey\x20in\x20','format','9qjmKKC','57HUAAuP','production','configMissing','command','includes','1583fIlFOY','4705025BGJmwy','../commands/app/remote-source.js','requiresAppCode','Unknown\x20app:\x20','authRequired','232332BUQLbS','defaultApp','currentApp','newConfigFileName','appcode','schema','rawFlags','isNonInteractive','app','.appcode\x20to\x20','update','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','local-alias','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','error','cancelled','_notice','execute','ACCESS_KEY','riskLevel','filter','defaultVerbose','object','7112710RTkHGT','name','8522899kNCdDm','items','appcode\x20\x22','33viTCtG','requiresAuth','106FUkvTT','resolve','\x20or\x20pass\x20','High-risk\x20operation\x20`','service','73986QjJfLI','appCodeSource','accessKey','has','appCode','APPCODE','string','trim','map','mergedCli','defaultPageSize','verbose'];a79_0x5f06=function(){return _0x577abd;};return a79_0x5f06();}export async function runCommand(_0x23dad3,_0x23fc84){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x23dad3)?withUpdateNotice(_0x23dad3):_0x23dad3,_0x23fc84,runnerAdapter);}function shouldAttachUpdateNotice(_0x23dad6){const _0x2add5f=a79_0x2bdfb8;return![_0x2add5f(0xbf),_0x2add5f(0xba),'doctor'][_0x2add5f(0xae)](_0x23dad6['service']);}function withUpdateNotice(_0x325bc1){return{..._0x325bc1,async 'execute'(_0x3fa56b){const _0x2617f8=a79_0xf82d,_0x4d156e=shouldResolveUpdateNotice(_0x3fa56b)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x2617f8(0x92)](null),_0x212583=await _0x325bc1[_0x2617f8(0xc6)](_0x3fa56b);return attachUpdateNotice(_0x212583,await _0x4d156e);}};}function shouldResolveUpdateNotice(_0x2f6c58){const _0x3dfd2f=a79_0x2bdfb8;return _0x2f6c58[_0x3dfd2f(0xa8)]==='pretty'&&!_0x2f6c58['nonInteractive'];}function attachUpdateNotice(_0x12d0e6,_0x11ba23){const _0x34ed26=a79_0x2bdfb8;if(!_0x11ba23||!_0x12d0e6||typeof _0x12d0e6!==_0x34ed26(0xcb))return _0x12d0e6;const _0x59a3db=_0x12d0e6,_0x1a8215=typeof _0x59a3db[_0x34ed26(0xc5)]===_0x34ed26(0xcb)&&_0x59a3db[_0x34ed26(0xc5)]!==null?_0x59a3db[_0x34ed26(0xc5)]:{};return{..._0x59a3db,'_notice':{..._0x1a8215,'update':_0x11ba23}};}
@@ -1 +1 @@
1
- (function(_0xc9ea1b,_0x12211d){const _0x4ec586=a80_0x54b2,_0x3aabb1=_0xc9ea1b();while(!![]){try{const _0x34dfbe=parseInt(_0x4ec586(0x19a))/0x1+-parseInt(_0x4ec586(0x1a5))/0x2*(parseInt(_0x4ec586(0x19e))/0x3)+parseInt(_0x4ec586(0x19d))/0x4*(parseInt(_0x4ec586(0x1a1))/0x5)+parseInt(_0x4ec586(0x194))/0x6+parseInt(_0x4ec586(0x195))/0x7+parseInt(_0x4ec586(0x196))/0x8*(-parseInt(_0x4ec586(0x1a0))/0x9)+-parseInt(_0x4ec586(0x1a7))/0xa;if(_0x34dfbe===_0x12211d)break;else _0x3aabb1['push'](_0x3aabb1['shift']());}catch(_0x51ac23){_0x3aabb1['push'](_0x3aabb1['shift']());}}}(a80_0x98db,0xe03c8));function a80_0x98db(){const _0x10c430=['../commands/registry.js','required','auth','452805LUbKCx','filter','commands','2923028WDozVC','3tkjnXB','requiresAuth','6204294dutADn','5gNFLQS','service','none','services','1195406piQMQq','has','1416330mYbzWc','map','5354358nMwHsM','1898533DBSYCP','8IcGKOd'];a80_0x98db=function(){return _0x10c430;};return a80_0x98db();}import{buildSchemaPayload as a80_0x33da8b}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a80_0x54b2(_0x4c179a,_0x489ce8){_0x4c179a=_0x4c179a-0x193;const _0x98db36=a80_0x98db();let _0x54b22=_0x98db36[_0x4c179a];return _0x54b22;}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 _0x16e221=a80_0x54b2,{serviceRegistry:_0xa2bfc4,findDefinition:_0x33705a}=await import(_0x16e221(0x197)),_0x37b00b=new Set(_0xa2bfc4[_0x16e221(0x193)](_0x1b4dbd=>_0x1b4dbd[_0x16e221(0x1a2)])),_0x418e2f=listDynamicServiceEntries()[_0x16e221(0x19b)](_0x1dfdf0=>!_0x37b00b[_0x16e221(0x1a6)](_0x1dfdf0[_0x16e221(0x1a2)])),_0x4187fc=a80_0x33da8b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0xa2bfc4,..._0x418e2f],'buildAllFlags':buildAllFlags,'findDefinition':(_0x4fe812,_0x412fac)=>_0x33705a(_0x4fe812,_0x412fac)??findDynamicServiceDefinition(_0x4fe812,_0x412fac)});return normalizeSchemaPayload(_0x4187fc);}function normalizeSchemaPayload(_0x4d29e3){const _0x44b7eb=a80_0x54b2;return{..._0x4d29e3,'schemaVersion':0x2,'services':_0x4d29e3[_0x44b7eb(0x1a4)][_0x44b7eb(0x193)](_0x163c79=>({..._0x163c79,'commands':_0x163c79[_0x44b7eb(0x19c)][_0x44b7eb(0x193)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x8c002e){const _0x27a7ae=a80_0x54b2,_0x1af806=_0x8c002e;return{..._0x8c002e,'auth':_0x1af806[_0x27a7ae(0x199)]??(_0x8c002e[_0x27a7ae(0x19f)]?_0x27a7ae(0x198):_0x27a7ae(0x1a3))};}
1
+ function a80_0x4911(_0x36ba26,_0x8a2e62){_0x36ba26=_0x36ba26-0x66;const _0x282036=a80_0x2820();let _0x49119d=_0x282036[_0x36ba26];return _0x49119d;}(function(_0x434f2c,_0x41231b){const _0x5aeccc=a80_0x4911,_0x230cf6=_0x434f2c();while(!![]){try{const _0x1a9c19=-parseInt(_0x5aeccc(0x76))/0x1+parseInt(_0x5aeccc(0x67))/0x2+parseInt(_0x5aeccc(0x73))/0x3*(parseInt(_0x5aeccc(0x6d))/0x4)+parseInt(_0x5aeccc(0x77))/0x5*(parseInt(_0x5aeccc(0x69))/0x6)+parseInt(_0x5aeccc(0x68))/0x7+-parseInt(_0x5aeccc(0x6a))/0x8+-parseInt(_0x5aeccc(0x72))/0x9*(-parseInt(_0x5aeccc(0x6f))/0xa);if(_0x1a9c19===_0x41231b)break;else _0x230cf6['push'](_0x230cf6['shift']());}catch(_0x3a81e9){_0x230cf6['push'](_0x230cf6['shift']());}}}(a80_0x2820,0x6ea4e));import{buildSchemaPayload as a80_0x42e759}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a80_0x2820(){const _0xd814fb=['has','required','467034uRtzbZ','3134145LlLBkT','services','service','42822HBtlfW','844221qdkeLL','6sItuye','4322968foLDkJ','filter','commands','1842948AblsTT','map','2310230iLPvkS','none','auth','9BFlKmm','3XecocD'];a80_0x2820=function(){return _0xd814fb;};return a80_0x2820();}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 _0x2faf46=a80_0x4911,{serviceRegistry:_0x576057,findDefinition:_0x4e8243}=await import('../commands/registry.js'),_0x3b9ddf=new Set(_0x576057['map'](_0x3b52c8=>_0x3b52c8[_0x2faf46(0x66)])),_0x32deff=listDynamicServiceEntries()[_0x2faf46(0x6b)](_0x2effe4=>!_0x3b9ddf[_0x2faf46(0x74)](_0x2effe4[_0x2faf46(0x66)])),_0x2f0a3e=a80_0x42e759({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x576057,..._0x32deff],'buildAllFlags':buildAllFlags,'findDefinition':(_0x3c66e8,_0x4fa23c)=>_0x4e8243(_0x3c66e8,_0x4fa23c)??findDynamicServiceDefinition(_0x3c66e8,_0x4fa23c)});return normalizeSchemaPayload(_0x2f0a3e);}function normalizeSchemaPayload(_0x59b4a2){const _0x56f368=a80_0x4911;return{..._0x59b4a2,'schemaVersion':0x2,'services':_0x59b4a2[_0x56f368(0x78)][_0x56f368(0x6e)](_0x56f987=>({..._0x56f987,'commands':_0x56f987[_0x56f368(0x6c)][_0x56f368(0x6e)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x29b712){const _0xd8d6f4=a80_0x4911,_0x58a53f=_0x29b712;return{..._0x29b712,'auth':_0x58a53f[_0xd8d6f4(0x71)]??(_0x29b712['requiresAuth']?_0xd8d6f4(0x75):_0xd8d6f4(0x70))};}
@@ -1 +1 @@
1
- function a81_0x1511(_0x3b1448,_0x55c8b5){_0x3b1448=_0x3b1448-0x167;var _0x261fd3=a81_0x261f();var _0x151148=_0x261fd3[_0x3b1448];return _0x151148;}(function(_0x32d759,_0x124660){var _0x40cad5=a81_0x1511,_0x2601bb=_0x32d759();while(!![]){try{var _0x4d56f7=parseInt(_0x40cad5(0x171))/0x1+parseInt(_0x40cad5(0x168))/0x2+parseInt(_0x40cad5(0x167))/0x3*(parseInt(_0x40cad5(0x16b))/0x4)+-parseInt(_0x40cad5(0x16a))/0x5+-parseInt(_0x40cad5(0x16e))/0x6*(-parseInt(_0x40cad5(0x169))/0x7)+-parseInt(_0x40cad5(0x170))/0x8*(parseInt(_0x40cad5(0x16d))/0x9)+parseInt(_0x40cad5(0x16c))/0xa*(-parseInt(_0x40cad5(0x16f))/0xb);if(_0x4d56f7===_0x124660)break;else _0x2601bb['push'](_0x2601bb['shift']());}catch(_0x9de697){_0x2601bb['push'](_0x2601bb['shift']());}}}(a81_0x261f,0xd54fb));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a81_0x261f(){var _0x722adf=['1973164TgaxcT','10RpSEYt','45ZkXHls','10481298TZxRGc','6430699EXEpBO','2269400AzXOCj','698811abqJob','9uXuJax','925072NsSeLP','7GvVYEJ','7556980xQPNgJ'];a81_0x261f=function(){return _0x722adf;};return a81_0x261f();}
1
+ (function(_0x49c8af,_0x3ecbea){var _0x1f47f5=a81_0x3330,_0x44da8b=_0x49c8af();while(!![]){try{var _0x33d0a=parseInt(_0x1f47f5(0xcc))/0x1*(-parseInt(_0x1f47f5(0xc9))/0x2)+parseInt(_0x1f47f5(0xcd))/0x3*(-parseInt(_0x1f47f5(0xd1))/0x4)+parseInt(_0x1f47f5(0xcb))/0x5+-parseInt(_0x1f47f5(0xce))/0x6+-parseInt(_0x1f47f5(0xc7))/0x7*(-parseInt(_0x1f47f5(0xd0))/0x8)+-parseInt(_0x1f47f5(0xcf))/0x9*(-parseInt(_0x1f47f5(0xc8))/0xa)+parseInt(_0x1f47f5(0xca))/0xb;if(_0x33d0a===_0x3ecbea)break;else _0x44da8b['push'](_0x44da8b['shift']());}catch(_0x40a560){_0x44da8b['push'](_0x44da8b['shift']());}}}(a81_0x2295,0x2bf07));function a81_0x2295(){var _0x44bab4=['1713726cEpncb','9MRrnBW','292128qBFEJK','584392qvXnqo','56bjAmwy','2308190Dobaaz','124RLVejJ','386771hgnnaI','703480ErhToV','1405ggeqwc','3lnliJt'];a81_0x2295=function(){return _0x44bab4;};return a81_0x2295();}function a81_0x3330(_0x8cf62,_0xa38b33){_0x8cf62=_0x8cf62-0xc7;var _0x22955d=a81_0x2295();var _0x3330fb=_0x22955d[_0x8cf62];return _0x3330fb;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a82_0x2cbffe=a82_0x13e2;function a82_0x4027(){const _0xb5a579=['82644uAhGaT','2026-07-06T10:14:11.424Z','10822dQjkcc','1379574BiRQJp','v2.1.6-beta.6','172kZYgJO','2.1.6-beta.6','fbf285c','557757JMFIWk','20105QhqBYV','5080851DmNujj','293887ddssze','1840synfwy'];a82_0x4027=function(){return _0xb5a579;};return a82_0x4027();}(function(_0x5957ec,_0x4d295e){const _0x29bdfa=a82_0x13e2,_0x402e7e=_0x5957ec();while(!![]){try{const _0x3aef53=-parseInt(_0x29bdfa(0x75))/0x1+parseInt(_0x29bdfa(0x77))/0x2+parseInt(_0x29bdfa(0x72))/0x3+parseInt(_0x29bdfa(0x7c))/0x4*(-parseInt(_0x29bdfa(0x73))/0x5)+parseInt(_0x29bdfa(0x7a))/0x6+-parseInt(_0x29bdfa(0x79))/0x7*(parseInt(_0x29bdfa(0x76))/0x8)+parseInt(_0x29bdfa(0x74))/0x9;if(_0x3aef53===_0x4d295e)break;else _0x402e7e['push'](_0x402e7e['shift']());}catch(_0x24419d){_0x402e7e['push'](_0x402e7e['shift']());}}}(a82_0x4027,0x30aab));function a82_0x13e2(_0xa92fdb,_0x1a4917){_0xa92fdb=_0xa92fdb-0x70;const _0x4027ba=a82_0x4027();let _0x13e222=_0x4027ba[_0xa92fdb];return _0x13e222;}export const VERSION=a82_0x2cbffe(0x70);export const GIT_TAG=a82_0x2cbffe(0x7b);export const GIT_COMMIT=a82_0x2cbffe(0x71);export const BUILD_TIME=a82_0x2cbffe(0x78);
1
+ const a82_0x1a0c67=a82_0x1f2c;function a82_0xa9b8(){const _0x21be54=['851956rPEdpC','3039573AYPzth','4855725RmiimQ','2.1.6','110phfrux','2026-07-06T10:21:19.583Z','v2.1.6-beta.6','235OitaTA','9887507xUTjMA','2468873txQqcD','5143512dgcUUr','2WBcuXC','157170gkSNwy','8zMjyqU'];a82_0xa9b8=function(){return _0x21be54;};return a82_0xa9b8();}function a82_0x1f2c(_0x51394d,_0x12f09a){_0x51394d=_0x51394d-0x155;const _0xa9b898=a82_0xa9b8();let _0x1f2c8d=_0xa9b898[_0x51394d];return _0x1f2c8d;}(function(_0x26f8e7,_0x3bde1f){const _0xaaaba1=a82_0x1f2c,_0x4a201f=_0x26f8e7();while(!![]){try{const _0x29a173=-parseInt(_0xaaaba1(0x159))/0x1*(-parseInt(_0xaaaba1(0x15c))/0x2)+-parseInt(_0xaaaba1(0x15d))/0x3+parseInt(_0xaaaba1(0x158))/0x4+-parseInt(_0xaaaba1(0x155))/0x5*(-parseInt(_0xaaaba1(0x15a))/0x6)+parseInt(_0xaaaba1(0x156))/0x7*(parseInt(_0xaaaba1(0x15b))/0x8)+-parseInt(_0xaaaba1(0x15e))/0x9+-parseInt(_0xaaaba1(0x160))/0xa*(parseInt(_0xaaaba1(0x157))/0xb);if(_0x29a173===_0x3bde1f)break;else _0x4a201f['push'](_0x4a201f['shift']());}catch(_0x48952d){_0x4a201f['push'](_0x4a201f['shift']());}}}(a82_0xa9b8,0xb9867));export const VERSION=a82_0x1a0c67(0x15f);export const GIT_TAG=a82_0x1a0c67(0x162);export const GIT_COMMIT='fbf285c';export const BUILD_TIME=a82_0x1a0c67(0x161);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x38adc3,_0x1e8b24){const _0x29bec6=a83_0x300e,_0x4c65a3=_0x38adc3();while(!![]){try{const _0x1a101b=parseInt(_0x29bec6(0x1e7))/0x1*(parseInt(_0x29bec6(0x1e1))/0x2)+parseInt(_0x29bec6(0x1dc))/0x3*(-parseInt(_0x29bec6(0x1db))/0x4)+-parseInt(_0x29bec6(0x1e4))/0x5+parseInt(_0x29bec6(0x1e0))/0x6*(parseInt(_0x29bec6(0x1e2))/0x7)+parseInt(_0x29bec6(0x1df))/0x8+parseInt(_0x29bec6(0x1d9))/0x9+parseInt(_0x29bec6(0x1e6))/0xa*(-parseInt(_0x29bec6(0x1e3))/0xb);if(_0x1a101b===_0x1e8b24)break;else _0x4c65a3['push'](_0x4c65a3['shift']());}catch(_0x5ca0b7){_0x4c65a3['push'](_0x4c65a3['shift']());}}}(a83_0x4940,0x9a67c));function a83_0x4940(){const _0x6fcbd9=['2838130bCazcB','green','6700250tRCQoS','312192OwEojM','\x20\x20Use\x20','4363074RvNIQS','column','2720188dkAECA','3KSvZvc','\x20--help','\x20to\x20view\x20available\x20commands.','3687304ZvRtUe','4007202SpQQdJ','6XMFpTP','7DpkCMZ','11tdfGtk'];a83_0x4940=function(){return _0x6fcbd9;};return a83_0x4940();}import{jsx as a83_0x47a10d,jsxs as a83_0x349270}from'react/jsx-runtime';function a83_0x300e(_0x19a2db,_0x42558f){_0x19a2db=_0x19a2db-0x1d9;const _0x49402b=a83_0x4940();let _0x300e09=_0x49402b[_0x19a2db];return _0x300e09;}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x513d2c=a83_0x300e,{exit:_0x28f075}=useApp();return useEffect(()=>{_0x28f075();},[_0x28f075]),a83_0x349270(Box,{'flexDirection':_0x513d2c(0x1da),'marginTop':0x1,'marginBottom':0x1,'children':[a83_0x47a10d(Box,{'children':a83_0x47a10d(Text,{'bold':!![],'color':_0x513d2c(0x1e5),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x349270(Box,{'marginTop':0x1,'children':[a83_0x47a10d(Text,{'dimColor':!![],'children':_0x513d2c(0x1e8)}),a83_0x47a10d(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x513d2c(0x1dd)}),a83_0x47a10d(Text,{'dimColor':!![],'children':_0x513d2c(0x1de)})]})]});}
1
+ function a83_0x52ed(_0x144e4a,_0x1b59f8){_0x144e4a=_0x144e4a-0xa2;const _0x466ee7=a83_0x466e();let _0x52ed42=_0x466ee7[_0x144e4a];return _0x52ed42;}function a83_0x466e(){const _0x25ac04=['188872YPuXiz','7565010dLQIeG','9LAIksK','\x20\x20Use\x20','12sAiLEN','1189456kWtXtZ','2168992pPtosl','green','11dTyWUx','\x20--help','1426971hSkswH','3zGZyvL','1792876TzOPwh','437875elLpfF'];a83_0x466e=function(){return _0x25ac04;};return a83_0x466e();}(function(_0x48960e,_0x268a34){const _0x591a2f=a83_0x52ed,_0x47ca2a=_0x48960e();while(!![]){try{const _0x2dac47=parseInt(_0x591a2f(0xaf))/0x1+parseInt(_0x591a2f(0xa6))/0x2+-parseInt(_0x591a2f(0xac))/0x3*(parseInt(_0x591a2f(0xad))/0x4)+parseInt(_0x591a2f(0xae))/0x5*(-parseInt(_0x591a2f(0xa5))/0x6)+-parseInt(_0x591a2f(0xab))/0x7+-parseInt(_0x591a2f(0xa7))/0x8*(parseInt(_0x591a2f(0xa3))/0x9)+-parseInt(_0x591a2f(0xa2))/0xa*(-parseInt(_0x591a2f(0xa9))/0xb);if(_0x2dac47===_0x268a34)break;else _0x47ca2a['push'](_0x47ca2a['shift']());}catch(_0x322066){_0x47ca2a['push'](_0x47ca2a['shift']());}}}(a83_0x466e,0x6bd9b));import{jsx as a83_0x72c405,jsxs as a83_0x20fb57}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x581b9a=a83_0x52ed,{exit:_0x2f4b1e}=useApp();return useEffect(()=>{_0x2f4b1e();},[_0x2f4b1e]),a83_0x20fb57(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a83_0x72c405(Box,{'children':a83_0x72c405(Text,{'bold':!![],'color':_0x581b9a(0xa8),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x20fb57(Box,{'marginTop':0x1,'children':[a83_0x72c405(Text,{'dimColor':!![],'children':_0x581b9a(0xa4)}),a83_0x72c405(Text,{'bold':!![],'color':_0x581b9a(0xa8),'children':CLI_BIN_NAME+_0x581b9a(0xaa)}),a83_0x72c405(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
@@ -1 +1 @@
1
- function a84_0x20be(){const _0x4626ce=['1226YeHokF','toString','328430iGpaaM','18zwQBep','stdout','295caswAT','log','13521JaFHDa','4015QkdXIo','348DbWZRM','inherit','2303968yxQUjN','128aVmlRJ','7vvFiZu','4832090RmcDUT','npx','stderr','2841702yRJsvz','exit\x20','add','trim','unknown','skills','status','stdio','skipNpxSkillsEnvSuffix'];a84_0x20be=function(){return _0x4626ce;};return a84_0x20be();}const a84_0x471a54=a84_0x18e5;(function(_0x561957,_0x24ec9d){const _0x353cda=a84_0x18e5,_0x9ff3d=_0x561957();while(!![]){try{const _0x56b092=-parseInt(_0x353cda(0x1e5))/0x1*(parseInt(_0x353cda(0x1e0))/0x2)+-parseInt(_0x353cda(0x1e7))/0x3*(-parseInt(_0x353cda(0x1ec))/0x4)+-parseInt(_0x353cda(0x1e2))/0x5+parseInt(_0x353cda(0x1d7))/0x6*(parseInt(_0x353cda(0x1ed))/0x7)+-parseInt(_0x353cda(0x1eb))/0x8*(parseInt(_0x353cda(0x1e3))/0x9)+parseInt(_0x353cda(0x1ee))/0xa+-parseInt(_0x353cda(0x1e8))/0xb*(-parseInt(_0x353cda(0x1e9))/0xc);if(_0x56b092===_0x24ec9d)break;else _0x9ff3d['push'](_0x9ff3d['shift']());}catch(_0x16c18){_0x9ff3d['push'](_0x9ff3d['shift']());}}}(a84_0x20be,0x46962));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a84_0x1278ef}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a84_0x1278ef;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a84_0x471a54(0x1df)]);function a84_0x18e5(_0x5d12dd,_0x26cd95){_0x5d12dd=_0x5d12dd-0x1d7;const _0x20be18=a84_0x20be();let _0x18e5c4=_0x20be18[_0x5d12dd];return _0x18e5c4;}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x326af8,_0x5285f8=LOVRABET_SKILL_SOURCE,_0x21e0e2){const _0x368379=a84_0x471a54;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x26ed5f=_0x21e0e2?.[_0x368379(0x1de)]??_0x368379(0x1ea),_0x320b84=resolveNpmBin(_0x368379(0x1ef)),_0x2371a4=[_0x368379(0x1dc),_0x368379(0x1d9),_0x5285f8,'-g','-y'],_0x1d0a05=[_0x320b84,..._0x2371a4]['join']('\x20');console[_0x368379(0x1e6)]('*\x20'+_0x1d0a05);const _0x15d471=spawnSync(_0x320b84,_0x2371a4,{'cwd':_0x326af8,'stdio':_0x26ed5f,'env':process.env,'shell':![]});if(_0x15d471[_0x368379(0x1dd)]===0x0)return{'ok':!![],'status':0x0};let _0x236b47=_0x368379(0x1d8)+(_0x15d471[_0x368379(0x1dd)]??_0x368379(0x1db));if(_0x26ed5f==='pipe'){const _0x1860d0=_0x15d471[_0x368379(0x1f0)]?_0x15d471[_0x368379(0x1f0)][_0x368379(0x1e1)]()[_0x368379(0x1da)]():'',_0x1ff241=_0x15d471[_0x368379(0x1e4)]?_0x15d471[_0x368379(0x1e4)][_0x368379(0x1e1)]()[_0x368379(0x1da)]():'';if(_0x1860d0)_0x236b47=_0x1860d0;else{if(_0x1ff241)_0x236b47=_0x1ff241;}}return{'ok':![],'status':_0x15d471['status']??null,'error':_0x236b47};}
1
+ const a84_0x510ca2=a84_0x3c94;(function(_0x2c142c,_0x47c19f){const _0x32e6d1=a84_0x3c94,_0x3244c6=_0x2c142c();while(!![]){try{const _0x32231d=parseInt(_0x32e6d1(0x1f1))/0x1*(-parseInt(_0x32e6d1(0x1f0))/0x2)+-parseInt(_0x32e6d1(0x1ed))/0x3*(-parseInt(_0x32e6d1(0x1e6))/0x4)+-parseInt(_0x32e6d1(0x1df))/0x5+parseInt(_0x32e6d1(0x1e4))/0x6+parseInt(_0x32e6d1(0x1f2))/0x7+parseInt(_0x32e6d1(0x1e3))/0x8*(parseInt(_0x32e6d1(0x1de))/0x9)+-parseInt(_0x32e6d1(0x1eb))/0xa*(parseInt(_0x32e6d1(0x1dc))/0xb);if(_0x32231d===_0x47c19f)break;else _0x3244c6['push'](_0x3244c6['shift']());}catch(_0x1fd1af){_0x3244c6['push'](_0x3244c6['shift']());}}}(a84_0x5949,0x52bce));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a84_0x270020}from'../constant/distribution.js';function a84_0x5949(){const _0xf0c982=['235000EJrdhP','1836024ezLQGn','toString','8884RQxwGI','unknown','add','exit\x20','log','710HEUrDr','stderr','366rjOlOh','trim','stdio','2WmDuyE','433802gDOUCW','4368896oEkdQa','npx','status','93764VxVqDa','skills','207TNUedZ','2494095vHqcdb','stdout','skipNpxSkillsEnvSuffix','pipe'];a84_0x5949=function(){return _0xf0c982;};return a84_0x5949();}import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a84_0x3c94(_0x5e945d,_0x2ae787){_0x5e945d=_0x5e945d-0x1dc;const _0x5949d4=a84_0x5949();let _0x3c9498=_0x5949d4[_0x5e945d];return _0x3c9498;}export const LOVRABET_SKILL_SOURCE=a84_0x270020;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a84_0x510ca2(0x1e1)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x235ac9,_0x1032b0=LOVRABET_SKILL_SOURCE,_0x2ef65d){const _0x14fdc7=a84_0x510ca2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5c02f6=_0x2ef65d?.[_0x14fdc7(0x1ef)]??'inherit',_0x602649=resolveNpmBin(_0x14fdc7(0x1f3)),_0xb1a454=[_0x14fdc7(0x1dd),_0x14fdc7(0x1e8),_0x1032b0,'-g','-y'],_0x260b2=[_0x602649,..._0xb1a454]['join']('\x20');console[_0x14fdc7(0x1ea)]('*\x20'+_0x260b2);const _0x14a841=spawnSync(_0x602649,_0xb1a454,{'cwd':_0x235ac9,'stdio':_0x5c02f6,'env':process.env,'shell':![]});if(_0x14a841[_0x14fdc7(0x1f4)]===0x0)return{'ok':!![],'status':0x0};let _0x5d242e=_0x14fdc7(0x1e9)+(_0x14a841[_0x14fdc7(0x1f4)]??_0x14fdc7(0x1e7));if(_0x5c02f6===_0x14fdc7(0x1e2)){const _0xe06189=_0x14a841[_0x14fdc7(0x1ec)]?_0x14a841[_0x14fdc7(0x1ec)][_0x14fdc7(0x1e5)]()[_0x14fdc7(0x1ee)]():'',_0x5e21b8=_0x14a841['stdout']?_0x14a841[_0x14fdc7(0x1e0)]['toString']()['trim']():'';if(_0xe06189)_0x5d242e=_0xe06189;else{if(_0x5e21b8)_0x5d242e=_0x5e21b8;}}return{'ok':![],'status':_0x14a841[_0x14fdc7(0x1f4)]??null,'error':_0x5d242e};}
@@ -1 +1 @@
1
- function a85_0x5066(_0x5120e2,_0x3bfc23){_0x5120e2=_0x5120e2-0xf6;const _0x281306=a85_0x2813();let _0x50663e=_0x281306[_0x5120e2];return _0x50663e;}const a85_0x4ad4f8=a85_0x5066;(function(_0x149138,_0x5f9014){const _0x1344c6=a85_0x5066,_0x46e710=_0x149138();while(!![]){try{const _0x39b913=-parseInt(_0x1344c6(0xff))/0x1*(-parseInt(_0x1344c6(0x104))/0x2)+-parseInt(_0x1344c6(0xfc))/0x3+-parseInt(_0x1344c6(0xf7))/0x4*(-parseInt(_0x1344c6(0xfd))/0x5)+-parseInt(_0x1344c6(0x106))/0x6+parseInt(_0x1344c6(0x102))/0x7+-parseInt(_0x1344c6(0x101))/0x8+parseInt(_0x1344c6(0x107))/0x9*(parseInt(_0x1344c6(0xf9))/0xa);if(_0x39b913===_0x5f9014)break;else _0x46e710['push'](_0x46e710['shift']());}catch(_0x510dd4){_0x46e710['push'](_0x46e710['shift']());}}}(a85_0x2813,0x40d96));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE=a85_0x4ad4f8(0x108);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);function a85_0x2813(){const _0x13e376=['.turbo','96310JLLvOV','build','.cache','1021371tjMGkk','80sLVdgo','coverage','4190aNxyIS','node_modules','3860328usHXYN','2636193AyODzl','.hg','6rNDvkZ','.git','367674hsQUQs','630OlwoCO','SKILL.md','dist','21640UTasVl'];a85_0x2813=function(){return _0x13e376;};return a85_0x2813();}export const IGNORED_DIR_NAMES=new Set([a85_0x4ad4f8(0x105),a85_0x4ad4f8(0x103),'.svn',a85_0x4ad4f8(0x100),'.next',a85_0x4ad4f8(0xf6),a85_0x4ad4f8(0xfa),a85_0x4ad4f8(0xfe),a85_0x4ad4f8(0xf8),a85_0x4ad4f8(0xfb)]);
1
+ function a85_0x544c(){const _0xeae59f=['.DS_Store','node_modules','.hg','.cache','SKILL.md','30sTbijA','515632QRXFqt','lovrabet.skill.json','1526UuVBht','4208605qHbOsc','coverage','4948926NBBNyo','584971ddKaTR','3884481YqZvlz','64290guIgct','19960RIqULq','dist','.git'];a85_0x544c=function(){return _0xeae59f;};return a85_0x544c();}const a85_0x32655e=a85_0x4360;(function(_0xe6455d,_0x3dc7cd){const _0x4f5a62=a85_0x4360,_0x4b0383=_0xe6455d();while(!![]){try{const _0x295f21=-parseInt(_0x4f5a62(0x123))/0x1+parseInt(_0x4f5a62(0x113))/0x2*(parseInt(_0x4f5a62(0x11c))/0x3)+-parseInt(_0x4f5a62(0x11d))/0x4+parseInt(_0x4f5a62(0x120))/0x5+-parseInt(_0x4f5a62(0x122))/0x6+-parseInt(_0x4f5a62(0x11f))/0x7*(-parseInt(_0x4f5a62(0x114))/0x8)+parseInt(_0x4f5a62(0x124))/0x9;if(_0x295f21===_0x3dc7cd)break;else _0x4b0383['push'](_0x4b0383['shift']());}catch(_0x525381){_0x4b0383['push'](_0x4b0383['shift']());}}}(a85_0x544c,0x927b6));export const METADATA_FILE=a85_0x32655e(0x11e);export const SKILL_FILE=a85_0x32655e(0x11b);function a85_0x4360(_0x536b9b,_0x37303a){_0x536b9b=_0x536b9b-0x113;const _0x544c49=a85_0x544c();let _0x43604b=_0x544c49[_0x536b9b];return _0x43604b;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0x32655e(0x117)]);export const IGNORED_DIR_NAMES=new Set([a85_0x32655e(0x116),a85_0x32655e(0x119),'.svn',a85_0x32655e(0x118),'.next',a85_0x32655e(0x115),'build',a85_0x32655e(0x121),'.turbo',a85_0x32655e(0x11a)]);
@@ -1 +1 @@
1
- (function(_0x20c898,_0x52634f){const _0x5c60c3=a86_0x4e5b,_0x28b3c2=_0x20c898();while(!![]){try{const _0x486a54=-parseInt(_0x5c60c3(0x144))/0x1+parseInt(_0x5c60c3(0x146))/0x2+-parseInt(_0x5c60c3(0x13d))/0x3+parseInt(_0x5c60c3(0x147))/0x4*(parseInt(_0x5c60c3(0x143))/0x5)+-parseInt(_0x5c60c3(0x14a))/0x6*(-parseInt(_0x5c60c3(0x141))/0x7)+-parseInt(_0x5c60c3(0x14b))/0x8+parseInt(_0x5c60c3(0x145))/0x9;if(_0x486a54===_0x52634f)break;else _0x28b3c2['push'](_0x28b3c2['shift']());}catch(_0x48f79b){_0x28b3c2['push'](_0x28b3c2['shift']());}}}(a86_0x43de,0xd2b01));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';function a86_0x4e5b(_0x4f3491,_0x4f8107){_0x4f3491=_0x4f3491-0x13d;const _0x43deb4=a86_0x43de();let _0x4e5bed=_0x43deb4[_0x4f3491];return _0x4e5bed;}import{dirname,isAbsolute,resolve,sep}from'node:path';function a86_0x43de(){const _0x58a8c9=['.tmp','startsWith','split','35182fPWNzj','Unsafe\x20Skill\x20file\x20path:\x20','5RPXZDW','650505ebzONf','5698620zNPTEp','96544WPhRaA','6328848NSivah','validation','endsWith','1374NJjqoN','1478264OnOVgO','isSymbolicLink','5149059xoIrFI'];a86_0x43de=function(){return _0x58a8c9;};return a86_0x43de();}import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x274023,_0x5d5fc8){const _0x208b26=a86_0x4e5b,_0x2d48ad=normalizeSkillRelativePath(_0x5d5fc8),_0x5aa37d=realOrResolved(_0x274023),_0x1055f1=resolve(_0x5aa37d,..._0x2d48ad['split']('/'));if(!isPathInside(_0x1055f1,_0x5aa37d))throw CliErrors[_0x208b26(0x148)](_0x208b26(0x142)+_0x5d5fc8);return ensureNoSymlinkInManagedPath(_0x5aa37d,_0x2d48ad),_0x1055f1;}export function ensureNoSymlinkInManagedPath(_0x42f771,_0x23ecdc){const _0x48b5a8=a86_0x4e5b;let _0x4e575d=_0x42f771;for(const _0x55da01 of _0x23ecdc[_0x48b5a8(0x140)]('/')){_0x4e575d=resolve(_0x4e575d,_0x55da01);const _0x47d639=lstatIfPresent(_0x4e575d);if(_0x47d639?.[_0x48b5a8(0x14c)]())throw CliErrors['validation']('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x23ecdc);}}export function isDanglingSymlink(_0x265cc6){const _0x5c639e=a86_0x4e5b;try{return lstatSync(_0x265cc6)[_0x5c639e(0x14c)]();}catch{return![];}}export function resolveSymlinkTarget(_0x1c827f){const _0x1f2e87=readlinkSync(_0x1c827f);return isAbsolute(_0x1f2e87)?_0x1f2e87:resolve(dirname(_0x1c827f),_0x1f2e87);}export function isPathInside(_0x4d45c6,_0x19d1fa){const _0x39117b=a86_0x4e5b,_0x1a6d2a=_0x4d45c6[_0x39117b(0x149)](sep)?_0x4d45c6:''+_0x4d45c6+sep,_0x21995c=_0x19d1fa[_0x39117b(0x149)](sep)?_0x19d1fa:''+_0x19d1fa+sep;return _0x4d45c6===_0x19d1fa||_0x1a6d2a[_0x39117b(0x13f)](_0x21995c);}export function realOrResolved(_0x4d0eff){try{return realpathSync(_0x4d0eff);}catch{return resolve(_0x4d0eff);}}export function lstatIfPresent(_0x1d0eae){try{return lstatSync(_0x1d0eae);}catch{return undefined;}}export function writeTextAtomic(_0x2ef688,_0x5bb6bb,_0x57a0ba){writeBytesAtomic(_0x2ef688,Buffer['from'](_0x5bb6bb,'utf8'),_0x57a0ba);}export function writeBytesAtomic(_0x42cb58,_0x46e8e0,_0x5814ff){const _0x3bbecc=a86_0x4e5b,_0x53839c=_0x42cb58+_0x3bbecc(0x13e);try{writeFileSync(_0x53839c,_0x46e8e0,{'mode':_0x5814ff}),renameSync(_0x53839c,_0x42cb58);}catch(_0x3ba229){try{rmSync(_0x53839c,{'force':!![]});}catch{}throw _0x3ba229;}}export function writeJsonAtomic(_0x4d0f44,_0x27757b){writeTextAtomic(_0x4d0f44,JSON['stringify'](_0x27757b,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x46f0a6,_0x510f6d){const _0xc6a85=a86_0x2e46,_0x18c759=_0x46f0a6();while(!![]){try{const _0x3c650b=parseInt(_0xc6a85(0x146))/0x1+parseInt(_0xc6a85(0x13d))/0x2*(-parseInt(_0xc6a85(0x142))/0x3)+parseInt(_0xc6a85(0x138))/0x4+parseInt(_0xc6a85(0x141))/0x5+parseInt(_0xc6a85(0x144))/0x6+-parseInt(_0xc6a85(0x13b))/0x7+-parseInt(_0xc6a85(0x13a))/0x8*(parseInt(_0xc6a85(0x147))/0x9);if(_0x3c650b===_0x510f6d)break;else _0x18c759['push'](_0x18c759['shift']());}catch(_0x31bc22){_0x18c759['push'](_0x18c759['shift']());}}}(a86_0x14d2,0x78e04));function a86_0x2e46(_0x58d312,_0x3ed3de){_0x58d312=_0x58d312-0x136;const _0x14d294=a86_0x14d2();let _0x2e46e7=_0x14d294[_0x58d312];return _0x2e46e7;}import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';function a86_0x14d2(){const _0x2a955d=['.tmp','2596020BztaiV','from','761454SRVuBy','4558203oURpha','endsWith','isSymbolicLink','1684272KQzoPo','utf8','8igdjMM','1569750sXNAEt','validation','4rsSllB','stringify','split','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','2205975MSwAcr','1245843YAHPUH'];a86_0x14d2=function(){return _0x2a955d;};return a86_0x14d2();}import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x6f4f5a,_0x27ad59){const _0x109faa=a86_0x2e46,_0xd57016=normalizeSkillRelativePath(_0x27ad59),_0x793cc9=realOrResolved(_0x6f4f5a),_0x27899e=resolve(_0x793cc9,..._0xd57016[_0x109faa(0x13f)]('/'));if(!isPathInside(_0x27899e,_0x793cc9))throw CliErrors[_0x109faa(0x13c)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x27ad59);return ensureNoSymlinkInManagedPath(_0x793cc9,_0xd57016),_0x27899e;}export function ensureNoSymlinkInManagedPath(_0x4a2d1a,_0x53e852){const _0x4c40af=a86_0x2e46;let _0x294f9d=_0x4a2d1a;for(const _0x4ac819 of _0x53e852[_0x4c40af(0x13f)]('/')){_0x294f9d=resolve(_0x294f9d,_0x4ac819);const _0x451123=lstatIfPresent(_0x294f9d);if(_0x451123?.[_0x4c40af(0x137)]())throw CliErrors['validation'](_0x4c40af(0x140)+_0x53e852);}}export function isDanglingSymlink(_0x550432){const _0x2808c7=a86_0x2e46;try{return lstatSync(_0x550432)[_0x2808c7(0x137)]();}catch{return![];}}export function resolveSymlinkTarget(_0x6dfb68){const _0x32bd2a=readlinkSync(_0x6dfb68);return isAbsolute(_0x32bd2a)?_0x32bd2a:resolve(dirname(_0x6dfb68),_0x32bd2a);}export function isPathInside(_0x2ad517,_0x5a2b4b){const _0x1162ed=a86_0x2e46,_0x549cc6=_0x2ad517[_0x1162ed(0x136)](sep)?_0x2ad517:''+_0x2ad517+sep,_0x229c86=_0x5a2b4b[_0x1162ed(0x136)](sep)?_0x5a2b4b:''+_0x5a2b4b+sep;return _0x2ad517===_0x5a2b4b||_0x549cc6['startsWith'](_0x229c86);}export function realOrResolved(_0x105c99){try{return realpathSync(_0x105c99);}catch{return resolve(_0x105c99);}}export function lstatIfPresent(_0x3171f3){try{return lstatSync(_0x3171f3);}catch{return undefined;}}export function writeTextAtomic(_0x5a5a86,_0x1f6acb,_0x3c01b6){const _0x4b0ceb=a86_0x2e46;writeBytesAtomic(_0x5a5a86,Buffer[_0x4b0ceb(0x145)](_0x1f6acb,_0x4b0ceb(0x139)),_0x3c01b6);}export function writeBytesAtomic(_0x1a52c8,_0x14a434,_0x141351){const _0x18290e=a86_0x2e46,_0x5d45fb=_0x1a52c8+_0x18290e(0x143);try{writeFileSync(_0x5d45fb,_0x14a434,{'mode':_0x141351}),renameSync(_0x5d45fb,_0x1a52c8);}catch(_0x12852e){try{rmSync(_0x5d45fb,{'force':!![]});}catch{}throw _0x12852e;}}export function writeJsonAtomic(_0x1730e3,_0x489b33){const _0x3751cd=a86_0x2e46;writeTextAtomic(_0x1730e3,JSON[_0x3751cd(0x13e)](_0x489b33,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x40a249,_0x674a49){const _0xbc6bd9=a87_0x57f7,_0x4dfac5=_0x40a249();while(!![]){try{const _0x542259=-parseInt(_0xbc6bd9(0x190))/0x1*(-parseInt(_0xbc6bd9(0x197))/0x2)+-parseInt(_0xbc6bd9(0x192))/0x3+-parseInt(_0xbc6bd9(0x199))/0x4+parseInt(_0xbc6bd9(0x19a))/0x5*(-parseInt(_0xbc6bd9(0x191))/0x6)+-parseInt(_0xbc6bd9(0x19c))/0x7*(parseInt(_0xbc6bd9(0x196))/0x8)+-parseInt(_0xbc6bd9(0x198))/0x9+parseInt(_0xbc6bd9(0x19d))/0xa;if(_0x542259===_0x674a49)break;else _0x4dfac5['push'](_0x4dfac5['shift']());}catch(_0x2e6feb){_0x4dfac5['push'](_0x4dfac5['shift']());}}}(a87_0x45e5,0xa19e1));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x17c2b6){const _0xd43347=a87_0x57f7;return createHash('sha256')[_0xd43347(0x194)](_0x17c2b6)[_0xd43347(0x19b)](_0xd43347(0x19e));}export function fileHash(_0x28ff29){return bufferSha256(fileContent(_0x28ff29));}export function bufferSha256(_0xfddb9d){const _0x47c652=a87_0x57f7;return createHash(_0x47c652(0x195))[_0x47c652(0x194)](_0xfddb9d)[_0x47c652(0x19b)](_0x47c652(0x19e));}function a87_0x57f7(_0x184351,_0x22d8a1){_0x184351=_0x184351-0x190;const _0x45e586=a87_0x45e5();let _0x57f73c=_0x45e586[_0x184351];return _0x57f73c;}function a87_0x45e5(){const _0x24fb74=['size','103951cukiRI','808344NauROU','2160003fAUeoh','path','update','sha256','32HekbCG','4FnNKum','5713164DVVyGk','49700jiNvju','20zHzrIH','digest','1446802KdLcyJ','31869450YVWQyG','hex'];a87_0x45e5=function(){return _0x24fb74;};return a87_0x45e5();}export function fileTreeHash(_0xb36b09){const _0x32037f=a87_0x57f7,_0x321bdd=createHash(_0x32037f(0x195));for(const _0x593d59 of normalizeManifestFiles(_0xb36b09)){_0x321bdd[_0x32037f(0x194)](_0x593d59[_0x32037f(0x193)]),_0x321bdd[_0x32037f(0x194)]('\x00'),_0x321bdd[_0x32037f(0x194)](_0x593d59[_0x32037f(0x195)]),_0x321bdd[_0x32037f(0x194)]('\x00'),_0x321bdd[_0x32037f(0x194)](String(_0x593d59[_0x32037f(0x19f)])),_0x321bdd['update']('\x00');}return _0x321bdd[_0x32037f(0x19b)](_0x32037f(0x19e));}
1
+ (function(_0x21f770,_0x1d74ff){const _0x1e7773=a87_0x207a,_0x4da173=_0x21f770();while(!![]){try{const _0x11ed8c=-parseInt(_0x1e7773(0x1e4))/0x1*(-parseInt(_0x1e7773(0x1de))/0x2)+-parseInt(_0x1e7773(0x1ec))/0x3*(parseInt(_0x1e7773(0x1e7))/0x4)+parseInt(_0x1e7773(0x1df))/0x5*(parseInt(_0x1e7773(0x1e9))/0x6)+-parseInt(_0x1e7773(0x1e6))/0x7*(parseInt(_0x1e7773(0x1dc))/0x8)+parseInt(_0x1e7773(0x1db))/0x9+-parseInt(_0x1e7773(0x1e1))/0xa+-parseInt(_0x1e7773(0x1e3))/0xb*(-parseInt(_0x1e7773(0x1ea))/0xc);if(_0x11ed8c===_0x1d74ff)break;else _0x4da173['push'](_0x4da173['shift']());}catch(_0x5e1e15){_0x4da173['push'](_0x4da173['shift']());}}}(a87_0x2267,0x58d7c));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x5b8875){const _0x4708b7=a87_0x207a;return createHash('sha256')[_0x4708b7(0x1eb)](_0x5b8875)[_0x4708b7(0x1e8)](_0x4708b7(0x1e5));}function a87_0x2267(){const _0x3286a6=['63078VViahO','12Vxkxka','update','749820QGkDbN','4652217DbuDwO','8EVRqHB','path','7026wQKoEz','275uCaIOm','sha256','1647250mUXVox','size','1994432wIiSox','64PSAYbY','hex','5058949IfMjBb','4yUtmFM','digest'];a87_0x2267=function(){return _0x3286a6;};return a87_0x2267();}export function fileHash(_0x2df2f9){return bufferSha256(fileContent(_0x2df2f9));}export function bufferSha256(_0x8f6ee5){const _0x3a3dca=a87_0x207a;return createHash(_0x3a3dca(0x1e0))[_0x3a3dca(0x1eb)](_0x8f6ee5)[_0x3a3dca(0x1e8)](_0x3a3dca(0x1e5));}function a87_0x207a(_0x217e74,_0x5eb783){_0x217e74=_0x217e74-0x1db;const _0x22679c=a87_0x2267();let _0x207a89=_0x22679c[_0x217e74];return _0x207a89;}export function fileTreeHash(_0x50015b){const _0x53a5aa=a87_0x207a,_0x19140b=createHash(_0x53a5aa(0x1e0));for(const _0x2a9f3b of normalizeManifestFiles(_0x50015b)){_0x19140b[_0x53a5aa(0x1eb)](_0x2a9f3b[_0x53a5aa(0x1dd)]),_0x19140b['update']('\x00'),_0x19140b[_0x53a5aa(0x1eb)](_0x2a9f3b['sha256']),_0x19140b[_0x53a5aa(0x1eb)]('\x00'),_0x19140b[_0x53a5aa(0x1eb)](String(_0x2a9f3b[_0x53a5aa(0x1e2)])),_0x19140b[_0x53a5aa(0x1eb)]('\x00');}return _0x19140b['digest'](_0x53a5aa(0x1e5));}
@@ -1 +1 @@
1
- (function(_0xf5bdbd,_0x4e73ee){const _0x5bad2d=a88_0x16bb,_0x3746d8=_0xf5bdbd();while(!![]){try{const _0x77d860=-parseInt(_0x5bad2d(0x1a6))/0x1+-parseInt(_0x5bad2d(0x1bf))/0x2*(parseInt(_0x5bad2d(0x1a5))/0x3)+parseInt(_0x5bad2d(0x1c5))/0x4*(-parseInt(_0x5bad2d(0x1a1))/0x5)+parseInt(_0x5bad2d(0x19b))/0x6*(-parseInt(_0x5bad2d(0x1c2))/0x7)+parseInt(_0x5bad2d(0x1c1))/0x8+parseInt(_0x5bad2d(0x1ba))/0x9+-parseInt(_0x5bad2d(0x1b7))/0xa*(-parseInt(_0x5bad2d(0x1b5))/0xb);if(_0x77d860===_0x4e73ee)break;else _0x3746d8['push'](_0x3746d8['shift']());}catch(_0x476485){_0x3746d8['push'](_0x3746d8['shift']());}}}(a88_0x21ac,0x31b6b));function a88_0x21ac(){const _0x3510de=['external-symlink','skillCode','6SghKFT','pruneSkillCodes','accessKey','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','set','has','996605NDjGIO','push','isSymbolicLink','get','249JdLpEU','62172XKHtBb','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','startsWith','values','env','name','removed','validation','skill','updated','agentsSkillsDir','contentHash','slice','builtin','isDirectory','190751RdOGrU','company','490oYsxmN','trim','length','1176318IQEmQt','activeSkillCodes','managedRoot','claudeSkillsDir','dir','662eCctak','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','441696XwXucB','2405963jjMnrf','map','not-managed-symlink','8rpcoqN','skipped','filter','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','unchanged','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','appCode','scope','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'];a88_0x21ac=function(){return _0x3510de;};return a88_0x21ac();}import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a88_0x591442 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a88_0x591442;export function linkEffectiveRuntimeSkills(_0x5d1804,_0x511a10,_0xb19488={}){const _0x2fb935=a88_0x16bb,_0x314c6f=new Map();for(const _0x2f2947 of _0x5d1804){const _0x18741e=_0x2f2947[_0x2fb935(0x1ae)]['skillCode'];if(!_0x18741e)continue;const _0x21f72=_0x314c6f[_0x2fb935(0x1a4)](_0x18741e);(!_0x21f72||_0x2f2947[_0x2fb935(0x196)]==='personal')&&_0x314c6f[_0x2fb935(0x19f)](_0x18741e,_0x2f2947);}const _0x26523f=[],_0x3462ea=resolveSkillSyncPaths(_0xb19488);for(const _0x4a35d4 of _0x314c6f[_0x2fb935(0x1a9)]()){const _0x3455f0=requireSkillCode(_0x4a35d4['skill']),_0x2537aa=_0x511a10+'--'+_0x3455f0;for(const _0x56feb7 of[_0x3462ea[_0x2fb935(0x1b0)],_0x3462ea[_0x2fb935(0x1bd)]]){_0x26523f[_0x2fb935(0x1a2)](ensureManagedSymlink(resolve(_0x56feb7,_0x2537aa),_0x4a35d4['dir'],_0x3462ea[_0x2fb935(0x1bc)]));}}return _0x26523f;}export function pruneStaleRuntimeSkillLinks(_0x57d235,_0x4aa9d8,_0x452fbb={},_0x349762){const _0x5df76f=a88_0x16bb,_0x45769b=resolveSkillSyncPaths(_0x452fbb),_0x359d31=new Set([..._0x4aa9d8][_0x5df76f(0x1c3)](_0x336e76=>_0x336e76[_0x5df76f(0x1b8)]())[_0x5df76f(0x191)](Boolean)),_0x438c1e=_0x349762?new Set([..._0x349762][_0x5df76f(0x1c3)](_0x4937ea=>_0x4937ea['trim']())[_0x5df76f(0x191)](Boolean)):undefined,_0x3565c7=[];for(const _0x54a035 of[_0x45769b[_0x5df76f(0x1b0)],_0x45769b[_0x5df76f(0x1bd)]]){for(const _0x54fb59 of managedAppSkillLinkPaths(_0x54a035,_0x57d235)){const _0x30d4ef=basename(_0x54fb59)[_0x5df76f(0x1b2)]((_0x57d235+'--')[_0x5df76f(0x1b9)]);if(_0x438c1e&&!_0x438c1e['has'](_0x30d4ef))continue;if(_0x359d31[_0x5df76f(0x1a0)](_0x30d4ef))continue;_0x3565c7[_0x5df76f(0x1a2)](removeManagedSkillLink(_0x54fb59,_0x45769b[_0x5df76f(0x1bc)]));}}return _0x3565c7;}export function pruneStaleRuntimeSkillCache(_0x259a81,_0x5b881b={}){const _0x356fa0=a88_0x16bb,_0x1784f7=new Set([..._0x259a81[_0x356fa0(0x1bb)]][_0x356fa0(0x1c3)](_0x1cf8b2=>_0x1cf8b2['trim']())[_0x356fa0(0x191)](Boolean)),_0x2a50bc=_0x259a81['pruneSkillCodes']?new Set([..._0x259a81[_0x356fa0(0x19c)]]['map'](_0x1a463d=>_0x1a463d[_0x356fa0(0x1b8)]())[_0x356fa0(0x191)](Boolean)):undefined,_0x343552=_0x259a81['scopes']??['personal',_0x356fa0(0x1b6)],_0x90b6f0=resolve(getRuntimeSkillCacheRoot(_0x259a81[_0x356fa0(0x1aa)],_0x259a81[_0x356fa0(0x19d)],_0x5b881b),safePathSegment(_0x259a81[_0x356fa0(0x195)],_0x356fa0(0x195))),_0x1bd09a=[];for(const _0x11dc6d of _0x343552){const _0x4621e8=resolve(_0x90b6f0,_0x11dc6d);if(!existsSync(_0x4621e8))continue;for(const _0x5a5501 of readdirSync(_0x4621e8,{'withFileTypes':!![]})){if(!_0x5a5501['isDirectory']())continue;const _0x4c58cd=_0x5a5501[_0x356fa0(0x1ab)];if(_0x2a50bc&&!_0x2a50bc[_0x356fa0(0x1a0)](_0x4c58cd))continue;if(_0x1784f7[_0x356fa0(0x1a0)](_0x4c58cd))continue;const _0x2a8356=resolve(_0x4621e8,_0x4c58cd),_0x2d998d=readMetadataIfPresent(resolve(_0x2a8356,METADATA_FILE));if(_0x2d998d?.[_0x356fa0(0x195)]!==_0x259a81['appCode']||_0x2d998d['scope']!==_0x11dc6d||_0x2d998d[_0x356fa0(0x19a)]!==_0x4c58cd){_0x1bd09a[_0x356fa0(0x1a2)]({'path':_0x2a8356,'action':_0x356fa0(0x190),'reason':'metadata-mismatch'});continue;}removeSync(_0x2a8356),_0x1bd09a['push']({'path':_0x2a8356,'action':'removed'});}}return _0x1bd09a;}function a88_0x16bb(_0x2e417e,_0x57acf3){_0x2e417e=_0x2e417e-0x190;const _0x21acca=a88_0x21ac();let _0x16bb66=_0x21acca[_0x2e417e];return _0x16bb66;}export function linkGlobalRuntimeSkills(_0x39f6d0,_0x1ca712={}){const _0x53c078=a88_0x16bb,_0x581645=resolveSkillSyncPaths(_0x1ca712),_0x4daf50=[];for(const _0x311d50 of _0x39f6d0){if(_0x311d50[_0x53c078(0x196)]!==_0x53c078(0x1b3))throw CliErrors['validation'](_0x53c078(0x19e)+_0x311d50[_0x53c078(0x196)]);const _0x4bccfe=requireSkillCode(_0x311d50[_0x53c078(0x1ae)]),_0x19b0b3=copyManagedSkillDirectory(_0x311d50[_0x53c078(0x1be)],resolve(_0x581645['agentsSkillsDir'],_0x4bccfe));_0x4daf50['push']({..._0x19b0b3,'contentHash':_0x311d50['contentHash']});}return _0x4daf50;}function ensureManagedSymlink(_0x46c729,_0x2af3d4,_0x326f25){const _0x2d959b=a88_0x16bb;mkdirSync(dirname(_0x46c729),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x46c729)||isDanglingSymlink(_0x46c729)){const _0x1f1693=lstatSync(_0x46c729);if(!_0x1f1693['isSymbolicLink']())throw CliErrors['validation'](_0x2d959b(0x1c0)+_0x46c729);const _0x1cbc5a=resolveSymlinkTarget(_0x46c729);if(!isPathInside(realOrResolved(_0x1cbc5a),realOrResolved(_0x326f25)))throw CliErrors['validation'](_0x2d959b(0x197)+_0x46c729);if(realOrResolved(_0x1cbc5a)===realOrResolved(_0x2af3d4))return{'path':_0x46c729,'target':_0x2af3d4,'action':_0x2d959b(0x193)};return unlinkSync(_0x46c729),symlinkSync(_0x2af3d4,_0x46c729,'dir'),{'path':_0x46c729,'target':_0x2af3d4,'action':_0x2d959b(0x1af)};}return symlinkSync(_0x2af3d4,_0x46c729,_0x2d959b(0x1be)),{'path':_0x46c729,'target':_0x2af3d4,'action':'created'};}function managedAppSkillLinkPaths(_0x5ee811,_0x56bacc){const _0x188dfa=a88_0x16bb;if(!existsSync(_0x5ee811))return[];const _0x2eb28e=_0x56bacc+'--';return readdirSync(_0x5ee811,{'withFileTypes':!![]})['filter'](_0x1c5258=>_0x1c5258[_0x188dfa(0x1ab)][_0x188dfa(0x1a8)](_0x2eb28e))[_0x188dfa(0x1c3)](_0x263a84=>resolve(_0x5ee811,_0x263a84['name']));}function removeManagedSkillLink(_0x25982d,_0x18c962){const _0xca7e7e=a88_0x16bb,_0x43980e=lstatIfPresent(_0x25982d);if(!_0x43980e?.[_0xca7e7e(0x1a3)]())return{'path':_0x25982d,'action':_0xca7e7e(0x190),'reason':_0xca7e7e(0x1c4)};const _0x4efdca=resolveSymlinkTarget(_0x25982d);if(!isPathInside(realOrResolved(_0x4efdca),realOrResolved(_0x18c962)))return{'path':_0x25982d,'action':'skipped','reason':_0xca7e7e(0x199)};return unlinkSync(_0x25982d),{'path':_0x25982d,'action':_0xca7e7e(0x1ac)};}export function copyManagedSkillDirectory(_0xdc0dc1,_0x1efed5){const _0xc4bb2=a88_0x16bb,_0x41dcb2=resolve(_0x1efed5,METADATA_FILE),_0x5a3ba8=existsSync(_0x1efed5);if(_0x5a3ba8){const _0x3384d1=lstatSync(_0x1efed5);if(_0x3384d1[_0xc4bb2(0x1a3)]())throw CliErrors['validation'](_0xc4bb2(0x1a7)+_0x1efed5);if(!_0x3384d1[_0xc4bb2(0x1b4)]())throw CliErrors[_0xc4bb2(0x1ad)](_0xc4bb2(0x192)+_0x1efed5);const _0x425098=readMetadataIfPresent(_0x41dcb2);if(_0x425098?.['scope']!==_0xc4bb2(0x1b3))throw CliErrors['validation'](_0xc4bb2(0x198)+_0x1efed5);}ensureDirSync(dirname(_0x1efed5));const _0x4bd9ba=_0x5a3ba8?readMetadataIfPresent(_0x41dcb2)?.['contentHash']:undefined,_0x57526f=readMetadataIfPresent(resolve(_0xdc0dc1,METADATA_FILE))?.[_0xc4bb2(0x1b1)];return _0x5a3ba8&&removeSync(_0x1efed5),copySkillDirectory(_0xdc0dc1,_0x1efed5),{'path':_0x1efed5,'target':_0xdc0dc1,'action':!_0x5a3ba8?'created':_0x4bd9ba===_0x57526f?'unchanged':_0xc4bb2(0x1af)};}function copySkillDirectory(_0x46cfb4,_0x38661e){copySync(_0x46cfb4,_0x38661e,{'dereference':![],'overwrite':!![],'filter'(_0xba8486){const _0x56c97c=a88_0x16bb;if(lstatSync(_0xba8486)[_0x56c97c(0x1a3)]())throw CliErrors['validation'](_0x56c97c(0x194)+_0xba8486);return!![];}});}
1
+ (function(_0x2d38a7,_0x4b1dc5){const _0x28c9e0=a88_0x671f,_0x1d9b23=_0x2d38a7();while(!![]){try{const _0x2a5325=parseInt(_0x28c9e0(0x1a2))/0x1+-parseInt(_0x28c9e0(0x1b0))/0x2*(parseInt(_0x28c9e0(0x1be))/0x3)+-parseInt(_0x28c9e0(0x1b4))/0x4*(-parseInt(_0x28c9e0(0x19a))/0x5)+parseInt(_0x28c9e0(0x1ab))/0x6+parseInt(_0x28c9e0(0x1c1))/0x7+-parseInt(_0x28c9e0(0x1c2))/0x8*(-parseInt(_0x28c9e0(0x1c7))/0x9)+-parseInt(_0x28c9e0(0x1b8))/0xa;if(_0x2a5325===_0x4b1dc5)break;else _0x1d9b23['push'](_0x1d9b23['shift']());}catch(_0x671cec){_0x1d9b23['push'](_0x1d9b23['shift']());}}}(a88_0x4dd8,0x341c9));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a88_0x1d1a84 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a88_0x1d1a84;export function linkEffectiveRuntimeSkills(_0x21f5dd,_0x2769c2,_0x3f672b={}){const _0x19d010=a88_0x671f,_0x43dec9=new Map();for(const _0x5bb297 of _0x21f5dd){const _0x100f1c=_0x5bb297[_0x19d010(0x1a7)][_0x19d010(0x198)];if(!_0x100f1c)continue;const _0x253001=_0x43dec9[_0x19d010(0x1a6)](_0x100f1c);(!_0x253001||_0x5bb297[_0x19d010(0x1a0)]===_0x19d010(0x1b9))&&_0x43dec9[_0x19d010(0x1af)](_0x100f1c,_0x5bb297);}const _0x43ab80=[],_0x4dec4e=resolveSkillSyncPaths(_0x3f672b);for(const _0x5ed37f of _0x43dec9['values']()){const _0x5db209=requireSkillCode(_0x5ed37f[_0x19d010(0x1a7)]),_0x2bec10=_0x2769c2+'--'+_0x5db209;for(const _0x33568e of[_0x4dec4e[_0x19d010(0x1a8)],_0x4dec4e[_0x19d010(0x1c9)]]){_0x43ab80['push'](ensureManagedSymlink(resolve(_0x33568e,_0x2bec10),_0x5ed37f['dir'],_0x4dec4e[_0x19d010(0x1bd)]));}}return _0x43ab80;}export function pruneStaleRuntimeSkillLinks(_0x4dc3c5,_0x1d6096,_0x5f56a9={},_0x1d23ba){const _0x28608a=a88_0x671f,_0x502d29=resolveSkillSyncPaths(_0x5f56a9),_0x2ad764=new Set([..._0x1d6096][_0x28608a(0x19d)](_0xdb6831=>_0xdb6831[_0x28608a(0x1a9)]())[_0x28608a(0x1bf)](Boolean)),_0x1d4119=_0x1d23ba?new Set([..._0x1d23ba][_0x28608a(0x19d)](_0x315ec7=>_0x315ec7['trim']())['filter'](Boolean)):undefined,_0x21070d=[];for(const _0x2a9d8f of[_0x502d29[_0x28608a(0x1a8)],_0x502d29[_0x28608a(0x1c9)]]){for(const _0x1dc403 of managedAppSkillLinkPaths(_0x2a9d8f,_0x4dc3c5)){const _0x46c487=basename(_0x1dc403)[_0x28608a(0x1b2)]((_0x4dc3c5+'--')['length']);if(_0x1d4119&&!_0x1d4119['has'](_0x46c487))continue;if(_0x2ad764[_0x28608a(0x1a4)](_0x46c487))continue;_0x21070d[_0x28608a(0x19e)](removeManagedSkillLink(_0x1dc403,_0x502d29[_0x28608a(0x1bd)]));}}return _0x21070d;}export function pruneStaleRuntimeSkillCache(_0x31b0be,_0x2717e3={}){const _0x4c9834=a88_0x671f,_0x1bbba1=new Set([..._0x31b0be['activeSkillCodes']][_0x4c9834(0x19d)](_0xc7aa8b=>_0xc7aa8b[_0x4c9834(0x1a9)]())[_0x4c9834(0x1bf)](Boolean)),_0x159671=_0x31b0be['pruneSkillCodes']?new Set([..._0x31b0be[_0x4c9834(0x19c)]][_0x4c9834(0x19d)](_0x26bed7=>_0x26bed7['trim']())[_0x4c9834(0x1bf)](Boolean)):undefined,_0x58088a=_0x31b0be[_0x4c9834(0x1a5)]??[_0x4c9834(0x1b9),_0x4c9834(0x1a1)],_0x5584fd=resolve(getRuntimeSkillCacheRoot(_0x31b0be[_0x4c9834(0x1bc)],_0x31b0be['accessKey'],_0x2717e3),safePathSegment(_0x31b0be[_0x4c9834(0x1c8)],_0x4c9834(0x1c8))),_0xb5eb1f=[];for(const _0x3217e0 of _0x58088a){const _0x1de82b=resolve(_0x5584fd,_0x3217e0);if(!existsSync(_0x1de82b))continue;for(const _0x4a2fcd of readdirSync(_0x1de82b,{'withFileTypes':!![]})){if(!_0x4a2fcd[_0x4c9834(0x1ad)]())continue;const _0x4864d8=_0x4a2fcd[_0x4c9834(0x1c6)];if(_0x159671&&!_0x159671[_0x4c9834(0x1a4)](_0x4864d8))continue;if(_0x1bbba1[_0x4c9834(0x1a4)](_0x4864d8))continue;const _0xfba772=resolve(_0x1de82b,_0x4864d8),_0x28bd57=readMetadataIfPresent(resolve(_0xfba772,METADATA_FILE));if(_0x28bd57?.[_0x4c9834(0x1c8)]!==_0x31b0be['appCode']||_0x28bd57[_0x4c9834(0x1a0)]!==_0x3217e0||_0x28bd57[_0x4c9834(0x198)]!==_0x4864d8){_0xb5eb1f[_0x4c9834(0x19e)]({'path':_0xfba772,'action':_0x4c9834(0x1b5),'reason':_0x4c9834(0x199)});continue;}removeSync(_0xfba772),_0xb5eb1f[_0x4c9834(0x19e)]({'path':_0xfba772,'action':_0x4c9834(0x1b7)});}}return _0xb5eb1f;}export function linkGlobalRuntimeSkills(_0x47dec3,_0x446c8e={}){const _0x4209ae=a88_0x671f,_0x2545bd=resolveSkillSyncPaths(_0x446c8e),_0x200c6d=[];for(const _0x372841 of _0x47dec3){if(_0x372841['scope']!==_0x4209ae(0x19b))throw CliErrors[_0x4209ae(0x1c3)](_0x4209ae(0x1c4)+_0x372841[_0x4209ae(0x1a0)]);const _0x12bba5=requireSkillCode(_0x372841[_0x4209ae(0x1a7)]),_0x39d842=copyManagedSkillDirectory(_0x372841[_0x4209ae(0x197)],resolve(_0x2545bd[_0x4209ae(0x1a8)],_0x12bba5));_0x200c6d[_0x4209ae(0x19e)]({..._0x39d842,'contentHash':_0x372841[_0x4209ae(0x1c0)]});}return _0x200c6d;}function ensureManagedSymlink(_0x3ce1bc,_0x356dc6,_0x18ec47){const _0x2532c2=a88_0x671f;mkdirSync(dirname(_0x3ce1bc),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x3ce1bc)||isDanglingSymlink(_0x3ce1bc)){const _0x4954a3=lstatSync(_0x3ce1bc);if(!_0x4954a3['isSymbolicLink']())throw CliErrors[_0x2532c2(0x1c3)](_0x2532c2(0x196)+_0x3ce1bc);const _0x36a1fd=resolveSymlinkTarget(_0x3ce1bc);if(!isPathInside(realOrResolved(_0x36a1fd),realOrResolved(_0x18ec47)))throw CliErrors[_0x2532c2(0x1c3)](_0x2532c2(0x1b1)+_0x3ce1bc);if(realOrResolved(_0x36a1fd)===realOrResolved(_0x356dc6))return{'path':_0x3ce1bc,'target':_0x356dc6,'action':'unchanged'};return unlinkSync(_0x3ce1bc),symlinkSync(_0x356dc6,_0x3ce1bc,_0x2532c2(0x197)),{'path':_0x3ce1bc,'target':_0x356dc6,'action':'updated'};}return symlinkSync(_0x356dc6,_0x3ce1bc,_0x2532c2(0x197)),{'path':_0x3ce1bc,'target':_0x356dc6,'action':_0x2532c2(0x1b3)};}function a88_0x4dd8(){const _0x3a0459=['set','8YYJfzK','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','slice','created','45404ixNTbx','skipped','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','removed','8721280TIAtqI','personal','updated','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','env','managedRoot','29904LWGjLz','filter','contentHash','2418808tKPPJO','320DUeNvM','validation','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','unchanged','name','34389PIfMWj','appCode','claudeSkillsDir','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','dir','skillCode','metadata-mismatch','95nmJURm','builtin','pruneSkillCodes','map','push','not-managed-symlink','scope','company','214499sdbnBe','isSymbolicLink','has','scopes','get','skill','agentsSkillsDir','trim','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','1181382TGnwZL','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','isDirectory','external-symlink'];a88_0x4dd8=function(){return _0x3a0459;};return a88_0x4dd8();}function a88_0x671f(_0x569dda,_0x5b1138){_0x569dda=_0x569dda-0x196;const _0x4dd8c5=a88_0x4dd8();let _0x671f3c=_0x4dd8c5[_0x569dda];return _0x671f3c;}function managedAppSkillLinkPaths(_0x13a410,_0xd7262a){const _0x3fd4ea=a88_0x671f;if(!existsSync(_0x13a410))return[];const _0xb2eb11=_0xd7262a+'--';return readdirSync(_0x13a410,{'withFileTypes':!![]})['filter'](_0x24ddc7=>_0x24ddc7[_0x3fd4ea(0x1c6)]['startsWith'](_0xb2eb11))[_0x3fd4ea(0x19d)](_0x1b0b0b=>resolve(_0x13a410,_0x1b0b0b[_0x3fd4ea(0x1c6)]));}function removeManagedSkillLink(_0x15a7cb,_0x2228ac){const _0x22bb13=a88_0x671f,_0x51f776=lstatIfPresent(_0x15a7cb);if(!_0x51f776?.[_0x22bb13(0x1a3)]())return{'path':_0x15a7cb,'action':_0x22bb13(0x1b5),'reason':_0x22bb13(0x19f)};const _0xd9cf28=resolveSymlinkTarget(_0x15a7cb);if(!isPathInside(realOrResolved(_0xd9cf28),realOrResolved(_0x2228ac)))return{'path':_0x15a7cb,'action':_0x22bb13(0x1b5),'reason':_0x22bb13(0x1ae)};return unlinkSync(_0x15a7cb),{'path':_0x15a7cb,'action':_0x22bb13(0x1b7)};}export function copyManagedSkillDirectory(_0x1bfb98,_0x3e0639){const _0x53d23d=a88_0x671f,_0x291222=resolve(_0x3e0639,METADATA_FILE),_0x201699=existsSync(_0x3e0639);if(_0x201699){const _0x5e958e=lstatSync(_0x3e0639);if(_0x5e958e['isSymbolicLink']())throw CliErrors[_0x53d23d(0x1c3)](_0x53d23d(0x1b6)+_0x3e0639);if(!_0x5e958e[_0x53d23d(0x1ad)]())throw CliErrors[_0x53d23d(0x1c3)](_0x53d23d(0x1bb)+_0x3e0639);const _0x4fe4d0=readMetadataIfPresent(_0x291222);if(_0x4fe4d0?.[_0x53d23d(0x1a0)]!==_0x53d23d(0x19b))throw CliErrors[_0x53d23d(0x1c3)](_0x53d23d(0x1aa)+_0x3e0639);}ensureDirSync(dirname(_0x3e0639));const _0x1b251f=_0x201699?readMetadataIfPresent(_0x291222)?.['contentHash']:undefined,_0x876799=readMetadataIfPresent(resolve(_0x1bfb98,METADATA_FILE))?.[_0x53d23d(0x1c0)];return _0x201699&&removeSync(_0x3e0639),copySkillDirectory(_0x1bfb98,_0x3e0639),{'path':_0x3e0639,'target':_0x1bfb98,'action':!_0x201699?_0x53d23d(0x1b3):_0x1b251f===_0x876799?_0x53d23d(0x1c5):_0x53d23d(0x1ba)};}function copySkillDirectory(_0x37b8db,_0x5e405e){copySync(_0x37b8db,_0x5e405e,{'dereference':![],'overwrite':!![],'filter'(_0x28f1bb){const _0x11f910=a88_0x671f;if(lstatSync(_0x28f1bb)[_0x11f910(0x1a3)]())throw CliErrors[_0x11f910(0x1c3)](_0x11f910(0x1ac)+_0x28f1bb);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x5650d5,_0x113382){const _0xcbb0d1=a89_0x356b,_0x315984=_0x5650d5();while(!![]){try{const _0x1c1fad=parseInt(_0xcbb0d1(0x184))/0x1*(-parseInt(_0xcbb0d1(0x18e))/0x2)+-parseInt(_0xcbb0d1(0x179))/0x3+-parseInt(_0xcbb0d1(0x181))/0x4+parseInt(_0xcbb0d1(0x187))/0x5*(parseInt(_0xcbb0d1(0x17c))/0x6)+parseInt(_0xcbb0d1(0x195))/0x7*(parseInt(_0xcbb0d1(0x172))/0x8)+-parseInt(_0xcbb0d1(0x17f))/0x9+-parseInt(_0xcbb0d1(0x18a))/0xa*(-parseInt(_0xcbb0d1(0x186))/0xb);if(_0x1c1fad===_0x113382)break;else _0x315984['push'](_0x315984['shift']());}catch(_0xef454e){_0x315984['push'](_0x315984['shift']());}}}(a89_0x1df1,0x938f1));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_0x356b(_0x4a5240,_0x27d12f){_0x4a5240=_0x4a5240-0x16b;const _0x1df1fe=a89_0x1df1();let _0x356bb3=_0x1df1fe[_0x4a5240];return _0x356bb3;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x56314c,_0x47d8cd={}){const _0x2468bf=a89_0x356b,_0x323739=safePathSegment(_0x56314c[_0x2468bf(0x16b)],'appCode'),_0x4f724a=normalizeRuntimeSkillScopes(_0x56314c['scopes']),_0x1483a2=new Set(_0x4f724a),_0x3a5a06=_0x56314c[_0x2468bf(0x194)]?.[_0x2468bf(0x188)](),_0x11d302=new Map(),_0x2eed5a=resolve(getRuntimeSkillCacheRoot(_0x56314c[_0x2468bf(0x17e)],_0x56314c['accessKey'],_0x47d8cd),_0x323739);for(const _0x28cd4d of _0x4f724a){for(const _0x197dbe of localSkillEntryDirs(resolve(_0x2eed5a,_0x28cd4d))){collectLocalRuntimeSkill(_0x11d302,_0x197dbe,{'appCode':_0x323739,'scopes':_0x1483a2,'code':_0x3a5a06,'source':'cache'});}}const _0x310b3e=resolveSkillSyncPaths(_0x47d8cd);for(const _0x35f3ca of[_0x310b3e[_0x2468bf(0x175)],_0x310b3e[_0x2468bf(0x178)]]){for(const _0x9314e9 of localSkillLinkCandidates(_0x35f3ca,_0x323739,_0x1483a2)){collectLocalRuntimeSkill(_0x11d302,_0x9314e9,{'appCode':_0x323739,'scopes':_0x1483a2,'code':_0x3a5a06,'source':'link','linkedPath':_0x9314e9});}}return Array[_0x2468bf(0x193)](_0x11d302[_0x2468bf(0x190)]())[_0x2468bf(0x191)](compareLocalRuntimeSkills);}function a89_0x1df1(){const _0xf5ccf5=['skillCode','from','code','127407ghqVPm','appCode','metadataPath','map','filter','isSymbolicLink','cache','localeCompare','384pYUxLZ','has','includes','agentsSkillsDir','name','isDirectory','claudeSkillsDir','2948934cViTmf','scopes','linkedPath','1393134xzFkvW','push','env','4151781HIVdAm','isArray','4601448gpoTzX','linkedPaths','startsWith','814480TPanhY','get','4609gKWsut','25SmvFrw','trim','scope','47230lFHGIB','dir','skillMdPath','tags','2KstQwF','builtin','values','sort'];a89_0x1df1=function(){return _0xf5ccf5;};return a89_0x1df1();}function localSkillEntryDirs(_0x147dce){const _0x29937c=a89_0x356b;if(!existsSync(_0x147dce))return[];return readdirSync(_0x147dce,{'withFileTypes':!![]})[_0x29937c(0x16e)](_0x122195=>_0x122195[_0x29937c(0x177)]()||_0x122195[_0x29937c(0x16f)]())[_0x29937c(0x16d)](_0xd0ba42=>resolve(_0x147dce,_0xd0ba42[_0x29937c(0x176)]));}function localSkillLinkCandidates(_0x1ccd55,_0x28f067,_0x80768b){const _0x366772=a89_0x356b;if(!existsSync(_0x1ccd55))return[];const _0x4801ab=_0x28f067+'--';return readdirSync(_0x1ccd55,{'withFileTypes':!![]})[_0x366772(0x16e)](_0x319399=>_0x319399[_0x366772(0x177)]()||_0x319399['isSymbolicLink']())[_0x366772(0x16e)](_0x54aadc=>_0x54aadc[_0x366772(0x176)][_0x366772(0x183)](_0x4801ab)||_0x80768b['has'](_0x366772(0x18f)))['map'](_0x28a193=>resolve(_0x1ccd55,_0x28a193[_0x366772(0x176)]));}function collectLocalRuntimeSkill(_0x2e39af,_0x35aca1,_0x311f57){const _0x3d492d=a89_0x356b,_0x3a5803=resolve(_0x35aca1,METADATA_FILE),_0x53a66c=readMetadataIfPresent(_0x3a5803);if(!_0x53a66c)return;if(_0x53a66c[_0x3d492d(0x16b)]!==_0x311f57[_0x3d492d(0x16b)])return;if(!isRuntimeSkillScope(_0x53a66c[_0x3d492d(0x189)])||!_0x311f57[_0x3d492d(0x17a)][_0x3d492d(0x173)](_0x53a66c[_0x3d492d(0x189)]))return;const _0x34aa8c=_0x53a66c[_0x3d492d(0x192)]?.[_0x3d492d(0x188)]();if(!_0x34aa8c)return;if(_0x311f57['code']&&_0x34aa8c!==_0x311f57['code'])return;const _0x4a42e7=_0x53a66c[_0x3d492d(0x189)]+':'+_0x34aa8c,_0x1feb6c=_0x311f57[_0x3d492d(0x17b)]?[_0x311f57[_0x3d492d(0x17b)]]:[],_0x3a4545=_0x2e39af[_0x3d492d(0x185)](_0x4a42e7);if(_0x3a4545){_0x311f57['source']==='cache'&&(_0x3a4545['dir']=_0x35aca1,_0x3a4545['cacheDir']=_0x35aca1,_0x3a4545[_0x3d492d(0x18c)]=resolve(_0x35aca1,SKILL_FILE),_0x3a4545[_0x3d492d(0x16c)]=_0x3a5803);for(const _0x33b598 of _0x1feb6c){!_0x3a4545[_0x3d492d(0x182)][_0x3d492d(0x174)](_0x33b598)&&_0x3a4545[_0x3d492d(0x182)][_0x3d492d(0x17d)](_0x33b598);}_0x3a4545[_0x3d492d(0x182)][_0x3d492d(0x191)]();return;}_0x2e39af['set'](_0x4a42e7,{..._0x53a66c,'tags':Array[_0x3d492d(0x180)](_0x53a66c['tags'])?_0x53a66c[_0x3d492d(0x18d)]:[],'scope':_0x53a66c[_0x3d492d(0x189)],'source':'local','dir':_0x35aca1,'cacheDir':_0x311f57['source']===_0x3d492d(0x170)?_0x35aca1:undefined,'skillMdPath':resolve(_0x35aca1,SKILL_FILE),'metadataPath':_0x3a5803,'linkedPaths':_0x1feb6c});}function compareLocalRuntimeSkills(_0x42f3a9,_0x3f3edb){const _0x4200a0=a89_0x356b,_0x8db1a5={'personal':0x0,'company':0x1,'builtin':0x2};return _0x8db1a5[_0x42f3a9[_0x4200a0(0x189)]]-_0x8db1a5[_0x3f3edb[_0x4200a0(0x189)]]||_0x42f3a9['skillCode'][_0x4200a0(0x171)](_0x3f3edb['skillCode'])||_0x42f3a9[_0x4200a0(0x18b)][_0x4200a0(0x171)](_0x3f3edb[_0x4200a0(0x18b)]);}
1
+ (function(_0x3eb9a1,_0x1c324f){const _0x31bbe5=a89_0x5994,_0x2f1099=_0x3eb9a1();while(!![]){try{const _0x2c9f71=parseInt(_0x31bbe5(0x17e))/0x1*(-parseInt(_0x31bbe5(0x184))/0x2)+-parseInt(_0x31bbe5(0x180))/0x3*(parseInt(_0x31bbe5(0x177))/0x4)+-parseInt(_0x31bbe5(0x178))/0x5*(-parseInt(_0x31bbe5(0x187))/0x6)+-parseInt(_0x31bbe5(0x192))/0x7*(-parseInt(_0x31bbe5(0x17b))/0x8)+-parseInt(_0x31bbe5(0x171))/0x9*(-parseInt(_0x31bbe5(0x190))/0xa)+parseInt(_0x31bbe5(0x17a))/0xb+parseInt(_0x31bbe5(0x18e))/0xc;if(_0x2c9f71===_0x1c324f)break;else _0x2f1099['push'](_0x2f1099['shift']());}catch(_0x294126){_0x2f1099['push'](_0x2f1099['shift']());}}}(a89_0x5a95,0x26751));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x324bc7,_0xe0088d={}){const _0x15a00f=a89_0x5994,_0x19f9f5=safePathSegment(_0x324bc7[_0x15a00f(0x18c)],'appCode'),_0x33d2b8=normalizeRuntimeSkillScopes(_0x324bc7[_0x15a00f(0x181)]),_0x5ef056=new Set(_0x33d2b8),_0x58ebb0=_0x324bc7[_0x15a00f(0x174)]?.[_0x15a00f(0x172)](),_0x2d7f53=new Map(),_0x564092=resolve(getRuntimeSkillCacheRoot(_0x324bc7['env'],_0x324bc7['accessKey'],_0xe0088d),_0x19f9f5);for(const _0x42aae5 of _0x33d2b8){for(const _0x38dfee of localSkillEntryDirs(resolve(_0x564092,_0x42aae5))){collectLocalRuntimeSkill(_0x2d7f53,_0x38dfee,{'appCode':_0x19f9f5,'scopes':_0x5ef056,'code':_0x58ebb0,'source':_0x15a00f(0x18a)});}}const _0x17328f=resolveSkillSyncPaths(_0xe0088d);for(const _0x4bfd8a of[_0x17328f[_0x15a00f(0x196)],_0x17328f['claudeSkillsDir']]){for(const _0x618022 of localSkillLinkCandidates(_0x4bfd8a,_0x19f9f5,_0x5ef056)){collectLocalRuntimeSkill(_0x2d7f53,_0x618022,{'appCode':_0x19f9f5,'scopes':_0x5ef056,'code':_0x58ebb0,'source':'link','linkedPath':_0x618022});}}return Array[_0x15a00f(0x193)](_0x2d7f53[_0x15a00f(0x173)]())[_0x15a00f(0x175)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x5e2f5e){const _0x390626=a89_0x5994;if(!existsSync(_0x5e2f5e))return[];return readdirSync(_0x5e2f5e,{'withFileTypes':!![]})[_0x390626(0x179)](_0x429410=>_0x429410[_0x390626(0x18f)]()||_0x429410['isSymbolicLink']())['map'](_0x4d47b0=>resolve(_0x5e2f5e,_0x4d47b0['name']));}function a89_0x5994(_0x1d615e,_0x1a2083){_0x1d615e=_0x1d615e-0x16f;const _0x5a95ca=a89_0x5a95();let _0x599421=_0x5a95ca[_0x1d615e];return _0x599421;}function localSkillLinkCandidates(_0x207546,_0x29a8c8,_0xee9f5f){const _0x359bbb=a89_0x5994;if(!existsSync(_0x207546))return[];const _0x1c18c3=_0x29a8c8+'--';return readdirSync(_0x207546,{'withFileTypes':!![]})[_0x359bbb(0x179)](_0x39f7f9=>_0x39f7f9[_0x359bbb(0x18f)]()||_0x39f7f9[_0x359bbb(0x18d)]())[_0x359bbb(0x179)](_0x37befd=>_0x37befd[_0x359bbb(0x185)][_0x359bbb(0x195)](_0x1c18c3)||_0xee9f5f['has']('builtin'))[_0x359bbb(0x188)](_0x4a3e27=>resolve(_0x207546,_0x4a3e27[_0x359bbb(0x185)]));}function collectLocalRuntimeSkill(_0x4cbc44,_0x48fac0,_0x3531c6){const _0x596e44=a89_0x5994,_0x1d3ce6=resolve(_0x48fac0,METADATA_FILE),_0xe4214f=readMetadataIfPresent(_0x1d3ce6);if(!_0xe4214f)return;if(_0xe4214f['appCode']!==_0x3531c6[_0x596e44(0x18c)])return;if(!isRuntimeSkillScope(_0xe4214f['scope'])||!_0x3531c6['scopes']['has'](_0xe4214f[_0x596e44(0x183)]))return;const _0x227566=_0xe4214f[_0x596e44(0x194)]?.[_0x596e44(0x172)]();if(!_0x227566)return;if(_0x3531c6[_0x596e44(0x174)]&&_0x227566!==_0x3531c6[_0x596e44(0x174)])return;const _0x1f7f09=_0xe4214f[_0x596e44(0x183)]+':'+_0x227566,_0x52245d=_0x3531c6[_0x596e44(0x18b)]?[_0x3531c6[_0x596e44(0x18b)]]:[],_0x35eda0=_0x4cbc44[_0x596e44(0x17f)](_0x1f7f09);if(_0x35eda0){_0x3531c6[_0x596e44(0x191)]===_0x596e44(0x18a)&&(_0x35eda0[_0x596e44(0x16f)]=_0x48fac0,_0x35eda0[_0x596e44(0x17d)]=_0x48fac0,_0x35eda0['skillMdPath']=resolve(_0x48fac0,SKILL_FILE),_0x35eda0[_0x596e44(0x182)]=_0x1d3ce6);for(const _0x4bcd99 of _0x52245d){!_0x35eda0[_0x596e44(0x189)]['includes'](_0x4bcd99)&&_0x35eda0[_0x596e44(0x189)]['push'](_0x4bcd99);}_0x35eda0['linkedPaths'][_0x596e44(0x175)]();return;}_0x4cbc44[_0x596e44(0x17c)](_0x1f7f09,{..._0xe4214f,'tags':Array[_0x596e44(0x170)](_0xe4214f[_0x596e44(0x176)])?_0xe4214f['tags']:[],'scope':_0xe4214f[_0x596e44(0x183)],'source':'local','dir':_0x48fac0,'cacheDir':_0x3531c6[_0x596e44(0x191)]===_0x596e44(0x18a)?_0x48fac0:undefined,'skillMdPath':resolve(_0x48fac0,SKILL_FILE),'metadataPath':_0x1d3ce6,'linkedPaths':_0x52245d});}function a89_0x5a95(){const _0x1e3836=['startsWith','agentsSkillsDir','dir','isArray','720SeIIsa','trim','values','code','sort','tags','382756YPOCfQ','338410dThDaB','filter','2296360jJKpaF','96QKIxfY','set','cacheDir','5OvQuGu','get','9mcvBxm','scopes','metadataPath','scope','85900uHSGHl','name','localeCompare','24DKSMfj','map','linkedPaths','cache','linkedPath','appCode','isSymbolicLink','1602696vdmqlj','isDirectory','3070WyKmEp','source','12677EgwvqP','from','skillCode'];a89_0x5a95=function(){return _0x1e3836;};return a89_0x5a95();}function compareLocalRuntimeSkills(_0x121c8c,_0x1f69c3){const _0x6a31e3=a89_0x5994,_0x449375={'personal':0x0,'company':0x1,'builtin':0x2};return _0x449375[_0x121c8c[_0x6a31e3(0x183)]]-_0x449375[_0x1f69c3[_0x6a31e3(0x183)]]||_0x121c8c[_0x6a31e3(0x194)][_0x6a31e3(0x186)](_0x1f69c3['skillCode'])||_0x121c8c[_0x6a31e3(0x16f)][_0x6a31e3(0x186)](_0x1f69c3['dir']);}
@@ -1 +1 @@
1
- (function(_0xb376f0,_0x3e3cae){const _0x23048e=a90_0x35b9,_0x55020d=_0xb376f0();while(!![]){try{const _0x3978b8=-parseInt(_0x23048e(0x1bd))/0x1*(parseInt(_0x23048e(0x1be))/0x2)+-parseInt(_0x23048e(0x1b4))/0x3*(-parseInt(_0x23048e(0x1b7))/0x4)+parseInt(_0x23048e(0x1ae))/0x5*(-parseInt(_0x23048e(0x1c2))/0x6)+parseInt(_0x23048e(0x1b5))/0x7+parseInt(_0x23048e(0x1ce))/0x8*(-parseInt(_0x23048e(0x1da))/0x9)+parseInt(_0x23048e(0x1db))/0xa+-parseInt(_0x23048e(0x1c0))/0xb*(-parseInt(_0x23048e(0x1d2))/0xc);if(_0x3978b8===_0x3e3cae)break;else _0x55020d['push'](_0x55020d['shift']());}catch(_0x27636e){_0x55020d['push'](_0x55020d['shift']());}}}(a90_0x31c0,0xc0c64));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';function a90_0x31c0(){const _0x4af355=['539Ddyqlg','path','24KRxSGb','bytes','isBuffer','validation','name','size','has','compare','Skill\x20file\x20path\x20must\x20be\x20text.','Unsafe\x20Skill\x20file\x20path:\x20','split','push','23880zBYyAX','isArray','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','isDirectory','128712uCAHQg','localeCompare','string','toLowerCase','utf8','includes','object','values','774GJnrNy','234270iCHgSa','1232535FgxBqm','set','isFile','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','replace','length','15vlibmW','1262240LrvGdH','Skill\x20file\x20sha256\x20is\x20invalid:\x20','1086692UCiVxK','content','toString','sort','trim','from','12fwhFip','9224udXIeA','test'];a90_0x31c0=function(){return _0x4af355;};return a90_0x31c0();}export function fileContent(_0xd2abbc){const _0x3a8b71=a90_0x35b9;return _0xd2abbc['bytes']??Buffer['from'](_0xd2abbc[_0x3a8b71(0x1b8)]??'',_0x3a8b71(0x1d6));}function a90_0x35b9(_0xbfcb0,_0x4fbc84){_0xbfcb0=_0xbfcb0-0x1ae;const _0x31c0be=a90_0x31c0();let _0x35b945=_0x31c0be[_0xbfcb0];return _0x35b945;}export function fileText(_0x2afaf4){const _0x1c5e9b=a90_0x35b9;return fileContent(_0x2afaf4)[_0x1c5e9b(0x1b9)](_0x1c5e9b(0x1d6));}export function normalizeLocalFiles(_0x505ac9){const _0x48e3d9=a90_0x35b9;if(!Array[_0x48e3d9(0x1cf)](_0x505ac9)||_0x505ac9[_0x48e3d9(0x1b3)]===0x0)return[];const _0x40c23d=new Map();for(const _0x3a84ce of _0x505ac9){if(!_0x3a84ce||typeof _0x3a84ce!==_0x48e3d9(0x1d8)||typeof _0x3a84ce[_0x48e3d9(0x1c1)]!==_0x48e3d9(0x1d4))throw CliErrors[_0x48e3d9(0x1c5)](_0x48e3d9(0x1ca));const _0x406f0e=normalizeSkillRelativePath(_0x3a84ce[_0x48e3d9(0x1c1)]);if(_0x40c23d[_0x48e3d9(0x1c8)](_0x406f0e))throw CliErrors[_0x48e3d9(0x1c5)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x406f0e);if(_0x3a84ce['bytes']!==undefined&&!Buffer[_0x48e3d9(0x1c4)](_0x3a84ce[_0x48e3d9(0x1c3)]))throw CliErrors[_0x48e3d9(0x1c5)]('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0x406f0e);if(_0x3a84ce[_0x48e3d9(0x1c3)]===undefined&&typeof _0x3a84ce[_0x48e3d9(0x1b8)]!==_0x48e3d9(0x1d4))throw CliErrors[_0x48e3d9(0x1c5)](_0x48e3d9(0x1b1)+_0x406f0e);const _0x269f5e=fileContent(_0x3a84ce);_0x40c23d[_0x48e3d9(0x1af)](_0x406f0e,{'path':_0x406f0e,'bytes':_0x269f5e});}return Array['from'](_0x40c23d[_0x48e3d9(0x1d9)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x32d77c){const _0x2585a7=a90_0x35b9;if(!Array['isArray'](_0x32d77c)||_0x32d77c['length']===0x0)return[];const _0x1236c4=new Map();for(const _0x1536f0 of _0x32d77c){if(!_0x1536f0||typeof _0x1536f0!==_0x2585a7(0x1d8)||typeof _0x1536f0[_0x2585a7(0x1c1)]!==_0x2585a7(0x1d4))throw CliErrors[_0x2585a7(0x1c5)](_0x2585a7(0x1ca));const _0x10d8bc=normalizeSkillRelativePath(_0x1536f0[_0x2585a7(0x1c1)]);if(_0x1236c4['has'](_0x10d8bc))throw CliErrors[_0x2585a7(0x1c5)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x10d8bc);if(!isSha256Hex(_0x1536f0['sha256']))throw CliErrors[_0x2585a7(0x1c5)](_0x2585a7(0x1b6)+_0x10d8bc);if(!Number['isSafeInteger'](_0x1536f0[_0x2585a7(0x1c7)])||_0x1536f0[_0x2585a7(0x1c7)]<0x0)throw CliErrors['validation']('Skill\x20file\x20size\x20is\x20invalid:\x20'+_0x10d8bc);_0x1236c4[_0x2585a7(0x1af)](_0x10d8bc,{'path':_0x10d8bc,'sha256':_0x1536f0['sha256'][_0x2585a7(0x1d5)](),'size':_0x1536f0[_0x2585a7(0x1c7)]});}return Array[_0x2585a7(0x1bc)](_0x1236c4[_0x2585a7(0x1d9)]())[_0x2585a7(0x1ba)](compareSkillFiles);}export function scanSkillDirectory(_0x3c52c2){const _0x14f1a3=realpathSync(_0x3c52c2),_0x3f7027=[];function _0x3f26ab(_0xee3cb0){const _0xbdaa5a=a90_0x35b9,_0x5a9e74=readdirSync(_0xee3cb0,{'withFileTypes':!![]})[_0xbdaa5a(0x1ba)]((_0x8fe0f,_0x4ce78d)=>_0x8fe0f[_0xbdaa5a(0x1c6)][_0xbdaa5a(0x1d3)](_0x4ce78d[_0xbdaa5a(0x1c6)]));for(const _0xe35446 of _0x5a9e74){if(_0xe35446[_0xbdaa5a(0x1d1)]()&&IGNORED_DIR_NAMES['has'](_0xe35446[_0xbdaa5a(0x1c6)]))continue;if(IGNORED_FILE_NAMES[_0xbdaa5a(0x1c8)](_0xe35446[_0xbdaa5a(0x1c6)]))continue;const _0x5541c9=resolve(_0xee3cb0,_0xe35446[_0xbdaa5a(0x1c6)]);if(_0xe35446['isSymbolicLink']())throw CliErrors[_0xbdaa5a(0x1c5)](_0xbdaa5a(0x1d0)+_0x5541c9);const _0x52110d=toPosixPath(relative(_0x14f1a3,_0x5541c9));if(_0xe35446['isDirectory']()){_0x3f26ab(_0x5541c9);continue;}if(!_0xe35446[_0xbdaa5a(0x1b0)]())continue;validateSkillRelativePath(_0x52110d);const _0x1f9181=readFileSync(_0x5541c9);_0x3f7027[_0xbdaa5a(0x1cd)]({'path':_0x52110d,'bytes':_0x1f9181});}}return _0x3f26ab(_0x14f1a3),normalizeLocalFiles(_0x3f7027);}export function compareSkillFiles(_0x40e8f2,_0x592fff){const _0x2ebc36=a90_0x35b9;if(_0x40e8f2[_0x2ebc36(0x1c1)]===SKILL_FILE)return _0x592fff['path']===SKILL_FILE?0x0:-0x1;if(_0x592fff[_0x2ebc36(0x1c1)]===SKILL_FILE)return 0x1;return Buffer[_0x2ebc36(0x1c9)](Buffer[_0x2ebc36(0x1bc)](_0x40e8f2[_0x2ebc36(0x1c1)],_0x2ebc36(0x1d6)),Buffer[_0x2ebc36(0x1bc)](_0x592fff['path'],'utf8'));}export function normalizeSkillRelativePath(_0x3860af){const _0x4c5e08=a90_0x35b9,_0x559bfc=toPosixPath(_0x3860af[_0x4c5e08(0x1bb)]());return validateSkillRelativePath(_0x559bfc),_0x559bfc;}export function validateSkillRelativePath(_0x5b810e){const _0x10bea8=a90_0x35b9;if(!_0x5b810e||_0x5b810e['startsWith']('/')||_0x5b810e[_0x10bea8(0x1d7)]('//'))throw CliErrors['validation'](_0x10bea8(0x1cb)+_0x5b810e);for(const _0x1b8b22 of _0x5b810e[_0x10bea8(0x1cc)]('/')){if(!_0x1b8b22||_0x1b8b22==='.'||_0x1b8b22==='..')throw CliErrors[_0x10bea8(0x1c5)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x5b810e);}}export function toPosixPath(_0x4231a8){const _0x41fd7d=a90_0x35b9;return _0x4231a8[_0x41fd7d(0x1b2)](/\\/g,'/');}export function isSha256Hex(_0x4778fc){const _0xf3f572=a90_0x35b9;return typeof _0x4778fc===_0xf3f572(0x1d4)&&/^[a-fA-F0-9]{64}$/[_0xf3f572(0x1bf)](_0x4778fc);}
1
+ function a90_0x100b(){const _0x249956=['set','466260KAhJbS','object','11504qnSdXO','content','compare','1587481BOtMzK','has','6771670Tacguk','16vImHuS','utf8','test','11YMIIIh','sha256','trim','toString','222090yDlQym','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','from','split','Unsafe\x20Skill\x20file\x20path:\x20','isDirectory','isSafeInteger','sort','215QwWrtW','startsWith','isBuffer','Skill\x20file\x20size\x20is\x20invalid:\x20','Duplicate\x20Skill\x20file\x20path:\x20','isFile','push','localeCompare','1721970JhJdUH','name','path','4071ZDbfRj','validation','values','bytes','size','string','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','346SnRfbY'];a90_0x100b=function(){return _0x249956;};return a90_0x100b();}(function(_0x2ad8b2,_0x271ca7){const _0x5a6489=a90_0x1fd3,_0x401b6f=_0x2ad8b2();while(!![]){try{const _0x27309c=parseInt(_0x5a6489(0xd0))/0x1+-parseInt(_0x5a6489(0xea))/0x2*(-parseInt(_0x5a6489(0xe3))/0x3)+parseInt(_0x5a6489(0xee))/0x4*(parseInt(_0x5a6489(0xd8))/0x5)+parseInt(_0x5a6489(0xec))/0x6+-parseInt(_0x5a6489(0xf1))/0x7*(-parseInt(_0x5a6489(0xf4))/0x8)+-parseInt(_0x5a6489(0xe0))/0x9+parseInt(_0x5a6489(0xf3))/0xa*(-parseInt(_0x5a6489(0xf7))/0xb);if(_0x27309c===_0x271ca7)break;else _0x401b6f['push'](_0x401b6f['shift']());}catch(_0x2fd5b6){_0x401b6f['push'](_0x401b6f['shift']());}}}(a90_0x100b,0x3b662));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x509421){const _0x18b9fc=a90_0x1fd3;return _0x509421['bytes']??Buffer['from'](_0x509421[_0x18b9fc(0xef)]??'',_0x18b9fc(0xf5));}export function fileText(_0x4c38cb){const _0x3a85a3=a90_0x1fd3;return fileContent(_0x4c38cb)[_0x3a85a3(0xcf)](_0x3a85a3(0xf5));}export function normalizeLocalFiles(_0x41ef9e){const _0x5ccddf=a90_0x1fd3;if(!Array['isArray'](_0x41ef9e)||_0x41ef9e['length']===0x0)return[];const _0x2bc58b=new Map();for(const _0x44ddd8 of _0x41ef9e){if(!_0x44ddd8||typeof _0x44ddd8!==_0x5ccddf(0xed)||typeof _0x44ddd8[_0x5ccddf(0xe2)]!==_0x5ccddf(0xe8))throw CliErrors[_0x5ccddf(0xe4)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x394170=normalizeSkillRelativePath(_0x44ddd8['path']);if(_0x2bc58b['has'](_0x394170))throw CliErrors['validation']('Duplicate\x20Skill\x20file\x20path:\x20'+_0x394170);if(_0x44ddd8['bytes']!==undefined&&!Buffer[_0x5ccddf(0xda)](_0x44ddd8[_0x5ccddf(0xe6)]))throw CliErrors[_0x5ccddf(0xe4)](_0x5ccddf(0xd1)+_0x394170);if(_0x44ddd8[_0x5ccddf(0xe6)]===undefined&&typeof _0x44ddd8['content']!==_0x5ccddf(0xe8))throw CliErrors['validation']('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x394170);const _0x21b082=fileContent(_0x44ddd8);_0x2bc58b[_0x5ccddf(0xeb)](_0x394170,{'path':_0x394170,'bytes':_0x21b082});}return Array[_0x5ccddf(0xd2)](_0x2bc58b[_0x5ccddf(0xe5)]())[_0x5ccddf(0xd7)](compareSkillFiles);}function a90_0x1fd3(_0x48e034,_0x264456){_0x48e034=_0x48e034-0xce;const _0x100b88=a90_0x100b();let _0x1fd3db=_0x100b88[_0x48e034];return _0x1fd3db;}export function normalizeManifestFiles(_0x4f993a){const _0x30e05e=a90_0x1fd3;if(!Array['isArray'](_0x4f993a)||_0x4f993a['length']===0x0)return[];const _0x155384=new Map();for(const _0x105376 of _0x4f993a){if(!_0x105376||typeof _0x105376!==_0x30e05e(0xed)||typeof _0x105376[_0x30e05e(0xe2)]!=='string')throw CliErrors[_0x30e05e(0xe4)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x382135=normalizeSkillRelativePath(_0x105376[_0x30e05e(0xe2)]);if(_0x155384[_0x30e05e(0xf2)](_0x382135))throw CliErrors['validation'](_0x30e05e(0xdc)+_0x382135);if(!isSha256Hex(_0x105376[_0x30e05e(0xf8)]))throw CliErrors[_0x30e05e(0xe4)]('Skill\x20file\x20sha256\x20is\x20invalid:\x20'+_0x382135);if(!Number[_0x30e05e(0xd6)](_0x105376[_0x30e05e(0xe7)])||_0x105376[_0x30e05e(0xe7)]<0x0)throw CliErrors[_0x30e05e(0xe4)](_0x30e05e(0xdb)+_0x382135);_0x155384[_0x30e05e(0xeb)](_0x382135,{'path':_0x382135,'sha256':_0x105376[_0x30e05e(0xf8)]['toLowerCase'](),'size':_0x105376['size']});}return Array['from'](_0x155384[_0x30e05e(0xe5)]())[_0x30e05e(0xd7)](compareSkillFiles);}export function scanSkillDirectory(_0x16bedc){const _0x19163b=realpathSync(_0x16bedc),_0x26836d=[];function _0x162065(_0x410f83){const _0x144c88=a90_0x1fd3,_0xeeb810=readdirSync(_0x410f83,{'withFileTypes':!![]})[_0x144c88(0xd7)]((_0x34fe1b,_0x28c5b3)=>_0x34fe1b[_0x144c88(0xe1)][_0x144c88(0xdf)](_0x28c5b3['name']));for(const _0x4d92cc of _0xeeb810){if(_0x4d92cc[_0x144c88(0xd5)]()&&IGNORED_DIR_NAMES[_0x144c88(0xf2)](_0x4d92cc['name']))continue;if(IGNORED_FILE_NAMES[_0x144c88(0xf2)](_0x4d92cc['name']))continue;const _0x33a09b=resolve(_0x410f83,_0x4d92cc[_0x144c88(0xe1)]);if(_0x4d92cc['isSymbolicLink']())throw CliErrors['validation'](_0x144c88(0xe9)+_0x33a09b);const _0x311368=toPosixPath(relative(_0x19163b,_0x33a09b));if(_0x4d92cc['isDirectory']()){_0x162065(_0x33a09b);continue;}if(!_0x4d92cc[_0x144c88(0xdd)]())continue;validateSkillRelativePath(_0x311368);const _0x4bbd3b=readFileSync(_0x33a09b);_0x26836d[_0x144c88(0xde)]({'path':_0x311368,'bytes':_0x4bbd3b});}}return _0x162065(_0x19163b),normalizeLocalFiles(_0x26836d);}export function compareSkillFiles(_0x556b06,_0x444abc){const _0x57d778=a90_0x1fd3;if(_0x556b06[_0x57d778(0xe2)]===SKILL_FILE)return _0x444abc[_0x57d778(0xe2)]===SKILL_FILE?0x0:-0x1;if(_0x444abc[_0x57d778(0xe2)]===SKILL_FILE)return 0x1;return Buffer[_0x57d778(0xf0)](Buffer[_0x57d778(0xd2)](_0x556b06[_0x57d778(0xe2)],_0x57d778(0xf5)),Buffer['from'](_0x444abc[_0x57d778(0xe2)],_0x57d778(0xf5)));}export function normalizeSkillRelativePath(_0x1965b6){const _0x2d760f=a90_0x1fd3,_0x148281=toPosixPath(_0x1965b6[_0x2d760f(0xce)]());return validateSkillRelativePath(_0x148281),_0x148281;}export function validateSkillRelativePath(_0x5b5eb2){const _0x593c0a=a90_0x1fd3;if(!_0x5b5eb2||_0x5b5eb2[_0x593c0a(0xd9)]('/')||_0x5b5eb2['includes']('//'))throw CliErrors[_0x593c0a(0xe4)](_0x593c0a(0xd4)+_0x5b5eb2);for(const _0xd11806 of _0x5b5eb2[_0x593c0a(0xd3)]('/')){if(!_0xd11806||_0xd11806==='.'||_0xd11806==='..')throw CliErrors['validation'](_0x593c0a(0xd4)+_0x5b5eb2);}}export function toPosixPath(_0x58e41e){return _0x58e41e['replace'](/\\/g,'/');}export function isSha256Hex(_0x1d3ee3){const _0x4ab7d8=a90_0x1fd3;return typeof _0x1d3ee3===_0x4ab7d8(0xe8)&&/^[a-fA-F0-9]{64}$/[_0x4ab7d8(0xf6)](_0x1d3ee3);}