@lovrabet/lovrabet-cli 2.1.6 → 2.1.7-beta.2

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 +3 -2
@@ -1 +1 @@
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
+ (function(_0x495404,_0x5caf1f){const _0x206e0f=a74_0x3296,_0x29ffb0=_0x495404();while(!![]){try{const _0x299b3c=-parseInt(_0x206e0f(0xc1))/0x1*(parseInt(_0x206e0f(0xc0))/0x2)+-parseInt(_0x206e0f(0xb9))/0x3*(parseInt(_0x206e0f(0xb4))/0x4)+-parseInt(_0x206e0f(0xbf))/0x5*(-parseInt(_0x206e0f(0xb6))/0x6)+-parseInt(_0x206e0f(0xc3))/0x7*(parseInt(_0x206e0f(0xbb))/0x8)+parseInt(_0x206e0f(0xbe))/0x9+-parseInt(_0x206e0f(0xb8))/0xa+parseInt(_0x206e0f(0xbc))/0xb;if(_0x299b3c===_0x5caf1f)break;else _0x29ffb0['push'](_0x29ffb0['shift']());}catch(_0x14a368){_0x29ffb0['push'](_0x29ffb0['shift']());}}}(a74_0x412d,0x80c88));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a74_0x3296(_0x13fe6b,_0x374977){_0x13fe6b=_0x13fe6b-0xb3;const _0x412d23=a74_0x412d();let _0x3296d6=_0x412d23[_0x13fe6b];return _0x3296d6;}function a74_0x412d(){const _0x321ee0=['71326jKHvXW','11UggwTI','url','6090AGhlPC','pretty','message','1515664ulhVSC','update','143502qnmvtK','format','384590mkgcwi','6bNxHpx','_notice','2536ZDZvPu','10664489xMQzMh','error','6833556uwOPlY','55nIPZZR'];a74_0x412d=function(){return _0x321ee0;};return a74_0x412d();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x589485,_0x8378e8){const _0x251568=a74_0x3296,_0xf66ad=_0x589485[_0x251568(0xba)],{_notice:_0x556a30,..._0x3eee9c}=_0x589485;void _0x556a30,baseFormatOutput(_0x3eee9c,_0x8378e8),_0x8378e8[_0x251568(0xb7)]===_0x251568(0xc4)&&printPrettyNotice(_0xf66ad);}function printPrettyNotice(_0x209ae9){const _0x8e3f7d=a74_0x3296;if(!_0x209ae9?.[_0x8e3f7d(0xb5)])return;console[_0x8e3f7d(0xbd)](_0x209ae9[_0x8e3f7d(0xb5)][_0x8e3f7d(0xb3)]+'\x20('+_0x209ae9[_0x8e3f7d(0xb5)][_0x8e3f7d(0xc2)]+')');}
@@ -1 +1 @@
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
+ (function(_0x358ca1,_0x431978){const _0x158f95=a75_0x2aa6,_0x203855=_0x358ca1();while(!![]){try{const _0x21abfa=-parseInt(_0x158f95(0x11b))/0x1+-parseInt(_0x158f95(0x12e))/0x2+parseInt(_0x158f95(0x123))/0x3*(parseInt(_0x158f95(0x126))/0x4)+parseInt(_0x158f95(0x10f))/0x5*(-parseInt(_0x158f95(0x134))/0x6)+parseInt(_0x158f95(0x112))/0x7*(parseInt(_0x158f95(0x130))/0x8)+-parseInt(_0x158f95(0x10e))/0x9*(parseInt(_0x158f95(0x12d))/0xa)+-parseInt(_0x158f95(0x120))/0xb*(-parseInt(_0x158f95(0x127))/0xc);if(_0x21abfa===_0x431978)break;else _0x203855['push'](_0x203855['shift']());}catch(_0x51b0ed){_0x203855['push'](_0x203855['shift']());}}}(a75_0x43a2,0x1af8f));function toKebab(_0x527d96){const _0x447d92=a75_0x2aa6;return _0x527d96[_0x447d92(0x111)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x1d810d,_0x3ea6bb)=>'-'+_0x3ea6bb[_0x447d92(0x11e)]())[_0x447d92(0x111)](/([a-z0-9])([A-Z])/g,(_0x5638c4,_0x38d2d1,_0x3092a4)=>_0x38d2d1+'-'+_0x3092a4)['toLowerCase']();}function a75_0x43a2(){const _0x17b4c4=['entries','432JNCMLa','496445CiGwcm','length','replace','7yYcjed','dry-run','boolean','version','push','dryRun','add','string','original','115953uqkySX','has','toUpperCase','toLowerCase','number','726cGkgwG','slice','name','354441PhtWUb','env','keys','4jFsYEa','67956TYuWWu','get','indexOf','corrected','type','nonInteractive','16370axRgfh','215200SCbGwl','set','954248LwYuvW','format','app','alias','12Onjcgg','appcode','sticky'];a75_0x43a2=function(){return _0x17b4c4;};return a75_0x43a2();}function a75_0x2aa6(_0x13804a,_0x3b9817){_0x13804a=_0x13804a-0x10d;const _0x43a28d=a75_0x43a2();let _0x2aa630=_0x43a28d[_0x13804a];return _0x2aa630;}function buildKnownFlags(_0x48596b){const _0x2b1029=a75_0x2aa6,_0x4f6839=new Set();for(const _0x454e68 of _0x48596b){_0x4f6839['add'](_0x454e68['name']),_0x4f6839[_0x2b1029(0x118)](toCamelCase(_0x454e68[_0x2b1029(0x122)]));}for(const _0x18c461 of[_0x2b1029(0x113),_0x2b1029(0x117),'yes',_0x2b1029(0x131)]){_0x4f6839[_0x2b1029(0x118)](_0x18c461);}for(const _0x1ceb91 of['help',_0x2b1029(0x124),_0x2b1029(0x135),_0x2b1029(0x132),_0x2b1029(0x12c),'non-interactive','ci','global',_0x2b1029(0x115)]){_0x4f6839['add'](_0x1ceb91);}return _0x4f6839;}function buildFlagTypeMap(_0x3a3391){const _0x417559=a75_0x2aa6,_0x4d7070=new Map();for(const _0x134a27 of _0x3a3391){_0x4d7070[_0x417559(0x12f)](_0x134a27[_0x417559(0x122)],_0x134a27[_0x417559(0x12b)]),_0x4d7070[_0x417559(0x12f)](toCamelCase(_0x134a27[_0x417559(0x122)]),_0x134a27[_0x417559(0x12b)]);}return _0x4d7070;}function toCamelCase(_0x52b5b6){const _0x50b662=a75_0x2aa6;return _0x52b5b6[_0x50b662(0x111)](/-([a-z])/g,(_0x46a2c3,_0x461bc8)=>_0x461bc8[_0x50b662(0x11d)]());}function aliasHandler(_0x1b5bda,_0x57689e){const _0x255437=a75_0x2aa6,_0x4ec707=[];for(const _0x4051b4 of Object[_0x255437(0x125)](_0x1b5bda)){if(_0x57689e[_0x255437(0x11c)](_0x4051b4))continue;const _0x5657d8=toKebab(_0x4051b4);_0x5657d8!==_0x4051b4&&_0x57689e['has'](_0x5657d8)&&_0x4ec707[_0x255437(0x116)]({'original':_0x4051b4,'corrected':_0x5657d8,'handler':_0x255437(0x133)});}return _0x4ec707;}function stickyHandler(_0x49b184,_0x54d4e4,_0x3a1cda){const _0x192d50=a75_0x2aa6,_0x20aa54=[];for(const [_0x4d6da9,_0x2f6a4d]of Object[_0x192d50(0x10d)](_0x49b184)){if(_0x2f6a4d!==!![])continue;for(let _0x3bcac5=_0x4d6da9[_0x192d50(0x110)]-0x1;_0x3bcac5>0x0;_0x3bcac5--){const _0x5ae0ac=_0x4d6da9['slice'](0x0,_0x3bcac5),_0xdf51ee=_0x4d6da9[_0x192d50(0x121)](_0x3bcac5),_0x4952df=toKebab(_0x5ae0ac),_0x286fd3=toCamelCase(_0x5ae0ac),_0x2be316=_0x54d4e4[_0x192d50(0x11c)](_0x5ae0ac)?_0x5ae0ac:_0x54d4e4[_0x192d50(0x11c)](_0x4952df)?_0x4952df:_0x54d4e4[_0x192d50(0x11c)](_0x286fd3)?_0x286fd3:null;if(!_0x2be316)continue;const _0x7395b3=_0x3a1cda[_0x192d50(0x128)](_0x2be316)??_0x192d50(0x119);let _0x5e8bcc;if(_0x7395b3===_0x192d50(0x11f)){const _0xd6757d=Number(_0xdf51ee);if(isNaN(_0xd6757d)||_0xdf51ee==='')continue;_0x5e8bcc=_0xd6757d;}else{if(_0x7395b3===_0x192d50(0x114))continue;else{if(_0xdf51ee==='')continue;_0x5e8bcc=_0xdf51ee;}}_0x20aa54['push']({'original':_0x4d6da9,'corrected':_0x2be316+'='+_0x5e8bcc,'handler':_0x192d50(0x136)});break;}}return _0x20aa54;}export function correctFlags(_0x4c0ecf,_0x3d1b99){const _0x3c2319=a75_0x2aa6,_0x6c1bb7=buildKnownFlags(_0x3d1b99),_0x53781e=buildFlagTypeMap(_0x3d1b99),_0x4e28cb=aliasHandler(_0x4c0ecf,_0x6c1bb7),_0x2fc3fd=stickyHandler(_0x4c0ecf,_0x6c1bb7,_0x53781e),_0x3debe1=[..._0x4e28cb,..._0x2fc3fd];if(_0x3debe1[_0x3c2319(0x110)]===0x0)return{'flags':_0x4c0ecf,'corrections':[]};const _0x44e24b={..._0x4c0ecf},_0x4273bb=new Set();for(const _0x3de2a0 of _0x4e28cb){_0x44e24b[_0x3de2a0[_0x3c2319(0x12a)]]=_0x4c0ecf[_0x3de2a0[_0x3c2319(0x11a)]],_0x4273bb[_0x3c2319(0x118)](_0x3de2a0[_0x3c2319(0x11a)]);}for(const _0x2686a9 of _0x2fc3fd){const _0x4a301=_0x2686a9[_0x3c2319(0x12a)][_0x3c2319(0x129)]('='),_0x472024=_0x2686a9['corrected'][_0x3c2319(0x121)](0x0,_0x4a301),_0x83546d=_0x2686a9[_0x3c2319(0x12a)]['slice'](_0x4a301+0x1),_0x192637=_0x53781e[_0x3c2319(0x128)](_0x472024)??_0x3c2319(0x119);_0x192637===_0x3c2319(0x11f)?_0x44e24b[_0x472024]=Number(_0x83546d):_0x44e24b[_0x472024]=_0x83546d,_0x4273bb[_0x3c2319(0x118)](_0x2686a9[_0x3c2319(0x11a)]);}for(const _0x4fba6d of _0x4273bb){delete _0x44e24b[_0x4fba6d];}return{'flags':_0x44e24b,'corrections':_0x3debe1};}
@@ -1 +1 @@
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
+ function a76_0x2eec(_0x42cbe0,_0x19664d){_0x42cbe0=_0x42cbe0-0xa3;var _0x25ae97=a76_0x25ae();var _0x2eec37=_0x25ae97[_0x42cbe0];return _0x2eec37;}(function(_0x17b5d8,_0x5b67b5){var _0x3ce0ef=a76_0x2eec,_0xca0272=_0x17b5d8();while(!![]){try{var _0x1c2a5c=-parseInt(_0x3ce0ef(0xad))/0x1*(-parseInt(_0x3ce0ef(0xaf))/0x2)+-parseInt(_0x3ce0ef(0xa9))/0x3*(parseInt(_0x3ce0ef(0xac))/0x4)+-parseInt(_0x3ce0ef(0xab))/0x5*(-parseInt(_0x3ce0ef(0xa6))/0x6)+parseInt(_0x3ce0ef(0xa4))/0x7*(-parseInt(_0x3ce0ef(0xa7))/0x8)+parseInt(_0x3ce0ef(0xa5))/0x9*(-parseInt(_0x3ce0ef(0xa3))/0xa)+parseInt(_0x3ce0ef(0xaa))/0xb*(parseInt(_0x3ce0ef(0xae))/0xc)+parseInt(_0x3ce0ef(0xa8))/0xd;if(_0x1c2a5c===_0x5b67b5)break;else _0xca0272['push'](_0xca0272['shift']());}catch(_0x373f71){_0xca0272['push'](_0xca0272['shift']());}}}(a76_0x25ae,0x71677));function a76_0x25ae(){var _0x2d7867=['9aSrJle','2580tMLOZZ','3828248vOjbfw','13759447CszjjM','12SppqPn','4697583amtuGA','2095KReMcE','401776YCvvzJ','37EWUtYi','12mIXwru','9574xoKfJB','4979510zqUuRJ','7vedZoP'];a76_0x25ae=function(){return _0x2d7867;};return a76_0x25ae();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
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
+ function a77_0xdf2c(){const _0x32ba98=['name=','⚠\x20\x20High-risk\x20operation:\x20','params=','code','affectedRecords','2BhVRda','285056zfDPCD','length','32711LCsmdK','entries','150xxiFsM','\x20\x20\x20','\x20\x20\x20Continue?\x20[y/N]\x20','stringify','1071147KIRape','commandLabel','4305585ljCNTF','service','7670376NAXFeP','join','352251pulZzl','description','--yes','564efjxac','244582TQxeyt','id=','push','params','name','command'];a77_0xdf2c=function(){return _0x32ba98;};return a77_0xdf2c();}(function(_0x4fa96b,_0x7fc33f){const _0x3adad6=a77_0x34c9,_0x2fb4a3=_0x4fa96b();while(!![]){try{const _0x25ffff=parseInt(_0x3adad6(0xf6))/0x1*(parseInt(_0x3adad6(0xeb))/0x2)+parseInt(_0x3adad6(0xff))/0x3+-parseInt(_0x3adad6(0xf7))/0x4+-parseInt(_0x3adad6(0xe3))/0x5+parseInt(_0x3adad6(0xea))/0x6*(parseInt(_0x3adad6(0xf9))/0x7)+parseInt(_0x3adad6(0xe5))/0x8+-parseInt(_0x3adad6(0xe7))/0x9*(parseInt(_0x3adad6(0xfb))/0xa);if(_0x25ffff===_0x7fc33f)break;else _0x2fb4a3['push'](_0x2fb4a3['shift']());}catch(_0x243430){_0x2fb4a3['push'](_0x2fb4a3['shift']());}}}(a77_0xdf2c,0x753e0));function a77_0x34c9(_0x2aafc4,_0x43e786){_0x2aafc4=_0x2aafc4-0xe3;const _0xdf2c36=a77_0xdf2c();let _0x34c91d=_0xdf2c36[_0x2aafc4];return _0x34c91d;}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x38455b,_0x4c2e9e,_0x203a52){const _0x5baf94=a77_0x34c9,_0x3d0269=buildConfirmationContext(_0x38455b,_0x4c2e9e,_0x203a52),_0x211d5a=[_0x5baf94(0xf2)+_0x3d0269[_0x5baf94(0x100)]];return _0x3d0269[_0x5baf94(0xe8)]&&_0x211d5a[_0x5baf94(0xed)](_0x5baf94(0xfc)+_0x3d0269[_0x5baf94(0xe8)]),_0x3d0269[_0x5baf94(0xf5)]&&_0x211d5a[_0x5baf94(0xed)]('\x20\x20\x20Affected:\x20'+_0x3d0269[_0x5baf94(0xf5)]),_0x211d5a['push'](_0x5baf94(0xfd)),_0x211d5a;}export function reconstructCommandArgv(_0x251314,_0x408e8b){const _0x29c986=a77_0x34c9,_0x45d895=[CLI_BIN_NAME,_0x251314[_0x29c986(0xe4)],_0x251314[_0x29c986(0xf0)]];for(const [_0xc40a02,_0x3f985b]of Object[_0x29c986(0xfa)](_0x408e8b)){if(_0x3f985b===!![])_0x45d895[_0x29c986(0xed)]('--'+_0xc40a02);else _0x3f985b!==![]&&_0x3f985b!==undefined&&_0x3f985b!==''&&_0x45d895['push']('--'+_0xc40a02+'\x20'+JSON[_0x29c986(0xfe)](_0x3f985b));}return _0x45d895['push'](_0x29c986(0xe9)),_0x45d895[_0x29c986(0xe6)]('\x20');}function buildConfirmationContext(_0x44c3e6,_0x5b7337,_0x5af442){const _0x1a3594=extractAffectedRecords(_0x5af442);return{'commandLabel':_0x5b7337,'description':_0x44c3e6['description'],'affectedRecords':_0x1a3594};}function extractAffectedRecords(_0x3f7b8b){const _0x345544=a77_0x34c9,_0x4fcb5e=[];if(_0x3f7b8b[_0x345544(0xf4)])_0x4fcb5e[_0x345544(0xed)]('code='+_0x3f7b8b[_0x345544(0xf4)]);if(_0x3f7b8b['id'])_0x4fcb5e['push'](_0x345544(0xec)+_0x3f7b8b['id']);if(_0x3f7b8b[_0x345544(0xef)])_0x4fcb5e[_0x345544(0xed)](_0x345544(0xf1)+_0x3f7b8b[_0x345544(0xef)]);if(_0x3f7b8b[_0x345544(0xee)])_0x4fcb5e['push'](_0x345544(0xf3)+_0x3f7b8b[_0x345544(0xee)]);return _0x4fcb5e[_0x345544(0xf8)]>0x0?_0x4fcb5e['join'](',\x20'):undefined;}
@@ -1 +1 @@
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
+ function a78_0x3658(_0x213c23,_0x189877){_0x213c23=_0x213c23-0xa2;const _0x472b63=a78_0x472b();let _0x3658ea=_0x472b63[_0x213c23];return _0x3658ea;}function a78_0x472b(){const _0x35ef40=['7580LijpYr','trim','1381070eooGMt','message','51543LwLENt','stringify','3761730ggvAJF','2555Mbbgrz','2473641lpbBKJ','string','2672JCDkhG','description','7681008COCBqO','38892nYoVOa'];a78_0x472b=function(){return _0x35ef40;};return a78_0x472b();}(function(_0x5ae889,_0x62c7cd){const _0x1e1555=a78_0x3658,_0x205765=_0x5ae889();while(!![]){try{const _0x632e79=-parseInt(_0x1e1555(0xa8))/0x1+parseInt(_0x1e1555(0xab))/0x2+-parseInt(_0x1e1555(0xa3))/0x3+-parseInt(_0x1e1555(0xa9))/0x4*(-parseInt(_0x1e1555(0xa2))/0x5)+parseInt(_0x1e1555(0xa7))/0x6+parseInt(_0x1e1555(0xaf))/0x7+-parseInt(_0x1e1555(0xa5))/0x8*(parseInt(_0x1e1555(0xad))/0x9);if(_0x632e79===_0x62c7cd)break;else _0x205765['push'](_0x205765['shift']());}catch(_0x470ad4){_0x205765['push'](_0x205765['shift']());}}}(a78_0x472b,0xaaf15));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x4ee5d1){if(_0x4ee5d1 instanceof LovrabetError)return CliErrors['validation'](userFacingLovrabetMessage(_0x4ee5d1));return _0x4ee5d1;}function userFacingLovrabetMessage(_0x28e87b){const _0x1698f5=a78_0x3658,_0x3bac1e=_0x28e87b[_0x1698f5(0xa6)];if(_0x3bac1e!==undefined&&_0x3bac1e!==null){if(typeof _0x3bac1e===_0x1698f5(0xa4)&&_0x3bac1e[_0x1698f5(0xaa)]())return _0x3bac1e[_0x1698f5(0xaa)]();try{return JSON[_0x1698f5(0xae)](_0x3bac1e);}catch{}}return _0x28e87b[_0x1698f5(0xac)];}
@@ -1 +1 @@
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
+ const a79_0x23cab7=a79_0x4163;(function(_0x18e6e2,_0x4da4d1){const _0x605447=a79_0x4163,_0x347582=_0x18e6e2();while(!![]){try{const _0x1b604a=parseInt(_0x605447(0x81))/0x1*(-parseInt(_0x605447(0xa3))/0x2)+parseInt(_0x605447(0x91))/0x3+-parseInt(_0x605447(0x8d))/0x4*(-parseInt(_0x605447(0xac))/0x5)+-parseInt(_0x605447(0x9a))/0x6+parseInt(_0x605447(0xb1))/0x7*(parseInt(_0x605447(0x99))/0x8)+-parseInt(_0x605447(0xa8))/0x9+parseInt(_0x605447(0xa9))/0xa;if(_0x1b604a===_0x4da4d1)break;else _0x347582['push'](_0x347582['shift']());}catch(_0x429857){_0x347582['push'](_0x347582['shift']());}}}(a79_0x85ff,0xa6a8b));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(_0x15b25e){const _0x704d6=a79_0x4163;return void _0x15b25e,AUTH_MODE[_0x704d6(0x79)];}export function createPipelineEnv(_0x25ef88,_0xd5e4a6){const _0x8700e1=a79_0x4163,_0x57e877=typeof _0xd5e4a6['app']===_0x8700e1(0x86)&&_0xd5e4a6['app'][_0x8700e1(0x7e)]();return{'rawFlags':_0xd5e4a6,'appCode':_0x25ef88[_0x8700e1(0xa4)]||productEnv(_0x8700e1(0x95))||(_0x57e877?undefined:readAppCodeFromConfig()),'appCodeSource':_0x25ef88[_0x8700e1(0x9b)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0xd5e4a6),'defaultFormat':_0x25ef88[_0x8700e1(0xab)],'defaultPageSize':_0x25ef88[_0x8700e1(0x82)],'defaultVerbose':_0x25ef88[_0x8700e1(0x7f)],'riskLevel':_0x25ef88['riskLevel'],'accessKey':_0x25ef88['accessKey'],'env':_0x25ef88[_0x8700e1(0xad)],'mergedCli':{'defaultApp':_0x25ef88[_0x8700e1(0x77)],'currentApp':_0x25ef88[_0x8700e1(0x8c)],'appCode':_0x25ef88[_0x8700e1(0xa4)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a79_0x23cab7(0xa0)](_0x4eaed8=>PIPELINE_FLAG_NAMES[a79_0x23cab7(0xa2)](_0x4eaed8[a79_0x23cab7(0x83)]))[a79_0x23cab7(0x98)](({name:_0x1a179a,type:_0x22572d,description:_0x5992a4})=>({'name':_0x1a179a,'type':_0x22572d,'description':_0x5992a4})),'formatOutput':formatOutput,'getCommandLabel'(_0x20e2bd){const _0x1c336d=a79_0x23cab7;return CLI_BIN_NAME+'\x20'+_0x20e2bd[_0x1c336d(0x84)]+'\x20'+_0x20e2bd[_0x1c336d(0xb3)];},'riskPolicy':{'onViolation'(_0x1a0ba7){const _0x39f858=a79_0x23cab7;console[_0x39f858(0x7a)](_0x1a0ba7);},'createError'(_0x1ba394){const _0x360229=a79_0x23cab7;return CliErrors[_0x360229(0x8a)](_0x1ba394);}},async 'prepare'(_0x1431de,_0x5ad0cf){const _0x5bd893=a79_0x23cab7,_0x2aae7f=resolveAuthMode(_0x5ad0cf);if(_0x1431de['requiresAuth']!==![]){if(!_0x5ad0cf[_0x5bd893(0xb2)])throw CliErrors[_0x5bd893(0x87)](_0x5bd893(0x85)+PRODUCT_CONFIG[_0x5bd893(0xa6)]+_0x5bd893(0x78)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x128fc3}=await import(_0x5bd893(0x9f));_0x128fc3(_0x5ad0cf['accessKey']);}let _0x2d5aad='';if(_0x1431de[_0x5bd893(0x8f)]!==![]){_0x2d5aad=_0x5ad0cf[_0x5bd893(0xa4)]??'',_0x2d5aad=await resolveExplicitAppName(_0x1431de,_0x5ad0cf,_0x2d5aad);if(!_0x2d5aad){await assertSelectedAppNameIsRuntimeAccessible(_0x1431de,_0x5ad0cf);throw CliErrors[_0x5bd893(0x7c)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1431de,_0x5ad0cf,_0x2d5aad);}if(_0x2d5aad){const {initSdkClient:_0x4fb5ba}=await import(_0x5bd893(0x8e));_0x4fb5ba({'appCode':_0x2d5aad,'env':_0x5ad0cf[_0x5bd893(0xad)]??_0x5bd893(0x80),'accessKey':_0x5ad0cf['accessKey'],'authMode':_0x2aae7f});}return{'defaults':{'booleans':{'verbose':_0x5ad0cf[_0x5bd893(0x75)]},'numbers':{'pagesize':_0x5ad0cf[_0x5bd893(0xaa)]}},'extras':{'appCode':_0x2d5aad,'cookie':'','apiDomain':_0x5ad0cf[_0x5bd893(0xb7)],'apiDir':'','accessKey':_0x5ad0cf[_0x5bd893(0xb2)],'envName':_0x5ad0cf[_0x5bd893(0xad)],'mergedCli':_0x5ad0cf[_0x5bd893(0x97)]}};},async 'confirmHighRisk'({def:_0x3693f7,env:_0x532248,flags:_0x46d177,commandLabel:_0x183c5f}){const _0x1088c6=a79_0x23cab7;if(_0x532248[_0x1088c6(0x74)]){const _0x475b09=reconstructCommandArgv(_0x3693f7,_0x46d177);throw CliErrors[_0x1088c6(0xa7)](_0x1088c6(0xb4)+_0x183c5f+_0x1088c6(0xa1)+(_0x1088c6(0x7b)+_0x475b09));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3693f7,_0x183c5f,_0x46d177),'createCancelledError':_0x5e7a5e=>CliErrors['cancelled'](_0x5e7a5e)});},'mapDryRunError'(_0x283de9){return mapUserFacingExecuteError(_0x283de9);},'mapExecuteError'(_0x4d89d7){return mapUserFacingExecuteError(_0x4d89d7);},async 'finalize'(){const _0x53560d=a79_0x23cab7,{clearActiveAK:_0x3cd6ea}=await import(_0x53560d(0x9f));_0x3cd6ea();}};function a79_0x85ff(){const _0x12e620=['command','High-risk\x20operation\x20`','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','items','apiDomain','isNonInteractive','defaultVerbose','.appcode\x20to\x20','defaultApp','\x20or\x20pass\x20','ClientAk','error','\x20\x20To\x20proceed:\x20','configMissing','_notice','trim','verbose','production','11IyLlHr','pageSize','name','service','Set\x20accessKey\x20in\x20','string','authRequired','app','catch','cancelled','../commands/app/remote-source.js','currentApp','1124DjztwU','../core/sdk-client.js','requiresAppCode','includes','923736vdIpKy','object','schema','local-alias','APPCODE','appcode\x20\x22','mergedCli','map','160MHQALZ','1126686TYKQbx','appCodeSource','appcode','rawFlags','execute','../core/api-client.js','filter','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','has','188476SGsUix','appCode','update','newConfigFileName','validation','9832527RxaXdz','5789120CemHWf','defaultPageSize','format','14065gNoxUY','env','Unknown\x20app:\x20','Run\x20`','nonInteractive','462791MrKeeH','accessKey'];a79_0x85ff=function(){return _0x12e620;};return a79_0x85ff();}async function resolveExplicitAppName(_0x48266d,_0x267587,_0x2d3099){const _0x43193a=a79_0x23cab7;if(_0x48266d['requiresAppCode']===![])return _0x2d3099;const _0x523802=typeof _0x267587['rawFlags'][_0x43193a(0x88)]==='string'?_0x267587[_0x43193a(0x9d)][_0x43193a(0x88)][_0x43193a(0x7e)]():'';if(!_0x523802)return _0x2d3099;const _0x99258c=typeof _0x267587[_0x43193a(0x9d)]['appcode']===_0x43193a(0x86)&&_0x267587['rawFlags'][_0x43193a(0x9c)][_0x43193a(0x7e)]()||productEnv(_0x43193a(0x95));if(_0x99258c||_0x267587['appCodeSource']===_0x43193a(0x94))return _0x2d3099;const {getRemoteAppList:_0x467bab}=await import('../commands/app/remote-source.js'),_0x3f9284=await _0x467bab({'env':_0x267587[_0x43193a(0xad)]??_0x43193a(0x80),'accessKey':_0x267587[_0x43193a(0xb2)]}),_0x447b9a=findAppByName(_0x3f9284[_0x43193a(0xb6)],_0x523802);if(_0x447b9a&&!isRuntimeAccessibleApp(_0x447b9a))throw runtimeInaccessibleAppError(_0x447b9a,'\x22'+_0x523802+'\x22');const _0x437488=_0x447b9a?.[_0x43193a(0xa4)]?.[_0x43193a(0x7e)]();if(_0x437488)return _0x437488;throw CliErrors[_0x43193a(0xa7)](_0x43193a(0xae)+_0x523802,_0x43193a(0xaf)+CLI_BIN_NAME+_0x43193a(0xb5)+_0x523802+_0x43193a(0x76)+PRODUCT_CONFIG[_0x43193a(0xa6)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1b5cbf,_0x43ea04){const _0x49addc=a79_0x23cab7;if(_0x1b5cbf[_0x49addc(0x8f)]===![]||!_0x43ea04[_0x49addc(0xb2)])return;const _0x7ca759=(typeof _0x43ea04[_0x49addc(0x9d)][_0x49addc(0x88)]===_0x49addc(0x86)&&_0x43ea04['rawFlags'][_0x49addc(0x88)]['trim']()?_0x43ea04['rawFlags'][_0x49addc(0x88)]:_0x43ea04[_0x49addc(0x97)]?.[_0x49addc(0x8c)]??_0x43ea04[_0x49addc(0x97)]?.['defaultApp'])?.[_0x49addc(0x7e)]();if(!_0x7ca759)return;const {getRemoteAppList:_0x486be0}=await import(_0x49addc(0x8b)),_0x45ecc8=await _0x486be0({'env':_0x43ea04[_0x49addc(0xad)]??_0x49addc(0x80),'accessKey':_0x43ea04[_0x49addc(0xb2)]}),_0x446306=findAppByName(_0x45ecc8[_0x49addc(0xb6)],_0x7ca759);if(_0x446306&&!isRuntimeAccessibleApp(_0x446306))throw runtimeInaccessibleAppError(_0x446306,'\x22'+_0x7ca759+'\x22');}function a79_0x4163(_0x2a7944,_0x3f640f){_0x2a7944=_0x2a7944-0x74;const _0x85ffc1=a79_0x85ff();let _0x416342=_0x85ffc1[_0x2a7944];return _0x416342;}async function assertAppCodeIsRuntimeAccessible(_0x34415b,_0x4aa884,_0x4f3ce6){const _0x314d9c=a79_0x23cab7;if(_0x34415b[_0x314d9c(0x8f)]===![]||!_0x4aa884[_0x314d9c(0xb2)])return;const {getRemoteAppList:_0x2c02e8}=await import(_0x314d9c(0x8b)),_0x3550c9=await _0x2c02e8({'env':_0x4aa884['env']??_0x314d9c(0x80),'accessKey':_0x4aa884[_0x314d9c(0xb2)]}),_0x51f26d=findAppByCode(_0x3550c9['items'],_0x4f3ce6);if(_0x51f26d&&!isRuntimeAccessibleApp(_0x51f26d))throw runtimeInaccessibleAppError(_0x51f26d,_0x314d9c(0x96)+_0x4f3ce6+'\x22');}export async function runCommand(_0x3edb2b,_0x383472){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3edb2b)?withUpdateNotice(_0x3edb2b):_0x3edb2b,_0x383472,runnerAdapter);}function shouldAttachUpdateNotice(_0x4ee333){const _0x314fb3=a79_0x23cab7;return![_0x314fb3(0xa5),_0x314fb3(0x93),'doctor'][_0x314fb3(0x90)](_0x4ee333[_0x314fb3(0x84)]);}function withUpdateNotice(_0x4eb1bf){return{..._0x4eb1bf,async 'execute'(_0x12bc71){const _0x4fe47e=a79_0x4163,_0x281735=shouldResolveUpdateNotice(_0x12bc71)?resolveLatestUpdateNotice()[_0x4fe47e(0x89)](()=>null):Promise['resolve'](null),_0xda8972=await _0x4eb1bf[_0x4fe47e(0x9e)](_0x12bc71);return attachUpdateNotice(_0xda8972,await _0x281735);}};}function shouldResolveUpdateNotice(_0x5b6fa2){const _0x4bcf58=a79_0x23cab7;return _0x5b6fa2[_0x4bcf58(0xab)]==='pretty'&&!_0x5b6fa2[_0x4bcf58(0xb0)];}function attachUpdateNotice(_0x2468ed,_0x19932a){const _0x23a494=a79_0x23cab7;if(!_0x19932a||!_0x2468ed||typeof _0x2468ed!==_0x23a494(0x92))return _0x2468ed;const _0x37929a=_0x2468ed,_0xb8b4c7=typeof _0x37929a['_notice']==='object'&&_0x37929a[_0x23a494(0x7d)]!==null?_0x37929a['_notice']:{};return{..._0x37929a,'_notice':{..._0xb8b4c7,'update':_0x19932a}};}
@@ -1 +1 @@
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
+ function a80_0x4ad5(){const _0x49cb46=['28895agJUtV','183656jMBHeI','requiresAuth','4467690kjiQfS','none','1yJrcKe','252792WVgOFW','auth','has','3442880IZILRs','required','service','filter','services','8252310tMnhtL','commands','../commands/registry.js','map','104rvMfXJ','171UfkxWh','1517528YIBgad'];a80_0x4ad5=function(){return _0x49cb46;};return a80_0x4ad5();}function a80_0x14f1(_0x36b9e9,_0x580b4f){_0x36b9e9=_0x36b9e9-0x13a;const _0x4ad5b9=a80_0x4ad5();let _0x14f1cc=_0x4ad5b9[_0x36b9e9];return _0x14f1cc;}(function(_0x5e261d,_0x44e999){const _0x3d77b1=a80_0x14f1,_0x1d8cd3=_0x5e261d();while(!![]){try{const _0x108aa9=parseInt(_0x3d77b1(0x141))/0x1*(-parseInt(_0x3d77b1(0x13b))/0x2)+parseInt(_0x3d77b1(0x142))/0x3+-parseInt(_0x3d77b1(0x14e))/0x4*(-parseInt(_0x3d77b1(0x13c))/0x5)+-parseInt(_0x3d77b1(0x13f))/0x6+parseInt(_0x3d77b1(0x145))/0x7+-parseInt(_0x3d77b1(0x13d))/0x8*(-parseInt(_0x3d77b1(0x13a))/0x9)+parseInt(_0x3d77b1(0x14a))/0xa;if(_0x108aa9===_0x44e999)break;else _0x1d8cd3['push'](_0x1d8cd3['shift']());}catch(_0x264e7c){_0x1d8cd3['push'](_0x1d8cd3['shift']());}}}(a80_0x4ad5,0x76429));import{buildSchemaPayload as a80_0x1b34da}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 _0x56f04c=a80_0x14f1,{serviceRegistry:_0x43e214,findDefinition:_0x3988d1}=await import(_0x56f04c(0x14c)),_0x56d5d1=new Set(_0x43e214[_0x56f04c(0x14d)](_0xc06039=>_0xc06039[_0x56f04c(0x147)])),_0x187b23=listDynamicServiceEntries()[_0x56f04c(0x148)](_0x10f30f=>!_0x56d5d1[_0x56f04c(0x144)](_0x10f30f[_0x56f04c(0x147)])),_0x941c22=a80_0x1b34da({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x43e214,..._0x187b23],'buildAllFlags':buildAllFlags,'findDefinition':(_0x2f06a9,_0x97aa20)=>_0x3988d1(_0x2f06a9,_0x97aa20)??findDynamicServiceDefinition(_0x2f06a9,_0x97aa20)});return normalizeSchemaPayload(_0x941c22);}function normalizeSchemaPayload(_0x33825e){const _0x3fb225=a80_0x14f1;return{..._0x33825e,'schemaVersion':0x2,'services':_0x33825e[_0x3fb225(0x149)][_0x3fb225(0x14d)](_0x5b5ff4=>({..._0x5b5ff4,'commands':_0x5b5ff4[_0x3fb225(0x14b)][_0x3fb225(0x14d)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x22cae2){const _0x50f7c9=a80_0x14f1,_0x17b3f9=_0x22cae2;return{..._0x22cae2,'auth':_0x17b3f9[_0x50f7c9(0x143)]??(_0x22cae2[_0x50f7c9(0x13e)]?_0x50f7c9(0x146):_0x50f7c9(0x140))};}
@@ -1 +1 @@
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
+ function a81_0x2a66(){var _0x189fe8=['437088lRnJfv','1441598oUfclK','557628iIHAmo','673538kvJgWO','2834150LvjIiy','3056324uwDMRh','3779839FgVhXV','8ZWWtPs'];a81_0x2a66=function(){return _0x189fe8;};return a81_0x2a66();}function a81_0x1d67(_0x45eebd,_0x2308ea){_0x45eebd=_0x45eebd-0xca;var _0x2a6698=a81_0x2a66();var _0x1d67e2=_0x2a6698[_0x45eebd];return _0x1d67e2;}(function(_0x168e83,_0x20c196){var _0x1cd8e3=a81_0x1d67,_0x3b4bd8=_0x168e83();while(!![]){try{var _0x22494b=parseInt(_0x1cd8e3(0xcf))/0x1+-parseInt(_0x1cd8e3(0xcd))/0x2+-parseInt(_0x1cd8e3(0xce))/0x3+parseInt(_0x1cd8e3(0xd1))/0x4+parseInt(_0x1cd8e3(0xd0))/0x5+-parseInt(_0x1cd8e3(0xcc))/0x6+parseInt(_0x1cd8e3(0xca))/0x7*(-parseInt(_0x1cd8e3(0xcb))/0x8);if(_0x22494b===_0x20c196)break;else _0x3b4bd8['push'](_0x3b4bd8['shift']());}catch(_0x2b9d00){_0x3b4bd8['push'](_0x3b4bd8['shift']());}}}(a81_0x2a66,0x76655));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
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);
1
+ const a82_0x2196a6=a82_0x1de8;(function(_0x4ec697,_0x37e519){const _0x5caa9c=a82_0x1de8,_0x31a4d7=_0x4ec697();while(!![]){try{const _0x21f400=parseInt(_0x5caa9c(0x1ef))/0x1+-parseInt(_0x5caa9c(0x1fa))/0x2*(-parseInt(_0x5caa9c(0x1f5))/0x3)+-parseInt(_0x5caa9c(0x1f8))/0x4+parseInt(_0x5caa9c(0x1f7))/0x5+-parseInt(_0x5caa9c(0x1f1))/0x6+parseInt(_0x5caa9c(0x1f4))/0x7*(parseInt(_0x5caa9c(0x1f6))/0x8)+parseInt(_0x5caa9c(0x1ee))/0x9;if(_0x21f400===_0x37e519)break;else _0x31a4d7['push'](_0x31a4d7['shift']());}catch(_0x2b9168){_0x31a4d7['push'](_0x31a4d7['shift']());}}}(a82_0x2d1f,0x31e48));export const VERSION=a82_0x2196a6(0x1f9);function a82_0x2d1f(){const _0x4cb930=['2026-07-06T12:23:18.255Z','1432962oJweuX','v2.1.7-beta.2','8b73701','469vdtFLt','26283sfpZQi','14264ZAyjqv','802560LhmgkH','1518012uypRFc','2.1.7-beta.2','66QFAiWq','1090134ZSgVLy','132478JwSeFs'];a82_0x2d1f=function(){return _0x4cb930;};return a82_0x2d1f();}export const GIT_TAG=a82_0x2196a6(0x1f2);export const GIT_COMMIT=a82_0x2196a6(0x1f3);function a82_0x1de8(_0x4fbdff,_0x1f1049){_0x4fbdff=_0x4fbdff-0x1ee;const _0x2d1fc0=a82_0x2d1f();let _0x1de806=_0x2d1fc0[_0x4fbdff];return _0x1de806;}export const BUILD_TIME=a82_0x2196a6(0x1f0);
package/lib/help.js CHANGED
@@ -1 +1 @@
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
+ function a83_0x3db5(){const _0x426b19=['7781320WvLwlg','10yPCxpr','40TYEVii','825tIBvBi','124884jezIpv','1671321kCXqup','2262501OgCTIq','1596264swzNtK','1SxWKMz','green','\x20--help','6768QANWwt','141976OiobSu','column','\x20to\x20view\x20available\x20commands.','5642FTQJpq'];a83_0x3db5=function(){return _0x426b19;};return a83_0x3db5();}(function(_0x2c04ee,_0x102ec6){const _0x52aa70=a83_0x5e97,_0x18bdae=_0x2c04ee();while(!![]){try{const _0x26fa4f=parseInt(_0x52aa70(0x187))/0x1*(-parseInt(_0x52aa70(0x186))/0x2)+parseInt(_0x52aa70(0x194))/0x3+parseInt(_0x52aa70(0x18b))/0x4*(parseInt(_0x52aa70(0x191))/0x5)+parseInt(_0x52aa70(0x18a))/0x6*(parseInt(_0x52aa70(0x18e))/0x7)+-parseInt(_0x52aa70(0x18f))/0x8+parseInt(_0x52aa70(0x195))/0x9*(-parseInt(_0x52aa70(0x190))/0xa)+-parseInt(_0x52aa70(0x192))/0xb*(-parseInt(_0x52aa70(0x193))/0xc);if(_0x26fa4f===_0x102ec6)break;else _0x18bdae['push'](_0x18bdae['shift']());}catch(_0x1e41f8){_0x18bdae['push'](_0x18bdae['shift']());}}}(a83_0x3db5,0x7c296));import{jsx as a83_0x8d65ce,jsxs as a83_0x383ab1}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a83_0x5e97(_0x374528,_0x481f1c){_0x374528=_0x374528-0x186;const _0x3db547=a83_0x3db5();let _0x5e9711=_0x3db547[_0x374528];return _0x5e9711;}export function Help(){const _0x5b50c3=a83_0x5e97,{exit:_0x160fca}=useApp();return useEffect(()=>{_0x160fca();},[_0x160fca]),a83_0x383ab1(Box,{'flexDirection':_0x5b50c3(0x18c),'marginTop':0x1,'marginBottom':0x1,'children':[a83_0x8d65ce(Box,{'children':a83_0x8d65ce(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x383ab1(Box,{'marginTop':0x1,'children':[a83_0x8d65ce(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a83_0x8d65ce(Text,{'bold':!![],'color':_0x5b50c3(0x188),'children':CLI_BIN_NAME+_0x5b50c3(0x189)}),a83_0x8d65ce(Text,{'dimColor':!![],'children':_0x5b50c3(0x18d)})]})]});}
@@ -1 +1 @@
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
+ const a84_0x3b206c=a84_0x35eb;function a84_0x35eb(_0x1bb00a,_0x2fe724){_0x1bb00a=_0x1bb00a-0x173;const _0x4d9c32=a84_0x4d9c();let _0x35eba0=_0x4d9c32[_0x1bb00a];return _0x35eba0;}(function(_0x2b5191,_0x20970b){const _0x385cee=a84_0x35eb,_0x51c07a=_0x2b5191();while(!![]){try{const _0x33ca4c=parseInt(_0x385cee(0x183))/0x1*(-parseInt(_0x385cee(0x17d))/0x2)+parseInt(_0x385cee(0x189))/0x3*(-parseInt(_0x385cee(0x18c))/0x4)+parseInt(_0x385cee(0x188))/0x5*(parseInt(_0x385cee(0x187))/0x6)+parseInt(_0x385cee(0x17a))/0x7+parseInt(_0x385cee(0x17e))/0x8+-parseInt(_0x385cee(0x177))/0x9+parseInt(_0x385cee(0x181))/0xa*(parseInt(_0x385cee(0x17c))/0xb);if(_0x33ca4c===_0x20970b)break;else _0x51c07a['push'](_0x51c07a['shift']());}catch(_0x4c7b35){_0x51c07a['push'](_0x51c07a['shift']());}}}(a84_0x4d9c,0x55f41));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a84_0x5bea93}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a84_0x4d9c(){const _0x18627a=['519834LLjwgZ','npx','22RpTbpg','540146PkFCIb','4841360wfIcyT','pipe','exit\x20','3043980moEfer','status','2IonRLx','skipNpxSkillsEnvSuffix','skills','stdio','78XcbXTR','121585VAzWLK','54qawwXL','toString','trim','89528FhyiEs','log','join','stdout','add','2783358Rqkpay','unknown','stderr'];a84_0x4d9c=function(){return _0x18627a;};return a84_0x4d9c();}export const LOVRABET_SKILL_SOURCE=a84_0x5bea93;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a84_0x3b206c(0x184)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x204fb9,_0xd4674a=LOVRABET_SKILL_SOURCE,_0x279357){const _0x3b334e=a84_0x3b206c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20c774=_0x279357?.[_0x3b334e(0x186)]??'inherit',_0x5aee8a=resolveNpmBin(_0x3b334e(0x17b)),_0xa24a76=[_0x3b334e(0x185),_0x3b334e(0x176),_0xd4674a,'-g','-y'],_0x6d59f0=[_0x5aee8a,..._0xa24a76][_0x3b334e(0x174)]('\x20');console[_0x3b334e(0x173)]('*\x20'+_0x6d59f0);const _0x3894bc=spawnSync(_0x5aee8a,_0xa24a76,{'cwd':_0x204fb9,'stdio':_0x20c774,'env':process.env,'shell':![]});if(_0x3894bc[_0x3b334e(0x182)]===0x0)return{'ok':!![],'status':0x0};let _0x4c03a0=_0x3b334e(0x180)+(_0x3894bc[_0x3b334e(0x182)]??_0x3b334e(0x178));if(_0x20c774===_0x3b334e(0x17f)){const _0x19ada8=_0x3894bc[_0x3b334e(0x179)]?_0x3894bc[_0x3b334e(0x179)][_0x3b334e(0x18a)]()[_0x3b334e(0x18b)]():'',_0x19411=_0x3894bc[_0x3b334e(0x175)]?_0x3894bc[_0x3b334e(0x175)]['toString']()[_0x3b334e(0x18b)]():'';if(_0x19ada8)_0x4c03a0=_0x19ada8;else{if(_0x19411)_0x4c03a0=_0x19411;}}return{'ok':![],'status':_0x3894bc[_0x3b334e(0x182)]??null,'error':_0x4c03a0};}
@@ -1 +1 @@
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
+ const a85_0x221f42=a85_0x867d;(function(_0x528384,_0x276448){const _0x300db5=a85_0x867d,_0x534672=_0x528384();while(!![]){try{const _0x1ceebc=-parseInt(_0x300db5(0x1c1))/0x1+parseInt(_0x300db5(0x1ca))/0x2+parseInt(_0x300db5(0x1cd))/0x3+-parseInt(_0x300db5(0x1ba))/0x4*(-parseInt(_0x300db5(0x1bb))/0x5)+-parseInt(_0x300db5(0x1c0))/0x6+parseInt(_0x300db5(0x1c6))/0x7+-parseInt(_0x300db5(0x1c2))/0x8*(parseInt(_0x300db5(0x1c5))/0x9);if(_0x1ceebc===_0x276448)break;else _0x534672['push'](_0x534672['shift']());}catch(_0x498bbe){_0x534672['push'](_0x534672['shift']());}}}(a85_0x44d8,0x5f891));function a85_0x44d8(){const _0x141509=['.next','node_modules','1126162fPYlVn','.svn','.DS_Store','1308615HNnBYK','.turbo','37024riynxH','25HkLyEC','.hg','build','coverage','SKILL.md','3957528vcwuuZ','187471EHrhVQ','1751536veaLLt','lovrabet.skill.json','.git','9RUOQWN','2882236ThsIIx','dist'];a85_0x44d8=function(){return _0x141509;};return a85_0x44d8();}export const METADATA_FILE=a85_0x221f42(0x1c3);export const SKILL_FILE=a85_0x221f42(0x1bf);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0x221f42(0x1cc)]);function a85_0x867d(_0xa8dc31,_0x3bc80a){_0xa8dc31=_0xa8dc31-0x1b9;const _0x44d85e=a85_0x44d8();let _0x867d39=_0x44d85e[_0xa8dc31];return _0x867d39;}export const IGNORED_DIR_NAMES=new Set([a85_0x221f42(0x1c4),a85_0x221f42(0x1bc),a85_0x221f42(0x1cb),a85_0x221f42(0x1c9),a85_0x221f42(0x1c8),a85_0x221f42(0x1c7),a85_0x221f42(0x1bd),a85_0x221f42(0x1be),a85_0x221f42(0x1b9),'.cache']);
@@ -1 +1 @@
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
+ (function(_0x1ddce1,_0x4698df){const _0x4caaf0=a86_0x3291,_0x57c562=_0x1ddce1();while(!![]){try{const _0x2de712=-parseInt(_0x4caaf0(0x12b))/0x1+-parseInt(_0x4caaf0(0x12c))/0x2+-parseInt(_0x4caaf0(0x117))/0x3*(-parseInt(_0x4caaf0(0x122))/0x4)+parseInt(_0x4caaf0(0x11d))/0x5*(-parseInt(_0x4caaf0(0x129))/0x6)+parseInt(_0x4caaf0(0x11c))/0x7*(-parseInt(_0x4caaf0(0x11b))/0x8)+-parseInt(_0x4caaf0(0x11a))/0x9*(parseInt(_0x4caaf0(0x12a))/0xa)+parseInt(_0x4caaf0(0x118))/0xb;if(_0x2de712===_0x4698df)break;else _0x57c562['push'](_0x57c562['shift']());}catch(_0x4f6b7c){_0x57c562['push'](_0x57c562['shift']());}}}(a86_0x498f,0x82312));function a86_0x498f(){const _0xb5c222=['1446sXduJL','3080sepwZB','98965NQHJbQ','532290aiTNRC','3fZDwwb','24173248ENfKQJ','utf8','30708VqcHcT','5694032Yvhlhq','7GaiPrK','6185zdaekk','startsWith','stringify','Unsafe\x20Skill\x20file\x20path:\x20','.tmp','3046300foqscL','split','from','validation','endsWith','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','isSymbolicLink'];a86_0x498f=function(){return _0xb5c222;};return a86_0x498f();}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(_0x12eb9a,_0x4d33eb){const _0x42199e=a86_0x3291,_0x150ab8=normalizeSkillRelativePath(_0x4d33eb),_0x5c9297=realOrResolved(_0x12eb9a),_0x4a7d36=resolve(_0x5c9297,..._0x150ab8[_0x42199e(0x123)]('/'));if(!isPathInside(_0x4a7d36,_0x5c9297))throw CliErrors['validation'](_0x42199e(0x120)+_0x4d33eb);return ensureNoSymlinkInManagedPath(_0x5c9297,_0x150ab8),_0x4a7d36;}export function ensureNoSymlinkInManagedPath(_0x2d3416,_0x321a24){const _0x677016=a86_0x3291;let _0x3d16b1=_0x2d3416;for(const _0x30f92b of _0x321a24['split']('/')){_0x3d16b1=resolve(_0x3d16b1,_0x30f92b);const _0x38d4cd=lstatIfPresent(_0x3d16b1);if(_0x38d4cd?.[_0x677016(0x128)]())throw CliErrors[_0x677016(0x125)](_0x677016(0x127)+_0x321a24);}}export function isDanglingSymlink(_0x5d8f43){const _0x3720a5=a86_0x3291;try{return lstatSync(_0x5d8f43)[_0x3720a5(0x128)]();}catch{return![];}}export function resolveSymlinkTarget(_0x3b213b){const _0x53a047=readlinkSync(_0x3b213b);return isAbsolute(_0x53a047)?_0x53a047:resolve(dirname(_0x3b213b),_0x53a047);}export function isPathInside(_0x11c560,_0x203fd9){const _0x4970c9=a86_0x3291,_0x260824=_0x11c560['endsWith'](sep)?_0x11c560:''+_0x11c560+sep,_0x1d5863=_0x203fd9[_0x4970c9(0x126)](sep)?_0x203fd9:''+_0x203fd9+sep;return _0x11c560===_0x203fd9||_0x260824[_0x4970c9(0x11e)](_0x1d5863);}export function realOrResolved(_0x22d245){try{return realpathSync(_0x22d245);}catch{return resolve(_0x22d245);}}function a86_0x3291(_0x1dc469,_0xed88d3){_0x1dc469=_0x1dc469-0x117;const _0x498ff2=a86_0x498f();let _0x32919a=_0x498ff2[_0x1dc469];return _0x32919a;}export function lstatIfPresent(_0x1db4d6){try{return lstatSync(_0x1db4d6);}catch{return undefined;}}export function writeTextAtomic(_0x2c32b1,_0x393bda,_0x474cec){const _0x4e5364=a86_0x3291;writeBytesAtomic(_0x2c32b1,Buffer[_0x4e5364(0x124)](_0x393bda,_0x4e5364(0x119)),_0x474cec);}export function writeBytesAtomic(_0x4d249f,_0xfaba17,_0x3e9980){const _0x41a606=a86_0x3291,_0xd637bc=_0x4d249f+_0x41a606(0x121);try{writeFileSync(_0xd637bc,_0xfaba17,{'mode':_0x3e9980}),renameSync(_0xd637bc,_0x4d249f);}catch(_0x62da6a){try{rmSync(_0xd637bc,{'force':!![]});}catch{}throw _0x62da6a;}}export function writeJsonAtomic(_0x59f79e,_0x1fe88d){const _0x373d39=a86_0x3291;writeTextAtomic(_0x59f79e,JSON[_0x373d39(0x11f)](_0x1fe88d,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
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
+ (function(_0x5e4153,_0x25729e){const _0x5da62d=a87_0x23e8,_0x53bf33=_0x5e4153();while(!![]){try{const _0x267a8b=parseInt(_0x5da62d(0xe6))/0x1*(parseInt(_0x5da62d(0xe5))/0x2)+parseInt(_0x5da62d(0xe4))/0x3+parseInt(_0x5da62d(0xe0))/0x4+-parseInt(_0x5da62d(0xd8))/0x5+parseInt(_0x5da62d(0xdd))/0x6+-parseInt(_0x5da62d(0xe2))/0x7*(-parseInt(_0x5da62d(0xe3))/0x8)+parseInt(_0x5da62d(0xdf))/0x9*(-parseInt(_0x5da62d(0xdb))/0xa);if(_0x267a8b===_0x25729e)break;else _0x53bf33['push'](_0x53bf33['shift']());}catch(_0x4d3188){_0x53bf33['push'](_0x53bf33['shift']());}}}(a87_0x1700,0x515f4));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a87_0x1700(){const _0x44ebff=['740470xfnjvb','update','1629504AyBUFF','digest','81WVlslZ','1279720LPCHcr','hex','343QpXlZr','20208bTlHku','533670qKjzMg','324GfHJgf','2633TysizU','size','1600005fzmjEy','sha256','path'];a87_0x1700=function(){return _0x44ebff;};return a87_0x1700();}export function contentHash(_0x3833a7){const _0x3a7de2=a87_0x23e8;return createHash(_0x3a7de2(0xd9))[_0x3a7de2(0xdc)](_0x3833a7)[_0x3a7de2(0xde)](_0x3a7de2(0xe1));}export function fileHash(_0x1e2116){return bufferSha256(fileContent(_0x1e2116));}function a87_0x23e8(_0x201e92,_0x22f547){_0x201e92=_0x201e92-0xd7;const _0x170022=a87_0x1700();let _0x23e83d=_0x170022[_0x201e92];return _0x23e83d;}export function bufferSha256(_0x56b8d9){const _0xfc13e8=a87_0x23e8;return createHash(_0xfc13e8(0xd9))[_0xfc13e8(0xdc)](_0x56b8d9)['digest']('hex');}export function fileTreeHash(_0x502e12){const _0x5de420=a87_0x23e8,_0x23286a=createHash(_0x5de420(0xd9));for(const _0x1dd654 of normalizeManifestFiles(_0x502e12)){_0x23286a[_0x5de420(0xdc)](_0x1dd654[_0x5de420(0xda)]),_0x23286a[_0x5de420(0xdc)]('\x00'),_0x23286a[_0x5de420(0xdc)](_0x1dd654[_0x5de420(0xd9)]),_0x23286a[_0x5de420(0xdc)]('\x00'),_0x23286a['update'](String(_0x1dd654[_0x5de420(0xd7)])),_0x23286a[_0x5de420(0xdc)]('\x00');}return _0x23286a['digest'](_0x5de420(0xe1));}
@@ -1 +1 @@
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
+ (function(_0x12146a,_0x8d63ea){const _0x5cf28f=a88_0x3724,_0x4fc548=_0x12146a();while(!![]){try{const _0xf532b1=parseInt(_0x5cf28f(0x10d))/0x1+parseInt(_0x5cf28f(0x111))/0x2*(parseInt(_0x5cf28f(0x10e))/0x3)+parseInt(_0x5cf28f(0xff))/0x4+-parseInt(_0x5cf28f(0x109))/0x5*(-parseInt(_0x5cf28f(0xec))/0x6)+parseInt(_0x5cf28f(0x107))/0x7+parseInt(_0x5cf28f(0xee))/0x8*(parseInt(_0x5cf28f(0xf1))/0x9)+parseInt(_0x5cf28f(0xe0))/0xa*(-parseInt(_0x5cf28f(0xfe))/0xb);if(_0xf532b1===_0x8d63ea)break;else _0x4fc548['push'](_0x4fc548['shift']());}catch(_0x45ec02){_0x4fc548['push'](_0x4fc548['shift']());}}}(a88_0x1f86,0x9efc8));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a88_0x395faf from'fs-extra';import{CliErrors}from'../../errors.js';function a88_0x3724(_0x3bb5b4,_0xe738a4){_0x3bb5b4=_0x3bb5b4-0xe0;const _0x1f86dd=a88_0x1f86();let _0x372463=_0x1f86dd[_0x3bb5b4];return _0x372463;}function a88_0x1f86(){const _0x3786b9=['push','env','isSymbolicLink','company','personal','dir','isDirectory','has','not-managed-symlink','name','agentsSkillsDir','363WlStbx','2303620vdMXoY','claudeSkillsDir','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','removed','builtin','accessKey','activeSkillCodes','7098924hOrHGj','managedRoot','10AIrGxI','contentHash','metadata-mismatch','updated','1272771zPUzTL','265854pueOqJ','scope','validation','16oGuqFk','trim','1267470VMBmdj','pruneSkillCodes','values','slice','map','created','appCode','scopes','set','filter','skill','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','1836156seZMYC','skillCode','1040088SdAMcw','get','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','45OMCLga','skipped'];a88_0x1f86=function(){return _0x3786b9;};return a88_0x1f86();}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_0x395faf;export function linkEffectiveRuntimeSkills(_0x2b5697,_0x4ba351,_0x1ab597={}){const _0x1b1a63=a88_0x3724,_0x174fef=new Map();for(const _0x1259a8 of _0x2b5697){const _0x4008ef=_0x1259a8[_0x1b1a63(0xea)][_0x1b1a63(0xed)];if(!_0x4008ef)continue;const _0x3f5028=_0x174fef[_0x1b1a63(0xef)](_0x4008ef);(!_0x3f5028||_0x1259a8['scope']===_0x1b1a63(0xf7))&&_0x174fef[_0x1b1a63(0xe8)](_0x4008ef,_0x1259a8);}const _0x1c6823=[],_0x2a7cb8=resolveSkillSyncPaths(_0x1ab597);for(const _0x4f0f7d of _0x174fef[_0x1b1a63(0xe2)]()){const _0x23c4bd=requireSkillCode(_0x4f0f7d['skill']),_0x248341=_0x4ba351+'--'+_0x23c4bd;for(const _0x5d80d8 of[_0x2a7cb8['agentsSkillsDir'],_0x2a7cb8[_0x1b1a63(0x100)]]){_0x1c6823[_0x1b1a63(0xf3)](ensureManagedSymlink(resolve(_0x5d80d8,_0x248341),_0x4f0f7d['dir'],_0x2a7cb8[_0x1b1a63(0x108)]));}}return _0x1c6823;}export function pruneStaleRuntimeSkillLinks(_0x3f224c,_0x5d1710,_0x6e7ddd={},_0x5808b9){const _0x4a28f6=a88_0x3724,_0x552519=resolveSkillSyncPaths(_0x6e7ddd),_0x36b085=new Set([..._0x5d1710][_0x4a28f6(0xe4)](_0x1b855b=>_0x1b855b[_0x4a28f6(0x112)]())[_0x4a28f6(0xe9)](Boolean)),_0x53c353=_0x5808b9?new Set([..._0x5808b9]['map'](_0x414538=>_0x414538[_0x4a28f6(0x112)]())[_0x4a28f6(0xe9)](Boolean)):undefined,_0x1de20b=[];for(const _0x19d2f4 of[_0x552519[_0x4a28f6(0xfd)],_0x552519[_0x4a28f6(0x100)]]){for(const _0x6de647 of managedAppSkillLinkPaths(_0x19d2f4,_0x3f224c)){const _0x53f879=basename(_0x6de647)[_0x4a28f6(0xe3)]((_0x3f224c+'--')['length']);if(_0x53c353&&!_0x53c353[_0x4a28f6(0xfa)](_0x53f879))continue;if(_0x36b085['has'](_0x53f879))continue;_0x1de20b[_0x4a28f6(0xf3)](removeManagedSkillLink(_0x6de647,_0x552519[_0x4a28f6(0x108)]));}}return _0x1de20b;}export function pruneStaleRuntimeSkillCache(_0x4d3426,_0x256782={}){const _0x816658=a88_0x3724,_0x324940=new Set([..._0x4d3426[_0x816658(0x106)]][_0x816658(0xe4)](_0x3c0ac2=>_0x3c0ac2[_0x816658(0x112)]())['filter'](Boolean)),_0x5e71fc=_0x4d3426[_0x816658(0xe1)]?new Set([..._0x4d3426['pruneSkillCodes']][_0x816658(0xe4)](_0x1f5439=>_0x1f5439['trim']())[_0x816658(0xe9)](Boolean)):undefined,_0x3c9faa=_0x4d3426[_0x816658(0xe7)]??['personal',_0x816658(0xf6)],_0x2890ac=resolve(getRuntimeSkillCacheRoot(_0x4d3426[_0x816658(0xf4)],_0x4d3426[_0x816658(0x105)],_0x256782),safePathSegment(_0x4d3426[_0x816658(0xe6)],_0x816658(0xe6))),_0x138f43=[];for(const _0x908718 of _0x3c9faa){const _0x3351ac=resolve(_0x2890ac,_0x908718);if(!existsSync(_0x3351ac))continue;for(const _0x25a5a8 of readdirSync(_0x3351ac,{'withFileTypes':!![]})){if(!_0x25a5a8[_0x816658(0xf9)]())continue;const _0x3807ab=_0x25a5a8['name'];if(_0x5e71fc&&!_0x5e71fc[_0x816658(0xfa)](_0x3807ab))continue;if(_0x324940[_0x816658(0xfa)](_0x3807ab))continue;const _0x57019b=resolve(_0x3351ac,_0x3807ab),_0x32b209=readMetadataIfPresent(resolve(_0x57019b,METADATA_FILE));if(_0x32b209?.[_0x816658(0xe6)]!==_0x4d3426['appCode']||_0x32b209['scope']!==_0x908718||_0x32b209[_0x816658(0xed)]!==_0x3807ab){_0x138f43[_0x816658(0xf3)]({'path':_0x57019b,'action':'skipped','reason':_0x816658(0x10b)});continue;}removeSync(_0x57019b),_0x138f43[_0x816658(0xf3)]({'path':_0x57019b,'action':_0x816658(0x103)});}}return _0x138f43;}export function linkGlobalRuntimeSkills(_0xa75252,_0x502ec4={}){const _0x1e401d=a88_0x3724,_0x1fb07e=resolveSkillSyncPaths(_0x502ec4),_0x47aef2=[];for(const _0x1c213a of _0xa75252){if(_0x1c213a[_0x1e401d(0x10f)]!==_0x1e401d(0x104))throw CliErrors[_0x1e401d(0x110)]('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x1c213a[_0x1e401d(0x10f)]);const _0x386402=requireSkillCode(_0x1c213a[_0x1e401d(0xea)]),_0xc3893=copyManagedSkillDirectory(_0x1c213a[_0x1e401d(0xf8)],resolve(_0x1fb07e[_0x1e401d(0xfd)],_0x386402));_0x47aef2[_0x1e401d(0xf3)]({..._0xc3893,'contentHash':_0x1c213a['contentHash']});}return _0x47aef2;}function ensureManagedSymlink(_0x1e9d34,_0xec6a22,_0x4ada06){const _0x278a5a=a88_0x3724;mkdirSync(dirname(_0x1e9d34),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x1e9d34)||isDanglingSymlink(_0x1e9d34)){const _0x1511a3=lstatSync(_0x1e9d34);if(!_0x1511a3[_0x278a5a(0xf5)]())throw CliErrors[_0x278a5a(0x110)](_0x278a5a(0xeb)+_0x1e9d34);const _0xbf6445=resolveSymlinkTarget(_0x1e9d34);if(!isPathInside(realOrResolved(_0xbf6445),realOrResolved(_0x4ada06)))throw CliErrors[_0x278a5a(0x110)](_0x278a5a(0x101)+_0x1e9d34);if(realOrResolved(_0xbf6445)===realOrResolved(_0xec6a22))return{'path':_0x1e9d34,'target':_0xec6a22,'action':'unchanged'};return unlinkSync(_0x1e9d34),symlinkSync(_0xec6a22,_0x1e9d34,_0x278a5a(0xf8)),{'path':_0x1e9d34,'target':_0xec6a22,'action':_0x278a5a(0x10c)};}return symlinkSync(_0xec6a22,_0x1e9d34,_0x278a5a(0xf8)),{'path':_0x1e9d34,'target':_0xec6a22,'action':_0x278a5a(0xe5)};}function managedAppSkillLinkPaths(_0x46f3d9,_0x20385d){const _0x8755a=a88_0x3724;if(!existsSync(_0x46f3d9))return[];const _0x5a35ec=_0x20385d+'--';return readdirSync(_0x46f3d9,{'withFileTypes':!![]})[_0x8755a(0xe9)](_0x2a9410=>_0x2a9410[_0x8755a(0xfc)]['startsWith'](_0x5a35ec))[_0x8755a(0xe4)](_0x21d48f=>resolve(_0x46f3d9,_0x21d48f['name']));}function removeManagedSkillLink(_0x450d2b,_0x26b30e){const _0x40e87b=a88_0x3724,_0x5b3060=lstatIfPresent(_0x450d2b);if(!_0x5b3060?.[_0x40e87b(0xf5)]())return{'path':_0x450d2b,'action':_0x40e87b(0xf2),'reason':_0x40e87b(0xfb)};const _0x4c8d29=resolveSymlinkTarget(_0x450d2b);if(!isPathInside(realOrResolved(_0x4c8d29),realOrResolved(_0x26b30e)))return{'path':_0x450d2b,'action':'skipped','reason':'external-symlink'};return unlinkSync(_0x450d2b),{'path':_0x450d2b,'action':_0x40e87b(0x103)};}export function copyManagedSkillDirectory(_0x99be02,_0x203112){const _0x53660d=a88_0x3724,_0xc351ea=resolve(_0x203112,METADATA_FILE),_0x249029=existsSync(_0x203112);if(_0x249029){const _0x15405d=lstatSync(_0x203112);if(_0x15405d['isSymbolicLink']())throw CliErrors[_0x53660d(0x110)](_0x53660d(0xf0)+_0x203112);if(!_0x15405d[_0x53660d(0xf9)]())throw CliErrors[_0x53660d(0x110)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x203112);const _0x1e07df=readMetadataIfPresent(_0xc351ea);if(_0x1e07df?.['scope']!==_0x53660d(0x104))throw CliErrors[_0x53660d(0x110)](_0x53660d(0x102)+_0x203112);}ensureDirSync(dirname(_0x203112));const _0x93d7e3=_0x249029?readMetadataIfPresent(_0xc351ea)?.['contentHash']:undefined,_0x35adea=readMetadataIfPresent(resolve(_0x99be02,METADATA_FILE))?.[_0x53660d(0x10a)];return _0x249029&&removeSync(_0x203112),copySkillDirectory(_0x99be02,_0x203112),{'path':_0x203112,'target':_0x99be02,'action':!_0x249029?_0x53660d(0xe5):_0x93d7e3===_0x35adea?'unchanged':_0x53660d(0x10c)};}function copySkillDirectory(_0x24d16e,_0x592b0){copySync(_0x24d16e,_0x592b0,{'dereference':![],'overwrite':!![],'filter'(_0x10fc4f){const _0x1d5d43=a88_0x3724;if(lstatSync(_0x10fc4f)[_0x1d5d43(0xf5)]())throw CliErrors['validation']('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x10fc4f);return!![];}});}
@@ -1 +1 @@
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
+ (function(_0x415a07,_0x37b666){const _0x590e4b=a89_0x4f9a,_0x4d600d=_0x415a07();while(!![]){try{const _0x56e4da=-parseInt(_0x590e4b(0x108))/0x1*(parseInt(_0x590e4b(0xff))/0x2)+parseInt(_0x590e4b(0x106))/0x3+-parseInt(_0x590e4b(0x115))/0x4*(-parseInt(_0x590e4b(0x10c))/0x5)+parseInt(_0x590e4b(0xf6))/0x6+-parseInt(_0x590e4b(0x107))/0x7*(-parseInt(_0x590e4b(0x117))/0x8)+-parseInt(_0x590e4b(0xf8))/0x9*(parseInt(_0x590e4b(0xfe))/0xa)+-parseInt(_0x590e4b(0xfc))/0xb;if(_0x56e4da===_0x37b666)break;else _0x4d600d['push'](_0x4d600d['shift']());}catch(_0x5a97e7){_0x4d600d['push'](_0x4d600d['shift']());}}}(a89_0x8363,0xc9879));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_0x4f9a(_0x5e9ea5,_0x232c6c){_0x5e9ea5=_0x5e9ea5-0xf1;const _0x8363a9=a89_0x8363();let _0x4f9a7a=_0x8363a9[_0x5e9ea5];return _0x4f9a7a;}function a89_0x8363(){const _0x527fdc=['name','cache','values','env','isDirectory','3684924zuCRTX','120267AUCJXM','2549YziOmK','set','filter','linkedPaths','260605mdrYqc','skillCode','appCode','agentsSkillsDir','code','link','scopes','scope','sort','28mPTfLB','accessKey','424HFGGhq','dir','startsWith','tags','linkedPath','source','isSymbolicLink','skillMdPath','7057230VOvdHH','map','27HQYTts','localeCompare','has','trim','18796657VKTOZY','claudeSkillsDir','2196140bBBLyX','382jZcXmk','builtin'];a89_0x8363=function(){return _0x527fdc;};return a89_0x8363();}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x3bea04,_0x288049={}){const _0x1cf1a3=a89_0x4f9a,_0x54271d=safePathSegment(_0x3bea04[_0x1cf1a3(0x10e)],_0x1cf1a3(0x10e)),_0x258ab6=normalizeRuntimeSkillScopes(_0x3bea04[_0x1cf1a3(0x112)]),_0x451b09=new Set(_0x258ab6),_0x2919a5=_0x3bea04['code']?.[_0x1cf1a3(0xfb)](),_0x5d615f=new Map(),_0x4d4dd2=resolve(getRuntimeSkillCacheRoot(_0x3bea04[_0x1cf1a3(0x104)],_0x3bea04[_0x1cf1a3(0x116)],_0x288049),_0x54271d);for(const _0x50129e of _0x258ab6){for(const _0x16e941 of localSkillEntryDirs(resolve(_0x4d4dd2,_0x50129e))){collectLocalRuntimeSkill(_0x5d615f,_0x16e941,{'appCode':_0x54271d,'scopes':_0x451b09,'code':_0x2919a5,'source':'cache'});}}const _0xcb6552=resolveSkillSyncPaths(_0x288049);for(const _0x5d1af6 of[_0xcb6552[_0x1cf1a3(0x10f)],_0xcb6552[_0x1cf1a3(0xfd)]]){for(const _0x3b5f5d of localSkillLinkCandidates(_0x5d1af6,_0x54271d,_0x451b09)){collectLocalRuntimeSkill(_0x5d615f,_0x3b5f5d,{'appCode':_0x54271d,'scopes':_0x451b09,'code':_0x2919a5,'source':_0x1cf1a3(0x111),'linkedPath':_0x3b5f5d});}}return Array['from'](_0x5d615f[_0x1cf1a3(0x103)]())[_0x1cf1a3(0x114)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x58462d){const _0x41c61c=a89_0x4f9a;if(!existsSync(_0x58462d))return[];return readdirSync(_0x58462d,{'withFileTypes':!![]})[_0x41c61c(0x10a)](_0x224db5=>_0x224db5[_0x41c61c(0x105)]()||_0x224db5[_0x41c61c(0xf4)]())['map'](_0x110b6c=>resolve(_0x58462d,_0x110b6c[_0x41c61c(0x101)]));}function localSkillLinkCandidates(_0x433533,_0x32fcb9,_0x4083c9){const _0x31abf2=a89_0x4f9a;if(!existsSync(_0x433533))return[];const _0x1681c9=_0x32fcb9+'--';return readdirSync(_0x433533,{'withFileTypes':!![]})[_0x31abf2(0x10a)](_0x104deb=>_0x104deb[_0x31abf2(0x105)]()||_0x104deb[_0x31abf2(0xf4)]())[_0x31abf2(0x10a)](_0xd99cdb=>_0xd99cdb[_0x31abf2(0x101)][_0x31abf2(0x119)](_0x1681c9)||_0x4083c9[_0x31abf2(0xfa)](_0x31abf2(0x100)))[_0x31abf2(0xf7)](_0x1e6e6a=>resolve(_0x433533,_0x1e6e6a[_0x31abf2(0x101)]));}function collectLocalRuntimeSkill(_0x4cd70b,_0xfb69c0,_0xa423dc){const _0x41680b=a89_0x4f9a,_0x51f047=resolve(_0xfb69c0,METADATA_FILE),_0x416dc0=readMetadataIfPresent(_0x51f047);if(!_0x416dc0)return;if(_0x416dc0[_0x41680b(0x10e)]!==_0xa423dc['appCode'])return;if(!isRuntimeSkillScope(_0x416dc0[_0x41680b(0x113)])||!_0xa423dc['scopes'][_0x41680b(0xfa)](_0x416dc0['scope']))return;const _0x1305bc=_0x416dc0['skillCode']?.[_0x41680b(0xfb)]();if(!_0x1305bc)return;if(_0xa423dc[_0x41680b(0x110)]&&_0x1305bc!==_0xa423dc[_0x41680b(0x110)])return;const _0x24fe31=_0x416dc0[_0x41680b(0x113)]+':'+_0x1305bc,_0x36555b=_0xa423dc[_0x41680b(0xf2)]?[_0xa423dc['linkedPath']]:[],_0xef05a8=_0x4cd70b['get'](_0x24fe31);if(_0xef05a8){_0xa423dc[_0x41680b(0xf3)]===_0x41680b(0x102)&&(_0xef05a8[_0x41680b(0x118)]=_0xfb69c0,_0xef05a8['cacheDir']=_0xfb69c0,_0xef05a8[_0x41680b(0xf5)]=resolve(_0xfb69c0,SKILL_FILE),_0xef05a8['metadataPath']=_0x51f047);for(const _0x30c7aa of _0x36555b){!_0xef05a8[_0x41680b(0x10b)]['includes'](_0x30c7aa)&&_0xef05a8[_0x41680b(0x10b)]['push'](_0x30c7aa);}_0xef05a8[_0x41680b(0x10b)][_0x41680b(0x114)]();return;}_0x4cd70b[_0x41680b(0x109)](_0x24fe31,{..._0x416dc0,'tags':Array['isArray'](_0x416dc0[_0x41680b(0xf1)])?_0x416dc0[_0x41680b(0xf1)]:[],'scope':_0x416dc0[_0x41680b(0x113)],'source':'local','dir':_0xfb69c0,'cacheDir':_0xa423dc[_0x41680b(0xf3)]===_0x41680b(0x102)?_0xfb69c0:undefined,'skillMdPath':resolve(_0xfb69c0,SKILL_FILE),'metadataPath':_0x51f047,'linkedPaths':_0x36555b});}function compareLocalRuntimeSkills(_0x29b0bc,_0x52ee19){const _0x41e113=a89_0x4f9a,_0x5747c8={'personal':0x0,'company':0x1,'builtin':0x2};return _0x5747c8[_0x29b0bc[_0x41e113(0x113)]]-_0x5747c8[_0x52ee19[_0x41e113(0x113)]]||_0x29b0bc[_0x41e113(0x10d)][_0x41e113(0xf9)](_0x52ee19['skillCode'])||_0x29b0bc[_0x41e113(0x118)][_0x41e113(0xf9)](_0x52ee19[_0x41e113(0x118)]);}
@@ -1 +1 @@
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);}
1
+ (function(_0x1aabda,_0x3e4a82){const _0x1fdaee=a90_0x3895,_0x4f3e32=_0x1aabda();while(!![]){try{const _0xb8a78a=parseInt(_0x1fdaee(0x94))/0x1*(-parseInt(_0x1fdaee(0xae))/0x2)+-parseInt(_0x1fdaee(0xb0))/0x3+-parseInt(_0x1fdaee(0xa5))/0x4+-parseInt(_0x1fdaee(0xac))/0x5+-parseInt(_0x1fdaee(0xa9))/0x6*(-parseInt(_0x1fdaee(0x99))/0x7)+parseInt(_0x1fdaee(0xb4))/0x8+parseInt(_0x1fdaee(0xb2))/0x9;if(_0xb8a78a===_0x3e4a82)break;else _0x4f3e32['push'](_0x4f3e32['shift']());}catch(_0x20b8a9){_0x4f3e32['push'](_0x4f3e32['shift']());}}}(a90_0x4fe5,0x88724));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';function a90_0x3895(_0x55f4ca,_0x2aac3c){_0x55f4ca=_0x55f4ca-0x92;const _0x4fe51c=a90_0x4fe5();let _0x3895b5=_0x4fe51c[_0x55f4ca];return _0x3895b5;}import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x3f248b){const _0xe5d971=a90_0x3895;return _0x3f248b['bytes']??Buffer['from'](_0x3f248b[_0xe5d971(0x9c)]??'',_0xe5d971(0xa6));}export function fileText(_0x43d7c2){const _0x540e55=a90_0x3895;return fileContent(_0x43d7c2)[_0x540e55(0x9e)]('utf8');}export function normalizeLocalFiles(_0x1f21e0){const _0x5e4aa4=a90_0x3895;if(!Array[_0x5e4aa4(0xab)](_0x1f21e0)||_0x1f21e0[_0x5e4aa4(0xb3)]===0x0)return[];const _0x26551a=new Map();for(const _0x49d44f of _0x1f21e0){if(!_0x49d44f||typeof _0x49d44f!==_0x5e4aa4(0xa0)||typeof _0x49d44f['path']!=='string')throw CliErrors[_0x5e4aa4(0xba)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x22f95f=normalizeSkillRelativePath(_0x49d44f['path']);if(_0x26551a[_0x5e4aa4(0x98)](_0x22f95f))throw CliErrors[_0x5e4aa4(0xba)](_0x5e4aa4(0x92)+_0x22f95f);if(_0x49d44f[_0x5e4aa4(0xb1)]!==undefined&&!Buffer[_0x5e4aa4(0xb9)](_0x49d44f[_0x5e4aa4(0xb1)]))throw CliErrors[_0x5e4aa4(0xba)](_0x5e4aa4(0xa4)+_0x22f95f);if(_0x49d44f[_0x5e4aa4(0xb1)]===undefined&&typeof _0x49d44f[_0x5e4aa4(0x9c)]!=='string')throw CliErrors[_0x5e4aa4(0xba)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x22f95f);const _0x590193=fileContent(_0x49d44f);_0x26551a[_0x5e4aa4(0xbb)](_0x22f95f,{'path':_0x22f95f,'bytes':_0x590193});}return Array[_0x5e4aa4(0x97)](_0x26551a[_0x5e4aa4(0x9d)]())[_0x5e4aa4(0xaf)](compareSkillFiles);}export function normalizeManifestFiles(_0x2d811f){const _0x3b7238=a90_0x3895;if(!Array[_0x3b7238(0xab)](_0x2d811f)||_0x2d811f[_0x3b7238(0xb3)]===0x0)return[];const _0x3aa5df=new Map();for(const _0x37b344 of _0x2d811f){if(!_0x37b344||typeof _0x37b344!==_0x3b7238(0xa0)||typeof _0x37b344['path']!=='string')throw CliErrors[_0x3b7238(0xba)](_0x3b7238(0xb6));const _0x3ecff0=normalizeSkillRelativePath(_0x37b344[_0x3b7238(0xa1)]);if(_0x3aa5df[_0x3b7238(0x98)](_0x3ecff0))throw CliErrors[_0x3b7238(0xba)](_0x3b7238(0x92)+_0x3ecff0);if(!isSha256Hex(_0x37b344['sha256']))throw CliErrors[_0x3b7238(0xba)](_0x3b7238(0xaa)+_0x3ecff0);if(!Number[_0x3b7238(0x9a)](_0x37b344['size'])||_0x37b344[_0x3b7238(0xb5)]<0x0)throw CliErrors[_0x3b7238(0xba)](_0x3b7238(0xa7)+_0x3ecff0);_0x3aa5df['set'](_0x3ecff0,{'path':_0x3ecff0,'sha256':_0x37b344['sha256']['toLowerCase'](),'size':_0x37b344['size']});}return Array[_0x3b7238(0x97)](_0x3aa5df[_0x3b7238(0x9d)]())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0x5031d3){const _0x279198=realpathSync(_0x5031d3),_0x3bfe8f=[];function _0x2bdfec(_0x1f6c2a){const _0x18f2fd=a90_0x3895,_0x51fb2d=readdirSync(_0x1f6c2a,{'withFileTypes':!![]})[_0x18f2fd(0xaf)]((_0x3989b0,_0x4b82e9)=>_0x3989b0[_0x18f2fd(0xa3)]['localeCompare'](_0x4b82e9[_0x18f2fd(0xa3)]));for(const _0x534336 of _0x51fb2d){if(_0x534336[_0x18f2fd(0xb8)]()&&IGNORED_DIR_NAMES[_0x18f2fd(0x98)](_0x534336[_0x18f2fd(0xa3)]))continue;if(IGNORED_FILE_NAMES[_0x18f2fd(0x98)](_0x534336['name']))continue;const _0x3dc7b7=resolve(_0x1f6c2a,_0x534336['name']);if(_0x534336[_0x18f2fd(0xa8)]())throw CliErrors[_0x18f2fd(0xba)](_0x18f2fd(0xa2)+_0x3dc7b7);const _0x4a3fd3=toPosixPath(relative(_0x279198,_0x3dc7b7));if(_0x534336[_0x18f2fd(0xb8)]()){_0x2bdfec(_0x3dc7b7);continue;}if(!_0x534336['isFile']())continue;validateSkillRelativePath(_0x4a3fd3);const _0x4b32ec=readFileSync(_0x3dc7b7);_0x3bfe8f['push']({'path':_0x4a3fd3,'bytes':_0x4b32ec});}}return _0x2bdfec(_0x279198),normalizeLocalFiles(_0x3bfe8f);}export function compareSkillFiles(_0x4a05fb,_0x276c63){const _0x3a1ef6=a90_0x3895;if(_0x4a05fb[_0x3a1ef6(0xa1)]===SKILL_FILE)return _0x276c63[_0x3a1ef6(0xa1)]===SKILL_FILE?0x0:-0x1;if(_0x276c63[_0x3a1ef6(0xa1)]===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x3a1ef6(0x97)](_0x4a05fb[_0x3a1ef6(0xa1)],_0x3a1ef6(0xa6)),Buffer[_0x3a1ef6(0x97)](_0x276c63[_0x3a1ef6(0xa1)],_0x3a1ef6(0xa6)));}function a90_0x4fe5(){const _0x560741=['isSymbolicLink','607242EexRce','Skill\x20file\x20sha256\x20is\x20invalid:\x20','isArray','4789125PMBWsR','split','2192jpvBxD','sort','271029MzeLHh','bytes','20074626YrhCTj','length','5252728PkkEww','size','Skill\x20file\x20path\x20must\x20be\x20text.','Unsafe\x20Skill\x20file\x20path:\x20','isDirectory','isBuffer','validation','set','Duplicate\x20Skill\x20file\x20path:\x20','startsWith','381MhsvWk','includes','string','from','has','7PHLApm','isSafeInteger','trim','content','values','toString','test','object','path','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','name','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','3854736PPspHg','utf8','Skill\x20file\x20size\x20is\x20invalid:\x20'];a90_0x4fe5=function(){return _0x560741;};return a90_0x4fe5();}export function normalizeSkillRelativePath(_0x34c08e){const _0x2676b9=a90_0x3895,_0x29c451=toPosixPath(_0x34c08e[_0x2676b9(0x9b)]());return validateSkillRelativePath(_0x29c451),_0x29c451;}export function validateSkillRelativePath(_0x40889e){const _0x4c243a=a90_0x3895;if(!_0x40889e||_0x40889e[_0x4c243a(0x93)]('/')||_0x40889e[_0x4c243a(0x95)]('//'))throw CliErrors[_0x4c243a(0xba)](_0x4c243a(0xb7)+_0x40889e);for(const _0x32b611 of _0x40889e[_0x4c243a(0xad)]('/')){if(!_0x32b611||_0x32b611==='.'||_0x32b611==='..')throw CliErrors[_0x4c243a(0xba)](_0x4c243a(0xb7)+_0x40889e);}}export function toPosixPath(_0x3dc640){return _0x3dc640['replace'](/\\/g,'/');}export function isSha256Hex(_0x54c0ca){const _0x233528=a90_0x3895;return typeof _0x54c0ca===_0x233528(0x96)&&/^[a-fA-F0-9]{64}$/[_0x233528(0x9f)](_0x54c0ca);}