@lovrabet/lovrabet-cli 2.1.6-beta.1 → 2.1.6-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 +1 -1
@@ -1 +1 @@
1
- function a74_0x11af(_0x1be4e6,_0x1ef60d){_0x1be4e6=_0x1be4e6-0x1ec;const _0x78a834=a74_0x78a8();let _0x11af41=_0x78a834[_0x1be4e6];return _0x11af41;}(function(_0x447f9c,_0x1b0519){const _0x3ad02f=a74_0x11af,_0x14931a=_0x447f9c();while(!![]){try{const _0x4e8096=parseInt(_0x3ad02f(0x1f1))/0x1*(-parseInt(_0x3ad02f(0x1fa))/0x2)+parseInt(_0x3ad02f(0x1ed))/0x3*(-parseInt(_0x3ad02f(0x1ec))/0x4)+-parseInt(_0x3ad02f(0x1f5))/0x5+-parseInt(_0x3ad02f(0x1f8))/0x6+-parseInt(_0x3ad02f(0x1f6))/0x7+parseInt(_0x3ad02f(0x1f9))/0x8*(-parseInt(_0x3ad02f(0x1fc))/0x9)+parseInt(_0x3ad02f(0x1fb))/0xa;if(_0x4e8096===_0x1b0519)break;else _0x14931a['push'](_0x14931a['shift']());}catch(_0x247b6a){_0x14931a['push'](_0x14931a['shift']());}}}(a74_0x78a8,0x1f6bf));function a74_0x78a8(){const _0x3e8456=['214234WFpSxN','pretty','error','update','1209695KGZXKD','1548344SLRRRW','_notice','175836aSsKuf','8npWAcj','2NtBjwy','9394100CtacWE','145431OfkxPe','4fDUiZB','263631zyiXCI','message','url','format'];a74_0x78a8=function(){return _0x3e8456;};return a74_0x78a8();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x43fceb,_0x1c4a56){const _0x2628ac=a74_0x11af,_0x9ce5d2=_0x43fceb[_0x2628ac(0x1f7)],{_notice:_0x3f341d,..._0x53de16}=_0x43fceb;void _0x3f341d,baseFormatOutput(_0x53de16,_0x1c4a56),_0x1c4a56[_0x2628ac(0x1f0)]===_0x2628ac(0x1f2)&&printPrettyNotice(_0x9ce5d2);}function printPrettyNotice(_0x189025){const _0x5ce9c6=a74_0x11af;if(!_0x189025?.[_0x5ce9c6(0x1f4)])return;console[_0x5ce9c6(0x1f3)](_0x189025[_0x5ce9c6(0x1f4)][_0x5ce9c6(0x1ee)]+'\x20('+_0x189025['update'][_0x5ce9c6(0x1ef)]+')');}
1
+ (function(_0x3a9dfa,_0x2345ba){const _0x5763dd=a74_0x381d,_0x2a24d4=_0x3a9dfa();while(!![]){try{const _0x1dcaaf=parseInt(_0x5763dd(0x1ed))/0x1*(parseInt(_0x5763dd(0x1f3))/0x2)+-parseInt(_0x5763dd(0x1e6))/0x3+-parseInt(_0x5763dd(0x1e9))/0x4*(-parseInt(_0x5763dd(0x1f4))/0x5)+-parseInt(_0x5763dd(0x1f0))/0x6*(parseInt(_0x5763dd(0x1ee))/0x7)+-parseInt(_0x5763dd(0x1f5))/0x8+parseInt(_0x5763dd(0x1e5))/0x9*(parseInt(_0x5763dd(0x1e8))/0xa)+-parseInt(_0x5763dd(0x1f1))/0xb*(-parseInt(_0x5763dd(0x1f2))/0xc);if(_0x1dcaaf===_0x2345ba)break;else _0x2a24d4['push'](_0x2a24d4['shift']());}catch(_0x42232a){_0x2a24d4['push'](_0x2a24d4['shift']());}}}(a74_0x18a4,0xf2e98));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a74_0x18a4(){const _0x392c98=['url','18342SQezlI','22957GKgiyz','21228LBXQcf','6250DDVwkJ','725fAaQcH','12573328cIOJdL','error','9aWuAbD','4672821EWUesW','message','13123390XVXgHP','8780dSqcbU','pretty','_notice','update','1eKgcnV','2751sgpwir'];a74_0x18a4=function(){return _0x392c98;};return a74_0x18a4();}function a74_0x381d(_0x459876,_0x2b4911){_0x459876=_0x459876-0x1e5;const _0x18a478=a74_0x18a4();let _0x381ddf=_0x18a478[_0x459876];return _0x381ddf;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x3961a7,_0x1ee4d9){const _0x19aaab=a74_0x381d,_0x52c507=_0x3961a7[_0x19aaab(0x1eb)],{_notice:_0x2515cf,..._0x130843}=_0x3961a7;void _0x2515cf,baseFormatOutput(_0x130843,_0x1ee4d9),_0x1ee4d9['format']===_0x19aaab(0x1ea)&&printPrettyNotice(_0x52c507);}function printPrettyNotice(_0x31da90){const _0x3cfa26=a74_0x381d;if(!_0x31da90?.['update'])return;console[_0x3cfa26(0x1f6)](_0x31da90[_0x3cfa26(0x1ec)][_0x3cfa26(0x1e7)]+'\x20('+_0x31da90[_0x3cfa26(0x1ec)][_0x3cfa26(0x1ef)]+')');}
@@ -1 +1 @@
1
- (function(_0x36d561,_0x3a7f4e){const _0x2bc34b=a75_0x4b13,_0x5f2b20=_0x36d561();while(!![]){try{const _0x42e76e=parseInt(_0x2bc34b(0x77))/0x1+parseInt(_0x2bc34b(0x76))/0x2+parseInt(_0x2bc34b(0x8d))/0x3*(parseInt(_0x2bc34b(0x6f))/0x4)+-parseInt(_0x2bc34b(0x86))/0x5+-parseInt(_0x2bc34b(0x7e))/0x6+-parseInt(_0x2bc34b(0x84))/0x7*(parseInt(_0x2bc34b(0x8f))/0x8)+parseInt(_0x2bc34b(0x8e))/0x9*(-parseInt(_0x2bc34b(0x7a))/0xa);if(_0x42e76e===_0x3a7f4e)break;else _0x5f2b20['push'](_0x5f2b20['shift']());}catch(_0x14a61b){_0x5f2b20['push'](_0x5f2b20['shift']());}}}(a75_0x452b,0xc4c75));function toKebab(_0x4f629b){const _0x2c5322=a75_0x4b13;return _0x4f629b[_0x2c5322(0x7c)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x1bb1cd,_0x4c7d0c)=>'-'+_0x4c7d0c['toLowerCase']())[_0x2c5322(0x7c)](/([a-z0-9])([A-Z])/g,(_0x1ccfe6,_0x455c1f,_0x3cd4c2)=>_0x455c1f+'-'+_0x3cd4c2)[_0x2c5322(0x81)]();}function buildKnownFlags(_0x147c5a){const _0x954ff0=a75_0x4b13,_0x407f10=new Set();for(const _0x387269 of _0x147c5a){_0x407f10[_0x954ff0(0x7b)](_0x387269[_0x954ff0(0x72)]),_0x407f10[_0x954ff0(0x7b)](toCamelCase(_0x387269[_0x954ff0(0x72)]));}for(const _0x3d6859 of['dry-run',_0x954ff0(0x79),_0x954ff0(0x6e),_0x954ff0(0x91)]){_0x407f10[_0x954ff0(0x7b)](_0x3d6859);}for(const _0x25b1cb of[_0x954ff0(0x82),_0x954ff0(0x85),'appcode',_0x954ff0(0x90),_0x954ff0(0x71),_0x954ff0(0x6c),'ci','global',_0x954ff0(0x8a)]){_0x407f10[_0x954ff0(0x7b)](_0x25b1cb);}return _0x407f10;}function a75_0x4b13(_0x1a6a22,_0x388d6d){_0x1a6a22=_0x1a6a22-0x6b;const _0x452b1e=a75_0x452b();let _0x4b137c=_0x452b1e[_0x1a6a22];return _0x4b137c;}function buildFlagTypeMap(_0x54397c){const _0x53daf6=a75_0x4b13,_0x365a5c=new Map();for(const _0x58e95a of _0x54397c){_0x365a5c[_0x53daf6(0x73)](_0x58e95a[_0x53daf6(0x72)],_0x58e95a[_0x53daf6(0x87)]),_0x365a5c[_0x53daf6(0x73)](toCamelCase(_0x58e95a[_0x53daf6(0x72)]),_0x58e95a[_0x53daf6(0x87)]);}return _0x365a5c;}function toCamelCase(_0x353790){const _0x21dcf5=a75_0x4b13;return _0x353790[_0x21dcf5(0x7c)](/-([a-z])/g,(_0x3206c7,_0x550278)=>_0x550278['toUpperCase']());}function aliasHandler(_0x231be9,_0x53779e){const _0x167312=a75_0x4b13,_0x45d9d1=[];for(const _0x3001ab of Object[_0x167312(0x80)](_0x231be9)){if(_0x53779e[_0x167312(0x74)](_0x3001ab))continue;const _0x2d2a1c=toKebab(_0x3001ab);_0x2d2a1c!==_0x3001ab&&_0x53779e[_0x167312(0x74)](_0x2d2a1c)&&_0x45d9d1[_0x167312(0x6b)]({'original':_0x3001ab,'corrected':_0x2d2a1c,'handler':_0x167312(0x8b)});}return _0x45d9d1;}function stickyHandler(_0x327720,_0x128505,_0x453e3d){const _0x55fb6a=a75_0x4b13,_0x3e63f2=[];for(const [_0x19337b,_0x5950a9]of Object[_0x55fb6a(0x7f)](_0x327720)){if(_0x5950a9!==!![])continue;for(let _0x48c101=_0x19337b[_0x55fb6a(0x8c)]-0x1;_0x48c101>0x0;_0x48c101--){const _0x86ed9a=_0x19337b[_0x55fb6a(0x7d)](0x0,_0x48c101),_0x175882=_0x19337b[_0x55fb6a(0x7d)](_0x48c101),_0xaad403=toKebab(_0x86ed9a),_0x3ba0bd=toCamelCase(_0x86ed9a),_0xd4b8e1=_0x128505[_0x55fb6a(0x74)](_0x86ed9a)?_0x86ed9a:_0x128505[_0x55fb6a(0x74)](_0xaad403)?_0xaad403:_0x128505[_0x55fb6a(0x74)](_0x3ba0bd)?_0x3ba0bd:null;if(!_0xd4b8e1)continue;const _0x33f652=_0x453e3d[_0x55fb6a(0x6d)](_0xd4b8e1)??_0x55fb6a(0x88);let _0x45fcdc;if(_0x33f652===_0x55fb6a(0x78)){const _0x59e3ee=Number(_0x175882);if(isNaN(_0x59e3ee)||_0x175882==='')continue;_0x45fcdc=_0x59e3ee;}else{if(_0x33f652==='boolean')continue;else{if(_0x175882==='')continue;_0x45fcdc=_0x175882;}}_0x3e63f2[_0x55fb6a(0x6b)]({'original':_0x19337b,'corrected':_0xd4b8e1+'='+_0x45fcdc,'handler':_0x55fb6a(0x75)});break;}}return _0x3e63f2;}export function correctFlags(_0x1fc58d,_0x3258cd){const _0x210e65=a75_0x4b13,_0x3c94f4=buildKnownFlags(_0x3258cd),_0x2fce78=buildFlagTypeMap(_0x3258cd),_0x597f0a=aliasHandler(_0x1fc58d,_0x3c94f4),_0x3e1d1f=stickyHandler(_0x1fc58d,_0x3c94f4,_0x2fce78),_0x3d4fe4=[..._0x597f0a,..._0x3e1d1f];if(_0x3d4fe4[_0x210e65(0x8c)]===0x0)return{'flags':_0x1fc58d,'corrections':[]};const _0x406f1e={..._0x1fc58d},_0x4017f3=new Set();for(const _0x2faa8c of _0x597f0a){_0x406f1e[_0x2faa8c[_0x210e65(0x70)]]=_0x1fc58d[_0x2faa8c[_0x210e65(0x83)]],_0x4017f3['add'](_0x2faa8c[_0x210e65(0x83)]);}for(const _0x3b10b7 of _0x3e1d1f){const _0xa4b637=_0x3b10b7[_0x210e65(0x70)][_0x210e65(0x89)]('='),_0x2356df=_0x3b10b7['corrected'][_0x210e65(0x7d)](0x0,_0xa4b637),_0x45255a=_0x3b10b7[_0x210e65(0x70)]['slice'](_0xa4b637+0x1),_0x5188f9=_0x2fce78[_0x210e65(0x6d)](_0x2356df)??_0x210e65(0x88);_0x5188f9===_0x210e65(0x78)?_0x406f1e[_0x2356df]=Number(_0x45255a):_0x406f1e[_0x2356df]=_0x45255a,_0x4017f3[_0x210e65(0x7b)](_0x3b10b7[_0x210e65(0x83)]);}for(const _0x591a5e of _0x4017f3){delete _0x406f1e[_0x591a5e];}return{'flags':_0x406f1e,'corrections':_0x3d4fe4};}function a75_0x452b(){const _0x5518bf=['set','has','sticky','1624780oVawTN','1528185QUufvy','number','dryRun','770UHLhRV','add','replace','slice','853932zaaUBn','entries','keys','toLowerCase','help','original','7WWoaXx','env','82910CxBzdC','type','string','indexOf','version','alias','length','33UcdmVn','260379HtYBaM','2177696QSPyne','app','format','push','non-interactive','get','yes','408812LtrZpt','corrected','nonInteractive','name'];a75_0x452b=function(){return _0x5518bf;};return a75_0x452b();}
1
+ (function(_0x181207,_0x350e98){const _0x2e2cd2=a75_0x4380,_0x1e6d06=_0x181207();while(!![]){try{const _0x3f070e=parseInt(_0x2e2cd2(0x138))/0x1+-parseInt(_0x2e2cd2(0x146))/0x2*(-parseInt(_0x2e2cd2(0x153))/0x3)+-parseInt(_0x2e2cd2(0x134))/0x4+parseInt(_0x2e2cd2(0x145))/0x5+-parseInt(_0x2e2cd2(0x151))/0x6+parseInt(_0x2e2cd2(0x13b))/0x7*(parseInt(_0x2e2cd2(0x149))/0x8)+parseInt(_0x2e2cd2(0x15a))/0x9*(parseInt(_0x2e2cd2(0x13e))/0xa);if(_0x3f070e===_0x350e98)break;else _0x1e6d06['push'](_0x1e6d06['shift']());}catch(_0x3a554c){_0x1e6d06['push'](_0x1e6d06['shift']());}}}(a75_0xfe64,0x8b11d));function toKebab(_0x35c26b){const _0x3e68fd=a75_0x4380;return _0x35c26b[_0x3e68fd(0x14d)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x3b6f7b,_0x4049f5)=>'-'+_0x4049f5[_0x3e68fd(0x158)]())[_0x3e68fd(0x14d)](/([a-z0-9])([A-Z])/g,(_0x3d8092,_0x5053fa,_0x549c71)=>_0x5053fa+'-'+_0x549c71)['toLowerCase']();}function buildKnownFlags(_0xc5ab73){const _0x3c3e10=a75_0x4380,_0x88702e=new Set();for(const _0x1a02a7 of _0xc5ab73){_0x88702e['add'](_0x1a02a7['name']),_0x88702e[_0x3c3e10(0x154)](toCamelCase(_0x1a02a7[_0x3c3e10(0x144)]));}for(const _0x2a1899 of['dry-run',_0x3c3e10(0x13c),'yes',_0x3c3e10(0x157)]){_0x88702e[_0x3c3e10(0x154)](_0x2a1899);}for(const _0x4fc14b of[_0x3c3e10(0x140),_0x3c3e10(0x155),'appcode','app',_0x3c3e10(0x14a),_0x3c3e10(0x14f),'ci',_0x3c3e10(0x139),_0x3c3e10(0x14b)]){_0x88702e[_0x3c3e10(0x154)](_0x4fc14b);}return _0x88702e;}function a75_0x4380(_0x1e1317,_0x1e669a){_0x1e1317=_0x1e1317-0x134;const _0xfe644=a75_0xfe64();let _0x438037=_0xfe644[_0x1e1317];return _0x438037;}function buildFlagTypeMap(_0x1f1a92){const _0x376262=a75_0x4380,_0x2e7927=new Map();for(const _0x28b399 of _0x1f1a92){_0x2e7927[_0x376262(0x135)](_0x28b399['name'],_0x28b399[_0x376262(0x141)]),_0x2e7927['set'](toCamelCase(_0x28b399[_0x376262(0x144)]),_0x28b399['type']);}return _0x2e7927;}function a75_0xfe64(){const _0x462f12=['2728460XpGJHg','set','sticky','corrected','789315jdmAbM','global','toUpperCase','7MrJbZu','dryRun','indexOf','250tthepf','get','help','type','boolean','number','name','3430370AfuJcQ','14YRrdFT','keys','slice','542312lQMrIf','nonInteractive','version','length','replace','push','non-interactive','has','5840952kVhalP','original','34407aiAGHN','add','env','string','format','toLowerCase','entries','216639BroTMW'];a75_0xfe64=function(){return _0x462f12;};return a75_0xfe64();}function toCamelCase(_0x57ea3d){const _0x34499b=a75_0x4380;return _0x57ea3d[_0x34499b(0x14d)](/-([a-z])/g,(_0x474827,_0x11f210)=>_0x11f210[_0x34499b(0x13a)]());}function aliasHandler(_0x4dff82,_0x67e4ac){const _0x59062c=a75_0x4380,_0x2bd021=[];for(const _0x135c72 of Object[_0x59062c(0x147)](_0x4dff82)){if(_0x67e4ac[_0x59062c(0x150)](_0x135c72))continue;const _0x26a9c5=toKebab(_0x135c72);_0x26a9c5!==_0x135c72&&_0x67e4ac[_0x59062c(0x150)](_0x26a9c5)&&_0x2bd021[_0x59062c(0x14e)]({'original':_0x135c72,'corrected':_0x26a9c5,'handler':'alias'});}return _0x2bd021;}function stickyHandler(_0x97c878,_0x58784f,_0x4a9575){const _0x5d4948=a75_0x4380,_0x53313f=[];for(const [_0x5d4b81,_0x511213]of Object[_0x5d4948(0x159)](_0x97c878)){if(_0x511213!==!![])continue;for(let _0x3962d2=_0x5d4b81[_0x5d4948(0x14c)]-0x1;_0x3962d2>0x0;_0x3962d2--){const _0x54853a=_0x5d4b81[_0x5d4948(0x148)](0x0,_0x3962d2),_0x414f17=_0x5d4b81[_0x5d4948(0x148)](_0x3962d2),_0x5be316=toKebab(_0x54853a),_0x490493=toCamelCase(_0x54853a),_0x5e6634=_0x58784f[_0x5d4948(0x150)](_0x54853a)?_0x54853a:_0x58784f['has'](_0x5be316)?_0x5be316:_0x58784f['has'](_0x490493)?_0x490493:null;if(!_0x5e6634)continue;const _0x258362=_0x4a9575['get'](_0x5e6634)??_0x5d4948(0x156);let _0x3fde66;if(_0x258362===_0x5d4948(0x143)){const _0x32379c=Number(_0x414f17);if(isNaN(_0x32379c)||_0x414f17==='')continue;_0x3fde66=_0x32379c;}else{if(_0x258362===_0x5d4948(0x142))continue;else{if(_0x414f17==='')continue;_0x3fde66=_0x414f17;}}_0x53313f[_0x5d4948(0x14e)]({'original':_0x5d4b81,'corrected':_0x5e6634+'='+_0x3fde66,'handler':_0x5d4948(0x136)});break;}}return _0x53313f;}export function correctFlags(_0x510ea7,_0xea49f3){const _0x1bc8f7=a75_0x4380,_0x1317eb=buildKnownFlags(_0xea49f3),_0x51560b=buildFlagTypeMap(_0xea49f3),_0x340c10=aliasHandler(_0x510ea7,_0x1317eb),_0x3c56ca=stickyHandler(_0x510ea7,_0x1317eb,_0x51560b),_0x2d82e0=[..._0x340c10,..._0x3c56ca];if(_0x2d82e0[_0x1bc8f7(0x14c)]===0x0)return{'flags':_0x510ea7,'corrections':[]};const _0x4e86b2={..._0x510ea7},_0x3325f0=new Set();for(const _0x4560b3 of _0x340c10){_0x4e86b2[_0x4560b3[_0x1bc8f7(0x137)]]=_0x510ea7[_0x4560b3[_0x1bc8f7(0x152)]],_0x3325f0[_0x1bc8f7(0x154)](_0x4560b3[_0x1bc8f7(0x152)]);}for(const _0x2d582f of _0x3c56ca){const _0x29763a=_0x2d582f[_0x1bc8f7(0x137)][_0x1bc8f7(0x13d)]('='),_0x289174=_0x2d582f[_0x1bc8f7(0x137)][_0x1bc8f7(0x148)](0x0,_0x29763a),_0x4ce61d=_0x2d582f[_0x1bc8f7(0x137)][_0x1bc8f7(0x148)](_0x29763a+0x1),_0x2224db=_0x51560b[_0x1bc8f7(0x13f)](_0x289174)??_0x1bc8f7(0x156);_0x2224db===_0x1bc8f7(0x143)?_0x4e86b2[_0x289174]=Number(_0x4ce61d):_0x4e86b2[_0x289174]=_0x4ce61d,_0x3325f0[_0x1bc8f7(0x154)](_0x2d582f['original']);}for(const _0x9dcaf4 of _0x3325f0){delete _0x4e86b2[_0x9dcaf4];}return{'flags':_0x4e86b2,'corrections':_0x2d82e0};}
@@ -1 +1 @@
1
- (function(_0x597da1,_0x3070be){var _0x52a353=a76_0x27de,_0x2ad50b=_0x597da1();while(!![]){try{var _0x5dd3a8=parseInt(_0x52a353(0x1e4))/0x1+-parseInt(_0x52a353(0x1e8))/0x2+parseInt(_0x52a353(0x1e2))/0x3+parseInt(_0x52a353(0x1e7))/0x4+parseInt(_0x52a353(0x1e3))/0x5+-parseInt(_0x52a353(0x1e6))/0x6*(parseInt(_0x52a353(0x1e5))/0x7)+parseInt(_0x52a353(0x1e9))/0x8;if(_0x5dd3a8===_0x3070be)break;else _0x2ad50b['push'](_0x2ad50b['shift']());}catch(_0x30f801){_0x2ad50b['push'](_0x2ad50b['shift']());}}}(a76_0x29a1,0x396c5));function a76_0x29a1(){var _0x16090b=['198dzOzBG','299048GHRyLA','229764fVujRX','1437968zCAFCH','22083vgVjMr','1269085eZQIxC','42004gHqPoi','44037NUjiRJ'];a76_0x29a1=function(){return _0x16090b;};return a76_0x29a1();}function a76_0x27de(_0x2ef553,_0x55deb3){_0x2ef553=_0x2ef553-0x1e2;var _0x29a18e=a76_0x29a1();var _0x27de4d=_0x29a18e[_0x2ef553];return _0x27de4d;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x354ec9,_0x1e294b){var _0x35abf8=a76_0x1dd2,_0x1423a5=_0x354ec9();while(!![]){try{var _0x5ec2b0=-parseInt(_0x35abf8(0x1d3))/0x1+parseInt(_0x35abf8(0x1d2))/0x2+parseInt(_0x35abf8(0x1d1))/0x3+-parseInt(_0x35abf8(0x1d6))/0x4+-parseInt(_0x35abf8(0x1d0))/0x5+parseInt(_0x35abf8(0x1ce))/0x6*(-parseInt(_0x35abf8(0x1d4))/0x7)+-parseInt(_0x35abf8(0x1d5))/0x8*(-parseInt(_0x35abf8(0x1cf))/0x9);if(_0x5ec2b0===_0x1e294b)break;else _0x1423a5['push'](_0x1423a5['shift']());}catch(_0x451e0c){_0x1423a5['push'](_0x1423a5['shift']());}}}(a76_0x2e63,0x6ea57));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a76_0x1dd2(_0x32adeb,_0x547f6e){_0x32adeb=_0x32adeb-0x1ce;var _0x2e6379=a76_0x2e63();var _0x1dd2f0=_0x2e6379[_0x32adeb];return _0x1dd2f0;}function a76_0x2e63(){var _0xe3d581=['1184760DTvdoc','42MArwyF','3447DpqbcD','1365215jrwYbi','266166LKAzEY','139446hPQAmC','864612HIqbYr','195202CSFQNO','40184GRgxtl'];a76_0x2e63=function(){return _0xe3d581;};return a76_0x2e63();}
@@ -1 +1 @@
1
- (function(_0x657e7d,_0x11426c){const _0x373b9f=a77_0x9d36,_0x3070ad=_0x657e7d();while(!![]){try{const _0x5d1c25=-parseInt(_0x373b9f(0x92))/0x1*(parseInt(_0x373b9f(0x84))/0x2)+parseInt(_0x373b9f(0x8c))/0x3+parseInt(_0x373b9f(0x89))/0x4*(-parseInt(_0x373b9f(0x8a))/0x5)+-parseInt(_0x373b9f(0x7f))/0x6+parseInt(_0x373b9f(0x8e))/0x7+parseInt(_0x373b9f(0x87))/0x8*(-parseInt(_0x373b9f(0x7d))/0x9)+parseInt(_0x373b9f(0x86))/0xa;if(_0x5d1c25===_0x11426c)break;else _0x3070ad['push'](_0x3070ad['shift']());}catch(_0x23fc37){_0x3070ad['push'](_0x3070ad['shift']());}}}(a77_0x428b,0xc8dad));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x4f68ef,_0x4dc141,_0x54a784){const _0x39536b=a77_0x9d36,_0x10692b=buildConfirmationContext(_0x4f68ef,_0x4dc141,_0x54a784),_0x49d59f=[_0x39536b(0x94)+_0x10692b[_0x39536b(0x88)]];return _0x10692b[_0x39536b(0x83)]&&_0x49d59f[_0x39536b(0x91)](_0x39536b(0x90)+_0x10692b[_0x39536b(0x83)]),_0x10692b['affectedRecords']&&_0x49d59f['push'](_0x39536b(0x82)+_0x10692b['affectedRecords']),_0x49d59f[_0x39536b(0x91)](_0x39536b(0x85)),_0x49d59f;}function a77_0x428b(){const _0x71a0d0=['8570488HJBMPj','commandLabel','16HQNwme','163810npxsgZ','params','1645254sxVGri','entries','8179990PxBqtK','params=','\x20\x20\x20','push','3492sjFLpw','stringify','⚠\x20\x20High-risk\x20operation:\x20','join','id=','service','name','code','9GozRcd','length','3186882blfqrt','name=','command','\x20\x20\x20Affected:\x20','description','644TaQNwd','\x20\x20\x20Continue?\x20[y/N]\x20','19636430hamBED'];a77_0x428b=function(){return _0x71a0d0;};return a77_0x428b();}export function reconstructCommandArgv(_0x5e0c63,_0x45e25c){const _0xabc00c=a77_0x9d36,_0x3c6b63=[CLI_BIN_NAME,_0x5e0c63[_0xabc00c(0x97)],_0x5e0c63[_0xabc00c(0x81)]];for(const [_0x30cb98,_0x493cc2]of Object[_0xabc00c(0x8d)](_0x45e25c)){if(_0x493cc2===!![])_0x3c6b63['push']('--'+_0x30cb98);else _0x493cc2!==![]&&_0x493cc2!==undefined&&_0x493cc2!==''&&_0x3c6b63[_0xabc00c(0x91)]('--'+_0x30cb98+'\x20'+JSON[_0xabc00c(0x93)](_0x493cc2));}return _0x3c6b63[_0xabc00c(0x91)]('--yes'),_0x3c6b63[_0xabc00c(0x95)]('\x20');}function a77_0x9d36(_0x23777b,_0x5f2321){_0x23777b=_0x23777b-0x7d;const _0x428bc2=a77_0x428b();let _0x9d36a=_0x428bc2[_0x23777b];return _0x9d36a;}function buildConfirmationContext(_0x4c31a5,_0x2687b,_0x479a6d){const _0x5246c9=a77_0x9d36,_0x58291d=extractAffectedRecords(_0x479a6d);return{'commandLabel':_0x2687b,'description':_0x4c31a5[_0x5246c9(0x83)],'affectedRecords':_0x58291d};}function extractAffectedRecords(_0x1ab31c){const _0x4231c3=a77_0x9d36,_0x95983b=[];if(_0x1ab31c[_0x4231c3(0x99)])_0x95983b[_0x4231c3(0x91)]('code='+_0x1ab31c[_0x4231c3(0x99)]);if(_0x1ab31c['id'])_0x95983b['push'](_0x4231c3(0x96)+_0x1ab31c['id']);if(_0x1ab31c[_0x4231c3(0x98)])_0x95983b['push'](_0x4231c3(0x80)+_0x1ab31c[_0x4231c3(0x98)]);if(_0x1ab31c[_0x4231c3(0x8b)])_0x95983b['push'](_0x4231c3(0x8f)+_0x1ab31c['params']);return _0x95983b[_0x4231c3(0x7e)]>0x0?_0x95983b[_0x4231c3(0x95)](',\x20'):undefined;}
1
+ (function(_0xce08b3,_0x3e5015){const _0x5c7df8=a77_0xb2d3,_0x1dbca1=_0xce08b3();while(!![]){try{const _0x3d7bc5=parseInt(_0x5c7df8(0x199))/0x1*(-parseInt(_0x5c7df8(0x18e))/0x2)+-parseInt(_0x5c7df8(0x192))/0x3*(-parseInt(_0x5c7df8(0x18f))/0x4)+-parseInt(_0x5c7df8(0x182))/0x5*(parseInt(_0x5c7df8(0x194))/0x6)+-parseInt(_0x5c7df8(0x198))/0x7+-parseInt(_0x5c7df8(0x189))/0x8*(parseInt(_0x5c7df8(0x19d))/0x9)+-parseInt(_0x5c7df8(0x190))/0xa+parseInt(_0x5c7df8(0x18b))/0xb;if(_0x3d7bc5===_0x3e5015)break;else _0x1dbca1['push'](_0x1dbca1['shift']());}catch(_0x216c2f){_0x1dbca1['push'](_0x1dbca1['shift']());}}}(a77_0x20c2,0x3db59));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x1a082a,_0x2fac0f,_0x52f7e2){const _0x1811b6=a77_0xb2d3,_0x222f4f=buildConfirmationContext(_0x1a082a,_0x2fac0f,_0x52f7e2),_0x3b70ec=['⚠\x20\x20High-risk\x20operation:\x20'+_0x222f4f[_0x1811b6(0x19a)]];return _0x222f4f[_0x1811b6(0x196)]&&_0x3b70ec['push'](_0x1811b6(0x188)+_0x222f4f[_0x1811b6(0x196)]),_0x222f4f[_0x1811b6(0x184)]&&_0x3b70ec['push'](_0x1811b6(0x18a)+_0x222f4f['affectedRecords']),_0x3b70ec[_0x1811b6(0x18c)](_0x1811b6(0x18d)),_0x3b70ec;}export function reconstructCommandArgv(_0x3bb283,_0x2602d0){const _0x3a13b8=a77_0xb2d3,_0xf9dca3=[CLI_BIN_NAME,_0x3bb283[_0x3a13b8(0x19e)],_0x3bb283['command']];for(const [_0x2d4650,_0x50d934]of Object[_0x3a13b8(0x185)](_0x2602d0)){if(_0x50d934===!![])_0xf9dca3[_0x3a13b8(0x18c)]('--'+_0x2d4650);else _0x50d934!==![]&&_0x50d934!==undefined&&_0x50d934!==''&&_0xf9dca3[_0x3a13b8(0x18c)]('--'+_0x2d4650+'\x20'+JSON[_0x3a13b8(0x195)](_0x50d934));}return _0xf9dca3[_0x3a13b8(0x18c)](_0x3a13b8(0x186)),_0xf9dca3['join']('\x20');}function buildConfirmationContext(_0x221dcf,_0x2b8e44,_0x56b437){const _0x1cc00e=extractAffectedRecords(_0x56b437);return{'commandLabel':_0x2b8e44,'description':_0x221dcf['description'],'affectedRecords':_0x1cc00e};}function a77_0xb2d3(_0x4573ea,_0x325d3a){_0x4573ea=_0x4573ea-0x182;const _0x20c2c5=a77_0x20c2();let _0xb2d3e3=_0x20c2c5[_0x4573ea];return _0xb2d3e3;}function extractAffectedRecords(_0x170520){const _0x3aab87=a77_0xb2d3,_0x58f8a0=[];if(_0x170520[_0x3aab87(0x19b)])_0x58f8a0[_0x3aab87(0x18c)]('code='+_0x170520[_0x3aab87(0x19b)]);if(_0x170520['id'])_0x58f8a0[_0x3aab87(0x18c)]('id='+_0x170520['id']);if(_0x170520[_0x3aab87(0x193)])_0x58f8a0[_0x3aab87(0x18c)](_0x3aab87(0x197)+_0x170520[_0x3aab87(0x193)]);if(_0x170520[_0x3aab87(0x191)])_0x58f8a0['push'](_0x3aab87(0x183)+_0x170520[_0x3aab87(0x191)]);return _0x58f8a0[_0x3aab87(0x19c)]>0x0?_0x58f8a0[_0x3aab87(0x187)](',\x20'):undefined;}function a77_0x20c2(){const _0x20b158=['40JYDycD','4889400qmtQqY','params','20022SXkyad','name','6BglEeW','stringify','description','name=','2443504fYqcYk','1985khmlcx','commandLabel','code','length','72SUwtAd','service','1952205NmdCIq','params=','affectedRecords','entries','--yes','join','\x20\x20\x20','18208ajkdGN','\x20\x20\x20Affected:\x20','19973657GhwMUt','push','\x20\x20\x20Continue?\x20[y/N]\x20','386vHcfQv'];a77_0x20c2=function(){return _0x20b158;};return a77_0x20c2();}
@@ -1 +1 @@
1
- function a78_0x119c(_0x251f7d,_0x17eb2a){_0x251f7d=_0x251f7d-0x1ee;const _0x214da6=a78_0x214d();let _0x119c16=_0x214da6[_0x251f7d];return _0x119c16;}(function(_0x1994a0,_0x100876){const _0x261664=a78_0x119c,_0x373887=_0x1994a0();while(!![]){try{const _0x44cd53=parseInt(_0x261664(0x1f4))/0x1+parseInt(_0x261664(0x1ef))/0x2+-parseInt(_0x261664(0x1fa))/0x3+parseInt(_0x261664(0x1f1))/0x4*(-parseInt(_0x261664(0x1f9))/0x5)+parseInt(_0x261664(0x1f5))/0x6*(parseInt(_0x261664(0x1f2))/0x7)+-parseInt(_0x261664(0x1f8))/0x8+-parseInt(_0x261664(0x1f3))/0x9;if(_0x44cd53===_0x100876)break;else _0x373887['push'](_0x373887['shift']());}catch(_0x2f79d9){_0x373887['push'](_0x373887['shift']());}}}(a78_0x214d,0xb7069));import{LovrabetError}from'@lovrabet/sdk';function a78_0x214d(){const _0xae74e4=['6039248sQFMfb','15nObdWW','3406623YbbgOx','trim','2782928SEySVM','message','59608nrLcjc','14DVQyrV','4608108YYwOlZ','1053818IxEoIK','2254668jPonDz','string','description'];a78_0x214d=function(){return _0xae74e4;};return a78_0x214d();}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0xa29850){if(_0xa29850 instanceof LovrabetError)return CliErrors['validation'](userFacingLovrabetMessage(_0xa29850));return _0xa29850;}function userFacingLovrabetMessage(_0x5df1e2){const _0x1ecd9b=a78_0x119c,_0x29c221=_0x5df1e2[_0x1ecd9b(0x1f7)];if(_0x29c221!==undefined&&_0x29c221!==null){if(typeof _0x29c221===_0x1ecd9b(0x1f6)&&_0x29c221[_0x1ecd9b(0x1ee)]())return _0x29c221[_0x1ecd9b(0x1ee)]();try{return JSON['stringify'](_0x29c221);}catch{}}return _0x5df1e2[_0x1ecd9b(0x1f0)];}
1
+ (function(_0x33628d,_0x5dc5d9){const _0x15256c=a78_0x2cef,_0x1631c8=_0x33628d();while(!![]){try{const _0x11f344=parseInt(_0x15256c(0x143))/0x1+-parseInt(_0x15256c(0x145))/0x2+-parseInt(_0x15256c(0x139))/0x3+parseInt(_0x15256c(0x144))/0x4*(parseInt(_0x15256c(0x13f))/0x5)+parseInt(_0x15256c(0x13e))/0x6+-parseInt(_0x15256c(0x13c))/0x7*(parseInt(_0x15256c(0x13b))/0x8)+parseInt(_0x15256c(0x140))/0x9*(parseInt(_0x15256c(0x13d))/0xa);if(_0x11f344===_0x5dc5d9)break;else _0x1631c8['push'](_0x1631c8['shift']());}catch(_0x14481b){_0x1631c8['push'](_0x1631c8['shift']());}}}(a78_0x4080,0x19525));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a78_0x2cef(_0x3147be,_0x5ce847){_0x3147be=_0x3147be-0x137;const _0x408091=a78_0x4080();let _0x2cefc3=_0x408091[_0x3147be];return _0x2cefc3;}export function mapUserFacingExecuteError(_0x468866){const _0x3e2608=a78_0x2cef;if(_0x468866 instanceof LovrabetError)return CliErrors[_0x3e2608(0x137)](userFacingLovrabetMessage(_0x468866));return _0x468866;}function userFacingLovrabetMessage(_0x321170){const _0x5115c5=a78_0x2cef,_0x48d754=_0x321170[_0x5115c5(0x13a)];if(_0x48d754!==undefined&&_0x48d754!==null){if(typeof _0x48d754==='string'&&_0x48d754[_0x5115c5(0x142)]())return _0x48d754[_0x5115c5(0x142)]();try{return JSON[_0x5115c5(0x141)](_0x48d754);}catch{}}return _0x321170[_0x5115c5(0x138)];}function a78_0x4080(){const _0x32bd74=['5zpXopq','9jsIPVH','stringify','trim','106480SjAHSi','637996KGFwGE','61434ImlgXk','validation','message','614964pbsPRk','description','24fVbCzm','154805BSZtew','979430DrxHxc','251070SKziwk'];a78_0x4080=function(){return _0x32bd74;};return a78_0x4080();}
@@ -1 +1 @@
1
- const a79_0x207c21=a79_0x344e;(function(_0x1e0251,_0x11b5c7){const _0x3ba52e=a79_0x344e,_0x15e468=_0x1e0251();while(!![]){try{const _0x536101=parseInt(_0x3ba52e(0x1c5))/0x1*(-parseInt(_0x3ba52e(0x1b7))/0x2)+parseInt(_0x3ba52e(0x1c0))/0x3*(-parseInt(_0x3ba52e(0x1e8))/0x4)+-parseInt(_0x3ba52e(0x1db))/0x5+-parseInt(_0x3ba52e(0x1d9))/0x6+parseInt(_0x3ba52e(0x1ae))/0x7+parseInt(_0x3ba52e(0x1ba))/0x8*(parseInt(_0x3ba52e(0x1e6))/0x9)+parseInt(_0x3ba52e(0x1c8))/0xa;if(_0x536101===_0x11b5c7)break;else _0x15e468['push'](_0x15e468['shift']());}catch(_0x1b7aaa){_0x15e468['push'](_0x15e468['shift']());}}}(a79_0x4a41,0xe5a05));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';function a79_0x344e(_0x5cff00,_0x199e71){_0x5cff00=_0x5cff00-0x1ad;const _0x4a4180=a79_0x4a41();let _0x344e8b=_0x4a4180[_0x5cff00];return _0x344e8b;}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(_0x133ef9){return void _0x133ef9,AUTH_MODE['ClientAk'];}export function createPipelineEnv(_0x2429c2,_0xbbc1b9){const _0x586465=a79_0x344e,_0x34abcf=typeof _0xbbc1b9[_0x586465(0x1b5)]==='string'&&_0xbbc1b9[_0x586465(0x1b5)]['trim']();return{'rawFlags':_0xbbc1b9,'appCode':_0x2429c2[_0x586465(0x1d4)]||productEnv('APPCODE')||(_0x34abcf?undefined:readAppCodeFromConfig()),'appCodeSource':_0x2429c2[_0x586465(0x1cb)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0xbbc1b9),'defaultFormat':_0x2429c2[_0x586465(0x1e5)],'defaultPageSize':_0x2429c2[_0x586465(0x1b9)],'defaultVerbose':_0x2429c2['verbose'],'riskLevel':_0x2429c2[_0x586465(0x1e2)],'accessKey':_0x2429c2[_0x586465(0x1e9)],'env':_0x2429c2[_0x586465(0x1af)],'mergedCli':{'defaultApp':_0x2429c2[_0x586465(0x1c3)],'currentApp':_0x2429c2['currentApp'],'appCode':_0x2429c2['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a79_0x207c21(0x1cc)](_0x31a989=>PIPELINE_FLAG_NAMES[a79_0x207c21(0x1bb)](_0x31a989[a79_0x207c21(0x1ad)]))[a79_0x207c21(0x1e4)](({name:_0x43bc9f,type:_0x2f5f62,description:_0x33ff7d})=>({'name':_0x43bc9f,'type':_0x2f5f62,'description':_0x33ff7d})),'formatOutput':formatOutput,'getCommandLabel'(_0x78cea6){const _0xda98db=a79_0x207c21;return CLI_BIN_NAME+'\x20'+_0x78cea6['service']+'\x20'+_0x78cea6[_0xda98db(0x1b2)];},'riskPolicy':{'onViolation'(_0xb463d9){const _0x44db18=a79_0x207c21;console[_0x44db18(0x1cd)](_0xb463d9);},'createError'(_0x404582){const _0x5e5f63=a79_0x207c21;return CliErrors[_0x5e5f63(0x1ce)](_0x404582);}},async 'prepare'(_0x41bff1,_0x5932da){const _0x1065da=a79_0x207c21,_0x514b91=resolveAuthMode(_0x5932da);if(_0x41bff1['requiresAuth']!==![]){if(!_0x5932da[_0x1065da(0x1e9)])throw CliErrors[_0x1065da(0x1d5)](_0x1065da(0x1b3)+PRODUCT_CONFIG[_0x1065da(0x1bd)]+_0x1065da(0x1e1)+productEnvName(_0x1065da(0x1c2))+'.');const {setActiveAK:_0x88100}=await import(_0x1065da(0x1d7));_0x88100(_0x5932da[_0x1065da(0x1e9)]);}let _0x4836f0='';if(_0x41bff1[_0x1065da(0x1c1)]!==![]){_0x4836f0=_0x5932da[_0x1065da(0x1d4)]??'',_0x4836f0=await resolveExplicitAppName(_0x41bff1,_0x5932da,_0x4836f0);if(!_0x4836f0){await assertSelectedAppNameIsRuntimeAccessible(_0x41bff1,_0x5932da);throw CliErrors['configMissing'](_0x1065da(0x1e0)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x41bff1,_0x5932da,_0x4836f0);}if(_0x4836f0){const {initSdkClient:_0x46e9e5}=await import('../core/sdk-client.js');_0x46e9e5({'appCode':_0x4836f0,'env':_0x5932da[_0x1065da(0x1af)]??_0x1065da(0x1c7),'accessKey':_0x5932da[_0x1065da(0x1e9)],'authMode':_0x514b91});}return{'defaults':{'booleans':{'verbose':_0x5932da['defaultVerbose']},'numbers':{'pagesize':_0x5932da[_0x1065da(0x1c6)]}},'extras':{'appCode':_0x4836f0,'cookie':'','apiDomain':_0x5932da['apiDomain'],'apiDir':'','accessKey':_0x5932da['accessKey'],'envName':_0x5932da[_0x1065da(0x1af)],'mergedCli':_0x5932da['mergedCli']}};},async 'confirmHighRisk'({def:_0x33b678,env:_0x586769,flags:_0x3f0400,commandLabel:_0x3d0ed7}){const _0x216040=a79_0x207c21;if(_0x586769[_0x216040(0x1e3)]){const _0x5b1991=reconstructCommandArgv(_0x33b678,_0x3f0400);throw CliErrors['validation'](_0x216040(0x1cf)+_0x3d0ed7+_0x216040(0x1c9)+(_0x216040(0x1b8)+_0x5b1991));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x33b678,_0x3d0ed7,_0x3f0400),'createCancelledError':_0x2c020c=>CliErrors[_0x216040(0x1ce)](_0x2c020c)});},'mapDryRunError'(_0x1c53eb){return mapUserFacingExecuteError(_0x1c53eb);},'mapExecuteError'(_0x17e089){return mapUserFacingExecuteError(_0x17e089);},async 'finalize'(){const _0x5ccef7=a79_0x207c21,{clearActiveAK:_0x3b8479}=await import(_0x5ccef7(0x1d7));_0x3b8479();}};async function resolveExplicitAppName(_0x1fdfaa,_0x17458d,_0x7a725f){const _0x2c17af=a79_0x207c21;if(_0x1fdfaa[_0x2c17af(0x1c1)]===![])return _0x7a725f;const _0x596b9f=typeof _0x17458d['rawFlags']['app']===_0x2c17af(0x1bf)?_0x17458d[_0x2c17af(0x1dc)][_0x2c17af(0x1b5)]['trim']():'';if(!_0x596b9f)return _0x7a725f;const _0x32d85b=typeof _0x17458d[_0x2c17af(0x1dc)]['appcode']===_0x2c17af(0x1bf)&&_0x17458d[_0x2c17af(0x1dc)][_0x2c17af(0x1b1)][_0x2c17af(0x1be)]()||productEnv('APPCODE');if(_0x32d85b||_0x17458d[_0x2c17af(0x1cb)]===_0x2c17af(0x1d3))return _0x7a725f;const {getRemoteAppList:_0x5e7dc9}=await import('../commands/app/remote-source.js'),_0x56211c=await _0x5e7dc9({'env':_0x17458d[_0x2c17af(0x1af)]??_0x2c17af(0x1c7),'accessKey':_0x17458d[_0x2c17af(0x1e9)]}),_0x2e5a4e=findAppByName(_0x56211c[_0x2c17af(0x1de)],_0x596b9f);if(_0x2e5a4e&&!isRuntimeAccessibleApp(_0x2e5a4e))throw runtimeInaccessibleAppError(_0x2e5a4e,'\x22'+_0x596b9f+'\x22');const _0x567a6f=_0x2e5a4e?.[_0x2c17af(0x1d4)]?.[_0x2c17af(0x1be)]();if(_0x567a6f)return _0x567a6f;throw CliErrors[_0x2c17af(0x1ea)]('Unknown\x20app:\x20'+_0x596b9f,_0x2c17af(0x1d1)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x596b9f+_0x2c17af(0x1b0)+PRODUCT_CONFIG[_0x2c17af(0x1bd)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5a34d4,_0x415fd5){const _0x36fae3=a79_0x207c21;if(_0x5a34d4['requiresAppCode']===![]||!_0x415fd5[_0x36fae3(0x1e9)])return;const _0x51b7f8=(typeof _0x415fd5[_0x36fae3(0x1dc)]['app']===_0x36fae3(0x1bf)&&_0x415fd5[_0x36fae3(0x1dc)]['app'][_0x36fae3(0x1be)]()?_0x415fd5['rawFlags']['app']:_0x415fd5[_0x36fae3(0x1d8)]?.[_0x36fae3(0x1b4)]??_0x415fd5[_0x36fae3(0x1d8)]?.[_0x36fae3(0x1c3)])?.['trim']();if(!_0x51b7f8)return;const {getRemoteAppList:_0x3411b2}=await import('../commands/app/remote-source.js'),_0x2674b5=await _0x3411b2({'env':_0x415fd5[_0x36fae3(0x1af)]??_0x36fae3(0x1c7),'accessKey':_0x415fd5['accessKey']}),_0x45bae1=findAppByName(_0x2674b5[_0x36fae3(0x1de)],_0x51b7f8);if(_0x45bae1&&!isRuntimeAccessibleApp(_0x45bae1))throw runtimeInaccessibleAppError(_0x45bae1,'\x22'+_0x51b7f8+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x6d521d,_0x3c5a20,_0x565dd7){const _0x26e4fc=a79_0x207c21;if(_0x6d521d['requiresAppCode']===![]||!_0x3c5a20['accessKey'])return;const {getRemoteAppList:_0x1b7b63}=await import(_0x26e4fc(0x1ca)),_0x54730b=await _0x1b7b63({'env':_0x3c5a20['env']??_0x26e4fc(0x1c7),'accessKey':_0x3c5a20[_0x26e4fc(0x1e9)]}),_0x384223=findAppByCode(_0x54730b[_0x26e4fc(0x1de)],_0x565dd7);if(_0x384223&&!isRuntimeAccessibleApp(_0x384223))throw runtimeInaccessibleAppError(_0x384223,'appcode\x20\x22'+_0x565dd7+'\x22');}export async function runCommand(_0x57f148,_0x3322a7){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x57f148)?withUpdateNotice(_0x57f148):_0x57f148,_0x3322a7,runnerAdapter);}function a79_0x4a41(){const _0x5d4b73=['newConfigFileName','trim','string','810399ikXYwp','requiresAppCode','ACCESS_KEY','defaultApp','nonInteractive','1WYTVri','defaultPageSize','production','21920540uvBBPK','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','../commands/app/remote-source.js','appCodeSource','filter','error','cancelled','High-risk\x20operation\x20`','service','Run\x20`','object','local-alias','appCode','authRequired','includes','../core/api-client.js','mergedCli','6144294piARaf','pretty','972125KtioOb','rawFlags','update','items','resolve','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','\x20or\x20pass\x20','riskLevel','isNonInteractive','map','format','20556axksFV','doctor','12nNcqMN','accessKey','validation','name','4783247kNdRaw','env','.appcode\x20to\x20','appcode','command','Set\x20accessKey\x20in\x20','currentApp','app','_notice','145370bIoDEY','\x20\x20To\x20proceed:\x20','pageSize','584jbzNQh','has','execute'];a79_0x4a41=function(){return _0x5d4b73;};return a79_0x4a41();}function shouldAttachUpdateNotice(_0x346524){const _0x2fca85=a79_0x207c21;return![_0x2fca85(0x1dd),'schema',_0x2fca85(0x1e7)][_0x2fca85(0x1d6)](_0x346524[_0x2fca85(0x1d0)]);}function withUpdateNotice(_0xe3e1e1){return{..._0xe3e1e1,async 'execute'(_0x2d074c){const _0x54e245=a79_0x344e,_0x4e1c28=shouldResolveUpdateNotice(_0x2d074c)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x54e245(0x1df)](null),_0x449324=await _0xe3e1e1[_0x54e245(0x1bc)](_0x2d074c);return attachUpdateNotice(_0x449324,await _0x4e1c28);}};}function shouldResolveUpdateNotice(_0x488972){const _0x1b8a96=a79_0x207c21;return _0x488972['format']===_0x1b8a96(0x1da)&&!_0x488972[_0x1b8a96(0x1c4)];}function attachUpdateNotice(_0x5dee88,_0x16798c){const _0x52a55b=a79_0x207c21;if(!_0x16798c||!_0x5dee88||typeof _0x5dee88!==_0x52a55b(0x1d2))return _0x5dee88;const _0x45877e=_0x5dee88,_0x33e6cb=typeof _0x45877e['_notice']===_0x52a55b(0x1d2)&&_0x45877e[_0x52a55b(0x1b6)]!==null?_0x45877e[_0x52a55b(0x1b6)]:{};return{..._0x45877e,'_notice':{..._0x33e6cb,'update':_0x16798c}};}
1
+ const a79_0x1af1ae=a79_0x1039;(function(_0x12ed21,_0x1a43d4){const _0x227818=a79_0x1039,_0x327c74=_0x12ed21();while(!![]){try{const _0x132f12=parseInt(_0x227818(0x117))/0x1+-parseInt(_0x227818(0x126))/0x2+-parseInt(_0x227818(0x128))/0x3*(parseInt(_0x227818(0xfd))/0x4)+parseInt(_0x227818(0x102))/0x5+parseInt(_0x227818(0xef))/0x6*(parseInt(_0x227818(0xf7))/0x7)+-parseInt(_0x227818(0x105))/0x8*(parseInt(_0x227818(0x115))/0x9)+-parseInt(_0x227818(0xf5))/0xa*(parseInt(_0x227818(0x119))/0xb);if(_0x132f12===_0x1a43d4)break;else _0x327c74['push'](_0x327c74['shift']());}catch(_0x45e873){_0x327c74['push'](_0x327c74['shift']());}}}(a79_0x4ed3,0x2c4a6));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(_0x44fdcd){const _0x5b1925=a79_0x1039;return void _0x44fdcd,AUTH_MODE[_0x5b1925(0xed)];}function a79_0x1039(_0x8b824,_0x19a6d0){_0x8b824=_0x8b824-0xeb;const _0x4ed39a=a79_0x4ed3();let _0x1039d9=_0x4ed39a[_0x8b824];return _0x1039d9;}export function createPipelineEnv(_0x53e583,_0x10e2fa){const _0x4b03d9=a79_0x1039,_0x2f1f97=typeof _0x10e2fa['app']===_0x4b03d9(0x12a)&&_0x10e2fa[_0x4b03d9(0xf9)]['trim']();return{'rawFlags':_0x10e2fa,'appCode':_0x53e583['appCode']||productEnv(_0x4b03d9(0x11c))||(_0x2f1f97?undefined:readAppCodeFromConfig()),'appCodeSource':_0x53e583[_0x4b03d9(0x101)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x10e2fa),'defaultFormat':_0x53e583[_0x4b03d9(0x12c)],'defaultPageSize':_0x53e583[_0x4b03d9(0x106)],'defaultVerbose':_0x53e583[_0x4b03d9(0xf4)],'riskLevel':_0x53e583[_0x4b03d9(0x11f)],'accessKey':_0x53e583[_0x4b03d9(0x125)],'env':_0x53e583['env'],'mergedCli':{'defaultApp':_0x53e583['defaultApp'],'currentApp':_0x53e583['currentApp'],'appCode':_0x53e583[_0x4b03d9(0xf3)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4bc6a2=>PIPELINE_FLAG_NAMES['has'](_0x4bc6a2[a79_0x1af1ae(0x116)]))[a79_0x1af1ae(0xff)](({name:_0x9ee10f,type:_0x6da902,description:_0x29b92a})=>({'name':_0x9ee10f,'type':_0x6da902,'description':_0x29b92a})),'formatOutput':formatOutput,'getCommandLabel'(_0x369bd6){const _0x4892cf=a79_0x1af1ae;return CLI_BIN_NAME+'\x20'+_0x369bd6[_0x4892cf(0x12b)]+'\x20'+_0x369bd6[_0x4892cf(0x120)];},'riskPolicy':{'onViolation'(_0x15b6e9){const _0x4ff45e=a79_0x1af1ae;console[_0x4ff45e(0x11b)](_0x15b6e9);},'createError'(_0x1f2ab2){const _0x471129=a79_0x1af1ae;return CliErrors[_0x471129(0x11e)](_0x1f2ab2);}},async 'prepare'(_0x436e49,_0x17db4f){const _0xae6177=a79_0x1af1ae,_0x3882ef=resolveAuthMode(_0x17db4f);if(_0x436e49[_0xae6177(0xfa)]!==![]){if(!_0x17db4f[_0xae6177(0x125)])throw CliErrors['authRequired'](_0xae6177(0x109)+PRODUCT_CONFIG[_0xae6177(0x10a)]+_0xae6177(0x112)+productEnvName(_0xae6177(0xf8))+'.');const {setActiveAK:_0x2afc48}=await import(_0xae6177(0xf0));_0x2afc48(_0x17db4f[_0xae6177(0x125)]);}let _0x22d865='';if(_0x436e49[_0xae6177(0xfb)]!==![]){_0x22d865=_0x17db4f[_0xae6177(0xf3)]??'',_0x22d865=await resolveExplicitAppName(_0x436e49,_0x17db4f,_0x22d865);if(!_0x22d865){await assertSelectedAppNameIsRuntimeAccessible(_0x436e49,_0x17db4f);throw CliErrors[_0xae6177(0x118)](_0xae6177(0x124)+PRODUCT_CONFIG[_0xae6177(0x10a)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x436e49,_0x17db4f,_0x22d865);}if(_0x22d865){const {initSdkClient:_0xf1fa0a}=await import(_0xae6177(0x108));_0xf1fa0a({'appCode':_0x22d865,'env':_0x17db4f[_0xae6177(0x10f)]??'production','accessKey':_0x17db4f[_0xae6177(0x125)],'authMode':_0x3882ef});}return{'defaults':{'booleans':{'verbose':_0x17db4f[_0xae6177(0xee)]},'numbers':{'pagesize':_0x17db4f['defaultPageSize']}},'extras':{'appCode':_0x22d865,'cookie':'','apiDomain':_0x17db4f[_0xae6177(0x129)],'apiDir':'','accessKey':_0x17db4f[_0xae6177(0x125)],'envName':_0x17db4f[_0xae6177(0x10f)],'mergedCli':_0x17db4f[_0xae6177(0x111)]}};},async 'confirmHighRisk'({def:_0x4ad360,env:_0xfc6a55,flags:_0x22890e,commandLabel:_0x1b3cf8}){const _0x21510d=a79_0x1af1ae;if(_0xfc6a55[_0x21510d(0xf6)]){const _0x3a0d4d=reconstructCommandArgv(_0x4ad360,_0x22890e);throw CliErrors[_0x21510d(0xec)]('High-risk\x20operation\x20`'+_0x1b3cf8+_0x21510d(0x11d)+(_0x21510d(0x113)+_0x3a0d4d));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4ad360,_0x1b3cf8,_0x22890e),'createCancelledError':_0x191fe2=>CliErrors[_0x21510d(0x11e)](_0x191fe2)});},'mapDryRunError'(_0x374760){return mapUserFacingExecuteError(_0x374760);},'mapExecuteError'(_0x395c35){return mapUserFacingExecuteError(_0x395c35);},async 'finalize'(){const _0x4c14ff=a79_0x1af1ae,{clearActiveAK:_0x353ed2}=await import(_0x4c14ff(0xf0));_0x353ed2();}};async function resolveExplicitAppName(_0x165066,_0x119aa9,_0x3f6f09){const _0x456c2f=a79_0x1af1ae;if(_0x165066[_0x456c2f(0xfb)]===![])return _0x3f6f09;const _0x4eb856=typeof _0x119aa9[_0x456c2f(0xfe)][_0x456c2f(0xf9)]===_0x456c2f(0x12a)?_0x119aa9[_0x456c2f(0xfe)]['app']['trim']():'';if(!_0x4eb856)return _0x3f6f09;const _0x1ae235=typeof _0x119aa9['rawFlags'][_0x456c2f(0x122)]===_0x456c2f(0x12a)&&_0x119aa9[_0x456c2f(0xfe)][_0x456c2f(0x122)][_0x456c2f(0x107)]()||productEnv(_0x456c2f(0x11c));if(_0x1ae235||_0x119aa9['appCodeSource']===_0x456c2f(0x110))return _0x3f6f09;const {getRemoteAppList:_0xa45a28}=await import('../commands/app/remote-source.js'),_0x46d5c3=await _0xa45a28({'env':_0x119aa9['env']??'production','accessKey':_0x119aa9[_0x456c2f(0x125)]}),_0x401245=findAppByName(_0x46d5c3[_0x456c2f(0x100)],_0x4eb856);if(_0x401245&&!isRuntimeAccessibleApp(_0x401245))throw runtimeInaccessibleAppError(_0x401245,'\x22'+_0x4eb856+'\x22');const _0x55c360=_0x401245?.['appCode']?.['trim']();if(_0x55c360)return _0x55c360;throw CliErrors[_0x456c2f(0xec)](_0x456c2f(0x10c)+_0x4eb856,_0x456c2f(0xfc)+CLI_BIN_NAME+_0x456c2f(0x104)+_0x4eb856+_0x456c2f(0x127)+PRODUCT_CONFIG[_0x456c2f(0x10a)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1acca4,_0x1ad0fc){const _0x384639=a79_0x1af1ae;if(_0x1acca4[_0x384639(0xfb)]===![]||!_0x1ad0fc[_0x384639(0x125)])return;const _0x58514e=(typeof _0x1ad0fc[_0x384639(0xfe)][_0x384639(0xf9)]===_0x384639(0x12a)&&_0x1ad0fc[_0x384639(0xfe)]['app'][_0x384639(0x107)]()?_0x1ad0fc[_0x384639(0xfe)]['app']:_0x1ad0fc[_0x384639(0x111)]?.[_0x384639(0x114)]??_0x1ad0fc['mergedCli']?.[_0x384639(0x10e)])?.[_0x384639(0x107)]();if(!_0x58514e)return;const {getRemoteAppList:_0x1cc6ed}=await import(_0x384639(0x121)),_0x10005b=await _0x1cc6ed({'env':_0x1ad0fc['env']??_0x384639(0x123),'accessKey':_0x1ad0fc[_0x384639(0x125)]}),_0x4b134=findAppByName(_0x10005b[_0x384639(0x100)],_0x58514e);if(_0x4b134&&!isRuntimeAccessibleApp(_0x4b134))throw runtimeInaccessibleAppError(_0x4b134,'\x22'+_0x58514e+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x11ee0e,_0x2de8eb,_0x7b8a26){const _0x3aebc5=a79_0x1af1ae;if(_0x11ee0e[_0x3aebc5(0xfb)]===![]||!_0x2de8eb[_0x3aebc5(0x125)])return;const {getRemoteAppList:_0x1873c2}=await import('../commands/app/remote-source.js'),_0x1acc9a=await _0x1873c2({'env':_0x2de8eb[_0x3aebc5(0x10f)]??_0x3aebc5(0x123),'accessKey':_0x2de8eb[_0x3aebc5(0x125)]}),_0x32d953=findAppByCode(_0x1acc9a[_0x3aebc5(0x100)],_0x7b8a26);if(_0x32d953&&!isRuntimeAccessibleApp(_0x32d953))throw runtimeInaccessibleAppError(_0x32d953,_0x3aebc5(0x11a)+_0x7b8a26+'\x22');}export async function runCommand(_0x21a1f6,_0x5a9588){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x21a1f6)?withUpdateNotice(_0x21a1f6):_0x21a1f6,_0x5a9588,runnerAdapter);}function shouldAttachUpdateNotice(_0x275942){const _0x1db0a7=a79_0x1af1ae;return!['update','schema',_0x1db0a7(0x103)][_0x1db0a7(0x10b)](_0x275942['service']);}function withUpdateNotice(_0x4556d9){return{..._0x4556d9,async 'execute'(_0x21476){const _0x4032d6=a79_0x1039,_0x545156=shouldResolveUpdateNotice(_0x21476)?resolveLatestUpdateNotice()[_0x4032d6(0x10d)](()=>null):Promise[_0x4032d6(0xeb)](null),_0x1f649c=await _0x4556d9['execute'](_0x21476);return attachUpdateNotice(_0x1f649c,await _0x545156);}};}function shouldResolveUpdateNotice(_0x55ab2c){const _0x32318b=a79_0x1af1ae;return _0x55ab2c[_0x32318b(0x12c)]==='pretty'&&!_0x55ab2c['nonInteractive'];}function a79_0x4ed3(){const _0x24fc5b=['pageSize','trim','../core/sdk-client.js','Set\x20accessKey\x20in\x20','newConfigFileName','includes','Unknown\x20app:\x20','catch','defaultApp','env','local-alias','mergedCli','\x20or\x20pass\x20','\x20\x20To\x20proceed:\x20','currentApp','18EGJNsP','name','311197tgcrKi','configMissing','110Yfjbnu','appcode\x20\x22','error','APPCODE','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','cancelled','riskLevel','command','../commands/app/remote-source.js','appcode','production','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','accessKey','82548wzVtUJ','.appcode\x20to\x20','177NrMMdO','apiDomain','string','service','format','resolve','validation','ClientAk','defaultVerbose','310254ivDhQm','../core/api-client.js','_notice','object','appCode','verbose','344440eHZteY','isNonInteractive','49HLCezP','ACCESS_KEY','app','requiresAuth','requiresAppCode','Run\x20`','932xHynAq','rawFlags','map','items','appCodeSource','1321965folbuO','doctor','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','1426712YgtufB'];a79_0x4ed3=function(){return _0x24fc5b;};return a79_0x4ed3();}function attachUpdateNotice(_0x4b101f,_0x3bdd52){const _0x41f921=a79_0x1af1ae;if(!_0x3bdd52||!_0x4b101f||typeof _0x4b101f!==_0x41f921(0xf2))return _0x4b101f;const _0x541ce9=_0x4b101f,_0x486ab9=typeof _0x541ce9[_0x41f921(0xf1)]===_0x41f921(0xf2)&&_0x541ce9[_0x41f921(0xf1)]!==null?_0x541ce9['_notice']:{};return{..._0x541ce9,'_notice':{..._0x486ab9,'update':_0x3bdd52}};}
@@ -1 +1 @@
1
- (function(_0x2e3b2e,_0x268ca2){const _0x1ab012=a80_0x2287,_0x2784d5=_0x2e3b2e();while(!![]){try{const _0x1c380d=parseInt(_0x1ab012(0x16e))/0x1*(-parseInt(_0x1ab012(0x179))/0x2)+-parseInt(_0x1ab012(0x16f))/0x3*(parseInt(_0x1ab012(0x171))/0x4)+parseInt(_0x1ab012(0x174))/0x5*(parseInt(_0x1ab012(0x177))/0x6)+-parseInt(_0x1ab012(0x176))/0x7+-parseInt(_0x1ab012(0x175))/0x8*(-parseInt(_0x1ab012(0x17c))/0x9)+-parseInt(_0x1ab012(0x16c))/0xa+parseInt(_0x1ab012(0x17a))/0xb;if(_0x1c380d===_0x268ca2)break;else _0x2784d5['push'](_0x2784d5['shift']());}catch(_0x443593){_0x2784d5['push'](_0x2784d5['shift']());}}}(a80_0x3ea8,0xc1f5f));function a80_0x2287(_0x259835,_0x1a8b9c){_0x259835=_0x259835-0x16b;const _0x3ea8b9=a80_0x3ea8();let _0x2287e9=_0x3ea8b9[_0x259835];return _0x2287e9;}import{buildSchemaPayload as a80_0x1979d9}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 _0x58b95b=a80_0x2287,{serviceRegistry:_0x52ac3,findDefinition:_0x4d5797}=await import(_0x58b95b(0x172)),_0x44d14f=new Set(_0x52ac3[_0x58b95b(0x170)](_0x301234=>_0x301234[_0x58b95b(0x17b)])),_0x14090e=listDynamicServiceEntries()[_0x58b95b(0x16b)](_0xe5001d=>!_0x44d14f['has'](_0xe5001d[_0x58b95b(0x17b)])),_0x3a9ae3=a80_0x1979d9({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x52ac3,..._0x14090e],'buildAllFlags':buildAllFlags,'findDefinition':(_0x4d0d90,_0x2bdd47)=>_0x4d5797(_0x4d0d90,_0x2bdd47)??findDynamicServiceDefinition(_0x4d0d90,_0x2bdd47)});return normalizeSchemaPayload(_0x3a9ae3);}function normalizeSchemaPayload(_0x28a507){const _0x552e73=a80_0x2287;return{..._0x28a507,'schemaVersion':0x2,'services':_0x28a507['services'][_0x552e73(0x170)](_0x36a62b=>({..._0x36a62b,'commands':_0x36a62b['commands']['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x9e72f2){const _0x2a0c26=a80_0x2287,_0x476ae9=_0x9e72f2;return{..._0x9e72f2,'auth':_0x476ae9[_0x2a0c26(0x178)]??(_0x9e72f2['requiresAuth']?_0x2a0c26(0x16d):_0x2a0c26(0x173))};}function a80_0x3ea8(){const _0x1f2dba=['4937290zXPFww','required','43raGAoR','2694498RSDifD','map','4XROosx','../commands/registry.js','none','15aZdlpm','328kACaUd','8145543tldBBZ','240234DfvmBx','auth','43702SoFHwJ','37266900dUfbyJ','service','171567OUABsM','filter'];a80_0x3ea8=function(){return _0x1f2dba;};return a80_0x3ea8();}
1
+ (function(_0x529e50,_0x51b90a){const _0x280afd=a80_0x181d,_0x2339f2=_0x529e50();while(!![]){try{const _0x445c86=parseInt(_0x280afd(0x1eb))/0x1*(parseInt(_0x280afd(0x1dc))/0x2)+parseInt(_0x280afd(0x1da))/0x3*(parseInt(_0x280afd(0x1e6))/0x4)+parseInt(_0x280afd(0x1e9))/0x5+-parseInt(_0x280afd(0x1e7))/0x6+-parseInt(_0x280afd(0x1e3))/0x7*(-parseInt(_0x280afd(0x1d9))/0x8)+parseInt(_0x280afd(0x1dd))/0x9*(parseInt(_0x280afd(0x1ea))/0xa)+-parseInt(_0x280afd(0x1e2))/0xb;if(_0x445c86===_0x51b90a)break;else _0x2339f2['push'](_0x2339f2['shift']());}catch(_0x54e23a){_0x2339f2['push'](_0x2339f2['shift']());}}}(a80_0x30c9,0x8f4d9));import{buildSchemaPayload as a80_0x301dd3}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 _0x6e984c=a80_0x181d,{serviceRegistry:_0x5e658c,findDefinition:_0x598458}=await import(_0x6e984c(0x1ec)),_0x36e18a=new Set(_0x5e658c[_0x6e984c(0x1de)](_0x39a783=>_0x39a783['service'])),_0x1429ff=listDynamicServiceEntries()[_0x6e984c(0x1e5)](_0x44ba01=>!_0x36e18a[_0x6e984c(0x1df)](_0x44ba01[_0x6e984c(0x1ee)])),_0x13761f=a80_0x301dd3({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x5e658c,..._0x1429ff],'buildAllFlags':buildAllFlags,'findDefinition':(_0x596af7,_0x3fe519)=>_0x598458(_0x596af7,_0x3fe519)??findDynamicServiceDefinition(_0x596af7,_0x3fe519)});return normalizeSchemaPayload(_0x13761f);}function normalizeSchemaPayload(_0x4466c8){const _0x54490a=a80_0x181d;return{..._0x4466c8,'schemaVersion':0x2,'services':_0x4466c8[_0x54490a(0x1e8)]['map'](_0x127b4c=>({..._0x127b4c,'commands':_0x127b4c[_0x54490a(0x1e0)]['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x105664){const _0x42654a=a80_0x181d,_0x50c37f=_0x105664;return{..._0x105664,'auth':_0x50c37f[_0x42654a(0x1ed)]??(_0x105664[_0x42654a(0x1db)]?_0x42654a(0x1e4):_0x42654a(0x1e1))};}function a80_0x181d(_0x351267,_0x1799d5){_0x351267=_0x351267-0x1d9;const _0x30c906=a80_0x30c9();let _0x181dfb=_0x30c906[_0x351267];return _0x181dfb;}function a80_0x30c9(){const _0x3a88dd=['1214523dChtMG','map','has','commands','none','13886235LMzTWH','150857TUxsUe','required','filter','374228JYHWmR','6594762wpMdyi','services','2466205NNPdVx','30hsMLHt','53eOUJcP','../commands/registry.js','auth','service','128SdGOAI','24WeWDha','requiresAuth','36118PvyQdr'];a80_0x30c9=function(){return _0x3a88dd;};return a80_0x30c9();}
@@ -1 +1 @@
1
- function a81_0x3983(_0xc4a836,_0x3d245e){_0xc4a836=_0xc4a836-0x1a1;var _0x1254ba=a81_0x1254();var _0x398367=_0x1254ba[_0xc4a836];return _0x398367;}(function(_0x53fe8f,_0x1cb1be){var _0x4e50bb=a81_0x3983,_0xbb28bf=_0x53fe8f();while(!![]){try{var _0x109824=-parseInt(_0x4e50bb(0x1a6))/0x1*(-parseInt(_0x4e50bb(0x1a1))/0x2)+parseInt(_0x4e50bb(0x1a5))/0x3+-parseInt(_0x4e50bb(0x1a9))/0x4+parseInt(_0x4e50bb(0x1a4))/0x5+-parseInt(_0x4e50bb(0x1a7))/0x6+-parseInt(_0x4e50bb(0x1a8))/0x7+parseInt(_0x4e50bb(0x1a3))/0x8*(parseInt(_0x4e50bb(0x1a2))/0x9);if(_0x109824===_0x1cb1be)break;else _0xbb28bf['push'](_0xbb28bf['shift']());}catch(_0x133334){_0xbb28bf['push'](_0xbb28bf['shift']());}}}(a81_0x1254,0xe5087));function a81_0x1254(){var _0x118ab0=['21146292YZsJWE','8buhNYB','1784905imvLZh','1852338etBjJk','192KDhPwH','2567778dMOMME','12301212Jlhykv','3700900fxZBqi','7548PjFyve'];a81_0x1254=function(){return _0x118ab0;};return a81_0x1254();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a81_0x3b33(_0x2a6e2b,_0x3360ce){_0x2a6e2b=_0x2a6e2b-0xe6;var _0x458641=a81_0x4586();var _0x3b33fb=_0x458641[_0x2a6e2b];return _0x3b33fb;}(function(_0x3fce55,_0x2facbb){var _0x2a8265=a81_0x3b33,_0x5c1246=_0x3fce55();while(!![]){try{var _0x12c520=-parseInt(_0x2a8265(0xe7))/0x1*(-parseInt(_0x2a8265(0xec))/0x2)+-parseInt(_0x2a8265(0xed))/0x3+-parseInt(_0x2a8265(0xee))/0x4*(-parseInt(_0x2a8265(0xeb))/0x5)+parseInt(_0x2a8265(0xe8))/0x6+-parseInt(_0x2a8265(0xea))/0x7+-parseInt(_0x2a8265(0xef))/0x8*(parseInt(_0x2a8265(0xe9))/0x9)+-parseInt(_0x2a8265(0xe6))/0xa*(-parseInt(_0x2a8265(0xf0))/0xb);if(_0x12c520===_0x2facbb)break;else _0x5c1246['push'](_0x5c1246['shift']());}catch(_0x5c7f94){_0x5c1246['push'](_0x5c1246['shift']());}}}(a81_0x4586,0xe38ae));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a81_0x4586(){var _0x5431a9=['143zSvvLD','1292040hqPogw','462162cySCkQ','314352bCsNjZ','198JOtEVg','8602587VOQuoe','660255nkjtzx','2AHBcoF','531996PJUBTY','52mrBnSB','571848SuGFAI'];a81_0x4586=function(){return _0x5431a9;};return a81_0x4586();}
@@ -1 +1 @@
1
- const a82_0x18fd9c=a82_0x2a8e;(function(_0x44fdf9,_0x3c9fb0){const _0x25fd74=a82_0x2a8e,_0x3ea8a2=_0x44fdf9();while(!![]){try{const _0x1ec4e5=parseInt(_0x25fd74(0x1bd))/0x1*(parseInt(_0x25fd74(0x1b9))/0x2)+parseInt(_0x25fd74(0x1bc))/0x3+parseInt(_0x25fd74(0x1bf))/0x4*(parseInt(_0x25fd74(0x1bb))/0x5)+-parseInt(_0x25fd74(0x1be))/0x6+-parseInt(_0x25fd74(0x1b8))/0x7+-parseInt(_0x25fd74(0x1c3))/0x8+parseInt(_0x25fd74(0x1c1))/0x9;if(_0x1ec4e5===_0x3c9fb0)break;else _0x3ea8a2['push'](_0x3ea8a2['shift']());}catch(_0x2d6b01){_0x3ea8a2['push'](_0x3ea8a2['shift']());}}}(a82_0x372a,0x5f4fb));export const VERSION=a82_0x18fd9c(0x1c2);export const GIT_TAG=a82_0x18fd9c(0x1c0);export const GIT_COMMIT=a82_0x18fd9c(0x1ba);export const BUILD_TIME='2026-07-05T09:37:51.312Z';function a82_0x2a8e(_0x5d74f4,_0x3a8610){_0x5d74f4=_0x5d74f4-0x1b8;const _0x372a74=a82_0x372a();let _0x2a8efc=_0x372a74[_0x5d74f4];return _0x2a8efc;}function a82_0x372a(){const _0x55cffc=['4ChbwDq','966774WzFMRw','389212ZdklyA','v2.1.6-beta.1','2552121XFWOIr','2.1.6-beta.1','5565720pJmoPY','2432367OBxLoP','275606TcOnKH','fdc0a95','35PHpdJd','236454mlogTx'];a82_0x372a=function(){return _0x55cffc;};return a82_0x372a();}
1
+ const a82_0x5ae6d1=a82_0x3213;(function(_0x46acdd,_0x10ca2c){const _0x40137e=a82_0x3213,_0x307158=_0x46acdd();while(!![]){try{const _0x1dfe79=parseInt(_0x40137e(0x1ac))/0x1*(-parseInt(_0x40137e(0x1aa))/0x2)+parseInt(_0x40137e(0x1ae))/0x3+parseInt(_0x40137e(0x1a7))/0x4+-parseInt(_0x40137e(0x1b4))/0x5*(parseInt(_0x40137e(0x1ad))/0x6)+parseInt(_0x40137e(0x1a9))/0x7+parseInt(_0x40137e(0x1b0))/0x8+-parseInt(_0x40137e(0x1b2))/0x9*(parseInt(_0x40137e(0x1b3))/0xa);if(_0x1dfe79===_0x10ca2c)break;else _0x307158['push'](_0x307158['shift']());}catch(_0x5858b0){_0x307158['push'](_0x307158['shift']());}}}(a82_0x163a,0x7c115));export const VERSION=a82_0x5ae6d1(0x1ab);function a82_0x163a(){const _0x497969=['999f11f','6882750GbBpTI','75628zzzege','2.1.6-beta.2','13IFHTUM','622416FGViLX','1207404rjMKdH','2026-07-05T15:19:25.838Z','2184832LjMUnU','v2.1.6-beta.2','9aoOzjM','9190710xYSFQC','30UJVhYx','3529712Udyteh'];a82_0x163a=function(){return _0x497969;};return a82_0x163a();}export const GIT_TAG=a82_0x5ae6d1(0x1b1);function a82_0x3213(_0x1a8e47,_0x47adee){_0x1a8e47=_0x1a8e47-0x1a7;const _0x163acc=a82_0x163a();let _0x321317=_0x163acc[_0x1a8e47];return _0x321317;}export const GIT_COMMIT=a82_0x5ae6d1(0x1a8);export const BUILD_TIME=a82_0x5ae6d1(0x1af);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2f4886,_0x4a0b94){const _0x1adad6=a83_0xd1c4,_0x1ed072=_0x2f4886();while(!![]){try{const _0x37434f=parseInt(_0x1adad6(0x110))/0x1+parseInt(_0x1adad6(0x10e))/0x2*(parseInt(_0x1adad6(0x119))/0x3)+parseInt(_0x1adad6(0x115))/0x4+-parseInt(_0x1adad6(0x117))/0x5+parseInt(_0x1adad6(0x116))/0x6*(parseInt(_0x1adad6(0x118))/0x7)+-parseInt(_0x1adad6(0x113))/0x8+-parseInt(_0x1adad6(0x111))/0x9;if(_0x37434f===_0x4a0b94)break;else _0x1ed072['push'](_0x1ed072['shift']());}catch(_0x19bd7c){_0x1ed072['push'](_0x1ed072['shift']());}}}(a83_0x3e02,0x84027));function a83_0xd1c4(_0x475fa8,_0x176de6){_0x475fa8=_0x475fa8-0x10e;const _0x3e02b3=a83_0x3e02();let _0xd1c4a0=_0x3e02b3[_0x475fa8];return _0xd1c4a0;}import{jsx as a83_0x59acd2,jsxs as a83_0x3f2d24}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a83_0x3e02(){const _0x5c317b=['178608PEwwtr','24aMecDk','column','550061IsYLtH','8248914EuuhWC','\x20to\x20view\x20available\x20commands.','2055624FzjrBi','green','1076804aBZfKf','2366832nlwgtV','1069780XJvdUa','7kmCCrw'];a83_0x3e02=function(){return _0x5c317b;};return a83_0x3e02();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0xfd2475=a83_0xd1c4,{exit:_0xbf5cc0}=useApp();return useEffect(()=>{_0xbf5cc0();},[_0xbf5cc0]),a83_0x3f2d24(Box,{'flexDirection':_0xfd2475(0x10f),'marginTop':0x1,'marginBottom':0x1,'children':[a83_0x59acd2(Box,{'children':a83_0x59acd2(Text,{'bold':!![],'color':_0xfd2475(0x114),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x3f2d24(Box,{'marginTop':0x1,'children':[a83_0x59acd2(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a83_0x59acd2(Text,{'bold':!![],'color':_0xfd2475(0x114),'children':CLI_BIN_NAME+'\x20--help'}),a83_0x59acd2(Text,{'dimColor':!![],'children':_0xfd2475(0x112)})]})]});}
1
+ (function(_0xbbb9d7,_0x2fe3e2){const _0x4141a2=a83_0xe9ab,_0x350ec2=_0xbbb9d7();while(!![]){try{const _0xb124f5=parseInt(_0x4141a2(0xfd))/0x1*(parseInt(_0x4141a2(0xf1))/0x2)+parseInt(_0x4141a2(0xf0))/0x3*(-parseInt(_0x4141a2(0xf4))/0x4)+-parseInt(_0x4141a2(0xf8))/0x5+-parseInt(_0x4141a2(0xf3))/0x6*(-parseInt(_0x4141a2(0xfc))/0x7)+-parseInt(_0x4141a2(0xf7))/0x8*(-parseInt(_0x4141a2(0xf9))/0x9)+parseInt(_0x4141a2(0xf6))/0xa+-parseInt(_0x4141a2(0xfa))/0xb*(parseInt(_0x4141a2(0xfe))/0xc);if(_0xb124f5===_0x2fe3e2)break;else _0x350ec2['push'](_0x350ec2['shift']());}catch(_0x1f6e7c){_0x350ec2['push'](_0x350ec2['shift']());}}}(a83_0x2a5e,0xcf638));import{jsx as a83_0x14b60b,jsxs as a83_0x896d8b}from'react/jsx-runtime';import{useEffect}from'react';function a83_0x2a5e(){const _0x39be93=['10498VYPGJe','168912vmAfSG','column','608817ySGCbg','154zOIwAZ','green','6624564kCHNjh','24pqLwal','\x20to\x20view\x20available\x20commands.','13539790WXDeQL','141176ZjgETg','1041400wMJSou','837RjWmhg','2057hQJVoZ','\x20--help','7KCzJPv'];a83_0x2a5e=function(){return _0x39be93;};return a83_0x2a5e();}function a83_0xe9ab(_0xbb93ff,_0xdab973){_0xbb93ff=_0xbb93ff-0xf0;const _0x2a5e94=a83_0x2a5e();let _0xe9abf0=_0x2a5e94[_0xbb93ff];return _0xe9abf0;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x1ecf8a=a83_0xe9ab,{exit:_0x16235c}=useApp();return useEffect(()=>{_0x16235c();},[_0x16235c]),a83_0x896d8b(Box,{'flexDirection':_0x1ecf8a(0xff),'marginTop':0x1,'marginBottom':0x1,'children':[a83_0x14b60b(Box,{'children':a83_0x14b60b(Text,{'bold':!![],'color':_0x1ecf8a(0xf2),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0x896d8b(Box,{'marginTop':0x1,'children':[a83_0x14b60b(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a83_0x14b60b(Text,{'bold':!![],'color':_0x1ecf8a(0xf2),'children':CLI_BIN_NAME+_0x1ecf8a(0xfb)}),a83_0x14b60b(Text,{'dimColor':!![],'children':_0x1ecf8a(0xf5)})]})]});}
@@ -1 +1 @@
1
- (function(_0x2839b3,_0x5c271e){const _0x31f1bc=a84_0x5ff2,_0x1494d3=_0x2839b3();while(!![]){try{const _0x2c7170=parseInt(_0x31f1bc(0xaa))/0x1*(parseInt(_0x31f1bc(0xad))/0x2)+-parseInt(_0x31f1bc(0xb6))/0x3*(-parseInt(_0x31f1bc(0xbb))/0x4)+parseInt(_0x31f1bc(0xb1))/0x5+parseInt(_0x31f1bc(0xba))/0x6*(parseInt(_0x31f1bc(0xa5))/0x7)+-parseInt(_0x31f1bc(0xb3))/0x8*(-parseInt(_0x31f1bc(0xa4))/0x9)+parseInt(_0x31f1bc(0xa9))/0xa*(-parseInt(_0x31f1bc(0xab))/0xb)+parseInt(_0x31f1bc(0xa7))/0xc*(-parseInt(_0x31f1bc(0xb7))/0xd);if(_0x2c7170===_0x5c271e)break;else _0x1494d3['push'](_0x1494d3['shift']());}catch(_0x6f5565){_0x1494d3['push'](_0x1494d3['shift']());}}}(a84_0x5292,0xc50db));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a84_0x5ff2(_0x11f8bb,_0x28790c){_0x11f8bb=_0x11f8bb-0xa3;const _0x5292c5=a84_0x5292();let _0x5ff2f3=_0x5292c5[_0x11f8bb];return _0x5ff2f3;}import{LOVRABET_SKILL_SOURCE as a84_0x1847de}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a84_0x1847de;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}function a84_0x5292(){const _0x3f90ca=['72sRvHZU','4UkKuTi','status','1088487mvdqYc','114989SxSmYM','trim','24qFJnyH','pipe','40CeERYb','1258931SZFSPe','2090319ILNIOl','stdout','2TCeLyl','join','inherit','stderr','7515390ddouTF','npx','24izOuAX','exit\x20','unknown','3058203UOOwgj','18031754PucaoQ','toString','skills'];a84_0x5292=function(){return _0x3f90ca;};return a84_0x5292();}export function runNpxSkillsAddGlobal(_0x3694cf,_0x597410=LOVRABET_SKILL_SOURCE,_0x5b8f3c){const _0x1da750=a84_0x5ff2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1b1fc0=_0x5b8f3c?.['stdio']??_0x1da750(0xaf),_0x49fca9=resolveNpmBin(_0x1da750(0xb2)),_0x423234=[_0x1da750(0xb9),'add',_0x597410,'-g','-y'],_0xee3135=[_0x49fca9,..._0x423234][_0x1da750(0xae)]('\x20');console['log']('*\x20'+_0xee3135);const _0x3a33bb=spawnSync(_0x49fca9,_0x423234,{'cwd':_0x3694cf,'stdio':_0x1b1fc0,'env':process.env,'shell':![]});if(_0x3a33bb[_0x1da750(0xa3)]===0x0)return{'ok':!![],'status':0x0};let _0x4fdaa6=_0x1da750(0xb4)+(_0x3a33bb['status']??_0x1da750(0xb5));if(_0x1b1fc0===_0x1da750(0xa8)){const _0x5123d6=_0x3a33bb[_0x1da750(0xb0)]?_0x3a33bb[_0x1da750(0xb0)][_0x1da750(0xb8)]()[_0x1da750(0xa6)]():'',_0x2e77fd=_0x3a33bb[_0x1da750(0xac)]?_0x3a33bb[_0x1da750(0xac)][_0x1da750(0xb8)]()[_0x1da750(0xa6)]():'';if(_0x5123d6)_0x4fdaa6=_0x5123d6;else{if(_0x2e77fd)_0x4fdaa6=_0x2e77fd;}}return{'ok':![],'status':_0x3a33bb[_0x1da750(0xa3)]??null,'error':_0x4fdaa6};}
1
+ function a84_0x371e(_0x1fd717,_0x7790b4){_0x1fd717=_0x1fd717-0x188;const _0x2e00c4=a84_0x2e00();let _0x371ec9=_0x2e00c4[_0x1fd717];return _0x371ec9;}const a84_0x422a9a=a84_0x371e;(function(_0xa7227a,_0x1796b8){const _0x181a46=a84_0x371e,_0x8f53fb=_0xa7227a();while(!![]){try{const _0x47caea=parseInt(_0x181a46(0x196))/0x1+-parseInt(_0x181a46(0x19e))/0x2*(parseInt(_0x181a46(0x199))/0x3)+-parseInt(_0x181a46(0x197))/0x4+-parseInt(_0x181a46(0x18f))/0x5+-parseInt(_0x181a46(0x18c))/0x6*(-parseInt(_0x181a46(0x18a))/0x7)+parseInt(_0x181a46(0x192))/0x8+parseInt(_0x181a46(0x191))/0x9*(parseInt(_0x181a46(0x189))/0xa);if(_0x47caea===_0x1796b8)break;else _0x8f53fb['push'](_0x8f53fb['shift']());}catch(_0x43357a){_0x8f53fb['push'](_0x8f53fb['shift']());}}}(a84_0x2e00,0xe2c92));import{spawnSync}from'node:child_process';function a84_0x2e00(){const _0x425dbf=['3RLmeKc','stdio','exit\x20','inherit','unknown','3195446OffpDF','trim','stderr','14589730jldFWh','26789WuFHea','stdout','1788BscxmI','pipe','toString','4063900vGKMRb','add','9lVWoGd','3241256TJGvBi','skills','skipNpxSkillsEnvSuffix','status','545826AiRyCF','843940WemaBb','join'];a84_0x2e00=function(){return _0x425dbf;};return a84_0x2e00();}import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a84_0x154bcf}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a84_0x154bcf;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a84_0x422a9a(0x194)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x1c4a38,_0x5d7ed6=LOVRABET_SKILL_SOURCE,_0x5a7600){const _0x12988c=a84_0x422a9a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x118b6e=_0x5a7600?.[_0x12988c(0x19a)]??_0x12988c(0x19c),_0x113ecd=resolveNpmBin('npx'),_0x374ee0=[_0x12988c(0x193),_0x12988c(0x190),_0x5d7ed6,'-g','-y'],_0x1326c8=[_0x113ecd,..._0x374ee0][_0x12988c(0x198)]('\x20');console['log']('*\x20'+_0x1326c8);const _0xa443f9=spawnSync(_0x113ecd,_0x374ee0,{'cwd':_0x1c4a38,'stdio':_0x118b6e,'env':process.env,'shell':![]});if(_0xa443f9[_0x12988c(0x195)]===0x0)return{'ok':!![],'status':0x0};let _0xc45be7=_0x12988c(0x19b)+(_0xa443f9['status']??_0x12988c(0x19d));if(_0x118b6e===_0x12988c(0x18d)){const _0x16f8d7=_0xa443f9[_0x12988c(0x188)]?_0xa443f9[_0x12988c(0x188)][_0x12988c(0x18e)]()[_0x12988c(0x19f)]():'',_0x11dc71=_0xa443f9[_0x12988c(0x18b)]?_0xa443f9[_0x12988c(0x18b)]['toString']()[_0x12988c(0x19f)]():'';if(_0x16f8d7)_0xc45be7=_0x16f8d7;else{if(_0x11dc71)_0xc45be7=_0x11dc71;}}return{'ok':![],'status':_0xa443f9[_0x12988c(0x195)]??null,'error':_0xc45be7};}
@@ -1 +1 @@
1
- const a85_0x292ede=a85_0x31a4;(function(_0x5c8017,_0x4ed9b9){const _0x44456e=a85_0x31a4,_0xd87992=_0x5c8017();while(!![]){try{const _0x2bc886=-parseInt(_0x44456e(0x93))/0x1*(-parseInt(_0x44456e(0x92))/0x2)+-parseInt(_0x44456e(0x94))/0x3+-parseInt(_0x44456e(0x9e))/0x4*(parseInt(_0x44456e(0x95))/0x5)+-parseInt(_0x44456e(0xa4))/0x6*(parseInt(_0x44456e(0x9b))/0x7)+-parseInt(_0x44456e(0xa5))/0x8*(-parseInt(_0x44456e(0x99))/0x9)+parseInt(_0x44456e(0xa7))/0xa+parseInt(_0x44456e(0x9a))/0xb;if(_0x2bc886===_0x4ed9b9)break;else _0xd87992['push'](_0xd87992['shift']());}catch(_0x5452f7){_0xd87992['push'](_0xd87992['shift']());}}}(a85_0x3b33,0xc40ba));function a85_0x3b33(){const _0x5a4086=['18589538kLGGbF','7xMpfyl','lovrabet.skill.json','SKILL.md','10268nftzXY','node_modules','.DS_Store','.next','.cache','build','840318mwuGLe','216kDmgad','dist','7888530qAKsZh','4vLvtRp','58570KtptRp','1595967HGOtPK','2570BbAiZD','.git','coverage','.hg','66177NlrKuq'];a85_0x3b33=function(){return _0x5a4086;};return a85_0x3b33();}export const METADATA_FILE=a85_0x292ede(0x9c);export const SKILL_FILE=a85_0x292ede(0x9d);export const MAX_SKILL_FILE_COUNT=0xc8;export const MAX_SKILL_FILE_BYTES=0x100*0x400;export const MAX_SKILL_TOTAL_BYTES=0x2*0x400*0x400;export const MAX_SKILL_PACKAGE_BYTES=0x4*0x400*0x400;function a85_0x31a4(_0x263a43,_0x3c6b62){_0x263a43=_0x263a43-0x92;const _0x3b33f3=a85_0x3b33();let _0x31a484=_0x3b33f3[_0x263a43];return _0x31a484;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0x292ede(0xa0)]);export const IGNORED_DIR_NAMES=new Set([a85_0x292ede(0x96),a85_0x292ede(0x98),'.svn',a85_0x292ede(0x9f),a85_0x292ede(0xa1),a85_0x292ede(0xa6),a85_0x292ede(0xa3),a85_0x292ede(0x97),'.turbo',a85_0x292ede(0xa2)]);
1
+ const a85_0x591e14=a85_0x24d9;(function(_0x21658a,_0x1bd5c9){const _0x48c817=a85_0x24d9,_0x5c2e1d=_0x21658a();while(!![]){try{const _0x14c29c=parseInt(_0x48c817(0x1c9))/0x1*(parseInt(_0x48c817(0x1c4))/0x2)+-parseInt(_0x48c817(0x1c0))/0x3+parseInt(_0x48c817(0x1ce))/0x4*(-parseInt(_0x48c817(0x1cb))/0x5)+parseInt(_0x48c817(0x1be))/0x6*(-parseInt(_0x48c817(0x1b9))/0x7)+-parseInt(_0x48c817(0x1c5))/0x8+-parseInt(_0x48c817(0x1ca))/0x9+-parseInt(_0x48c817(0x1cd))/0xa*(-parseInt(_0x48c817(0x1c8))/0xb);if(_0x14c29c===_0x1bd5c9)break;else _0x5c2e1d['push'](_0x5c2e1d['shift']());}catch(_0x869380){_0x5c2e1d['push'](_0x5c2e1d['shift']());}}}(a85_0x503d,0xa6975));export const METADATA_FILE=a85_0x591e14(0x1c2);export const SKILL_FILE=a85_0x591e14(0x1ba);export const MAX_SKILL_FILE_COUNT=0xc8;export const MAX_SKILL_FILE_BYTES=0x100*0x400;export const MAX_SKILL_TOTAL_BYTES=0x2*0x400*0x400;function a85_0x503d(){const _0x21ed4a=['7103169rmDvXv','35XXhcTi','coverage','23869310POciDR','53564KaCapA','171339jpbqht','SKILL.md','.DS_Store','.next','.cache','30GXMQGy','.git','2118897UVSsIm','.svn','lovrabet.skill.json','dist','358118ikwOyT','1375768RjTITa','.turbo','.hg','11kpTAal','1PeqgRV'];a85_0x503d=function(){return _0x21ed4a;};return a85_0x503d();}export const MAX_SKILL_PACKAGE_BYTES=0x4*0x400*0x400;export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0x591e14(0x1bb)]);function a85_0x24d9(_0x5d297e,_0x3ff95d){_0x5d297e=_0x5d297e-0x1b9;const _0x503d64=a85_0x503d();let _0x24d933=_0x503d64[_0x5d297e];return _0x24d933;}export const IGNORED_DIR_NAMES=new Set([a85_0x591e14(0x1bf),a85_0x591e14(0x1c7),a85_0x591e14(0x1c1),'node_modules',a85_0x591e14(0x1bc),a85_0x591e14(0x1c3),'build',a85_0x591e14(0x1cc),a85_0x591e14(0x1c6),a85_0x591e14(0x1bd)]);
@@ -1 +1 @@
1
- (function(_0x475b4a,_0x51edb0){const _0x5c725f=a86_0x17d3,_0x63c905=_0x475b4a();while(!![]){try{const _0x426422=parseInt(_0x5c725f(0x16d))/0x1*(-parseInt(_0x5c725f(0x16f))/0x2)+parseInt(_0x5c725f(0x177))/0x3*(parseInt(_0x5c725f(0x178))/0x4)+-parseInt(_0x5c725f(0x16a))/0x5+parseInt(_0x5c725f(0x16e))/0x6*(parseInt(_0x5c725f(0x169))/0x7)+parseInt(_0x5c725f(0x171))/0x8+parseInt(_0x5c725f(0x172))/0x9+-parseInt(_0x5c725f(0x167))/0xa;if(_0x426422===_0x51edb0)break;else _0x63c905['push'](_0x63c905['shift']());}catch(_0x3a7209){_0x63c905['push'](_0x63c905['shift']());}}}(a86_0x5bfd,0x86908));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(_0x254795,_0xdc5136){const _0x4309d9=a86_0x17d3,_0x475602=normalizeSkillRelativePath(_0xdc5136),_0x23eeac=realOrResolved(_0x254795),_0x3a1886=resolve(_0x23eeac,..._0x475602[_0x4309d9(0x174)]('/'));if(!isPathInside(_0x3a1886,_0x23eeac))throw CliErrors['validation'](_0x4309d9(0x16c)+_0xdc5136);return ensureNoSymlinkInManagedPath(_0x23eeac,_0x475602),_0x3a1886;}function a86_0x17d3(_0x4a70a6,_0x13230e){_0x4a70a6=_0x4a70a6-0x167;const _0x5bfdc7=a86_0x5bfd();let _0x17d36d=_0x5bfdc7[_0x4a70a6];return _0x17d36d;}export function ensureNoSymlinkInManagedPath(_0x29c204,_0x18d4d3){const _0x4350a8=a86_0x17d3;let _0x4b3944=_0x29c204;for(const _0x2d6514 of _0x18d4d3['split']('/')){_0x4b3944=resolve(_0x4b3944,_0x2d6514);const _0x32ae90=lstatIfPresent(_0x4b3944);if(_0x32ae90?.[_0x4350a8(0x173)]())throw CliErrors['validation'](_0x4350a8(0x170)+_0x18d4d3);}}export function isDanglingSymlink(_0xecec1a){const _0x553df9=a86_0x17d3;try{return lstatSync(_0xecec1a)[_0x553df9(0x173)]();}catch{return![];}}export function resolveSymlinkTarget(_0x19de91){const _0x2cd556=readlinkSync(_0x19de91);return isAbsolute(_0x2cd556)?_0x2cd556:resolve(dirname(_0x19de91),_0x2cd556);}function a86_0x5bfd(){const _0x3e9dcb=['6757173kKTCgj','isSymbolicLink','split','endsWith','.tmp','2705889XmCUxK','4dPljuN','7787620fsONFi','startsWith','33985qeUvpy','3749120acWHTT','from','Unsafe\x20Skill\x20file\x20path:\x20','109883oYatdG','306wGWgBV','14OeXHqg','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','7588624KTGTLk'];a86_0x5bfd=function(){return _0x3e9dcb;};return a86_0x5bfd();}export function isPathInside(_0x1e8c91,_0x548ad7){const _0x21b46c=a86_0x17d3,_0x373970=_0x1e8c91[_0x21b46c(0x175)](sep)?_0x1e8c91:''+_0x1e8c91+sep,_0x5cb467=_0x548ad7[_0x21b46c(0x175)](sep)?_0x548ad7:''+_0x548ad7+sep;return _0x1e8c91===_0x548ad7||_0x373970[_0x21b46c(0x168)](_0x5cb467);}export function realOrResolved(_0xcd4511){try{return realpathSync(_0xcd4511);}catch{return resolve(_0xcd4511);}}export function lstatIfPresent(_0x4fa35f){try{return lstatSync(_0x4fa35f);}catch{return undefined;}}export function writeTextAtomic(_0x2cec26,_0x6a75a1,_0x5517e0){const _0x544597=a86_0x17d3;writeBytesAtomic(_0x2cec26,Buffer[_0x544597(0x16b)](_0x6a75a1,'utf8'),_0x5517e0);}export function writeBytesAtomic(_0x38b9bb,_0x5d43f3,_0x45f139){const _0x4cfe04=a86_0x17d3,_0x20e155=_0x38b9bb+_0x4cfe04(0x176);try{writeFileSync(_0x20e155,_0x5d43f3,{'mode':_0x45f139}),renameSync(_0x20e155,_0x38b9bb);}catch(_0x4c8a70){try{rmSync(_0x20e155,{'force':!![]});}catch{}throw _0x4c8a70;}}export function writeJsonAtomic(_0x3bbfc0,_0x1422ba){writeTextAtomic(_0x3bbfc0,JSON['stringify'](_0x1422ba,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x31425b,_0xe29355){const _0x34a37a=a86_0x405b,_0x4e6686=_0x31425b();while(!![]){try{const _0x309210=parseInt(_0x34a37a(0xcb))/0x1+parseInt(_0x34a37a(0xdd))/0x2*(parseInt(_0x34a37a(0xcd))/0x3)+-parseInt(_0x34a37a(0xdc))/0x4+parseInt(_0x34a37a(0xd6))/0x5+parseInt(_0x34a37a(0xd4))/0x6+parseInt(_0x34a37a(0xd9))/0x7*(-parseInt(_0x34a37a(0xcc))/0x8)+-parseInt(_0x34a37a(0xd2))/0x9*(parseInt(_0x34a37a(0xce))/0xa);if(_0x309210===_0xe29355)break;else _0x4e6686['push'](_0x4e6686['shift']());}catch(_0x1f46d1){_0x4e6686['push'](_0x4e6686['shift']());}}}(a86_0x261e,0x2f63d));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';function a86_0x261e(){const _0x4a000d=['from','198632sJeVtV','.tmp','isSymbolicLink','916380zMYXRL','38IXxOYb','352572rvqYel','40HYAsup','22539fcCpmz','791030sSAjan','Unsafe\x20Skill\x20file\x20path:\x20','endsWith','split','63astLSf','startsWith','1988676jqVQdH','validation','1460200PrWtUg','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'];a86_0x261e=function(){return _0x4a000d;};return a86_0x261e();}export function resolveManagedFilePath(_0x526797,_0x16c420){const _0x292c43=a86_0x405b,_0x280b12=normalizeSkillRelativePath(_0x16c420),_0x56d41d=realOrResolved(_0x526797),_0x124168=resolve(_0x56d41d,..._0x280b12['split']('/'));if(!isPathInside(_0x124168,_0x56d41d))throw CliErrors[_0x292c43(0xd5)](_0x292c43(0xcf)+_0x16c420);return ensureNoSymlinkInManagedPath(_0x56d41d,_0x280b12),_0x124168;}export function ensureNoSymlinkInManagedPath(_0x465ac6,_0x4430d8){const _0x4f10a0=a86_0x405b;let _0x147186=_0x465ac6;for(const _0x4738e0 of _0x4430d8[_0x4f10a0(0xd1)]('/')){_0x147186=resolve(_0x147186,_0x4738e0);const _0x20eff1=lstatIfPresent(_0x147186);if(_0x20eff1?.['isSymbolicLink']())throw CliErrors['validation'](_0x4f10a0(0xd7)+_0x4430d8);}}export function isDanglingSymlink(_0x2eadd7){const _0x5e4c1c=a86_0x405b;try{return lstatSync(_0x2eadd7)[_0x5e4c1c(0xdb)]();}catch{return![];}}function a86_0x405b(_0x3f3381,_0x4cba5f){_0x3f3381=_0x3f3381-0xcb;const _0x261e18=a86_0x261e();let _0x405b78=_0x261e18[_0x3f3381];return _0x405b78;}export function resolveSymlinkTarget(_0x48501e){const _0x22d4f3=readlinkSync(_0x48501e);return isAbsolute(_0x22d4f3)?_0x22d4f3:resolve(dirname(_0x48501e),_0x22d4f3);}export function isPathInside(_0x15df48,_0x1ac3af){const _0x4000f4=a86_0x405b,_0xc7ff5a=_0x15df48[_0x4000f4(0xd0)](sep)?_0x15df48:''+_0x15df48+sep,_0x2636cb=_0x1ac3af[_0x4000f4(0xd0)](sep)?_0x1ac3af:''+_0x1ac3af+sep;return _0x15df48===_0x1ac3af||_0xc7ff5a[_0x4000f4(0xd3)](_0x2636cb);}export function realOrResolved(_0x30e8dd){try{return realpathSync(_0x30e8dd);}catch{return resolve(_0x30e8dd);}}export function lstatIfPresent(_0x4dbe6b){try{return lstatSync(_0x4dbe6b);}catch{return undefined;}}export function writeTextAtomic(_0x98d307,_0x468314,_0x64acb1){const _0x43fa61=a86_0x405b;writeBytesAtomic(_0x98d307,Buffer[_0x43fa61(0xd8)](_0x468314,'utf8'),_0x64acb1);}export function writeBytesAtomic(_0xb64366,_0x54e3db,_0x2ced2a){const _0x2cddb9=a86_0x405b,_0x23ed5b=_0xb64366+_0x2cddb9(0xda);try{writeFileSync(_0x23ed5b,_0x54e3db,{'mode':_0x2ced2a}),renameSync(_0x23ed5b,_0xb64366);}catch(_0xba8e80){try{rmSync(_0x23ed5b,{'force':!![]});}catch{}throw _0xba8e80;}}export function writeJsonAtomic(_0x2d0b8f,_0xeb39ce){writeTextAtomic(_0x2d0b8f,JSON['stringify'](_0xeb39ce,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x75afbd,_0x4c6231){const _0x42cee5=a87_0x16a6,_0x46ba90=_0x75afbd();while(!![]){try{const _0xe3300f=-parseInt(_0x42cee5(0x19c))/0x1*(-parseInt(_0x42cee5(0x19d))/0x2)+-parseInt(_0x42cee5(0x19a))/0x3*(-parseInt(_0x42cee5(0x193))/0x4)+parseInt(_0x42cee5(0x19b))/0x5*(-parseInt(_0x42cee5(0x192))/0x6)+-parseInt(_0x42cee5(0x1a1))/0x7*(parseInt(_0x42cee5(0x195))/0x8)+-parseInt(_0x42cee5(0x196))/0x9*(parseInt(_0x42cee5(0x194))/0xa)+-parseInt(_0x42cee5(0x199))/0xb+parseInt(_0x42cee5(0x19f))/0xc;if(_0xe3300f===_0x4c6231)break;else _0x46ba90['push'](_0x46ba90['shift']());}catch(_0x14edc8){_0x46ba90['push'](_0x46ba90['shift']());}}}(a87_0x499a,0xf18af));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a87_0x16a6(_0x3ba175,_0x103b88){_0x3ba175=_0x3ba175-0x191;const _0x499abf=a87_0x499a();let _0x16a69e=_0x499abf[_0x3ba175];return _0x16a69e;}export function contentHash(_0x365c7c){const _0x5a1df9=a87_0x16a6;return createHash('sha256')[_0x5a1df9(0x19e)](_0x365c7c)[_0x5a1df9(0x191)]('hex');}export function fileHash(_0x311352){return bufferSha256(fileContent(_0x311352));}export function bufferSha256(_0x5d532d){const _0x258ac1=a87_0x16a6;return createHash(_0x258ac1(0x1a0))[_0x258ac1(0x19e)](_0x5d532d)[_0x258ac1(0x191)]('hex');}function a87_0x499a(){const _0x1030a5=['186hSsUre','52605cVuwgK','640iVjDDs','5816gUAMPO','update','40135188uZwrmz','sha256','6013assxgq','digest','1062JpiGxN','100148hXfMzX','4707490kZPSea','16160JluJCY','9BnyOkb','hex','path','18705588GealEA'];a87_0x499a=function(){return _0x1030a5;};return a87_0x499a();}export function fileTreeHash(_0x3f72b1){const _0x303208=a87_0x16a6,_0xf88273=createHash('sha256');for(const _0x8812e3 of normalizeManifestFiles(_0x3f72b1)){_0xf88273[_0x303208(0x19e)](_0x8812e3[_0x303208(0x198)]),_0xf88273[_0x303208(0x19e)]('\x00'),_0xf88273['update'](_0x8812e3[_0x303208(0x1a0)]),_0xf88273[_0x303208(0x19e)]('\x00'),_0xf88273[_0x303208(0x19e)](String(_0x8812e3['size'])),_0xf88273[_0x303208(0x19e)]('\x00');}return _0xf88273['digest'](_0x303208(0x197));}
1
+ (function(_0x22554d,_0x328074){const _0x4a8217=a87_0x7dd9,_0x1cd177=_0x22554d();while(!![]){try{const _0x52323b=-parseInt(_0x4a8217(0x181))/0x1*(parseInt(_0x4a8217(0x178))/0x2)+parseInt(_0x4a8217(0x185))/0x3*(parseInt(_0x4a8217(0x180))/0x4)+-parseInt(_0x4a8217(0x176))/0x5*(-parseInt(_0x4a8217(0x186))/0x6)+parseInt(_0x4a8217(0x183))/0x7*(-parseInt(_0x4a8217(0x17b))/0x8)+-parseInt(_0x4a8217(0x179))/0x9*(parseInt(_0x4a8217(0x182))/0xa)+parseInt(_0x4a8217(0x17c))/0xb*(parseInt(_0x4a8217(0x17e))/0xc)+parseInt(_0x4a8217(0x17a))/0xd;if(_0x52323b===_0x328074)break;else _0x1cd177['push'](_0x1cd177['shift']());}catch(_0x24748d){_0x1cd177['push'](_0x1cd177['shift']());}}}(a87_0x3e90,0x6f22a));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x57edf7){const _0x1c9623=a87_0x7dd9;return createHash(_0x1c9623(0x17d))[_0x1c9623(0x184)](_0x57edf7)['digest'](_0x1c9623(0x175));}export function fileHash(_0x53b70d){return bufferSha256(fileContent(_0x53b70d));}function a87_0x3e90(){const _0x3776ca=['158788slcHIg','9BpEyMd','20040865voOTfl','5123192jIZYLp','1332881eYpYpa','sha256','60vjBqfC','digest','12MAxeCT','11bUBGfP','7081460RHRIWq','7tXCBKL','update','55149afUVHV','142344lluXXd','path','hex','100ZbJgzB','size'];a87_0x3e90=function(){return _0x3776ca;};return a87_0x3e90();}export function bufferSha256(_0xf589b5){const _0x4f14fb=a87_0x7dd9;return createHash(_0x4f14fb(0x17d))[_0x4f14fb(0x184)](_0xf589b5)[_0x4f14fb(0x17f)]('hex');}function a87_0x7dd9(_0x2be0cb,_0x7d464){_0x2be0cb=_0x2be0cb-0x175;const _0x3e9083=a87_0x3e90();let _0x7dd93e=_0x3e9083[_0x2be0cb];return _0x7dd93e;}export function fileTreeHash(_0x4da792){const _0x57db3b=a87_0x7dd9,_0x809327=createHash(_0x57db3b(0x17d));for(const _0x5b416a of normalizeManifestFiles(_0x4da792)){_0x809327[_0x57db3b(0x184)](_0x5b416a[_0x57db3b(0x187)]),_0x809327[_0x57db3b(0x184)]('\x00'),_0x809327['update'](_0x5b416a[_0x57db3b(0x17d)]),_0x809327['update']('\x00'),_0x809327[_0x57db3b(0x184)](String(_0x5b416a[_0x57db3b(0x177)])),_0x809327[_0x57db3b(0x184)]('\x00');}return _0x809327[_0x57db3b(0x17f)](_0x57db3b(0x175));}
@@ -1 +1 @@
1
- (function(_0x27f2e5,_0x594cc6){const _0x274b70=a88_0x3aa0,_0x948741=_0x27f2e5();while(!![]){try{const _0x1b9d47=-parseInt(_0x274b70(0x156))/0x1+parseInt(_0x274b70(0x147))/0x2+-parseInt(_0x274b70(0x167))/0x3*(parseInt(_0x274b70(0x16b))/0x4)+parseInt(_0x274b70(0x149))/0x5*(parseInt(_0x274b70(0x14d))/0x6)+-parseInt(_0x274b70(0x174))/0x7*(parseInt(_0x274b70(0x15b))/0x8)+-parseInt(_0x274b70(0x142))/0x9+parseInt(_0x274b70(0x161))/0xa;if(_0x1b9d47===_0x594cc6)break;else _0x948741['push'](_0x948741['shift']());}catch(_0x5d607f){_0x948741['push'](_0x948741['shift']());}}}(a88_0x5c6f,0x8e125));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a88_0x4774cb 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_0x4774cb;export function linkEffectiveRuntimeSkills(_0xeeea2f,_0x21067f,_0x3c80b8={}){const _0x4f0111=a88_0x3aa0,_0x12dc50=new Map();for(const _0x4145fc of _0xeeea2f){const _0x51c004=_0x4145fc['skill']['skillCode'];if(!_0x51c004)continue;const _0x5509d4=_0x12dc50[_0x4f0111(0x15c)](_0x51c004);(!_0x5509d4||_0x4145fc[_0x4f0111(0x144)]==='personal')&&_0x12dc50[_0x4f0111(0x165)](_0x51c004,_0x4145fc);}const _0x179487=[],_0x3161f4=resolveSkillSyncPaths(_0x3c80b8);for(const _0x4c985f of _0x12dc50[_0x4f0111(0x16e)]()){const _0x5e8d41=requireSkillCode(_0x4c985f['skill']),_0x17290d=_0x21067f+'--'+_0x5e8d41;for(const _0x32e2d7 of[_0x3161f4['agentsSkillsDir'],_0x3161f4[_0x4f0111(0x14e)]]){_0x179487[_0x4f0111(0x16f)](ensureManagedSymlink(resolve(_0x32e2d7,_0x17290d),_0x4c985f[_0x4f0111(0x15d)],_0x3161f4[_0x4f0111(0x146)]));}}return _0x179487;}function a88_0x5c6f(){const _0x14e880=['external-symlink','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','798yZtYJl','5417343zCqYTm','personal','scope','isSymbolicLink','managedRoot','766202jUoNsZ','metadata-mismatch','415jKaYgV','name','trim','skill','17652nDtdBb','claudeSkillsDir','updated','startsWith','has','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','validation','builtin','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','368641WMecBF','isDirectory','pruneSkillCodes','unchanged','created','16944yBqsWJ','get','dir','map','filter','activeSkillCodes','21888840nTEXJS','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','accessKey','contentHash','set','appCode','3kkpzMd','removed','agentsSkillsDir','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','4088904acolvn','skipped','not-managed-symlink','values','push','skillCode'];a88_0x5c6f=function(){return _0x14e880;};return a88_0x5c6f();}export function pruneStaleRuntimeSkillLinks(_0x2e9f83,_0x41c14b,_0x1cd106={},_0x412130){const _0xed0f00=a88_0x3aa0,_0x4f7037=resolveSkillSyncPaths(_0x1cd106),_0x363a14=new Set([..._0x41c14b][_0xed0f00(0x15e)](_0x1e5377=>_0x1e5377[_0xed0f00(0x14b)]())[_0xed0f00(0x15f)](Boolean)),_0x54d53e=_0x412130?new Set([..._0x412130][_0xed0f00(0x15e)](_0x2a2006=>_0x2a2006['trim']())['filter'](Boolean)):undefined,_0x1c856a=[];for(const _0x37a8c7 of[_0x4f7037['agentsSkillsDir'],_0x4f7037[_0xed0f00(0x14e)]]){for(const _0x5d9b8e of managedAppSkillLinkPaths(_0x37a8c7,_0x2e9f83)){const _0x16ef81=basename(_0x5d9b8e)['slice']((_0x2e9f83+'--')['length']);if(_0x54d53e&&!_0x54d53e[_0xed0f00(0x151)](_0x16ef81))continue;if(_0x363a14['has'](_0x16ef81))continue;_0x1c856a[_0xed0f00(0x16f)](removeManagedSkillLink(_0x5d9b8e,_0x4f7037[_0xed0f00(0x146)]));}}return _0x1c856a;}export function pruneStaleRuntimeSkillCache(_0x323567,_0x13812e={}){const _0x5f238a=a88_0x3aa0,_0x20358d=new Set([..._0x323567[_0x5f238a(0x160)]][_0x5f238a(0x15e)](_0x4f05e9=>_0x4f05e9[_0x5f238a(0x14b)]())[_0x5f238a(0x15f)](Boolean)),_0x49940c=_0x323567[_0x5f238a(0x158)]?new Set([..._0x323567[_0x5f238a(0x158)]]['map'](_0x584a97=>_0x584a97[_0x5f238a(0x14b)]())[_0x5f238a(0x15f)](Boolean)):undefined,_0x2b51b8=_0x323567['scopes']??[_0x5f238a(0x143),'company'],_0x5cb1c8=resolve(getRuntimeSkillCacheRoot(_0x323567['env'],_0x323567[_0x5f238a(0x163)],_0x13812e),safePathSegment(_0x323567[_0x5f238a(0x166)],'appCode')),_0x28daa7=[];for(const _0x24363e of _0x2b51b8){const _0x5f1593=resolve(_0x5cb1c8,_0x24363e);if(!existsSync(_0x5f1593))continue;for(const _0x44db7c of readdirSync(_0x5f1593,{'withFileTypes':!![]})){if(!_0x44db7c['isDirectory']())continue;const _0x2170ef=_0x44db7c[_0x5f238a(0x14a)];if(_0x49940c&&!_0x49940c[_0x5f238a(0x151)](_0x2170ef))continue;if(_0x20358d[_0x5f238a(0x151)](_0x2170ef))continue;const _0x5e2586=resolve(_0x5f1593,_0x2170ef),_0x149eff=readMetadataIfPresent(resolve(_0x5e2586,METADATA_FILE));if(_0x149eff?.['appCode']!==_0x323567['appCode']||_0x149eff[_0x5f238a(0x144)]!==_0x24363e||_0x149eff[_0x5f238a(0x170)]!==_0x2170ef){_0x28daa7[_0x5f238a(0x16f)]({'path':_0x5e2586,'action':_0x5f238a(0x16c),'reason':_0x5f238a(0x148)});continue;}removeSync(_0x5e2586),_0x28daa7[_0x5f238a(0x16f)]({'path':_0x5e2586,'action':_0x5f238a(0x168)});}}return _0x28daa7;}export function linkGlobalRuntimeSkills(_0x3a1a41,_0x2857bc={}){const _0x16e85a=a88_0x3aa0,_0x1f097e=resolveSkillSyncPaths(_0x2857bc),_0x5ae5c8=[];for(const _0xee185b of _0x3a1a41){if(_0xee185b[_0x16e85a(0x144)]!==_0x16e85a(0x154))throw CliErrors[_0x16e85a(0x153)]('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0xee185b[_0x16e85a(0x144)]);const _0x21f266=requireSkillCode(_0xee185b[_0x16e85a(0x14c)]),_0x3ac12f=copyManagedSkillDirectory(_0xee185b[_0x16e85a(0x15d)],resolve(_0x1f097e[_0x16e85a(0x169)],_0x21f266));_0x5ae5c8[_0x16e85a(0x16f)]({..._0x3ac12f,'contentHash':_0xee185b[_0x16e85a(0x164)]});}return _0x5ae5c8;}function ensureManagedSymlink(_0x2f9441,_0x1685f4,_0x1df2f7){const _0x2292aa=a88_0x3aa0;mkdirSync(dirname(_0x2f9441),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x2f9441)||isDanglingSymlink(_0x2f9441)){const _0x162bda=lstatSync(_0x2f9441);if(!_0x162bda['isSymbolicLink']())throw CliErrors[_0x2292aa(0x153)](_0x2292aa(0x162)+_0x2f9441);const _0x351504=resolveSymlinkTarget(_0x2f9441);if(!isPathInside(realOrResolved(_0x351504),realOrResolved(_0x1df2f7)))throw CliErrors[_0x2292aa(0x153)](_0x2292aa(0x173)+_0x2f9441);if(realOrResolved(_0x351504)===realOrResolved(_0x1685f4))return{'path':_0x2f9441,'target':_0x1685f4,'action':_0x2292aa(0x159)};return unlinkSync(_0x2f9441),symlinkSync(_0x1685f4,_0x2f9441,_0x2292aa(0x15d)),{'path':_0x2f9441,'target':_0x1685f4,'action':_0x2292aa(0x14f)};}return symlinkSync(_0x1685f4,_0x2f9441,_0x2292aa(0x15d)),{'path':_0x2f9441,'target':_0x1685f4,'action':_0x2292aa(0x15a)};}function a88_0x3aa0(_0x29fcba,_0x5f1ce6){_0x29fcba=_0x29fcba-0x142;const _0x5c6fb9=a88_0x5c6f();let _0x3aa0d2=_0x5c6fb9[_0x29fcba];return _0x3aa0d2;}function managedAppSkillLinkPaths(_0x4d278a,_0x120947){const _0x33fd1c=a88_0x3aa0;if(!existsSync(_0x4d278a))return[];const _0x33138b=_0x120947+'--';return readdirSync(_0x4d278a,{'withFileTypes':!![]})['filter'](_0x5da864=>_0x5da864[_0x33fd1c(0x14a)][_0x33fd1c(0x150)](_0x33138b))['map'](_0x1e9bd8=>resolve(_0x4d278a,_0x1e9bd8[_0x33fd1c(0x14a)]));}function removeManagedSkillLink(_0x5643e3,_0x513f01){const _0x514f22=a88_0x3aa0,_0x28cdd5=lstatIfPresent(_0x5643e3);if(!_0x28cdd5?.[_0x514f22(0x145)]())return{'path':_0x5643e3,'action':'skipped','reason':_0x514f22(0x16d)};const _0x35b7ee=resolveSymlinkTarget(_0x5643e3);if(!isPathInside(realOrResolved(_0x35b7ee),realOrResolved(_0x513f01)))return{'path':_0x5643e3,'action':_0x514f22(0x16c),'reason':_0x514f22(0x171)};return unlinkSync(_0x5643e3),{'path':_0x5643e3,'action':_0x514f22(0x168)};}export function copyManagedSkillDirectory(_0x14b234,_0x281ffa){const _0x59c34a=a88_0x3aa0,_0x4a4bf4=resolve(_0x281ffa,METADATA_FILE),_0x1e2664=existsSync(_0x281ffa);if(_0x1e2664){const _0x1adb84=lstatSync(_0x281ffa);if(_0x1adb84['isSymbolicLink']())throw CliErrors[_0x59c34a(0x153)](_0x59c34a(0x155)+_0x281ffa);if(!_0x1adb84[_0x59c34a(0x157)]())throw CliErrors[_0x59c34a(0x153)](_0x59c34a(0x152)+_0x281ffa);const _0x5a3c92=readMetadataIfPresent(_0x4a4bf4);if(_0x5a3c92?.[_0x59c34a(0x144)]!==_0x59c34a(0x154))throw CliErrors[_0x59c34a(0x153)](_0x59c34a(0x172)+_0x281ffa);}ensureDirSync(dirname(_0x281ffa));const _0x292f16=_0x1e2664?readMetadataIfPresent(_0x4a4bf4)?.[_0x59c34a(0x164)]:undefined,_0x2d3418=readMetadataIfPresent(resolve(_0x14b234,METADATA_FILE))?.[_0x59c34a(0x164)];return _0x1e2664&&removeSync(_0x281ffa),copySkillDirectory(_0x14b234,_0x281ffa),{'path':_0x281ffa,'target':_0x14b234,'action':!_0x1e2664?_0x59c34a(0x15a):_0x292f16===_0x2d3418?'unchanged':_0x59c34a(0x14f)};}function copySkillDirectory(_0x321c6d,_0x49e72d){copySync(_0x321c6d,_0x49e72d,{'dereference':![],'overwrite':!![],'filter'(_0x32bd59){const _0x42d1d9=a88_0x3aa0;if(lstatSync(_0x32bd59)[_0x42d1d9(0x145)]())throw CliErrors['validation'](_0x42d1d9(0x16a)+_0x32bd59);return!![];}});}
1
+ (function(_0x59f97f,_0x372271){const _0x4a4fdb=a88_0x33c0,_0x380cee=_0x59f97f();while(!![]){try{const _0x5bf15b=parseInt(_0x4a4fdb(0x15b))/0x1*(-parseInt(_0x4a4fdb(0x14d))/0x2)+-parseInt(_0x4a4fdb(0x13b))/0x3+parseInt(_0x4a4fdb(0x133))/0x4*(-parseInt(_0x4a4fdb(0x158))/0x5)+-parseInt(_0x4a4fdb(0x154))/0x6*(parseInt(_0x4a4fdb(0x137))/0x7)+-parseInt(_0x4a4fdb(0x14a))/0x8+-parseInt(_0x4a4fdb(0x13e))/0x9+parseInt(_0x4a4fdb(0x12d))/0xa*(parseInt(_0x4a4fdb(0x155))/0xb);if(_0x5bf15b===_0x372271)break;else _0x380cee['push'](_0x380cee['shift']());}catch(_0x4b66c6){_0x380cee['push'](_0x380cee['shift']());}}}(a88_0x3284,0x93bfb));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';function a88_0x33c0(_0x7e71d3,_0x216743){_0x7e71d3=_0x7e71d3-0x12c;const _0x328448=a88_0x3284();let _0x33c0ce=_0x328448[_0x7e71d3];return _0x33c0ce;}import a88_0x2b53b9 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_0x2b53b9;function a88_0x3284(){const _0x4f6737=['10MXapWL','map','company','687259ASlQjR','activeSkillCodes','filter','name','skillCode','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','managedRoot','get','20kOtnGx','contentHash','skipped','pruneSkillCodes','created','claudeSkillsDir','634468fOVXSU','validation','scopes','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','64645CFPSzY','agentsSkillsDir','has','appCode','257751eMBoaC','removed','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','9078714teouer','env','scope','startsWith','trim','personal','dir','external-symlink','slice','length','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','271744ghJHaY','skill','set','2VSBKhn','isDirectory','updated','values','push','builtin','not-managed-symlink','66sMIrhf','15619384kFJrCo','isSymbolicLink','unchanged'];a88_0x3284=function(){return _0x4f6737;};return a88_0x3284();}export function linkEffectiveRuntimeSkills(_0x202460,_0x490ebe,_0x29649a={}){const _0x2ae526=a88_0x33c0,_0x30a440=new Map();for(const _0x5763fd of _0x202460){const _0x3172f0=_0x5763fd[_0x2ae526(0x14b)][_0x2ae526(0x15f)];if(!_0x3172f0)continue;const _0x540113=_0x30a440[_0x2ae526(0x12c)](_0x3172f0);(!_0x540113||_0x5763fd[_0x2ae526(0x140)]===_0x2ae526(0x143))&&_0x30a440[_0x2ae526(0x14c)](_0x3172f0,_0x5763fd);}const _0x3c150e=[],_0x512a5b=resolveSkillSyncPaths(_0x29649a);for(const _0x95cb15 of _0x30a440[_0x2ae526(0x150)]()){const _0x3e2413=requireSkillCode(_0x95cb15[_0x2ae526(0x14b)]),_0x29c4ba=_0x490ebe+'--'+_0x3e2413;for(const _0x35945e of[_0x512a5b[_0x2ae526(0x138)],_0x512a5b[_0x2ae526(0x132)]]){_0x3c150e[_0x2ae526(0x151)](ensureManagedSymlink(resolve(_0x35945e,_0x29c4ba),_0x95cb15[_0x2ae526(0x144)],_0x512a5b[_0x2ae526(0x161)]));}}return _0x3c150e;}export function pruneStaleRuntimeSkillLinks(_0x45bf85,_0x5adc3,_0x231d30={},_0x2bfeaa){const _0xa81cc3=a88_0x33c0,_0x2a41c5=resolveSkillSyncPaths(_0x231d30),_0x1f1fc3=new Set([..._0x5adc3][_0xa81cc3(0x159)](_0x1917e6=>_0x1917e6[_0xa81cc3(0x142)]())[_0xa81cc3(0x15d)](Boolean)),_0x47829e=_0x2bfeaa?new Set([..._0x2bfeaa]['map'](_0xe6d2be=>_0xe6d2be['trim']())[_0xa81cc3(0x15d)](Boolean)):undefined,_0x1e85e0=[];for(const _0x414963 of[_0x2a41c5['agentsSkillsDir'],_0x2a41c5['claudeSkillsDir']]){for(const _0x33a22e of managedAppSkillLinkPaths(_0x414963,_0x45bf85)){const _0x3216eb=basename(_0x33a22e)[_0xa81cc3(0x146)]((_0x45bf85+'--')[_0xa81cc3(0x147)]);if(_0x47829e&&!_0x47829e[_0xa81cc3(0x139)](_0x3216eb))continue;if(_0x1f1fc3[_0xa81cc3(0x139)](_0x3216eb))continue;_0x1e85e0[_0xa81cc3(0x151)](removeManagedSkillLink(_0x33a22e,_0x2a41c5[_0xa81cc3(0x161)]));}}return _0x1e85e0;}export function pruneStaleRuntimeSkillCache(_0x3bf634,_0x17dc9d={}){const _0x4f9453=a88_0x33c0,_0x5078b2=new Set([..._0x3bf634[_0x4f9453(0x15c)]]['map'](_0x16eae1=>_0x16eae1[_0x4f9453(0x142)]())[_0x4f9453(0x15d)](Boolean)),_0x24e24d=_0x3bf634[_0x4f9453(0x130)]?new Set([..._0x3bf634[_0x4f9453(0x130)]][_0x4f9453(0x159)](_0x453626=>_0x453626['trim']())[_0x4f9453(0x15d)](Boolean)):undefined,_0x499106=_0x3bf634[_0x4f9453(0x135)]??[_0x4f9453(0x143),_0x4f9453(0x15a)],_0xb5b225=resolve(getRuntimeSkillCacheRoot(_0x3bf634[_0x4f9453(0x13f)],_0x3bf634['accessKey'],_0x17dc9d),safePathSegment(_0x3bf634[_0x4f9453(0x13a)],_0x4f9453(0x13a))),_0x5b36c9=[];for(const _0x414dcd of _0x499106){const _0x2c3694=resolve(_0xb5b225,_0x414dcd);if(!existsSync(_0x2c3694))continue;for(const _0x4f484e of readdirSync(_0x2c3694,{'withFileTypes':!![]})){if(!_0x4f484e[_0x4f9453(0x14e)]())continue;const _0x41220e=_0x4f484e['name'];if(_0x24e24d&&!_0x24e24d[_0x4f9453(0x139)](_0x41220e))continue;if(_0x5078b2['has'](_0x41220e))continue;const _0x5950e0=resolve(_0x2c3694,_0x41220e),_0x32f445=readMetadataIfPresent(resolve(_0x5950e0,METADATA_FILE));if(_0x32f445?.[_0x4f9453(0x13a)]!==_0x3bf634['appCode']||_0x32f445['scope']!==_0x414dcd||_0x32f445['skillCode']!==_0x41220e){_0x5b36c9['push']({'path':_0x5950e0,'action':_0x4f9453(0x12f),'reason':'metadata-mismatch'});continue;}removeSync(_0x5950e0),_0x5b36c9[_0x4f9453(0x151)]({'path':_0x5950e0,'action':_0x4f9453(0x13c)});}}return _0x5b36c9;}export function linkGlobalRuntimeSkills(_0x292475,_0x59cad2={}){const _0x293a32=a88_0x33c0,_0x4b6175=resolveSkillSyncPaths(_0x59cad2),_0x5ee237=[];for(const _0x3652fa of _0x292475){if(_0x3652fa[_0x293a32(0x140)]!==_0x293a32(0x152))throw CliErrors['validation'](_0x293a32(0x136)+_0x3652fa['scope']);const _0x2ce217=requireSkillCode(_0x3652fa[_0x293a32(0x14b)]),_0x399a0b=copyManagedSkillDirectory(_0x3652fa[_0x293a32(0x144)],resolve(_0x4b6175[_0x293a32(0x138)],_0x2ce217));_0x5ee237[_0x293a32(0x151)]({..._0x399a0b,'contentHash':_0x3652fa[_0x293a32(0x12e)]});}return _0x5ee237;}function ensureManagedSymlink(_0x18569c,_0x4f5ab7,_0x4a1fa5){const _0x31de86=a88_0x33c0;mkdirSync(dirname(_0x18569c),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x18569c)||isDanglingSymlink(_0x18569c)){const _0x34dad8=lstatSync(_0x18569c);if(!_0x34dad8[_0x31de86(0x156)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x18569c);const _0x3d631f=resolveSymlinkTarget(_0x18569c);if(!isPathInside(realOrResolved(_0x3d631f),realOrResolved(_0x4a1fa5)))throw CliErrors[_0x31de86(0x134)](_0x31de86(0x13d)+_0x18569c);if(realOrResolved(_0x3d631f)===realOrResolved(_0x4f5ab7))return{'path':_0x18569c,'target':_0x4f5ab7,'action':_0x31de86(0x157)};return unlinkSync(_0x18569c),symlinkSync(_0x4f5ab7,_0x18569c,_0x31de86(0x144)),{'path':_0x18569c,'target':_0x4f5ab7,'action':'updated'};}return symlinkSync(_0x4f5ab7,_0x18569c,'dir'),{'path':_0x18569c,'target':_0x4f5ab7,'action':_0x31de86(0x131)};}function managedAppSkillLinkPaths(_0x2efa0e,_0x2b259b){const _0x4f3599=a88_0x33c0;if(!existsSync(_0x2efa0e))return[];const _0x373ad4=_0x2b259b+'--';return readdirSync(_0x2efa0e,{'withFileTypes':!![]})[_0x4f3599(0x15d)](_0x4d5614=>_0x4d5614[_0x4f3599(0x15e)][_0x4f3599(0x141)](_0x373ad4))[_0x4f3599(0x159)](_0x57a89b=>resolve(_0x2efa0e,_0x57a89b[_0x4f3599(0x15e)]));}function removeManagedSkillLink(_0x24e248,_0x5b028d){const _0x2692a2=a88_0x33c0,_0xb62b8f=lstatIfPresent(_0x24e248);if(!_0xb62b8f?.['isSymbolicLink']())return{'path':_0x24e248,'action':_0x2692a2(0x12f),'reason':_0x2692a2(0x153)};const _0x487190=resolveSymlinkTarget(_0x24e248);if(!isPathInside(realOrResolved(_0x487190),realOrResolved(_0x5b028d)))return{'path':_0x24e248,'action':'skipped','reason':_0x2692a2(0x145)};return unlinkSync(_0x24e248),{'path':_0x24e248,'action':'removed'};}export function copyManagedSkillDirectory(_0x537548,_0x24cb04){const _0x2e2733=a88_0x33c0,_0x4d28af=resolve(_0x24cb04,METADATA_FILE),_0x25d9f5=existsSync(_0x24cb04);if(_0x25d9f5){const _0x20cccd=lstatSync(_0x24cb04);if(_0x20cccd[_0x2e2733(0x156)]())throw CliErrors[_0x2e2733(0x134)](_0x2e2733(0x160)+_0x24cb04);if(!_0x20cccd[_0x2e2733(0x14e)]())throw CliErrors[_0x2e2733(0x134)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x24cb04);const _0x249b1a=readMetadataIfPresent(_0x4d28af);if(_0x249b1a?.[_0x2e2733(0x140)]!==_0x2e2733(0x152))throw CliErrors[_0x2e2733(0x134)](_0x2e2733(0x148)+_0x24cb04);}ensureDirSync(dirname(_0x24cb04));const _0x479789=_0x25d9f5?readMetadataIfPresent(_0x4d28af)?.[_0x2e2733(0x12e)]:undefined,_0x52610a=readMetadataIfPresent(resolve(_0x537548,METADATA_FILE))?.[_0x2e2733(0x12e)];return _0x25d9f5&&removeSync(_0x24cb04),copySkillDirectory(_0x537548,_0x24cb04),{'path':_0x24cb04,'target':_0x537548,'action':!_0x25d9f5?_0x2e2733(0x131):_0x479789===_0x52610a?_0x2e2733(0x157):_0x2e2733(0x14f)};}function copySkillDirectory(_0x3c328f,_0x3dd343){copySync(_0x3c328f,_0x3dd343,{'dereference':![],'overwrite':!![],'filter'(_0x349133){const _0x311984=a88_0x33c0;if(lstatSync(_0x349133)[_0x311984(0x156)]())throw CliErrors[_0x311984(0x134)](_0x311984(0x149)+_0x349133);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x4251ab,_0x45afe2){const _0x7c018f=a89_0x1b96,_0x5beba1=_0x4251ab();while(!![]){try{const _0x27508b=parseInt(_0x7c018f(0x101))/0x1+-parseInt(_0x7c018f(0x109))/0x2*(-parseInt(_0x7c018f(0x105))/0x3)+-parseInt(_0x7c018f(0xfa))/0x4*(-parseInt(_0x7c018f(0xf0))/0x5)+parseInt(_0x7c018f(0xf3))/0x6+-parseInt(_0x7c018f(0xef))/0x7*(parseInt(_0x7c018f(0xfc))/0x8)+-parseInt(_0x7c018f(0x104))/0x9*(-parseInt(_0x7c018f(0x112))/0xa)+-parseInt(_0x7c018f(0xfd))/0xb*(parseInt(_0x7c018f(0xf9))/0xc);if(_0x27508b===_0x45afe2)break;else _0x5beba1['push'](_0x5beba1['shift']());}catch(_0x3895aa){_0x5beba1['push'](_0x5beba1['shift']());}}}(a89_0x3aed,0xc63c4));import{existsSync,readdirSync}from'node:fs';function a89_0x1b96(_0x395713,_0x59a31c){_0x395713=_0x395713-0xef;const _0x3aed5f=a89_0x3aed();let _0x1b96d9=_0x3aed5f[_0x395713];return _0x1b96d9;}function a89_0x3aed(){const _0x23e98a=['linkedPaths','147xsAIzC','101195UWEDzY','sort','skillCode','5301804fLRSpU','includes','filter','code','push','builtin','84WQXedl','88XTCDGn','map','518088YpBKJI','5208027LIFdXU','scopes','metadataPath','appCode','1204914ZNILJd','scope','cache','63OeBYXb','9CafrGx','set','has','dir','929818nfWieB','isSymbolicLink','isDirectory','skillMdPath','link','local','trim','isArray','values','2225170VKtNEh','linkedPath','name','claudeSkillsDir','accessKey','source','localeCompare','tags'];a89_0x3aed=function(){return _0x23e98a;};return a89_0x3aed();}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(_0x55c9af,_0x58d142={}){const _0x5dc153=a89_0x1b96,_0x1882fd=safePathSegment(_0x55c9af[_0x5dc153(0x100)],_0x5dc153(0x100)),_0x25acb5=normalizeRuntimeSkillScopes(_0x55c9af[_0x5dc153(0xfe)]),_0xce5c27=new Set(_0x25acb5),_0xf88f05=_0x55c9af[_0x5dc153(0xf6)]?.['trim'](),_0x3bb97f=new Map(),_0x35579a=resolve(getRuntimeSkillCacheRoot(_0x55c9af['env'],_0x55c9af[_0x5dc153(0x116)],_0x58d142),_0x1882fd);for(const _0x20dbf8 of _0x25acb5){for(const _0x182e4c of localSkillEntryDirs(resolve(_0x35579a,_0x20dbf8))){collectLocalRuntimeSkill(_0x3bb97f,_0x182e4c,{'appCode':_0x1882fd,'scopes':_0xce5c27,'code':_0xf88f05,'source':'cache'});}}const _0x557e78=resolveSkillSyncPaths(_0x58d142);for(const _0x3842ba of[_0x557e78['agentsSkillsDir'],_0x557e78[_0x5dc153(0x115)]]){for(const _0x25788e of localSkillLinkCandidates(_0x3842ba,_0x1882fd,_0xce5c27)){collectLocalRuntimeSkill(_0x3bb97f,_0x25788e,{'appCode':_0x1882fd,'scopes':_0xce5c27,'code':_0xf88f05,'source':_0x5dc153(0x10d),'linkedPath':_0x25788e});}}return Array['from'](_0x3bb97f[_0x5dc153(0x111)]())[_0x5dc153(0xf1)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x56fe90){const _0x3e33fd=a89_0x1b96;if(!existsSync(_0x56fe90))return[];return readdirSync(_0x56fe90,{'withFileTypes':!![]})['filter'](_0x4ed880=>_0x4ed880[_0x3e33fd(0x10b)]()||_0x4ed880[_0x3e33fd(0x10a)]())[_0x3e33fd(0xfb)](_0x1a7cec=>resolve(_0x56fe90,_0x1a7cec['name']));}function localSkillLinkCandidates(_0x1ec33f,_0x18d2b1,_0x2f4e50){const _0x187e12=a89_0x1b96;if(!existsSync(_0x1ec33f))return[];const _0x3451b2=_0x18d2b1+'--';return readdirSync(_0x1ec33f,{'withFileTypes':!![]})['filter'](_0x2885e5=>_0x2885e5[_0x187e12(0x10b)]()||_0x2885e5['isSymbolicLink']())[_0x187e12(0xf5)](_0x838019=>_0x838019[_0x187e12(0x114)]['startsWith'](_0x3451b2)||_0x2f4e50['has'](_0x187e12(0xf8)))[_0x187e12(0xfb)](_0x3efe64=>resolve(_0x1ec33f,_0x3efe64[_0x187e12(0x114)]));}function collectLocalRuntimeSkill(_0x53a798,_0x18983f,_0x5ac942){const _0x1c2e70=a89_0x1b96,_0x196112=resolve(_0x18983f,METADATA_FILE),_0x1f8d00=readMetadataIfPresent(_0x196112);if(!_0x1f8d00)return;if(_0x1f8d00[_0x1c2e70(0x100)]!==_0x5ac942[_0x1c2e70(0x100)])return;if(!isRuntimeSkillScope(_0x1f8d00[_0x1c2e70(0x102)])||!_0x5ac942[_0x1c2e70(0xfe)][_0x1c2e70(0x107)](_0x1f8d00[_0x1c2e70(0x102)]))return;const _0x578a1c=_0x1f8d00[_0x1c2e70(0xf2)]?.[_0x1c2e70(0x10f)]();if(!_0x578a1c)return;if(_0x5ac942[_0x1c2e70(0xf6)]&&_0x578a1c!==_0x5ac942[_0x1c2e70(0xf6)])return;const _0x1ac000=_0x1f8d00[_0x1c2e70(0x102)]+':'+_0x578a1c,_0x296dbb=_0x5ac942[_0x1c2e70(0x113)]?[_0x5ac942[_0x1c2e70(0x113)]]:[],_0xcc5241=_0x53a798['get'](_0x1ac000);if(_0xcc5241){_0x5ac942[_0x1c2e70(0x117)]===_0x1c2e70(0x103)&&(_0xcc5241[_0x1c2e70(0x108)]=_0x18983f,_0xcc5241['cacheDir']=_0x18983f,_0xcc5241[_0x1c2e70(0x10c)]=resolve(_0x18983f,SKILL_FILE),_0xcc5241[_0x1c2e70(0xff)]=_0x196112);for(const _0x321870 of _0x296dbb){!_0xcc5241['linkedPaths'][_0x1c2e70(0xf4)](_0x321870)&&_0xcc5241[_0x1c2e70(0x11a)][_0x1c2e70(0xf7)](_0x321870);}_0xcc5241['linkedPaths'][_0x1c2e70(0xf1)]();return;}_0x53a798[_0x1c2e70(0x106)](_0x1ac000,{..._0x1f8d00,'tags':Array[_0x1c2e70(0x110)](_0x1f8d00[_0x1c2e70(0x119)])?_0x1f8d00[_0x1c2e70(0x119)]:[],'scope':_0x1f8d00[_0x1c2e70(0x102)],'source':_0x1c2e70(0x10e),'dir':_0x18983f,'cacheDir':_0x5ac942['source']===_0x1c2e70(0x103)?_0x18983f:undefined,'skillMdPath':resolve(_0x18983f,SKILL_FILE),'metadataPath':_0x196112,'linkedPaths':_0x296dbb});}function compareLocalRuntimeSkills(_0x61d56,_0x33638d){const _0x1bbe9b=a89_0x1b96,_0x12fa27={'personal':0x0,'company':0x1,'builtin':0x2};return _0x12fa27[_0x61d56['scope']]-_0x12fa27[_0x33638d[_0x1bbe9b(0x102)]]||_0x61d56[_0x1bbe9b(0xf2)][_0x1bbe9b(0x118)](_0x33638d[_0x1bbe9b(0xf2)])||_0x61d56['dir']['localeCompare'](_0x33638d['dir']);}
1
+ (function(_0x4dac4e,_0x3cc08f){const _0x450e9c=a89_0x1d57,_0x4b410b=_0x4dac4e();while(!![]){try{const _0x296016=parseInt(_0x450e9c(0x97))/0x1+parseInt(_0x450e9c(0x92))/0x2+parseInt(_0x450e9c(0xa8))/0x3+-parseInt(_0x450e9c(0x9a))/0x4+parseInt(_0x450e9c(0x8e))/0x5*(parseInt(_0x450e9c(0xaf))/0x6)+-parseInt(_0x450e9c(0xab))/0x7*(parseInt(_0x450e9c(0x8f))/0x8)+-parseInt(_0x450e9c(0xac))/0x9*(parseInt(_0x450e9c(0x8a))/0xa);if(_0x296016===_0x3cc08f)break;else _0x4b410b['push'](_0x4b410b['shift']());}catch(_0x218670){_0x4b410b['push'](_0x4b410b['shift']());}}}(a89_0x3e13,0xb243f));function a89_0x1d57(_0x268489,_0x27a5de){_0x268489=_0x268489-0x86;const _0x3e13f0=a89_0x3e13();let _0x1d57b6=_0x3e13f0[_0x268489];return _0x1d57b6;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';function a89_0x3e13(){const _0x3173ca=['name','5216352vQsvHo','includes','get','isArray','isDirectory','claudeSkillsDir','tags','code','dir','isSymbolicLink','sort','scope','cache','linkedPaths','3700761bCehoV','cacheDir','agentsSkillsDir','553tdUxDD','16299SbBDab','filter','push','7272SpgdLy','skillCode','trim','linkedPath','map','scopes','builtin','6010feGplZ','source','appCode','env','3350PCcvne','24216gxdayo','set','localeCompare','224660neAeQF','link','from','metadataPath','has','1203850ngjnAn','accessKey'];a89_0x3e13=function(){return _0x3173ca;};return a89_0x3e13();}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(_0x47d434,_0x440b95={}){const _0x2482c7=a89_0x1d57,_0x167117=safePathSegment(_0x47d434[_0x2482c7(0x8c)],_0x2482c7(0x8c)),_0x47e989=normalizeRuntimeSkillScopes(_0x47d434[_0x2482c7(0x88)]),_0x6c96f8=new Set(_0x47e989),_0x5a102a=_0x47d434[_0x2482c7(0xa1)]?.[_0x2482c7(0xb1)](),_0x198e47=new Map(),_0x16be81=resolve(getRuntimeSkillCacheRoot(_0x47d434[_0x2482c7(0x8d)],_0x47d434[_0x2482c7(0x98)],_0x440b95),_0x167117);for(const _0x5db341 of _0x47e989){for(const _0x3ce95e of localSkillEntryDirs(resolve(_0x16be81,_0x5db341))){collectLocalRuntimeSkill(_0x198e47,_0x3ce95e,{'appCode':_0x167117,'scopes':_0x6c96f8,'code':_0x5a102a,'source':_0x2482c7(0xa6)});}}const _0x27c3fd=resolveSkillSyncPaths(_0x440b95);for(const _0x1600a6 of[_0x27c3fd[_0x2482c7(0xaa)],_0x27c3fd[_0x2482c7(0x9f)]]){for(const _0x134b71 of localSkillLinkCandidates(_0x1600a6,_0x167117,_0x6c96f8)){collectLocalRuntimeSkill(_0x198e47,_0x134b71,{'appCode':_0x167117,'scopes':_0x6c96f8,'code':_0x5a102a,'source':_0x2482c7(0x93),'linkedPath':_0x134b71});}}return Array[_0x2482c7(0x94)](_0x198e47['values']())['sort'](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x55f9f2){const _0x28ed16=a89_0x1d57;if(!existsSync(_0x55f9f2))return[];return readdirSync(_0x55f9f2,{'withFileTypes':!![]})[_0x28ed16(0xad)](_0x227d3e=>_0x227d3e[_0x28ed16(0x9e)]()||_0x227d3e[_0x28ed16(0xa3)]())[_0x28ed16(0x87)](_0x28ee8c=>resolve(_0x55f9f2,_0x28ee8c[_0x28ed16(0x99)]));}function localSkillLinkCandidates(_0x29244a,_0x2dc2a8,_0x52796b){const _0x4dfd34=a89_0x1d57;if(!existsSync(_0x29244a))return[];const _0x199ac5=_0x2dc2a8+'--';return readdirSync(_0x29244a,{'withFileTypes':!![]})[_0x4dfd34(0xad)](_0x5e4d2c=>_0x5e4d2c[_0x4dfd34(0x9e)]()||_0x5e4d2c[_0x4dfd34(0xa3)]())[_0x4dfd34(0xad)](_0x76040a=>_0x76040a[_0x4dfd34(0x99)]['startsWith'](_0x199ac5)||_0x52796b[_0x4dfd34(0x96)](_0x4dfd34(0x89)))[_0x4dfd34(0x87)](_0x940b05=>resolve(_0x29244a,_0x940b05[_0x4dfd34(0x99)]));}function collectLocalRuntimeSkill(_0x162312,_0x26f7f3,_0x3c1721){const _0x2d6817=a89_0x1d57,_0x583214=resolve(_0x26f7f3,METADATA_FILE),_0x16f1ac=readMetadataIfPresent(_0x583214);if(!_0x16f1ac)return;if(_0x16f1ac[_0x2d6817(0x8c)]!==_0x3c1721[_0x2d6817(0x8c)])return;if(!isRuntimeSkillScope(_0x16f1ac['scope'])||!_0x3c1721[_0x2d6817(0x88)][_0x2d6817(0x96)](_0x16f1ac[_0x2d6817(0xa5)]))return;const _0x15afc6=_0x16f1ac[_0x2d6817(0xb0)]?.[_0x2d6817(0xb1)]();if(!_0x15afc6)return;if(_0x3c1721['code']&&_0x15afc6!==_0x3c1721[_0x2d6817(0xa1)])return;const _0x1e2791=_0x16f1ac[_0x2d6817(0xa5)]+':'+_0x15afc6,_0x436640=_0x3c1721['linkedPath']?[_0x3c1721[_0x2d6817(0x86)]]:[],_0x102987=_0x162312[_0x2d6817(0x9c)](_0x1e2791);if(_0x102987){_0x3c1721['source']===_0x2d6817(0xa6)&&(_0x102987[_0x2d6817(0xa2)]=_0x26f7f3,_0x102987[_0x2d6817(0xa9)]=_0x26f7f3,_0x102987['skillMdPath']=resolve(_0x26f7f3,SKILL_FILE),_0x102987[_0x2d6817(0x95)]=_0x583214);for(const _0x3a494f of _0x436640){!_0x102987[_0x2d6817(0xa7)][_0x2d6817(0x9b)](_0x3a494f)&&_0x102987[_0x2d6817(0xa7)][_0x2d6817(0xae)](_0x3a494f);}_0x102987[_0x2d6817(0xa7)][_0x2d6817(0xa4)]();return;}_0x162312[_0x2d6817(0x90)](_0x1e2791,{..._0x16f1ac,'tags':Array[_0x2d6817(0x9d)](_0x16f1ac[_0x2d6817(0xa0)])?_0x16f1ac[_0x2d6817(0xa0)]:[],'scope':_0x16f1ac[_0x2d6817(0xa5)],'source':'local','dir':_0x26f7f3,'cacheDir':_0x3c1721[_0x2d6817(0x8b)]==='cache'?_0x26f7f3:undefined,'skillMdPath':resolve(_0x26f7f3,SKILL_FILE),'metadataPath':_0x583214,'linkedPaths':_0x436640});}function compareLocalRuntimeSkills(_0xeecd5e,_0xd132c3){const _0x584fb1=a89_0x1d57,_0xa0c582={'personal':0x0,'company':0x1,'builtin':0x2};return _0xa0c582[_0xeecd5e[_0x584fb1(0xa5)]]-_0xa0c582[_0xd132c3[_0x584fb1(0xa5)]]||_0xeecd5e[_0x584fb1(0xb0)][_0x584fb1(0x91)](_0xd132c3[_0x584fb1(0xb0)])||_0xeecd5e['dir'][_0x584fb1(0x91)](_0xd132c3['dir']);}
@@ -1 +1 @@
1
- (function(_0x533c56,_0x47399e){const _0x1058f1=a90_0x32e6,_0x2eb446=_0x533c56();while(!![]){try{const _0x2523c8=parseInt(_0x1058f1(0x194))/0x1+-parseInt(_0x1058f1(0x199))/0x2+parseInt(_0x1058f1(0x173))/0x3*(parseInt(_0x1058f1(0x193))/0x4)+parseInt(_0x1058f1(0x180))/0x5*(parseInt(_0x1058f1(0x198))/0x6)+-parseInt(_0x1058f1(0x19c))/0x7*(-parseInt(_0x1058f1(0x17b))/0x8)+-parseInt(_0x1058f1(0x195))/0x9*(-parseInt(_0x1058f1(0x172))/0xa)+parseInt(_0x1058f1(0x17d))/0xb*(-parseInt(_0x1058f1(0x17c))/0xc);if(_0x2523c8===_0x47399e)break;else _0x2eb446['push'](_0x2eb446['shift']());}catch(_0x135117){_0x2eb446['push'](_0x2eb446['shift']());}}}(a90_0x4909,0x66aeb));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_TOTAL_BYTES,SKILL_FILE}from'./constants.js';export function fileContent(_0xfe2ac6){const _0x4249be=a90_0x32e6;return _0xfe2ac6[_0x4249be(0x18a)]??Buffer[_0x4249be(0x19b)](_0xfe2ac6[_0x4249be(0x170)]??'','utf8');}export function fileText(_0x5be2c0){const _0x401df6=a90_0x32e6;return fileContent(_0x5be2c0)['toString'](_0x401df6(0x17e));}function a90_0x32e6(_0x3ae2f4,_0x3e0329){_0x3ae2f4=_0x3ae2f4-0x16e;const _0x490985=a90_0x4909();let _0x32e68e=_0x490985[_0x3ae2f4];return _0x32e68e;}export function normalizeLocalFiles(_0x561c3c){const _0x3b29ff=a90_0x32e6;if(!Array[_0x3b29ff(0x188)](_0x561c3c)||_0x561c3c[_0x3b29ff(0x197)]===0x0)return[];if(_0x561c3c[_0x3b29ff(0x197)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x3b29ff(0x18c)]('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');const _0x14ebf5=new Map();let _0x1fc888=0x0;for(const _0x10af62 of _0x561c3c){if(!_0x10af62||typeof _0x10af62!==_0x3b29ff(0x177)||typeof _0x10af62[_0x3b29ff(0x196)]!==_0x3b29ff(0x19d))throw CliErrors[_0x3b29ff(0x18c)](_0x3b29ff(0x182));const _0x249f44=normalizeSkillRelativePath(_0x10af62[_0x3b29ff(0x196)]);if(_0x14ebf5[_0x3b29ff(0x189)](_0x249f44))throw CliErrors[_0x3b29ff(0x18c)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x249f44);if(_0x10af62[_0x3b29ff(0x18a)]!==undefined&&!Buffer[_0x3b29ff(0x17a)](_0x10af62['bytes']))throw CliErrors[_0x3b29ff(0x18c)]('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0x249f44);if(_0x10af62[_0x3b29ff(0x18a)]===undefined&&typeof _0x10af62[_0x3b29ff(0x170)]!==_0x3b29ff(0x19d))throw CliErrors[_0x3b29ff(0x18c)](_0x3b29ff(0x179)+_0x249f44);const _0x4bc69e=fileContent(_0x10af62),_0x2a327a=_0x4bc69e[_0x3b29ff(0x197)];if(_0x2a327a>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x3b29ff(0x18c)](_0x3b29ff(0x16e)+_0x249f44);_0x1fc888+=_0x2a327a;if(_0x1fc888>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x3b29ff(0x18c)]('Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.');_0x14ebf5[_0x3b29ff(0x178)](_0x249f44,{'path':_0x249f44,'bytes':_0x4bc69e});}return Array['from'](_0x14ebf5[_0x3b29ff(0x171)]())[_0x3b29ff(0x19a)](compareSkillFiles);}export function normalizeManifestFiles(_0x7e408e){const _0x17063c=a90_0x32e6;if(!Array[_0x17063c(0x188)](_0x7e408e)||_0x7e408e[_0x17063c(0x197)]===0x0)return[];if(_0x7e408e[_0x17063c(0x197)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x17063c(0x18c)](_0x17063c(0x18d));const _0x1e9e28=new Map();let _0x424d6f=0x0;for(const _0x4acb32 of _0x7e408e){if(!_0x4acb32||typeof _0x4acb32!==_0x17063c(0x177)||typeof _0x4acb32['path']!==_0x17063c(0x19d))throw CliErrors[_0x17063c(0x18c)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x2f385d=normalizeSkillRelativePath(_0x4acb32[_0x17063c(0x196)]);if(_0x1e9e28[_0x17063c(0x189)](_0x2f385d))throw CliErrors[_0x17063c(0x18c)](_0x17063c(0x17f)+_0x2f385d);if(!isSha256Hex(_0x4acb32[_0x17063c(0x183)]))throw CliErrors[_0x17063c(0x18c)]('Skill\x20file\x20sha256\x20is\x20invalid:\x20'+_0x2f385d);if(!Number[_0x17063c(0x175)](_0x4acb32[_0x17063c(0x18b)])||_0x4acb32[_0x17063c(0x18b)]<0x0)throw CliErrors[_0x17063c(0x18c)]('Skill\x20file\x20size\x20is\x20invalid:\x20'+_0x2f385d);if(_0x4acb32['size']>MAX_SKILL_FILE_BYTES)throw CliErrors['validation'](_0x17063c(0x16e)+_0x2f385d);_0x424d6f+=_0x4acb32['size'];if(_0x424d6f>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x17063c(0x18c)](_0x17063c(0x191));_0x1e9e28[_0x17063c(0x178)](_0x2f385d,{'path':_0x2f385d,'sha256':_0x4acb32['sha256']['toLowerCase'](),'size':_0x4acb32[_0x17063c(0x18b)]});}return Array[_0x17063c(0x19b)](_0x1e9e28[_0x17063c(0x171)]())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0x3e40cc){const _0x1b9641=realpathSync(_0x3e40cc),_0x42037c=[];let _0x207038=0x0;function _0x36d704(_0x169897){const _0x45bf62=a90_0x32e6,_0xdbc2d3=readdirSync(_0x169897,{'withFileTypes':!![]})[_0x45bf62(0x19a)]((_0x1808cf,_0x3aaf0f)=>_0x1808cf[_0x45bf62(0x187)][_0x45bf62(0x192)](_0x3aaf0f['name']));for(const _0x3faa04 of _0xdbc2d3){if(_0x3faa04[_0x45bf62(0x181)]()&&IGNORED_DIR_NAMES['has'](_0x3faa04[_0x45bf62(0x187)]))continue;if(IGNORED_FILE_NAMES[_0x45bf62(0x189)](_0x3faa04['name']))continue;const _0x3927a9=resolve(_0x169897,_0x3faa04[_0x45bf62(0x187)]);if(_0x3faa04[_0x45bf62(0x184)]())throw CliErrors[_0x45bf62(0x18c)](_0x45bf62(0x190)+_0x3927a9);const _0x41d0d7=toPosixPath(relative(_0x1b9641,_0x3927a9));if(_0x3faa04[_0x45bf62(0x181)]()){_0x36d704(_0x3927a9);continue;}if(!_0x3faa04[_0x45bf62(0x16f)]())continue;validateSkillRelativePath(_0x41d0d7);const _0x541cc4=readFileSync(_0x3927a9);if(_0x541cc4['length']>MAX_SKILL_FILE_BYTES)throw CliErrors['validation'](_0x45bf62(0x16e)+_0x41d0d7);_0x207038+=_0x541cc4[_0x45bf62(0x197)];if(_0x207038>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x45bf62(0x18c)](_0x45bf62(0x191));_0x42037c['push']({'path':_0x41d0d7,'bytes':_0x541cc4});if(_0x42037c['length']>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x45bf62(0x18c)]('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');}}return _0x36d704(_0x1b9641),normalizeLocalFiles(_0x42037c);}function a90_0x4909(){const _0x1ef869=['456KWcNko','replace','isSafeInteger','Unsafe\x20Skill\x20file\x20path:\x20','object','set','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','isBuffer','14952woSmnK','6165492MJGarJ','22itthBD','utf8','Duplicate\x20Skill\x20file\x20path:\x20','2202575VmNphE','isDirectory','Skill\x20file\x20path\x20must\x20be\x20text.','sha256','isSymbolicLink','test','includes','name','isArray','has','bytes','size','validation','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','compare','startsWith','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.','localeCompare','20816qbNzXy','89553VdPzcz','9kQEtXh','path','length','6imLVAQ','309410XaEduX','sort','from','553hJduHg','string','Skill\x20file\x20exceeds\x20size\x20limit:\x20','isFile','content','values','1341470SSuiZh'];a90_0x4909=function(){return _0x1ef869;};return a90_0x4909();}export function compareSkillFiles(_0x592ed0,_0x222198){const _0x391389=a90_0x32e6;if(_0x592ed0['path']===SKILL_FILE)return _0x222198['path']===SKILL_FILE?0x0:-0x1;if(_0x222198[_0x391389(0x196)]===SKILL_FILE)return 0x1;return Buffer[_0x391389(0x18e)](Buffer[_0x391389(0x19b)](_0x592ed0[_0x391389(0x196)],_0x391389(0x17e)),Buffer[_0x391389(0x19b)](_0x222198[_0x391389(0x196)],_0x391389(0x17e)));}export function normalizeSkillRelativePath(_0x1e6e4a){const _0x40f641=toPosixPath(_0x1e6e4a['trim']());return validateSkillRelativePath(_0x40f641),_0x40f641;}export function validateSkillRelativePath(_0x44b964){const _0x200042=a90_0x32e6;if(!_0x44b964||_0x44b964[_0x200042(0x18f)]('/')||_0x44b964[_0x200042(0x186)]('//'))throw CliErrors[_0x200042(0x18c)](_0x200042(0x176)+_0x44b964);for(const _0x62df2b of _0x44b964['split']('/')){if(!_0x62df2b||_0x62df2b==='.'||_0x62df2b==='..')throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x44b964);}}export function toPosixPath(_0x419087){const _0x18c0ad=a90_0x32e6;return _0x419087[_0x18c0ad(0x174)](/\\/g,'/');}export function isSha256Hex(_0xb0632){const _0x134620=a90_0x32e6;return typeof _0xb0632===_0x134620(0x19d)&&/^[a-fA-F0-9]{64}$/[_0x134620(0x185)](_0xb0632);}
1
+ function a90_0x1d8a(_0x8787d9,_0x4bf2af){_0x8787d9=_0x8787d9-0x1a3;const _0x1a8de1=a90_0x1a8d();let _0x1d8a59=_0x1a8de1[_0x8787d9];return _0x1d8a59;}(function(_0x49a2f0,_0x3b5950){const _0x11c2d7=a90_0x1d8a,_0x488442=_0x49a2f0();while(!![]){try{const _0x4e9543=-parseInt(_0x11c2d7(0x1aa))/0x1*(-parseInt(_0x11c2d7(0x1c4))/0x2)+-parseInt(_0x11c2d7(0x1bd))/0x3*(parseInt(_0x11c2d7(0x1ab))/0x4)+parseInt(_0x11c2d7(0x1ad))/0x5+-parseInt(_0x11c2d7(0x1cb))/0x6+-parseInt(_0x11c2d7(0x1b8))/0x7+parseInt(_0x11c2d7(0x1b2))/0x8*(parseInt(_0x11c2d7(0x1ce))/0x9)+-parseInt(_0x11c2d7(0x1b4))/0xa;if(_0x4e9543===_0x3b5950)break;else _0x488442['push'](_0x488442['shift']());}catch(_0x3bc92f){_0x488442['push'](_0x488442['shift']());}}}(a90_0x1a8d,0x81259));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_TOTAL_BYTES,SKILL_FILE}from'./constants.js';export function fileContent(_0x4640c0){const _0x48e7b6=a90_0x1d8a;return _0x4640c0[_0x48e7b6(0x1be)]??Buffer[_0x48e7b6(0x1b5)](_0x4640c0[_0x48e7b6(0x1c2)]??'',_0x48e7b6(0x1c7));}export function fileText(_0x573a36){const _0x4bc966=a90_0x1d8a;return fileContent(_0x573a36)[_0x4bc966(0x1ac)](_0x4bc966(0x1c7));}export function normalizeLocalFiles(_0xb90cc0){const _0x333204=a90_0x1d8a;if(!Array[_0x333204(0x1cf)](_0xb90cc0)||_0xb90cc0[_0x333204(0x1ca)]===0x0)return[];if(_0xb90cc0[_0x333204(0x1ca)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x333204(0x1a3)](_0x333204(0x1ae));const _0x4432a1=new Map();let _0x2d42b9=0x0;for(const _0x5aba20 of _0xb90cc0){if(!_0x5aba20||typeof _0x5aba20!==_0x333204(0x1bb)||typeof _0x5aba20[_0x333204(0x1b6)]!==_0x333204(0x1a9))throw CliErrors[_0x333204(0x1a3)](_0x333204(0x1af));const _0x336acc=normalizeSkillRelativePath(_0x5aba20['path']);if(_0x4432a1[_0x333204(0x1c6)](_0x336acc))throw CliErrors[_0x333204(0x1a3)](_0x333204(0x1a6)+_0x336acc);if(_0x5aba20['bytes']!==undefined&&!Buffer['isBuffer'](_0x5aba20[_0x333204(0x1be)]))throw CliErrors['validation']('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0x336acc);if(_0x5aba20[_0x333204(0x1be)]===undefined&&typeof _0x5aba20[_0x333204(0x1c2)]!==_0x333204(0x1a9))throw CliErrors[_0x333204(0x1a3)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x336acc);const _0x137d88=fileContent(_0x5aba20),_0x595832=_0x137d88[_0x333204(0x1ca)];if(_0x595832>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x333204(0x1a3)]('Skill\x20file\x20exceeds\x20size\x20limit:\x20'+_0x336acc);_0x2d42b9+=_0x595832;if(_0x2d42b9>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x333204(0x1a3)](_0x333204(0x1d0));_0x4432a1[_0x333204(0x1c8)](_0x336acc,{'path':_0x336acc,'bytes':_0x137d88});}return Array[_0x333204(0x1b5)](_0x4432a1[_0x333204(0x1bf)]())[_0x333204(0x1c5)](compareSkillFiles);}export function normalizeManifestFiles(_0x44c4a1){const _0x5df794=a90_0x1d8a;if(!Array[_0x5df794(0x1cf)](_0x44c4a1)||_0x44c4a1[_0x5df794(0x1ca)]===0x0)return[];if(_0x44c4a1[_0x5df794(0x1ca)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x5df794(0x1a3)](_0x5df794(0x1ae));const _0x43ca31=new Map();let _0x3b603b=0x0;for(const _0x312268 of _0x44c4a1){if(!_0x312268||typeof _0x312268!=='object'||typeof _0x312268[_0x5df794(0x1b6)]!==_0x5df794(0x1a9))throw CliErrors[_0x5df794(0x1a3)](_0x5df794(0x1af));const _0x5a3bb3=normalizeSkillRelativePath(_0x312268[_0x5df794(0x1b6)]);if(_0x43ca31[_0x5df794(0x1c6)](_0x5a3bb3))throw CliErrors[_0x5df794(0x1a3)](_0x5df794(0x1a6)+_0x5a3bb3);if(!isSha256Hex(_0x312268[_0x5df794(0x1a8)]))throw CliErrors['validation'](_0x5df794(0x1c1)+_0x5a3bb3);if(!Number[_0x5df794(0x1d1)](_0x312268[_0x5df794(0x1c0)])||_0x312268[_0x5df794(0x1c0)]<0x0)throw CliErrors['validation'](_0x5df794(0x1a4)+_0x5a3bb3);if(_0x312268[_0x5df794(0x1c0)]>MAX_SKILL_FILE_BYTES)throw CliErrors['validation'](_0x5df794(0x1bc)+_0x5a3bb3);_0x3b603b+=_0x312268[_0x5df794(0x1c0)];if(_0x3b603b>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x5df794(0x1a3)](_0x5df794(0x1d0));_0x43ca31['set'](_0x5a3bb3,{'path':_0x5a3bb3,'sha256':_0x312268[_0x5df794(0x1a8)]['toLowerCase'](),'size':_0x312268[_0x5df794(0x1c0)]});}return Array[_0x5df794(0x1b5)](_0x43ca31[_0x5df794(0x1bf)]())[_0x5df794(0x1c5)](compareSkillFiles);}export function scanSkillDirectory(_0x54f343){const _0x33cc11=realpathSync(_0x54f343),_0x4a1da4=[];let _0x144c8a=0x0;function _0x3b9ad4(_0x5c4dd9){const _0x30c48c=a90_0x1d8a,_0x5cb75f=readdirSync(_0x5c4dd9,{'withFileTypes':!![]})[_0x30c48c(0x1c5)]((_0x56b200,_0x42b1bc)=>_0x56b200[_0x30c48c(0x1cd)]['localeCompare'](_0x42b1bc[_0x30c48c(0x1cd)]));for(const _0x1a2f7f of _0x5cb75f){if(_0x1a2f7f[_0x30c48c(0x1b7)]()&&IGNORED_DIR_NAMES[_0x30c48c(0x1c6)](_0x1a2f7f[_0x30c48c(0x1cd)]))continue;if(IGNORED_FILE_NAMES[_0x30c48c(0x1c6)](_0x1a2f7f[_0x30c48c(0x1cd)]))continue;const _0x109bf3=resolve(_0x5c4dd9,_0x1a2f7f[_0x30c48c(0x1cd)]);if(_0x1a2f7f['isSymbolicLink']())throw CliErrors[_0x30c48c(0x1a3)](_0x30c48c(0x1b0)+_0x109bf3);const _0x46c4dc=toPosixPath(relative(_0x33cc11,_0x109bf3));if(_0x1a2f7f[_0x30c48c(0x1b7)]()){_0x3b9ad4(_0x109bf3);continue;}if(!_0x1a2f7f[_0x30c48c(0x1c9)]())continue;validateSkillRelativePath(_0x46c4dc);const _0x4199e4=readFileSync(_0x109bf3);if(_0x4199e4['length']>MAX_SKILL_FILE_BYTES)throw CliErrors['validation'](_0x30c48c(0x1bc)+_0x46c4dc);_0x144c8a+=_0x4199e4[_0x30c48c(0x1ca)];if(_0x144c8a>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0x30c48c(0x1d0));_0x4a1da4['push']({'path':_0x46c4dc,'bytes':_0x4199e4});if(_0x4a1da4['length']>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x30c48c(0x1a3)](_0x30c48c(0x1ae));}}return _0x3b9ad4(_0x33cc11),normalizeLocalFiles(_0x4a1da4);}export function compareSkillFiles(_0x3d9127,_0x2739ef){const _0x42aca2=a90_0x1d8a;if(_0x3d9127[_0x42aca2(0x1b6)]===SKILL_FILE)return _0x2739ef[_0x42aca2(0x1b6)]===SKILL_FILE?0x0:-0x1;if(_0x2739ef[_0x42aca2(0x1b6)]===SKILL_FILE)return 0x1;return Buffer[_0x42aca2(0x1cc)](Buffer['from'](_0x3d9127['path'],_0x42aca2(0x1c7)),Buffer['from'](_0x2739ef[_0x42aca2(0x1b6)],_0x42aca2(0x1c7)));}export function normalizeSkillRelativePath(_0x1525fc){const _0x181671=a90_0x1d8a,_0x69d065=toPosixPath(_0x1525fc[_0x181671(0x1c3)]());return validateSkillRelativePath(_0x69d065),_0x69d065;}function a90_0x1a8d(){const _0x2cafbd=['toString','3115340BsWoiu','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','Skill\x20file\x20path\x20must\x20be\x20text.','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','startsWith','3272vhalBJ','split','4494460RMdtTj','from','path','isDirectory','1547553lotjpE','includes','test','object','Skill\x20file\x20exceeds\x20size\x20limit:\x20','1790013rIeCkM','bytes','values','size','Skill\x20file\x20sha256\x20is\x20invalid:\x20','content','trim','210598NMfpNb','sort','has','utf8','set','isFile','length','2885526gTQANC','compare','name','15543VWQWWq','isArray','Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.','isSafeInteger','validation','Skill\x20file\x20size\x20is\x20invalid:\x20','replace','Duplicate\x20Skill\x20file\x20path:\x20','Unsafe\x20Skill\x20file\x20path:\x20','sha256','string','9fAAPnX','4eosQQV'];a90_0x1a8d=function(){return _0x2cafbd;};return a90_0x1a8d();}export function validateSkillRelativePath(_0x1dbc6d){const _0x3f9607=a90_0x1d8a;if(!_0x1dbc6d||_0x1dbc6d[_0x3f9607(0x1b1)]('/')||_0x1dbc6d[_0x3f9607(0x1b9)]('//'))throw CliErrors[_0x3f9607(0x1a3)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x1dbc6d);for(const _0x235833 of _0x1dbc6d[_0x3f9607(0x1b3)]('/')){if(!_0x235833||_0x235833==='.'||_0x235833==='..')throw CliErrors[_0x3f9607(0x1a3)](_0x3f9607(0x1a7)+_0x1dbc6d);}}export function toPosixPath(_0x2685c0){const _0x3098f0=a90_0x1d8a;return _0x2685c0[_0x3098f0(0x1a5)](/\\/g,'/');}export function isSha256Hex(_0x246a0e){const _0x3deb5c=a90_0x1d8a;return typeof _0x246a0e===_0x3deb5c(0x1a9)&&/^[a-fA-F0-9]{64}$/[_0x3deb5c(0x1ba)](_0x246a0e);}