@lovrabet/lovrabet-cli 2.1.6-beta.5 → 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(_0x97b820,_0x3a81a5){const _0x463b36=a74_0x3ce5,_0x97e08e=_0x97b820();while(!![]){try{const _0x3fccf0=-parseInt(_0x463b36(0xbf))/0x1+parseInt(_0x463b36(0xbc))/0x2*(parseInt(_0x463b36(0xb3))/0x3)+parseInt(_0x463b36(0xba))/0x4*(-parseInt(_0x463b36(0xc0))/0x5)+parseInt(_0x463b36(0xbd))/0x6*(-parseInt(_0x463b36(0xbe))/0x7)+parseInt(_0x463b36(0xc2))/0x8+parseInt(_0x463b36(0xbb))/0x9+parseInt(_0x463b36(0xb6))/0xa;if(_0x3fccf0===_0x3a81a5)break;else _0x97e08e['push'](_0x97e08e['shift']());}catch(_0x3e0598){_0x97e08e['push'](_0x97e08e['shift']());}}}(a74_0x1a71,0xb5598));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a74_0x3ce5(_0x1480b9,_0x3918b3){_0x1480b9=_0x1480b9-0xb3;const _0x1a71be=a74_0x1a71();let _0x3ce5ed=_0x1a71be[_0x1480b9];return _0x3ce5ed;}export function formatOutput(_0x316124,_0x395f6a){const _0x3e72e6=a74_0x3ce5,_0x473eba=_0x316124[_0x3e72e6(0xb8)],{_notice:_0x385bd3,..._0xb29ec9}=_0x316124;void _0x385bd3,baseFormatOutput(_0xb29ec9,_0x395f6a),_0x395f6a[_0x3e72e6(0xb5)]==='pretty'&&printPrettyNotice(_0x473eba);}function a74_0x1a71(){const _0x5ccd6d=['9595134yCOPis','6ioSZqi','126UmJRnN','19495oYlwBX','1246764BABZEV','110845BdSNeD','message','935336fPsjJi','387432YaxZZW','update','format','18963980vmqmqG','error','_notice','url','256PUVail'];a74_0x1a71=function(){return _0x5ccd6d;};return a74_0x1a71();}function printPrettyNotice(_0x463620){const _0x172182=a74_0x3ce5;if(!_0x463620?.[_0x172182(0xb4)])return;console[_0x172182(0xb7)](_0x463620[_0x172182(0xb4)][_0x172182(0xc1)]+'\x20('+_0x463620[_0x172182(0xb4)][_0x172182(0xb9)]+')');}
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 a75_0xff6f(){const _0x13875f=['indexOf','sticky','replace','7059BizxKU','3FeCHdg','yes','5iZdEjF','string','global','type','toLowerCase','alias','8364uEzKDP','number','push','entries','slice','non-interactive','1440438DgGRJX','24BdtOAz','1306956zUWUSv','add','corrected','get','1503238NPWnJR','name','appcode','toUpperCase','length','117974hOZnVt','7CErYiU','help','153640EqivKV','1051722RjCSTc','set','has','10pRCmxN','env','dry-run','boolean'];a75_0xff6f=function(){return _0x13875f;};return a75_0xff6f();}(function(_0x3464e9,_0x18decf){const _0x26f32b=a75_0x159b,_0x496675=_0x3464e9();while(!![]){try{const _0x407f8f=-parseInt(_0x26f32b(0x21a))/0x1*(parseInt(_0x26f32b(0x209))/0x2)+parseInt(_0x26f32b(0x218))/0x3*(-parseInt(_0x26f32b(0x200))/0x4)+-parseInt(_0x26f32b(0x20c))/0x5+parseInt(_0x26f32b(0x1fe))/0x6*(parseInt(_0x26f32b(0x20a))/0x7)+parseInt(_0x26f32b(0x1ff))/0x8*(parseInt(_0x26f32b(0x20d))/0x9)+parseInt(_0x26f32b(0x210))/0xa*(-parseInt(_0x26f32b(0x204))/0xb)+parseInt(_0x26f32b(0x1f8))/0xc*(parseInt(_0x26f32b(0x217))/0xd);if(_0x407f8f===_0x18decf)break;else _0x496675['push'](_0x496675['shift']());}catch(_0x6d4e93){_0x496675['push'](_0x496675['shift']());}}}(a75_0xff6f,0x2bf5a));function a75_0x159b(_0x5079ae,_0x2b4ee8){_0x5079ae=_0x5079ae-0x1f4;const _0xff6fd4=a75_0xff6f();let _0x159be8=_0xff6fd4[_0x5079ae];return _0x159be8;}function toKebab(_0x24f392){const _0x4e926a=a75_0x159b;return _0x24f392['replace'](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0xf64aea,_0x96f98a)=>'-'+_0x96f98a[_0x4e926a(0x1f6)]())[_0x4e926a(0x216)](/([a-z0-9])([A-Z])/g,(_0x2c41fe,_0x41abbe,_0x5f3e7c)=>_0x41abbe+'-'+_0x5f3e7c)[_0x4e926a(0x1f6)]();}function buildKnownFlags(_0x19bb23){const _0x4775ca=a75_0x159b,_0xdd537c=new Set();for(const _0x3b0463 of _0x19bb23){_0xdd537c[_0x4775ca(0x201)](_0x3b0463[_0x4775ca(0x205)]),_0xdd537c[_0x4775ca(0x201)](toCamelCase(_0x3b0463['name']));}for(const _0x1061fc of[_0x4775ca(0x212),'dryRun',_0x4775ca(0x219),'format']){_0xdd537c[_0x4775ca(0x201)](_0x1061fc);}for(const _0x3bbddf of[_0x4775ca(0x20b),_0x4775ca(0x211),_0x4775ca(0x206),'app','nonInteractive',_0x4775ca(0x1fd),'ci',_0x4775ca(0x1f4),'version']){_0xdd537c['add'](_0x3bbddf);}return _0xdd537c;}function buildFlagTypeMap(_0x12d3b1){const _0x3566fb=a75_0x159b,_0x6efc0e=new Map();for(const _0x5d0c71 of _0x12d3b1){_0x6efc0e['set'](_0x5d0c71[_0x3566fb(0x205)],_0x5d0c71[_0x3566fb(0x1f5)]),_0x6efc0e[_0x3566fb(0x20e)](toCamelCase(_0x5d0c71[_0x3566fb(0x205)]),_0x5d0c71[_0x3566fb(0x1f5)]);}return _0x6efc0e;}function toCamelCase(_0x357020){const _0x30f4b3=a75_0x159b;return _0x357020[_0x30f4b3(0x216)](/-([a-z])/g,(_0x18f19a,_0x5b0b16)=>_0x5b0b16[_0x30f4b3(0x207)]());}function aliasHandler(_0x3125cd,_0x16cc4d){const _0x219b79=a75_0x159b,_0x10aec9=[];for(const _0x1a6ed0 of Object['keys'](_0x3125cd)){if(_0x16cc4d[_0x219b79(0x20f)](_0x1a6ed0))continue;const _0x470239=toKebab(_0x1a6ed0);_0x470239!==_0x1a6ed0&&_0x16cc4d[_0x219b79(0x20f)](_0x470239)&&_0x10aec9[_0x219b79(0x1fa)]({'original':_0x1a6ed0,'corrected':_0x470239,'handler':_0x219b79(0x1f7)});}return _0x10aec9;}function stickyHandler(_0x51ea7f,_0x3ff8c6,_0x34c8f3){const _0x224c42=a75_0x159b,_0x223695=[];for(const [_0x52829e,_0x412607]of Object[_0x224c42(0x1fb)](_0x51ea7f)){if(_0x412607!==!![])continue;for(let _0x4c72cd=_0x52829e[_0x224c42(0x208)]-0x1;_0x4c72cd>0x0;_0x4c72cd--){const _0x2d5793=_0x52829e[_0x224c42(0x1fc)](0x0,_0x4c72cd),_0x58b883=_0x52829e[_0x224c42(0x1fc)](_0x4c72cd),_0x22c5a7=toKebab(_0x2d5793),_0xcf3062=toCamelCase(_0x2d5793),_0x580b3a=_0x3ff8c6[_0x224c42(0x20f)](_0x2d5793)?_0x2d5793:_0x3ff8c6[_0x224c42(0x20f)](_0x22c5a7)?_0x22c5a7:_0x3ff8c6[_0x224c42(0x20f)](_0xcf3062)?_0xcf3062:null;if(!_0x580b3a)continue;const _0x504057=_0x34c8f3['get'](_0x580b3a)??'string';let _0x2f7111;if(_0x504057===_0x224c42(0x1f9)){const _0x4509f1=Number(_0x58b883);if(isNaN(_0x4509f1)||_0x58b883==='')continue;_0x2f7111=_0x4509f1;}else{if(_0x504057===_0x224c42(0x213))continue;else{if(_0x58b883==='')continue;_0x2f7111=_0x58b883;}}_0x223695[_0x224c42(0x1fa)]({'original':_0x52829e,'corrected':_0x580b3a+'='+_0x2f7111,'handler':_0x224c42(0x215)});break;}}return _0x223695;}export function correctFlags(_0x2bf1ec,_0x1e8527){const _0x167d11=a75_0x159b,_0x183f06=buildKnownFlags(_0x1e8527),_0x65f95f=buildFlagTypeMap(_0x1e8527),_0x170e29=aliasHandler(_0x2bf1ec,_0x183f06),_0x151727=stickyHandler(_0x2bf1ec,_0x183f06,_0x65f95f),_0x1adf77=[..._0x170e29,..._0x151727];if(_0x1adf77[_0x167d11(0x208)]===0x0)return{'flags':_0x2bf1ec,'corrections':[]};const _0x1daf38={..._0x2bf1ec},_0x4e86e2=new Set();for(const _0x207e7e of _0x170e29){_0x1daf38[_0x207e7e[_0x167d11(0x202)]]=_0x2bf1ec[_0x207e7e['original']],_0x4e86e2[_0x167d11(0x201)](_0x207e7e['original']);}for(const _0x3c11e1 of _0x151727){const _0xe4f70=_0x3c11e1[_0x167d11(0x202)][_0x167d11(0x214)]('='),_0x89856e=_0x3c11e1[_0x167d11(0x202)][_0x167d11(0x1fc)](0x0,_0xe4f70),_0x309697=_0x3c11e1['corrected'][_0x167d11(0x1fc)](_0xe4f70+0x1),_0x4a4af1=_0x65f95f[_0x167d11(0x203)](_0x89856e)??_0x167d11(0x21b);_0x4a4af1===_0x167d11(0x1f9)?_0x1daf38[_0x89856e]=Number(_0x309697):_0x1daf38[_0x89856e]=_0x309697,_0x4e86e2[_0x167d11(0x201)](_0x3c11e1['original']);}for(const _0x531d99 of _0x4e86e2){delete _0x1daf38[_0x531d99];}return{'flags':_0x1daf38,'corrections':_0x1adf77};}
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(_0x49304a,_0x361279){var _0x3a5fbb=a76_0x5ade,_0x199e93=_0x49304a();while(!![]){try{var _0x293bc0=parseInt(_0x3a5fbb(0x1d8))/0x1+-parseInt(_0x3a5fbb(0x1dd))/0x2+-parseInt(_0x3a5fbb(0x1de))/0x3*(parseInt(_0x3a5fbb(0x1db))/0x4)+parseInt(_0x3a5fbb(0x1d7))/0x5*(-parseInt(_0x3a5fbb(0x1d4))/0x6)+-parseInt(_0x3a5fbb(0x1dc))/0x7*(-parseInt(_0x3a5fbb(0x1d9))/0x8)+-parseInt(_0x3a5fbb(0x1d6))/0x9+-parseInt(_0x3a5fbb(0x1da))/0xa*(-parseInt(_0x3a5fbb(0x1d5))/0xb);if(_0x293bc0===_0x361279)break;else _0x199e93['push'](_0x199e93['shift']());}catch(_0x72ba74){_0x199e93['push'](_0x199e93['shift']());}}}(a76_0x4a9a,0x47570));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a76_0x5ade(_0x3a0f80,_0x4d3e5d){_0x3a0f80=_0x3a0f80-0x1d4;var _0x4a9a61=a76_0x4a9a();var _0x5ade46=_0x4a9a61[_0x3a0f80];return _0x5ade46;}function a76_0x4a9a(){var _0x29a72f=['11833940hlzcFC','1420wSdwGi','14qRCWSm','480384FjpcmY','4821dCjMxK','1266Tlmlev','11qhylhl','1225755weRRXs','7895VEUDGN','193749sXAJiQ','780424gxqYGv'];a76_0x4a9a=function(){return _0x29a72f;};return a76_0x4a9a();}
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 a77_0xf5ae(){const _0x3d949c=['length','2071041szEpIO','command','54678MPTSsp','6195051zHurKd','description','809691pqmECk','params','affectedRecords','entries','16973hWwNEN','--yes','2310hSZYdV','475hdMPqM','8wjTpqn','⚠\x20\x20High-risk\x20operation:\x20','code','name','join','push','2UdoVVr','code=','id=','101271XRpFXO','9469944psprji','16zaxlBd','service','name='];a77_0xf5ae=function(){return _0x3d949c;};return a77_0xf5ae();}(function(_0xd9d508,_0x2d7361){const _0x7859a2=a77_0x5873,_0x4983ec=_0xd9d508();while(!![]){try{const _0x238393=-parseInt(_0x7859a2(0x14a))/0x1*(parseInt(_0x7859a2(0x13c))/0x2)+parseInt(_0x7859a2(0x13f))/0x3*(-parseInt(_0x7859a2(0x141))/0x4)+-parseInt(_0x7859a2(0x151))/0x5*(-parseInt(_0x7859a2(0x147))/0x6)+parseInt(_0x7859a2(0x145))/0x7+-parseInt(_0x7859a2(0x152))/0x8*(-parseInt(_0x7859a2(0x148))/0x9)+-parseInt(_0x7859a2(0x150))/0xa*(-parseInt(_0x7859a2(0x14e))/0xb)+-parseInt(_0x7859a2(0x140))/0xc;if(_0x238393===_0x2d7361)break;else _0x4983ec['push'](_0x4983ec['shift']());}catch(_0x5d3270){_0x4983ec['push'](_0x4983ec['shift']());}}}(a77_0xf5ae,0x735a9));function a77_0x5873(_0x9a6e23,_0xe333e){_0x9a6e23=_0x9a6e23-0x139;const _0xf5aead=a77_0xf5ae();let _0x587377=_0xf5aead[_0x9a6e23];return _0x587377;}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x2e22e1,_0x37263b,_0x497af4){const _0x41d28f=a77_0x5873,_0x290659=buildConfirmationContext(_0x2e22e1,_0x37263b,_0x497af4),_0x4220b1=[_0x41d28f(0x153)+_0x290659['commandLabel']];return _0x290659[_0x41d28f(0x149)]&&_0x4220b1[_0x41d28f(0x13b)]('\x20\x20\x20'+_0x290659[_0x41d28f(0x149)]),_0x290659[_0x41d28f(0x14c)]&&_0x4220b1[_0x41d28f(0x13b)]('\x20\x20\x20Affected:\x20'+_0x290659[_0x41d28f(0x14c)]),_0x4220b1[_0x41d28f(0x13b)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x4220b1;}export function reconstructCommandArgv(_0x38ab47,_0x39888b){const _0x27ca10=a77_0x5873,_0x36a338=[CLI_BIN_NAME,_0x38ab47[_0x27ca10(0x142)],_0x38ab47[_0x27ca10(0x146)]];for(const [_0x5533b7,_0x66e6a]of Object[_0x27ca10(0x14d)](_0x39888b)){if(_0x66e6a===!![])_0x36a338[_0x27ca10(0x13b)]('--'+_0x5533b7);else _0x66e6a!==![]&&_0x66e6a!==undefined&&_0x66e6a!==''&&_0x36a338[_0x27ca10(0x13b)]('--'+_0x5533b7+'\x20'+JSON['stringify'](_0x66e6a));}return _0x36a338[_0x27ca10(0x13b)](_0x27ca10(0x14f)),_0x36a338[_0x27ca10(0x13a)]('\x20');}function buildConfirmationContext(_0x22dc52,_0xc16d07,_0x4fc2fe){const _0x279679=a77_0x5873,_0x2a3ea4=extractAffectedRecords(_0x4fc2fe);return{'commandLabel':_0xc16d07,'description':_0x22dc52[_0x279679(0x149)],'affectedRecords':_0x2a3ea4};}function extractAffectedRecords(_0x14c290){const _0x2b2fbe=a77_0x5873,_0x5276c5=[];if(_0x14c290[_0x2b2fbe(0x154)])_0x5276c5[_0x2b2fbe(0x13b)](_0x2b2fbe(0x13d)+_0x14c290['code']);if(_0x14c290['id'])_0x5276c5['push'](_0x2b2fbe(0x13e)+_0x14c290['id']);if(_0x14c290[_0x2b2fbe(0x139)])_0x5276c5[_0x2b2fbe(0x13b)](_0x2b2fbe(0x143)+_0x14c290[_0x2b2fbe(0x139)]);if(_0x14c290[_0x2b2fbe(0x14b)])_0x5276c5[_0x2b2fbe(0x13b)]('params='+_0x14c290['params']);return _0x5276c5[_0x2b2fbe(0x144)]>0x0?_0x5276c5[_0x2b2fbe(0x13a)](',\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(_0x53cb91,_0x367ce3){const _0x25f5bc=a78_0x4c5d,_0x2f2637=_0x53cb91();while(!![]){try{const _0x3636b4=-parseInt(_0x25f5bc(0x6f))/0x1*(parseInt(_0x25f5bc(0x70))/0x2)+parseInt(_0x25f5bc(0x71))/0x3*(parseInt(_0x25f5bc(0x76))/0x4)+parseInt(_0x25f5bc(0x6d))/0x5+parseInt(_0x25f5bc(0x6c))/0x6*(-parseInt(_0x25f5bc(0x6b))/0x7)+-parseInt(_0x25f5bc(0x69))/0x8*(-parseInt(_0x25f5bc(0x6a))/0x9)+-parseInt(_0x25f5bc(0x6e))/0xa+parseInt(_0x25f5bc(0x73))/0xb*(parseInt(_0x25f5bc(0x67))/0xc);if(_0x3636b4===_0x367ce3)break;else _0x2f2637['push'](_0x2f2637['shift']());}catch(_0x54106b){_0x2f2637['push'](_0x2f2637['shift']());}}}(a78_0x3f07,0xb2568));function a78_0x3f07(){const _0x2f46e5=['756dFWujJ','263942TFJGSv','60xJYCqu','1880160tWsTgC','8023880nVXmms','659FzLqsq','1282NCsZxN','3jJMJua','trim','88RfNTVp','message','string','1268572HhmWSG','1185012qiSUjz','validation','80872VGEPSj'];a78_0x3f07=function(){return _0x2f46e5;};return a78_0x3f07();}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x28bcfb){const _0x6558d0=a78_0x4c5d;if(_0x28bcfb instanceof LovrabetError)return CliErrors[_0x6558d0(0x68)](userFacingLovrabetMessage(_0x28bcfb));return _0x28bcfb;}function a78_0x4c5d(_0x2af8ad,_0x3d2cf1){_0x2af8ad=_0x2af8ad-0x67;const _0x3f07e7=a78_0x3f07();let _0x4c5d3b=_0x3f07e7[_0x2af8ad];return _0x4c5d3b;}function userFacingLovrabetMessage(_0x44663){const _0x582558=a78_0x4c5d,_0x1d014e=_0x44663['description'];if(_0x1d014e!==undefined&&_0x1d014e!==null){if(typeof _0x1d014e===_0x582558(0x75)&&_0x1d014e[_0x582558(0x72)]())return _0x1d014e['trim']();try{return JSON['stringify'](_0x1d014e);}catch{}}return _0x44663[_0x582558(0x74)];}
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_0x3e3e92=a79_0x3253;(function(_0x306f71,_0x20abb3){const _0x2b2161=a79_0x3253,_0x41df95=_0x306f71();while(!![]){try{const _0x6012fd=parseInt(_0x2b2161(0x165))/0x1*(parseInt(_0x2b2161(0x17b))/0x2)+parseInt(_0x2b2161(0x169))/0x3+parseInt(_0x2b2161(0x192))/0x4*(-parseInt(_0x2b2161(0x199))/0x5)+-parseInt(_0x2b2161(0x189))/0x6*(-parseInt(_0x2b2161(0x16e))/0x7)+parseInt(_0x2b2161(0x183))/0x8+-parseInt(_0x2b2161(0x176))/0x9*(parseInt(_0x2b2161(0x19b))/0xa)+-parseInt(_0x2b2161(0x198))/0xb*(parseInt(_0x2b2161(0x195))/0xc);if(_0x6012fd===_0x20abb3)break;else _0x41df95['push'](_0x41df95['shift']());}catch(_0x115d39){_0x41df95['push'](_0x41df95['shift']());}}}(a79_0x261d,0x3bfe4));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';function a79_0x3253(_0x315699,_0x2759e4){_0x315699=_0x315699-0x15a;const _0x261d44=a79_0x261d();let _0x32534e=_0x261d44[_0x315699];return _0x32534e;}function a79_0x261d(){const _0x52de3f=['ACCESS_KEY','appCode','update','appcode\x20\x22','../core/api-client.js','isNonInteractive','includes','execute','Unknown\x20app:\x20','schema','service','nonInteractive','796GyUxOH','defaultApp','currentApp','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','605901ejOanU','trim','.appcode\x20to\x20','APPCODE','\x20or\x20pass\x20','539329jLpCNw','requiresAppCode','High-risk\x20operation\x20`','accessKey','format','_notice','../core/sdk-client.js','Set\x20accessKey\x20in\x20','424665iWxRaY','newConfigFileName','../commands/app/remote-source.js','configMissing','items','1044dBZCPW','\x20\x20To\x20proceed:\x20','appCodeSource','ClientAk','cancelled','validation','app','error','3693928tEyufp','Run\x20`','object','env','defaultPageSize','riskLevel','12qiHAXd','mergedCli','has','verbose','name','rawFlags','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','production','local-alias','4kkXdfR','map','authRequired','9384xdUHxf','appcode','string','7557gXCNUn','600265HBcqBP','requiresAuth','70PQzVut'];a79_0x261d=function(){return _0x52de3f;};return a79_0x261d();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x4a468f){const _0x3014b7=a79_0x3253;return void _0x4a468f,AUTH_MODE[_0x3014b7(0x17e)];}export function createPipelineEnv(_0x56eca0,_0x1bc81d){const _0x17aa13=a79_0x3253,_0x1e8020=typeof _0x1bc81d[_0x17aa13(0x181)]===_0x17aa13(0x197)&&_0x1bc81d[_0x17aa13(0x181)]['trim']();return{'rawFlags':_0x1bc81d,'appCode':_0x56eca0[_0x17aa13(0x15a)]||productEnv(_0x17aa13(0x16c))||(_0x1e8020?undefined:readAppCodeFromConfig()),'appCodeSource':_0x56eca0[_0x17aa13(0x17d)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1bc81d),'defaultFormat':_0x56eca0[_0x17aa13(0x172)],'defaultPageSize':_0x56eca0['pageSize'],'defaultVerbose':_0x56eca0[_0x17aa13(0x18c)],'riskLevel':_0x56eca0[_0x17aa13(0x188)],'accessKey':_0x56eca0[_0x17aa13(0x171)],'env':_0x56eca0[_0x17aa13(0x186)],'mergedCli':{'defaultApp':_0x56eca0[_0x17aa13(0x166)],'currentApp':_0x56eca0[_0x17aa13(0x167)],'appCode':_0x56eca0[_0x17aa13(0x15a)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2e36f1=>PIPELINE_FLAG_NAMES[a79_0x3e3e92(0x18b)](_0x2e36f1[a79_0x3e3e92(0x18d)]))[a79_0x3e3e92(0x193)](({name:_0x345650,type:_0x57a76e,description:_0x41d838})=>({'name':_0x345650,'type':_0x57a76e,'description':_0x41d838})),'formatOutput':formatOutput,'getCommandLabel'(_0x3d2992){const _0x5b08d6=a79_0x3e3e92;return CLI_BIN_NAME+'\x20'+_0x3d2992[_0x5b08d6(0x163)]+'\x20'+_0x3d2992['command'];},'riskPolicy':{'onViolation'(_0x3b32ca){const _0x43590a=a79_0x3e3e92;console[_0x43590a(0x182)](_0x3b32ca);},'createError'(_0x3e948e){const _0x3bca54=a79_0x3e3e92;return CliErrors[_0x3bca54(0x17f)](_0x3e948e);}},async 'prepare'(_0x1a0e9a,_0x155e4d){const _0x14cdac=a79_0x3e3e92,_0xc55482=resolveAuthMode(_0x155e4d);if(_0x1a0e9a[_0x14cdac(0x19a)]!==![]){if(!_0x155e4d[_0x14cdac(0x171)])throw CliErrors[_0x14cdac(0x194)](_0x14cdac(0x175)+PRODUCT_CONFIG[_0x14cdac(0x177)]+_0x14cdac(0x16d)+productEnvName(_0x14cdac(0x19c))+'.');const {setActiveAK:_0x1ba1d8}=await import('../core/api-client.js');_0x1ba1d8(_0x155e4d['accessKey']);}let _0x2ff6db='';if(_0x1a0e9a[_0x14cdac(0x16f)]!==![]){_0x2ff6db=_0x155e4d[_0x14cdac(0x15a)]??'',_0x2ff6db=await resolveExplicitAppName(_0x1a0e9a,_0x155e4d,_0x2ff6db);if(!_0x2ff6db){await assertSelectedAppNameIsRuntimeAccessible(_0x1a0e9a,_0x155e4d);throw CliErrors[_0x14cdac(0x179)](_0x14cdac(0x18f)+PRODUCT_CONFIG[_0x14cdac(0x177)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1a0e9a,_0x155e4d,_0x2ff6db);}if(_0x2ff6db){const {initSdkClient:_0x37cbdc}=await import(_0x14cdac(0x174));_0x37cbdc({'appCode':_0x2ff6db,'env':_0x155e4d[_0x14cdac(0x186)]??_0x14cdac(0x190),'accessKey':_0x155e4d[_0x14cdac(0x171)],'authMode':_0xc55482});}return{'defaults':{'booleans':{'verbose':_0x155e4d['defaultVerbose']},'numbers':{'pagesize':_0x155e4d[_0x14cdac(0x187)]}},'extras':{'appCode':_0x2ff6db,'cookie':'','apiDomain':_0x155e4d['apiDomain'],'apiDir':'','accessKey':_0x155e4d['accessKey'],'envName':_0x155e4d[_0x14cdac(0x186)],'mergedCli':_0x155e4d[_0x14cdac(0x18a)]}};},async 'confirmHighRisk'({def:_0x40c5f5,env:_0x1c86cd,flags:_0x4f2b28,commandLabel:_0x1af313}){const _0x3bd00b=a79_0x3e3e92;if(_0x1c86cd[_0x3bd00b(0x15e)]){const _0x3c9e05=reconstructCommandArgv(_0x40c5f5,_0x4f2b28);throw CliErrors[_0x3bd00b(0x180)](_0x3bd00b(0x170)+_0x1af313+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x3bd00b(0x17c)+_0x3c9e05));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x40c5f5,_0x1af313,_0x4f2b28),'createCancelledError':_0x32cbf0=>CliErrors[_0x3bd00b(0x17f)](_0x32cbf0)});},'mapDryRunError'(_0x3a2133){return mapUserFacingExecuteError(_0x3a2133);},'mapExecuteError'(_0x37ac07){return mapUserFacingExecuteError(_0x37ac07);},async 'finalize'(){const _0x3b8a9f=a79_0x3e3e92,{clearActiveAK:_0x5e0774}=await import(_0x3b8a9f(0x15d));_0x5e0774();}};async function resolveExplicitAppName(_0x3a8452,_0x44d331,_0x20bb41){const _0x36a61=a79_0x3e3e92;if(_0x3a8452[_0x36a61(0x16f)]===![])return _0x20bb41;const _0x29b378=typeof _0x44d331['rawFlags'][_0x36a61(0x181)]==='string'?_0x44d331[_0x36a61(0x18e)][_0x36a61(0x181)][_0x36a61(0x16a)]():'';if(!_0x29b378)return _0x20bb41;const _0x591e2d=typeof _0x44d331[_0x36a61(0x18e)][_0x36a61(0x196)]==='string'&&_0x44d331['rawFlags'][_0x36a61(0x196)][_0x36a61(0x16a)]()||productEnv(_0x36a61(0x16c));if(_0x591e2d||_0x44d331['appCodeSource']===_0x36a61(0x191))return _0x20bb41;const {getRemoteAppList:_0x3deec6}=await import(_0x36a61(0x178)),_0x4d9a66=await _0x3deec6({'env':_0x44d331['env']??_0x36a61(0x190),'accessKey':_0x44d331[_0x36a61(0x171)]}),_0x40e39c=findAppByName(_0x4d9a66[_0x36a61(0x17a)],_0x29b378);if(_0x40e39c&&!isRuntimeAccessibleApp(_0x40e39c))throw runtimeInaccessibleAppError(_0x40e39c,'\x22'+_0x29b378+'\x22');const _0x5a5f75=_0x40e39c?.[_0x36a61(0x15a)]?.[_0x36a61(0x16a)]();if(_0x5a5f75)return _0x5a5f75;throw CliErrors[_0x36a61(0x180)](_0x36a61(0x161)+_0x29b378,_0x36a61(0x184)+CLI_BIN_NAME+_0x36a61(0x168)+_0x29b378+_0x36a61(0x16b)+PRODUCT_CONFIG[_0x36a61(0x177)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x56b5b4,_0x1f9158){const _0x48ce7a=a79_0x3e3e92;if(_0x56b5b4['requiresAppCode']===![]||!_0x1f9158[_0x48ce7a(0x171)])return;const _0x4cffb0=(typeof _0x1f9158[_0x48ce7a(0x18e)]['app']===_0x48ce7a(0x197)&&_0x1f9158[_0x48ce7a(0x18e)][_0x48ce7a(0x181)][_0x48ce7a(0x16a)]()?_0x1f9158[_0x48ce7a(0x18e)][_0x48ce7a(0x181)]:_0x1f9158[_0x48ce7a(0x18a)]?.[_0x48ce7a(0x167)]??_0x1f9158['mergedCli']?.['defaultApp'])?.[_0x48ce7a(0x16a)]();if(!_0x4cffb0)return;const {getRemoteAppList:_0x34ba86}=await import(_0x48ce7a(0x178)),_0x4794e8=await _0x34ba86({'env':_0x1f9158[_0x48ce7a(0x186)]??_0x48ce7a(0x190),'accessKey':_0x1f9158[_0x48ce7a(0x171)]}),_0x552198=findAppByName(_0x4794e8[_0x48ce7a(0x17a)],_0x4cffb0);if(_0x552198&&!isRuntimeAccessibleApp(_0x552198))throw runtimeInaccessibleAppError(_0x552198,'\x22'+_0x4cffb0+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x54451a,_0x1af9f0,_0x5dd717){const _0x45978f=a79_0x3e3e92;if(_0x54451a[_0x45978f(0x16f)]===![]||!_0x1af9f0['accessKey'])return;const {getRemoteAppList:_0x5d72b4}=await import(_0x45978f(0x178)),_0x38270f=await _0x5d72b4({'env':_0x1af9f0[_0x45978f(0x186)]??_0x45978f(0x190),'accessKey':_0x1af9f0[_0x45978f(0x171)]}),_0x3ff601=findAppByCode(_0x38270f[_0x45978f(0x17a)],_0x5dd717);if(_0x3ff601&&!isRuntimeAccessibleApp(_0x3ff601))throw runtimeInaccessibleAppError(_0x3ff601,_0x45978f(0x15c)+_0x5dd717+'\x22');}export async function runCommand(_0x596b30,_0x309728){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x596b30)?withUpdateNotice(_0x596b30):_0x596b30,_0x309728,runnerAdapter);}function shouldAttachUpdateNotice(_0x231bed){const _0x516428=a79_0x3e3e92;return![_0x516428(0x15b),_0x516428(0x162),'doctor'][_0x516428(0x15f)](_0x231bed[_0x516428(0x163)]);}function withUpdateNotice(_0x2a8313){return{..._0x2a8313,async 'execute'(_0x1b14c9){const _0x290738=a79_0x3253,_0x2030c9=shouldResolveUpdateNotice(_0x1b14c9)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x17e716=await _0x2a8313[_0x290738(0x160)](_0x1b14c9);return attachUpdateNotice(_0x17e716,await _0x2030c9);}};}function shouldResolveUpdateNotice(_0x13b803){const _0x12cd68=a79_0x3e3e92;return _0x13b803['format']==='pretty'&&!_0x13b803[_0x12cd68(0x164)];}function attachUpdateNotice(_0x40d098,_0x4d7c05){const _0x56866d=a79_0x3e3e92;if(!_0x4d7c05||!_0x40d098||typeof _0x40d098!==_0x56866d(0x185))return _0x40d098;const _0x58427e=_0x40d098,_0x254d51=typeof _0x58427e[_0x56866d(0x173)]===_0x56866d(0x185)&&_0x58427e[_0x56866d(0x173)]!==null?_0x58427e[_0x56866d(0x173)]:{};return{..._0x58427e,'_notice':{..._0x254d51,'update':_0x4d7c05}};}
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(_0x15ae5d,_0x95b3a0){const _0x41066f=a80_0x6ec7,_0x25d54b=_0x15ae5d();while(!![]){try{const _0x4b55ed=-parseInt(_0x41066f(0x141))/0x1+parseInt(_0x41066f(0x14c))/0x2*(parseInt(_0x41066f(0x146))/0x3)+parseInt(_0x41066f(0x14a))/0x4+parseInt(_0x41066f(0x14b))/0x5*(-parseInt(_0x41066f(0x144))/0x6)+parseInt(_0x41066f(0x142))/0x7+parseInt(_0x41066f(0x140))/0x8+-parseInt(_0x41066f(0x13e))/0x9;if(_0x4b55ed===_0x95b3a0)break;else _0x25d54b['push'](_0x25d54b['shift']());}catch(_0x3d7855){_0x25d54b['push'](_0x25d54b['shift']());}}}(a80_0x4cc8,0x9587a));function a80_0x4cc8(){const _0x3ee134=['../commands/registry.js','554487KgrBRB','service','auth','filter','1621016lzdNph','5cxvwPU','6bRmsuO','has','5728491yqkUFp','services','9241704JXlEMc','1035373QfpkMs','1262191hBldwN','map','65526quGowW'];a80_0x4cc8=function(){return _0x3ee134;};return a80_0x4cc8();}function a80_0x6ec7(_0x497eef,_0x15a9f5){_0x497eef=_0x497eef-0x13d;const _0x4cc822=a80_0x4cc8();let _0x6ec7e1=_0x4cc822[_0x497eef];return _0x6ec7e1;}import{buildSchemaPayload as a80_0x2e3573}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x24ab18=a80_0x6ec7,{serviceRegistry:_0x5232f4,findDefinition:_0x1dbdd7}=await import(_0x24ab18(0x145)),_0x3585f9=new Set(_0x5232f4['map'](_0x3123fa=>_0x3123fa[_0x24ab18(0x147)])),_0x57961e=listDynamicServiceEntries()[_0x24ab18(0x149)](_0x577eb8=>!_0x3585f9[_0x24ab18(0x13d)](_0x577eb8[_0x24ab18(0x147)])),_0x26a0a8=a80_0x2e3573({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x5232f4,..._0x57961e],'buildAllFlags':buildAllFlags,'findDefinition':(_0x1c0480,_0xbb1555)=>_0x1dbdd7(_0x1c0480,_0xbb1555)??findDynamicServiceDefinition(_0x1c0480,_0xbb1555)});return normalizeSchemaPayload(_0x26a0a8);}function normalizeSchemaPayload(_0x4c1130){const _0x54dcff=a80_0x6ec7;return{..._0x4c1130,'schemaVersion':0x2,'services':_0x4c1130[_0x54dcff(0x13f)][_0x54dcff(0x143)](_0x5f162b=>({..._0x5f162b,'commands':_0x5f162b['commands']['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x17129a){const _0xc1ead9=a80_0x6ec7,_0x56ffd0=_0x17129a;return{..._0x17129a,'auth':_0x56ffd0[_0xc1ead9(0x148)]??(_0x17129a['requiresAuth']?'required':'none')};}
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(_0x5081f3,_0x4f3255){var _0x398649=a81_0x20b9,_0x4645db=_0x5081f3();while(!![]){try{var _0x3b80db=parseInt(_0x398649(0x173))/0x1*(parseInt(_0x398649(0x16f))/0x2)+parseInt(_0x398649(0x170))/0x3+-parseInt(_0x398649(0x171))/0x4*(-parseInt(_0x398649(0x16c))/0x5)+parseInt(_0x398649(0x16a))/0x6+-parseInt(_0x398649(0x172))/0x7+parseInt(_0x398649(0x16d))/0x8*(-parseInt(_0x398649(0x16e))/0x9)+-parseInt(_0x398649(0x16b))/0xa;if(_0x3b80db===_0x4f3255)break;else _0x4645db['push'](_0x4645db['shift']());}catch(_0x584f76){_0x4645db['push'](_0x4645db['shift']());}}}(a81_0x1ed2,0x3aeef));function a81_0x1ed2(){var _0x226970=['45255txCdhl','8FYpigo','3214818lfMDRU','564jfOEeD','1347177fKOZKU','120FEOvta','1683759ZXkHwG','50ONPIuv','2098926OftLqR','2453800NvzipL'];a81_0x1ed2=function(){return _0x226970;};return a81_0x1ed2();}function a81_0x20b9(_0x1a1b12,_0x24ec84){_0x1a1b12=_0x1a1b12-0x16a;var _0x1ed20a=a81_0x1ed2();var _0x20b95c=_0x1ed20a[_0x1a1b12];return _0x20b95c;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
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
- function a82_0x25d0(_0x1e4f5d,_0xa9a2eb){_0x1e4f5d=_0x1e4f5d-0xde;const _0x48539e=a82_0x4853();let _0x25d062=_0x48539e[_0x1e4f5d];return _0x25d062;}const a82_0x48c6d2=a82_0x25d0;(function(_0x2afacf,_0x483569){const _0x492a52=a82_0x25d0,_0x4d839d=_0x2afacf();while(!![]){try{const _0xe4c7dc=-parseInt(_0x492a52(0xe9))/0x1+parseInt(_0x492a52(0xe5))/0x2*(-parseInt(_0x492a52(0xdf))/0x3)+-parseInt(_0x492a52(0xe6))/0x4+-parseInt(_0x492a52(0xe2))/0x5*(-parseInt(_0x492a52(0xe1))/0x6)+-parseInt(_0x492a52(0xde))/0x7+-parseInt(_0x492a52(0xe8))/0x8*(parseInt(_0x492a52(0xe7))/0x9)+parseInt(_0x492a52(0xe3))/0xa*(parseInt(_0x492a52(0xe4))/0xb);if(_0xe4c7dc===_0x483569)break;else _0x4d839d['push'](_0x4d839d['shift']());}catch(_0x316a47){_0x4d839d['push'](_0x4d839d['shift']());}}}(a82_0x4853,0x3e43e));export const VERSION='2.1.6-beta.5';function a82_0x4853(){const _0x1ba769=['v2.1.6-beta.5','3318385EXBMrE','3tKotcO','e8edd51','18VSjMdH','355735lzRVux','15828040AfUfTz','11ZyZVoq','451370LMrjRI','313964fRfXhN','195039gCuDQr','104ErDgsF','481253pCOyMs'];a82_0x4853=function(){return _0x1ba769;};return a82_0x4853();}export const GIT_TAG=a82_0x48c6d2(0xea);export const GIT_COMMIT=a82_0x48c6d2(0xe0);export const BUILD_TIME='2026-07-06T09:10:13.572Z';
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(_0x96420b,_0x3c209a){const _0x1d06fd=a83_0x4304,_0x15903c=_0x96420b();while(!![]){try{const _0x43b845=parseInt(_0x1d06fd(0xfa))/0x1+parseInt(_0x1d06fd(0xf9))/0x2*(parseInt(_0x1d06fd(0xfb))/0x3)+parseInt(_0x1d06fd(0xfc))/0x4*(-parseInt(_0x1d06fd(0x100))/0x5)+parseInt(_0x1d06fd(0x105))/0x6+parseInt(_0x1d06fd(0xf8))/0x7*(-parseInt(_0x1d06fd(0xf7))/0x8)+-parseInt(_0x1d06fd(0xfd))/0x9*(parseInt(_0x1d06fd(0x104))/0xa)+parseInt(_0x1d06fd(0x101))/0xb;if(_0x43b845===_0x3c209a)break;else _0x15903c['push'](_0x15903c['shift']());}catch(_0x298ab0){_0x15903c['push'](_0x15903c['shift']());}}}(a83_0xeec9,0x4cb56));import{jsx as a83_0x552a96,jsxs as a83_0x58c241}from'react/jsx-runtime';function a83_0xeec9(){const _0x22b8a4=['707196iGAhEm','2496680bHhoTu','14XLaGsh','2nPlZaF','380245zSEaZY','712641DOIOYw','2872eBOsVz','45BUMTbP','\x20--help','green','1455irblGB','6429863QTZBHQ','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','345770bhsthL'];a83_0xeec9=function(){return _0x22b8a4;};return a83_0xeec9();}import{useEffect}from'react';function a83_0x4304(_0x5501b7,_0x74efb4){_0x5501b7=_0x5501b7-0xf7;const _0xeec9ef=a83_0xeec9();let _0x43046d=_0xeec9ef[_0x5501b7];return _0x43046d;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x1674e4=a83_0x4304,{exit:_0x5f0e6}=useApp();return useEffect(()=>{_0x5f0e6();},[_0x5f0e6]),a83_0x58c241(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a83_0x552a96(Box,{'children':a83_0x552a96(Text,{'bold':!![],'color':_0x1674e4(0xff),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x58c241(Box,{'marginTop':0x1,'children':[a83_0x552a96(Text,{'dimColor':!![],'children':_0x1674e4(0x102)}),a83_0x552a96(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x1674e4(0xfe)}),a83_0x552a96(Text,{'dimColor':!![],'children':_0x1674e4(0x103)})]})]});}
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_0x8c73(){const _0x431748=['npx','284090mkvVlH','1226780xVVKKT','trim','inherit','916368IrgytX','status','4387869rIaspl','add','stdout','204pckKif','2857592bHOAmd','skills','unknown','3knCDom','177090BIrfnP','51961gicVqZ','979CBtKee','1HsBnMn','stderr','toString'];a84_0x8c73=function(){return _0x431748;};return a84_0x8c73();}(function(_0x23a1fd,_0x199b55){const _0x319786=a84_0x2f07,_0x437c42=_0x23a1fd();while(!![]){try{const _0x177f44=parseInt(_0x319786(0x123))/0x1*(parseInt(_0x319786(0x127))/0x2)+-parseInt(_0x319786(0x11f))/0x3*(parseInt(_0x319786(0x131))/0x4)+parseInt(_0x319786(0x128))/0x5+parseInt(_0x319786(0x130))/0x6*(-parseInt(_0x319786(0x121))/0x7)+-parseInt(_0x319786(0x12b))/0x8+-parseInt(_0x319786(0x12d))/0x9+parseInt(_0x319786(0x120))/0xa*(parseInt(_0x319786(0x122))/0xb);if(_0x177f44===_0x199b55)break;else _0x437c42['push'](_0x437c42['shift']());}catch(_0x376cb0){_0x437c42['push'](_0x437c42['shift']());}}}(a84_0x8c73,0x6058b));function a84_0x2f07(_0x36db1a,_0x599b8b){_0x36db1a=_0x36db1a-0x11f;const _0x8c7398=a84_0x8c73();let _0x2f07be=_0x8c7398[_0x36db1a];return _0x2f07be;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a84_0x206e2b}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a84_0x206e2b;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x34275a,_0x24bf5a=LOVRABET_SKILL_SOURCE,_0x233c95){const _0x4c202b=a84_0x2f07;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5c46a9=_0x233c95?.['stdio']??_0x4c202b(0x12a),_0x3ee1b4=resolveNpmBin(_0x4c202b(0x126)),_0x590b7b=[_0x4c202b(0x132),_0x4c202b(0x12e),_0x24bf5a,'-g','-y'],_0x549368=[_0x3ee1b4,..._0x590b7b]['join']('\x20');console['log']('*\x20'+_0x549368);const _0x527bee=spawnSync(_0x3ee1b4,_0x590b7b,{'cwd':_0x34275a,'stdio':_0x5c46a9,'env':process.env,'shell':![]});if(_0x527bee[_0x4c202b(0x12c)]===0x0)return{'ok':!![],'status':0x0};let _0x312c63='exit\x20'+(_0x527bee[_0x4c202b(0x12c)]??_0x4c202b(0x133));if(_0x5c46a9==='pipe'){const _0x5966d1=_0x527bee[_0x4c202b(0x124)]?_0x527bee[_0x4c202b(0x124)][_0x4c202b(0x125)]()[_0x4c202b(0x129)]():'',_0x1f58ef=_0x527bee[_0x4c202b(0x12f)]?_0x527bee[_0x4c202b(0x12f)][_0x4c202b(0x125)]()['trim']():'';if(_0x5966d1)_0x312c63=_0x5966d1;else{if(_0x1f58ef)_0x312c63=_0x1f58ef;}}return{'ok':![],'status':_0x527bee[_0x4c202b(0x12c)]??null,'error':_0x312c63};}
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_0xa0b5(){const _0xdca24a=['30XTDdjH','lovrabet.skill.json','68RpSLxV','170379YglWGN','coverage','.svn','5590085VisfmX','.turbo','.DS_Store','1656WhmflI','3395556lFffRg','.cache','94596LiyxvA','build','.next','94730ccYMUP','998543jEfSIg','node_modules','14176AGGVgF','SKILL.md','.git','1892hQzcEI'];a85_0xa0b5=function(){return _0xdca24a;};return a85_0xa0b5();}const a85_0x25a9e1=a85_0x1788;(function(_0x6e8969,_0x121182){const _0x1b3b30=a85_0x1788,_0x308de5=_0x6e8969();while(!![]){try{const _0x32893e=parseInt(_0x1b3b30(0x7f))/0x1+parseInt(_0x1b3b30(0x7e))/0x2*(-parseInt(_0x1b3b30(0x88))/0x3)+-parseInt(_0x1b3b30(0x86))/0x4+parseInt(_0x1b3b30(0x82))/0x5+-parseInt(_0x1b3b30(0x7c))/0x6*(parseInt(_0x1b3b30(0x8c))/0x7)+-parseInt(_0x1b3b30(0x78))/0x8*(-parseInt(_0x1b3b30(0x85))/0x9)+-parseInt(_0x1b3b30(0x8b))/0xa*(-parseInt(_0x1b3b30(0x7b))/0xb);if(_0x32893e===_0x121182)break;else _0x308de5['push'](_0x308de5['shift']());}catch(_0x432e26){_0x308de5['push'](_0x308de5['shift']());}}}(a85_0xa0b5,0x94d2a));export const METADATA_FILE=a85_0x25a9e1(0x7d);export const SKILL_FILE=a85_0x25a9e1(0x79);function a85_0x1788(_0x230981,_0x53121c){_0x230981=_0x230981-0x77;const _0xa0b520=a85_0xa0b5();let _0x1788be=_0xa0b520[_0x230981];return _0x1788be;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0x25a9e1(0x84)]);export const IGNORED_DIR_NAMES=new Set([a85_0x25a9e1(0x7a),'.hg',a85_0x25a9e1(0x81),a85_0x25a9e1(0x77),a85_0x25a9e1(0x8a),'dist',a85_0x25a9e1(0x89),a85_0x25a9e1(0x80),a85_0x25a9e1(0x83),a85_0x25a9e1(0x87)]);
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 a86_0x56c5(_0x1d681e,_0x5a5826){_0x1d681e=_0x1d681e-0x1f2;const _0x1422c9=a86_0x1422();let _0x56c50c=_0x1422c9[_0x1d681e];return _0x56c50c;}(function(_0x516f90,_0x1ba945){const _0x1c65f4=a86_0x56c5,_0x138366=_0x516f90();while(!![]){try{const _0x14eba5=-parseInt(_0x1c65f4(0x1f2))/0x1+parseInt(_0x1c65f4(0x1fd))/0x2+parseInt(_0x1c65f4(0x1f6))/0x3+-parseInt(_0x1c65f4(0x203))/0x4*(parseInt(_0x1c65f4(0x1fe))/0x5)+-parseInt(_0x1c65f4(0x202))/0x6*(parseInt(_0x1c65f4(0x1fc))/0x7)+parseInt(_0x1c65f4(0x1f3))/0x8+parseInt(_0x1c65f4(0x1f4))/0x9*(parseInt(_0x1c65f4(0x200))/0xa);if(_0x14eba5===_0x1ba945)break;else _0x138366['push'](_0x138366['shift']());}catch(_0x1f10fc){_0x138366['push'](_0x138366['shift']());}}}(a86_0x1422,0xa1381));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x29dbff,_0x38ed71){const _0x5df1b9=a86_0x56c5,_0x331605=normalizeSkillRelativePath(_0x38ed71),_0x2ae9a9=realOrResolved(_0x29dbff),_0x26b849=resolve(_0x2ae9a9,..._0x331605[_0x5df1b9(0x1f7)]('/'));if(!isPathInside(_0x26b849,_0x2ae9a9))throw CliErrors['validation'](_0x5df1b9(0x1f8)+_0x38ed71);return ensureNoSymlinkInManagedPath(_0x2ae9a9,_0x331605),_0x26b849;}export function ensureNoSymlinkInManagedPath(_0x11c791,_0x85e1f0){const _0x357801=a86_0x56c5;let _0x515254=_0x11c791;for(const _0x1fae97 of _0x85e1f0[_0x357801(0x1f7)]('/')){_0x515254=resolve(_0x515254,_0x1fae97);const _0x429966=lstatIfPresent(_0x515254);if(_0x429966?.[_0x357801(0x1f9)]())throw CliErrors[_0x357801(0x1fa)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x85e1f0);}}export function isDanglingSymlink(_0x181158){const _0x11c159=a86_0x56c5;try{return lstatSync(_0x181158)[_0x11c159(0x1f9)]();}catch{return![];}}export function resolveSymlinkTarget(_0x4e31fd){const _0x428955=readlinkSync(_0x4e31fd);return isAbsolute(_0x428955)?_0x428955:resolve(dirname(_0x4e31fd),_0x428955);}export function isPathInside(_0x4ed24f,_0x2736d2){const _0x494714=a86_0x56c5,_0x406f11=_0x4ed24f[_0x494714(0x1f5)](sep)?_0x4ed24f:''+_0x4ed24f+sep,_0x1c72cf=_0x2736d2[_0x494714(0x1f5)](sep)?_0x2736d2:''+_0x2736d2+sep;return _0x4ed24f===_0x2736d2||_0x406f11[_0x494714(0x1ff)](_0x1c72cf);}export function realOrResolved(_0x1233c6){try{return realpathSync(_0x1233c6);}catch{return resolve(_0x1233c6);}}export function lstatIfPresent(_0x190942){try{return lstatSync(_0x190942);}catch{return undefined;}}export function writeTextAtomic(_0x1ab696,_0x464714,_0x311660){const _0x3273d0=a86_0x56c5;writeBytesAtomic(_0x1ab696,Buffer[_0x3273d0(0x1fb)](_0x464714,'utf8'),_0x311660);}export function writeBytesAtomic(_0x33a0de,_0x4c8f08,_0x3cd029){const _0x413a99=_0x33a0de+'.tmp';try{writeFileSync(_0x413a99,_0x4c8f08,{'mode':_0x3cd029}),renameSync(_0x413a99,_0x33a0de);}catch(_0x1d2469){try{rmSync(_0x413a99,{'force':!![]});}catch{}throw _0x1d2469;}}function a86_0x1422(){const _0x4e1198=['259824XQlcHE','24498plqITz','endsWith','388107zYjNUT','split','Unsafe\x20Skill\x20file\x20path:\x20','isSymbolicLink','validation','from','4071963JpZTVZ','2310302SvpRSl','5GJSfmO','startsWith','4150DdxVDq','stringify','6YZIxMx','2368836QFSdvI','612357oEndWX'];a86_0x1422=function(){return _0x4e1198;};return a86_0x1422();}export function writeJsonAtomic(_0x351cb3,_0x45a5fe){const _0x2e7226=a86_0x56c5;writeTextAtomic(_0x351cb3,JSON[_0x2e7226(0x201)](_0x45a5fe,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(_0x95e3ef,_0x4ff73b){const _0x1d2595=a87_0x3829,_0x4cce58=_0x95e3ef();while(!![]){try{const _0x3eeec4=-parseInt(_0x1d2595(0x114))/0x1*(parseInt(_0x1d2595(0x119))/0x2)+parseInt(_0x1d2595(0x111))/0x3+parseInt(_0x1d2595(0x11c))/0x4+parseInt(_0x1d2595(0x110))/0x5*(parseInt(_0x1d2595(0x10f))/0x6)+-parseInt(_0x1d2595(0x11a))/0x7+-parseInt(_0x1d2595(0x10e))/0x8+parseInt(_0x1d2595(0x118))/0x9;if(_0x3eeec4===_0x4ff73b)break;else _0x4cce58['push'](_0x4cce58['shift']());}catch(_0x51553b){_0x4cce58['push'](_0x4cce58['shift']());}}}(a87_0x36ed,0xdac0d));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a87_0x3829(_0x31112b,_0x5d9c3a){_0x31112b=_0x31112b-0x10e;const _0x36edb9=a87_0x36ed();let _0x38296e=_0x36edb9[_0x31112b];return _0x38296e;}function a87_0x36ed(){const _0x3e8a15=['size','update','3798666hKYmXe','2HQLlGC','4000010yQTvZX','path','1103372yDpNGg','2549912AusFPA','6NrbyIb','4813415tZalzy','3505356jNsjRH','digest','sha256','1042870eRwiVX','hex'];a87_0x36ed=function(){return _0x3e8a15;};return a87_0x36ed();}export function contentHash(_0x2e42f0){const _0x1df560=a87_0x3829;return createHash(_0x1df560(0x113))[_0x1df560(0x117)](_0x2e42f0)[_0x1df560(0x112)](_0x1df560(0x115));}export function fileHash(_0x2b6da7){return bufferSha256(fileContent(_0x2b6da7));}export function bufferSha256(_0x4268b5){const _0x440587=a87_0x3829;return createHash(_0x440587(0x113))[_0x440587(0x117)](_0x4268b5)[_0x440587(0x112)](_0x440587(0x115));}export function fileTreeHash(_0x57c137){const _0x5534ab=a87_0x3829,_0x184c82=createHash(_0x5534ab(0x113));for(const _0x1966cc of normalizeManifestFiles(_0x57c137)){_0x184c82[_0x5534ab(0x117)](_0x1966cc[_0x5534ab(0x11b)]),_0x184c82[_0x5534ab(0x117)]('\x00'),_0x184c82['update'](_0x1966cc[_0x5534ab(0x113)]),_0x184c82[_0x5534ab(0x117)]('\x00'),_0x184c82[_0x5534ab(0x117)](String(_0x1966cc[_0x5534ab(0x116)])),_0x184c82[_0x5534ab(0x117)]('\x00');}return _0x184c82[_0x5534ab(0x112)]('hex');}
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(_0x12cbe1,_0x470c99){const _0x18e61b=a88_0xa066,_0x45d530=_0x12cbe1();while(!![]){try{const _0x5d5022=-parseInt(_0x18e61b(0x1ef))/0x1+-parseInt(_0x18e61b(0x214))/0x2*(parseInt(_0x18e61b(0x21a))/0x3)+-parseInt(_0x18e61b(0x209))/0x4*(-parseInt(_0x18e61b(0x215))/0x5)+parseInt(_0x18e61b(0x1ff))/0x6+-parseInt(_0x18e61b(0x20c))/0x7*(parseInt(_0x18e61b(0x200))/0x8)+parseInt(_0x18e61b(0x1f1))/0x9*(parseInt(_0x18e61b(0x1f2))/0xa)+parseInt(_0x18e61b(0x212))/0xb;if(_0x5d5022===_0x470c99)break;else _0x45d530['push'](_0x45d530['shift']());}catch(_0x55fa04){_0x45d530['push'](_0x45d530['shift']());}}}(a88_0x41af,0x342c2));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';function a88_0x41af(){const _0x5b224f=['appCode','validation','accessKey','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','name','220jSvQFF','skillCode','128198QKgEtA','91315rdPNpD','startsWith','get','managedRoot','set','3xUMFVu','skill','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','builtin','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','dir','unchanged','scopes','pruneSkillCodes','213194kyRocE','removed','206289pllcAZ','100yfbKaY','isSymbolicLink','created','activeSkillCodes','has','values','slice','personal','filter','length','skipped','agentsSkillsDir','isDirectory','1310082zOfkkO','280eEnUpV','trim','updated','not-managed-symlink','env','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','push','map','contentHash','12dVBTms','scope','claudeSkillsDir','2275ClWYXG'];a88_0x41af=function(){return _0x5b224f;};return a88_0x41af();}import a88_0x12f7a7 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';function a88_0xa066(_0x20299f,_0x5281cb){_0x20299f=_0x20299f-0x1ee;const _0x41af6f=a88_0x41af();let _0xa06668=_0x41af6f[_0x20299f];return _0xa06668;}const {copySync,ensureDirSync,removeSync}=a88_0x12f7a7;export function linkEffectiveRuntimeSkills(_0x132afe,_0xa702e4,_0x9c2a65={}){const _0x15ae00=a88_0xa066,_0x1aebe0=new Map();for(const _0x51377b of _0x132afe){const _0x389816=_0x51377b['skill'][_0x15ae00(0x213)];if(!_0x389816)continue;const _0x558315=_0x1aebe0[_0x15ae00(0x217)](_0x389816);(!_0x558315||_0x51377b['scope']===_0x15ae00(0x1f9))&&_0x1aebe0[_0x15ae00(0x219)](_0x389816,_0x51377b);}const _0x26c557=[],_0x15d04f=resolveSkillSyncPaths(_0x9c2a65);for(const _0xc7d555 of _0x1aebe0[_0x15ae00(0x1f7)]()){const _0x2d3f7b=requireSkillCode(_0xc7d555[_0x15ae00(0x21b)]),_0xee5d3e=_0xa702e4+'--'+_0x2d3f7b;for(const _0x23b2af of[_0x15d04f['agentsSkillsDir'],_0x15d04f[_0x15ae00(0x20b)]]){_0x26c557[_0x15ae00(0x206)](ensureManagedSymlink(resolve(_0x23b2af,_0xee5d3e),_0xc7d555[_0x15ae00(0x21f)],_0x15d04f[_0x15ae00(0x218)]));}}return _0x26c557;}export function pruneStaleRuntimeSkillLinks(_0x594582,_0x1f525b,_0x35f5ff={},_0x5db87f){const _0x36c8ec=a88_0xa066,_0x5d0cb5=resolveSkillSyncPaths(_0x35f5ff),_0x54ed78=new Set([..._0x1f525b][_0x36c8ec(0x207)](_0x5e08fa=>_0x5e08fa[_0x36c8ec(0x201)]())[_0x36c8ec(0x1fa)](Boolean)),_0xabbb2a=_0x5db87f?new Set([..._0x5db87f][_0x36c8ec(0x207)](_0x41c79e=>_0x41c79e[_0x36c8ec(0x201)]())[_0x36c8ec(0x1fa)](Boolean)):undefined,_0x584938=[];for(const _0x15f9ac of[_0x5d0cb5[_0x36c8ec(0x1fd)],_0x5d0cb5[_0x36c8ec(0x20b)]]){for(const _0x479af9 of managedAppSkillLinkPaths(_0x15f9ac,_0x594582)){const _0x3103bf=basename(_0x479af9)[_0x36c8ec(0x1f8)]((_0x594582+'--')[_0x36c8ec(0x1fb)]);if(_0xabbb2a&&!_0xabbb2a[_0x36c8ec(0x1f6)](_0x3103bf))continue;if(_0x54ed78['has'](_0x3103bf))continue;_0x584938[_0x36c8ec(0x206)](removeManagedSkillLink(_0x479af9,_0x5d0cb5[_0x36c8ec(0x218)]));}}return _0x584938;}export function pruneStaleRuntimeSkillCache(_0xee78ac,_0x3765a5={}){const _0x2df807=a88_0xa066,_0x4c8f8e=new Set([..._0xee78ac[_0x2df807(0x1f5)]]['map'](_0x4f4f20=>_0x4f4f20['trim']())['filter'](Boolean)),_0x56853e=_0xee78ac[_0x2df807(0x1ee)]?new Set([..._0xee78ac['pruneSkillCodes']]['map'](_0x3ab071=>_0x3ab071[_0x2df807(0x201)]())['filter'](Boolean)):undefined,_0x6d60ee=_0xee78ac[_0x2df807(0x221)]??[_0x2df807(0x1f9),'company'],_0x3e0783=resolve(getRuntimeSkillCacheRoot(_0xee78ac[_0x2df807(0x204)],_0xee78ac[_0x2df807(0x20f)],_0x3765a5),safePathSegment(_0xee78ac['appCode'],'appCode')),_0x1e3d75=[];for(const _0x2bf82a of _0x6d60ee){const _0x4e1715=resolve(_0x3e0783,_0x2bf82a);if(!existsSync(_0x4e1715))continue;for(const _0x465dc7 of readdirSync(_0x4e1715,{'withFileTypes':!![]})){if(!_0x465dc7[_0x2df807(0x1fe)]())continue;const _0x38ef9c=_0x465dc7[_0x2df807(0x211)];if(_0x56853e&&!_0x56853e[_0x2df807(0x1f6)](_0x38ef9c))continue;if(_0x4c8f8e['has'](_0x38ef9c))continue;const _0x4884df=resolve(_0x4e1715,_0x38ef9c),_0x98c939=readMetadataIfPresent(resolve(_0x4884df,METADATA_FILE));if(_0x98c939?.[_0x2df807(0x20d)]!==_0xee78ac['appCode']||_0x98c939[_0x2df807(0x20a)]!==_0x2bf82a||_0x98c939[_0x2df807(0x213)]!==_0x38ef9c){_0x1e3d75[_0x2df807(0x206)]({'path':_0x4884df,'action':_0x2df807(0x1fc),'reason':'metadata-mismatch'});continue;}removeSync(_0x4884df),_0x1e3d75[_0x2df807(0x206)]({'path':_0x4884df,'action':_0x2df807(0x1f0)});}}return _0x1e3d75;}export function linkGlobalRuntimeSkills(_0x4fdaf4,_0x1e0bf1={}){const _0x3c37a3=a88_0xa066,_0x517cb3=resolveSkillSyncPaths(_0x1e0bf1),_0x4885c9=[];for(const _0x57af88 of _0x4fdaf4){if(_0x57af88[_0x3c37a3(0x20a)]!=='builtin')throw CliErrors[_0x3c37a3(0x20e)](_0x3c37a3(0x21e)+_0x57af88[_0x3c37a3(0x20a)]);const _0x11c913=requireSkillCode(_0x57af88['skill']),_0x13c2a8=copyManagedSkillDirectory(_0x57af88[_0x3c37a3(0x21f)],resolve(_0x517cb3['agentsSkillsDir'],_0x11c913));_0x4885c9[_0x3c37a3(0x206)]({..._0x13c2a8,'contentHash':_0x57af88['contentHash']});}return _0x4885c9;}function ensureManagedSymlink(_0xa3b2a7,_0x205c17,_0x527a12){const _0x1d0555=a88_0xa066;mkdirSync(dirname(_0xa3b2a7),{'recursive':!![],'mode':0x1c0});if(existsSync(_0xa3b2a7)||isDanglingSymlink(_0xa3b2a7)){const _0x58ecef=lstatSync(_0xa3b2a7);if(!_0x58ecef['isSymbolicLink']())throw CliErrors[_0x1d0555(0x20e)](_0x1d0555(0x205)+_0xa3b2a7);const _0x48fa24=resolveSymlinkTarget(_0xa3b2a7);if(!isPathInside(realOrResolved(_0x48fa24),realOrResolved(_0x527a12)))throw CliErrors[_0x1d0555(0x20e)](_0x1d0555(0x21c)+_0xa3b2a7);if(realOrResolved(_0x48fa24)===realOrResolved(_0x205c17))return{'path':_0xa3b2a7,'target':_0x205c17,'action':_0x1d0555(0x220)};return unlinkSync(_0xa3b2a7),symlinkSync(_0x205c17,_0xa3b2a7,_0x1d0555(0x21f)),{'path':_0xa3b2a7,'target':_0x205c17,'action':'updated'};}return symlinkSync(_0x205c17,_0xa3b2a7,_0x1d0555(0x21f)),{'path':_0xa3b2a7,'target':_0x205c17,'action':_0x1d0555(0x1f4)};}function managedAppSkillLinkPaths(_0x2b92aa,_0x2b1ef6){const _0x327d3c=a88_0xa066;if(!existsSync(_0x2b92aa))return[];const _0x30236a=_0x2b1ef6+'--';return readdirSync(_0x2b92aa,{'withFileTypes':!![]})[_0x327d3c(0x1fa)](_0x4d4bf1=>_0x4d4bf1[_0x327d3c(0x211)][_0x327d3c(0x216)](_0x30236a))[_0x327d3c(0x207)](_0x1045d7=>resolve(_0x2b92aa,_0x1045d7[_0x327d3c(0x211)]));}function removeManagedSkillLink(_0x11ee78,_0x261a8d){const _0x1a0a83=a88_0xa066,_0x436efc=lstatIfPresent(_0x11ee78);if(!_0x436efc?.[_0x1a0a83(0x1f3)]())return{'path':_0x11ee78,'action':_0x1a0a83(0x1fc),'reason':_0x1a0a83(0x203)};const _0x45ba15=resolveSymlinkTarget(_0x11ee78);if(!isPathInside(realOrResolved(_0x45ba15),realOrResolved(_0x261a8d)))return{'path':_0x11ee78,'action':'skipped','reason':'external-symlink'};return unlinkSync(_0x11ee78),{'path':_0x11ee78,'action':_0x1a0a83(0x1f0)};}export function copyManagedSkillDirectory(_0x47338f,_0x116d7e){const _0x15902e=a88_0xa066,_0xd32625=resolve(_0x116d7e,METADATA_FILE),_0x11ab43=existsSync(_0x116d7e);if(_0x11ab43){const _0x281f8d=lstatSync(_0x116d7e);if(_0x281f8d[_0x15902e(0x1f3)]())throw CliErrors[_0x15902e(0x20e)](_0x15902e(0x210)+_0x116d7e);if(!_0x281f8d[_0x15902e(0x1fe)]())throw CliErrors[_0x15902e(0x20e)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x116d7e);const _0x16a35b=readMetadataIfPresent(_0xd32625);if(_0x16a35b?.[_0x15902e(0x20a)]!==_0x15902e(0x21d))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x116d7e);}ensureDirSync(dirname(_0x116d7e));const _0x1ac2a1=_0x11ab43?readMetadataIfPresent(_0xd32625)?.[_0x15902e(0x208)]:undefined,_0x5174cb=readMetadataIfPresent(resolve(_0x47338f,METADATA_FILE))?.[_0x15902e(0x208)];return _0x11ab43&&removeSync(_0x116d7e),copySkillDirectory(_0x47338f,_0x116d7e),{'path':_0x116d7e,'target':_0x47338f,'action':!_0x11ab43?'created':_0x1ac2a1===_0x5174cb?_0x15902e(0x220):_0x15902e(0x202)};}function copySkillDirectory(_0x3b0c04,_0x25623c){copySync(_0x3b0c04,_0x25623c,{'dereference':![],'overwrite':!![],'filter'(_0x16e69e){const _0x1fc36b=a88_0xa066;if(lstatSync(_0x16e69e)[_0x1fc36b(0x1f3)]())throw CliErrors['validation']('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x16e69e);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(_0xaee855,_0x493f9b){const _0x1fbb04=a89_0x5a92,_0x24f84f=_0xaee855();while(!![]){try{const _0x386ce1=parseInt(_0x1fbb04(0x18b))/0x1*(parseInt(_0x1fbb04(0x186))/0x2)+-parseInt(_0x1fbb04(0x18a))/0x3+parseInt(_0x1fbb04(0x185))/0x4*(parseInt(_0x1fbb04(0x17d))/0x5)+-parseInt(_0x1fbb04(0x174))/0x6*(parseInt(_0x1fbb04(0x18c))/0x7)+-parseInt(_0x1fbb04(0x172))/0x8+parseInt(_0x1fbb04(0x170))/0x9*(-parseInt(_0x1fbb04(0x17c))/0xa)+parseInt(_0x1fbb04(0x180))/0xb;if(_0x386ce1===_0x493f9b)break;else _0x24f84f['push'](_0x24f84f['shift']());}catch(_0x49addc){_0x24f84f['push'](_0x24f84f['shift']());}}}(a89_0x1598,0x8eeb4));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_0x5a92(_0x13f61e,_0x654bac){_0x13f61e=_0x13f61e-0x169;const _0x159861=a89_0x1598();let _0x5a9258=_0x159861[_0x13f61e];return _0x5a9258;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x2b90be,_0x4d7c02={}){const _0x31a60a=a89_0x5a92,_0x25ab32=safePathSegment(_0x2b90be[_0x31a60a(0x171)],_0x31a60a(0x171)),_0x2862da=normalizeRuntimeSkillScopes(_0x2b90be[_0x31a60a(0x190)]),_0x3ffd93=new Set(_0x2862da),_0x118dde=_0x2b90be['code']?.[_0x31a60a(0x16e)](),_0x4f3686=new Map(),_0xd2d4=resolve(getRuntimeSkillCacheRoot(_0x2b90be[_0x31a60a(0x181)],_0x2b90be['accessKey'],_0x4d7c02),_0x25ab32);for(const _0x190bc2 of _0x2862da){for(const _0x101d10 of localSkillEntryDirs(resolve(_0xd2d4,_0x190bc2))){collectLocalRuntimeSkill(_0x4f3686,_0x101d10,{'appCode':_0x25ab32,'scopes':_0x3ffd93,'code':_0x118dde,'source':'cache'});}}const _0xf69469=resolveSkillSyncPaths(_0x4d7c02);for(const _0x11aead of[_0xf69469[_0x31a60a(0x178)],_0xf69469['claudeSkillsDir']]){for(const _0x572422 of localSkillLinkCandidates(_0x11aead,_0x25ab32,_0x3ffd93)){collectLocalRuntimeSkill(_0x4f3686,_0x572422,{'appCode':_0x25ab32,'scopes':_0x3ffd93,'code':_0x118dde,'source':_0x31a60a(0x17f),'linkedPath':_0x572422});}}return Array['from'](_0x4f3686[_0x31a60a(0x173)]())['sort'](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x4ef78e){const _0x450e71=a89_0x5a92;if(!existsSync(_0x4ef78e))return[];return readdirSync(_0x4ef78e,{'withFileTypes':!![]})[_0x450e71(0x16d)](_0x3a275e=>_0x3a275e['isDirectory']()||_0x3a275e['isSymbolicLink']())[_0x450e71(0x175)](_0x1c0945=>resolve(_0x4ef78e,_0x1c0945[_0x450e71(0x169)]));}function localSkillLinkCandidates(_0x44850d,_0x3e2609,_0x2e13f0){const _0x26c158=a89_0x5a92;if(!existsSync(_0x44850d))return[];const _0x1693fa=_0x3e2609+'--';return readdirSync(_0x44850d,{'withFileTypes':!![]})[_0x26c158(0x16d)](_0xae94dc=>_0xae94dc[_0x26c158(0x187)]()||_0xae94dc['isSymbolicLink']())['filter'](_0x38bd06=>_0x38bd06[_0x26c158(0x169)][_0x26c158(0x184)](_0x1693fa)||_0x2e13f0[_0x26c158(0x18e)](_0x26c158(0x182)))[_0x26c158(0x175)](_0x492902=>resolve(_0x44850d,_0x492902[_0x26c158(0x169)]));}function collectLocalRuntimeSkill(_0x1b28d1,_0x1057f6,_0x51f402){const _0x5a1152=a89_0x5a92,_0x58b9a0=resolve(_0x1057f6,METADATA_FILE),_0x3487a7=readMetadataIfPresent(_0x58b9a0);if(!_0x3487a7)return;if(_0x3487a7[_0x5a1152(0x171)]!==_0x51f402[_0x5a1152(0x171)])return;if(!isRuntimeSkillScope(_0x3487a7['scope'])||!_0x51f402['scopes'][_0x5a1152(0x18e)](_0x3487a7[_0x5a1152(0x191)]))return;const _0x442a00=_0x3487a7[_0x5a1152(0x18f)]?.[_0x5a1152(0x16e)]();if(!_0x442a00)return;if(_0x51f402['code']&&_0x442a00!==_0x51f402[_0x5a1152(0x16b)])return;const _0xa5e428=_0x3487a7['scope']+':'+_0x442a00,_0x59dbe1=_0x51f402['linkedPath']?[_0x51f402['linkedPath']]:[],_0xea68a9=_0x1b28d1[_0x5a1152(0x189)](_0xa5e428);if(_0xea68a9){_0x51f402[_0x5a1152(0x177)]===_0x5a1152(0x188)&&(_0xea68a9[_0x5a1152(0x18d)]=_0x1057f6,_0xea68a9[_0x5a1152(0x176)]=_0x1057f6,_0xea68a9['skillMdPath']=resolve(_0x1057f6,SKILL_FILE),_0xea68a9[_0x5a1152(0x17a)]=_0x58b9a0);for(const _0x571861 of _0x59dbe1){!_0xea68a9[_0x5a1152(0x17e)]['includes'](_0x571861)&&_0xea68a9['linkedPaths'][_0x5a1152(0x16a)](_0x571861);}_0xea68a9[_0x5a1152(0x17e)][_0x5a1152(0x183)]();return;}_0x1b28d1['set'](_0xa5e428,{..._0x3487a7,'tags':Array[_0x5a1152(0x17b)](_0x3487a7[_0x5a1152(0x16f)])?_0x3487a7[_0x5a1152(0x16f)]:[],'scope':_0x3487a7[_0x5a1152(0x191)],'source':_0x5a1152(0x16c),'dir':_0x1057f6,'cacheDir':_0x51f402[_0x5a1152(0x177)]==='cache'?_0x1057f6:undefined,'skillMdPath':resolve(_0x1057f6,SKILL_FILE),'metadataPath':_0x58b9a0,'linkedPaths':_0x59dbe1});}function compareLocalRuntimeSkills(_0x5e0933,_0x26f56c){const _0x397d0d=a89_0x5a92,_0x54548e={'personal':0x0,'company':0x1,'builtin':0x2};return _0x54548e[_0x5e0933[_0x397d0d(0x191)]]-_0x54548e[_0x26f56c['scope']]||_0x5e0933[_0x397d0d(0x18f)][_0x397d0d(0x179)](_0x26f56c[_0x397d0d(0x18f)])||_0x5e0933['dir'][_0x397d0d(0x179)](_0x26f56c[_0x397d0d(0x18d)]);}function a89_0x1598(){const _0x5db2b1=['isArray','4362590UGBnmg','33865HBHdln','linkedPaths','link','21023123qzvXFo','env','builtin','sort','startsWith','452XflyNp','4756HhOVXc','isDirectory','cache','get','1299606VgYQKl','110BDiflU','91jkyhbR','dir','has','skillCode','scopes','scope','name','push','code','local','filter','trim','tags','18LytCwI','appCode','4957464pAvkAG','values','197226eaHZlK','map','cacheDir','source','agentsSkillsDir','localeCompare','metadataPath'];a89_0x1598=function(){return _0x5db2b1;};return a89_0x1598();}
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(_0x4dfb53,_0x5d6c01){const _0x51faf3=a90_0x1e3d,_0xfa30e8=_0x4dfb53();while(!![]){try{const _0x5477b4=-parseInt(_0x51faf3(0xf7))/0x1+parseInt(_0x51faf3(0xec))/0x2+parseInt(_0x51faf3(0x10d))/0x3+parseInt(_0x51faf3(0xe9))/0x4+-parseInt(_0x51faf3(0x107))/0x5*(-parseInt(_0x51faf3(0xf9))/0x6)+parseInt(_0x51faf3(0x101))/0x7+parseInt(_0x51faf3(0xfc))/0x8*(-parseInt(_0x51faf3(0x100))/0x9);if(_0x5477b4===_0x5d6c01)break;else _0xfa30e8['push'](_0xfa30e8['shift']());}catch(_0x43122d){_0xfa30e8['push'](_0xfa30e8['shift']());}}}(a90_0x1dce,0x9a336));import{readFileSync,readdirSync,realpathSync}from'node:fs';function a90_0x1dce(){const _0xf1d3=['utf8','isSafeInteger','replace','set','Duplicate\x20Skill\x20file\x20path:\x20','5020452egyMbL','startsWith','isBuffer','447030tRsPoW','string','name','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','path','Unsafe\x20Skill\x20file\x20path:\x20','isFile','isDirectory','includes','push','isSymbolicLink','38913hnLnfl','size','42978PahsQH','toString','length','26188168JMaquX','from','trim','content','9RZqNEf','3874472okUcYT','split','has','toLowerCase','values','validation','745mojDbc','sha256','sort','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','bytes','Skill\x20file\x20path\x20must\x20be\x20text.','2533887IdnGmf','Skill\x20file\x20sha256\x20is\x20invalid:\x20','object','localeCompare'];a90_0x1dce=function(){return _0xf1d3;};return a90_0x1dce();}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(_0x6c3211){const _0x361cde=a90_0x1e3d;return _0x6c3211[_0x361cde(0x10b)]??Buffer[_0x361cde(0xfd)](_0x6c3211[_0x361cde(0xff)]??'',_0x361cde(0xe4));}export function fileText(_0x21cc91){const _0x15cb59=a90_0x1e3d;return fileContent(_0x21cc91)[_0x15cb59(0xfa)](_0x15cb59(0xe4));}export function normalizeLocalFiles(_0x5d88e7){const _0x1c9a11=a90_0x1e3d;if(!Array['isArray'](_0x5d88e7)||_0x5d88e7[_0x1c9a11(0xfb)]===0x0)return[];const _0x9593cb=new Map();for(const _0x550471 of _0x5d88e7){if(!_0x550471||typeof _0x550471!==_0x1c9a11(0x10f)||typeof _0x550471[_0x1c9a11(0xf0)]!==_0x1c9a11(0xed))throw CliErrors['validation'](_0x1c9a11(0x10c));const _0x529a87=normalizeSkillRelativePath(_0x550471[_0x1c9a11(0xf0)]);if(_0x9593cb['has'](_0x529a87))throw CliErrors['validation'](_0x1c9a11(0xe8)+_0x529a87);if(_0x550471[_0x1c9a11(0x10b)]!==undefined&&!Buffer[_0x1c9a11(0xeb)](_0x550471[_0x1c9a11(0x10b)]))throw CliErrors[_0x1c9a11(0x106)](_0x1c9a11(0xef)+_0x529a87);if(_0x550471[_0x1c9a11(0x10b)]===undefined&&typeof _0x550471['content']!==_0x1c9a11(0xed))throw CliErrors[_0x1c9a11(0x106)](_0x1c9a11(0x10a)+_0x529a87);const _0x42bfcd=fileContent(_0x550471);_0x9593cb[_0x1c9a11(0xe7)](_0x529a87,{'path':_0x529a87,'bytes':_0x42bfcd});}return Array[_0x1c9a11(0xfd)](_0x9593cb[_0x1c9a11(0x105)]())[_0x1c9a11(0x109)](compareSkillFiles);}function a90_0x1e3d(_0x286df5,_0x4d08ff){_0x286df5=_0x286df5-0xe3;const _0x1dce8f=a90_0x1dce();let _0x1e3d6e=_0x1dce8f[_0x286df5];return _0x1e3d6e;}export function normalizeManifestFiles(_0x3ea8c7){const _0x53f34e=a90_0x1e3d;if(!Array['isArray'](_0x3ea8c7)||_0x3ea8c7[_0x53f34e(0xfb)]===0x0)return[];const _0x12effc=new Map();for(const _0x16379a of _0x3ea8c7){if(!_0x16379a||typeof _0x16379a!==_0x53f34e(0x10f)||typeof _0x16379a['path']!==_0x53f34e(0xed))throw CliErrors['validation'](_0x53f34e(0x10c));const _0xd31058=normalizeSkillRelativePath(_0x16379a[_0x53f34e(0xf0)]);if(_0x12effc[_0x53f34e(0x103)](_0xd31058))throw CliErrors['validation'](_0x53f34e(0xe8)+_0xd31058);if(!isSha256Hex(_0x16379a['sha256']))throw CliErrors[_0x53f34e(0x106)](_0x53f34e(0x10e)+_0xd31058);if(!Number[_0x53f34e(0xe5)](_0x16379a[_0x53f34e(0xf8)])||_0x16379a[_0x53f34e(0xf8)]<0x0)throw CliErrors['validation']('Skill\x20file\x20size\x20is\x20invalid:\x20'+_0xd31058);_0x12effc[_0x53f34e(0xe7)](_0xd31058,{'path':_0xd31058,'sha256':_0x16379a[_0x53f34e(0x108)][_0x53f34e(0x104)](),'size':_0x16379a[_0x53f34e(0xf8)]});}return Array['from'](_0x12effc[_0x53f34e(0x105)]())[_0x53f34e(0x109)](compareSkillFiles);}export function scanSkillDirectory(_0x200a75){const _0x337cbc=realpathSync(_0x200a75),_0x3018e0=[];function _0x3a3a0c(_0x25cc68){const _0x4d7bf5=a90_0x1e3d,_0x3f5201=readdirSync(_0x25cc68,{'withFileTypes':!![]})[_0x4d7bf5(0x109)]((_0xb94d39,_0x38ebda)=>_0xb94d39[_0x4d7bf5(0xee)][_0x4d7bf5(0xe3)](_0x38ebda[_0x4d7bf5(0xee)]));for(const _0x5fbad3 of _0x3f5201){if(_0x5fbad3[_0x4d7bf5(0xf3)]()&&IGNORED_DIR_NAMES['has'](_0x5fbad3[_0x4d7bf5(0xee)]))continue;if(IGNORED_FILE_NAMES[_0x4d7bf5(0x103)](_0x5fbad3['name']))continue;const _0x37c514=resolve(_0x25cc68,_0x5fbad3[_0x4d7bf5(0xee)]);if(_0x5fbad3[_0x4d7bf5(0xf6)]())throw CliErrors['validation']('Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20'+_0x37c514);const _0x127fee=toPosixPath(relative(_0x337cbc,_0x37c514));if(_0x5fbad3[_0x4d7bf5(0xf3)]()){_0x3a3a0c(_0x37c514);continue;}if(!_0x5fbad3[_0x4d7bf5(0xf2)]())continue;validateSkillRelativePath(_0x127fee);const _0x1d71d1=readFileSync(_0x37c514);_0x3018e0[_0x4d7bf5(0xf5)]({'path':_0x127fee,'bytes':_0x1d71d1});}}return _0x3a3a0c(_0x337cbc),normalizeLocalFiles(_0x3018e0);}export function compareSkillFiles(_0x31a446,_0x2cd47e){const _0xf8c67f=a90_0x1e3d;if(_0x31a446[_0xf8c67f(0xf0)]===SKILL_FILE)return _0x2cd47e[_0xf8c67f(0xf0)]===SKILL_FILE?0x0:-0x1;if(_0x2cd47e[_0xf8c67f(0xf0)]===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0xf8c67f(0xfd)](_0x31a446[_0xf8c67f(0xf0)],'utf8'),Buffer['from'](_0x2cd47e[_0xf8c67f(0xf0)],_0xf8c67f(0xe4)));}export function normalizeSkillRelativePath(_0x16f2ea){const _0x232de3=a90_0x1e3d,_0x152799=toPosixPath(_0x16f2ea[_0x232de3(0xfe)]());return validateSkillRelativePath(_0x152799),_0x152799;}export function validateSkillRelativePath(_0x1c1150){const _0x2f9c39=a90_0x1e3d;if(!_0x1c1150||_0x1c1150[_0x2f9c39(0xea)]('/')||_0x1c1150[_0x2f9c39(0xf4)]('//'))throw CliErrors[_0x2f9c39(0x106)](_0x2f9c39(0xf1)+_0x1c1150);for(const _0x1623ff of _0x1c1150[_0x2f9c39(0x102)]('/')){if(!_0x1623ff||_0x1623ff==='.'||_0x1623ff==='..')throw CliErrors[_0x2f9c39(0x106)](_0x2f9c39(0xf1)+_0x1c1150);}}export function toPosixPath(_0x3ee1ae){const _0x4ff8fb=a90_0x1e3d;return _0x3ee1ae[_0x4ff8fb(0xe6)](/\\/g,'/');}export function isSha256Hex(_0x4f3924){const _0x249114=a90_0x1e3d;return typeof _0x4f3924===_0x249114(0xed)&&/^[a-fA-F0-9]{64}$/['test'](_0x4f3924);}
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);}