@lovrabet/lovrabet-cli 2.1.0-beta.2 → 2.1.0-beta.3

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 (85) 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/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- function a68_0x4ce2(_0x1030c5,_0x9ffece){_0x1030c5=_0x1030c5-0x95;const _0x209ac3=a68_0x209a();let _0x4ce245=_0x209ac3[_0x1030c5];return _0x4ce245;}(function(_0x1af03e,_0x59ec21){const _0x512e5b=a68_0x4ce2,_0x32074a=_0x1af03e();while(!![]){try{const _0x37557c=parseInt(_0x512e5b(0xae))/0x1+-parseInt(_0x512e5b(0xa8))/0x2*(-parseInt(_0x512e5b(0x97))/0x3)+parseInt(_0x512e5b(0xa7))/0x4+-parseInt(_0x512e5b(0x96))/0x5*(parseInt(_0x512e5b(0x99))/0x6)+parseInt(_0x512e5b(0xaa))/0x7+parseInt(_0x512e5b(0xab))/0x8+parseInt(_0x512e5b(0xac))/0x9*(-parseInt(_0x512e5b(0x95))/0xa);if(_0x37557c===_0x59ec21)break;else _0x32074a['push'](_0x32074a['shift']());}catch(_0x1279e1){_0x32074a['push'](_0x32074a['shift']());}}}(a68_0x209a,0xabf71));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0xf86d42,_0x538565,_0x1e0645){const _0x43f35a=a68_0x4ce2,_0x470e28=buildConfirmationContext(_0xf86d42,_0x538565,_0x1e0645),_0x3b7c02=[_0x43f35a(0xa4)+_0x470e28[_0x43f35a(0x9f)]];return _0x470e28['description']&&_0x3b7c02[_0x43f35a(0x9b)]('\x20\x20\x20'+_0x470e28[_0x43f35a(0x9d)]),_0x470e28[_0x43f35a(0x9a)]&&_0x3b7c02[_0x43f35a(0x9b)](_0x43f35a(0xa2)+_0x470e28[_0x43f35a(0x9a)]),_0x3b7c02[_0x43f35a(0x9b)](_0x43f35a(0xb0)),_0x3b7c02;}export function reconstructCommandArgv(_0x572993,_0x14d70c){const _0x57012e=a68_0x4ce2,_0x57a8db=[CLI_BIN_NAME,_0x572993[_0x57012e(0x9e)],_0x572993['command']];for(const [_0x340887,_0x1b2d94]of Object[_0x57012e(0x98)](_0x14d70c)){if(_0x1b2d94===!![])_0x57a8db['push']('--'+_0x340887);else _0x1b2d94!==![]&&_0x1b2d94!==undefined&&_0x1b2d94!==''&&_0x57a8db[_0x57012e(0x9b)]('--'+_0x340887+'\x20'+JSON['stringify'](_0x1b2d94));}return _0x57a8db[_0x57012e(0x9b)](_0x57012e(0xa1)),_0x57a8db['join']('\x20');}function a68_0x209a(){const _0xe34dfd=['join','--yes','\x20\x20\x20Affected:\x20','params=','⚠\x20\x20High-risk\x20operation:\x20','name','name=','3342492Cnygvu','114612omeGOu','length','9501905DqQKIi','10365960FSqoWv','37432053BMEUQM','code','458598uTGzfb','code=','\x20\x20\x20Continue?\x20[y/N]\x20','10MCDVov','185ULGBpw','54UejufX','entries','18714GBNuYc','affectedRecords','push','params','description','service','commandLabel'];a68_0x209a=function(){return _0xe34dfd;};return a68_0x209a();}function buildConfirmationContext(_0x22e95b,_0x214358,_0x493868){const _0x52a5b0=a68_0x4ce2,_0x28cce2=extractAffectedRecords(_0x493868);return{'commandLabel':_0x214358,'description':_0x22e95b[_0x52a5b0(0x9d)],'affectedRecords':_0x28cce2};}function extractAffectedRecords(_0x393d0e){const _0x319993=a68_0x4ce2,_0x488ce3=[];if(_0x393d0e['code'])_0x488ce3[_0x319993(0x9b)](_0x319993(0xaf)+_0x393d0e[_0x319993(0xad)]);if(_0x393d0e['id'])_0x488ce3[_0x319993(0x9b)]('id='+_0x393d0e['id']);if(_0x393d0e[_0x319993(0xa5)])_0x488ce3[_0x319993(0x9b)](_0x319993(0xa6)+_0x393d0e[_0x319993(0xa5)]);if(_0x393d0e[_0x319993(0x9c)])_0x488ce3[_0x319993(0x9b)](_0x319993(0xa3)+_0x393d0e[_0x319993(0x9c)]);return _0x488ce3[_0x319993(0xa9)]>0x0?_0x488ce3[_0x319993(0xa0)](',\x20'):undefined;}
1
+ (function(_0x319a19,_0x4d478e){const _0x216716=a68_0x5686,_0x1fac1d=_0x319a19();while(!![]){try{const _0x20f349=parseInt(_0x216716(0xfb))/0x1*(-parseInt(_0x216716(0xfe))/0x2)+-parseInt(_0x216716(0xfa))/0x3*(parseInt(_0x216716(0x104))/0x4)+parseInt(_0x216716(0x106))/0x5+parseInt(_0x216716(0x108))/0x6+-parseInt(_0x216716(0xee))/0x7*(-parseInt(_0x216716(0xf1))/0x8)+parseInt(_0x216716(0x101))/0x9+-parseInt(_0x216716(0xff))/0xa;if(_0x20f349===_0x4d478e)break;else _0x1fac1d['push'](_0x1fac1d['shift']());}catch(_0x23b385){_0x1fac1d['push'](_0x1fac1d['shift']());}}}(a68_0x3c11,0x389a5));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x442bb9,_0x4b15fd,_0x2b057c){const _0x288560=a68_0x5686,_0x457771=buildConfirmationContext(_0x442bb9,_0x4b15fd,_0x2b057c),_0x3dcab4=[_0x288560(0x109)+_0x457771[_0x288560(0xfd)]];return _0x457771[_0x288560(0xf4)]&&_0x3dcab4['push'](_0x288560(0xf5)+_0x457771[_0x288560(0xf4)]),_0x457771[_0x288560(0xf6)]&&_0x3dcab4[_0x288560(0xf7)]('\x20\x20\x20Affected:\x20'+_0x457771[_0x288560(0xf6)]),_0x3dcab4[_0x288560(0xf7)](_0x288560(0xfc)),_0x3dcab4;}function a68_0x5686(_0x15f6a8,_0x4c35d5){_0x15f6a8=_0x15f6a8-0xee;const _0x3c1138=a68_0x3c11();let _0x568695=_0x3c1138[_0x15f6a8];return _0x568695;}export function reconstructCommandArgv(_0x2eef2a,_0x1fd289){const _0x431afa=a68_0x5686,_0x39c14d=[CLI_BIN_NAME,_0x2eef2a[_0x431afa(0xf9)],_0x2eef2a[_0x431afa(0xf2)]];for(const [_0x4d561e,_0x1ee784]of Object[_0x431afa(0x103)](_0x1fd289)){if(_0x1ee784===!![])_0x39c14d[_0x431afa(0xf7)]('--'+_0x4d561e);else _0x1ee784!==![]&&_0x1ee784!==undefined&&_0x1ee784!==''&&_0x39c14d[_0x431afa(0xf7)]('--'+_0x4d561e+'\x20'+JSON['stringify'](_0x1ee784));}return _0x39c14d[_0x431afa(0xf7)]('--yes'),_0x39c14d[_0x431afa(0xf8)]('\x20');}function a68_0x3c11(){const _0x3bc3c2=['⚠\x20\x20High-risk\x20operation:\x20','266OgieVE','params=','length','41456AAYnBK','command','name=','description','\x20\x20\x20','affectedRecords','push','join','service','6DbJris','6371hauDes','\x20\x20\x20Continue?\x20[y/N]\x20','commandLabel','46UWmfZY','4764400JQiItb','name','1522188ILzncH','id=','entries','95852HmfUBf','code','1764480JAjxVw','params','1102800AriOgt'];a68_0x3c11=function(){return _0x3bc3c2;};return a68_0x3c11();}function buildConfirmationContext(_0x481720,_0x294201,_0xf58a5e){const _0x3a4fff=a68_0x5686,_0x487fac=extractAffectedRecords(_0xf58a5e);return{'commandLabel':_0x294201,'description':_0x481720[_0x3a4fff(0xf4)],'affectedRecords':_0x487fac};}function extractAffectedRecords(_0x266df5){const _0x3cfed8=a68_0x5686,_0x79cc90=[];if(_0x266df5[_0x3cfed8(0x105)])_0x79cc90[_0x3cfed8(0xf7)]('code='+_0x266df5[_0x3cfed8(0x105)]);if(_0x266df5['id'])_0x79cc90[_0x3cfed8(0xf7)](_0x3cfed8(0x102)+_0x266df5['id']);if(_0x266df5['name'])_0x79cc90[_0x3cfed8(0xf7)](_0x3cfed8(0xf3)+_0x266df5[_0x3cfed8(0x100)]);if(_0x266df5['params'])_0x79cc90['push'](_0x3cfed8(0xef)+_0x266df5[_0x3cfed8(0x107)]);return _0x79cc90[_0x3cfed8(0xf0)]>0x0?_0x79cc90[_0x3cfed8(0xf8)](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0xee3ea,_0x220853){const _0x2771fb=a69_0x3f42,_0x405083=_0xee3ea();while(!![]){try{const _0x2f33a8=parseInt(_0x2771fb(0x15d))/0x1*(parseInt(_0x2771fb(0x155))/0x2)+-parseInt(_0x2771fb(0x15b))/0x3+parseInt(_0x2771fb(0x158))/0x4*(-parseInt(_0x2771fb(0x153))/0x5)+-parseInt(_0x2771fb(0x15e))/0x6*(-parseInt(_0x2771fb(0x154))/0x7)+-parseInt(_0x2771fb(0x15a))/0x8*(-parseInt(_0x2771fb(0x152))/0x9)+-parseInt(_0x2771fb(0x161))/0xa+parseInt(_0x2771fb(0x157))/0xb;if(_0x2f33a8===_0x220853)break;else _0x405083['push'](_0x405083['shift']());}catch(_0x3dc53d){_0x405083['push'](_0x405083['shift']());}}}(a69_0x4fb1,0x38dfd));function a69_0x3f42(_0xd7ac37,_0x1069af){_0xd7ac37=_0xd7ac37-0x152;const _0x4fb196=a69_0x4fb1();let _0x3f42d4=_0x4fb196[_0xd7ac37];return _0x3f42d4;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a69_0x4fb1(){const _0x7f64cc=['stringify','8vBZFZz','151917RBeDVd','validation','5shYnIA','90HjVCTw','string','message','251920SIosvb','2857509DhbbQM','133505XEuFRs','33551vvSSLd','43786uhSOfj','trim','2021151cRLpkC','56qUSXYa'];a69_0x4fb1=function(){return _0x7f64cc;};return a69_0x4fb1();}export function mapUserFacingExecuteError(_0x5714d0){const _0x91ad66=a69_0x3f42;if(_0x5714d0 instanceof LovrabetError)return CliErrors[_0x91ad66(0x15c)](userFacingLovrabetMessage(_0x5714d0));return _0x5714d0;}function userFacingLovrabetMessage(_0x5102d8){const _0x2bd2b0=a69_0x3f42,_0x46738f=_0x5102d8['description'];if(_0x46738f!==undefined&&_0x46738f!==null){if(typeof _0x46738f===_0x2bd2b0(0x15f)&&_0x46738f[_0x2bd2b0(0x156)]())return _0x46738f[_0x2bd2b0(0x156)]();try{return JSON[_0x2bd2b0(0x159)](_0x46738f);}catch{}}return _0x5102d8[_0x2bd2b0(0x160)];}
1
+ (function(_0x2bae79,_0x34e705){const _0x1ca1cd=a69_0x1343,_0x1a3378=_0x2bae79();while(!![]){try{const _0x1a35a2=parseInt(_0x1ca1cd(0x19e))/0x1+parseInt(_0x1ca1cd(0x19f))/0x2+parseInt(_0x1ca1cd(0x193))/0x3+-parseInt(_0x1ca1cd(0x196))/0x4+parseInt(_0x1ca1cd(0x199))/0x5*(parseInt(_0x1ca1cd(0x192))/0x6)+-parseInt(_0x1ca1cd(0x19b))/0x7*(-parseInt(_0x1ca1cd(0x194))/0x8)+-parseInt(_0x1ca1cd(0x1a0))/0x9;if(_0x1a35a2===_0x34e705)break;else _0x1a3378['push'](_0x1a3378['shift']());}catch(_0x2af31e){_0x1a3378['push'](_0x1a3378['shift']());}}}(a69_0x4ef5,0x6d75d));import{LovrabetError}from'@lovrabet/sdk';function a69_0x1343(_0x1678f6,_0x28f821){_0x1678f6=_0x1678f6-0x192;const _0x4ef5aa=a69_0x4ef5();let _0x134336=_0x4ef5aa[_0x1678f6];return _0x134336;}import{CliErrors}from'../errors.js';function a69_0x4ef5(){const _0x5271e0=['2920528eWySvf','string','784988JyaOSn','message','stringify','2778755vQTkpG','validation','7iuqNVe','trim','description','208662PWsPkL','110156OBjXTY','12635982daNhyk','6bOQpzg','2592111SHYRFw'];a69_0x4ef5=function(){return _0x5271e0;};return a69_0x4ef5();}export function mapUserFacingExecuteError(_0x58af09){const _0x5c9ab8=a69_0x1343;if(_0x58af09 instanceof LovrabetError)return CliErrors[_0x5c9ab8(0x19a)](userFacingLovrabetMessage(_0x58af09));return _0x58af09;}function userFacingLovrabetMessage(_0x31aac5){const _0x2ba374=a69_0x1343,_0x3af9eb=_0x31aac5[_0x2ba374(0x19d)];if(_0x3af9eb!==undefined&&_0x3af9eb!==null){if(typeof _0x3af9eb===_0x2ba374(0x195)&&_0x3af9eb[_0x2ba374(0x19c)]())return _0x3af9eb[_0x2ba374(0x19c)]();try{return JSON[_0x2ba374(0x198)](_0x3af9eb);}catch{}}return _0x31aac5[_0x2ba374(0x197)];}
@@ -1 +1 @@
1
- const a70_0x24891d=a70_0x2d71;(function(_0x579645,_0x117c96){const _0x3c0dec=a70_0x2d71,_0x47263e=_0x579645();while(!![]){try{const _0x1ad483=parseInt(_0x3c0dec(0x137))/0x1*(parseInt(_0x3c0dec(0x161))/0x2)+parseInt(_0x3c0dec(0x126))/0x3*(parseInt(_0x3c0dec(0x166))/0x4)+-parseInt(_0x3c0dec(0x12d))/0x5*(parseInt(_0x3c0dec(0x135))/0x6)+-parseInt(_0x3c0dec(0x130))/0x7*(-parseInt(_0x3c0dec(0x13f))/0x8)+-parseInt(_0x3c0dec(0x153))/0x9*(-parseInt(_0x3c0dec(0x15b))/0xa)+parseInt(_0x3c0dec(0x151))/0xb*(parseInt(_0x3c0dec(0x140))/0xc)+-parseInt(_0x3c0dec(0x162))/0xd;if(_0x1ad483===_0x117c96)break;else _0x47263e['push'](_0x47263e['shift']());}catch(_0x24b1f8){_0x47263e['push'](_0x47263e['shift']());}}}(a70_0x44d3,0x6ff51));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a70_0x2d71(_0x4d6806,_0x2bc740){_0x4d6806=_0x4d6806-0x123;const _0x44d39b=a70_0x44d3();let _0x2d7116=_0x44d39b[_0x4d6806];return _0x2d7116;}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(_0x4a9ee6){const _0x24d96a=a70_0x2d71;return void _0x4a9ee6,AUTH_MODE[_0x24d96a(0x148)];}export function createPipelineEnv(_0xcbaf71,_0x58257c){const _0x55775a=a70_0x2d71,_0x23407b=typeof _0x58257c[_0x55775a(0x141)]===_0x55775a(0x163)&&_0x58257c['app']['trim']();return{'rawFlags':_0x58257c,'appCode':_0xcbaf71[_0x55775a(0x149)]||productEnv(_0x55775a(0x14c))||(_0x23407b?undefined:readAppCodeFromConfig()),'appCodeSource':_0xcbaf71[_0x55775a(0x15d)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x58257c),'defaultFormat':_0xcbaf71[_0x55775a(0x134)],'defaultPageSize':_0xcbaf71[_0x55775a(0x128)],'defaultVerbose':_0xcbaf71[_0x55775a(0x143)],'riskLevel':_0xcbaf71[_0x55775a(0x165)],'accessKey':_0xcbaf71[_0x55775a(0x13e)],'env':_0xcbaf71['env'],'mergedCli':{'defaultApp':_0xcbaf71[_0x55775a(0x13a)],'currentApp':_0xcbaf71[_0x55775a(0x136)],'appCode':_0xcbaf71[_0x55775a(0x149)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a70_0x24891d(0x12b)](_0xe840be=>PIPELINE_FLAG_NAMES[a70_0x24891d(0x131)](_0xe840be[a70_0x24891d(0x124)]))[a70_0x24891d(0x157)](({name:_0x4cb609,type:_0x13ab98,description:_0x1f52aa})=>({'name':_0x4cb609,'type':_0x13ab98,'description':_0x1f52aa})),'formatOutput':formatOutput,'getCommandLabel'(_0x4542e7){const _0xab68c5=a70_0x24891d;return CLI_BIN_NAME+'\x20'+_0x4542e7[_0xab68c5(0x14a)]+'\x20'+_0x4542e7[_0xab68c5(0x144)];},'riskPolicy':{'onViolation'(_0xf8bc00){const _0x3aa001=a70_0x24891d;console[_0x3aa001(0x15a)](_0xf8bc00);},'createError'(_0x53e5b0){const _0x5eac89=a70_0x24891d;return CliErrors[_0x5eac89(0x12a)](_0x53e5b0);}},async 'prepare'(_0x53ad14,_0x472803){const _0x5e389a=a70_0x24891d,_0x3d75b0=resolveAuthMode(_0x472803);if(_0x53ad14[_0x5e389a(0x12e)]!==![]){if(!_0x472803[_0x5e389a(0x13e)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5e389a(0x14d)]+_0x5e389a(0x152)+productEnvName(_0x5e389a(0x123))+'.');const {setActiveAK:_0x113ffd}=await import(_0x5e389a(0x138));_0x113ffd(_0x472803['accessKey']);}let _0x1adf92='';if(_0x53ad14['requiresAppCode']!==![]){_0x1adf92=_0x472803[_0x5e389a(0x149)]??'',_0x1adf92=await resolveExplicitAppName(_0x53ad14,_0x472803,_0x1adf92);if(!_0x1adf92){await assertSelectedAppNameIsRuntimeAccessible(_0x53ad14,_0x472803);throw CliErrors[_0x5e389a(0x15f)](_0x5e389a(0x127)+PRODUCT_CONFIG[_0x5e389a(0x14d)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x53ad14,_0x472803,_0x1adf92);}if(_0x1adf92){const {initSdkClient:_0x394e27}=await import(_0x5e389a(0x150));_0x394e27({'appCode':_0x1adf92,'env':_0x472803['env']??_0x5e389a(0x146),'accessKey':_0x472803[_0x5e389a(0x13e)],'authMode':_0x3d75b0});}return{'defaults':{'booleans':{'verbose':_0x472803[_0x5e389a(0x12f)]},'numbers':{'pagesize':_0x472803['defaultPageSize']}},'extras':{'appCode':_0x1adf92,'cookie':'','apiDomain':_0x472803['apiDomain'],'apiDir':'','accessKey':_0x472803[_0x5e389a(0x13e)],'envName':_0x472803['env'],'mergedCli':_0x472803['mergedCli']}};},async 'confirmHighRisk'({def:_0x5ec57f,env:_0x491add,flags:_0x1ec051,commandLabel:_0x1a5c85}){const _0x16d616=a70_0x24891d;if(_0x491add[_0x16d616(0x156)]){const _0x13dd5f=reconstructCommandArgv(_0x5ec57f,_0x1ec051);throw CliErrors[_0x16d616(0x132)](_0x16d616(0x155)+_0x1a5c85+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x16d616(0x14e)+_0x13dd5f));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5ec57f,_0x1a5c85,_0x1ec051),'createCancelledError':_0x58add5=>CliErrors[_0x16d616(0x12a)](_0x58add5)});},'mapDryRunError'(_0x51bdeb){return mapUserFacingExecuteError(_0x51bdeb);},'mapExecuteError'(_0x1f8c73){return mapUserFacingExecuteError(_0x1f8c73);},async 'finalize'(){const _0x3886fd=a70_0x24891d,{clearActiveAK:_0x3c3962}=await import(_0x3886fd(0x138));_0x3c3962();}};async function resolveExplicitAppName(_0x4dce6c,_0x1c537e,_0x3a3f92){const _0x39d8e7=a70_0x24891d;if(_0x4dce6c[_0x39d8e7(0x14b)]===![])return _0x3a3f92;const _0x187622=typeof _0x1c537e[_0x39d8e7(0x139)]['app']===_0x39d8e7(0x163)?_0x1c537e[_0x39d8e7(0x139)][_0x39d8e7(0x141)][_0x39d8e7(0x12c)]():'';if(!_0x187622)return _0x3a3f92;const _0x5b1b53=typeof _0x1c537e[_0x39d8e7(0x139)]['appcode']==='string'&&_0x1c537e[_0x39d8e7(0x139)][_0x39d8e7(0x14f)]['trim']()||productEnv('APPCODE');if(_0x5b1b53||_0x1c537e['appCodeSource']===_0x39d8e7(0x145))return _0x3a3f92;const {getRemoteAppList:_0xbd9775}=await import(_0x39d8e7(0x13c)),_0x35f945=await _0xbd9775({'env':_0x1c537e[_0x39d8e7(0x164)]??_0x39d8e7(0x146),'accessKey':_0x1c537e[_0x39d8e7(0x13e)]}),_0x36c90d=findAppByName(_0x35f945[_0x39d8e7(0x154)],_0x187622);if(_0x36c90d&&!isRuntimeAccessibleApp(_0x36c90d))throw runtimeInaccessibleAppError(_0x36c90d,'\x22'+_0x187622+'\x22');const _0x3189ec=_0x36c90d?.[_0x39d8e7(0x149)]?.[_0x39d8e7(0x12c)]();if(_0x3189ec)return _0x3189ec;throw CliErrors[_0x39d8e7(0x132)]('Unknown\x20app:\x20'+_0x187622,_0x39d8e7(0x147)+CLI_BIN_NAME+_0x39d8e7(0x129)+_0x187622+_0x39d8e7(0x159)+PRODUCT_CONFIG[_0x39d8e7(0x14d)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x373dfc,_0x12507e){const _0x26931c=a70_0x24891d;if(_0x373dfc['requiresAppCode']===![]||!_0x12507e[_0x26931c(0x13e)])return;const _0x2253e4=(typeof _0x12507e[_0x26931c(0x139)][_0x26931c(0x141)]===_0x26931c(0x163)&&_0x12507e['rawFlags']['app']['trim']()?_0x12507e[_0x26931c(0x139)]['app']:_0x12507e[_0x26931c(0x15e)]?.[_0x26931c(0x136)]??_0x12507e['mergedCli']?.[_0x26931c(0x13a)])?.['trim']();if(!_0x2253e4)return;const {getRemoteAppList:_0x1b5a7a}=await import(_0x26931c(0x13c)),_0x150ebc=await _0x1b5a7a({'env':_0x12507e[_0x26931c(0x164)]??'production','accessKey':_0x12507e['accessKey']}),_0x14cf5a=findAppByName(_0x150ebc['items'],_0x2253e4);if(_0x14cf5a&&!isRuntimeAccessibleApp(_0x14cf5a))throw runtimeInaccessibleAppError(_0x14cf5a,'\x22'+_0x2253e4+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x2bad75,_0x145e07,_0x34cf01){const _0x3fa6c1=a70_0x24891d;if(_0x2bad75[_0x3fa6c1(0x14b)]===![]||!_0x145e07[_0x3fa6c1(0x13e)])return;const {getRemoteAppList:_0x1fbfb7}=await import(_0x3fa6c1(0x13c)),_0x3bbde4=await _0x1fbfb7({'env':_0x145e07[_0x3fa6c1(0x164)]??_0x3fa6c1(0x146),'accessKey':_0x145e07[_0x3fa6c1(0x13e)]}),_0x58de2b=findAppByCode(_0x3bbde4['items'],_0x34cf01);if(_0x58de2b&&!isRuntimeAccessibleApp(_0x58de2b))throw runtimeInaccessibleAppError(_0x58de2b,_0x3fa6c1(0x133)+_0x34cf01+'\x22');}export async function runCommand(_0x4086f1,_0x5ccf12){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4086f1)?withUpdateNotice(_0x4086f1):_0x4086f1,_0x5ccf12,runnerAdapter);}function a70_0x44d3(){const _0x1c2514=['\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','cancelled','filter','trim','27085idfHUd','requiresAuth','defaultVerbose','42vFyaeK','has','validation','appcode\x20\x22','format','6lRNhcV','currentApp','217397mYqTgX','../core/api-client.js','rawFlags','defaultApp','object','../commands/app/remote-source.js','pretty','accessKey','320912dopDTR','240XCDuyh','app','includes','verbose','command','local-alias','production','Run\x20`','ClientAk','appCode','service','requiresAppCode','APPCODE','newConfigFileName','\x20\x20To\x20proceed:\x20','appcode','../core/sdk-client.js','124256dgCVTZ','\x20or\x20pass\x20','13329njQXom','items','High-risk\x20operation\x20`','isNonInteractive','map','nonInteractive','.appcode\x20to\x20','error','790YUQlIE','resolve','appCodeSource','mergedCli','configMissing','update','2aoSvsS','11647701TlgKfz','string','env','riskLevel','2235884NCPcLP','execute','doctor','ACCESS_KEY','name','_notice','3XAqnkM','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','pageSize'];a70_0x44d3=function(){return _0x1c2514;};return a70_0x44d3();}function shouldAttachUpdateNotice(_0x178c1f){const _0xda76da=a70_0x24891d;return![_0xda76da(0x160),'schema',_0xda76da(0x168)][_0xda76da(0x142)](_0x178c1f[_0xda76da(0x14a)]);}function withUpdateNotice(_0x5182eb){return{..._0x5182eb,async 'execute'(_0x10ede0){const _0x18c6f2=a70_0x2d71,_0xa22b7b=shouldResolveUpdateNotice(_0x10ede0)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x18c6f2(0x15c)](null),_0x47d0fc=await _0x5182eb[_0x18c6f2(0x167)](_0x10ede0);return attachUpdateNotice(_0x47d0fc,await _0xa22b7b);}};}function shouldResolveUpdateNotice(_0x5d57ff){const _0x54169a=a70_0x24891d;return _0x5d57ff['format']===_0x54169a(0x13d)&&!_0x5d57ff[_0x54169a(0x158)];}function attachUpdateNotice(_0x4d228c,_0x3169e5){const _0x457607=a70_0x24891d;if(!_0x3169e5||!_0x4d228c||typeof _0x4d228c!==_0x457607(0x13b))return _0x4d228c;const _0x2d7d28=_0x4d228c,_0x6f4172=typeof _0x2d7d28[_0x457607(0x125)]===_0x457607(0x13b)&&_0x2d7d28[_0x457607(0x125)]!==null?_0x2d7d28[_0x457607(0x125)]:{};return{..._0x2d7d28,'_notice':{..._0x6f4172,'update':_0x3169e5}};}
1
+ const a70_0x597b4e=a70_0x59ad;(function(_0x4487c5,_0x1217aa){const _0x58953f=a70_0x59ad,_0x24d5ed=_0x4487c5();while(!![]){try{const _0x46f49c=parseInt(_0x58953f(0x20c))/0x1+parseInt(_0x58953f(0x205))/0x2+parseInt(_0x58953f(0x1ee))/0x3*(-parseInt(_0x58953f(0x21d))/0x4)+-parseInt(_0x58953f(0x222))/0x5+parseInt(_0x58953f(0x21b))/0x6*(parseInt(_0x58953f(0x219))/0x7)+-parseInt(_0x58953f(0x200))/0x8+parseInt(_0x58953f(0x203))/0x9;if(_0x46f49c===_0x1217aa)break;else _0x24d5ed['push'](_0x24d5ed['shift']());}catch(_0x3cbb14){_0x24d5ed['push'](_0x24d5ed['shift']());}}}(a70_0x5838,0x925bc));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a70_0x5838(){const _0x284c09=['newConfigFileName','production','mergedCli','resolve','APPCODE','trim','3dgxGEu','nonInteractive','../core/api-client.js','app','service','map','configMissing','verbose','defaultApp','appcode\x20\x22','pageSize','appCodeSource','../commands/app/remote-source.js','items','doctor','validation','appcode','execute','1941128THMFUt','includes','requiresAuth','421974SBnpad','accessKey','1909184dxbrXS','error','Set\x20accessKey\x20in\x20','currentApp','has','defaultVerbose','pretty','65739KONfwI','format','schema','object','../core/sdk-client.js','\x20\x20To\x20proceed:\x20','string','rawFlags','defaultPageSize','Unknown\x20app:\x20','filter','_notice','appCode','119uXbJMi','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','314994VptDqZ','ACCESS_KEY','1190568HnQAWf','apiDomain','cancelled','env','requiresAppCode','4099665vpRPRV'];a70_0x5838=function(){return _0x284c09;};return a70_0x5838();}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';function a70_0x59ad(_0x34f14a,_0x2bdc16){_0x34f14a=_0x34f14a-0x1e9;const _0x583865=a70_0x5838();let _0x59ad7a=_0x583865[_0x34f14a];return _0x59ad7a;}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(_0x1088e0){return void _0x1088e0,AUTH_MODE['ClientAk'];}export function createPipelineEnv(_0x568ca3,_0x3c76b8){const _0x1cedcd=a70_0x59ad,_0x10db15=typeof _0x3c76b8['app']===_0x1cedcd(0x212)&&_0x3c76b8['app'][_0x1cedcd(0x1ed)]();return{'rawFlags':_0x3c76b8,'appCode':_0x568ca3['appCode']||productEnv('APPCODE')||(_0x10db15?undefined:readAppCodeFromConfig()),'appCodeSource':_0x568ca3[_0x1cedcd(0x1f9)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x3c76b8),'defaultFormat':_0x568ca3['format'],'defaultPageSize':_0x568ca3[_0x1cedcd(0x1f8)],'defaultVerbose':_0x568ca3[_0x1cedcd(0x1f5)],'riskLevel':_0x568ca3['riskLevel'],'accessKey':_0x568ca3[_0x1cedcd(0x204)],'env':_0x568ca3['env'],'mergedCli':{'defaultApp':_0x568ca3[_0x1cedcd(0x1f6)],'currentApp':_0x568ca3['currentApp'],'appCode':_0x568ca3[_0x1cedcd(0x218)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a70_0x597b4e(0x216)](_0x2afb95=>PIPELINE_FLAG_NAMES[a70_0x597b4e(0x209)](_0x2afb95['name']))[a70_0x597b4e(0x1f3)](({name:_0x5ddc41,type:_0x378c02,description:_0x3d7133})=>({'name':_0x5ddc41,'type':_0x378c02,'description':_0x3d7133})),'formatOutput':formatOutput,'getCommandLabel'(_0x12d193){const _0x407668=a70_0x597b4e;return CLI_BIN_NAME+'\x20'+_0x12d193[_0x407668(0x1f2)]+'\x20'+_0x12d193['command'];},'riskPolicy':{'onViolation'(_0x1ca9da){const _0x520514=a70_0x597b4e;console[_0x520514(0x206)](_0x1ca9da);},'createError'(_0xcb5b38){const _0x3b3856=a70_0x597b4e;return CliErrors[_0x3b3856(0x21f)](_0xcb5b38);}},async 'prepare'(_0x17e1b9,_0x4d096b){const _0x426b2f=a70_0x597b4e,_0x109108=resolveAuthMode(_0x4d096b);if(_0x17e1b9[_0x426b2f(0x202)]!==![]){if(!_0x4d096b[_0x426b2f(0x204)])throw CliErrors['authRequired'](_0x426b2f(0x207)+PRODUCT_CONFIG[_0x426b2f(0x223)]+'\x20or\x20pass\x20'+productEnvName(_0x426b2f(0x21c))+'.');const {setActiveAK:_0x7dc820}=await import(_0x426b2f(0x1f0));_0x7dc820(_0x4d096b['accessKey']);}let _0x324ec0='';if(_0x17e1b9['requiresAppCode']!==![]){_0x324ec0=_0x4d096b[_0x426b2f(0x218)]??'',_0x324ec0=await resolveExplicitAppName(_0x17e1b9,_0x4d096b,_0x324ec0);if(!_0x324ec0){await assertSelectedAppNameIsRuntimeAccessible(_0x17e1b9,_0x4d096b);throw CliErrors[_0x426b2f(0x1f4)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x426b2f(0x223)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x17e1b9,_0x4d096b,_0x324ec0);}if(_0x324ec0){const {initSdkClient:_0x527486}=await import(_0x426b2f(0x210));_0x527486({'appCode':_0x324ec0,'env':_0x4d096b[_0x426b2f(0x220)]??'production','accessKey':_0x4d096b[_0x426b2f(0x204)],'authMode':_0x109108});}return{'defaults':{'booleans':{'verbose':_0x4d096b[_0x426b2f(0x20a)]},'numbers':{'pagesize':_0x4d096b[_0x426b2f(0x214)]}},'extras':{'appCode':_0x324ec0,'cookie':'','apiDomain':_0x4d096b[_0x426b2f(0x21e)],'apiDir':'','accessKey':_0x4d096b[_0x426b2f(0x204)],'envName':_0x4d096b['env'],'mergedCli':_0x4d096b['mergedCli']}};},async 'confirmHighRisk'({def:_0x1ee9ac,env:_0x44c9c5,flags:_0xdbf91e,commandLabel:_0x2ab49d}){const _0xdffb49=a70_0x597b4e;if(_0x44c9c5['isNonInteractive']){const _0x1b6f7b=reconstructCommandArgv(_0x1ee9ac,_0xdbf91e);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x2ab49d+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0xdffb49(0x211)+_0x1b6f7b));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1ee9ac,_0x2ab49d,_0xdbf91e),'createCancelledError':_0xc5faa0=>CliErrors[_0xdffb49(0x21f)](_0xc5faa0)});},'mapDryRunError'(_0x3d2b9a){return mapUserFacingExecuteError(_0x3d2b9a);},'mapExecuteError'(_0x38517e){return mapUserFacingExecuteError(_0x38517e);},async 'finalize'(){const _0x369533=a70_0x597b4e,{clearActiveAK:_0x12062f}=await import(_0x369533(0x1f0));_0x12062f();}};async function resolveExplicitAppName(_0xe1b7ec,_0x5701e9,_0x5b3166){const _0x3d558f=a70_0x597b4e;if(_0xe1b7ec[_0x3d558f(0x221)]===![])return _0x5b3166;const _0xd1c9a3=typeof _0x5701e9[_0x3d558f(0x213)][_0x3d558f(0x1f1)]==='string'?_0x5701e9[_0x3d558f(0x213)][_0x3d558f(0x1f1)]['trim']():'';if(!_0xd1c9a3)return _0x5b3166;const _0x511efb=typeof _0x5701e9[_0x3d558f(0x213)][_0x3d558f(0x1fe)]===_0x3d558f(0x212)&&_0x5701e9[_0x3d558f(0x213)][_0x3d558f(0x1fe)][_0x3d558f(0x1ed)]()||productEnv(_0x3d558f(0x1ec));if(_0x511efb||_0x5701e9[_0x3d558f(0x1f9)]==='local-alias')return _0x5b3166;const {getRemoteAppList:_0x3bbf9a}=await import(_0x3d558f(0x1fa)),_0x2964af=await _0x3bbf9a({'env':_0x5701e9[_0x3d558f(0x220)]??_0x3d558f(0x1e9),'accessKey':_0x5701e9[_0x3d558f(0x204)]}),_0x2a8e1e=findAppByName(_0x2964af[_0x3d558f(0x1fb)],_0xd1c9a3);if(_0x2a8e1e&&!isRuntimeAccessibleApp(_0x2a8e1e))throw runtimeInaccessibleAppError(_0x2a8e1e,'\x22'+_0xd1c9a3+'\x22');const _0x529242=_0x2a8e1e?.[_0x3d558f(0x218)]?.[_0x3d558f(0x1ed)]();if(_0x529242)return _0x529242;throw CliErrors[_0x3d558f(0x1fd)](_0x3d558f(0x215)+_0xd1c9a3,'Run\x20`'+CLI_BIN_NAME+_0x3d558f(0x21a)+_0xd1c9a3+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x3d558f(0x223)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x360882,_0x9efedf){const _0x27442b=a70_0x597b4e;if(_0x360882[_0x27442b(0x221)]===![]||!_0x9efedf['accessKey'])return;const _0x4ddf15=(typeof _0x9efedf[_0x27442b(0x213)]['app']===_0x27442b(0x212)&&_0x9efedf[_0x27442b(0x213)][_0x27442b(0x1f1)]['trim']()?_0x9efedf[_0x27442b(0x213)][_0x27442b(0x1f1)]:_0x9efedf[_0x27442b(0x1ea)]?.[_0x27442b(0x208)]??_0x9efedf[_0x27442b(0x1ea)]?.['defaultApp'])?.[_0x27442b(0x1ed)]();if(!_0x4ddf15)return;const {getRemoteAppList:_0xd0ef89}=await import(_0x27442b(0x1fa)),_0x27582e=await _0xd0ef89({'env':_0x9efedf[_0x27442b(0x220)]??_0x27442b(0x1e9),'accessKey':_0x9efedf[_0x27442b(0x204)]}),_0x5081f5=findAppByName(_0x27582e['items'],_0x4ddf15);if(_0x5081f5&&!isRuntimeAccessibleApp(_0x5081f5))throw runtimeInaccessibleAppError(_0x5081f5,'\x22'+_0x4ddf15+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x590765,_0x2edff2,_0x21bc82){const _0x2f631b=a70_0x597b4e;if(_0x590765[_0x2f631b(0x221)]===![]||!_0x2edff2[_0x2f631b(0x204)])return;const {getRemoteAppList:_0x5a6d0a}=await import('../commands/app/remote-source.js'),_0x5828e2=await _0x5a6d0a({'env':_0x2edff2[_0x2f631b(0x220)]??_0x2f631b(0x1e9),'accessKey':_0x2edff2[_0x2f631b(0x204)]}),_0x2336e1=findAppByCode(_0x5828e2[_0x2f631b(0x1fb)],_0x21bc82);if(_0x2336e1&&!isRuntimeAccessibleApp(_0x2336e1))throw runtimeInaccessibleAppError(_0x2336e1,_0x2f631b(0x1f7)+_0x21bc82+'\x22');}export async function runCommand(_0x3059d0,_0x52d42a){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3059d0)?withUpdateNotice(_0x3059d0):_0x3059d0,_0x52d42a,runnerAdapter);}function shouldAttachUpdateNotice(_0x123446){const _0x2ce27c=a70_0x597b4e;return!['update',_0x2ce27c(0x20e),_0x2ce27c(0x1fc)][_0x2ce27c(0x201)](_0x123446[_0x2ce27c(0x1f2)]);}function withUpdateNotice(_0x48db75){return{..._0x48db75,async 'execute'(_0x4d27bb){const _0x1904bc=a70_0x59ad,_0xf506b9=shouldResolveUpdateNotice(_0x4d27bb)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x1904bc(0x1eb)](null),_0x42b5e4=await _0x48db75[_0x1904bc(0x1ff)](_0x4d27bb);return attachUpdateNotice(_0x42b5e4,await _0xf506b9);}};}function shouldResolveUpdateNotice(_0x550ffb){const _0x197f4b=a70_0x597b4e;return _0x550ffb[_0x197f4b(0x20d)]===_0x197f4b(0x20b)&&!_0x550ffb[_0x197f4b(0x1ef)];}function attachUpdateNotice(_0x2c2326,_0x2bfc92){const _0x1285b2=a70_0x597b4e;if(!_0x2bfc92||!_0x2c2326||typeof _0x2c2326!==_0x1285b2(0x20f))return _0x2c2326;const _0x2b17b8=_0x2c2326,_0x452091=typeof _0x2b17b8[_0x1285b2(0x217)]===_0x1285b2(0x20f)&&_0x2b17b8[_0x1285b2(0x217)]!==null?_0x2b17b8[_0x1285b2(0x217)]:{};return{..._0x2b17b8,'_notice':{..._0x452091,'update':_0x2bfc92}};}
@@ -1 +1 @@
1
- (function(_0x3e708e,_0x2d2f30){const _0x1fa2a3=a71_0x5fd0,_0x51a534=_0x3e708e();while(!![]){try{const _0x32a829=-parseInt(_0x1fa2a3(0x1f6))/0x1+-parseInt(_0x1fa2a3(0x1ef))/0x2*(parseInt(_0x1fa2a3(0x1ee))/0x3)+-parseInt(_0x1fa2a3(0x1ec))/0x4*(-parseInt(_0x1fa2a3(0x1ed))/0x5)+parseInt(_0x1fa2a3(0x1f2))/0x6+parseInt(_0x1fa2a3(0x1f5))/0x7+-parseInt(_0x1fa2a3(0x1eb))/0x8+-parseInt(_0x1fa2a3(0x1f0))/0x9;if(_0x32a829===_0x2d2f30)break;else _0x51a534['push'](_0x51a534['shift']());}catch(_0x5ee9d6){_0x51a534['push'](_0x51a534['shift']());}}}(a71_0x56a1,0x39ca5));import{buildSchemaPayload as a71_0x1a5d51}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';function a71_0x56a1(){const _0x4cd0a5=['25DAGTBV','95094WAObTd','8NsAZjS','1187811bCZKiH','../commands/registry.js','1103910zrOuYf','has','service','2560901zLENVH','37243VWqlPo','565520WHFqQK','42868RJOcWi'];a71_0x56a1=function(){return _0x4cd0a5;};return a71_0x56a1();}function a71_0x5fd0(_0x12ca1b,_0xc2d907){_0x12ca1b=_0x12ca1b-0x1eb;const _0x56a118=a71_0x56a1();let _0x5fd0a5=_0x56a118[_0x12ca1b];return _0x5fd0a5;}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1b8962=a71_0x5fd0,{serviceRegistry:_0x11425c,findDefinition:_0x1123c9}=await import(_0x1b8962(0x1f1)),_0x509f18=new Set(_0x11425c['map'](_0x24e40a=>_0x24e40a['service'])),_0x21023c=listDynamicServiceEntries()['filter'](_0x265574=>!_0x509f18[_0x1b8962(0x1f3)](_0x265574[_0x1b8962(0x1f4)]));return a71_0x1a5d51({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x11425c,..._0x21023c],'buildAllFlags':buildAllFlags,'findDefinition':(_0x161dcf,_0x3ae7fb)=>_0x1123c9(_0x161dcf,_0x3ae7fb)??findDynamicServiceDefinition(_0x161dcf,_0x3ae7fb)});}
1
+ (function(_0x13780e,_0xc6d12a){const _0x287fcb=a71_0x1067,_0x8cecf5=_0x13780e();while(!![]){try{const _0x3703a4=parseInt(_0x287fcb(0xb8))/0x1*(-parseInt(_0x287fcb(0xaf))/0x2)+-parseInt(_0x287fcb(0xb3))/0x3*(parseInt(_0x287fcb(0xb0))/0x4)+parseInt(_0x287fcb(0xac))/0x5+parseInt(_0x287fcb(0xb6))/0x6*(parseInt(_0x287fcb(0xb4))/0x7)+-parseInt(_0x287fcb(0xb5))/0x8*(-parseInt(_0x287fcb(0xb1))/0x9)+parseInt(_0x287fcb(0xad))/0xa*(parseInt(_0x287fcb(0xae))/0xb)+-parseInt(_0x287fcb(0xb9))/0xc;if(_0x3703a4===_0xc6d12a)break;else _0x8cecf5['push'](_0x8cecf5['shift']());}catch(_0x4ca758){_0x8cecf5['push'](_0x8cecf5['shift']());}}}(a71_0x3b66,0x18da6));import{buildSchemaPayload as a71_0x200608}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a71_0x3b66(){const _0x36392f=['service','82479kgMdmw','28mkUBLs','40oDgDoB','278178LCpDAz','filter','41773zVpPol','3349680SKIdGF','../commands/registry.js','has','342580JuTKpE','4090qHoBqZ','4609pGcIrP','2wZjSOI','4xGNihy','44757hOEOwh'];a71_0x3b66=function(){return _0x36392f;};return a71_0x3b66();}import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a71_0x1067(_0x22eb57,_0x18cc6a){_0x22eb57=_0x22eb57-0xab;const _0x3b6604=a71_0x3b66();let _0x106774=_0x3b6604[_0x22eb57];return _0x106774;}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x318fa0=a71_0x1067,{serviceRegistry:_0x1459f8,findDefinition:_0x1380c1}=await import(_0x318fa0(0xba)),_0xc80a04=new Set(_0x1459f8['map'](_0x205ceb=>_0x205ceb[_0x318fa0(0xb2)])),_0x3f323c=listDynamicServiceEntries()[_0x318fa0(0xb7)](_0x32bb13=>!_0xc80a04[_0x318fa0(0xab)](_0x32bb13[_0x318fa0(0xb2)]));return a71_0x200608({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x1459f8,..._0x3f323c],'buildAllFlags':buildAllFlags,'findDefinition':(_0x34030c,_0x289ce7)=>_0x1380c1(_0x34030c,_0x289ce7)??findDynamicServiceDefinition(_0x34030c,_0x289ce7)});}
@@ -1 +1 @@
1
- function a72_0xf063(){var _0x27d304=['3117618XLUYzz','77459ULcHpw','16288151VMlRbv','344272EyasCt','635553YEbfRJ','2HGIZLW','45LStssv','121784waAGQa','156666xFkZZB','133PiHBuQ','10StFsiv'];a72_0xf063=function(){return _0x27d304;};return a72_0xf063();}function a72_0xa9d7(_0x2d37c7,_0xd1e31){_0x2d37c7=_0x2d37c7-0xe0;var _0xf0632e=a72_0xf063();var _0xa9d7cb=_0xf0632e[_0x2d37c7];return _0xa9d7cb;}(function(_0x2fa387,_0x549e0f){var _0x399d57=a72_0xa9d7,_0x41b370=_0x2fa387();while(!![]){try{var _0x188e4d=parseInt(_0x399d57(0xe3))/0x1*(-parseInt(_0x399d57(0xe7))/0x2)+-parseInt(_0x399d57(0xe6))/0x3+-parseInt(_0x399d57(0xe5))/0x4+-parseInt(_0x399d57(0xe8))/0x5*(parseInt(_0x399d57(0xea))/0x6)+parseInt(_0x399d57(0xe0))/0x7*(-parseInt(_0x399d57(0xe9))/0x8)+-parseInt(_0x399d57(0xe2))/0x9+parseInt(_0x399d57(0xe1))/0xa*(parseInt(_0x399d57(0xe4))/0xb);if(_0x188e4d===_0x549e0f)break;else _0x41b370['push'](_0x41b370['shift']());}catch(_0x4f897f){_0x41b370['push'](_0x41b370['shift']());}}}(a72_0xf063,0x394e5));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x2eeee1,_0x524b3c){var _0x2082c5=a72_0x130f,_0x4fe4d3=_0x2eeee1();while(!![]){try{var _0x1329c4=-parseInt(_0x2082c5(0x1c8))/0x1+parseInt(_0x2082c5(0x1c2))/0x2*(-parseInt(_0x2082c5(0x1c6))/0x3)+parseInt(_0x2082c5(0x1c9))/0x4+parseInt(_0x2082c5(0x1c1))/0x5*(-parseInt(_0x2082c5(0x1c4))/0x6)+-parseInt(_0x2082c5(0x1ca))/0x7+parseInt(_0x2082c5(0x1c5))/0x8+parseInt(_0x2082c5(0x1c7))/0x9*(parseInt(_0x2082c5(0x1c3))/0xa);if(_0x1329c4===_0x524b3c)break;else _0x4fe4d3['push'](_0x4fe4d3['shift']());}catch(_0x109e25){_0x4fe4d3['push'](_0x4fe4d3['shift']());}}}(a72_0x1f38,0x9b3bf));function a72_0x1f38(){var _0x29f645=['1904224TPlPML','8580327LVYnHG','513405BlPyfa','11266GcFfbU','494960YApZdH','48SGaXte','6710904dbDUuo','126SByabP','423FfiMnn','721597OoUArH'];a72_0x1f38=function(){return _0x29f645;};return a72_0x1f38();}function a72_0x130f(_0x53aea1,_0x46ffe7){_0x53aea1=_0x53aea1-0x1c1;var _0x1f3832=a72_0x1f38();var _0x130f9d=_0x1f3832[_0x53aea1];return _0x130f9d;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a73_0x4a91cc=a73_0x4ab4;(function(_0x1b443f,_0x57a552){const _0x38a745=a73_0x4ab4,_0x3f0517=_0x1b443f();while(!![]){try{const _0xcec3ab=parseInt(_0x38a745(0x153))/0x1+parseInt(_0x38a745(0x157))/0x2+parseInt(_0x38a745(0x154))/0x3+parseInt(_0x38a745(0x15b))/0x4+parseInt(_0x38a745(0x151))/0x5*(-parseInt(_0x38a745(0x15a))/0x6)+parseInt(_0x38a745(0x156))/0x7+-parseInt(_0x38a745(0x158))/0x8*(parseInt(_0x38a745(0x159))/0x9);if(_0xcec3ab===_0x57a552)break;else _0x3f0517['push'](_0x3f0517['shift']());}catch(_0x2b55a9){_0x3f0517['push'](_0x3f0517['shift']());}}}(a73_0x3237,0x85486));export const VERSION='2.1.0-beta.2';function a73_0x4ab4(_0x1814df,_0x14d610){_0x1814df=_0x1814df-0x151;const _0x323749=a73_0x3237();let _0x4ab408=_0x323749[_0x1814df];return _0x4ab408;}export const GIT_TAG='v2.1.0-beta.1';export const GIT_COMMIT=a73_0x4a91cc(0x152);export const BUILD_TIME=a73_0x4a91cc(0x155);function a73_0x3237(){const _0x57e7fb=['1424qnjwoy','55908mhxamu','856788zDopYv','1469316JYuSKm','35NiWlPr','4ab29c1','705736oAxINT','442104REeFSl','2026-07-02T08:59:31.980Z','7394149fxSOie','749016CkkxZh'];a73_0x3237=function(){return _0x57e7fb;};return a73_0x3237();}
1
+ const a73_0x238576=a73_0x1faf;(function(_0x4ca42b,_0x3e4977){const _0x2325b7=a73_0x1faf,_0x7a1c74=_0x4ca42b();while(!![]){try{const _0x4a2757=-parseInt(_0x2325b7(0xfa))/0x1+-parseInt(_0x2325b7(0xfd))/0x2*(parseInt(_0x2325b7(0xf3))/0x3)+-parseInt(_0x2325b7(0xf6))/0x4*(-parseInt(_0x2325b7(0xf0))/0x5)+parseInt(_0x2325b7(0xf7))/0x6*(parseInt(_0x2325b7(0xf1))/0x7)+parseInt(_0x2325b7(0xf8))/0x8*(parseInt(_0x2325b7(0xfc))/0x9)+parseInt(_0x2325b7(0xf9))/0xa+-parseInt(_0x2325b7(0xf4))/0xb*(parseInt(_0x2325b7(0xf5))/0xc);if(_0x4a2757===_0x3e4977)break;else _0x7a1c74['push'](_0x7a1c74['shift']());}catch(_0x18de5b){_0x7a1c74['push'](_0x7a1c74['shift']());}}}(a73_0x448a,0x831ce));export const VERSION=a73_0x238576(0xf2);export const GIT_TAG='v2.1.0-beta.3';function a73_0x448a(){const _0x28f467=['244941AUTMOp','121thkcEm','929064IgOmTZ','8EgSyrt','643794dCBwnx','765608QuKRss','5387070kpWXwp','484310SMHWsN','2026-07-02T10:56:13.505Z','99ssfZKB','20BeGaIU','6f9931a','1672115cGScjK','28hScXsc','2.1.0-beta.3'];a73_0x448a=function(){return _0x28f467;};return a73_0x448a();}function a73_0x1faf(_0xd49633,_0x481f28){_0xd49633=_0xd49633-0xf0;const _0x448a8d=a73_0x448a();let _0x1faf76=_0x448a8d[_0xd49633];return _0x1faf76;}export const GIT_COMMIT=a73_0x238576(0xfe);export const BUILD_TIME=a73_0x238576(0xfb);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1ee73a,_0x30733e){const _0x10ae85=a74_0x4cb2,_0x1e24b7=_0x1ee73a();while(!![]){try{const _0x5d10a4=parseInt(_0x10ae85(0x122))/0x1*(parseInt(_0x10ae85(0x11f))/0x2)+parseInt(_0x10ae85(0x11c))/0x3*(parseInt(_0x10ae85(0x11a))/0x4)+parseInt(_0x10ae85(0x126))/0x5+-parseInt(_0x10ae85(0x120))/0x6*(parseInt(_0x10ae85(0x124))/0x7)+-parseInt(_0x10ae85(0x121))/0x8+parseInt(_0x10ae85(0x119))/0x9*(parseInt(_0x10ae85(0x11d))/0xa)+-parseInt(_0x10ae85(0x127))/0xb;if(_0x5d10a4===_0x30733e)break;else _0x1e24b7['push'](_0x1e24b7['shift']());}catch(_0x2a9761){_0x1e24b7['push'](_0x1e24b7['shift']());}}}(a74_0x3c6f,0x6eb7c));import{jsx as a74_0x4698f0,jsxs as a74_0x1a7ce2}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a74_0x4cb2(_0xab890d,_0x1320f6){_0xab890d=_0xab890d-0x119;const _0x3c6fb8=a74_0x3c6f();let _0x4cb252=_0x3c6fb8[_0xab890d];return _0x4cb252;}export function Help(){const _0x21010b=a74_0x4cb2,{exit:_0x718dc7}=useApp();return useEffect(()=>{_0x718dc7();},[_0x718dc7]),a74_0x1a7ce2(Box,{'flexDirection':_0x21010b(0x123),'marginTop':0x1,'marginBottom':0x1,'children':[a74_0x4698f0(Box,{'children':a74_0x4698f0(Text,{'bold':!![],'color':_0x21010b(0x11b),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a74_0x1a7ce2(Box,{'marginTop':0x1,'children':[a74_0x4698f0(Text,{'dimColor':!![],'children':_0x21010b(0x11e)}),a74_0x4698f0(Text,{'bold':!![],'color':_0x21010b(0x11b),'children':CLI_BIN_NAME+'\x20--help'}),a74_0x4698f0(Text,{'dimColor':!![],'children':_0x21010b(0x125)})]})]});}function a74_0x3c6f(){const _0x5235e8=['\x20to\x20view\x20available\x20commands.','4336115CbcXtK','81697wjgVhn','120411qbbCGk','4wrkykJ','green','578559ZJgIfW','30NmgDWw','\x20\x20Use\x20','33574VhrEIL','12cQUwBm','7192120uTqmvB','23PmguWn','column','442302AAyCkl'];a74_0x3c6f=function(){return _0x5235e8;};return a74_0x3c6f();}
1
+ function a74_0x34f5(){const _0x3986c2=['123204ozreVl','7539jhptLy','\x20to\x20view\x20available\x20commands.','206000RpxiuD','25gRVmAS','9mTSxFG','column','1GtGqvn','green','3846016AEFFhj','43487886bSOWkr','284706DBkgcW','1147682DieHjH','\x20\x20Use\x20','2072EsJMkr','7bxPxhc','\x20--help','1199rbBXEm'];a74_0x34f5=function(){return _0x3986c2;};return a74_0x34f5();}(function(_0x3b4706,_0x3ec364){const _0x371f7c=a74_0xd4ca,_0x1a20ed=_0x3b4706();while(!![]){try{const _0x3d1dea=-parseInt(_0x371f7c(0x154))/0x1*(-parseInt(_0x371f7c(0x147))/0x2)+-parseInt(_0x371f7c(0x14e))/0x3*(parseInt(_0x371f7c(0x149))/0x4)+-parseInt(_0x371f7c(0x151))/0x5*(parseInt(_0x371f7c(0x158))/0x6)+-parseInt(_0x371f7c(0x14a))/0x7*(parseInt(_0x371f7c(0x156))/0x8)+-parseInt(_0x371f7c(0x152))/0x9*(-parseInt(_0x371f7c(0x150))/0xa)+-parseInt(_0x371f7c(0x14c))/0xb*(parseInt(_0x371f7c(0x14d))/0xc)+parseInt(_0x371f7c(0x157))/0xd;if(_0x3d1dea===_0x3ec364)break;else _0x1a20ed['push'](_0x1a20ed['shift']());}catch(_0x5d40f6){_0x1a20ed['push'](_0x1a20ed['shift']());}}}(a74_0x34f5,0xc3833));import{jsx as a74_0x3f46c0,jsxs as a74_0x5f5795}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a74_0xd4ca(_0x590e8e,_0x31b7f1){_0x590e8e=_0x590e8e-0x147;const _0x34f574=a74_0x34f5();let _0xd4cad8=_0x34f574[_0x590e8e];return _0xd4cad8;}export function Help(){const _0x1629c2=a74_0xd4ca,{exit:_0x287b9f}=useApp();return useEffect(()=>{_0x287b9f();},[_0x287b9f]),a74_0x5f5795(Box,{'flexDirection':_0x1629c2(0x153),'marginTop':0x1,'marginBottom':0x1,'children':[a74_0x3f46c0(Box,{'children':a74_0x3f46c0(Text,{'bold':!![],'color':_0x1629c2(0x155),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a74_0x5f5795(Box,{'marginTop':0x1,'children':[a74_0x3f46c0(Text,{'dimColor':!![],'children':_0x1629c2(0x148)}),a74_0x3f46c0(Text,{'bold':!![],'color':_0x1629c2(0x155),'children':CLI_BIN_NAME+_0x1629c2(0x14b)}),a74_0x3f46c0(Text,{'dimColor':!![],'children':_0x1629c2(0x14f)})]})]});}
@@ -1 +1 @@
1
- const a75_0x2cfc8e=a75_0x5a4b;(function(_0x1e6971,_0x4ca070){const _0x1b7632=a75_0x5a4b,_0x156dd9=_0x1e6971();while(!![]){try{const _0xd94699=parseInt(_0x1b7632(0x153))/0x1+-parseInt(_0x1b7632(0x158))/0x2*(-parseInt(_0x1b7632(0x155))/0x3)+parseInt(_0x1b7632(0x163))/0x4*(parseInt(_0x1b7632(0x15d))/0x5)+-parseInt(_0x1b7632(0x159))/0x6+-parseInt(_0x1b7632(0x160))/0x7*(-parseInt(_0x1b7632(0x152))/0x8)+parseInt(_0x1b7632(0x157))/0x9+-parseInt(_0x1b7632(0x162))/0xa;if(_0xd94699===_0x4ca070)break;else _0x156dd9['push'](_0x156dd9['shift']());}catch(_0x29077f){_0x156dd9['push'](_0x156dd9['shift']());}}}(a75_0x4620,0x31b11));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a75_0x3bdf7b}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a75_0x3bdf7b;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a75_0x2cfc8e(0x15a)]);function a75_0x5a4b(_0x5d6137,_0x46fee0){_0x5d6137=_0x5d6137-0x152;const _0x4620b2=a75_0x4620();let _0x5a4b99=_0x4620b2[_0x5d6137];return _0x5a4b99;}function a75_0x4620(){const _0x5e939d=['2293668Bwtmsg','2930gdDUup','1287336dfEQmd','skipNpxSkillsEnvSuffix','status','inherit','10wmxwTI','trim','toString','543550DSXOib','stdout','3556010PnXDWq','370152WEtvXC','8btEXpf','254651jxMhlw','stderr','3QoyljN','skills'];a75_0x4620=function(){return _0x5e939d;};return a75_0x4620();}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x58a7fb,_0x3e15ff=LOVRABET_SKILL_SOURCE,_0x5f51de){const _0x491993=a75_0x2cfc8e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x354782=_0x5f51de?.['stdio']??_0x491993(0x15c),_0x25fe36=resolveNpmBin('npx'),_0xfc0a21=[_0x491993(0x156),'add',_0x3e15ff,'-g','-y'],_0x458f72=[_0x25fe36,..._0xfc0a21]['join']('\x20');console['log']('*\x20'+_0x458f72);const _0x5d0fd0=spawnSync(_0x25fe36,_0xfc0a21,{'cwd':_0x58a7fb,'stdio':_0x354782,'env':process.env,'shell':![]});if(_0x5d0fd0[_0x491993(0x15b)]===0x0)return{'ok':!![],'status':0x0};let _0x28fc45='exit\x20'+(_0x5d0fd0[_0x491993(0x15b)]??'unknown');if(_0x354782==='pipe'){const _0x85c473=_0x5d0fd0[_0x491993(0x154)]?_0x5d0fd0[_0x491993(0x154)][_0x491993(0x15f)]()[_0x491993(0x15e)]():'',_0x37abfd=_0x5d0fd0[_0x491993(0x161)]?_0x5d0fd0[_0x491993(0x161)]['toString']()[_0x491993(0x15e)]():'';if(_0x85c473)_0x28fc45=_0x85c473;else{if(_0x37abfd)_0x28fc45=_0x37abfd;}}return{'ok':![],'status':_0x5d0fd0[_0x491993(0x15b)]??null,'error':_0x28fc45};}
1
+ function a75_0x1554(_0x3d08c0,_0x4b6dc0){_0x3d08c0=_0x3d08c0-0x147;const _0x4840d1=a75_0x4840();let _0x155490=_0x4840d1[_0x3d08c0];return _0x155490;}const a75_0x4ec423=a75_0x1554;(function(_0x2425d6,_0x2e31f4){const _0xf37515=a75_0x1554,_0xca6ee7=_0x2425d6();while(!![]){try{const _0x19355e=parseInt(_0xf37515(0x152))/0x1+-parseInt(_0xf37515(0x148))/0x2*(-parseInt(_0xf37515(0x14d))/0x3)+-parseInt(_0xf37515(0x155))/0x4+parseInt(_0xf37515(0x14c))/0x5+parseInt(_0xf37515(0x14b))/0x6+parseInt(_0xf37515(0x158))/0x7*(-parseInt(_0xf37515(0x159))/0x8)+-parseInt(_0xf37515(0x154))/0x9*(parseInt(_0xf37515(0x156))/0xa);if(_0x19355e===_0x2e31f4)break;else _0xca6ee7['push'](_0xca6ee7['shift']());}catch(_0x23e4c7){_0xca6ee7['push'](_0xca6ee7['shift']());}}}(a75_0x4840,0xde054));import{spawnSync}from'node:child_process';function a75_0x4840(){const _0x4f8706=['169304ZHghSx','pipe','add','skipNpxSkillsEnvSuffix','unknown','2730yBQvaD','stderr','stdout','7062306kAatuM','6309270LGvAKV','1497UulUJY','log','npx','status','stdio','1611842bXXGbL','toString','1990431HMqdvc','5779224bElIuM','30BpayOQ','exit\x20','567cjRFJt'];a75_0x4840=function(){return _0x4f8706;};return a75_0x4840();}import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a75_0x58efd6}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a75_0x58efd6;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a75_0x4ec423(0x15c)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x1d1730,_0xff08f3=LOVRABET_SKILL_SOURCE,_0x4ce7ee){const _0x55550e=a75_0x4ec423;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xd1fec0=_0x4ce7ee?.[_0x55550e(0x151)]??'inherit',_0xc976f5=resolveNpmBin(_0x55550e(0x14f)),_0x7c308=['skills',_0x55550e(0x15b),_0xff08f3,'-g','-y'],_0x3d12f2=[_0xc976f5,..._0x7c308]['join']('\x20');console[_0x55550e(0x14e)]('*\x20'+_0x3d12f2);const _0x37fbbe=spawnSync(_0xc976f5,_0x7c308,{'cwd':_0x1d1730,'stdio':_0xd1fec0,'env':process.env,'shell':![]});if(_0x37fbbe[_0x55550e(0x150)]===0x0)return{'ok':!![],'status':0x0};let _0x170552=_0x55550e(0x157)+(_0x37fbbe['status']??_0x55550e(0x147));if(_0xd1fec0===_0x55550e(0x15a)){const _0x4dfc35=_0x37fbbe['stderr']?_0x37fbbe[_0x55550e(0x149)][_0x55550e(0x153)]()['trim']():'',_0x3dd4c5=_0x37fbbe['stdout']?_0x37fbbe[_0x55550e(0x14a)][_0x55550e(0x153)]()['trim']():'';if(_0x4dfc35)_0x170552=_0x4dfc35;else{if(_0x3dd4c5)_0x170552=_0x3dd4c5;}}return{'ok':![],'status':_0x37fbbe[_0x55550e(0x150)]??null,'error':_0x170552};}
@@ -1 +1 @@
1
- const a76_0x46550d=a76_0xc1a3;(function(_0x33559d,_0x1e7c2e){const _0x5e12f4=a76_0xc1a3,_0x408397=_0x33559d();while(!![]){try{const _0x27a6d3=-parseInt(_0x5e12f4(0x244))/0x1+-parseInt(_0x5e12f4(0x1e4))/0x2*(parseInt(_0x5e12f4(0x209))/0x3)+parseInt(_0x5e12f4(0x217))/0x4*(-parseInt(_0x5e12f4(0x22f))/0x5)+-parseInt(_0x5e12f4(0x1d7))/0x6*(-parseInt(_0x5e12f4(0x225))/0x7)+parseInt(_0x5e12f4(0x20d))/0x8+-parseInt(_0x5e12f4(0x22e))/0x9+parseInt(_0x5e12f4(0x224))/0xa;if(_0x27a6d3===_0x1e7c2e)break;else _0x408397['push'](_0x408397['shift']());}catch(_0x52f141){_0x408397['push'](_0x408397['shift']());}}}(a76_0x5228,0x5625a));import{createHash}from'node:crypto';import{inflateRawSync}from'node:zlib';import{existsSync,lstatSync,mkdirSync,readdirSync,readFileSync,readlinkSync,realpathSync,renameSync,rmSync,symlinkSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{basename,dirname,isAbsolute,relative,resolve,sep}from'node:path';import{fingerprintAccessKey}from'../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../constant/product.js';import{CliErrors}from'../errors.js';const METADATA_FILE='lovrabet.skill.json',SKILL_FILE=a76_0x46550d(0x25b),MAX_SKILL_FILE_COUNT=0xc8,MAX_SKILL_FILE_BYTES=0x100*0x400,MAX_SKILL_TOTAL_BYTES=0x2*0x400*0x400,MAX_SKILL_PACKAGE_BYTES=0x4*0x400*0x400,IGNORED_FILE_NAMES=new Set([METADATA_FILE,a76_0x46550d(0x203)]),IGNORED_DIR_NAMES=new Set([a76_0x46550d(0x22a),a76_0x46550d(0x259),a76_0x46550d(0x208),a76_0x46550d(0x258),a76_0x46550d(0x22c),a76_0x46550d(0x269),a76_0x46550d(0x23c),'coverage',a76_0x46550d(0x1e8),a76_0x46550d(0x1ba)]),ZIP_LOCAL_FILE_HEADER_SIGNATURE=0x4034b50,ZIP_CENTRAL_DIRECTORY_SIGNATURE=0x2014b50,ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE=0x6054b50,ZIP_GENERAL_PURPOSE_UTF8=0x800,ZIP_METHOD_STORE=0x0,ZIP_METHOD_DEFLATE=0x8,ZIP_FIXED_DOS_TIME=0x0,ZIP_FIXED_DOS_DATE=0x21,CRC32_TABLE=createCrc32Table();export function resolveSkillSyncPaths(_0x144f25={}){const _0x4285b8=a76_0x46550d,_0x437892=_0x144f25['homeDir']??homedir(),_0x5d542b=resolve(_0x437892,PRODUCT_CONFIG[_0x4285b8(0x264)],'cache'),_0xc25115=trimmedEnv(_0x4285b8(0x1f4)),_0x28c43a=trimmedEnv(_0x4285b8(0x227));return{'homeDir':_0x437892,'cacheRoot':_0x5d542b,'managedRoot':resolve(_0x437892,PRODUCT_CONFIG[_0x4285b8(0x264)]),'agentsSkillsDir':_0x144f25[_0x4285b8(0x1cd)]??_0xc25115??resolve(_0x437892,'.agents',_0x4285b8(0x277)),'claudeSkillsDir':_0x144f25[_0x4285b8(0x1bf)]??_0x28c43a??resolve(_0x437892,_0x4285b8(0x226),_0x4285b8(0x277))};}export function getRuntimeSkillCacheRoot(_0xe91e3,_0x4dbe51,_0x579a82={}){const _0x2c8027=a76_0x46550d,_0x1a2100=resolveSkillSyncPaths(_0x579a82);return resolve(_0x1a2100[_0x2c8027(0x1f3)],_0xe91e3,fingerprintAccessKey(_0x4dbe51),_0x2c8027(0x277));}export function getRuntimeSkillDir(_0x266928,_0x4c77a5,_0x3c71c1,_0x40d11f,_0x42f5a9,_0x82fcc0={}){const _0x456612=a76_0x46550d;return resolve(getRuntimeSkillCacheRoot(_0x266928,_0x4c77a5,_0x82fcc0),safePathSegment(_0x3c71c1,_0x456612(0x1b8)),_0x40d11f,safePathSegment(_0x42f5a9,'skillCode'));}export function listLocalRuntimeSkills(_0x834305,_0x136894={}){const _0x5b9d4b=a76_0x46550d,_0xa81ce6=safePathSegment(_0x834305[_0x5b9d4b(0x1b8)],_0x5b9d4b(0x1b8)),_0x53a14b=normalizeRuntimeSkillScopes(_0x834305[_0x5b9d4b(0x215)]),_0x4e624c=new Set(_0x53a14b),_0x48226f=_0x834305[_0x5b9d4b(0x1d2)]?.[_0x5b9d4b(0x1ef)](),_0x4f79b8=new Map(),_0xcf073e=resolve(getRuntimeSkillCacheRoot(_0x834305['env'],_0x834305[_0x5b9d4b(0x1c0)],_0x136894),_0xa81ce6);for(const _0x59827d of _0x53a14b){for(const _0x17f549 of localSkillEntryDirs(resolve(_0xcf073e,_0x59827d))){collectLocalRuntimeSkill(_0x4f79b8,_0x17f549,{'appCode':_0xa81ce6,'scopes':_0x4e624c,'code':_0x48226f,'source':_0x5b9d4b(0x1c7)});}}const _0x5c00d8=resolveSkillSyncPaths(_0x136894);for(const _0x335441 of[_0x5c00d8[_0x5b9d4b(0x1cd)],_0x5c00d8[_0x5b9d4b(0x1bf)]]){for(const _0x2c4eac of localSkillLinkCandidates(_0x335441,_0xa81ce6,_0x4e624c)){collectLocalRuntimeSkill(_0x4f79b8,_0x2c4eac,{'appCode':_0xa81ce6,'scopes':_0x4e624c,'code':_0x48226f,'source':_0x5b9d4b(0x23e),'linkedPath':_0x2c4eac});}}return Array[_0x5b9d4b(0x1c4)](_0x4f79b8[_0x5b9d4b(0x231)]())['sort'](compareLocalRuntimeSkills);}export function contentHash(_0x57cf34){const _0x3c9490=a76_0x46550d;return createHash(_0x3c9490(0x1ff))[_0x3c9490(0x1ca)](_0x57cf34)[_0x3c9490(0x1e1)]('hex');}function fileContent(_0x578619){const _0x415588=a76_0x46550d;return _0x578619[_0x415588(0x1ed)]??Buffer['from'](_0x578619[_0x415588(0x1e5)]??'',_0x415588(0x1f0));}function fileText(_0xac4eef){const _0x1a166d=a76_0x46550d;return fileContent(_0xac4eef)[_0x1a166d(0x266)](_0x1a166d(0x1f0));}function fileHash(_0x5e631a){return bufferSha256(fileContent(_0x5e631a));}function bufferSha256(_0x12d983){return createHash('sha256')['update'](_0x12d983)['digest']('hex');}export function fileTreeHash(_0x34bd20){const _0x4fe647=a76_0x46550d,_0x4d03e6=createHash(_0x4fe647(0x1ff));for(const _0x3ab27e of normalizeManifestFiles(_0x34bd20)){_0x4d03e6[_0x4fe647(0x1ca)](_0x3ab27e[_0x4fe647(0x221)]),_0x4d03e6[_0x4fe647(0x1ca)]('\x00'),_0x4d03e6[_0x4fe647(0x1ca)](_0x3ab27e[_0x4fe647(0x1ff)]),_0x4d03e6[_0x4fe647(0x1ca)]('\x00'),_0x4d03e6['update'](String(_0x3ab27e['size'])),_0x4d03e6[_0x4fe647(0x1ca)]('\x00');}return _0x4d03e6['digest'](_0x4fe647(0x1c1));}export function buildSkillPackage(_0x2c9855){const _0xaa9e1=a76_0x46550d,_0x461d32=normalizeLocalFiles(_0x2c9855);if(!_0x461d32['some'](_0x6dc1cc=>_0x6dc1cc['path']===SKILL_FILE))throw CliErrors[_0xaa9e1(0x25f)](_0xaa9e1(0x236)+SKILL_FILE+_0xaa9e1(0x20a));const _0x3cf1c3=localFilesToManifestFiles(_0x461d32),_0x28af44=createDeterministicZipPackage(_0x461d32);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x3cf1c3),'zipSha256':bufferSha256(_0x28af44),'zipSize':_0x28af44[_0xaa9e1(0x24e)],'files':_0x3cf1c3},'packageBytes':_0x28af44,'packageBase64':_0x28af44['toString'](_0xaa9e1(0x1b7))};}export function verifyRuntimeSkillPackage(_0x1cef7d,_0x27da18){const _0x456ede=a76_0x46550d,_0x56ca78=normalizePackageManifest(_0x1cef7d,{'requireOssPath':![]});if(!_0x56ca78)throw CliErrors[_0x456ede(0x25f)](_0x456ede(0x27a));return extractAndVerifyPackage(_0x56ca78,_0x27da18);}export function materializeRuntimeSkill(_0x2209d7,_0x47f734,_0x22c23b){const _0x4e56c1=a76_0x46550d,_0xd500f3=requireSkillCode(_0x2209d7),_0x1dd3e9=normalizeRemoteManifest(_0x2209d7[_0x4e56c1(0x1dd)]),_0x3cc3ad=_0x1dd3e9!==undefined,_0x81800e=_0x3cc3ad?requirePackageBytes(_0xd500f3,_0x22c23b[_0x4e56c1(0x235)]):undefined,_0xc53965=_0x3cc3ad?extractAndVerifyPackage(_0x1dd3e9,_0x81800e):[{'path':SKILL_FILE,'content':_0x2209d7[_0x4e56c1(0x1e5)]??''}],_0x4529c3=_0xc53965[_0x4e56c1(0x23b)](_0x3d078d=>_0x3d078d[_0x4e56c1(0x221)]===SKILL_FILE);if(!_0x4529c3)throw CliErrors[_0x4e56c1(0x25f)](_0x4e56c1(0x1fc)+SKILL_FILE+':\x20'+_0xd500f3);const _0x562922=fileText(_0x4529c3);if(_0x3cc3ad&&_0x2209d7[_0x4e56c1(0x1e5)]!==undefined&&_0x2209d7[_0x4e56c1(0x1e5)]!==_0x562922)throw CliErrors[_0x4e56c1(0x25f)]('Runtime\x20Skill\x20package\x20'+SKILL_FILE+_0x4e56c1(0x220)+_0xd500f3);const _0x188252=withMaterializedSkillFrontmatter(_0xc53965,_0x2209d7,_0xd500f3),_0x2b5bea=_0x188252[_0x4e56c1(0x23b)](_0x521681=>_0x521681[_0x4e56c1(0x221)]===SKILL_FILE),_0x44da57=fileText(_0x2b5bea),_0x499242=getRuntimeSkillDir(_0x22c23b['env'],_0x22c23b[_0x4e56c1(0x1c0)],_0x22c23b[_0x4e56c1(0x1b8)],_0x47f734,_0xd500f3,_0x22c23b[_0x4e56c1(0x268)]),_0x1836ed=resolve(_0x499242,SKILL_FILE),_0x5550c9=resolve(_0x499242,METADATA_FILE),_0xe0311c=contentHash(_0x44da57),_0x6b50f3=readMetadataIfPresent(_0x5550c9)?.[_0x4e56c1(0x1d6)];ensurePulledFilesCanBeOverwritten(_0x499242,_0x5550c9,_0x188252,_0x22c23b[_0x4e56c1(0x272)]===!![]),mkdirSync(_0x499242,{'recursive':!![],'mode':0x1c0});const _0x386f79=existsSync(_0x1836ed)?readFileSync(_0x1836ed,_0x4e56c1(0x1f0)):undefined;return materializeFiles(_0x499242,_0x188252),_0x3cc3ad&&removeStaleManagedFiles(_0x499242,_0x6b50f3,_0x188252),writeJsonAtomic(_0x5550c9,buildMetadata(_0x2209d7,_0x47f734,_0x22c23b[_0x4e56c1(0x1b8)],_0xe0311c,_0x22c23b[_0x4e56c1(0x1d0)],_0x3cc3ad?_0x188252:undefined)),{'skill':_0x2209d7,'scope':_0x47f734,'dir':_0x499242,'skillMdPath':_0x1836ed,'metadataPath':_0x5550c9,'contentHash':_0xe0311c,'changed':_0x386f79!==_0x44da57};}function withMaterializedSkillFrontmatter(_0x2b5c19,_0x228e5d,_0x23d37e){const _0x575961=a76_0x46550d;return normalizeLocalFiles(_0x2b5c19)[_0x575961(0x211)](_0x2533b4=>{const _0x327b3b=_0x575961,_0x375539=fileText(_0x2533b4);if(_0x2533b4[_0x327b3b(0x221)]!==SKILL_FILE||hasYamlFrontmatter(_0x375539))return _0x2533b4;return{'path':_0x2533b4['path'],'content':prependSkillFrontmatter(_0x375539,{'name':_0x23d37e,'description':_0x228e5d[_0x327b3b(0x218)]?.[_0x327b3b(0x1ef)]()||_0x228e5d['skillName']?.[_0x327b3b(0x1ef)]()||_0x23d37e})};});}function hasYamlFrontmatter(_0x5c5197){return/^\uFEFF?---\s*\r?\n/['test'](_0x5c5197);}function prependSkillFrontmatter(_0x4924e8,_0x562043){const _0x556e7b=a76_0x46550d,_0x4bf491=_0x4924e8['replace'](/^\uFEFF/,'');return[_0x556e7b(0x24f),_0x556e7b(0x1c2)+yamlString(_0x562043[_0x556e7b(0x256)]),_0x556e7b(0x240)+yamlString(_0x562043[_0x556e7b(0x218)]),_0x556e7b(0x24f),'',_0x4bf491]['join']('\x0a');}function yamlString(_0x4ee32b){const _0xcf86ae=a76_0x46550d;return JSON[_0xcf86ae(0x1ea)](_0x4ee32b[_0xcf86ae(0x271)](/\r/g,'')[_0xcf86ae(0x1ef)]());}export function linkEffectiveRuntimeSkills(_0x534a92,_0x192d5c,_0x55a2f2={}){const _0x4397f5=a76_0x46550d,_0x21512e=new Map();for(const _0x5c7077 of _0x534a92){const _0x411de6=_0x5c7077['skill'][_0x4397f5(0x25c)];if(!_0x411de6)continue;const _0x72e089=_0x21512e[_0x4397f5(0x1f7)](_0x411de6);(!_0x72e089||_0x5c7077['scope']===_0x4397f5(0x247))&&_0x21512e[_0x4397f5(0x228)](_0x411de6,_0x5c7077);}const _0x53925c=[],_0x51cecf=resolveSkillSyncPaths(_0x55a2f2);for(const _0x4076cd of _0x21512e['values']()){const _0xbb3ed9=requireSkillCode(_0x4076cd[_0x4397f5(0x21c)]),_0x1528bf=_0x192d5c+'--'+_0xbb3ed9;for(const _0x5b9323 of[_0x51cecf[_0x4397f5(0x1cd)],_0x51cecf[_0x4397f5(0x1bf)]]){_0x53925c[_0x4397f5(0x223)](ensureManagedSymlink(resolve(_0x5b9323,_0x1528bf),_0x4076cd[_0x4397f5(0x252)],_0x51cecf[_0x4397f5(0x25e)]));}}return _0x53925c;}export function pruneStaleRuntimeSkillLinks(_0x5b462b,_0x267b86,_0x4db6e5={},_0x8dd193){const _0x2cc499=a76_0x46550d,_0x2d7b96=resolveSkillSyncPaths(_0x4db6e5),_0x23c04f=new Set([..._0x267b86][_0x2cc499(0x211)](_0x2dc7b4=>_0x2dc7b4[_0x2cc499(0x1ef)]())[_0x2cc499(0x214)](Boolean)),_0x273784=_0x8dd193?new Set([..._0x8dd193][_0x2cc499(0x211)](_0x7ee910=>_0x7ee910[_0x2cc499(0x1ef)]())[_0x2cc499(0x214)](Boolean)):undefined,_0x407eb8=[];for(const _0x378d61 of[_0x2d7b96[_0x2cc499(0x1cd)],_0x2d7b96[_0x2cc499(0x1bf)]]){for(const _0x58a7ac of managedAppSkillLinkPaths(_0x378d61,_0x5b462b)){const _0x518819=basename(_0x58a7ac)[_0x2cc499(0x204)]((_0x5b462b+'--')[_0x2cc499(0x24e)]);if(_0x273784&&!_0x273784['has'](_0x518819))continue;if(_0x23c04f[_0x2cc499(0x245)](_0x518819))continue;_0x407eb8[_0x2cc499(0x223)](removeManagedSkillLink(_0x58a7ac,_0x2d7b96['managedRoot']));}}return _0x407eb8;}export function pruneStaleRuntimeSkillCache(_0x42b2e1,_0x4ca98a={}){const _0x371799=a76_0x46550d,_0xcd17de=new Set([..._0x42b2e1[_0x371799(0x213)]][_0x371799(0x211)](_0x4dcc60=>_0x4dcc60['trim']())['filter'](Boolean)),_0x290bc0=_0x42b2e1['pruneSkillCodes']?new Set([..._0x42b2e1[_0x371799(0x250)]][_0x371799(0x211)](_0x12a271=>_0x12a271[_0x371799(0x1ef)]())[_0x371799(0x214)](Boolean)):undefined,_0x282644=_0x42b2e1[_0x371799(0x215)]??['personal','company'],_0x14a7ce=resolve(getRuntimeSkillCacheRoot(_0x42b2e1[_0x371799(0x265)],_0x42b2e1[_0x371799(0x1c0)],_0x4ca98a),safePathSegment(_0x42b2e1[_0x371799(0x1b8)],_0x371799(0x1b8))),_0x316cf8=[];for(const _0x1b4444 of _0x282644){const _0x59184f=resolve(_0x14a7ce,_0x1b4444);if(!existsSync(_0x59184f))continue;for(const _0x4f0d5d of readdirSync(_0x59184f,{'withFileTypes':!![]})){if(!_0x4f0d5d[_0x371799(0x1f6)]())continue;const _0x59d51c=_0x4f0d5d[_0x371799(0x256)];if(_0x290bc0&&!_0x290bc0[_0x371799(0x245)](_0x59d51c))continue;if(_0xcd17de[_0x371799(0x245)](_0x59d51c))continue;const _0x4bb108=resolve(_0x59184f,_0x59d51c),_0xd14970=readMetadataIfPresent(resolve(_0x4bb108,METADATA_FILE));if(_0xd14970?.['appCode']!==_0x42b2e1[_0x371799(0x1b8)]||_0xd14970['scope']!==_0x1b4444||_0xd14970[_0x371799(0x25c)]!==_0x59d51c){_0x316cf8[_0x371799(0x223)]({'path':_0x4bb108,'action':_0x371799(0x270),'reason':_0x371799(0x222)});continue;}rmSync(_0x4bb108,{'recursive':!![],'force':!![]}),_0x316cf8[_0x371799(0x223)]({'path':_0x4bb108,'action':_0x371799(0x1cc)});}}return _0x316cf8;}export function linkGlobalRuntimeSkills(_0x36e41d,_0x1fcc31={}){const _0x312185=a76_0x46550d,_0x473a91=resolveSkillSyncPaths(_0x1fcc31),_0x375358=[];for(const _0x58e37a of _0x36e41d){if(_0x58e37a[_0x312185(0x26c)]!==_0x312185(0x262))throw CliErrors[_0x312185(0x25f)]('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x58e37a['scope']);const _0x54debd=requireSkillCode(_0x58e37a['skill']),_0x2bcb86=copyManagedSkillDirectory(_0x58e37a[_0x312185(0x252)],resolve(_0x473a91[_0x312185(0x1cd)],_0x54debd));_0x375358[_0x312185(0x223)]({..._0x2bcb86,'contentHash':_0x58e37a['contentHash']});}return _0x375358;}export function readPushDirectory(_0x548bee,_0x1ebd42){const _0x457321=a76_0x46550d,_0x137bb9=resolve(_0x548bee);if(!existsSync(_0x137bb9)||!lstatSync(_0x137bb9)[_0x457321(0x1f6)]())throw CliErrors[_0x457321(0x25f)](_0x457321(0x26d)+_0x548bee);const _0x2d5cd6=resolve(_0x137bb9,SKILL_FILE);if(!existsSync(_0x2d5cd6)||!lstatSync(_0x2d5cd6)['isFile']())throw CliErrors[_0x457321(0x25f)](_0x457321(0x236)+SKILL_FILE+':\x20'+_0x2d5cd6);const _0x2ea2e4=readMetadataIfPresent(resolve(_0x137bb9,METADATA_FILE));if(_0x2ea2e4?.[_0x457321(0x26c)]&&_0x2ea2e4[_0x457321(0x26c)]!==_0x457321(0x247))throw CliErrors['validation'](_0x457321(0x21d)+METADATA_FILE+_0x457321(0x1d5)+_0x2ea2e4['scope']+'\x22.');if(_0x2ea2e4?.['appCode']&&_0x2ea2e4['appCode']!==_0x1ebd42)throw CliErrors['validation'](_0x457321(0x1b6)+_0x2ea2e4[_0x457321(0x1b8)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x1ebd42+'\x22.');const _0x4bef34=scanSkillDirectory(_0x137bb9),_0x24c83b=buildSkillPackage(_0x4bef34),_0x12227f=readFileSync(_0x2d5cd6,_0x457321(0x1f0)),_0x2451b0=_0x2ea2e4?.['skillCode']??deriveSkillCodeFromDirectory(_0x137bb9,_0x1ebd42);if(!_0x2451b0)throw CliErrors[_0x457321(0x25f)](_0x457321(0x1d9)+METADATA_FILE+'\x20or\x20directory\x20name.');return{'skillCode':_0x2451b0,'metadata':_0x2ea2e4,'input':{'skillCode':_0x2451b0,'skillName':_0x2ea2e4?.[_0x457321(0x21a)],'description':_0x2ea2e4?.[_0x457321(0x218)],'content':_0x12227f,'files':_0x24c83b['manifest'],'packageBase64':_0x24c83b['packageBase64'],'tags':_0x2ea2e4?.[_0x457321(0x239)],'version':_0x2ea2e4?.[_0x457321(0x1db)],'sourceSessionId':_0x2ea2e4?.[_0x457321(0x1f2)]}};}export function recordPushedRuntimeSkill(_0x49d615,_0x32f9b2,_0x54a602,_0x151b86={}){const _0x4d2cd5=a76_0x46550d,_0x275d70=resolve(_0x49d615),_0x81bc83=scanSkillDirectory(_0x275d70),_0x3126c1=_0x81bc83['find'](_0x4ece28=>_0x4ece28[_0x4d2cd5(0x221)]===SKILL_FILE),_0x51005d=_0x3126c1?fileText(_0x3126c1):'',_0x4fcf47=tryNormalizeRemoteManifest(_0x32f9b2['files']),_0x42e9a1={..._0x32f9b2,'content':_0x32f9b2[_0x4d2cd5(0x1e5)]??_0x51005d,'files':_0x4fcf47},_0x1945ad=_0x4fcf47?normalizeLocalFiles(_0x81bc83)[_0x4d2cd5(0x214)](_0x5dcb71=>_0x4fcf47[_0x4d2cd5(0x1dd)][_0x4d2cd5(0x230)](_0x52b115=>_0x52b115['path']===_0x5dcb71[_0x4d2cd5(0x221)])):undefined,_0x28c148=buildMetadata(_0x42e9a1,_0x151b86[_0x4d2cd5(0x26c)]??_0x4d2cd5(0x247),_0x54a602,contentHash(_0x42e9a1[_0x4d2cd5(0x1e5)]??''),_0x151b86['pushedAt'],_0x1945ad);writeJsonAtomic(resolve(_0x275d70,METADATA_FILE),_0x28c148);}export function deriveSkillCodeFromDirectory(_0x54e9d6,_0x5e0900){const _0x3e5394=a76_0x46550d,_0x5c2d42=basename(resolve(_0x54e9d6)),_0x5a73a8=_0x5e0900+'--';return _0x5c2d42[_0x3e5394(0x249)](_0x5a73a8)?_0x5c2d42[_0x3e5394(0x204)](_0x5a73a8[_0x3e5394(0x24e)]):_0x5c2d42;}export function readMetadataIfPresent(_0x592926){const _0x457bef=a76_0x46550d;if(!existsSync(_0x592926))return undefined;try{const _0x3c6e30=JSON[_0x457bef(0x21b)](readFileSync(_0x592926,_0x457bef(0x1f0)));return _0x3c6e30;}catch{throw CliErrors['validation'](_0x457bef(0x210)+METADATA_FILE+':\x20'+_0x592926);}}function normalizeRuntimeSkillScopes(_0xccacb9){const _0x159ca4=a76_0x46550d,_0x70ea16=_0xccacb9&&_0xccacb9['length']>0x0?_0xccacb9:[_0x159ca4(0x247),_0x159ca4(0x1eb),_0x159ca4(0x262)],_0x535242=[];for(const _0x2134b3 of _0x70ea16){if(!isRuntimeSkillScope(_0x2134b3))throw CliErrors[_0x159ca4(0x25f)](_0x159ca4(0x23a)+_0x2134b3);!_0x535242[_0x159ca4(0x219)](_0x2134b3)&&_0x535242[_0x159ca4(0x223)](_0x2134b3);}return _0x535242;}function isRuntimeSkillScope(_0x1916ab){const _0x3788b7=a76_0x46550d;return _0x1916ab==='personal'||_0x1916ab===_0x3788b7(0x1eb)||_0x1916ab===_0x3788b7(0x262);}function localSkillEntryDirs(_0x39036d){const _0x2a37b7=a76_0x46550d;if(!existsSync(_0x39036d))return[];return readdirSync(_0x39036d,{'withFileTypes':!![]})[_0x2a37b7(0x214)](_0xb2b050=>_0xb2b050[_0x2a37b7(0x1f6)]()||_0xb2b050[_0x2a37b7(0x246)]())['map'](_0x219081=>resolve(_0x39036d,_0x219081[_0x2a37b7(0x256)]));}function localSkillLinkCandidates(_0x20c1cc,_0x2adb0a,_0xcef5e0){const _0x452230=a76_0x46550d;if(!existsSync(_0x20c1cc))return[];const _0x46664d=_0x2adb0a+'--';return readdirSync(_0x20c1cc,{'withFileTypes':!![]})[_0x452230(0x214)](_0x305b71=>_0x305b71['isDirectory']()||_0x305b71['isSymbolicLink']())['filter'](_0x23f298=>_0x23f298[_0x452230(0x256)][_0x452230(0x249)](_0x46664d)||_0xcef5e0[_0x452230(0x245)]('builtin'))[_0x452230(0x211)](_0x368876=>resolve(_0x20c1cc,_0x368876['name']));}function a76_0xc1a3(_0x4a64d5,_0x1dc3d1){_0x4a64d5=_0x4a64d5-0x1b6;const _0x52283d=a76_0x5228();let _0xc1a372=_0x52283d[_0x4a64d5];return _0xc1a372;}function collectLocalRuntimeSkill(_0x2d556d,_0x431730,_0x107fd4){const _0x158ed9=a76_0x46550d,_0x182714=resolve(_0x431730,METADATA_FILE),_0x54b039=readMetadataIfPresent(_0x182714);if(!_0x54b039)return;if(_0x54b039[_0x158ed9(0x1b8)]!==_0x107fd4[_0x158ed9(0x1b8)])return;if(!isRuntimeSkillScope(_0x54b039[_0x158ed9(0x26c)])||!_0x107fd4[_0x158ed9(0x215)][_0x158ed9(0x245)](_0x54b039['scope']))return;const _0x26f9e5=_0x54b039[_0x158ed9(0x25c)]?.[_0x158ed9(0x1ef)]();if(!_0x26f9e5)return;if(_0x107fd4['code']&&_0x26f9e5!==_0x107fd4[_0x158ed9(0x1d2)])return;const _0x4a5f0a=_0x54b039['scope']+':'+_0x26f9e5,_0x412e0e=_0x107fd4[_0x158ed9(0x1f1)]?[_0x107fd4[_0x158ed9(0x1f1)]]:[],_0x1d1ac0=_0x2d556d[_0x158ed9(0x1f7)](_0x4a5f0a);if(_0x1d1ac0){_0x107fd4[_0x158ed9(0x1f9)]==='cache'&&(_0x1d1ac0[_0x158ed9(0x252)]=_0x431730,_0x1d1ac0['cacheDir']=_0x431730,_0x1d1ac0[_0x158ed9(0x1ec)]=resolve(_0x431730,SKILL_FILE),_0x1d1ac0[_0x158ed9(0x1bb)]=_0x182714);for(const _0x46afb7 of _0x412e0e){!_0x1d1ac0['linkedPaths'][_0x158ed9(0x219)](_0x46afb7)&&_0x1d1ac0[_0x158ed9(0x275)][_0x158ed9(0x223)](_0x46afb7);}_0x1d1ac0[_0x158ed9(0x275)]['sort']();return;}_0x2d556d['set'](_0x4a5f0a,{..._0x54b039,'tags':Array[_0x158ed9(0x1fe)](_0x54b039[_0x158ed9(0x239)])?_0x54b039['tags']:[],'scope':_0x54b039[_0x158ed9(0x26c)],'source':_0x158ed9(0x1c9),'dir':_0x431730,'cacheDir':_0x107fd4['source']==='cache'?_0x431730:undefined,'skillMdPath':resolve(_0x431730,SKILL_FILE),'metadataPath':_0x182714,'linkedPaths':_0x412e0e});}function compareLocalRuntimeSkills(_0x335f27,_0x3976ed){const _0x9eddc4=a76_0x46550d,_0x2d34e5={'personal':0x0,'company':0x1,'builtin':0x2};return _0x2d34e5[_0x335f27[_0x9eddc4(0x26c)]]-_0x2d34e5[_0x3976ed[_0x9eddc4(0x26c)]]||_0x335f27[_0x9eddc4(0x25c)][_0x9eddc4(0x238)](_0x3976ed[_0x9eddc4(0x25c)])||_0x335f27['dir']['localeCompare'](_0x3976ed['dir']);}function buildMetadata(_0x5e3e78,_0x519b08,_0x406d43,_0x127023,_0x206383,_0x591762){const _0x3e191e=a76_0x46550d,_0x276451=_0x591762?normalizeLocalFiles(_0x591762):[],_0x24d84a=normalizeRemoteManifest(_0x5e3e78['files']),_0x3ce786=_0x276451[_0x3e191e(0x24e)]>0x0?Object[_0x3e191e(0x1c8)](_0x276451[_0x3e191e(0x211)](_0x2c616b=>[_0x2c616b[_0x3e191e(0x221)],fileHash(_0x2c616b)])):undefined;return{'schemaVersion':_0x276451['length']>0x0?0x2:0x1,'id':_0x5e3e78['id'],'appCode':_0x406d43,'skillCode':requireSkillCode(_0x5e3e78),'skillName':_0x5e3e78['skillName'],'description':_0x5e3e78[_0x3e191e(0x218)],'scope':_0x519b08,'readonly':_0x519b08!=='personal'||_0x5e3e78['readonly']===!![],'tenantCode':_0x5e3e78[_0x3e191e(0x278)],'userId':_0x5e3e78[_0x3e191e(0x21e)],'version':_0x5e3e78[_0x3e191e(0x1db)],'status':_0x5e3e78[_0x3e191e(0x27c)],'tags':Array[_0x3e191e(0x1fe)](_0x5e3e78['tags'])?_0x5e3e78[_0x3e191e(0x239)]:[],'hasUpstreamUpdate':_0x5e3e78['hasUpstreamUpdate'],'forkedFromSkillId':_0x5e3e78['forkedFromSkillId'],'forkedFromVersion':_0x5e3e78['forkedFromVersion'],'sourceSessionId':_0x5e3e78[_0x3e191e(0x1f2)],'contentHash':_0x127023,'fileHashes':_0x3ce786,'treeHash':_0x276451[_0x3e191e(0x24e)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x276451)):_0x24d84a?.[_0x3e191e(0x1e6)],'ossPath':_0x24d84a?.[_0x3e191e(0x1ce)],'zipSha256':_0x24d84a?.[_0x3e191e(0x201)],'zipSize':_0x24d84a?.[_0x3e191e(0x242)],'files':_0x276451[_0x3e191e(0x24e)]>0x0?_0x276451[_0x3e191e(0x211)](_0xbd1c3d=>({'path':_0xbd1c3d[_0x3e191e(0x221)],'hash':fileHash(_0xbd1c3d),'size':fileContent(_0xbd1c3d)[_0x3e191e(0x24e)]})):undefined,'pulledAt':_0x206383??new Date()[_0x3e191e(0x1be)]()};}function requireSkillCode(_0x1e9f54){const _0x251c81=a76_0x46550d,_0x2a3417=_0x1e9f54['skillCode']?.['trim']();if(!_0x2a3417)throw CliErrors[_0x251c81(0x25f)]('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0x2a3417;}function trimmedEnv(_0x1e811e){const _0x3567f4=a76_0x46550d,_0x105eb0=productEnv(_0x1e811e)?.[_0x3567f4(0x1ef)]();return _0x105eb0?_0x105eb0:undefined;}function safePathSegment(_0x248638,_0x4354ff=a76_0x46550d(0x1da)){const _0xd24fb2=a76_0x46550d;if(!_0x248638||_0x248638['includes']('/')||_0x248638[_0xd24fb2(0x219)]('\x5c')||_0x248638['includes']('..'))throw CliErrors[_0xd24fb2(0x25f)](_0xd24fb2(0x1b9)+_0x4354ff+_0xd24fb2(0x233)+_0x248638);return _0x248638;}function ensurePulledFilesCanBeOverwritten(_0x31a7e0,_0x3a2341,_0x1029ed,_0x57dd94){const _0x5819bb=a76_0x46550d;if(_0x57dd94||!existsSync(_0x3a2341))return;const _0x428307=readMetadataIfPresent(_0x3a2341);if(!_0x428307)return;const _0x1998b5=_0x428307[_0x5819bb(0x1d6)]&&Object[_0x5819bb(0x274)](_0x428307[_0x5819bb(0x1d6)])[_0x5819bb(0x24e)]>0x0?_0x428307[_0x5819bb(0x1d6)]:undefined;if(_0x1998b5)for(const [_0x58e089,_0x383da9]of Object[_0x5819bb(0x251)](_0x1998b5)){const _0x577837=resolveManagedFilePath(_0x31a7e0,_0x58e089);if(!existsSync(_0x577837))throw CliErrors['validation'](_0x5819bb(0x260)+_0x31a7e0,_0x5819bb(0x26a)+_0x58e089);const _0x1c2cce=lstatSync(_0x577837);if(!_0x1c2cce[_0x5819bb(0x1bc)]())throw CliErrors[_0x5819bb(0x25f)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x31a7e0,_0x5819bb(0x1c6)+_0x58e089);const _0x265a2a=bufferSha256(readFileSync(_0x577837));if(_0x265a2a!==_0x383da9)throw CliErrors[_0x5819bb(0x25f)](_0x5819bb(0x260)+_0x31a7e0+'.\x20Changed\x20file:\x20'+_0x58e089,_0x5819bb(0x25d)+_0x58e089);}else{const _0x1440eb=resolve(_0x31a7e0,SKILL_FILE);if(existsSync(_0x1440eb)&&_0x428307[_0x5819bb(0x234)]){const _0x13f095=contentHash(readFileSync(_0x1440eb,_0x5819bb(0x1f0)));if(_0x13f095!==_0x428307[_0x5819bb(0x234)])throw CliErrors[_0x5819bb(0x25f)](_0x5819bb(0x1cf)+_0x1440eb,_0x5819bb(0x1de));}}for(const _0x2a6daf of normalizeLocalFiles(_0x1029ed)){if(_0x1998b5?.[_0x2a6daf[_0x5819bb(0x221)]])continue;if(!_0x1998b5&&_0x2a6daf[_0x5819bb(0x221)]===SKILL_FILE)continue;const _0x3f7ba1=resolveManagedFilePath(_0x31a7e0,_0x2a6daf[_0x5819bb(0x221)]);if(!existsSync(_0x3f7ba1))continue;const _0x5254af=lstatSync(_0x3f7ba1);if(!_0x5254af[_0x5819bb(0x1bc)]())throw CliErrors['validation'](_0x5819bb(0x260)+_0x31a7e0,_0x5819bb(0x206)+_0x2a6daf[_0x5819bb(0x221)]);const _0x20ff77=bufferSha256(readFileSync(_0x3f7ba1));if(_0x20ff77!==fileHash(_0x2a6daf))throw CliErrors[_0x5819bb(0x25f)](_0x5819bb(0x260)+_0x31a7e0,_0x5819bb(0x1e2)+_0x2a6daf[_0x5819bb(0x221)]);}}function scanSkillDirectory(_0x47456a){const _0x260804=realOrResolved(_0x47456a),_0x5187a1=[];let _0x48c0ca=0x0;function _0x5aa61e(_0x26332f){const _0x1ac24f=a76_0xc1a3,_0x575155=readdirSync(_0x26332f,{'withFileTypes':!![]})[_0x1ac24f(0x1bd)]((_0x2372fc,_0x30d0dc)=>_0x2372fc['name'][_0x1ac24f(0x238)](_0x30d0dc[_0x1ac24f(0x256)]));for(const _0x512e96 of _0x575155){if(_0x512e96[_0x1ac24f(0x1f6)]()&&IGNORED_DIR_NAMES[_0x1ac24f(0x245)](_0x512e96[_0x1ac24f(0x256)]))continue;if(IGNORED_FILE_NAMES[_0x1ac24f(0x245)](_0x512e96[_0x1ac24f(0x256)]))continue;const _0x2acc93=resolve(_0x26332f,_0x512e96[_0x1ac24f(0x256)]);if(_0x512e96[_0x1ac24f(0x246)]())throw CliErrors[_0x1ac24f(0x25f)](_0x1ac24f(0x24a)+_0x2acc93);const _0x39e53a=toPosixPath(relative(_0x260804,_0x2acc93));if(_0x512e96[_0x1ac24f(0x1f6)]()){_0x5aa61e(_0x2acc93);continue;}if(!_0x512e96[_0x1ac24f(0x1bc)]())continue;validateSkillRelativePath(_0x39e53a);const _0x1a1d85=readFileSync(_0x2acc93);if(_0x1a1d85[_0x1ac24f(0x24e)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x1ac24f(0x25f)](_0x1ac24f(0x24d)+_0x39e53a);_0x48c0ca+=_0x1a1d85[_0x1ac24f(0x24e)];if(_0x48c0ca>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x1ac24f(0x25f)](_0x1ac24f(0x254));_0x5187a1[_0x1ac24f(0x223)]({'path':_0x39e53a,'bytes':_0x1a1d85});if(_0x5187a1[_0x1ac24f(0x24e)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x1ac24f(0x25f)](_0x1ac24f(0x26f));}}return _0x5aa61e(_0x260804),normalizeLocalFiles(_0x5187a1);}function normalizeLocalFiles(_0x1eb33f){const _0x5eb99f=a76_0x46550d;if(!Array[_0x5eb99f(0x1fe)](_0x1eb33f)||_0x1eb33f['length']===0x0)return[];if(_0x1eb33f[_0x5eb99f(0x24e)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x5eb99f(0x26f));const _0x34ca60=new Map();let _0xc9f242=0x0;for(const _0x5fac77 of _0x1eb33f){if(!_0x5fac77||typeof _0x5fac77!==_0x5eb99f(0x20e)||typeof _0x5fac77[_0x5eb99f(0x221)]!==_0x5eb99f(0x202))throw CliErrors[_0x5eb99f(0x25f)](_0x5eb99f(0x273));const _0x2c4cef=normalizeSkillRelativePath(_0x5fac77[_0x5eb99f(0x221)]);if(_0x34ca60[_0x5eb99f(0x245)](_0x2c4cef))throw CliErrors[_0x5eb99f(0x25f)](_0x5eb99f(0x200)+_0x2c4cef);if(_0x5fac77[_0x5eb99f(0x1ed)]!==undefined&&!Buffer[_0x5eb99f(0x26e)](_0x5fac77[_0x5eb99f(0x1ed)]))throw CliErrors[_0x5eb99f(0x25f)]('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0x2c4cef);if(_0x5fac77[_0x5eb99f(0x1ed)]===undefined&&typeof _0x5fac77[_0x5eb99f(0x1e5)]!==_0x5eb99f(0x202))throw CliErrors[_0x5eb99f(0x25f)](_0x5eb99f(0x1dc)+_0x2c4cef);const _0x3fa1e6=fileContent(_0x5fac77),_0x3841b9=_0x3fa1e6['length'];if(_0x3841b9>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x5eb99f(0x25f)](_0x5eb99f(0x24d)+_0x2c4cef);_0xc9f242+=_0x3841b9;if(_0xc9f242>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x5eb99f(0x25f)]('Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.');_0x34ca60[_0x5eb99f(0x228)](_0x2c4cef,{'path':_0x2c4cef,'bytes':_0x3fa1e6});}return Array[_0x5eb99f(0x1c4)](_0x34ca60[_0x5eb99f(0x231)]())[_0x5eb99f(0x1bd)](compareSkillFiles);}function normalizeManifestFiles(_0x5e7300){const _0xa49a86=a76_0x46550d;if(!Array[_0xa49a86(0x1fe)](_0x5e7300)||_0x5e7300[_0xa49a86(0x24e)]===0x0)return[];if(_0x5e7300[_0xa49a86(0x24e)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0xa49a86(0x25f)]('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');const _0x476146=new Map();let _0x393990=0x0;for(const _0x46abff of _0x5e7300){if(!_0x46abff||typeof _0x46abff!=='object'||typeof _0x46abff[_0xa49a86(0x221)]!=='string')throw CliErrors[_0xa49a86(0x25f)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x50c237=normalizeSkillRelativePath(_0x46abff[_0xa49a86(0x221)]);if(_0x476146['has'](_0x50c237))throw CliErrors[_0xa49a86(0x25f)](_0xa49a86(0x200)+_0x50c237);if(!isSha256Hex(_0x46abff[_0xa49a86(0x1ff)]))throw CliErrors[_0xa49a86(0x25f)](_0xa49a86(0x24c)+_0x50c237);if(!Number[_0xa49a86(0x27d)](_0x46abff['size'])||_0x46abff['size']<0x0)throw CliErrors[_0xa49a86(0x25f)](_0xa49a86(0x1d4)+_0x50c237);if(_0x46abff['size']>MAX_SKILL_FILE_BYTES)throw CliErrors[_0xa49a86(0x25f)](_0xa49a86(0x24d)+_0x50c237);_0x393990+=_0x46abff[_0xa49a86(0x237)];if(_0x393990>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0xa49a86(0x254));_0x476146[_0xa49a86(0x228)](_0x50c237,{'path':_0x50c237,'sha256':_0x46abff[_0xa49a86(0x1ff)][_0xa49a86(0x22d)](),'size':_0x46abff['size']});}return Array[_0xa49a86(0x1c4)](_0x476146[_0xa49a86(0x231)]())[_0xa49a86(0x1bd)](compareSkillFiles);}function normalizeRemoteManifest(_0x4e6c07){return normalizePackageManifest(_0x4e6c07,{'requireOssPath':!![]});}function normalizePackageManifest(_0x30ec7e,_0x43e4ea){const _0x223cec=a76_0x46550d;if(!_0x30ec7e||typeof _0x30ec7e!=='object'||Array[_0x223cec(0x1fe)](_0x30ec7e))return undefined;const _0x6df0d3=_0x30ec7e,_0xabfa74=typeof _0x6df0d3['ossPath']===_0x223cec(0x202)?_0x6df0d3['ossPath'][_0x223cec(0x1ef)]():undefined;if(_0x43e4ea['requireOssPath']&&!_0xabfa74)return undefined;if(!Array[_0x223cec(0x1fe)](_0x6df0d3['files'])||_0x6df0d3[_0x223cec(0x1dd)]['length']===0x0)return undefined;if(!isSha256Hex(_0x6df0d3[_0x223cec(0x1e6)]))throw CliErrors[_0x223cec(0x25f)](_0x223cec(0x257));if(!isSha256Hex(_0x6df0d3[_0x223cec(0x201)]))throw CliErrors[_0x223cec(0x25f)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x223cec(0x27d)](_0x6df0d3[_0x223cec(0x242)])||_0x6df0d3['zipSize']<0x0)throw CliErrors[_0x223cec(0x25f)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');if(_0x6df0d3[_0x223cec(0x242)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0x223cec(0x241));const _0x5784ae=normalizeManifestFiles(_0x6df0d3[_0x223cec(0x1dd)]);if(!_0x5784ae['some'](_0x374973=>_0x374973[_0x223cec(0x221)]===SKILL_FILE))throw CliErrors['validation'](_0x223cec(0x1fc)+SKILL_FILE+'.');const _0x4b33a2=fileTreeHash(_0x5784ae);if(_0x4b33a2!==_0x6df0d3[_0x223cec(0x1e6)][_0x223cec(0x22d)]())throw CliErrors[_0x223cec(0x25f)](_0x223cec(0x1c5));return{'schemaVersion':Number[_0x223cec(0x27d)](_0x6df0d3[_0x223cec(0x1fa)])?_0x6df0d3[_0x223cec(0x1fa)]:0x2,'ossPath':_0xabfa74,'treeSha256':_0x4b33a2,'zipSha256':_0x6df0d3[_0x223cec(0x201)][_0x223cec(0x22d)](),'zipSize':_0x6df0d3[_0x223cec(0x242)],'files':_0x5784ae};}function tryNormalizeRemoteManifest(_0x2258be){return normalizeRemoteManifest(_0x2258be);}function requirePackageBytes(_0x110fcf,_0x582c0c){const _0x272292=a76_0x46550d;if(!_0x582c0c||_0x582c0c[_0x272292(0x24e)]===0x0)throw CliErrors['validation'](_0x272292(0x1f8)+_0x110fcf);if(_0x582c0c[_0x272292(0x24e)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20'+_0x110fcf);return _0x582c0c;}function localFilesToManifestFiles(_0x4df96f){const _0x18eeeb=a76_0x46550d;return normalizeLocalFiles(_0x4df96f)[_0x18eeeb(0x211)](_0xfc2e0=>({'path':_0xfc2e0[_0x18eeeb(0x221)],'sha256':fileHash(_0xfc2e0),'size':fileContent(_0xfc2e0)[_0x18eeeb(0x24e)]}));}function isSha256Hex(_0x4ecc5e){const _0x351bb5=a76_0x46550d;return typeof _0x4ecc5e===_0x351bb5(0x202)&&/^[a-fA-F0-9]{64}$/[_0x351bb5(0x23d)](_0x4ecc5e);}function extractAndVerifyPackage(_0x5c31c8,_0x15fbc7){const _0x5516b6=a76_0x46550d,_0x4478d9=normalizePackageManifest(_0x5c31c8,{'requireOssPath':![]});if(!_0x4478d9)throw CliErrors[_0x5516b6(0x25f)](_0x5516b6(0x27a));if(_0x15fbc7['length']!==_0x4478d9[_0x5516b6(0x242)])throw CliErrors['validation'](_0x5516b6(0x276));const _0x5efc2a=bufferSha256(_0x15fbc7);if(_0x5efc2a!==_0x4478d9[_0x5516b6(0x201)])throw CliErrors['validation'](_0x5516b6(0x1f5));const _0x2ae8f4=parseZipPackage(_0x15fbc7);if(_0x2ae8f4[_0x5516b6(0x24e)]!==_0x4478d9[_0x5516b6(0x1dd)][_0x5516b6(0x24e)])throw CliErrors[_0x5516b6(0x25f)](_0x5516b6(0x207));const _0x8abbcd=new Map();for(const _0x2ad450 of _0x2ae8f4){if(_0x8abbcd[_0x5516b6(0x245)](_0x2ad450['path']))throw CliErrors[_0x5516b6(0x25f)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x2ad450[_0x5516b6(0x221)]);_0x8abbcd[_0x5516b6(0x228)](_0x2ad450[_0x5516b6(0x221)],_0x2ad450);}const _0x142fd9=[];for(const _0x457783 of _0x4478d9[_0x5516b6(0x1dd)]){const _0x513705=_0x8abbcd['get'](_0x457783[_0x5516b6(0x221)]);if(!_0x513705)throw CliErrors[_0x5516b6(0x25f)](_0x5516b6(0x1d8)+_0x457783[_0x5516b6(0x221)]);if(_0x513705['bytes'][_0x5516b6(0x24e)]!==_0x457783[_0x5516b6(0x237)])throw CliErrors['validation'](_0x5516b6(0x212)+_0x457783[_0x5516b6(0x221)]);const _0x18da36=bufferSha256(_0x513705[_0x5516b6(0x1ed)]);if(_0x18da36!==_0x457783[_0x5516b6(0x1ff)])throw CliErrors['validation'](_0x5516b6(0x20c)+_0x457783[_0x5516b6(0x221)]);_0x142fd9['push']({'path':_0x457783[_0x5516b6(0x221)],'bytes':_0x513705[_0x5516b6(0x1ed)]});}return normalizeLocalFiles(_0x142fd9);}function createDeterministicZipPackage(_0x6430dc){const _0x58a940=a76_0x46550d,_0x4e8581=normalizeLocalFiles(_0x6430dc),_0x37daf0=[],_0x8b01da=[];let _0xaddb35=0x0;for(const _0x43667d of _0x4e8581){const _0x5b6538=Buffer[_0x58a940(0x1c4)](_0x43667d[_0x58a940(0x221)],_0x58a940(0x1f0)),_0x26c2f2=fileContent(_0x43667d),_0x44498c=crc32(_0x26c2f2),_0x2acccd=Buffer[_0x58a940(0x1d1)](0x1e+_0x5b6538[_0x58a940(0x24e)]);_0x2acccd[_0x58a940(0x229)](ZIP_LOCAL_FILE_HEADER_SIGNATURE,0x0),_0x2acccd[_0x58a940(0x216)](0x14,0x4),_0x2acccd[_0x58a940(0x216)](ZIP_GENERAL_PURPOSE_UTF8,0x6),_0x2acccd[_0x58a940(0x216)](ZIP_METHOD_STORE,0x8),_0x2acccd['writeUInt16LE'](ZIP_FIXED_DOS_TIME,0xa),_0x2acccd[_0x58a940(0x216)](ZIP_FIXED_DOS_DATE,0xc),_0x2acccd[_0x58a940(0x229)](_0x44498c,0xe),_0x2acccd[_0x58a940(0x229)](_0x26c2f2[_0x58a940(0x24e)],0x12),_0x2acccd[_0x58a940(0x229)](_0x26c2f2[_0x58a940(0x24e)],0x16),_0x2acccd[_0x58a940(0x216)](_0x5b6538['length'],0x1a),_0x2acccd[_0x58a940(0x216)](0x0,0x1c),_0x5b6538[_0x58a940(0x24b)](_0x2acccd,0x1e),_0x37daf0['push'](_0x2acccd,_0x26c2f2);const _0x5e006f=Buffer[_0x58a940(0x1d1)](0x2e+_0x5b6538[_0x58a940(0x24e)]);_0x5e006f[_0x58a940(0x229)](ZIP_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x5e006f['writeUInt16LE'](0x14,0x4),_0x5e006f['writeUInt16LE'](0x14,0x6),_0x5e006f[_0x58a940(0x216)](ZIP_GENERAL_PURPOSE_UTF8,0x8),_0x5e006f[_0x58a940(0x216)](ZIP_METHOD_STORE,0xa),_0x5e006f['writeUInt16LE'](ZIP_FIXED_DOS_TIME,0xc),_0x5e006f['writeUInt16LE'](ZIP_FIXED_DOS_DATE,0xe),_0x5e006f['writeUInt32LE'](_0x44498c,0x10),_0x5e006f['writeUInt32LE'](_0x26c2f2[_0x58a940(0x24e)],0x14),_0x5e006f[_0x58a940(0x229)](_0x26c2f2['length'],0x18),_0x5e006f[_0x58a940(0x216)](_0x5b6538[_0x58a940(0x24e)],0x1c),_0x5e006f['writeUInt16LE'](0x0,0x1e),_0x5e006f[_0x58a940(0x216)](0x0,0x20),_0x5e006f['writeUInt16LE'](0x0,0x22),_0x5e006f['writeUInt16LE'](0x0,0x24),_0x5e006f['writeUInt32LE'](0x0,0x26),_0x5e006f[_0x58a940(0x229)](_0xaddb35,0x2a),_0x5b6538[_0x58a940(0x24b)](_0x5e006f,0x2e),_0x8b01da[_0x58a940(0x223)](_0x5e006f),_0xaddb35+=_0x2acccd['length']+_0x26c2f2['length'];}const _0x2a9b42=Buffer[_0x58a940(0x255)](_0x8b01da),_0x1da783=_0xaddb35,_0x33fec3=_0x2a9b42[_0x58a940(0x24e)],_0x21e9cc=Buffer[_0x58a940(0x1d1)](0x16);_0x21e9cc[_0x58a940(0x229)](ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x21e9cc[_0x58a940(0x216)](0x0,0x4),_0x21e9cc[_0x58a940(0x216)](0x0,0x6),_0x21e9cc[_0x58a940(0x216)](_0x4e8581[_0x58a940(0x24e)],0x8),_0x21e9cc[_0x58a940(0x216)](_0x4e8581[_0x58a940(0x24e)],0xa),_0x21e9cc[_0x58a940(0x229)](_0x33fec3,0xc),_0x21e9cc['writeUInt32LE'](_0x1da783,0x10),_0x21e9cc[_0x58a940(0x216)](0x0,0x14);const _0x15ac7b=Buffer[_0x58a940(0x255)]([..._0x37daf0,_0x2a9b42,_0x21e9cc]);if(_0x15ac7b[_0x58a940(0x24e)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x58a940(0x25f)]('Skill\x20package\x20exceeds\x20size\x20limit.');return _0x15ac7b;}function parseZipPackage(_0x5f434f){const _0x33e61d=a76_0x46550d;if(_0x5f434f[_0x33e61d(0x24e)]<0x16)throw CliErrors['validation'](_0x33e61d(0x1e9));const _0x57e081=findEndOfCentralDirectory(_0x5f434f);if(_0x57e081<0x0)throw CliErrors[_0x33e61d(0x25f)](_0x33e61d(0x1e0));const _0x4cfcf7=_0x5f434f[_0x33e61d(0x1df)](_0x57e081+0x4),_0x511164=_0x5f434f[_0x33e61d(0x1df)](_0x57e081+0x6),_0x5220a0=_0x5f434f['readUInt16LE'](_0x57e081+0xa),_0x175351=_0x5f434f['readUInt32LE'](_0x57e081+0xc),_0x4fd009=_0x5f434f[_0x33e61d(0x25a)](_0x57e081+0x10);if(_0x4cfcf7!==0x0||_0x511164!==0x0)throw CliErrors[_0x33e61d(0x25f)]('Runtime\x20Skill\x20package\x20uses\x20unsupported\x20multi-disk\x20zip\x20format.');if(_0x5220a0>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x33e61d(0x25f)](_0x33e61d(0x267));if(_0x4fd009+_0x175351>_0x57e081||_0x4fd009>=_0x5f434f[_0x33e61d(0x24e)])throw CliErrors[_0x33e61d(0x25f)]('Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20offsets.');const _0x168082=[];let _0x8e15f5=0x0,_0x2d48f8=_0x4fd009;for(let _0x405676=0x0;_0x405676<_0x5220a0;_0x405676+=0x1){if(_0x2d48f8+0x2e>_0x5f434f['length'])throw CliErrors['validation'](_0x33e61d(0x23f));if(_0x5f434f[_0x33e61d(0x25a)](_0x2d48f8)!==ZIP_CENTRAL_DIRECTORY_SIGNATURE)throw CliErrors[_0x33e61d(0x25f)](_0x33e61d(0x253));const _0x55818a=_0x5f434f[_0x33e61d(0x1df)](_0x2d48f8+0x8),_0x490976=_0x5f434f['readUInt16LE'](_0x2d48f8+0xa),_0x52431f=_0x5f434f['readUInt32LE'](_0x2d48f8+0x10),_0x5e8bd5=_0x5f434f[_0x33e61d(0x25a)](_0x2d48f8+0x14),_0x5dc690=_0x5f434f[_0x33e61d(0x25a)](_0x2d48f8+0x18),_0x1b6015=_0x5f434f[_0x33e61d(0x1df)](_0x2d48f8+0x1c),_0x4f9cf8=_0x5f434f[_0x33e61d(0x1df)](_0x2d48f8+0x1e),_0xd09d96=_0x5f434f[_0x33e61d(0x1df)](_0x2d48f8+0x20),_0x35a7ee=_0x5f434f[_0x33e61d(0x25a)](_0x2d48f8+0x2a),_0x283cfc=_0x2d48f8+0x2e,_0x446de8=_0x283cfc+_0x1b6015;if(_0x446de8>_0x5f434f['length'])throw CliErrors[_0x33e61d(0x25f)](_0x33e61d(0x1c3));if((_0x55818a&0x1)!==0x0)throw CliErrors[_0x33e61d(0x25f)]('Runtime\x20Skill\x20package\x20contains\x20encrypted\x20entries.');if(_0x490976!==ZIP_METHOD_STORE&&_0x490976!==ZIP_METHOD_DEFLATE)throw CliErrors[_0x33e61d(0x25f)](_0x33e61d(0x20b));const _0x30b4da=normalizeSkillRelativePath(_0x5f434f[_0x33e61d(0x26b)](_0x283cfc,_0x446de8)[_0x33e61d(0x266)]('utf8'));if(_0x30b4da['endsWith']('/'))throw CliErrors[_0x33e61d(0x25f)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x30b4da);if(_0x5dc690>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x33e61d(0x25f)]('Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20'+_0x30b4da);_0x8e15f5+=_0x5dc690;if(_0x8e15f5>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20exceeds\x20total\x20file\x20size\x20limit.');const _0x3bbde5=readZipEntryData(_0x5f434f,_0x35a7ee,_0x30b4da,_0x5e8bd5),_0x20c98e=_0x490976===ZIP_METHOD_STORE?_0x3bbde5:inflateRawSync(_0x3bbde5);if(_0x20c98e[_0x33e61d(0x24e)]!==_0x5dc690)throw CliErrors[_0x33e61d(0x25f)](_0x33e61d(0x232)+_0x30b4da);if(crc32(_0x20c98e)!==_0x52431f)throw CliErrors[_0x33e61d(0x25f)](_0x33e61d(0x1cb)+_0x30b4da);_0x168082[_0x33e61d(0x223)]({'path':_0x30b4da,'bytes':_0x20c98e}),_0x2d48f8=_0x446de8+_0x4f9cf8+_0xd09d96;}if(_0x2d48f8!==_0x4fd009+_0x175351)throw CliErrors[_0x33e61d(0x25f)](_0x33e61d(0x1fb));return _0x168082[_0x33e61d(0x1bd)](compareSkillFiles);}function readZipEntryData(_0x348e9d,_0x28b515,_0x593f0d,_0x3d53e5){const _0x2d3c3b=a76_0x46550d;if(_0x28b515+0x1e>_0x348e9d[_0x2d3c3b(0x24e)])throw CliErrors['validation'](_0x2d3c3b(0x1e7)+_0x593f0d);if(_0x348e9d['readUInt32LE'](_0x28b515)!==ZIP_LOCAL_FILE_HEADER_SIGNATURE)throw CliErrors[_0x2d3c3b(0x25f)](_0x2d3c3b(0x22b)+_0x593f0d);const _0x4fc0f6=_0x348e9d['readUInt16LE'](_0x28b515+0x1a),_0x24c786=_0x348e9d[_0x2d3c3b(0x1df)](_0x28b515+0x1c),_0x307b12=_0x28b515+0x1e,_0x44143d=_0x307b12+_0x4fc0f6,_0x34283c=_0x44143d+_0x24c786,_0x3d15ce=_0x34283c+_0x3d53e5;if(_0x44143d>_0x348e9d[_0x2d3c3b(0x24e)]||_0x3d15ce>_0x348e9d[_0x2d3c3b(0x24e)])throw CliErrors['validation'](_0x2d3c3b(0x1d3)+_0x593f0d);const _0x154d12=normalizeSkillRelativePath(_0x348e9d['subarray'](_0x307b12,_0x44143d)[_0x2d3c3b(0x266)](_0x2d3c3b(0x1f0)));if(_0x154d12!==_0x593f0d)throw CliErrors['validation'](_0x2d3c3b(0x21f)+_0x593f0d);return _0x348e9d['subarray'](_0x34283c,_0x3d15ce);}function findEndOfCentralDirectory(_0xc1e22b){const _0x38b821=a76_0x46550d,_0x367311=Math[_0x38b821(0x27e)](0x0,_0xc1e22b[_0x38b821(0x24e)]-0x16-0xffff);for(let _0x465114=_0xc1e22b[_0x38b821(0x24e)]-0x16;_0x465114>=_0x367311;_0x465114-=0x1){if(_0xc1e22b[_0x38b821(0x25a)](_0x465114)===ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE){const _0x85b09=_0xc1e22b[_0x38b821(0x1df)](_0x465114+0x14);if(_0x465114+0x16+_0x85b09===_0xc1e22b[_0x38b821(0x24e)])return _0x465114;}}return-0x1;}function createCrc32Table(){const _0x345bf0=new Uint32Array(0x100);for(let _0x4f7945=0x0;_0x4f7945<0x100;_0x4f7945+=0x1){let _0x2dd207=_0x4f7945;for(let _0xec21dd=0x0;_0xec21dd<0x8;_0xec21dd+=0x1){_0x2dd207=(_0x2dd207&0x1)!==0x0?0xedb88320^_0x2dd207>>>0x1:_0x2dd207>>>0x1;}_0x345bf0[_0x4f7945]=_0x2dd207>>>0x0;}return _0x345bf0;}function crc32(_0x3074b2){let _0x6304e7=0xffffffff;for(const _0x14fd07 of _0x3074b2){_0x6304e7=CRC32_TABLE[(_0x6304e7^_0x14fd07)&0xff]^_0x6304e7>>>0x8;}return(_0x6304e7^0xffffffff)>>>0x0;}function compareSkillFiles(_0x4e7613,_0x525930){const _0x37d41f=a76_0x46550d;if(_0x4e7613[_0x37d41f(0x221)]===SKILL_FILE)return _0x525930[_0x37d41f(0x221)]===SKILL_FILE?0x0:-0x1;if(_0x525930[_0x37d41f(0x221)]===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x37d41f(0x1c4)](_0x4e7613['path'],_0x37d41f(0x1f0)),Buffer['from'](_0x525930[_0x37d41f(0x221)],_0x37d41f(0x1f0)));}function materializeFiles(_0x59c280,_0x5920aa){const _0x19e982=a76_0x46550d;for(const _0x2b328b of normalizeLocalFiles(_0x5920aa)){const _0x1afd14=resolveManagedFilePath(_0x59c280,_0x2b328b[_0x19e982(0x221)]);mkdirSync(dirname(_0x1afd14),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x1afd14,fileContent(_0x2b328b),0x180);}}function removeStaleManagedFiles(_0x131c04,_0x3e20be,_0x3c7efc){const _0xfb12ec=a76_0x46550d;if(!_0x3e20be)return;const _0x3916fa=new Set(normalizeLocalFiles(_0x3c7efc)[_0xfb12ec(0x211)](_0x92aa24=>_0x92aa24['path']));for(const _0x2036d2 of Object[_0xfb12ec(0x274)](_0x3e20be)){if(_0x3916fa[_0xfb12ec(0x245)](_0x2036d2))continue;const _0x4036ea=resolveManagedFilePath(_0x131c04,_0x2036d2);existsSync(_0x4036ea)&&lstatSync(_0x4036ea)[_0xfb12ec(0x1bc)]()&&rmSync(_0x4036ea,{'force':!![]});}}function resolveManagedFilePath(_0x42e73d,_0x12be4c){const _0x52f13e=a76_0x46550d,_0x3f460d=normalizeSkillRelativePath(_0x12be4c),_0x118023=realOrResolved(_0x42e73d),_0x5a1d76=resolve(_0x118023,..._0x3f460d[_0x52f13e(0x205)]('/'));if(!isPathInside(_0x5a1d76,_0x118023))throw CliErrors['validation'](_0x52f13e(0x248)+_0x12be4c);return ensureNoSymlinkInManagedPath(_0x118023,_0x3f460d),_0x5a1d76;}function ensureNoSymlinkInManagedPath(_0x45c2fb,_0x237f51){const _0x4ffc70=a76_0x46550d;let _0x3c7616=_0x45c2fb;for(const _0x3c31ea of _0x237f51[_0x4ffc70(0x205)]('/')){_0x3c7616=resolve(_0x3c7616,_0x3c31ea);const _0xd05492=lstatIfPresent(_0x3c7616);if(_0xd05492?.[_0x4ffc70(0x246)]())throw CliErrors[_0x4ffc70(0x25f)](_0x4ffc70(0x263)+_0x237f51);}}function normalizeSkillRelativePath(_0x29f048){const _0x1dd864=a76_0x46550d,_0x27c5a3=toPosixPath(_0x29f048[_0x1dd864(0x1ef)]());return validateSkillRelativePath(_0x27c5a3),_0x27c5a3;}function validateSkillRelativePath(_0x37ec65){const _0x354d41=a76_0x46550d;if(!_0x37ec65||_0x37ec65[_0x354d41(0x249)]('/')||_0x37ec65['includes']('//'))throw CliErrors[_0x354d41(0x25f)](_0x354d41(0x248)+_0x37ec65);for(const _0x4bebec of _0x37ec65[_0x354d41(0x205)]('/')){if(!_0x4bebec||_0x4bebec==='.'||_0x4bebec==='..')throw CliErrors['validation'](_0x354d41(0x248)+_0x37ec65);}}function toPosixPath(_0x4100a2){const _0x5ce9f4=a76_0x46550d;return _0x4100a2[_0x5ce9f4(0x271)](/\\/g,'/');}function ensureManagedSymlink(_0x4d8ea8,_0x43887d,_0x1a840c){const _0x357ac5=a76_0x46550d;mkdirSync(dirname(_0x4d8ea8),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x4d8ea8)||isDanglingSymlink(_0x4d8ea8)){const _0x1c114d=lstatSync(_0x4d8ea8);if(!_0x1c114d[_0x357ac5(0x246)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x4d8ea8);const _0x311bd9=resolveSymlinkTarget(_0x4d8ea8);if(!isPathInside(realOrResolved(_0x311bd9),realOrResolved(_0x1a840c)))throw CliErrors['validation'](_0x357ac5(0x279)+_0x4d8ea8);if(realOrResolved(_0x311bd9)===realOrResolved(_0x43887d))return{'path':_0x4d8ea8,'target':_0x43887d,'action':_0x357ac5(0x261)};return unlinkSync(_0x4d8ea8),symlinkSync(_0x43887d,_0x4d8ea8,_0x357ac5(0x252)),{'path':_0x4d8ea8,'target':_0x43887d,'action':_0x357ac5(0x1fd)};}return symlinkSync(_0x43887d,_0x4d8ea8,_0x357ac5(0x252)),{'path':_0x4d8ea8,'target':_0x43887d,'action':'created'};}function managedAppSkillLinkPaths(_0x33de6c,_0x3c1d76){const _0x35b765=a76_0x46550d;if(!existsSync(_0x33de6c))return[];const _0x45b823=_0x3c1d76+'--';return readdirSync(_0x33de6c,{'withFileTypes':!![]})[_0x35b765(0x214)](_0x347158=>_0x347158[_0x35b765(0x256)]['startsWith'](_0x45b823))['map'](_0x51869b=>resolve(_0x33de6c,_0x51869b[_0x35b765(0x256)]));}function removeManagedSkillLink(_0x4c0d25,_0x557dc0){const _0xa0ad14=a76_0x46550d,_0x297326=lstatIfPresent(_0x4c0d25);if(!_0x297326?.['isSymbolicLink']())return{'path':_0x4c0d25,'action':_0xa0ad14(0x270),'reason':_0xa0ad14(0x20f)};const _0x4df393=resolveSymlinkTarget(_0x4c0d25);if(!isPathInside(realOrResolved(_0x4df393),realOrResolved(_0x557dc0)))return{'path':_0x4c0d25,'action':'skipped','reason':'external-symlink'};return unlinkSync(_0x4c0d25),{'path':_0x4c0d25,'action':_0xa0ad14(0x1cc)};}function copyManagedSkillDirectory(_0x228e79,_0x2020b2){const _0x116d15=a76_0x46550d,_0x521ed1=resolve(_0x2020b2,METADATA_FILE),_0x3114c0=existsSync(_0x2020b2);if(_0x3114c0){const _0x1860d9=lstatSync(_0x2020b2);if(_0x1860d9['isSymbolicLink']())throw CliErrors[_0x116d15(0x25f)](_0x116d15(0x243)+_0x2020b2);if(!_0x1860d9[_0x116d15(0x1f6)]())throw CliErrors[_0x116d15(0x25f)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x2020b2);const _0x44bc10=readMetadataIfPresent(_0x521ed1);if(_0x44bc10?.['scope']!==_0x116d15(0x262))throw CliErrors['validation'](_0x116d15(0x1ee)+_0x2020b2);}mkdirSync(dirname(_0x2020b2),{'recursive':!![],'mode':0x1c0});const _0x5b664a=_0x3114c0?readMetadataIfPresent(_0x521ed1)?.[_0x116d15(0x234)]:undefined,_0xac2065=readMetadataIfPresent(resolve(_0x228e79,METADATA_FILE))?.[_0x116d15(0x234)];return _0x3114c0&&rmSync(_0x2020b2,{'recursive':!![],'force':!![]}),copySkillDirectory(_0x228e79,_0x2020b2),{'path':_0x2020b2,'target':_0x228e79,'action':!_0x3114c0?'created':_0x5b664a===_0xac2065?_0x116d15(0x261):_0x116d15(0x1fd)};}function copySkillDirectory(_0x342821,_0x17ad55){const _0x1489aa=a76_0x46550d;mkdirSync(_0x17ad55,{'recursive':!![],'mode':0x1c0});for(const _0x4cb2cf of readdirSync(_0x342821,{'withFileTypes':!![]})){const _0x237c05=resolve(_0x342821,_0x4cb2cf['name']),_0x43f36f=resolve(_0x17ad55,_0x4cb2cf[_0x1489aa(0x256)]);if(_0x4cb2cf[_0x1489aa(0x246)]())throw CliErrors[_0x1489aa(0x25f)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x237c05);if(_0x4cb2cf[_0x1489aa(0x1f6)]()){copySkillDirectory(_0x237c05,_0x43f36f);continue;}_0x4cb2cf[_0x1489aa(0x1bc)]()&&writeFileSync(_0x43f36f,readFileSync(_0x237c05));}}function isDanglingSymlink(_0x5bbf12){const _0x58e775=a76_0x46550d;try{return lstatSync(_0x5bbf12)[_0x58e775(0x246)]();}catch{return![];}}function resolveSymlinkTarget(_0x5c58ea){const _0x2d9ccf=readlinkSync(_0x5c58ea);return isAbsolute(_0x2d9ccf)?_0x2d9ccf:resolve(dirname(_0x5c58ea),_0x2d9ccf);}function a76_0x5228(){const _0x136be0=['.next','toLowerCase','5960097azdsHZ','21550KJlUsB','some','values','Runtime\x20Skill\x20package\x20uncompressed\x20size\x20mismatch:\x20','\x20for\x20local\x20path:\x20','contentHash','packageBytes','Missing\x20','size','localeCompare','tags','Unsupported\x20runtime\x20Skill\x20scope:\x20','find','build','test','link','Runtime\x20Skill\x20package\x20has\x20truncated\x20central\x20directory.','description:\x20','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','zipSize','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','580595SdTjxT','has','isSymbolicLink','personal','Unsafe\x20Skill\x20file\x20path:\x20','startsWith','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','copy','Skill\x20file\x20sha256\x20is\x20invalid:\x20','Skill\x20file\x20exceeds\x20size\x20limit:\x20','length','---','pruneSkillCodes','entries','dir','Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20entry.','Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.','concat','name','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','node_modules','.hg','readUInt32LE','SKILL.md','skillCode','Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.\x20Changed\x20file:\x20','managedRoot','validation','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','unchanged','builtin','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','homeDirName','env','toString','Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.','paths','dist','Managed\x20file\x20was\x20removed\x20locally:\x20','subarray','scope','Skill\x20directory\x20not\x20found:\x20','isBuffer','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','skipped','replace','force','Skill\x20file\x20path\x20must\x20be\x20text.','keys','linkedPaths','Runtime\x20Skill\x20package\x20size\x20mismatch.','skills','tenantCode','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','endsWith','status','isSafeInteger','max','Skill\x20metadata\x20appCode\x20\x22','base64','appCode','Unsafe\x20','.cache','metadataPath','isFile','sort','toISOString','claudeSkillsDir','accessKey','hex','name:\x20','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20name.','from','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','cache','fromEntries','local','update','Runtime\x20Skill\x20package\x20CRC\x20mismatch:\x20','removed','agentsSkillsDir','ossPath','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','pulledAt','alloc','code','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20data:\x20','Skill\x20file\x20size\x20is\x20invalid:\x20','\x20has\x20scope=\x22','fileHashes','70536uirSid','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Unable\x20to\x20resolve\x20skillCode\x20from\x20','path\x20segment','version','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','files','Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.','readUInt16LE','Runtime\x20Skill\x20package\x20is\x20missing\x20zip\x20central\x20directory.','digest','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','.tmp','4322mOWbzs','content','treeSha256','Runtime\x20Skill\x20package\x20has\x20truncated\x20local\x20header:\x20','.turbo','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','stringify','company','skillMdPath','bytes','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','trim','utf8','linkedPath','sourceSessionId','cacheRoot','SKILL_ROOT','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','isDirectory','get','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20package-backed\x20Skill:\x20','source','schemaVersion','Runtime\x20Skill\x20package\x20central\x20directory\x20size\x20mismatch.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','updated','isArray','sha256','Duplicate\x20Skill\x20file\x20path:\x20','zipSha256','string','.DS_Store','slice','split','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','.svn','438SZdjJm','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20package\x20contains\x20unsupported\x20compression\x20method.','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','4876184FIQGEf','object','not-managed-symlink','Invalid\x20','map','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','activeSkillCodes','filter','scopes','writeUInt16LE','568paYBIQ','description','includes','skillName','parse','skill','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','userId','Runtime\x20Skill\x20package\x20local\x20path\x20mismatch:\x20','\x20does\x20not\x20match\x20backend\x20content:\x20','path','metadata-mismatch','push','17608610BNjscy','91CPelCw','.claude','CLAUDE_SKILL_ROOT','set','writeUInt32LE','.git','Runtime\x20Skill\x20package\x20local\x20header\x20mismatch:\x20'];a76_0x5228=function(){return _0x136be0;};return a76_0x5228();}function isPathInside(_0x16ca02,_0x1dbe72){const _0x25194e=a76_0x46550d,_0xe9f749=_0x16ca02[_0x25194e(0x27b)](sep)?_0x16ca02:''+_0x16ca02+sep,_0x4dbcb3=_0x1dbe72['endsWith'](sep)?_0x1dbe72:''+_0x1dbe72+sep;return _0x16ca02===_0x1dbe72||_0xe9f749[_0x25194e(0x249)](_0x4dbcb3);}function realOrResolved(_0x45e78c){try{return realpathSync(_0x45e78c);}catch{return resolve(_0x45e78c);}}function lstatIfPresent(_0x2122f1){try{return lstatSync(_0x2122f1);}catch{return undefined;}}function writeTextAtomic(_0x2e76a4,_0x5c2b1c,_0xbd91b6){const _0x2ff98d=a76_0x46550d;writeBytesAtomic(_0x2e76a4,Buffer[_0x2ff98d(0x1c4)](_0x5c2b1c,_0x2ff98d(0x1f0)),_0xbd91b6);}function writeBytesAtomic(_0x17ea84,_0xfc5d96,_0x248637){const _0x42bc92=a76_0x46550d,_0x16c1be=_0x17ea84+_0x42bc92(0x1e3);try{writeFileSync(_0x16c1be,_0xfc5d96,{'mode':_0x248637}),renameSync(_0x16c1be,_0x17ea84);}catch(_0x1437d4){try{rmSync(_0x16c1be,{'force':!![]});}catch{}throw _0x1437d4;}}function writeJsonAtomic(_0x4d5c6a,_0xba19){const _0x3713fb=a76_0x46550d;writeTextAtomic(_0x4d5c6a,JSON[_0x3713fb(0x1ea)](_0xba19,null,0x2)+'\x0a',0x180);}
1
+ const a76_0x16d29b=a76_0x55f5;(function(_0x4df37e,_0x60fb18){const _0x5eaa97=a76_0x55f5,_0x27092f=_0x4df37e();while(!![]){try{const _0x26ff41=parseInt(_0x5eaa97(0x17f))/0x1*(-parseInt(_0x5eaa97(0x14b))/0x2)+parseInt(_0x5eaa97(0x1c8))/0x3*(parseInt(_0x5eaa97(0x159))/0x4)+parseInt(_0x5eaa97(0x17b))/0x5*(-parseInt(_0x5eaa97(0x1ce))/0x6)+-parseInt(_0x5eaa97(0x118))/0x7+parseInt(_0x5eaa97(0x180))/0x8+-parseInt(_0x5eaa97(0x111))/0x9*(parseInt(_0x5eaa97(0x1a7))/0xa)+parseInt(_0x5eaa97(0x1bc))/0xb;if(_0x26ff41===_0x60fb18)break;else _0x27092f['push'](_0x27092f['shift']());}catch(_0x294be6){_0x27092f['push'](_0x27092f['shift']());}}}(a76_0x122e,0x469fc));import{createHash}from'node:crypto';import{inflateRawSync}from'node:zlib';import{existsSync,lstatSync,mkdirSync,readdirSync,readFileSync,readlinkSync,realpathSync,renameSync,rmSync,symlinkSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a76_0x55f5(_0x200719,_0xffd545){_0x200719=_0x200719-0x111;const _0x122eda=a76_0x122e();let _0x55f5fc=_0x122eda[_0x200719];return _0x55f5fc;}import{basename,dirname,isAbsolute,relative,resolve,sep}from'node:path';import{fingerprintAccessKey}from'../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../constant/product.js';import{CliErrors}from'../errors.js';const METADATA_FILE=a76_0x16d29b(0x1ad),SKILL_FILE='SKILL.md',MAX_SKILL_FILE_COUNT=0xc8,MAX_SKILL_FILE_BYTES=0x100*0x400,MAX_SKILL_TOTAL_BYTES=0x2*0x400*0x400,MAX_SKILL_PACKAGE_BYTES=0x4*0x400*0x400,IGNORED_FILE_NAMES=new Set([METADATA_FILE,a76_0x16d29b(0x11e)]),IGNORED_DIR_NAMES=new Set([a76_0x16d29b(0x192),a76_0x16d29b(0x1b2),a76_0x16d29b(0x19e),a76_0x16d29b(0x149),a76_0x16d29b(0x169),a76_0x16d29b(0x134),a76_0x16d29b(0x1cf),a76_0x16d29b(0x112),'.turbo',a76_0x16d29b(0x13a)]),ZIP_LOCAL_FILE_HEADER_SIGNATURE=0x4034b50,ZIP_CENTRAL_DIRECTORY_SIGNATURE=0x2014b50,ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE=0x6054b50,ZIP_GENERAL_PURPOSE_UTF8=0x800,ZIP_METHOD_STORE=0x0,ZIP_METHOD_DEFLATE=0x8,ZIP_FIXED_DOS_TIME=0x0,ZIP_FIXED_DOS_DATE=0x21,CRC32_TABLE=createCrc32Table();export function resolveSkillSyncPaths(_0x14c50d={}){const _0x521267=a76_0x16d29b,_0x363330=_0x14c50d[_0x521267(0x1c4)]??homedir(),_0x23ec2e=resolve(_0x363330,PRODUCT_CONFIG[_0x521267(0x13e)],_0x521267(0x19d)),_0x5ec5d2=trimmedEnv(_0x521267(0x120)),_0x296f4a=trimmedEnv(_0x521267(0x187));return{'homeDir':_0x363330,'cacheRoot':_0x23ec2e,'managedRoot':resolve(_0x363330,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0x14c50d['agentsSkillsDir']??_0x5ec5d2??resolve(_0x363330,'.agents',_0x521267(0x1dc)),'claudeSkillsDir':_0x14c50d[_0x521267(0x1bf)]??_0x296f4a??resolve(_0x363330,_0x521267(0x164),_0x521267(0x1dc))};}export function getRuntimeSkillCacheRoot(_0x5edc6f,_0x590494,_0x3029b9={}){const _0x2a439c=a76_0x16d29b,_0x2ac99c=resolveSkillSyncPaths(_0x3029b9);return resolve(_0x2ac99c['cacheRoot'],_0x5edc6f,fingerprintAccessKey(_0x590494),_0x2a439c(0x1dc));}export function getRuntimeSkillDir(_0x43e6e5,_0x1b4795,_0x5a7f68,_0x2629b6,_0x5dc387,_0x45faea={}){const _0x52fe4e=a76_0x16d29b;return resolve(getRuntimeSkillCacheRoot(_0x43e6e5,_0x1b4795,_0x45faea),safePathSegment(_0x5a7f68,_0x52fe4e(0x17a)),_0x2629b6,safePathSegment(_0x5dc387,_0x52fe4e(0x1a3)));}export function listLocalRuntimeSkills(_0x6e33ad,_0x4cc0dd={}){const _0x29eff8=a76_0x16d29b,_0x2152d9=safePathSegment(_0x6e33ad['appCode'],_0x29eff8(0x17a)),_0x3bc4ff=normalizeRuntimeSkillScopes(_0x6e33ad[_0x29eff8(0x1d3)]),_0x509200=new Set(_0x3bc4ff),_0x36ea43=_0x6e33ad[_0x29eff8(0x1ab)]?.['trim'](),_0x4e8f2b=new Map(),_0x23b06a=resolve(getRuntimeSkillCacheRoot(_0x6e33ad['env'],_0x6e33ad[_0x29eff8(0x18f)],_0x4cc0dd),_0x2152d9);for(const _0x13976e of _0x3bc4ff){for(const _0x745265 of localSkillEntryDirs(resolve(_0x23b06a,_0x13976e))){collectLocalRuntimeSkill(_0x4e8f2b,_0x745265,{'appCode':_0x2152d9,'scopes':_0x509200,'code':_0x36ea43,'source':_0x29eff8(0x19d)});}}const _0x3183ec=resolveSkillSyncPaths(_0x4cc0dd);for(const _0x269360 of[_0x3183ec[_0x29eff8(0x1a9)],_0x3183ec[_0x29eff8(0x1bf)]]){for(const _0x484167 of localSkillLinkCandidates(_0x269360,_0x2152d9,_0x509200)){collectLocalRuntimeSkill(_0x4e8f2b,_0x484167,{'appCode':_0x2152d9,'scopes':_0x509200,'code':_0x36ea43,'source':_0x29eff8(0x166),'linkedPath':_0x484167});}}return Array['from'](_0x4e8f2b[_0x29eff8(0x1ca)]())[_0x29eff8(0x160)](compareLocalRuntimeSkills);}export function contentHash(_0x57d3e7){const _0x219a43=a76_0x16d29b;return createHash(_0x219a43(0x1ac))[_0x219a43(0x197)](_0x57d3e7)['digest'](_0x219a43(0x186));}function fileContent(_0x4e19c6){const _0x580a04=a76_0x16d29b;return _0x4e19c6[_0x580a04(0x1db)]??Buffer[_0x580a04(0x173)](_0x4e19c6[_0x580a04(0x195)]??'',_0x580a04(0x142));}function fileText(_0x1c215a){const _0x3737d6=a76_0x16d29b;return fileContent(_0x1c215a)[_0x3737d6(0x174)](_0x3737d6(0x142));}function fileHash(_0x319c1b){return bufferSha256(fileContent(_0x319c1b));}function bufferSha256(_0x809494){const _0x2c625d=a76_0x16d29b;return createHash(_0x2c625d(0x1ac))['update'](_0x809494)[_0x2c625d(0x12d)]('hex');}export function fileTreeHash(_0x173959){const _0xcd85b0=a76_0x16d29b,_0x4ba952=createHash('sha256');for(const _0x51a180 of normalizeManifestFiles(_0x173959)){_0x4ba952[_0xcd85b0(0x197)](_0x51a180['path']),_0x4ba952['update']('\x00'),_0x4ba952['update'](_0x51a180['sha256']),_0x4ba952[_0xcd85b0(0x197)]('\x00'),_0x4ba952['update'](String(_0x51a180[_0xcd85b0(0x190)])),_0x4ba952['update']('\x00');}return _0x4ba952[_0xcd85b0(0x12d)]('hex');}export function buildSkillPackage(_0x12ac04){const _0x265751=a76_0x16d29b,_0x185839=normalizeLocalFiles(_0x12ac04);if(!_0x185839[_0x265751(0x140)](_0x4569ca=>_0x4569ca['path']===SKILL_FILE))throw CliErrors['validation']('Missing\x20'+SKILL_FILE+_0x265751(0x17c));const _0x5cb0cf=localFilesToManifestFiles(_0x185839),_0x1c2a30=createDeterministicZipPackage(_0x185839);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5cb0cf),'zipSha256':bufferSha256(_0x1c2a30),'zipSize':_0x1c2a30[_0x265751(0x113)],'files':_0x5cb0cf},'packageBytes':_0x1c2a30,'packageBase64':_0x1c2a30[_0x265751(0x174)]('base64')};}export function verifyRuntimeSkillPackage(_0x105d09,_0x2e97c1){const _0x50295f=a76_0x16d29b,_0x5c1acf=normalizePackageManifest(_0x105d09,{'requireOssPath':![]});if(!_0x5c1acf)throw CliErrors[_0x50295f(0x1d2)](_0x50295f(0x11f));return extractAndVerifyPackage(_0x5c1acf,_0x2e97c1);}export function materializeRuntimeSkill(_0x559a47,_0x2ba812,_0x5debd0){const _0x556378=a76_0x16d29b,_0x305377=requireSkillCode(_0x559a47),_0x2773a2=normalizeRemoteManifest(_0x559a47['files']),_0x260881=_0x2773a2!==undefined,_0x4e0040=_0x260881?requirePackageBytes(_0x305377,_0x5debd0['packageBytes']):undefined,_0x498210=_0x260881?extractAndVerifyPackage(_0x2773a2,_0x4e0040):[{'path':SKILL_FILE,'content':_0x559a47['content']??''}],_0x393d5f=_0x498210[_0x556378(0x1cd)](_0x246336=>_0x246336[_0x556378(0x1d7)]===SKILL_FILE);if(!_0x393d5f)throw CliErrors[_0x556378(0x1d2)](_0x556378(0x153)+SKILL_FILE+':\x20'+_0x305377);const _0x315101=fileText(_0x393d5f);if(_0x260881&&_0x559a47['content']!==undefined&&_0x559a47[_0x556378(0x195)]!==_0x315101)throw CliErrors['validation'](_0x556378(0x1be)+SKILL_FILE+_0x556378(0x141)+_0x305377);const _0x421ca9=withMaterializedSkillFrontmatter(_0x498210,_0x559a47,_0x305377),_0x1995fe=_0x421ca9['find'](_0x1f7d84=>_0x1f7d84[_0x556378(0x1d7)]===SKILL_FILE),_0x2f065d=fileText(_0x1995fe),_0x207348=getRuntimeSkillDir(_0x5debd0[_0x556378(0x16d)],_0x5debd0['accessKey'],_0x5debd0[_0x556378(0x17a)],_0x2ba812,_0x305377,_0x5debd0[_0x556378(0x12e)]),_0x4696af=resolve(_0x207348,SKILL_FILE),_0x3a7c13=resolve(_0x207348,METADATA_FILE),_0x349d2c=contentHash(_0x2f065d),_0x1fef6f=readMetadataIfPresent(_0x3a7c13)?.[_0x556378(0x17e)];ensurePulledFilesCanBeOverwritten(_0x207348,_0x3a7c13,_0x421ca9,_0x5debd0['force']===!![]),mkdirSync(_0x207348,{'recursive':!![],'mode':0x1c0});const _0x7e841=existsSync(_0x4696af)?readFileSync(_0x4696af,'utf8'):undefined;return materializeFiles(_0x207348,_0x421ca9),_0x260881&&removeStaleManagedFiles(_0x207348,_0x1fef6f,_0x421ca9),writeJsonAtomic(_0x3a7c13,buildMetadata(_0x559a47,_0x2ba812,_0x5debd0[_0x556378(0x17a)],_0x349d2c,_0x5debd0[_0x556378(0x1a8)],_0x260881?_0x421ca9:undefined)),{'skill':_0x559a47,'scope':_0x2ba812,'dir':_0x207348,'skillMdPath':_0x4696af,'metadataPath':_0x3a7c13,'contentHash':_0x349d2c,'changed':_0x7e841!==_0x2f065d};}function withMaterializedSkillFrontmatter(_0x2b3e5a,_0x1bddb2,_0x5300f4){const _0x45d1db=a76_0x16d29b;return normalizeLocalFiles(_0x2b3e5a)[_0x45d1db(0x1c1)](_0x15587b=>{const _0x43235e=_0x45d1db,_0x8a3eff=fileText(_0x15587b);if(_0x15587b['path']!==SKILL_FILE||hasYamlFrontmatter(_0x8a3eff))return _0x15587b;return{'path':_0x15587b['path'],'content':prependSkillFrontmatter(_0x8a3eff,{'name':_0x5300f4,'description':_0x1bddb2['description']?.[_0x43235e(0x137)]()||_0x1bddb2['skillName']?.[_0x43235e(0x137)]()||_0x5300f4})};});}function hasYamlFrontmatter(_0x150101){return/^\uFEFF?---\s*\r?\n/['test'](_0x150101);}function prependSkillFrontmatter(_0x61829d,_0x361e8f){const _0x1a44c9=a76_0x16d29b,_0x4f79ab=_0x61829d[_0x1a44c9(0x185)](/^\uFEFF/,'');return[_0x1a44c9(0x122),_0x1a44c9(0x19c)+yamlString(_0x361e8f[_0x1a44c9(0x136)]),_0x1a44c9(0x12c)+yamlString(_0x361e8f[_0x1a44c9(0x1bd)]),_0x1a44c9(0x122),'',_0x4f79ab][_0x1a44c9(0x1a6)]('\x0a');}function a76_0x122e(){const _0x4f264c=['Runtime\x20Skill\x20manifest\x20is\x20missing\x20','filter','Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.','keys','contentHash','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','16228YkyBwe','files','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','Skill\x20file\x20sha256\x20is\x20invalid:\x20','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','linkedPaths','sort','isBuffer','Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.\x20Changed\x20file:\x20','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','.claude','builtin','link','skill','isFile','.next','get','split','readonly','env','Managed\x20file\x20was\x20removed\x20locally:\x20','Unsupported\x20runtime\x20Skill\x20scope:\x20','dir','treeSha256','string','from','toString','personal','updated','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','requireOssPath','alloc','appCode','30285zDsCvS','\x20in\x20Skill\x20file\x20package.','writeUInt32LE','fileHashes','1iIhErb','746104URhxkk','source','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','version','replace','hex','CLAUDE_SKILL_ROOT','skillName','\x20or\x20directory\x20name.','manifest','Runtime\x20Skill\x20package\x20has\x20truncated\x20local\x20header:\x20','Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20entry.','accessKey','size','writeUInt16LE','.git','isArray','toLowerCase','content','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','update','set','Runtime\x20Skill\x20package\x20local\x20path\x20mismatch:\x20','has','Skill\x20package\x20exceeds\x20size\x20limit.','name:\x20','cache','.svn','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','push','test','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','skillCode','zipSha256','schemaVersion','join','110YuzsJT','pulledAt','agentsSkillsDir','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','code','sha256','lovrabet.skill.json','Runtime\x20Skill\x20package\x20is\x20missing\x20zip\x20central\x20directory.','parse','isDirectory','skillMdPath','.hg','Runtime\x20Skill\x20package\x20uses\x20unsupported\x20multi-disk\x20zip\x20format.','Skill\x20file\x20exceeds\x20size\x20limit:\x20','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','linkedPath','pruneSkillCodes','startsWith','6842638MXBlDY','description','Runtime\x20Skill\x20package\x20','claudeSkillsDir','isSymbolicLink','map','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','tags','homeDir','company','Runtime\x20Skill\x20package\x20has\x20truncated\x20central\x20directory.','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','399UGUesa','Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20offsets.','values','not-managed-symlink','object','find','402ulvBvl','build','scope','sourceSessionId','validation','scopes','Runtime\x20Skill\x20package\x20contains\x20encrypted\x20entries.','managedRoot','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20package-backed\x20Skill:\x20','path','Runtime\x20Skill\x20package\x20central\x20directory\x20size\x20mismatch.','created','unchanged','bytes','skills','concat','Skill\x20file\x20size\x20is\x20invalid:\x20','41958jaIaTZ','coverage','length','removed','cacheDir','readUInt16LE','userId','3359398OEPczR','Missing\x20','isSafeInteger','ossPath','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','metadata-mismatch','.DS_Store','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','SKILL_ROOT','subarray','---','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','activeSkillCodes','Runtime\x20Skill\x20package\x20local\x20header\x20mismatch:\x20','slice','stringify','Runtime\x20Skill\x20package\x20CRC\x20mismatch:\x20','Duplicate\x20Skill\x20file\x20path:\x20','Runtime\x20Skill\x20package\x20size\x20mismatch.','description:\x20','digest','paths','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','external-symlink','Runtime\x20Skill\x20package\x20exceeds\x20total\x20file\x20size\x20limit.','Unsafe\x20Skill\x20file\x20path:\x20','max','dist','localeCompare','name','trim','pushedAt','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','.cache','Runtime\x20Skill\x20package\x20uncompressed\x20size\x20mismatch:\x20','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','packageBase64','homeDirName','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','some','\x20does\x20not\x20match\x20backend\x20content:\x20','utf8','zipSize','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20','readUInt32LE','endsWith','toISOString','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20data:\x20','node_modules','Runtime\x20Skill\x20package\x20contains\x20unsupported\x20compression\x20method.','57222LHyluZ','forkedFromSkillId','Runtime\x20Skill\x20is\x20missing\x20skillCode.','includes','skipped','Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20','tenantCode','.tmp'];a76_0x122e=function(){return _0x4f264c;};return a76_0x122e();}function yamlString(_0xf2baf8){const _0x11421c=a76_0x16d29b;return JSON[_0x11421c(0x128)](_0xf2baf8[_0x11421c(0x185)](/\r/g,'')[_0x11421c(0x137)]());}export function linkEffectiveRuntimeSkills(_0xbfefea,_0x1bc0e4,_0x40265a={}){const _0x3e542d=a76_0x16d29b,_0x501c44=new Map();for(const _0x2360f3 of _0xbfefea){const _0x38dcd4=_0x2360f3[_0x3e542d(0x167)]['skillCode'];if(!_0x38dcd4)continue;const _0x49ac75=_0x501c44[_0x3e542d(0x16a)](_0x38dcd4);(!_0x49ac75||_0x2360f3[_0x3e542d(0x1d0)]===_0x3e542d(0x175))&&_0x501c44[_0x3e542d(0x198)](_0x38dcd4,_0x2360f3);}const _0x1d10a7=[],_0x4152cf=resolveSkillSyncPaths(_0x40265a);for(const _0x4f84ab of _0x501c44['values']()){const _0x551958=requireSkillCode(_0x4f84ab[_0x3e542d(0x167)]),_0x2f0f4b=_0x1bc0e4+'--'+_0x551958;for(const _0x169435 of[_0x4152cf[_0x3e542d(0x1a9)],_0x4152cf[_0x3e542d(0x1bf)]]){_0x1d10a7[_0x3e542d(0x1a0)](ensureManagedSymlink(resolve(_0x169435,_0x2f0f4b),_0x4f84ab[_0x3e542d(0x170)],_0x4152cf[_0x3e542d(0x1d5)]));}}return _0x1d10a7;}export function pruneStaleRuntimeSkillLinks(_0x182b6d,_0x172d24,_0x1c1733={},_0x11d54c){const _0x285ce8=a76_0x16d29b,_0xc80356=resolveSkillSyncPaths(_0x1c1733),_0x1aa1a1=new Set([..._0x172d24][_0x285ce8(0x1c1)](_0x57cd5b=>_0x57cd5b['trim']())['filter'](Boolean)),_0x3f2fb3=_0x11d54c?new Set([..._0x11d54c]['map'](_0x4ee5a0=>_0x4ee5a0[_0x285ce8(0x137)]())[_0x285ce8(0x154)](Boolean)):undefined,_0x2050ef=[];for(const _0x1ecf97 of[_0xc80356['agentsSkillsDir'],_0xc80356['claudeSkillsDir']]){for(const _0x4773df of managedAppSkillLinkPaths(_0x1ecf97,_0x182b6d)){const _0x5ca646=basename(_0x4773df)[_0x285ce8(0x127)]((_0x182b6d+'--')[_0x285ce8(0x113)]);if(_0x3f2fb3&&!_0x3f2fb3[_0x285ce8(0x19a)](_0x5ca646))continue;if(_0x1aa1a1[_0x285ce8(0x19a)](_0x5ca646))continue;_0x2050ef['push'](removeManagedSkillLink(_0x4773df,_0xc80356[_0x285ce8(0x1d5)]));}}return _0x2050ef;}export function pruneStaleRuntimeSkillCache(_0x54441e,_0x5432c5={}){const _0x4837d4=a76_0x16d29b,_0x219d87=new Set([..._0x54441e[_0x4837d4(0x125)]][_0x4837d4(0x1c1)](_0x369df0=>_0x369df0['trim']())[_0x4837d4(0x154)](Boolean)),_0x2a67c6=_0x54441e[_0x4837d4(0x1ba)]?new Set([..._0x54441e[_0x4837d4(0x1ba)]][_0x4837d4(0x1c1)](_0x4848b7=>_0x4848b7['trim']())['filter'](Boolean)):undefined,_0xaa44e=_0x54441e[_0x4837d4(0x1d3)]??[_0x4837d4(0x175),_0x4837d4(0x1c5)],_0x55f7fa=resolve(getRuntimeSkillCacheRoot(_0x54441e['env'],_0x54441e[_0x4837d4(0x18f)],_0x5432c5),safePathSegment(_0x54441e[_0x4837d4(0x17a)],_0x4837d4(0x17a))),_0x1f0af0=[];for(const _0x4dbc3d of _0xaa44e){const _0x5f3ab2=resolve(_0x55f7fa,_0x4dbc3d);if(!existsSync(_0x5f3ab2))continue;for(const _0x2267e8 of readdirSync(_0x5f3ab2,{'withFileTypes':!![]})){if(!_0x2267e8[_0x4837d4(0x1b0)]())continue;const _0xc953ae=_0x2267e8[_0x4837d4(0x136)];if(_0x2a67c6&&!_0x2a67c6['has'](_0xc953ae))continue;if(_0x219d87[_0x4837d4(0x19a)](_0xc953ae))continue;const _0x679577=resolve(_0x5f3ab2,_0xc953ae),_0xc8b9e7=readMetadataIfPresent(resolve(_0x679577,METADATA_FILE));if(_0xc8b9e7?.[_0x4837d4(0x17a)]!==_0x54441e[_0x4837d4(0x17a)]||_0xc8b9e7['scope']!==_0x4dbc3d||_0xc8b9e7['skillCode']!==_0xc953ae){_0x1f0af0[_0x4837d4(0x1a0)]({'path':_0x679577,'action':_0x4837d4(0x14f),'reason':_0x4837d4(0x11d)});continue;}rmSync(_0x679577,{'recursive':!![],'force':!![]}),_0x1f0af0[_0x4837d4(0x1a0)]({'path':_0x679577,'action':_0x4837d4(0x114)});}}return _0x1f0af0;}export function linkGlobalRuntimeSkills(_0x33f31,_0x9de498={}){const _0x5b0ded=a76_0x16d29b,_0x493bdb=resolveSkillSyncPaths(_0x9de498),_0x46befb=[];for(const _0x14fe75 of _0x33f31){if(_0x14fe75[_0x5b0ded(0x1d0)]!==_0x5b0ded(0x165))throw CliErrors[_0x5b0ded(0x1d2)](_0x5b0ded(0x139)+_0x14fe75[_0x5b0ded(0x1d0)]);const _0x1d45f8=requireSkillCode(_0x14fe75[_0x5b0ded(0x167)]),_0x1fa68f=copyManagedSkillDirectory(_0x14fe75['dir'],resolve(_0x493bdb[_0x5b0ded(0x1a9)],_0x1d45f8));_0x46befb['push']({..._0x1fa68f,'contentHash':_0x14fe75[_0x5b0ded(0x157)]});}return _0x46befb;}export function readPushDirectory(_0x3ed17f,_0x2259f6){const _0x221078=a76_0x16d29b,_0x3aa8e3=resolve(_0x3ed17f);if(!existsSync(_0x3aa8e3)||!lstatSync(_0x3aa8e3)[_0x221078(0x1b0)]())throw CliErrors[_0x221078(0x1d2)]('Skill\x20directory\x20not\x20found:\x20'+_0x3ed17f);const _0x2380fd=resolve(_0x3aa8e3,SKILL_FILE);if(!existsSync(_0x2380fd)||!lstatSync(_0x2380fd)[_0x221078(0x168)]())throw CliErrors[_0x221078(0x1d2)](_0x221078(0x119)+SKILL_FILE+':\x20'+_0x2380fd);const _0x20f15f=readMetadataIfPresent(resolve(_0x3aa8e3,METADATA_FILE));if(_0x20f15f?.['scope']&&_0x20f15f[_0x221078(0x1d0)]!==_0x221078(0x175))throw CliErrors[_0x221078(0x1d2)](_0x221078(0x13f)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x20f15f[_0x221078(0x1d0)]+'\x22.');if(_0x20f15f?.[_0x221078(0x17a)]&&_0x20f15f[_0x221078(0x17a)]!==_0x2259f6)throw CliErrors[_0x221078(0x1d2)]('Skill\x20metadata\x20appCode\x20\x22'+_0x20f15f[_0x221078(0x17a)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x2259f6+'\x22.');const _0x25f8af=scanSkillDirectory(_0x3aa8e3),_0x2646af=buildSkillPackage(_0x25f8af),_0x2438f5=readFileSync(_0x2380fd,'utf8'),_0x372d63=_0x20f15f?.[_0x221078(0x1a3)]??deriveSkillCodeFromDirectory(_0x3aa8e3,_0x2259f6);if(!_0x372d63)throw CliErrors[_0x221078(0x1d2)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+METADATA_FILE+_0x221078(0x189));return{'skillCode':_0x372d63,'metadata':_0x20f15f,'input':{'skillCode':_0x372d63,'skillName':_0x20f15f?.[_0x221078(0x188)],'description':_0x20f15f?.['description'],'content':_0x2438f5,'files':_0x2646af[_0x221078(0x18a)],'packageBase64':_0x2646af[_0x221078(0x13d)],'tags':_0x20f15f?.[_0x221078(0x1c3)],'version':_0x20f15f?.[_0x221078(0x184)],'sourceSessionId':_0x20f15f?.[_0x221078(0x1d1)]}};}export function recordPushedRuntimeSkill(_0x46e4ea,_0x470a3b,_0x586096,_0x12e058={}){const _0x2f2263=a76_0x16d29b,_0x53855b=resolve(_0x46e4ea),_0xe7850d=scanSkillDirectory(_0x53855b),_0x10ecf5=_0xe7850d[_0x2f2263(0x1cd)](_0x3fface=>_0x3fface[_0x2f2263(0x1d7)]===SKILL_FILE),_0x3205f2=_0x10ecf5?fileText(_0x10ecf5):'',_0x11ddf9=tryNormalizeRemoteManifest(_0x470a3b[_0x2f2263(0x15a)]),_0x47a0e7={..._0x470a3b,'content':_0x470a3b[_0x2f2263(0x195)]??_0x3205f2,'files':_0x11ddf9},_0x2826c5=_0x11ddf9?normalizeLocalFiles(_0xe7850d)['filter'](_0x35ae63=>_0x11ddf9[_0x2f2263(0x15a)][_0x2f2263(0x140)](_0x29d59e=>_0x29d59e[_0x2f2263(0x1d7)]===_0x35ae63[_0x2f2263(0x1d7)])):undefined,_0x4168ea=buildMetadata(_0x47a0e7,_0x12e058[_0x2f2263(0x1d0)]??_0x2f2263(0x175),_0x586096,contentHash(_0x47a0e7[_0x2f2263(0x195)]??''),_0x12e058[_0x2f2263(0x138)],_0x2826c5);writeJsonAtomic(resolve(_0x53855b,METADATA_FILE),_0x4168ea);}export function deriveSkillCodeFromDirectory(_0x18d584,_0x26f946){const _0x1ef300=a76_0x16d29b,_0x18ed9a=basename(resolve(_0x18d584)),_0x4ad36f=_0x26f946+'--';return _0x18ed9a[_0x1ef300(0x1bb)](_0x4ad36f)?_0x18ed9a[_0x1ef300(0x127)](_0x4ad36f['length']):_0x18ed9a;}export function readMetadataIfPresent(_0x1c5586){const _0x1bf702=a76_0x16d29b;if(!existsSync(_0x1c5586))return undefined;try{const _0x4c669b=JSON[_0x1bf702(0x1af)](readFileSync(_0x1c5586,_0x1bf702(0x142)));return _0x4c669b;}catch{throw CliErrors['validation']('Invalid\x20'+METADATA_FILE+':\x20'+_0x1c5586);}}function normalizeRuntimeSkillScopes(_0xd75494){const _0x589373=a76_0x16d29b,_0x4cb18d=_0xd75494&&_0xd75494[_0x589373(0x113)]>0x0?_0xd75494:[_0x589373(0x175),_0x589373(0x1c5),'builtin'],_0x2a9480=[];for(const _0x290110 of _0x4cb18d){if(!isRuntimeSkillScope(_0x290110))throw CliErrors['validation'](_0x589373(0x16f)+_0x290110);!_0x2a9480[_0x589373(0x14e)](_0x290110)&&_0x2a9480['push'](_0x290110);}return _0x2a9480;}function isRuntimeSkillScope(_0x140352){const _0x53b334=a76_0x16d29b;return _0x140352==='personal'||_0x140352===_0x53b334(0x1c5)||_0x140352===_0x53b334(0x165);}function localSkillEntryDirs(_0x482b50){const _0x2f73f5=a76_0x16d29b;if(!existsSync(_0x482b50))return[];return readdirSync(_0x482b50,{'withFileTypes':!![]})[_0x2f73f5(0x154)](_0x2df2bf=>_0x2df2bf['isDirectory']()||_0x2df2bf[_0x2f73f5(0x1c0)]())[_0x2f73f5(0x1c1)](_0x3b0f31=>resolve(_0x482b50,_0x3b0f31[_0x2f73f5(0x136)]));}function localSkillLinkCandidates(_0xd026d9,_0x514ad2,_0x52d55b){const _0x141f2e=a76_0x16d29b;if(!existsSync(_0xd026d9))return[];const _0x3ebaf2=_0x514ad2+'--';return readdirSync(_0xd026d9,{'withFileTypes':!![]})['filter'](_0x599cbf=>_0x599cbf[_0x141f2e(0x1b0)]()||_0x599cbf[_0x141f2e(0x1c0)]())[_0x141f2e(0x154)](_0x562d46=>_0x562d46[_0x141f2e(0x136)]['startsWith'](_0x3ebaf2)||_0x52d55b[_0x141f2e(0x19a)](_0x141f2e(0x165)))[_0x141f2e(0x1c1)](_0x5cb32b=>resolve(_0xd026d9,_0x5cb32b[_0x141f2e(0x136)]));}function collectLocalRuntimeSkill(_0x645c93,_0x130f59,_0x4c6824){const _0x5e7779=a76_0x16d29b,_0x43d350=resolve(_0x130f59,METADATA_FILE),_0x535964=readMetadataIfPresent(_0x43d350);if(!_0x535964)return;if(_0x535964[_0x5e7779(0x17a)]!==_0x4c6824[_0x5e7779(0x17a)])return;if(!isRuntimeSkillScope(_0x535964['scope'])||!_0x4c6824['scopes']['has'](_0x535964[_0x5e7779(0x1d0)]))return;const _0x18ba68=_0x535964[_0x5e7779(0x1a3)]?.[_0x5e7779(0x137)]();if(!_0x18ba68)return;if(_0x4c6824[_0x5e7779(0x1ab)]&&_0x18ba68!==_0x4c6824[_0x5e7779(0x1ab)])return;const _0x37c436=_0x535964[_0x5e7779(0x1d0)]+':'+_0x18ba68,_0x2e4a46=_0x4c6824[_0x5e7779(0x1b9)]?[_0x4c6824[_0x5e7779(0x1b9)]]:[],_0x5b93bf=_0x645c93[_0x5e7779(0x16a)](_0x37c436);if(_0x5b93bf){_0x4c6824[_0x5e7779(0x181)]===_0x5e7779(0x19d)&&(_0x5b93bf[_0x5e7779(0x170)]=_0x130f59,_0x5b93bf[_0x5e7779(0x115)]=_0x130f59,_0x5b93bf[_0x5e7779(0x1b1)]=resolve(_0x130f59,SKILL_FILE),_0x5b93bf['metadataPath']=_0x43d350);for(const _0x2119df of _0x2e4a46){!_0x5b93bf[_0x5e7779(0x15f)][_0x5e7779(0x14e)](_0x2119df)&&_0x5b93bf[_0x5e7779(0x15f)][_0x5e7779(0x1a0)](_0x2119df);}_0x5b93bf[_0x5e7779(0x15f)][_0x5e7779(0x160)]();return;}_0x645c93[_0x5e7779(0x198)](_0x37c436,{..._0x535964,'tags':Array[_0x5e7779(0x193)](_0x535964[_0x5e7779(0x1c3)])?_0x535964[_0x5e7779(0x1c3)]:[],'scope':_0x535964['scope'],'source':'local','dir':_0x130f59,'cacheDir':_0x4c6824[_0x5e7779(0x181)]===_0x5e7779(0x19d)?_0x130f59:undefined,'skillMdPath':resolve(_0x130f59,SKILL_FILE),'metadataPath':_0x43d350,'linkedPaths':_0x2e4a46});}function compareLocalRuntimeSkills(_0x4c87c7,_0x185267){const _0x50e1b6=a76_0x16d29b,_0x27d743={'personal':0x0,'company':0x1,'builtin':0x2};return _0x27d743[_0x4c87c7[_0x50e1b6(0x1d0)]]-_0x27d743[_0x185267[_0x50e1b6(0x1d0)]]||_0x4c87c7[_0x50e1b6(0x1a3)]['localeCompare'](_0x185267[_0x50e1b6(0x1a3)])||_0x4c87c7[_0x50e1b6(0x170)][_0x50e1b6(0x135)](_0x185267['dir']);}function buildMetadata(_0x49be8c,_0x38764e,_0x1c98a7,_0x43819f,_0x43e573,_0x4fc112){const _0x3bd926=a76_0x16d29b,_0x18fc58=_0x4fc112?normalizeLocalFiles(_0x4fc112):[],_0x460ccd=normalizeRemoteManifest(_0x49be8c[_0x3bd926(0x15a)]),_0x181fd9=_0x18fc58[_0x3bd926(0x113)]>0x0?Object['fromEntries'](_0x18fc58[_0x3bd926(0x1c1)](_0x5392a0=>[_0x5392a0[_0x3bd926(0x1d7)],fileHash(_0x5392a0)])):undefined;return{'schemaVersion':_0x18fc58[_0x3bd926(0x113)]>0x0?0x2:0x1,'id':_0x49be8c['id'],'appCode':_0x1c98a7,'skillCode':requireSkillCode(_0x49be8c),'skillName':_0x49be8c[_0x3bd926(0x188)],'description':_0x49be8c[_0x3bd926(0x1bd)],'scope':_0x38764e,'readonly':_0x38764e!==_0x3bd926(0x175)||_0x49be8c[_0x3bd926(0x16c)]===!![],'tenantCode':_0x49be8c[_0x3bd926(0x151)],'userId':_0x49be8c[_0x3bd926(0x117)],'version':_0x49be8c[_0x3bd926(0x184)],'status':_0x49be8c['status'],'tags':Array[_0x3bd926(0x193)](_0x49be8c['tags'])?_0x49be8c[_0x3bd926(0x1c3)]:[],'hasUpstreamUpdate':_0x49be8c['hasUpstreamUpdate'],'forkedFromSkillId':_0x49be8c[_0x3bd926(0x14c)],'forkedFromVersion':_0x49be8c['forkedFromVersion'],'sourceSessionId':_0x49be8c[_0x3bd926(0x1d1)],'contentHash':_0x43819f,'fileHashes':_0x181fd9,'treeHash':_0x18fc58[_0x3bd926(0x113)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x18fc58)):_0x460ccd?.[_0x3bd926(0x171)],'ossPath':_0x460ccd?.[_0x3bd926(0x11b)],'zipSha256':_0x460ccd?.[_0x3bd926(0x1a4)],'zipSize':_0x460ccd?.[_0x3bd926(0x143)],'files':_0x18fc58[_0x3bd926(0x113)]>0x0?_0x18fc58[_0x3bd926(0x1c1)](_0x1559cf=>({'path':_0x1559cf['path'],'hash':fileHash(_0x1559cf),'size':fileContent(_0x1559cf)[_0x3bd926(0x113)]})):undefined,'pulledAt':_0x43e573??new Date()[_0x3bd926(0x147)]()};}function requireSkillCode(_0x383fad){const _0x140d09=a76_0x16d29b,_0x96ce5e=_0x383fad['skillCode']?.['trim']();if(!_0x96ce5e)throw CliErrors[_0x140d09(0x1d2)](_0x140d09(0x14d));return _0x96ce5e;}function trimmedEnv(_0x33cc57){const _0x1dc5e5=a76_0x16d29b,_0x34a27e=productEnv(_0x33cc57)?.[_0x1dc5e5(0x137)]();return _0x34a27e?_0x34a27e:undefined;}function safePathSegment(_0x1be39b,_0x16e925='path\x20segment'){const _0x2ddd5d=a76_0x16d29b;if(!_0x1be39b||_0x1be39b[_0x2ddd5d(0x14e)]('/')||_0x1be39b['includes']('\x5c')||_0x1be39b[_0x2ddd5d(0x14e)]('..'))throw CliErrors['validation']('Unsafe\x20'+_0x16e925+'\x20for\x20local\x20path:\x20'+_0x1be39b);return _0x1be39b;}function ensurePulledFilesCanBeOverwritten(_0x448dc9,_0xd4dc33,_0x10de7d,_0x2b5a98){const _0x36269e=a76_0x16d29b;if(_0x2b5a98||!existsSync(_0xd4dc33))return;const _0x333eee=readMetadataIfPresent(_0xd4dc33);if(!_0x333eee)return;const _0xc4fd22=_0x333eee['fileHashes']&&Object[_0x36269e(0x156)](_0x333eee[_0x36269e(0x17e)])[_0x36269e(0x113)]>0x0?_0x333eee[_0x36269e(0x17e)]:undefined;if(_0xc4fd22)for(const [_0x52918d,_0x36fe5b]of Object['entries'](_0xc4fd22)){const _0x40b950=resolveManagedFilePath(_0x448dc9,_0x52918d);if(!existsSync(_0x40b950))throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x448dc9,_0x36269e(0x16e)+_0x52918d);const _0x1b27a4=lstatSync(_0x40b950);if(!_0x1b27a4[_0x36269e(0x168)]())throw CliErrors['validation'](_0x36269e(0x196)+_0x448dc9,_0x36269e(0x177)+_0x52918d);const _0x30e511=bufferSha256(readFileSync(_0x40b950));if(_0x30e511!==_0x36fe5b)throw CliErrors[_0x36269e(0x1d2)](_0x36269e(0x196)+_0x448dc9+'.\x20Changed\x20file:\x20'+_0x52918d,_0x36269e(0x162)+_0x52918d);}else{const _0x15c5d5=resolve(_0x448dc9,SKILL_FILE);if(existsSync(_0x15c5d5)&&_0x333eee[_0x36269e(0x157)]){const _0x27b26b=contentHash(readFileSync(_0x15c5d5,_0x36269e(0x142)));if(_0x27b26b!==_0x333eee[_0x36269e(0x157)])throw CliErrors['validation'](_0x36269e(0x1b8)+_0x15c5d5,'Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.');}}for(const _0x3068de of normalizeLocalFiles(_0x10de7d)){if(_0xc4fd22?.[_0x3068de[_0x36269e(0x1d7)]])continue;if(!_0xc4fd22&&_0x3068de[_0x36269e(0x1d7)]===SKILL_FILE)continue;const _0x1937f4=resolveManagedFilePath(_0x448dc9,_0x3068de[_0x36269e(0x1d7)]);if(!existsSync(_0x1937f4))continue;const _0x8be7ae=lstatSync(_0x1937f4);if(!_0x8be7ae[_0x36269e(0x168)]())throw CliErrors[_0x36269e(0x1d2)](_0x36269e(0x196)+_0x448dc9,'Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20'+_0x3068de[_0x36269e(0x1d7)]);const _0x1cf548=bufferSha256(readFileSync(_0x1937f4));if(_0x1cf548!==fileHash(_0x3068de))throw CliErrors[_0x36269e(0x1d2)](_0x36269e(0x196)+_0x448dc9,_0x36269e(0x15b)+_0x3068de[_0x36269e(0x1d7)]);}}function scanSkillDirectory(_0x311773){const _0x4a1d41=realOrResolved(_0x311773),_0x166dcd=[];let _0xc5521b=0x0;function _0x36ff06(_0x463a5c){const _0x385e1b=a76_0x55f5,_0x27f56d=readdirSync(_0x463a5c,{'withFileTypes':!![]})[_0x385e1b(0x160)]((_0x1e8ac4,_0x261c7b)=>_0x1e8ac4[_0x385e1b(0x136)][_0x385e1b(0x135)](_0x261c7b[_0x385e1b(0x136)]));for(const _0x11a840 of _0x27f56d){if(_0x11a840['isDirectory']()&&IGNORED_DIR_NAMES[_0x385e1b(0x19a)](_0x11a840['name']))continue;if(IGNORED_FILE_NAMES[_0x385e1b(0x19a)](_0x11a840[_0x385e1b(0x136)]))continue;const _0x14c614=resolve(_0x463a5c,_0x11a840[_0x385e1b(0x136)]);if(_0x11a840[_0x385e1b(0x1c0)]())throw CliErrors[_0x385e1b(0x1d2)](_0x385e1b(0x13c)+_0x14c614);const _0x5899e8=toPosixPath(relative(_0x4a1d41,_0x14c614));if(_0x11a840[_0x385e1b(0x1b0)]()){_0x36ff06(_0x14c614);continue;}if(!_0x11a840[_0x385e1b(0x168)]())continue;validateSkillRelativePath(_0x5899e8);const _0x2f206d=readFileSync(_0x14c614);if(_0x2f206d[_0x385e1b(0x113)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x385e1b(0x1d2)](_0x385e1b(0x1b4)+_0x5899e8);_0xc5521b+=_0x2f206d['length'];if(_0xc5521b>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x385e1b(0x1d2)]('Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.');_0x166dcd[_0x385e1b(0x1a0)]({'path':_0x5899e8,'bytes':_0x2f206d});if(_0x166dcd[_0x385e1b(0x113)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x385e1b(0x1d2)]('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');}}return _0x36ff06(_0x4a1d41),normalizeLocalFiles(_0x166dcd);}function normalizeLocalFiles(_0xcb767a){const _0x554b55=a76_0x16d29b;if(!Array[_0x554b55(0x193)](_0xcb767a)||_0xcb767a[_0x554b55(0x113)]===0x0)return[];if(_0xcb767a[_0x554b55(0x113)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x554b55(0x1d2)]('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');const _0x1dd530=new Map();let _0x19e6f6=0x0;for(const _0x5c3c01 of _0xcb767a){if(!_0x5c3c01||typeof _0x5c3c01!==_0x554b55(0x1cc)||typeof _0x5c3c01[_0x554b55(0x1d7)]!==_0x554b55(0x172))throw CliErrors[_0x554b55(0x1d2)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x1af9b1=normalizeSkillRelativePath(_0x5c3c01[_0x554b55(0x1d7)]);if(_0x1dd530[_0x554b55(0x19a)](_0x1af9b1))throw CliErrors[_0x554b55(0x1d2)](_0x554b55(0x12a)+_0x1af9b1);if(_0x5c3c01[_0x554b55(0x1db)]!==undefined&&!Buffer[_0x554b55(0x161)](_0x5c3c01[_0x554b55(0x1db)]))throw CliErrors[_0x554b55(0x1d2)](_0x554b55(0x1c7)+_0x1af9b1);if(_0x5c3c01[_0x554b55(0x1db)]===undefined&&typeof _0x5c3c01['content']!=='string')throw CliErrors[_0x554b55(0x1d2)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x1af9b1);const _0x3c9b17=fileContent(_0x5c3c01),_0x41dc3a=_0x3c9b17[_0x554b55(0x113)];if(_0x41dc3a>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x554b55(0x1d2)]('Skill\x20file\x20exceeds\x20size\x20limit:\x20'+_0x1af9b1);_0x19e6f6+=_0x41dc3a;if(_0x19e6f6>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x554b55(0x1d2)]('Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.');_0x1dd530[_0x554b55(0x198)](_0x1af9b1,{'path':_0x1af9b1,'bytes':_0x3c9b17});}return Array[_0x554b55(0x173)](_0x1dd530[_0x554b55(0x1ca)]())[_0x554b55(0x160)](compareSkillFiles);}function normalizeManifestFiles(_0x54446d){const _0x5a6e9e=a76_0x16d29b;if(!Array[_0x5a6e9e(0x193)](_0x54446d)||_0x54446d[_0x5a6e9e(0x113)]===0x0)return[];if(_0x54446d[_0x5a6e9e(0x113)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x5a6e9e(0x1d2)](_0x5a6e9e(0x12f));const _0x476892=new Map();let _0x788ca4=0x0;for(const _0x4b45a4 of _0x54446d){if(!_0x4b45a4||typeof _0x4b45a4!==_0x5a6e9e(0x1cc)||typeof _0x4b45a4[_0x5a6e9e(0x1d7)]!==_0x5a6e9e(0x172))throw CliErrors['validation']('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x21333d=normalizeSkillRelativePath(_0x4b45a4[_0x5a6e9e(0x1d7)]);if(_0x476892[_0x5a6e9e(0x19a)](_0x21333d))throw CliErrors[_0x5a6e9e(0x1d2)](_0x5a6e9e(0x12a)+_0x21333d);if(!isSha256Hex(_0x4b45a4['sha256']))throw CliErrors['validation'](_0x5a6e9e(0x15c)+_0x21333d);if(!Number[_0x5a6e9e(0x11a)](_0x4b45a4[_0x5a6e9e(0x190)])||_0x4b45a4[_0x5a6e9e(0x190)]<0x0)throw CliErrors[_0x5a6e9e(0x1d2)](_0x5a6e9e(0x1de)+_0x21333d);if(_0x4b45a4[_0x5a6e9e(0x190)]>MAX_SKILL_FILE_BYTES)throw CliErrors['validation'](_0x5a6e9e(0x1b4)+_0x21333d);_0x788ca4+=_0x4b45a4['size'];if(_0x788ca4>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x5a6e9e(0x1d2)](_0x5a6e9e(0x155));_0x476892[_0x5a6e9e(0x198)](_0x21333d,{'path':_0x21333d,'sha256':_0x4b45a4['sha256'][_0x5a6e9e(0x194)](),'size':_0x4b45a4[_0x5a6e9e(0x190)]});}return Array['from'](_0x476892[_0x5a6e9e(0x1ca)]())[_0x5a6e9e(0x160)](compareSkillFiles);}function normalizeRemoteManifest(_0x11721d){return normalizePackageManifest(_0x11721d,{'requireOssPath':!![]});}function normalizePackageManifest(_0x418f5e,_0x2590bd){const _0x4da729=a76_0x16d29b;if(!_0x418f5e||typeof _0x418f5e!==_0x4da729(0x1cc)||Array[_0x4da729(0x193)](_0x418f5e))return undefined;const _0x3d9b9d=_0x418f5e,_0x457f2c=typeof _0x3d9b9d[_0x4da729(0x11b)]===_0x4da729(0x172)?_0x3d9b9d[_0x4da729(0x11b)]['trim']():undefined;if(_0x2590bd[_0x4da729(0x178)]&&!_0x457f2c)return undefined;if(!Array[_0x4da729(0x193)](_0x3d9b9d[_0x4da729(0x15a)])||_0x3d9b9d[_0x4da729(0x15a)][_0x4da729(0x113)]===0x0)return undefined;if(!isSha256Hex(_0x3d9b9d[_0x4da729(0x171)]))throw CliErrors[_0x4da729(0x1d2)](_0x4da729(0x1a2));if(!isSha256Hex(_0x3d9b9d[_0x4da729(0x1a4)]))throw CliErrors[_0x4da729(0x1d2)](_0x4da729(0x1b5));if(!Number[_0x4da729(0x11a)](_0x3d9b9d[_0x4da729(0x143)])||_0x3d9b9d[_0x4da729(0x143)]<0x0)throw CliErrors[_0x4da729(0x1d2)](_0x4da729(0x182));if(_0x3d9b9d[_0x4da729(0x143)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x4da729(0x1d2)](_0x4da729(0x123));const _0x526105=normalizeManifestFiles(_0x3d9b9d[_0x4da729(0x15a)]);if(!_0x526105[_0x4da729(0x140)](_0x40de8f=>_0x40de8f['path']===SKILL_FILE))throw CliErrors[_0x4da729(0x1d2)](_0x4da729(0x153)+SKILL_FILE+'.');const _0x5efb7b=fileTreeHash(_0x526105);if(_0x5efb7b!==_0x3d9b9d['treeSha256'][_0x4da729(0x194)]())throw CliErrors[_0x4da729(0x1d2)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x4da729(0x11a)](_0x3d9b9d[_0x4da729(0x1a5)])?_0x3d9b9d['schemaVersion']:0x2,'ossPath':_0x457f2c,'treeSha256':_0x5efb7b,'zipSha256':_0x3d9b9d[_0x4da729(0x1a4)]['toLowerCase'](),'zipSize':_0x3d9b9d['zipSize'],'files':_0x526105};}function tryNormalizeRemoteManifest(_0x6605ef){return normalizeRemoteManifest(_0x6605ef);}function requirePackageBytes(_0x4a3d2a,_0x287483){const _0x2eaddf=a76_0x16d29b;if(!_0x287483||_0x287483['length']===0x0)throw CliErrors['validation'](_0x2eaddf(0x1d6)+_0x4a3d2a);if(_0x287483['length']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0x2eaddf(0x144)+_0x4a3d2a);return _0x287483;}function localFilesToManifestFiles(_0x54616d){const _0x5c8385=a76_0x16d29b;return normalizeLocalFiles(_0x54616d)[_0x5c8385(0x1c1)](_0x3a455d=>({'path':_0x3a455d[_0x5c8385(0x1d7)],'sha256':fileHash(_0x3a455d),'size':fileContent(_0x3a455d)[_0x5c8385(0x113)]}));}function isSha256Hex(_0x9df37b){const _0xe42458=a76_0x16d29b;return typeof _0x9df37b===_0xe42458(0x172)&&/^[a-fA-F0-9]{64}$/[_0xe42458(0x1a1)](_0x9df37b);}function extractAndVerifyPackage(_0x11b381,_0xa68be2){const _0x3e50cd=a76_0x16d29b,_0x5d1055=normalizePackageManifest(_0x11b381,{'requireOssPath':![]});if(!_0x5d1055)throw CliErrors[_0x3e50cd(0x1d2)](_0x3e50cd(0x11f));if(_0xa68be2[_0x3e50cd(0x113)]!==_0x5d1055['zipSize'])throw CliErrors[_0x3e50cd(0x1d2)](_0x3e50cd(0x12b));const _0xd951ec=bufferSha256(_0xa68be2);if(_0xd951ec!==_0x5d1055['zipSha256'])throw CliErrors[_0x3e50cd(0x1d2)](_0x3e50cd(0x19f));const _0x4b35a9=parseZipPackage(_0xa68be2);if(_0x4b35a9['length']!==_0x5d1055['files'][_0x3e50cd(0x113)])throw CliErrors[_0x3e50cd(0x1d2)](_0x3e50cd(0x158));const _0x35b951=new Map();for(const _0x11548c of _0x4b35a9){if(_0x35b951[_0x3e50cd(0x19a)](_0x11548c[_0x3e50cd(0x1d7)]))throw CliErrors[_0x3e50cd(0x1d2)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x11548c['path']);_0x35b951[_0x3e50cd(0x198)](_0x11548c[_0x3e50cd(0x1d7)],_0x11548c);}const _0x510cf9=[];for(const _0x5ed518 of _0x5d1055['files']){const _0x28b6b4=_0x35b951[_0x3e50cd(0x16a)](_0x5ed518[_0x3e50cd(0x1d7)]);if(!_0x28b6b4)throw CliErrors[_0x3e50cd(0x1d2)](_0x3e50cd(0x1aa)+_0x5ed518[_0x3e50cd(0x1d7)]);if(_0x28b6b4[_0x3e50cd(0x1db)]['length']!==_0x5ed518[_0x3e50cd(0x190)])throw CliErrors[_0x3e50cd(0x1d2)](_0x3e50cd(0x15e)+_0x5ed518['path']);const _0x4328e4=bufferSha256(_0x28b6b4[_0x3e50cd(0x1db)]);if(_0x4328e4!==_0x5ed518[_0x3e50cd(0x1ac)])throw CliErrors['validation'](_0x3e50cd(0x15d)+_0x5ed518[_0x3e50cd(0x1d7)]);_0x510cf9[_0x3e50cd(0x1a0)]({'path':_0x5ed518[_0x3e50cd(0x1d7)],'bytes':_0x28b6b4[_0x3e50cd(0x1db)]});}return normalizeLocalFiles(_0x510cf9);}function createDeterministicZipPackage(_0x2504d3){const _0x4ca47e=a76_0x16d29b,_0x397e58=normalizeLocalFiles(_0x2504d3),_0x539bca=[],_0x35fb38=[];let _0xf58b50=0x0;for(const _0x2edadf of _0x397e58){const _0x57867f=Buffer[_0x4ca47e(0x173)](_0x2edadf['path'],_0x4ca47e(0x142)),_0x1c5fdc=fileContent(_0x2edadf),_0x1ed763=crc32(_0x1c5fdc),_0xe9f32b=Buffer['alloc'](0x1e+_0x57867f[_0x4ca47e(0x113)]);_0xe9f32b[_0x4ca47e(0x17d)](ZIP_LOCAL_FILE_HEADER_SIGNATURE,0x0),_0xe9f32b['writeUInt16LE'](0x14,0x4),_0xe9f32b[_0x4ca47e(0x191)](ZIP_GENERAL_PURPOSE_UTF8,0x6),_0xe9f32b[_0x4ca47e(0x191)](ZIP_METHOD_STORE,0x8),_0xe9f32b[_0x4ca47e(0x191)](ZIP_FIXED_DOS_TIME,0xa),_0xe9f32b[_0x4ca47e(0x191)](ZIP_FIXED_DOS_DATE,0xc),_0xe9f32b[_0x4ca47e(0x17d)](_0x1ed763,0xe),_0xe9f32b[_0x4ca47e(0x17d)](_0x1c5fdc[_0x4ca47e(0x113)],0x12),_0xe9f32b[_0x4ca47e(0x17d)](_0x1c5fdc[_0x4ca47e(0x113)],0x16),_0xe9f32b[_0x4ca47e(0x191)](_0x57867f[_0x4ca47e(0x113)],0x1a),_0xe9f32b[_0x4ca47e(0x191)](0x0,0x1c),_0x57867f['copy'](_0xe9f32b,0x1e),_0x539bca[_0x4ca47e(0x1a0)](_0xe9f32b,_0x1c5fdc);const _0x1a20c0=Buffer[_0x4ca47e(0x179)](0x2e+_0x57867f['length']);_0x1a20c0['writeUInt32LE'](ZIP_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x1a20c0[_0x4ca47e(0x191)](0x14,0x4),_0x1a20c0[_0x4ca47e(0x191)](0x14,0x6),_0x1a20c0[_0x4ca47e(0x191)](ZIP_GENERAL_PURPOSE_UTF8,0x8),_0x1a20c0[_0x4ca47e(0x191)](ZIP_METHOD_STORE,0xa),_0x1a20c0[_0x4ca47e(0x191)](ZIP_FIXED_DOS_TIME,0xc),_0x1a20c0['writeUInt16LE'](ZIP_FIXED_DOS_DATE,0xe),_0x1a20c0[_0x4ca47e(0x17d)](_0x1ed763,0x10),_0x1a20c0['writeUInt32LE'](_0x1c5fdc['length'],0x14),_0x1a20c0[_0x4ca47e(0x17d)](_0x1c5fdc[_0x4ca47e(0x113)],0x18),_0x1a20c0[_0x4ca47e(0x191)](_0x57867f['length'],0x1c),_0x1a20c0[_0x4ca47e(0x191)](0x0,0x1e),_0x1a20c0['writeUInt16LE'](0x0,0x20),_0x1a20c0[_0x4ca47e(0x191)](0x0,0x22),_0x1a20c0[_0x4ca47e(0x191)](0x0,0x24),_0x1a20c0['writeUInt32LE'](0x0,0x26),_0x1a20c0[_0x4ca47e(0x17d)](_0xf58b50,0x2a),_0x57867f['copy'](_0x1a20c0,0x2e),_0x35fb38[_0x4ca47e(0x1a0)](_0x1a20c0),_0xf58b50+=_0xe9f32b[_0x4ca47e(0x113)]+_0x1c5fdc[_0x4ca47e(0x113)];}const _0x456313=Buffer[_0x4ca47e(0x1dd)](_0x35fb38),_0x396e5b=_0xf58b50,_0xf50547=_0x456313[_0x4ca47e(0x113)],_0xb5452d=Buffer['alloc'](0x16);_0xb5452d[_0x4ca47e(0x17d)](ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0xb5452d[_0x4ca47e(0x191)](0x0,0x4),_0xb5452d[_0x4ca47e(0x191)](0x0,0x6),_0xb5452d[_0x4ca47e(0x191)](_0x397e58[_0x4ca47e(0x113)],0x8),_0xb5452d[_0x4ca47e(0x191)](_0x397e58[_0x4ca47e(0x113)],0xa),_0xb5452d[_0x4ca47e(0x17d)](_0xf50547,0xc),_0xb5452d[_0x4ca47e(0x17d)](_0x396e5b,0x10),_0xb5452d[_0x4ca47e(0x191)](0x0,0x14);const _0x23e94c=Buffer[_0x4ca47e(0x1dd)]([..._0x539bca,_0x456313,_0xb5452d]);if(_0x23e94c['length']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x4ca47e(0x1d2)](_0x4ca47e(0x19b));return _0x23e94c;}function parseZipPackage(_0x4448c5){const _0x34429f=a76_0x16d29b;if(_0x4448c5[_0x34429f(0x113)]<0x16)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x1b6));const _0x5bae6f=findEndOfCentralDirectory(_0x4448c5);if(_0x5bae6f<0x0)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x1ae));const _0x5977bb=_0x4448c5[_0x34429f(0x116)](_0x5bae6f+0x4),_0x583222=_0x4448c5[_0x34429f(0x116)](_0x5bae6f+0x6),_0x2f67a8=_0x4448c5[_0x34429f(0x116)](_0x5bae6f+0xa),_0x5e4833=_0x4448c5[_0x34429f(0x145)](_0x5bae6f+0xc),_0x15aa2b=_0x4448c5[_0x34429f(0x145)](_0x5bae6f+0x10);if(_0x5977bb!==0x0||_0x583222!==0x0)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x1b3));if(_0x2f67a8>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x18c));if(_0x15aa2b+_0x5e4833>_0x5bae6f||_0x15aa2b>=_0x4448c5[_0x34429f(0x113)])throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x1c9));const _0x3516d4=[];let _0x56d597=0x0,_0x3389e2=_0x15aa2b;for(let _0x3adbd7=0x0;_0x3adbd7<_0x2f67a8;_0x3adbd7+=0x1){if(_0x3389e2+0x2e>_0x4448c5[_0x34429f(0x113)])throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x1c6));if(_0x4448c5[_0x34429f(0x145)](_0x3389e2)!==ZIP_CENTRAL_DIRECTORY_SIGNATURE)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x18e));const _0x484d7d=_0x4448c5[_0x34429f(0x116)](_0x3389e2+0x8),_0x2b147a=_0x4448c5[_0x34429f(0x116)](_0x3389e2+0xa),_0x593062=_0x4448c5['readUInt32LE'](_0x3389e2+0x10),_0x2144cb=_0x4448c5[_0x34429f(0x145)](_0x3389e2+0x14),_0x34c3c2=_0x4448c5[_0x34429f(0x145)](_0x3389e2+0x18),_0xbfa294=_0x4448c5[_0x34429f(0x116)](_0x3389e2+0x1c),_0x59f947=_0x4448c5['readUInt16LE'](_0x3389e2+0x1e),_0x5dd3ec=_0x4448c5[_0x34429f(0x116)](_0x3389e2+0x20),_0x4d533f=_0x4448c5[_0x34429f(0x145)](_0x3389e2+0x2a),_0x383ff7=_0x3389e2+0x2e,_0x523948=_0x383ff7+_0xbfa294;if(_0x523948>_0x4448c5[_0x34429f(0x113)])throw CliErrors[_0x34429f(0x1d2)]('Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20name.');if((_0x484d7d&0x1)!==0x0)throw CliErrors['validation'](_0x34429f(0x1d4));if(_0x2b147a!==ZIP_METHOD_STORE&&_0x2b147a!==ZIP_METHOD_DEFLATE)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x14a));const _0x353960=normalizeSkillRelativePath(_0x4448c5['subarray'](_0x383ff7,_0x523948)[_0x34429f(0x174)](_0x34429f(0x142)));if(_0x353960[_0x34429f(0x146)]('/'))throw CliErrors['validation'](_0x34429f(0x1c2)+_0x353960);if(_0x34c3c2>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x150)+_0x353960);_0x56d597+=_0x34c3c2;if(_0x56d597>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0x34429f(0x131));const _0x4ab4e4=readZipEntryData(_0x4448c5,_0x4d533f,_0x353960,_0x2144cb),_0x425521=_0x2b147a===ZIP_METHOD_STORE?_0x4ab4e4:inflateRawSync(_0x4ab4e4);if(_0x425521[_0x34429f(0x113)]!==_0x34c3c2)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x13b)+_0x353960);if(crc32(_0x425521)!==_0x593062)throw CliErrors['validation'](_0x34429f(0x129)+_0x353960);_0x3516d4['push']({'path':_0x353960,'bytes':_0x425521}),_0x3389e2=_0x523948+_0x59f947+_0x5dd3ec;}if(_0x3389e2!==_0x15aa2b+_0x5e4833)throw CliErrors[_0x34429f(0x1d2)](_0x34429f(0x1d8));return _0x3516d4[_0x34429f(0x160)](compareSkillFiles);}function readZipEntryData(_0x37f4bb,_0x1415b6,_0x8ae75c,_0x1394dc){const _0x56fd1a=a76_0x16d29b;if(_0x1415b6+0x1e>_0x37f4bb[_0x56fd1a(0x113)])throw CliErrors[_0x56fd1a(0x1d2)](_0x56fd1a(0x18b)+_0x8ae75c);if(_0x37f4bb[_0x56fd1a(0x145)](_0x1415b6)!==ZIP_LOCAL_FILE_HEADER_SIGNATURE)throw CliErrors[_0x56fd1a(0x1d2)](_0x56fd1a(0x126)+_0x8ae75c);const _0x4a32bd=_0x37f4bb['readUInt16LE'](_0x1415b6+0x1a),_0x3e6dbd=_0x37f4bb['readUInt16LE'](_0x1415b6+0x1c),_0x364b9e=_0x1415b6+0x1e,_0x329978=_0x364b9e+_0x4a32bd,_0x3c5924=_0x329978+_0x3e6dbd,_0x21a7cb=_0x3c5924+_0x1394dc;if(_0x329978>_0x37f4bb[_0x56fd1a(0x113)]||_0x21a7cb>_0x37f4bb[_0x56fd1a(0x113)])throw CliErrors[_0x56fd1a(0x1d2)](_0x56fd1a(0x148)+_0x8ae75c);const _0x572c65=normalizeSkillRelativePath(_0x37f4bb[_0x56fd1a(0x121)](_0x364b9e,_0x329978)['toString']('utf8'));if(_0x572c65!==_0x8ae75c)throw CliErrors[_0x56fd1a(0x1d2)](_0x56fd1a(0x199)+_0x8ae75c);return _0x37f4bb[_0x56fd1a(0x121)](_0x3c5924,_0x21a7cb);}function findEndOfCentralDirectory(_0x576779){const _0x1102ff=a76_0x16d29b,_0x2827d5=Math[_0x1102ff(0x133)](0x0,_0x576779[_0x1102ff(0x113)]-0x16-0xffff);for(let _0x3b4a68=_0x576779[_0x1102ff(0x113)]-0x16;_0x3b4a68>=_0x2827d5;_0x3b4a68-=0x1){if(_0x576779['readUInt32LE'](_0x3b4a68)===ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE){const _0x584a6f=_0x576779[_0x1102ff(0x116)](_0x3b4a68+0x14);if(_0x3b4a68+0x16+_0x584a6f===_0x576779[_0x1102ff(0x113)])return _0x3b4a68;}}return-0x1;}function createCrc32Table(){const _0x46f78c=new Uint32Array(0x100);for(let _0x37848f=0x0;_0x37848f<0x100;_0x37848f+=0x1){let _0x2fec8a=_0x37848f;for(let _0x4d3fbf=0x0;_0x4d3fbf<0x8;_0x4d3fbf+=0x1){_0x2fec8a=(_0x2fec8a&0x1)!==0x0?0xedb88320^_0x2fec8a>>>0x1:_0x2fec8a>>>0x1;}_0x46f78c[_0x37848f]=_0x2fec8a>>>0x0;}return _0x46f78c;}function crc32(_0x1878a4){let _0x5473be=0xffffffff;for(const _0x1e48e7 of _0x1878a4){_0x5473be=CRC32_TABLE[(_0x5473be^_0x1e48e7)&0xff]^_0x5473be>>>0x8;}return(_0x5473be^0xffffffff)>>>0x0;}function compareSkillFiles(_0x3ab5a6,_0x1a6d8b){const _0x253ca9=a76_0x16d29b;if(_0x3ab5a6['path']===SKILL_FILE)return _0x1a6d8b[_0x253ca9(0x1d7)]===SKILL_FILE?0x0:-0x1;if(_0x1a6d8b['path']===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x253ca9(0x173)](_0x3ab5a6[_0x253ca9(0x1d7)],_0x253ca9(0x142)),Buffer[_0x253ca9(0x173)](_0x1a6d8b[_0x253ca9(0x1d7)],'utf8'));}function materializeFiles(_0x50f7bd,_0x303a49){const _0x181982=a76_0x16d29b;for(const _0x5598f9 of normalizeLocalFiles(_0x303a49)){const _0x37b2f0=resolveManagedFilePath(_0x50f7bd,_0x5598f9[_0x181982(0x1d7)]);mkdirSync(dirname(_0x37b2f0),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x37b2f0,fileContent(_0x5598f9),0x180);}}function removeStaleManagedFiles(_0x29b3bb,_0x2452e9,_0x1d6e1e){const _0x40c909=a76_0x16d29b;if(!_0x2452e9)return;const _0x4625ae=new Set(normalizeLocalFiles(_0x1d6e1e)[_0x40c909(0x1c1)](_0x57a918=>_0x57a918[_0x40c909(0x1d7)]));for(const _0x5ef81c of Object[_0x40c909(0x156)](_0x2452e9)){if(_0x4625ae[_0x40c909(0x19a)](_0x5ef81c))continue;const _0x38796a=resolveManagedFilePath(_0x29b3bb,_0x5ef81c);existsSync(_0x38796a)&&lstatSync(_0x38796a)[_0x40c909(0x168)]()&&rmSync(_0x38796a,{'force':!![]});}}function resolveManagedFilePath(_0x276dfa,_0x40e722){const _0x30c1d3=a76_0x16d29b,_0x4bc778=normalizeSkillRelativePath(_0x40e722),_0x153b3b=realOrResolved(_0x276dfa),_0x12903a=resolve(_0x153b3b,..._0x4bc778['split']('/'));if(!isPathInside(_0x12903a,_0x153b3b))throw CliErrors[_0x30c1d3(0x1d2)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x40e722);return ensureNoSymlinkInManagedPath(_0x153b3b,_0x4bc778),_0x12903a;}function ensureNoSymlinkInManagedPath(_0x438863,_0x17d94b){const _0x1e7c35=a76_0x16d29b;let _0xf70ba9=_0x438863;for(const _0xdce5f5 of _0x17d94b[_0x1e7c35(0x16b)]('/')){_0xf70ba9=resolve(_0xf70ba9,_0xdce5f5);const _0x57a98e=lstatIfPresent(_0xf70ba9);if(_0x57a98e?.[_0x1e7c35(0x1c0)]())throw CliErrors[_0x1e7c35(0x1d2)](_0x1e7c35(0x163)+_0x17d94b);}}function normalizeSkillRelativePath(_0x44f20a){const _0x2ddd0c=a76_0x16d29b,_0x196a9d=toPosixPath(_0x44f20a[_0x2ddd0c(0x137)]());return validateSkillRelativePath(_0x196a9d),_0x196a9d;}function validateSkillRelativePath(_0x68c123){const _0x36aaef=a76_0x16d29b;if(!_0x68c123||_0x68c123['startsWith']('/')||_0x68c123[_0x36aaef(0x14e)]('//'))throw CliErrors[_0x36aaef(0x1d2)](_0x36aaef(0x132)+_0x68c123);for(const _0xb651ea of _0x68c123[_0x36aaef(0x16b)]('/')){if(!_0xb651ea||_0xb651ea==='.'||_0xb651ea==='..')throw CliErrors['validation'](_0x36aaef(0x132)+_0x68c123);}}function toPosixPath(_0x288902){const _0x21ac56=a76_0x16d29b;return _0x288902[_0x21ac56(0x185)](/\\/g,'/');}function ensureManagedSymlink(_0x45762b,_0x187bd6,_0x3c1dca){const _0x347425=a76_0x16d29b;mkdirSync(dirname(_0x45762b),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x45762b)||isDanglingSymlink(_0x45762b)){const _0xdd7175=lstatSync(_0x45762b);if(!_0xdd7175[_0x347425(0x1c0)]())throw CliErrors[_0x347425(0x1d2)](_0x347425(0x1b7)+_0x45762b);const _0x120f0a=resolveSymlinkTarget(_0x45762b);if(!isPathInside(realOrResolved(_0x120f0a),realOrResolved(_0x3c1dca)))throw CliErrors[_0x347425(0x1d2)](_0x347425(0x18d)+_0x45762b);if(realOrResolved(_0x120f0a)===realOrResolved(_0x187bd6))return{'path':_0x45762b,'target':_0x187bd6,'action':_0x347425(0x1da)};return unlinkSync(_0x45762b),symlinkSync(_0x187bd6,_0x45762b,_0x347425(0x170)),{'path':_0x45762b,'target':_0x187bd6,'action':_0x347425(0x176)};}return symlinkSync(_0x187bd6,_0x45762b,_0x347425(0x170)),{'path':_0x45762b,'target':_0x187bd6,'action':_0x347425(0x1d9)};}function managedAppSkillLinkPaths(_0x588cf7,_0x4651e4){const _0x469204=a76_0x16d29b;if(!existsSync(_0x588cf7))return[];const _0x43f5fc=_0x4651e4+'--';return readdirSync(_0x588cf7,{'withFileTypes':!![]})[_0x469204(0x154)](_0x2de4f5=>_0x2de4f5[_0x469204(0x136)]['startsWith'](_0x43f5fc))[_0x469204(0x1c1)](_0x5984ba=>resolve(_0x588cf7,_0x5984ba[_0x469204(0x136)]));}function removeManagedSkillLink(_0x1e3b22,_0x5dcd28){const _0x3ec372=a76_0x16d29b,_0x1f9a37=lstatIfPresent(_0x1e3b22);if(!_0x1f9a37?.[_0x3ec372(0x1c0)]())return{'path':_0x1e3b22,'action':_0x3ec372(0x14f),'reason':_0x3ec372(0x1cb)};const _0x2deced=resolveSymlinkTarget(_0x1e3b22);if(!isPathInside(realOrResolved(_0x2deced),realOrResolved(_0x5dcd28)))return{'path':_0x1e3b22,'action':_0x3ec372(0x14f),'reason':_0x3ec372(0x130)};return unlinkSync(_0x1e3b22),{'path':_0x1e3b22,'action':_0x3ec372(0x114)};}function copyManagedSkillDirectory(_0x452cee,_0x4d6ade){const _0x441e45=a76_0x16d29b,_0x472239=resolve(_0x4d6ade,METADATA_FILE),_0x3ffbba=existsSync(_0x4d6ade);if(_0x3ffbba){const _0xeb792d=lstatSync(_0x4d6ade);if(_0xeb792d[_0x441e45(0x1c0)]())throw CliErrors[_0x441e45(0x1d2)](_0x441e45(0x183)+_0x4d6ade);if(!_0xeb792d[_0x441e45(0x1b0)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x4d6ade);const _0x470cd0=readMetadataIfPresent(_0x472239);if(_0x470cd0?.[_0x441e45(0x1d0)]!==_0x441e45(0x165))throw CliErrors[_0x441e45(0x1d2)](_0x441e45(0x11c)+_0x4d6ade);}mkdirSync(dirname(_0x4d6ade),{'recursive':!![],'mode':0x1c0});const _0x589c85=_0x3ffbba?readMetadataIfPresent(_0x472239)?.[_0x441e45(0x157)]:undefined,_0x94ca2=readMetadataIfPresent(resolve(_0x452cee,METADATA_FILE))?.[_0x441e45(0x157)];return _0x3ffbba&&rmSync(_0x4d6ade,{'recursive':!![],'force':!![]}),copySkillDirectory(_0x452cee,_0x4d6ade),{'path':_0x4d6ade,'target':_0x452cee,'action':!_0x3ffbba?'created':_0x589c85===_0x94ca2?'unchanged':_0x441e45(0x176)};}function copySkillDirectory(_0x46e704,_0x13bf33){const _0x51b877=a76_0x16d29b;mkdirSync(_0x13bf33,{'recursive':!![],'mode':0x1c0});for(const _0x54de93 of readdirSync(_0x46e704,{'withFileTypes':!![]})){const _0x596084=resolve(_0x46e704,_0x54de93[_0x51b877(0x136)]),_0x5daab3=resolve(_0x13bf33,_0x54de93[_0x51b877(0x136)]);if(_0x54de93[_0x51b877(0x1c0)]())throw CliErrors[_0x51b877(0x1d2)](_0x51b877(0x124)+_0x596084);if(_0x54de93[_0x51b877(0x1b0)]()){copySkillDirectory(_0x596084,_0x5daab3);continue;}_0x54de93[_0x51b877(0x168)]()&&writeFileSync(_0x5daab3,readFileSync(_0x596084));}}function isDanglingSymlink(_0x330315){const _0x45352a=a76_0x16d29b;try{return lstatSync(_0x330315)[_0x45352a(0x1c0)]();}catch{return![];}}function resolveSymlinkTarget(_0x157cd4){const _0x4fb54b=readlinkSync(_0x157cd4);return isAbsolute(_0x4fb54b)?_0x4fb54b:resolve(dirname(_0x157cd4),_0x4fb54b);}function isPathInside(_0x4784cc,_0x5cbd24){const _0x1e4988=a76_0x16d29b,_0x456240=_0x4784cc['endsWith'](sep)?_0x4784cc:''+_0x4784cc+sep,_0x17c154=_0x5cbd24[_0x1e4988(0x146)](sep)?_0x5cbd24:''+_0x5cbd24+sep;return _0x4784cc===_0x5cbd24||_0x456240[_0x1e4988(0x1bb)](_0x17c154);}function realOrResolved(_0x48f208){try{return realpathSync(_0x48f208);}catch{return resolve(_0x48f208);}}function lstatIfPresent(_0x338d51){try{return lstatSync(_0x338d51);}catch{return undefined;}}function writeTextAtomic(_0x24e9d1,_0x3cbe54,_0x3d1607){const _0x6355cb=a76_0x16d29b;writeBytesAtomic(_0x24e9d1,Buffer[_0x6355cb(0x173)](_0x3cbe54,_0x6355cb(0x142)),_0x3d1607);}function writeBytesAtomic(_0x5f0e50,_0xf7f10f,_0x54d51d){const _0x1e56ea=a76_0x16d29b,_0xc0fdb2=_0x5f0e50+_0x1e56ea(0x152);try{writeFileSync(_0xc0fdb2,_0xf7f10f,{'mode':_0x54d51d}),renameSync(_0xc0fdb2,_0x5f0e50);}catch(_0x29e4cc){try{rmSync(_0xc0fdb2,{'force':!![]});}catch{}throw _0x29e4cc;}}function writeJsonAtomic(_0x2d3eec,_0x54ddfa){const _0x57dd24=a76_0x16d29b;writeTextAtomic(_0x2d3eec,JSON[_0x57dd24(0x128)](_0x54ddfa,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x5074ff,_0x4f6479){const _0x14d961=a77_0xd183,_0x5bf6a0=_0x5074ff();while(!![]){try{const _0x5c96c0=-parseInt(_0x14d961(0x1d5))/0x1+parseInt(_0x14d961(0x1da))/0x2+-parseInt(_0x14d961(0x1d9))/0x3+parseInt(_0x14d961(0x1d4))/0x4+parseInt(_0x14d961(0x1d6))/0x5+parseInt(_0x14d961(0x1d3))/0x6*(-parseInt(_0x14d961(0x1d7))/0x7)+parseInt(_0x14d961(0x1d8))/0x8;if(_0x5c96c0===_0x4f6479)break;else _0x5bf6a0['push'](_0x5bf6a0['shift']());}catch(_0x91ee1c){_0x5bf6a0['push'](_0x5bf6a0['shift']());}}}(a77_0x5d17,0xb1d00));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a77_0xd183(_0xcea020,_0x5f45dc){_0xcea020=_0xcea020-0x1d3;const _0x5d1767=a77_0x5d17();let _0xd18326=_0x5d1767[_0xcea020];return _0xd18326;}import{CliErrors}from'../errors.js';function a77_0x5d17(){const _0x3ce251=['14EQZyfw','1079024ffnxan','464619mQzQQF','1598876QuJsCv','1054638TEOVJy','2470448bgPNWy','1353794hVXiUR','5183025uZgSRo'];a77_0x5d17=function(){return _0x3ce251;};return a77_0x5d17();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x17e457,_0x112a0f){const _0xdf1797=a77_0x281d,_0x31c0=_0x17e457();while(!![]){try{const _0x7545be=parseInt(_0xdf1797(0x12d))/0x1*(-parseInt(_0xdf1797(0x134))/0x2)+parseInt(_0xdf1797(0x135))/0x3*(-parseInt(_0xdf1797(0x130))/0x4)+-parseInt(_0xdf1797(0x12f))/0x5*(parseInt(_0xdf1797(0x132))/0x6)+parseInt(_0xdf1797(0x12b))/0x7*(parseInt(_0xdf1797(0x133))/0x8)+-parseInt(_0xdf1797(0x131))/0x9*(-parseInt(_0xdf1797(0x12e))/0xa)+parseInt(_0xdf1797(0x12c))/0xb+-parseInt(_0xdf1797(0x136))/0xc;if(_0x7545be===_0x112a0f)break;else _0x31c0['push'](_0x31c0['shift']());}catch(_0x2bb35a){_0x31c0['push'](_0x31c0['shift']());}}}(a77_0x3595,0x327e0));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a77_0x3595(){const _0x34ecaf=['1678064polEuH','14HsoEKF','501DuOsRq','21384fAuRnw','7XJMGxq','3249367PCHwwl','1999vnvFsG','320rpIBnB','459710axrwQi','8824ahtOsO','101718ISIPuy','18yeBQME'];a77_0x3595=function(){return _0x34ecaf;};return a77_0x3595();}function a77_0x281d(_0x29f4e0,_0x3384f2){_0x29f4e0=_0x29f4e0-0x12b;const _0x3595e1=a77_0x3595();let _0x281daa=_0x3595e1[_0x29f4e0];return _0x281daa;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a78_0x2919dc=a78_0x21a2;(function(_0x363e42,_0x3d4860){const _0x263dcf=a78_0x21a2,_0x486c86=_0x363e42();while(!![]){try{const _0x308f34=-parseInt(_0x263dcf(0x225))/0x1*(parseInt(_0x263dcf(0x221))/0x2)+parseInt(_0x263dcf(0x1fa))/0x3*(parseInt(_0x263dcf(0x21b))/0x4)+parseInt(_0x263dcf(0x219))/0x5*(parseInt(_0x263dcf(0x1fd))/0x6)+parseInt(_0x263dcf(0x215))/0x7+-parseInt(_0x263dcf(0x21d))/0x8+parseInt(_0x263dcf(0x1f7))/0x9+-parseInt(_0x263dcf(0x20a))/0xa;if(_0x308f34===_0x3d4860)break;else _0x486c86['push'](_0x486c86['shift']());}catch(_0x5709c3){_0x486c86['push'](_0x486c86['shift']());}}}(a78_0x8035,0xb1b89));import a78_0x4a4521 from'winston';import a78_0x2c596f from'node:fs';import a78_0x2eaec7 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a78_0x21a2(_0x2ec6f4,_0x737eff){_0x2ec6f4=_0x2ec6f4-0x1f4;const _0x803564=a78_0x8035();let _0x21a2f2=_0x803564[_0x2ec6f4];return _0x21a2f2;}class Logger{['winstonLogger'];['logFilePath']='';[a78_0x2919dc(0x223)]='';constructor(){}[a78_0x2919dc(0x216)](_0x5e2fb6){const _0x4850b1=a78_0x2919dc;this[_0x4850b1(0x223)]=_0x5e2fb6;}[a78_0x2919dc(0x224)](_0x35d51f){const _0x55d308=a78_0x2919dc;this[_0x55d308(0x213)]=a78_0x2eaec7['join'](_0x35d51f,PRODUCT_CONFIG['logFileName']),this[_0x55d308(0x20c)]&&this[_0x55d308(0x20c)][_0x55d308(0x1f9)](),this[_0x55d308(0x206)]();}['initWinstonLogger'](){const _0x5c80e7=a78_0x2919dc,_0xaf6fbc=a78_0x2eaec7['dirname'](this[_0x5c80e7(0x213)]);!a78_0x2c596f[_0x5c80e7(0x202)](_0xaf6fbc)&&a78_0x2c596f[_0x5c80e7(0x203)](_0xaf6fbc,{'recursive':!![]});const _0x4bd4d6=a78_0x4a4521['format'][_0x5c80e7(0x220)](a78_0x4a4521[_0x5c80e7(0x208)][_0x5c80e7(0x204)](),a78_0x4a4521[_0x5c80e7(0x208)][_0x5c80e7(0x205)]({'stack':!![]}),a78_0x4a4521['format']['printf'](_0x1fdf5f=>{const _0x3da00e=_0x5c80e7,_0x32412e={'timestamp':_0x1fdf5f[_0x3da00e(0x204)]||new Date()['toISOString'](),'level':_0x1fdf5f[_0x3da00e(0x21e)]||'info','command':_0x1fdf5f[_0x3da00e(0x20f)]||_0x3da00e(0x228),'rawCommand':_0x1fdf5f[_0x3da00e(0x1f8)]||this['currentRawCommand']||undefined,'message':_0x1fdf5f[_0x3da00e(0x200)]||'','duration':_0x1fdf5f['duration']||undefined,'details':_0x1fdf5f[_0x3da00e(0x1ff)]||undefined};return JSON[_0x3da00e(0x20d)](_0x32412e);}));this[_0x5c80e7(0x20c)]=a78_0x4a4521[_0x5c80e7(0x1fe)]({'level':_0x5c80e7(0x1fc),'format':_0x4bd4d6,'transports':[new a78_0x4a4521[(_0x5c80e7(0x210))][(_0x5c80e7(0x20b))]({'filename':this['logFilePath'],'level':_0x5c80e7(0x1fc)})],'silent':![]}),a78_0x4a4521[_0x5c80e7(0x217)]({'success':_0x5c80e7(0x1fb),'error':_0x5c80e7(0x218),'warn':_0x5c80e7(0x21c),'info':_0x5c80e7(0x227)});}[a78_0x2919dc(0x1fc)](_0x184a41,_0x382a6e,_0x301985){const _0x1c78cb=a78_0x2919dc;if(!this[_0x1c78cb(0x213)]||!this[_0x1c78cb(0x20c)])return;this[_0x1c78cb(0x20c)]['info'](_0x382a6e,{'command':_0x184a41,'details':_0x301985});}['success'](_0x59c590,_0x19be6e,_0x93211e,_0x54be40){const _0x1211d2=a78_0x2919dc;if(!this[_0x1211d2(0x213)]||!this['winstonLogger'])return;this[_0x1211d2(0x20c)][_0x1211d2(0x20e)](_0x1211d2(0x1fc),_0x19be6e,{'level':_0x1211d2(0x209),'command':_0x59c590,'duration':_0x93211e,'details':_0x54be40});}[a78_0x2919dc(0x226)](_0x33cb89,_0xc5af9d,_0x4808e1){const _0x4e9af5=a78_0x2919dc;if(!this[_0x4e9af5(0x213)]||!this[_0x4e9af5(0x20c)])return;this[_0x4e9af5(0x20c)]['error'](_0xc5af9d,{'command':_0x33cb89,'details':_0x4808e1});}[a78_0x2919dc(0x222)](_0x57f5fd,_0x3bba12,_0x1c1aab){const _0x26561c=a78_0x2919dc;if(!this[_0x26561c(0x213)]||!this[_0x26561c(0x20c)])return;this[_0x26561c(0x20c)][_0x26561c(0x222)](_0x3bba12,{'command':_0x57f5fd,'details':_0x1c1aab});}async[a78_0x2919dc(0x212)](_0x47cd1c,_0x2fc101,_0x14a6d8){const _0x197ce4=a78_0x2919dc,_0x1a1a66=Date[_0x197ce4(0x21f)]();this['info'](_0x47cd1c,_0x197ce4(0x1f6)+_0x2fc101);try{const _0x1dc674=await _0x14a6d8(),_0x1728ed=Date[_0x197ce4(0x21f)]()-_0x1a1a66;return this[_0x197ce4(0x209)](_0x47cd1c,_0x197ce4(0x214)+_0x2fc101,_0x1728ed),_0x1dc674;}catch(_0x483371){const _0x529d6d=Date[_0x197ce4(0x21f)]()-_0x1a1a66;this[_0x197ce4(0x226)](_0x47cd1c,'Failed:\x20'+_0x2fc101,{'error':_0x483371 instanceof Error?_0x483371['message']:String(_0x483371),'duration':_0x529d6d});throw _0x483371;}}[a78_0x2919dc(0x1f5)](){const _0x4dc939=a78_0x2919dc;try{if(!a78_0x2c596f[_0x4dc939(0x202)](this['logFilePath']))return[];const _0x3aa889=a78_0x2c596f['readFileSync'](this[_0x4dc939(0x213)],_0x4dc939(0x229));return _0x3aa889[_0x4dc939(0x1f4)](/\r?\n/)[_0x4dc939(0x21a)](_0x455939=>_0x455939['trim']())[_0x4dc939(0x211)](_0x572480=>JSON[_0x4dc939(0x207)](_0x572480));}catch(_0x3310e0){return console[_0x4dc939(0x222)]('Failed\x20to\x20read\x20logs:',_0x3310e0),[];}}['clearLogs'](){const _0xdfd5c5=a78_0x2919dc;try{a78_0x2c596f[_0xdfd5c5(0x202)](this['logFilePath'])&&a78_0x2c596f[_0xdfd5c5(0x201)](this['logFilePath'],'','utf8');}catch(_0x4ef974){console['warn']('Failed\x20to\x20clear\x20logs:',_0x4ef974);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();function a78_0x8035(){const _0x4ce542=['filter','2820JFkoGk','yellow','10720896SZyhcb','level','now','combine','6458vcmjQi','warn','currentRawCommand','setLogPath','401pwjIpj','error','blue','unknown','utf8','split','readLogs','Starting:\x20','12123918jTWcXx','rawCommand','clear','6075fgkpzg','green','info','576168PDpdfo','createLogger','details','message','writeFileSync','existsSync','mkdirSync','timestamp','errors','initWinstonLogger','parse','format','success','4638380OWRSKc','File','winstonLogger','stringify','log','command','transports','map','logTask','logFilePath','Completed:\x20','5347391ABsPND','setRawCommand','addColors','red','15XYoiqH'];a78_0x8035=function(){return _0x4ce542;};return a78_0x8035();}
1
+ const a78_0xe8f771=a78_0x3200;(function(_0x3cbc48,_0x2d72bc){const _0x4e0187=a78_0x3200,_0xd263c6=_0x3cbc48();while(!![]){try{const _0x43bd3f=-parseInt(_0x4e0187(0x157))/0x1*(-parseInt(_0x4e0187(0x154))/0x2)+parseInt(_0x4e0187(0x141))/0x3*(-parseInt(_0x4e0187(0x14d))/0x4)+parseInt(_0x4e0187(0x14a))/0x5*(-parseInt(_0x4e0187(0x15e))/0x6)+-parseInt(_0x4e0187(0x162))/0x7*(-parseInt(_0x4e0187(0x13b))/0x8)+parseInt(_0x4e0187(0x171))/0x9+parseInt(_0x4e0187(0x16b))/0xa*(-parseInt(_0x4e0187(0x16f))/0xb)+-parseInt(_0x4e0187(0x149))/0xc;if(_0x43bd3f===_0x2d72bc)break;else _0xd263c6['push'](_0xd263c6['shift']());}catch(_0x347f97){_0xd263c6['push'](_0xd263c6['shift']());}}}(a78_0x56d4,0x2e4db));import a78_0xeea1bb from'winston';import a78_0x6c312d from'node:fs';import a78_0x187621 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a78_0xe8f771(0x14e)];[a78_0xe8f771(0x164)]='';['currentRawCommand']='';constructor(){}['setRawCommand'](_0x43f439){const _0x282fb9=a78_0xe8f771;this[_0x282fb9(0x140)]=_0x43f439;}[a78_0xe8f771(0x170)](_0x1942db){const _0x4b02a0=a78_0xe8f771;this[_0x4b02a0(0x164)]=a78_0x187621[_0x4b02a0(0x144)](_0x1942db,PRODUCT_CONFIG[_0x4b02a0(0x167)]),this[_0x4b02a0(0x14e)]&&this[_0x4b02a0(0x14e)][_0x4b02a0(0x14f)](),this[_0x4b02a0(0x15b)]();}[a78_0xe8f771(0x15b)](){const _0x355f7e=a78_0xe8f771,_0x48400b=a78_0x187621[_0x355f7e(0x147)](this[_0x355f7e(0x164)]);!a78_0x6c312d[_0x355f7e(0x15a)](_0x48400b)&&a78_0x6c312d[_0x355f7e(0x15c)](_0x48400b,{'recursive':!![]});const _0x1dd258=a78_0xeea1bb[_0x355f7e(0x15f)][_0x355f7e(0x156)](a78_0xeea1bb[_0x355f7e(0x15f)][_0x355f7e(0x13c)](),a78_0xeea1bb[_0x355f7e(0x15f)][_0x355f7e(0x136)]({'stack':!![]}),a78_0xeea1bb[_0x355f7e(0x15f)][_0x355f7e(0x139)](_0x2d71c9=>{const _0x525852=_0x355f7e,_0x11f79f={'timestamp':_0x2d71c9['timestamp']||new Date()[_0x525852(0x159)](),'level':_0x2d71c9['level']||'info','command':_0x2d71c9[_0x525852(0x169)]||'unknown','rawCommand':_0x2d71c9[_0x525852(0x158)]||this[_0x525852(0x140)]||undefined,'message':_0x2d71c9[_0x525852(0x138)]||'','duration':_0x2d71c9[_0x525852(0x155)]||undefined,'details':_0x2d71c9[_0x525852(0x135)]||undefined};return JSON[_0x525852(0x16a)](_0x11f79f);}));this[_0x355f7e(0x14e)]=a78_0xeea1bb[_0x355f7e(0x16e)]({'level':_0x355f7e(0x168),'format':_0x1dd258,'transports':[new a78_0xeea1bb[(_0x355f7e(0x142))][(_0x355f7e(0x14b))]({'filename':this[_0x355f7e(0x164)],'level':'info'})],'silent':![]}),a78_0xeea1bb[_0x355f7e(0x16c)]({'success':_0x355f7e(0x13a),'error':_0x355f7e(0x143),'warn':_0x355f7e(0x13f),'info':_0x355f7e(0x166)});}[a78_0xe8f771(0x168)](_0x4d1dc9,_0x399b63,_0x214deb){const _0x278d38=a78_0xe8f771;if(!this['logFilePath']||!this[_0x278d38(0x14e)])return;this[_0x278d38(0x14e)][_0x278d38(0x168)](_0x399b63,{'command':_0x4d1dc9,'details':_0x214deb});}[a78_0xe8f771(0x160)](_0x58e799,_0x2d8700,_0x1b9a2e,_0x5ed1a4){const _0x356d04=a78_0xe8f771;if(!this[_0x356d04(0x164)]||!this[_0x356d04(0x14e)])return;this[_0x356d04(0x14e)]['log'](_0x356d04(0x168),_0x2d8700,{'level':'success','command':_0x58e799,'duration':_0x1b9a2e,'details':_0x5ed1a4});}[a78_0xe8f771(0x15d)](_0x1e7a1c,_0x237dc7,_0x234d36){const _0x2073e3=a78_0xe8f771;if(!this[_0x2073e3(0x164)]||!this[_0x2073e3(0x14e)])return;this[_0x2073e3(0x14e)][_0x2073e3(0x15d)](_0x237dc7,{'command':_0x1e7a1c,'details':_0x234d36});}[a78_0xe8f771(0x137)](_0x4400e3,_0x491ed5,_0x2c9ac7){const _0x2f7384=a78_0xe8f771;if(!this[_0x2f7384(0x164)]||!this[_0x2f7384(0x14e)])return;this[_0x2f7384(0x14e)][_0x2f7384(0x137)](_0x491ed5,{'command':_0x4400e3,'details':_0x2c9ac7});}async[a78_0xe8f771(0x161)](_0x524d30,_0x382a5e,_0x3000e9){const _0x272258=a78_0xe8f771,_0x56561b=Date[_0x272258(0x145)]();this[_0x272258(0x168)](_0x524d30,_0x272258(0x153)+_0x382a5e);try{const _0x5b9f48=await _0x3000e9(),_0x3aa60f=Date['now']()-_0x56561b;return this['success'](_0x524d30,_0x272258(0x146)+_0x382a5e,_0x3aa60f),_0x5b9f48;}catch(_0x490287){const _0x1e17d7=Date['now']()-_0x56561b;this['error'](_0x524d30,_0x272258(0x148)+_0x382a5e,{'error':_0x490287 instanceof Error?_0x490287[_0x272258(0x138)]:String(_0x490287),'duration':_0x1e17d7});throw _0x490287;}}[a78_0xe8f771(0x152)](){const _0x40cc16=a78_0xe8f771;try{if(!a78_0x6c312d['existsSync'](this[_0x40cc16(0x164)]))return[];const _0x7efc9a=a78_0x6c312d['readFileSync'](this[_0x40cc16(0x164)],'utf8');return _0x7efc9a[_0x40cc16(0x150)](/\r?\n/)[_0x40cc16(0x165)](_0x52f120=>_0x52f120['trim']())['map'](_0x4a680a=>JSON[_0x40cc16(0x13e)](_0x4a680a));}catch(_0x38192a){return console['warn'](_0x40cc16(0x14c),_0x38192a),[];}}[a78_0xe8f771(0x16d)](){const _0x5b3731=a78_0xe8f771;try{a78_0x6c312d['existsSync'](this[_0x5b3731(0x164)])&&a78_0x6c312d[_0x5b3731(0x163)](this[_0x5b3731(0x164)],'',_0x5b3731(0x13d));}catch(_0x410993){console[_0x5b3731(0x137)]('Failed\x20to\x20clear\x20logs:',_0x410993);}}[a78_0xe8f771(0x151)](){const _0x3bf757=a78_0xe8f771;return this[_0x3bf757(0x14e)];}}function a78_0x56d4(){const _0x1d4483=['combine','29345DVgvnA','rawCommand','toISOString','existsSync','initWinstonLogger','mkdirSync','error','6PHEAcA','format','success','logTask','21NnnfPI','writeFileSync','logFilePath','filter','blue','logFileName','info','command','stringify','2722240tzmHDU','addColors','clearLogs','createLogger','11arUzqq','setLogPath','2782872DMfKlP','details','errors','warn','message','printf','green','615504fcGClT','timestamp','utf8','parse','yellow','currentRawCommand','157725GooYaZ','transports','red','join','now','Completed:\x20','dirname','Failed:\x20','1899216eRskwk','216830qMJERw','File','Failed\x20to\x20read\x20logs:','4luQSMm','winstonLogger','clear','split','getWinstonInstance','readLogs','Starting:\x20','12wjGFVw','duration'];a78_0x56d4=function(){return _0x1d4483;};return a78_0x56d4();}function a78_0x3200(_0x13296b,_0x44df07){_0x13296b=_0x13296b-0x135;const _0x56d425=a78_0x56d4();let _0x32001f=_0x56d425[_0x13296b];return _0x32001f;}export const logger=new Logger();
@@ -1 +1 @@
1
- function a79_0x4951(_0x32444a,_0x5d1fee){_0x32444a=_0x32444a-0x158;var _0x25e201=a79_0x25e2();var _0x49510a=_0x25e201[_0x32444a];return _0x49510a;}(function(_0x2b40b0,_0x134ef9){var _0x40ebdd=a79_0x4951,_0x110759=_0x2b40b0();while(!![]){try{var _0x1e3171=-parseInt(_0x40ebdd(0x159))/0x1+-parseInt(_0x40ebdd(0x15d))/0x2*(-parseInt(_0x40ebdd(0x15e))/0x3)+-parseInt(_0x40ebdd(0x166))/0x4+parseInt(_0x40ebdd(0x161))/0x5*(parseInt(_0x40ebdd(0x162))/0x6)+-parseInt(_0x40ebdd(0x167))/0x7+parseInt(_0x40ebdd(0x164))/0x8*(-parseInt(_0x40ebdd(0x15c))/0x9)+parseInt(_0x40ebdd(0x15b))/0xa;if(_0x1e3171===_0x134ef9)break;else _0x110759['push'](_0x110759['shift']());}catch(_0x29a5f7){_0x110759['push'](_0x110759['shift']());}}}(a79_0x25e2,0xe8d71));function a79_0x25e2(){var _0x1330d1=['423jnefQC','216774HBsjvG','6PORYKw','isArray','Invalid\x20JSON\x20for\x20--params:\x20','194690oSvzMp','198DFfDUi','items','57792MCNiAy','validation','7228240eMEHwH','9590196dRjGPB','object','1044151SHkrBp','parse','40127520yKHqNV'];a79_0x25e2=function(){return _0x1330d1;};return a79_0x25e2();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x5b7c9b){var _0x243f93=a79_0x4951;if(!_0x5b7c9b)return undefined;try{return JSON[_0x243f93(0x15a)](_0x5b7c9b);}catch{throw CliErrors[_0x243f93(0x165)](_0x243f93(0x160)+_0x5b7c9b);}}export function parseJsonParamsValue(_0x1e06b8){var _0x58da4c=a79_0x4951;if(!_0x1e06b8)return undefined;try{return JSON[_0x58da4c(0x15a)](_0x1e06b8);}catch{throw CliErrors[_0x58da4c(0x165)](_0x58da4c(0x160)+_0x1e06b8);}}export function parseBatchCreateItemsFromParams(_0x427534){var _0x3ccf62=a79_0x4951;if(Array[_0x3ccf62(0x15f)](_0x427534))return _0x427534;if(_0x427534!==null&&_0x427534!==undefined&&typeof _0x427534===_0x3ccf62(0x158)&&Array['isArray'](_0x427534[_0x3ccf62(0x163)]))return _0x427534['items'];throw CliErrors['validation']('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}
1
+ (function(_0x296bef,_0x36eaf1){var _0x2b1ad1=a79_0x5651,_0x596f6c=_0x296bef();while(!![]){try{var _0x47656e=parseInt(_0x2b1ad1(0x16b))/0x1+-parseInt(_0x2b1ad1(0x165))/0x2*(parseInt(_0x2b1ad1(0x160))/0x3)+-parseInt(_0x2b1ad1(0x16c))/0x4*(-parseInt(_0x2b1ad1(0x164))/0x5)+parseInt(_0x2b1ad1(0x16a))/0x6*(-parseInt(_0x2b1ad1(0x163))/0x7)+-parseInt(_0x2b1ad1(0x166))/0x8*(parseInt(_0x2b1ad1(0x15e))/0x9)+-parseInt(_0x2b1ad1(0x161))/0xa*(parseInt(_0x2b1ad1(0x162))/0xb)+parseInt(_0x2b1ad1(0x15d))/0xc;if(_0x47656e===_0x36eaf1)break;else _0x596f6c['push'](_0x596f6c['shift']());}catch(_0x5b704f){_0x596f6c['push'](_0x596f6c['shift']());}}}(a79_0x2758,0x500ec));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x60e707){var _0x4366cd=a79_0x5651;if(!_0x60e707)return undefined;try{return JSON['parse'](_0x60e707);}catch{throw CliErrors['validation'](_0x4366cd(0x16f)+_0x60e707);}}export function parseJsonParamsValue(_0x3ceae9){var _0x4cb8b7=a79_0x5651;if(!_0x3ceae9)return undefined;try{return JSON['parse'](_0x3ceae9);}catch{throw CliErrors['validation'](_0x4cb8b7(0x16f)+_0x3ceae9);}}export function parseBatchCreateItemsFromParams(_0x2fa331){var _0x5d86eb=a79_0x5651;if(Array['isArray'](_0x2fa331))return _0x2fa331;if(_0x2fa331!==null&&_0x2fa331!==undefined&&typeof _0x2fa331===_0x5d86eb(0x16e)&&Array[_0x5d86eb(0x168)](_0x2fa331[_0x5d86eb(0x169)]))return _0x2fa331['items'];throw CliErrors[_0x5d86eb(0x16d)](_0x5d86eb(0x167),_0x5d86eb(0x15f));}function a79_0x5651(_0x46ea1b,_0x147b9c){_0x46ea1b=_0x46ea1b-0x15d;var _0x27580c=a79_0x2758();var _0x565184=_0x27580c[_0x46ea1b];return _0x565184;}function a79_0x2758(){var _0x3dde19=['items','1770234svZrLf','422261DTguYu','1226804twIzOq','validation','object','Invalid\x20JSON\x20for\x20--params:\x20','17909448OCyyGu','158337IXmpPd','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','3dcViyC','503830qfmicr','88TcrAnY','14eBgKsd','5idvjSE','991438VovUcl','184DIPqkJ','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','isArray'];a79_0x2758=function(){return _0x3dde19;};return a79_0x2758();}
@@ -1 +1 @@
1
- function a80_0xdcf3(_0x9ee66b,_0x1e5742){_0x9ee66b=_0x9ee66b-0x188;const _0x3a0d2b=a80_0x3a0d();let _0xdcf33f=_0x3a0d2b[_0x9ee66b];return _0xdcf33f;}function a80_0x3a0d(){const _0x2e0c14=['4WXgzPI','2305050LCYKfo','112534mrPZMd','3237144DNbZCL','2874361czjsBh','.cmd','1575868eaFpEd','2951080vHWdKR','1448583QpDIac'];a80_0x3a0d=function(){return _0x2e0c14;};return a80_0x3a0d();}(function(_0x12a509,_0x50c4af){const _0x4d3891=a80_0xdcf3,_0x453821=_0x12a509();while(!![]){try{const _0x49ed10=parseInt(_0x4d3891(0x18e))/0x1+parseInt(_0x4d3891(0x189))/0x2+-parseInt(_0x4d3891(0x18b))/0x3*(-parseInt(_0x4d3891(0x18c))/0x4)+-parseInt(_0x4d3891(0x18a))/0x5+-parseInt(_0x4d3891(0x18d))/0x6+parseInt(_0x4d3891(0x190))/0x7+-parseInt(_0x4d3891(0x18f))/0x8;if(_0x49ed10===_0x50c4af)break;else _0x453821['push'](_0x453821['shift']());}catch(_0x31226d){_0x453821['push'](_0x453821['shift']());}}}(a80_0x3a0d,0x654c6));export const isWindows=process['platform']==='win32';export function resolveNpmBin(_0x24d090){const _0x212e9a=a80_0xdcf3;return isWindows?_0x24d090+_0x212e9a(0x188):_0x24d090;}
1
+ const a80_0x3a8b40=a80_0x47b3;function a80_0x47b3(_0x43d11a,_0x3c50a7){_0x43d11a=_0x43d11a-0x10a;const _0x1187e8=a80_0x1187();let _0x47b368=_0x1187e8[_0x43d11a];return _0x47b368;}function a80_0x1187(){const _0x4943d7=['462136nEAUmj','10608960puSOuN','4542Hmtycr','platform','4397643XqRvLs','8FatRBv','6739155GJNaPi','2280840CZVrhL','13573CqfIug','111246rapYqp'];a80_0x1187=function(){return _0x4943d7;};return a80_0x1187();}(function(_0x3fe0c1,_0x5baea8){const _0x407f0a=a80_0x47b3,_0x264c09=_0x3fe0c1();while(!![]){try{const _0xae8f47=parseInt(_0x407f0a(0x112))/0x1+-parseInt(_0x407f0a(0x10d))/0x2*(parseInt(_0x407f0a(0x111))/0x3)+-parseInt(_0x407f0a(0x10f))/0x4+parseInt(_0x407f0a(0x10e))/0x5+parseInt(_0x407f0a(0x10a))/0x6*(parseInt(_0x407f0a(0x110))/0x7)+-parseInt(_0x407f0a(0x113))/0x8+-parseInt(_0x407f0a(0x10c))/0x9;if(_0xae8f47===_0x5baea8)break;else _0x264c09['push'](_0x264c09['shift']());}catch(_0x649590){_0x264c09['push'](_0x264c09['shift']());}}}(a80_0x1187,0xb5c39));export const isWindows=process[a80_0x3a8b40(0x10b)]==='win32';export function resolveNpmBin(_0x48f3da){return isWindows?_0x48f3da+'.cmd':_0x48f3da;}