@lovrabet/lovrabet-cli 2.0.14-beta.2 → 2.0.14-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 (78) 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/mock-loader.js +1 -1
  6. package/lib/commands/app/remote-source.js +1 -1
  7. package/lib/commands/app/shared.js +1 -1
  8. package/lib/commands/artifact/index.js +1 -1
  9. package/lib/commands/auth/index.js +1 -1
  10. package/lib/commands/auth/prompt.js +1 -1
  11. package/lib/commands/bff/detail.js +1 -1
  12. package/lib/commands/bff/exec.js +1 -1
  13. package/lib/commands/bff/index.js +1 -1
  14. package/lib/commands/common/config-policy.js +1 -1
  15. package/lib/commands/common/constraints.js +1 -1
  16. package/lib/commands/common/flags.js +1 -1
  17. package/lib/commands/config/definitions.js +1 -1
  18. package/lib/commands/config/shared.js +1 -1
  19. package/lib/commands/data/index.js +1 -1
  20. package/lib/commands/dataset/detail.js +1 -1
  21. package/lib/commands/dataset/index.js +1 -1
  22. package/lib/commands/dataset/list.js +1 -1
  23. package/lib/commands/dataset/sdk-doc.js +1 -1
  24. package/lib/commands/doctor.js +1 -1
  25. package/lib/commands/init.js +1 -1
  26. package/lib/commands/kb/index.js +1 -1
  27. package/lib/commands/logs/index.js +1 -1
  28. package/lib/commands/personal-bff/index.js +1 -1
  29. package/lib/commands/registry.js +1 -1
  30. package/lib/commands/schema.js +1 -1
  31. package/lib/commands/skill/index.js +1 -1
  32. package/lib/commands/skill/templates.js +1 -1
  33. package/lib/commands/skill/validate.js +1 -1
  34. package/lib/commands/sql/detail.js +1 -1
  35. package/lib/commands/sql/exec.js +1 -1
  36. package/lib/commands/sql/index.js +1 -1
  37. package/lib/commands/update.js +1 -1
  38. package/lib/config/schema.js +1 -1
  39. package/lib/constant/auth-mode.js +1 -1
  40. package/lib/constant/cli.js +1 -1
  41. package/lib/constant/defaults.js +1 -1
  42. package/lib/constant/distribution.js +1 -1
  43. package/lib/constant/domain.js +1 -1
  44. package/lib/constant/env.js +1 -1
  45. package/lib/constant/output.js +1 -1
  46. package/lib/constant/product.js +1 -1
  47. package/lib/constant/risk.js +1 -1
  48. package/lib/constant/url.js +1 -1
  49. package/lib/context.js +1 -1
  50. package/lib/core/api-client.js +1 -1
  51. package/lib/core/db-resolver.js +1 -1
  52. package/lib/core/sdk-client.js +1 -1
  53. package/lib/errors.js +1 -1
  54. package/lib/framework/build-all-flags.js +1 -1
  55. package/lib/framework/dryrun.js +1 -1
  56. package/lib/framework/flags.js +1 -1
  57. package/lib/framework/help.js +1 -1
  58. package/lib/framework/index.js +1 -1
  59. package/lib/framework/output.js +1 -1
  60. package/lib/framework/preparse.js +1 -1
  61. package/lib/framework/response.js +1 -1
  62. package/lib/framework/runner-confirmation.js +1 -1
  63. package/lib/framework/runner-error.js +1 -1
  64. package/lib/framework/runner.js +1 -1
  65. package/lib/framework/schema-export.js +1 -1
  66. package/lib/framework/types.js +1 -1
  67. package/lib/generated/build-info.js +1 -1
  68. package/lib/help.js +1 -1
  69. package/lib/skills/npx-skills-add.js +1 -1
  70. package/lib/skills/runtime-skill-sync.js +1 -1
  71. package/lib/utils/apply-jq-filter.js +1 -1
  72. package/lib/utils/logger.js +1 -1
  73. package/lib/utils/params.js +1 -1
  74. package/lib/utils/platform.js +1 -1
  75. package/lib/utils/update-notice.js +1 -1
  76. package/lib/utils/version.js +1 -1
  77. package/lib/utils/write-cli-side-channel.js +1 -1
  78. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x41ac53,_0x40b9b7){const _0x4dea66=a61_0x5a27,_0x5c64e1=_0x41ac53();while(!![]){try{const _0x53f005=-parseInt(_0x4dea66(0xe5))/0x1+parseInt(_0x4dea66(0xee))/0x2+-parseInt(_0x4dea66(0xe4))/0x3+-parseInt(_0x4dea66(0xed))/0x4+-parseInt(_0x4dea66(0xeb))/0x5*(parseInt(_0x4dea66(0xe9))/0x6)+-parseInt(_0x4dea66(0xe3))/0x7+parseInt(_0x4dea66(0xe8))/0x8;if(_0x53f005===_0x40b9b7)break;else _0x5c64e1['push'](_0x5c64e1['shift']());}catch(_0x1e8cee){_0x5c64e1['push'](_0x5c64e1['shift']());}}}(a61_0x2cef,0x9a5b9));import{CLI_BIN_NAME}from'../constant/cli.js';function a61_0x2cef(){const _0x225831=['20125840WSpgVk','6owrQQP','code=','2729910uOPsPN','--yes','2574672wohgNj','2258470MsxvqH','code','name','⚠\x20\x20High-risk\x20operation:\x20','join','\x20\x20\x20Affected:\x20','name=','\x20\x20\x20Continue?\x20[y/N]\x20','command','length','params=','service','affectedRecords','description','params','\x20\x20\x20','7876680DeTLbb','362250LcMsmG','577076hrIdrD','push','stringify'];a61_0x2cef=function(){return _0x225831;};return a61_0x2cef();}export function buildConfirmationLines(_0x34d9f9,_0x204ea4,_0x56aa6d){const _0x5a2713=a61_0x5a27,_0x2bb9d3=buildConfirmationContext(_0x34d9f9,_0x204ea4,_0x56aa6d),_0x3e4236=[_0x5a2713(0xd6)+_0x2bb9d3['commandLabel']];return _0x2bb9d3['description']&&_0x3e4236['push'](_0x5a2713(0xe2)+_0x2bb9d3['description']),_0x2bb9d3[_0x5a2713(0xdf)]&&_0x3e4236['push'](_0x5a2713(0xd8)+_0x2bb9d3[_0x5a2713(0xdf)]),_0x3e4236['push'](_0x5a2713(0xda)),_0x3e4236;}export function reconstructCommandArgv(_0x326f75,_0x1e7a02){const _0x4b997d=a61_0x5a27,_0x4400ef=[CLI_BIN_NAME,_0x326f75[_0x4b997d(0xde)],_0x326f75[_0x4b997d(0xdb)]];for(const [_0x3fd21f,_0x4035ec]of Object['entries'](_0x1e7a02)){if(_0x4035ec===!![])_0x4400ef[_0x4b997d(0xe6)]('--'+_0x3fd21f);else _0x4035ec!==![]&&_0x4035ec!==undefined&&_0x4035ec!==''&&_0x4400ef[_0x4b997d(0xe6)]('--'+_0x3fd21f+'\x20'+JSON[_0x4b997d(0xe7)](_0x4035ec));}return _0x4400ef[_0x4b997d(0xe6)](_0x4b997d(0xec)),_0x4400ef[_0x4b997d(0xd7)]('\x20');}function a61_0x5a27(_0x80ba7c,_0x57aa62){_0x80ba7c=_0x80ba7c-0xd6;const _0x2cef7f=a61_0x2cef();let _0x5a27f8=_0x2cef7f[_0x80ba7c];return _0x5a27f8;}function buildConfirmationContext(_0x1fd6a6,_0x5c3de1,_0x2548a6){const _0x102c08=a61_0x5a27,_0x2230ac=extractAffectedRecords(_0x2548a6);return{'commandLabel':_0x5c3de1,'description':_0x1fd6a6[_0x102c08(0xe0)],'affectedRecords':_0x2230ac};}function extractAffectedRecords(_0x228321){const _0x48bd02=a61_0x5a27,_0x332183=[];if(_0x228321[_0x48bd02(0xef)])_0x332183[_0x48bd02(0xe6)](_0x48bd02(0xea)+_0x228321[_0x48bd02(0xef)]);if(_0x228321['id'])_0x332183[_0x48bd02(0xe6)]('id='+_0x228321['id']);if(_0x228321['name'])_0x332183[_0x48bd02(0xe6)](_0x48bd02(0xd9)+_0x228321[_0x48bd02(0xf0)]);if(_0x228321['params'])_0x332183[_0x48bd02(0xe6)](_0x48bd02(0xdd)+_0x228321[_0x48bd02(0xe1)]);return _0x332183[_0x48bd02(0xdc)]>0x0?_0x332183[_0x48bd02(0xd7)](',\x20'):undefined;}
1
+ (function(_0x41b638,_0x10f6c3){const _0x23e839=a61_0x3474,_0x274cb4=_0x41b638();while(!![]){try{const _0x2e5893=parseInt(_0x23e839(0x188))/0x1+parseInt(_0x23e839(0x17f))/0x2+-parseInt(_0x23e839(0x18d))/0x3+-parseInt(_0x23e839(0x18b))/0x4*(parseInt(_0x23e839(0x174))/0x5)+-parseInt(_0x23e839(0x189))/0x6*(parseInt(_0x23e839(0x17a))/0x7)+-parseInt(_0x23e839(0x18e))/0x8*(parseInt(_0x23e839(0x181))/0x9)+-parseInt(_0x23e839(0x184))/0xa*(-parseInt(_0x23e839(0x182))/0xb);if(_0x2e5893===_0x10f6c3)break;else _0x274cb4['push'](_0x274cb4['shift']());}catch(_0x28e6df){_0x274cb4['push'](_0x274cb4['shift']());}}}(a61_0x4ef5,0x19c8d));function a61_0x4ef5(){const _0x24d635=['name','entries','7MEoChN','code','length','⚠\x20\x20High-risk\x20operation:\x20','description','148798VqxLGY','code=','369xHLWmN','2739561BhLkCd','params','10ssAeMh','id=','--yes','stringify','68501rfjnCb','103566HNypGz','join','4EQxGlp','name=','285921AlXfRY','1248CbadaE','\x20\x20\x20Affected:\x20','service','836870qsKpoI','command','affectedRecords','push'];a61_0x4ef5=function(){return _0x24d635;};return a61_0x4ef5();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0xc222b4,_0x4c4eaf,_0xd6724e){const _0x55120f=a61_0x3474,_0x54f35d=buildConfirmationContext(_0xc222b4,_0x4c4eaf,_0xd6724e),_0x3c6b6e=[_0x55120f(0x17d)+_0x54f35d['commandLabel']];return _0x54f35d['description']&&_0x3c6b6e[_0x55120f(0x177)]('\x20\x20\x20'+_0x54f35d[_0x55120f(0x17e)]),_0x54f35d[_0x55120f(0x176)]&&_0x3c6b6e[_0x55120f(0x177)](_0x55120f(0x172)+_0x54f35d[_0x55120f(0x176)]),_0x3c6b6e['push']('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x3c6b6e;}export function reconstructCommandArgv(_0x524567,_0x49b1d5){const _0x3f8eb9=a61_0x3474,_0x15947b=[CLI_BIN_NAME,_0x524567[_0x3f8eb9(0x173)],_0x524567[_0x3f8eb9(0x175)]];for(const [_0x295598,_0xee853f]of Object[_0x3f8eb9(0x179)](_0x49b1d5)){if(_0xee853f===!![])_0x15947b['push']('--'+_0x295598);else _0xee853f!==![]&&_0xee853f!==undefined&&_0xee853f!==''&&_0x15947b[_0x3f8eb9(0x177)]('--'+_0x295598+'\x20'+JSON[_0x3f8eb9(0x187)](_0xee853f));}return _0x15947b[_0x3f8eb9(0x177)](_0x3f8eb9(0x186)),_0x15947b[_0x3f8eb9(0x18a)]('\x20');}function a61_0x3474(_0x1c394d,_0x555dc2){_0x1c394d=_0x1c394d-0x172;const _0x4ef5e6=a61_0x4ef5();let _0x34746a=_0x4ef5e6[_0x1c394d];return _0x34746a;}function buildConfirmationContext(_0xe45ed,_0x49853d,_0x481db0){const _0x5dfe0b=a61_0x3474,_0x653a03=extractAffectedRecords(_0x481db0);return{'commandLabel':_0x49853d,'description':_0xe45ed[_0x5dfe0b(0x17e)],'affectedRecords':_0x653a03};}function extractAffectedRecords(_0x2540b1){const _0x3caa4c=a61_0x3474,_0x210bf2=[];if(_0x2540b1[_0x3caa4c(0x17b)])_0x210bf2['push'](_0x3caa4c(0x180)+_0x2540b1[_0x3caa4c(0x17b)]);if(_0x2540b1['id'])_0x210bf2['push'](_0x3caa4c(0x185)+_0x2540b1['id']);if(_0x2540b1[_0x3caa4c(0x178)])_0x210bf2[_0x3caa4c(0x177)](_0x3caa4c(0x18c)+_0x2540b1['name']);if(_0x2540b1[_0x3caa4c(0x183)])_0x210bf2[_0x3caa4c(0x177)]('params='+_0x2540b1[_0x3caa4c(0x183)]);return _0x210bf2[_0x3caa4c(0x17c)]>0x0?_0x210bf2[_0x3caa4c(0x18a)](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0x50499a,_0x363cb9){const _0x1f396c=a62_0x218d,_0x31a93c=_0x50499a();while(!![]){try{const _0x28479e=parseInt(_0x1f396c(0x1f2))/0x1+-parseInt(_0x1f396c(0x1f5))/0x2*(-parseInt(_0x1f396c(0x1f7))/0x3)+parseInt(_0x1f396c(0x1ed))/0x4+parseInt(_0x1f396c(0x1f0))/0x5+parseInt(_0x1f396c(0x1f4))/0x6+parseInt(_0x1f396c(0x1fa))/0x7+-parseInt(_0x1f396c(0x1f6))/0x8*(parseInt(_0x1f396c(0x1f1))/0x9);if(_0x28479e===_0x363cb9)break;else _0x31a93c['push'](_0x31a93c['shift']());}catch(_0x51b3c7){_0x31a93c['push'](_0x31a93c['shift']());}}}(a62_0x332c,0x5cd04));function a62_0x218d(_0x39b6d6,_0x274ef5){_0x39b6d6=_0x39b6d6-0x1ed;const _0x332c8f=a62_0x332c();let _0x218d75=_0x332c8f[_0x39b6d6];return _0x218d75;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x51f8c8){const _0x209f21=a62_0x218d;if(_0x51f8c8 instanceof LovrabetError)return CliErrors[_0x209f21(0x1ef)](userFacingLovrabetMessage(_0x51f8c8));return _0x51f8c8;}function a62_0x332c(){const _0x1e77d2=['1405535RYFqPh','3555UATOuz','39397jZKxiT','message','4333632bCEDzO','1002vguOic','27064SNJWTF','2328YTHNKj','trim','stringify','1627164zsZXbG','209780NtVhMf','description','validation'];a62_0x332c=function(){return _0x1e77d2;};return a62_0x332c();}function userFacingLovrabetMessage(_0x796377){const _0x390c37=a62_0x218d,_0x22ece6=_0x796377[_0x390c37(0x1ee)];if(_0x22ece6!==undefined&&_0x22ece6!==null){if(typeof _0x22ece6==='string'&&_0x22ece6[_0x390c37(0x1f8)]())return _0x22ece6[_0x390c37(0x1f8)]();try{return JSON[_0x390c37(0x1f9)](_0x22ece6);}catch{}}return _0x796377[_0x390c37(0x1f3)];}
1
+ function a62_0x5200(){const _0xec1e02=['2457371tHUnfM','string','description','stringify','794259yvHwso','712434JyoDpL','4LCxFgM','248724SwZGiC','trim','4890wJwljq','1195JGhdAN','validation','2199336AKUSle','666546pQllje'];a62_0x5200=function(){return _0xec1e02;};return a62_0x5200();}(function(_0x121c02,_0x2089e1){const _0x2664fc=a62_0x3eb3,_0x252b69=_0x121c02();while(!![]){try{const _0x1dd87c=parseInt(_0x2664fc(0xfd))/0x1+-parseInt(_0x2664fc(0xfb))/0x2+-parseInt(_0x2664fc(0xf5))/0x3*(parseInt(_0x2664fc(0xfc))/0x4)+-parseInt(_0x2664fc(0xf2))/0x5*(parseInt(_0x2664fc(0xf1))/0x6)+parseInt(_0x2664fc(0xf6))/0x7+parseInt(_0x2664fc(0xf4))/0x8+parseInt(_0x2664fc(0xfa))/0x9;if(_0x1dd87c===_0x2089e1)break;else _0x252b69['push'](_0x252b69['shift']());}catch(_0x522cc5){_0x252b69['push'](_0x252b69['shift']());}}}(a62_0x5200,0x2e541));import{LovrabetError}from'@lovrabet/sdk';function a62_0x3eb3(_0x5ebbd2,_0x1453ac){_0x5ebbd2=_0x5ebbd2-0xf1;const _0x52009f=a62_0x5200();let _0x3eb3b6=_0x52009f[_0x5ebbd2];return _0x3eb3b6;}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x588217){const _0x5be578=a62_0x3eb3;if(_0x588217 instanceof LovrabetError)return CliErrors[_0x5be578(0xf3)](userFacingLovrabetMessage(_0x588217));return _0x588217;}function userFacingLovrabetMessage(_0x2de355){const _0x4ac24b=a62_0x3eb3,_0x2380f8=_0x2de355[_0x4ac24b(0xf8)];if(_0x2380f8!==undefined&&_0x2380f8!==null){if(typeof _0x2380f8===_0x4ac24b(0xf7)&&_0x2380f8[_0x4ac24b(0xfe)]())return _0x2380f8[_0x4ac24b(0xfe)]();try{return JSON[_0x4ac24b(0xf9)](_0x2380f8);}catch{}}return _0x2de355['message'];}
@@ -1 +1 @@
1
- const a63_0x4290ac=a63_0x50a5;(function(_0x313b67,_0x9004d6){const _0x114880=a63_0x50a5,_0x32a307=_0x313b67();while(!![]){try{const _0x9f8844=-parseInt(_0x114880(0xc4))/0x1*(-parseInt(_0x114880(0x97))/0x2)+parseInt(_0x114880(0xbe))/0x3+parseInt(_0x114880(0xa0))/0x4*(parseInt(_0x114880(0xc7))/0x5)+parseInt(_0x114880(0xd2))/0x6*(-parseInt(_0x114880(0xa7))/0x7)+parseInt(_0x114880(0xb6))/0x8*(-parseInt(_0x114880(0xaf))/0x9)+-parseInt(_0x114880(0xa3))/0xa*(-parseInt(_0x114880(0x9f))/0xb)+-parseInt(_0x114880(0xbb))/0xc*(parseInt(_0x114880(0x9a))/0xd);if(_0x9f8844===_0x9004d6)break;else _0x32a307['push'](_0x32a307['shift']());}catch(_0x4136dc){_0x32a307['push'](_0x32a307['shift']());}}}(a63_0x584c,0x7e39e));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a63_0x584c(){const _0x5db38f=['isNonInteractive','49386INUtYk','APPCODE','doctor','appCodeSource','../core/api-client.js','schema','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','8dIFlIj','execute','pageSize','130QTwJRm','\x20\x20To\x20proceed:\x20','riskLevel','accessKey','trim','3550162cavssM','2341388DUmxNx','cancelled','defaultApp','10tmfZue','Run\x20`','name','mergedCli','462oviXwr','find','env','apiDomain','app','has','\x20or\x20pass\x20','service','846ODCIFA','appCode','validation','items','format','defaultPageSize','production','77576POftjD','string','../commands/app/remote-source.js','configMissing','ACCESS_KEY','477228WCCzOa','pretty','newConfigFileName','1369065uTBQfX','rawFlags','appName','local-alias','verbose','nonInteractive','251258ovBYDU','_notice','.appcode\x20to\x20','5VpnfMI','catch','../core/sdk-client.js','requiresAppCode','authRequired','appcode','ClientAk','command','object','Set\x20accessKey\x20in\x20'];a63_0x584c=function(){return _0x5db38f;};return a63_0x584c();}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';function a63_0x50a5(_0x5780d8,_0x47121c){_0x5780d8=_0x5780d8-0x91;const _0x584ce2=a63_0x584c();let _0x50a5b1=_0x584ce2[_0x5780d8];return _0x50a5b1;}export function resolveAuthMode(_0x441c15){const _0x22e143=a63_0x50a5;return void _0x441c15,AUTH_MODE[_0x22e143(0xcd)];}export function createPipelineEnv(_0x43e404,_0x13cb6f){const _0x4137a8=a63_0x50a5,_0x1c1bdf=typeof _0x13cb6f[_0x4137a8(0xab)]==='string'&&_0x13cb6f[_0x4137a8(0xab)][_0x4137a8(0x9e)]();return{'rawFlags':_0x13cb6f,'appCode':_0x43e404[_0x4137a8(0xb0)]||productEnv(_0x4137a8(0x91))||(_0x1c1bdf?undefined:readAppCodeFromConfig()),'appCodeSource':_0x43e404['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x13cb6f),'defaultFormat':_0x43e404[_0x4137a8(0xb3)],'defaultPageSize':_0x43e404[_0x4137a8(0x99)],'defaultVerbose':_0x43e404[_0x4137a8(0xc2)],'riskLevel':_0x43e404[_0x4137a8(0x9c)],'accessKey':_0x43e404[_0x4137a8(0x9d)],'env':_0x43e404['env'],'mergedCli':{'defaultApp':_0x43e404[_0x4137a8(0xa2)],'currentApp':_0x43e404['currentApp'],'appCode':_0x43e404[_0x4137a8(0xb0)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x540287=>PIPELINE_FLAG_NAMES[a63_0x4290ac(0xac)](_0x540287[a63_0x4290ac(0xa5)]))['map'](({name:_0x2f4ae9,type:_0xba1809,description:_0x34fab5})=>({'name':_0x2f4ae9,'type':_0xba1809,'description':_0x34fab5})),'formatOutput':formatOutput,'getCommandLabel'(_0x3a57b2){const _0x1d069c=a63_0x4290ac;return CLI_BIN_NAME+'\x20'+_0x3a57b2[_0x1d069c(0xae)]+'\x20'+_0x3a57b2[_0x1d069c(0xce)];},'riskPolicy':{'onViolation'(_0x5c168f){console['error'](_0x5c168f);},'createError'(_0x325344){const _0x21b092=a63_0x4290ac;return CliErrors[_0x21b092(0xa1)](_0x325344);}},async 'prepare'(_0x172f4e,_0x41f2a5){const _0x97959d=a63_0x4290ac,_0xa76577=resolveAuthMode(_0x41f2a5);if(_0x172f4e['requiresAuth']!==![]){if(!_0x41f2a5['accessKey'])throw CliErrors[_0x97959d(0xcb)](_0x97959d(0xd0)+PRODUCT_CONFIG['newConfigFileName']+_0x97959d(0xad)+productEnvName(_0x97959d(0xba))+'.');const {setActiveAK:_0x41f33a}=await import(_0x97959d(0x94));_0x41f33a(_0x41f2a5[_0x97959d(0x9d)]);}let _0x585567='';if(_0x172f4e[_0x97959d(0xca)]!==![]){_0x585567=_0x41f2a5['appCode']??'',_0x585567=await resolveExplicitAppName(_0x172f4e,_0x41f2a5,_0x585567);if(!_0x585567)throw CliErrors[_0x97959d(0xb9)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x97959d(0xbd)]+'.');}if(_0x585567){const {initSdkClient:_0x124d00}=await import(_0x97959d(0xc9));_0x124d00({'appCode':_0x585567,'env':_0x41f2a5[_0x97959d(0xa9)]??_0x97959d(0xb5),'accessKey':_0x41f2a5[_0x97959d(0x9d)],'authMode':_0xa76577});}return{'defaults':{'booleans':{'verbose':_0x41f2a5['defaultVerbose']},'numbers':{'pagesize':_0x41f2a5[_0x97959d(0xb4)]}},'extras':{'appCode':_0x585567,'cookie':'','apiDomain':_0x41f2a5[_0x97959d(0xaa)],'apiDir':'','accessKey':_0x41f2a5[_0x97959d(0x9d)],'envName':_0x41f2a5[_0x97959d(0xa9)],'mergedCli':_0x41f2a5[_0x97959d(0xa6)]}};},async 'confirmHighRisk'({def:_0x4c117f,env:_0x3daa8a,flags:_0x21aa10,commandLabel:_0x2be7a2}){const _0x4cc4a5=a63_0x4290ac;if(_0x3daa8a[_0x4cc4a5(0xd1)]){const _0x52e979=reconstructCommandArgv(_0x4c117f,_0x21aa10);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x2be7a2+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x4cc4a5(0x9b)+_0x52e979));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4c117f,_0x2be7a2,_0x21aa10),'createCancelledError':_0x6a63a4=>CliErrors['cancelled'](_0x6a63a4)});},'mapDryRunError'(_0x397772){return mapUserFacingExecuteError(_0x397772);},'mapExecuteError'(_0x2d1f20){return mapUserFacingExecuteError(_0x2d1f20);},async 'finalize'(){const {clearActiveAK:_0x29dc99}=await import('../core/api-client.js');_0x29dc99();}};async function resolveExplicitAppName(_0x26b651,_0xb284c0,_0x4f8aae){const _0x167952=a63_0x4290ac;if(_0x26b651['requiresAppCode']===![])return _0x4f8aae;const _0x4d666c=typeof _0xb284c0[_0x167952(0xbf)][_0x167952(0xab)]===_0x167952(0xb7)?_0xb284c0['rawFlags']['app'][_0x167952(0x9e)]():'';if(!_0x4d666c)return _0x4f8aae;const _0x1e1d61=typeof _0xb284c0[_0x167952(0xbf)][_0x167952(0xcc)]===_0x167952(0xb7)&&_0xb284c0[_0x167952(0xbf)][_0x167952(0xcc)][_0x167952(0x9e)]()||productEnv(_0x167952(0x91));if(_0x1e1d61||_0xb284c0[_0x167952(0x93)]===_0x167952(0xc1))return _0x4f8aae;const {getRemoteAppList:_0x47586b}=await import(_0x167952(0xb8)),_0x58f78e=await _0x47586b({'env':_0xb284c0[_0x167952(0xa9)]??_0x167952(0xb5),'accessKey':_0xb284c0[_0x167952(0x9d)]}),_0x3d8ee8=_0x58f78e[_0x167952(0xb2)][_0x167952(0xa8)](_0x4e0c5f=>_0x4e0c5f[_0x167952(0xc0)]===_0x4d666c),_0x21bbf8=_0x3d8ee8?.[_0x167952(0xb0)]?.['trim']();if(_0x21bbf8)return _0x21bbf8;throw CliErrors[_0x167952(0xb1)]('Unknown\x20app:\x20'+_0x4d666c,_0x167952(0xa4)+CLI_BIN_NAME+_0x167952(0x96)+_0x4d666c+_0x167952(0xc6)+PRODUCT_CONFIG[_0x167952(0xbd)]+'.');}export async function runCommand(_0x541b94,_0x1545cb){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x541b94)?withUpdateNotice(_0x541b94):_0x541b94,_0x1545cb,runnerAdapter);}function shouldAttachUpdateNotice(_0x18d866){const _0x3522ee=a63_0x4290ac;return!['update',_0x3522ee(0x95),_0x3522ee(0x92)]['includes'](_0x18d866[_0x3522ee(0xae)]);}function withUpdateNotice(_0x27ccf5){return{..._0x27ccf5,async 'execute'(_0xd85768){const _0x253d5b=a63_0x50a5,_0x578d0f=shouldResolveUpdateNotice(_0xd85768)?resolveLatestUpdateNotice()[_0x253d5b(0xc8)](()=>null):Promise['resolve'](null),_0x3c8c5c=await _0x27ccf5[_0x253d5b(0x98)](_0xd85768);return attachUpdateNotice(_0x3c8c5c,await _0x578d0f);}};}function shouldResolveUpdateNotice(_0x347549){const _0x4200f3=a63_0x4290ac;return _0x347549[_0x4200f3(0xb3)]===_0x4200f3(0xbc)&&!_0x347549[_0x4200f3(0xc3)];}function attachUpdateNotice(_0x2226c4,_0x44f369){const _0x1a65e0=a63_0x4290ac;if(!_0x44f369||!_0x2226c4||typeof _0x2226c4!=='object')return _0x2226c4;const _0x9685e8=_0x2226c4,_0x12e122=typeof _0x9685e8[_0x1a65e0(0xc5)]===_0x1a65e0(0xcf)&&_0x9685e8['_notice']!==null?_0x9685e8[_0x1a65e0(0xc5)]:{};return{..._0x9685e8,'_notice':{..._0x12e122,'update':_0x44f369}};}
1
+ const a63_0x1bc03c=a63_0x1415;(function(_0x3d87a9,_0x41d237){const _0x3b037e=a63_0x1415,_0x344b51=_0x3d87a9();while(!![]){try{const _0x86919=parseInt(_0x3b037e(0x205))/0x1+parseInt(_0x3b037e(0x1e2))/0x2*(-parseInt(_0x3b037e(0x1f9))/0x3)+-parseInt(_0x3b037e(0x1df))/0x4+-parseInt(_0x3b037e(0x1e0))/0x5*(-parseInt(_0x3b037e(0x1ed))/0x6)+-parseInt(_0x3b037e(0x207))/0x7*(parseInt(_0x3b037e(0x1d5))/0x8)+-parseInt(_0x3b037e(0x1f7))/0x9*(-parseInt(_0x3b037e(0x1fd))/0xa)+-parseInt(_0x3b037e(0x1d7))/0xb*(-parseInt(_0x3b037e(0x20a))/0xc);if(_0x86919===_0x41d237)break;else _0x344b51['push'](_0x344b51['shift']());}catch(_0x31b565){_0x344b51['push'](_0x344b51['shift']());}}}(a63_0x550b,0x7279a));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';function a63_0x550b(){const _0x2e0a50=['pageSize','4642lFNRut','cancelled','rawFlags','execute','currentApp','requiresAuth','nonInteractive','format','474980lckMqO','5FIQkpu','../core/api-client.js','18qHKmSD','map','verbose','service','includes','Set\x20accessKey\x20in\x20','ACCESS_KEY','APPCODE','app','appCode','Run\x20`','90318nDAUEh','appCodeSource','schema','local-alias','\x20\x20To\x20proceed:\x20','appcode','defaultPageSize','filter','defaultApp','newConfigFileName','18hjWFdb','isNonInteractive','225702hGYZnP','mergedCli','ClientAk','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','2489170nZnGqO','authRequired','items','trim','validation','accessKey','riskLevel','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','643132AtLlLD','pretty','56HUzpoG','find','../core/sdk-client.js','11364okOrJO','.appcode\x20to\x20','object','string','appName','error','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','requiresAppCode','High-risk\x20operation\x20`','catch','configMissing','env','production','_notice','doctor','290912WQnPEX'];a63_0x550b=function(){return _0x2e0a50;};return a63_0x550b();}import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a63_0x1415(_0x4db0c5,_0x509f85){_0x4db0c5=_0x4db0c5-0x1d3;const _0x550b48=a63_0x550b();let _0x1415b2=_0x550b48[_0x4db0c5];return _0x1415b2;}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';export function resolveAuthMode(_0x467015){const _0x3c6a5a=a63_0x1415;return void _0x467015,AUTH_MODE[_0x3c6a5a(0x1fb)];}export function createPipelineEnv(_0x5a094c,_0x426f67){const _0x4da27a=a63_0x1415,_0x4f7dcf=typeof _0x426f67[_0x4da27a(0x1ea)]===_0x4da27a(0x20d)&&_0x426f67[_0x4da27a(0x1ea)]['trim']();return{'rawFlags':_0x426f67,'appCode':_0x5a094c[_0x4da27a(0x1eb)]||productEnv('APPCODE')||(_0x4f7dcf?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5a094c[_0x4da27a(0x1ee)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x426f67),'defaultFormat':_0x5a094c[_0x4da27a(0x1de)],'defaultPageSize':_0x5a094c[_0x4da27a(0x1d6)],'defaultVerbose':_0x5a094c[_0x4da27a(0x1e4)],'riskLevel':_0x5a094c[_0x4da27a(0x203)],'accessKey':_0x5a094c[_0x4da27a(0x202)],'env':_0x5a094c[_0x4da27a(0x215)],'mergedCli':{'defaultApp':_0x5a094c[_0x4da27a(0x1f5)],'currentApp':_0x5a094c[_0x4da27a(0x1db)],'appCode':_0x5a094c[_0x4da27a(0x1eb)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a63_0x1bc03c(0x1f4)](_0x591f16=>PIPELINE_FLAG_NAMES['has'](_0x591f16['name']))[a63_0x1bc03c(0x1e3)](({name:_0x3a20a9,type:_0x36ef0f,description:_0x32c207})=>({'name':_0x3a20a9,'type':_0x36ef0f,'description':_0x32c207})),'formatOutput':formatOutput,'getCommandLabel'(_0x2040f6){const _0x12f409=a63_0x1bc03c;return CLI_BIN_NAME+'\x20'+_0x2040f6[_0x12f409(0x1e5)]+'\x20'+_0x2040f6['command'];},'riskPolicy':{'onViolation'(_0x37b000){const _0x3832ed=a63_0x1bc03c;console[_0x3832ed(0x20f)](_0x37b000);},'createError'(_0x3b4522){const _0x2d9644=a63_0x1bc03c;return CliErrors[_0x2d9644(0x1d8)](_0x3b4522);}},async 'prepare'(_0x2a6ffa,_0x2c59f4){const _0x689a8d=a63_0x1bc03c,_0x208c47=resolveAuthMode(_0x2c59f4);if(_0x2a6ffa[_0x689a8d(0x1dc)]!==![]){if(!_0x2c59f4[_0x689a8d(0x202)])throw CliErrors[_0x689a8d(0x1fe)](_0x689a8d(0x1e7)+PRODUCT_CONFIG[_0x689a8d(0x1f6)]+'\x20or\x20pass\x20'+productEnvName(_0x689a8d(0x1e8))+'.');const {setActiveAK:_0x1a31a6}=await import('../core/api-client.js');_0x1a31a6(_0x2c59f4['accessKey']);}let _0x58c3ef='';if(_0x2a6ffa[_0x689a8d(0x211)]!==![]){_0x58c3ef=_0x2c59f4[_0x689a8d(0x1eb)]??'',_0x58c3ef=await resolveExplicitAppName(_0x2a6ffa,_0x2c59f4,_0x58c3ef);if(!_0x58c3ef)throw CliErrors[_0x689a8d(0x214)](_0x689a8d(0x1fc)+PRODUCT_CONFIG[_0x689a8d(0x1f6)]+'.');}if(_0x58c3ef){const {initSdkClient:_0x54aba1}=await import(_0x689a8d(0x209));_0x54aba1({'appCode':_0x58c3ef,'env':_0x2c59f4['env']??_0x689a8d(0x216),'accessKey':_0x2c59f4[_0x689a8d(0x202)],'authMode':_0x208c47});}return{'defaults':{'booleans':{'verbose':_0x2c59f4['defaultVerbose']},'numbers':{'pagesize':_0x2c59f4[_0x689a8d(0x1f3)]}},'extras':{'appCode':_0x58c3ef,'cookie':'','apiDomain':_0x2c59f4['apiDomain'],'apiDir':'','accessKey':_0x2c59f4[_0x689a8d(0x202)],'envName':_0x2c59f4[_0x689a8d(0x215)],'mergedCli':_0x2c59f4[_0x689a8d(0x1fa)]}};},async 'confirmHighRisk'({def:_0x4c7c1b,env:_0xee1d2e,flags:_0x3b349a,commandLabel:_0x31b636}){const _0x22d3df=a63_0x1bc03c;if(_0xee1d2e[_0x22d3df(0x1f8)]){const _0x5559e6=reconstructCommandArgv(_0x4c7c1b,_0x3b349a);throw CliErrors[_0x22d3df(0x201)](_0x22d3df(0x212)+_0x31b636+_0x22d3df(0x204)+(_0x22d3df(0x1f1)+_0x5559e6));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4c7c1b,_0x31b636,_0x3b349a),'createCancelledError':_0x89a3bf=>CliErrors[_0x22d3df(0x1d8)](_0x89a3bf)});},'mapDryRunError'(_0x4680de){return mapUserFacingExecuteError(_0x4680de);},'mapExecuteError'(_0x1cb04a){return mapUserFacingExecuteError(_0x1cb04a);},async 'finalize'(){const _0xe0f04e=a63_0x1bc03c,{clearActiveAK:_0x15eca2}=await import(_0xe0f04e(0x1e1));_0x15eca2();}};async function resolveExplicitAppName(_0x4b6caa,_0x145ac4,_0x391ebd){const _0x29ac51=a63_0x1bc03c;if(_0x4b6caa['requiresAppCode']===![])return _0x391ebd;const _0x288a0b=typeof _0x145ac4[_0x29ac51(0x1d9)]['app']===_0x29ac51(0x20d)?_0x145ac4[_0x29ac51(0x1d9)][_0x29ac51(0x1ea)][_0x29ac51(0x200)]():'';if(!_0x288a0b)return _0x391ebd;const _0x310d00=typeof _0x145ac4[_0x29ac51(0x1d9)][_0x29ac51(0x1f2)]==='string'&&_0x145ac4[_0x29ac51(0x1d9)][_0x29ac51(0x1f2)]['trim']()||productEnv(_0x29ac51(0x1e9));if(_0x310d00||_0x145ac4['appCodeSource']===_0x29ac51(0x1f0))return _0x391ebd;const {getRemoteAppList:_0x1f43f0}=await import('../commands/app/remote-source.js'),_0x175e4e=await _0x1f43f0({'env':_0x145ac4[_0x29ac51(0x215)]??_0x29ac51(0x216),'accessKey':_0x145ac4[_0x29ac51(0x202)]}),_0x4337dd=_0x175e4e[_0x29ac51(0x1ff)][_0x29ac51(0x208)](_0x1c72ca=>_0x1c72ca[_0x29ac51(0x20e)]===_0x288a0b),_0x2cdd39=_0x4337dd?.['appCode']?.[_0x29ac51(0x200)]();if(_0x2cdd39)return _0x2cdd39;throw CliErrors[_0x29ac51(0x201)]('Unknown\x20app:\x20'+_0x288a0b,_0x29ac51(0x1ec)+CLI_BIN_NAME+_0x29ac51(0x210)+_0x288a0b+_0x29ac51(0x20b)+PRODUCT_CONFIG[_0x29ac51(0x1f6)]+'.');}export async function runCommand(_0xdef2e7,_0x3c8252){await runCommandWithAdapter(shouldAttachUpdateNotice(_0xdef2e7)?withUpdateNotice(_0xdef2e7):_0xdef2e7,_0x3c8252,runnerAdapter);}function shouldAttachUpdateNotice(_0x45a850){const _0x14b6cf=a63_0x1bc03c;return!['update',_0x14b6cf(0x1ef),_0x14b6cf(0x1d4)][_0x14b6cf(0x1e6)](_0x45a850[_0x14b6cf(0x1e5)]);}function withUpdateNotice(_0xa313e6){return{..._0xa313e6,async 'execute'(_0x53167f){const _0x18fdb0=a63_0x1415,_0x552db3=shouldResolveUpdateNotice(_0x53167f)?resolveLatestUpdateNotice()[_0x18fdb0(0x213)](()=>null):Promise['resolve'](null),_0x137102=await _0xa313e6[_0x18fdb0(0x1da)](_0x53167f);return attachUpdateNotice(_0x137102,await _0x552db3);}};}function shouldResolveUpdateNotice(_0x21af34){const _0x1897cd=a63_0x1bc03c;return _0x21af34[_0x1897cd(0x1de)]===_0x1897cd(0x206)&&!_0x21af34[_0x1897cd(0x1dd)];}function attachUpdateNotice(_0x35e1fa,_0x322ee9){const _0x222c65=a63_0x1bc03c;if(!_0x322ee9||!_0x35e1fa||typeof _0x35e1fa!=='object')return _0x35e1fa;const _0x3bb5f8=_0x35e1fa,_0x427b87=typeof _0x3bb5f8['_notice']===_0x222c65(0x20c)&&_0x3bb5f8[_0x222c65(0x1d3)]!==null?_0x3bb5f8[_0x222c65(0x1d3)]:{};return{..._0x3bb5f8,'_notice':{..._0x427b87,'update':_0x322ee9}};}
@@ -1 +1 @@
1
- (function(_0x35809c,_0xdf99aa){const _0xa7db1a=a64_0x419e,_0x1231bc=_0x35809c();while(!![]){try{const _0x1bc843=parseInt(_0xa7db1a(0x152))/0x1+parseInt(_0xa7db1a(0x14f))/0x2+parseInt(_0xa7db1a(0x150))/0x3*(parseInt(_0xa7db1a(0x14c))/0x4)+parseInt(_0xa7db1a(0x149))/0x5+-parseInt(_0xa7db1a(0x14a))/0x6*(-parseInt(_0xa7db1a(0x151))/0x7)+parseInt(_0xa7db1a(0x14d))/0x8*(-parseInt(_0xa7db1a(0x14b))/0x9)+-parseInt(_0xa7db1a(0x14e))/0xa;if(_0x1bc843===_0xdf99aa)break;else _0x1231bc['push'](_0x1231bc['shift']());}catch(_0x3b22d0){_0x1231bc['push'](_0x1231bc['shift']());}}}(a64_0x3971,0x975ac));function a64_0x419e(_0x232f8f,_0x4db371){_0x232f8f=_0x232f8f-0x149;const _0x3971e9=a64_0x3971();let _0x419e29=_0x3971e9[_0x232f8f];return _0x419e29;}import{buildSchemaPayload as a64_0x2fc09c}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x4f511e,findDefinition:_0x461d4f}=await import('../commands/registry.js');return a64_0x2fc09c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4f511e,'buildAllFlags':buildAllFlags,'findDefinition':_0x461d4f});}function a64_0x3971(){const _0x292352=['966AADYWm','721568LCWzgI','2824590lLDBjF','49260kEQNbA','2070hLxyUc','4IETyOu','27760OGGNZi','16323430rqikUN','610696JbyjUa','976731mJRJkF'];a64_0x3971=function(){return _0x292352;};return a64_0x3971();}
1
+ (function(_0x4b78e7,_0x2b6747){const _0x2e30a1=a64_0x235c,_0x31522e=_0x4b78e7();while(!![]){try{const _0x612e76=-parseInt(_0x2e30a1(0x98))/0x1*(parseInt(_0x2e30a1(0x99))/0x2)+-parseInt(_0x2e30a1(0x96))/0x3*(parseInt(_0x2e30a1(0x8d))/0x4)+-parseInt(_0x2e30a1(0x93))/0x5*(-parseInt(_0x2e30a1(0x92))/0x6)+-parseInt(_0x2e30a1(0x8e))/0x7*(-parseInt(_0x2e30a1(0x90))/0x8)+-parseInt(_0x2e30a1(0x97))/0x9*(parseInt(_0x2e30a1(0x8f))/0xa)+-parseInt(_0x2e30a1(0x95))/0xb+-parseInt(_0x2e30a1(0x94))/0xc*(-parseInt(_0x2e30a1(0x91))/0xd);if(_0x612e76===_0x2b6747)break;else _0x31522e['push'](_0x31522e['shift']());}catch(_0x3509c8){_0x31522e['push'](_0x31522e['shift']());}}}(a64_0x21ad,0x1f2cb));import{buildSchemaPayload as a64_0x12eac4}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a64_0x235c(_0x1a1345,_0x18b623){_0x1a1345=_0x1a1345-0x8d;const _0x21ad50=a64_0x21ad();let _0x235c39=_0x21ad50[_0x1a1345];return _0x235c39;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a64_0x21ad(){const _0x21d1b4=['618sDfaRU','9OMWXhO','55JNHDTB','8674oloIJZ','52gQXvdq','2723MNUiYC','63020Nfosia','4024aFFpgu','13gIqkVd','8418zziLuU','300XnrJLF','1981812AmPNLX','767712EsicBd'];a64_0x21ad=function(){return _0x21d1b4;};return a64_0x21ad();}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0xe87e19,findDefinition:_0x21b69f}=await import('../commands/registry.js');return a64_0x12eac4({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xe87e19,'buildAllFlags':buildAllFlags,'findDefinition':_0x21b69f});}
@@ -1 +1 @@
1
- function a65_0xda63(_0x1de566,_0x1742f9){_0x1de566=_0x1de566-0x1c8;var _0x190865=a65_0x1908();var _0xda63c2=_0x190865[_0x1de566];return _0xda63c2;}(function(_0x11153a,_0x355e99){var _0x5d8639=a65_0xda63,_0xc3be2e=_0x11153a();while(!![]){try{var _0x385f62=-parseInt(_0x5d8639(0x1c8))/0x1*(-parseInt(_0x5d8639(0x1cb))/0x2)+-parseInt(_0x5d8639(0x1d1))/0x3+-parseInt(_0x5d8639(0x1cc))/0x4*(-parseInt(_0x5d8639(0x1d0))/0x5)+parseInt(_0x5d8639(0x1d2))/0x6*(parseInt(_0x5d8639(0x1c9))/0x7)+parseInt(_0x5d8639(0x1cd))/0x8+-parseInt(_0x5d8639(0x1cf))/0x9+parseInt(_0x5d8639(0x1ca))/0xa*(-parseInt(_0x5d8639(0x1ce))/0xb);if(_0x385f62===_0x355e99)break;else _0xc3be2e['push'](_0xc3be2e['shift']());}catch(_0x33c151){_0xc3be2e['push'](_0xc3be2e['shift']());}}}(a65_0x1908,0x30441));function a65_0x1908(){var _0x6ea653=['11LncYGM','707184ETjvEE','718330WudCEc','339312CfCHik','6TaeLki','16QpEhES','1472583WuxfdQ','3531340thWMbm','35788rJTaPT','4mDSLtV','817376gZJpRD'];a65_0x1908=function(){return _0x6ea653;};return a65_0x1908();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x1d9149,_0x28f5b3){var _0x2c9153=a65_0x2963,_0x8dd2e3=_0x1d9149();while(!![]){try{var _0x39cd7b=parseInt(_0x2c9153(0x10d))/0x1*(parseInt(_0x2c9153(0x10e))/0x2)+parseInt(_0x2c9153(0x10c))/0x3*(-parseInt(_0x2c9153(0x112))/0x4)+-parseInt(_0x2c9153(0x108))/0x5*(-parseInt(_0x2c9153(0x110))/0x6)+-parseInt(_0x2c9153(0x10b))/0x7*(-parseInt(_0x2c9153(0x111))/0x8)+parseInt(_0x2c9153(0x10a))/0x9+parseInt(_0x2c9153(0x10f))/0xa+-parseInt(_0x2c9153(0x109))/0xb;if(_0x39cd7b===_0x28f5b3)break;else _0x8dd2e3['push'](_0x8dd2e3['shift']());}catch(_0x280d6f){_0x8dd2e3['push'](_0x8dd2e3['shift']());}}}(a65_0x3257,0xd0f3a));function a65_0x2963(_0x1bcdaa,_0x1d4dfb){_0x1bcdaa=_0x1bcdaa-0x108;var _0x3257b7=a65_0x3257();var _0x29634a=_0x3257b7[_0x1bcdaa];return _0x29634a;}function a65_0x3257(){var _0xdacf6e=['152kXWNgR','1630LfLWtT','25490410voREpl','944604dVSyht','5135879YKleNM','9777BPeGOg','1HNOqaR','862856WNAkSh','13495090wzZlAR','12468adPdiJ','8rdQSbY'];a65_0x3257=function(){return _0xdacf6e;};return a65_0x3257();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a66_0x422092=a66_0x1b21;function a66_0x1b21(_0x23a97c,_0x51a5c5){_0x23a97c=_0x23a97c-0xb1;const _0x32f79f=a66_0x32f7();let _0x1b21db=_0x32f79f[_0x23a97c];return _0x1b21db;}(function(_0x52dc1f,_0xb7cde0){const _0x5c4338=a66_0x1b21,_0x1155ef=_0x52dc1f();while(!![]){try{const _0x2fee0e=parseInt(_0x5c4338(0xb4))/0x1*(-parseInt(_0x5c4338(0xb3))/0x2)+-parseInt(_0x5c4338(0xb5))/0x3+parseInt(_0x5c4338(0xb6))/0x4+-parseInt(_0x5c4338(0xb1))/0x5*(-parseInt(_0x5c4338(0xb2))/0x6)+parseInt(_0x5c4338(0xb7))/0x7*(parseInt(_0x5c4338(0xbc))/0x8)+parseInt(_0x5c4338(0xba))/0x9*(-parseInt(_0x5c4338(0xbe))/0xa)+parseInt(_0x5c4338(0xbd))/0xb;if(_0x2fee0e===_0xb7cde0)break;else _0x1155ef['push'](_0x1155ef['shift']());}catch(_0x250f60){_0x1155ef['push'](_0x1155ef['shift']());}}}(a66_0x32f7,0x23f0d));function a66_0x32f7(){const _0x1d76f6=['00646cc','527120mFWwyQ','489049rksSlp','10ryAXth','v2.0.14-beta.1','5KChuip','754602gvfmZH','706EUhidB','19CkEnkf','526347qjFJKR','295704qbDZAa','21tqIWMJ','2026-06-16T07:47:28.896Z','2.0.14-beta.2','1012077LwkaZU'];a66_0x32f7=function(){return _0x1d76f6;};return a66_0x32f7();}export const VERSION=a66_0x422092(0xb9);export const GIT_TAG=a66_0x422092(0xbf);export const GIT_COMMIT=a66_0x422092(0xbb);export const BUILD_TIME=a66_0x422092(0xb8);
1
+ const a66_0x577991=a66_0x2539;(function(_0x2f7515,_0x37087c){const _0x1d89fd=a66_0x2539,_0x428a8c=_0x2f7515();while(!![]){try{const _0x66fc1=-parseInt(_0x1d89fd(0x9b))/0x1+-parseInt(_0x1d89fd(0x94))/0x2*(parseInt(_0x1d89fd(0x95))/0x3)+parseInt(_0x1d89fd(0x9c))/0x4+-parseInt(_0x1d89fd(0x9a))/0x5*(-parseInt(_0x1d89fd(0x97))/0x6)+-parseInt(_0x1d89fd(0x9d))/0x7+parseInt(_0x1d89fd(0x98))/0x8*(-parseInt(_0x1d89fd(0x9f))/0x9)+-parseInt(_0x1d89fd(0x92))/0xa*(-parseInt(_0x1d89fd(0xa0))/0xb);if(_0x66fc1===_0x37087c)break;else _0x428a8c['push'](_0x428a8c['shift']());}catch(_0x5997e7){_0x428a8c['push'](_0x428a8c['shift']());}}}(a66_0x94bf,0x96ffa));export const VERSION=a66_0x577991(0x96);export const GIT_TAG=a66_0x577991(0x99);export const GIT_COMMIT=a66_0x577991(0x9e);function a66_0x2539(_0x277418,_0x36cf6e){_0x277418=_0x277418-0x92;const _0x94bf9e=a66_0x94bf();let _0x2539bc=_0x94bf9e[_0x277418];return _0x2539bc;}export const BUILD_TIME=a66_0x577991(0x93);function a66_0x94bf(){const _0x2182be=['2026-06-16T10:06:36.922Z','7714ziwrFi','789zHdLle','2.0.14-beta.3','1176258nOGSij','95256ICIstZ','v2.0.14-beta.2','10hmowDB','226712dejFXs','3917456oDiujj','7769468cbuRZN','fa016e7','270pvFHaN','11mWItto','19552770nwqZfC'];a66_0x94bf=function(){return _0x2182be;};return a66_0x94bf();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4851d3,_0x1b0773){const _0x55919e=a67_0x11e9,_0x5e965d=_0x4851d3();while(!![]){try{const _0x3f3805=parseInt(_0x55919e(0xd4))/0x1*(parseInt(_0x55919e(0xda))/0x2)+-parseInt(_0x55919e(0xd3))/0x3*(-parseInt(_0x55919e(0xe1))/0x4)+-parseInt(_0x55919e(0xdf))/0x5*(-parseInt(_0x55919e(0xd6))/0x6)+parseInt(_0x55919e(0xe0))/0x7+parseInt(_0x55919e(0xdd))/0x8*(parseInt(_0x55919e(0xd2))/0x9)+-parseInt(_0x55919e(0xde))/0xa*(parseInt(_0x55919e(0xd5))/0xb)+-parseInt(_0x55919e(0xd7))/0xc;if(_0x3f3805===_0x1b0773)break;else _0x5e965d['push'](_0x5e965d['shift']());}catch(_0x3fda7c){_0x5e965d['push'](_0x5e965d['shift']());}}}(a67_0x3517,0x6053b));import{jsx as a67_0x477a13,jsxs as a67_0x126dfb}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 a67_0x11e9(_0x223ff5,_0x42b4db){_0x223ff5=_0x223ff5-0xd2;const _0x35177a=a67_0x3517();let _0x11e9b4=_0x35177a[_0x223ff5];return _0x11e9b4;}function a67_0x3517(){const _0x4519bf=['11030940PZNCsm','\x20\x20Use\x20','green','2vKwdUc','column','\x20--help','51288FLnUuw','18330xSFjlU','13310RhhFEm','447608rHppgZ','12FgBYoK','801gqQtdT','385563tAAHcu','86603KjhWgn','99FuCNIk','504DEcHxL'];a67_0x3517=function(){return _0x4519bf;};return a67_0x3517();}export function Help(){const _0x39ec9f=a67_0x11e9,{exit:_0x56d53c}=useApp();return useEffect(()=>{_0x56d53c();},[_0x56d53c]),a67_0x126dfb(Box,{'flexDirection':_0x39ec9f(0xdb),'marginTop':0x1,'marginBottom':0x1,'children':[a67_0x477a13(Box,{'children':a67_0x477a13(Text,{'bold':!![],'color':_0x39ec9f(0xd9),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a67_0x126dfb(Box,{'marginTop':0x1,'children':[a67_0x477a13(Text,{'dimColor':!![],'children':_0x39ec9f(0xd8)}),a67_0x477a13(Text,{'bold':!![],'color':_0x39ec9f(0xd9),'children':CLI_BIN_NAME+_0x39ec9f(0xdc)}),a67_0x477a13(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
1
+ (function(_0x40a0f9,_0xfac447){const _0x33856c=a67_0x5057,_0x33b911=_0x40a0f9();while(!![]){try{const _0x7d3dac=parseInt(_0x33856c(0x174))/0x1*(-parseInt(_0x33856c(0x17b))/0x2)+-parseInt(_0x33856c(0x172))/0x3+parseInt(_0x33856c(0x178))/0x4*(-parseInt(_0x33856c(0x179))/0x5)+parseInt(_0x33856c(0x17f))/0x6+-parseInt(_0x33856c(0x175))/0x7*(-parseInt(_0x33856c(0x17c))/0x8)+-parseInt(_0x33856c(0x177))/0x9*(parseInt(_0x33856c(0x17e))/0xa)+parseInt(_0x33856c(0x176))/0xb*(parseInt(_0x33856c(0x180))/0xc);if(_0x7d3dac===_0xfac447)break;else _0x33b911['push'](_0x33b911['shift']());}catch(_0x185fec){_0x33b911['push'](_0x33b911['shift']());}}}(a67_0x4654,0x7f9b9));import{jsx as a67_0x516660,jsxs as a67_0x4f5d18}from'react/jsx-runtime';function a67_0x5057(_0x38374a,_0x507793){_0x38374a=_0x38374a-0x172;const _0x4654ff=a67_0x4654();let _0x505764=_0x4654ff[_0x38374a];return _0x505764;}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a67_0x4654(){const _0x2838d3=['679293GmGZNJ','\x20--help','4105dJITwB','7fAUpeB','16078161sHMgai','428832sUklYr','48UsCTvM','255995adFwPh','green','188bvVWVz','171016JwMZqI','\x20to\x20view\x20available\x20commands.','40CnOBWG','2741604SjMDug','12ICXKFx'];a67_0x4654=function(){return _0x2838d3;};return a67_0x4654();}export function Help(){const _0x1fe599=a67_0x5057,{exit:_0x26078f}=useApp();return useEffect(()=>{_0x26078f();},[_0x26078f]),a67_0x4f5d18(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a67_0x516660(Box,{'children':a67_0x516660(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a67_0x4f5d18(Box,{'marginTop':0x1,'children':[a67_0x516660(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a67_0x516660(Text,{'bold':!![],'color':_0x1fe599(0x17a),'children':CLI_BIN_NAME+_0x1fe599(0x173)}),a67_0x516660(Text,{'dimColor':!![],'children':_0x1fe599(0x17d)})]})]});}
@@ -1 +1 @@
1
- function a68_0x5d4f(){const _0x12751c=['join','1411879UWhAIf','2150515qKIAkD','727272wAhezB','1802CGOuEK','stdout','trim','add','status','npx','pipe','63gQFlYX','stderr','unknown','inherit','1133aEOtVf','11530dxDJLS','4XlRMwD','138yxiaJd','toString','stdio','1356606PHtdua','log','exit\x20','409688lFTdaP'];a68_0x5d4f=function(){return _0x12751c;};return a68_0x5d4f();}(function(_0x41c5f0,_0x3db10e){const _0x2b9cc5=a68_0x5948,_0x19dfd0=_0x41c5f0();while(!![]){try{const _0x443eae=parseInt(_0x2b9cc5(0x185))/0x1*(parseInt(_0x2b9cc5(0x190))/0x2)+parseInt(_0x2b9cc5(0x188))/0x3+-parseInt(_0x2b9cc5(0x184))/0x4*(parseInt(_0x2b9cc5(0x18e))/0x5)+parseInt(_0x2b9cc5(0x18f))/0x6+parseInt(_0x2b9cc5(0x18d))/0x7+-parseInt(_0x2b9cc5(0x18b))/0x8*(parseInt(_0x2b9cc5(0x17e))/0x9)+-parseInt(_0x2b9cc5(0x183))/0xa*(-parseInt(_0x2b9cc5(0x182))/0xb);if(_0x443eae===_0x3db10e)break;else _0x19dfd0['push'](_0x19dfd0['shift']());}catch(_0xadbe57){_0x19dfd0['push'](_0x19dfd0['shift']());}}}(a68_0x5d4f,0x380fc));function a68_0x5948(_0x224903,_0xd21d8e){_0x224903=_0x224903-0x17d;const _0x5d4f32=a68_0x5d4f();let _0x594839=_0x5d4f32[_0x224903];return _0x594839;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a68_0x19f449}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a68_0x19f449;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x14950d,_0x12ccdd=LOVRABET_SKILL_SOURCE,_0x2ddab5){const _0x279e49=a68_0x5948;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x326b31=_0x2ddab5?.[_0x279e49(0x187)]??_0x279e49(0x181),_0x50d94b=resolveNpmBin(_0x279e49(0x195)),_0x577183=['skills',_0x279e49(0x193),_0x12ccdd,'-g','-y'],_0xa2eb20=[_0x50d94b,..._0x577183][_0x279e49(0x18c)]('\x20');console[_0x279e49(0x189)]('*\x20'+_0xa2eb20);const _0x37c4dd=spawnSync(_0x50d94b,_0x577183,{'cwd':_0x14950d,'stdio':_0x326b31,'env':process.env,'shell':![]});if(_0x37c4dd[_0x279e49(0x194)]===0x0)return{'ok':!![],'status':0x0};let _0x155562=_0x279e49(0x18a)+(_0x37c4dd['status']??_0x279e49(0x180));if(_0x326b31===_0x279e49(0x17d)){const _0x313f24=_0x37c4dd[_0x279e49(0x17f)]?_0x37c4dd[_0x279e49(0x17f)][_0x279e49(0x186)]()[_0x279e49(0x192)]():'',_0x3d0cd3=_0x37c4dd[_0x279e49(0x191)]?_0x37c4dd[_0x279e49(0x191)][_0x279e49(0x186)]()[_0x279e49(0x192)]():'';if(_0x313f24)_0x155562=_0x313f24;else{if(_0x3d0cd3)_0x155562=_0x3d0cd3;}}return{'ok':![],'status':_0x37c4dd[_0x279e49(0x194)]??null,'error':_0x155562};}
1
+ const a68_0x1bd6e3=a68_0x184b;(function(_0x4a8d6a,_0x3363aa){const _0x4713fe=a68_0x184b,_0x11ce9d=_0x4a8d6a();while(!![]){try{const _0x3e64c4=-parseInt(_0x4713fe(0x1a0))/0x1+parseInt(_0x4713fe(0x1a6))/0x2*(-parseInt(_0x4713fe(0x1a3))/0x3)+parseInt(_0x4713fe(0x195))/0x4+-parseInt(_0x4713fe(0x1a9))/0x5*(-parseInt(_0x4713fe(0x1a7))/0x6)+parseInt(_0x4713fe(0x199))/0x7*(-parseInt(_0x4713fe(0x19d))/0x8)+-parseInt(_0x4713fe(0x196))/0x9*(-parseInt(_0x4713fe(0x19f))/0xa)+parseInt(_0x4713fe(0x194))/0xb*(parseInt(_0x4713fe(0x19c))/0xc);if(_0x3e64c4===_0x3363aa)break;else _0x11ce9d['push'](_0x11ce9d['shift']());}catch(_0x3ff466){_0x11ce9d['push'](_0x11ce9d['shift']());}}}(a68_0x44fe,0x74ea5));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a68_0x346e20}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a68_0x346e20;function a68_0x44fe(){const _0x1e24e9=['11gqcPjo','2265920uOmZEh','99kEzjld','npx','trim','5800207hFhWhn','add','skipNpxSkillsEnvSuffix','10833864ZmipYB','8yPvRfU','pipe','750610LSKRKE','892795ZrKKhq','stdio','join','3ouJdrQ','toString','skills','488314SauxMx','5010RIMPEs','unknown','895NhnbQo','stderr','stdout'];a68_0x44fe=function(){return _0x1e24e9;};return a68_0x44fe();}function a68_0x184b(_0x9c3153,_0x26ad08){_0x9c3153=_0x9c3153-0x193;const _0x44feef=a68_0x44fe();let _0x184b4d=_0x44feef[_0x9c3153];return _0x184b4d;}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a68_0x1bd6e3(0x19b)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x2e9deb,_0x1f75f1=LOVRABET_SKILL_SOURCE,_0xefe51b){const _0x5aca23=a68_0x1bd6e3;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a11eb=_0xefe51b?.[_0x5aca23(0x1a1)]??'inherit',_0x12795f=resolveNpmBin(_0x5aca23(0x197)),_0x161e87=[_0x5aca23(0x1a5),_0x5aca23(0x19a),_0x1f75f1,'-g','-y'],_0x24b01b=[_0x12795f,..._0x161e87][_0x5aca23(0x1a2)]('\x20');console['log']('*\x20'+_0x24b01b);const _0x5227e6=spawnSync(_0x12795f,_0x161e87,{'cwd':_0x2e9deb,'stdio':_0x5a11eb,'env':process.env,'shell':![]});if(_0x5227e6['status']===0x0)return{'ok':!![],'status':0x0};let _0x6005a7='exit\x20'+(_0x5227e6['status']??_0x5aca23(0x1a8));if(_0x5a11eb===_0x5aca23(0x19e)){const _0x462a26=_0x5227e6['stderr']?_0x5227e6[_0x5aca23(0x1aa)][_0x5aca23(0x1a4)]()[_0x5aca23(0x198)]():'',_0x1bc799=_0x5227e6[_0x5aca23(0x193)]?_0x5227e6[_0x5aca23(0x193)][_0x5aca23(0x1a4)]()[_0x5aca23(0x198)]():'';if(_0x462a26)_0x6005a7=_0x462a26;else{if(_0x1bc799)_0x6005a7=_0x1bc799;}}return{'ok':![],'status':_0x5227e6['status']??null,'error':_0x6005a7};}
@@ -1 +1 @@
1
- const a69_0x365af1=a69_0x3cb3;(function(_0x161ada,_0x5ae98e){const _0xcbfbbe=a69_0x3cb3,_0x13ca25=_0x161ada();while(!![]){try{const _0x55e4f2=parseInt(_0xcbfbbe(0x127))/0x1*(parseInt(_0xcbfbbe(0x106))/0x2)+-parseInt(_0xcbfbbe(0x113))/0x3*(-parseInt(_0xcbfbbe(0x176))/0x4)+parseInt(_0xcbfbbe(0x112))/0x5+parseInt(_0xcbfbbe(0xf6))/0x6*(parseInt(_0xcbfbbe(0x156))/0x7)+-parseInt(_0xcbfbbe(0xde))/0x8+-parseInt(_0xcbfbbe(0x150))/0x9+-parseInt(_0xcbfbbe(0xc1))/0xa;if(_0x55e4f2===_0x5ae98e)break;else _0x13ca25['push'](_0x13ca25['shift']());}catch(_0x2e7556){_0x13ca25['push'](_0x13ca25['shift']());}}}(a69_0x1d67,0x82d08));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=a69_0x365af1(0x16d),SKILL_FILE=a69_0x365af1(0x16e),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,'.DS_Store']),IGNORED_DIR_NAMES=new Set([a69_0x365af1(0x131),'.hg',a69_0x365af1(0xcb),a69_0x365af1(0x153),'.next',a69_0x365af1(0x157),a69_0x365af1(0xfa),'coverage',a69_0x365af1(0x139),a69_0x365af1(0x105)]),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(_0x34a15c={}){const _0x4c3d57=a69_0x365af1,_0x215a63=_0x34a15c[_0x4c3d57(0x107)]??homedir(),_0x535fee=resolve(_0x215a63,PRODUCT_CONFIG[_0x4c3d57(0xe6)],_0x4c3d57(0x134)),_0x26b870=trimmedEnv(_0x4c3d57(0x141)),_0x1dbe7f=trimmedEnv(_0x4c3d57(0x108));return{'homeDir':_0x215a63,'cacheRoot':_0x535fee,'managedRoot':resolve(_0x215a63,PRODUCT_CONFIG[_0x4c3d57(0xe6)]),'agentsSkillsDir':_0x34a15c['agentsSkillsDir']??_0x26b870??resolve(_0x215a63,_0x4c3d57(0xc7),'skills'),'claudeSkillsDir':_0x34a15c[_0x4c3d57(0x17a)]??_0x1dbe7f??resolve(_0x215a63,'.claude',_0x4c3d57(0x133))};}export function getRuntimeSkillCacheRoot(_0x11df8f,_0xa88855,_0x473ece={}){const _0x49673c=a69_0x365af1,_0x34a76e=resolveSkillSyncPaths(_0x473ece);return resolve(_0x34a76e[_0x49673c(0xda)],_0x11df8f,fingerprintAccessKey(_0xa88855),_0x49673c(0x133));}export function getRuntimeSkillDir(_0x3732b6,_0x21c144,_0x5a5f7b,_0x340443,_0x5a990a,_0xdefc0a={}){const _0x5cc595=a69_0x365af1;return resolve(getRuntimeSkillCacheRoot(_0x3732b6,_0x21c144,_0xdefc0a),safePathSegment(_0x5a5f7b,_0x5cc595(0xe1)),_0x340443,safePathSegment(_0x5a990a,'skillCode'));}export function contentHash(_0x51fd98){const _0x7f65db=a69_0x365af1;return createHash('sha256')[_0x7f65db(0xc9)](_0x51fd98)[_0x7f65db(0xd5)](_0x7f65db(0x13f));}function bufferSha256(_0x226e48){const _0x5d2900=a69_0x365af1;return createHash(_0x5d2900(0x12f))[_0x5d2900(0xc9)](_0x226e48)[_0x5d2900(0xd5)](_0x5d2900(0x13f));}export function fileTreeHash(_0x1c8305){const _0x3aee3a=a69_0x365af1,_0x54df26=createHash(_0x3aee3a(0x12f));for(const _0x2ea859 of normalizeManifestFiles(_0x1c8305)){_0x54df26[_0x3aee3a(0xc9)](_0x2ea859[_0x3aee3a(0x171)]),_0x54df26[_0x3aee3a(0xc9)]('\x00'),_0x54df26['update'](_0x2ea859[_0x3aee3a(0x12f)]),_0x54df26[_0x3aee3a(0xc9)]('\x00'),_0x54df26[_0x3aee3a(0xc9)](String(_0x2ea859[_0x3aee3a(0xf0)])),_0x54df26[_0x3aee3a(0xc9)]('\x00');}return _0x54df26[_0x3aee3a(0xd5)]('hex');}export function buildSkillPackage(_0x888cae){const _0x26e760=a69_0x365af1,_0x62d6fb=normalizeLocalFiles(_0x888cae);if(!_0x62d6fb[_0x26e760(0xf4)](_0x5daf8a=>_0x5daf8a['path']===SKILL_FILE))throw CliErrors[_0x26e760(0x135)]('Missing\x20'+SKILL_FILE+_0x26e760(0x123));const _0x36aab0=localFilesToManifestFiles(_0x62d6fb),_0x1016f3=createDeterministicZipPackage(_0x62d6fb);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x36aab0),'zipSha256':bufferSha256(_0x1016f3),'zipSize':_0x1016f3[_0x26e760(0x151)],'files':_0x36aab0},'packageBytes':_0x1016f3,'packageBase64':_0x1016f3['toString'](_0x26e760(0x14d))};}export function verifyRuntimeSkillPackage(_0x159f5d,_0x54baa7){const _0x3ac68a=a69_0x365af1,_0x54962b=normalizePackageManifest(_0x159f5d,{'requireOssPath':![]});if(!_0x54962b)throw CliErrors[_0x3ac68a(0x135)](_0x3ac68a(0x11b));return extractAndVerifyPackage(_0x54962b,_0x54baa7);}export function materializeRuntimeSkill(_0x52f6db,_0x57cd3c,_0x4aa134){const _0x836881=a69_0x365af1,_0x59a95d=requireSkillCode(_0x52f6db),_0x504f8c=normalizeRemoteManifest(_0x52f6db[_0x836881(0x137)]),_0x336ea3=_0x504f8c!==undefined,_0x15f0fc=_0x336ea3?requirePackageBytes(_0x59a95d,_0x4aa134[_0x836881(0x14a)]):undefined,_0xaca6fc=_0x336ea3?extractAndVerifyPackage(_0x504f8c,_0x15f0fc):[{'path':SKILL_FILE,'content':_0x52f6db[_0x836881(0x14f)]??''}],_0x387570=_0xaca6fc[_0x836881(0x15a)](_0x2d8e5c=>_0x2d8e5c['path']===SKILL_FILE);if(!_0x387570)throw CliErrors[_0x836881(0x135)](_0x836881(0xd1)+SKILL_FILE+':\x20'+_0x59a95d);if(_0x336ea3&&_0x52f6db[_0x836881(0x14f)]!==undefined&&_0x52f6db['content']!==_0x387570['content'])throw CliErrors['validation'](_0x836881(0x120)+SKILL_FILE+_0x836881(0xcf)+_0x59a95d);const _0x174b7e=_0x387570[_0x836881(0x14f)],_0x373593=getRuntimeSkillDir(_0x4aa134['env'],_0x4aa134[_0x836881(0x181)],_0x4aa134[_0x836881(0xe1)],_0x57cd3c,_0x59a95d,_0x4aa134['paths']),_0x408fed=resolve(_0x373593,SKILL_FILE),_0x1d85e1=resolve(_0x373593,METADATA_FILE),_0x23c00c=contentHash(_0x174b7e),_0x2a48dc=readMetadataIfPresent(_0x1d85e1)?.[_0x836881(0x148)];ensurePulledFilesCanBeOverwritten(_0x373593,_0x1d85e1,_0xaca6fc,_0x4aa134[_0x836881(0x110)]===!![]),mkdirSync(_0x373593,{'recursive':!![],'mode':0x1c0});const _0x3d5b87=existsSync(_0x408fed)?readFileSync(_0x408fed,_0x836881(0x15e)):undefined;return materializeFiles(_0x373593,_0xaca6fc),_0x336ea3&&removeStaleManagedFiles(_0x373593,_0x2a48dc,_0xaca6fc),writeJsonAtomic(_0x1d85e1,buildMetadata(_0x52f6db,_0x57cd3c,_0x4aa134[_0x836881(0xe1)],_0x23c00c,_0x4aa134[_0x836881(0x136)],_0x336ea3?_0xaca6fc:undefined)),{'skill':_0x52f6db,'scope':_0x57cd3c,'dir':_0x373593,'skillMdPath':_0x408fed,'metadataPath':_0x1d85e1,'contentHash':_0x23c00c,'changed':_0x3d5b87!==_0x174b7e};}export function linkEffectiveRuntimeSkills(_0x262103,_0x279a48,_0x161e45={}){const _0x193554=a69_0x365af1,_0x47c0f1=new Map();for(const _0xbf77e1 of _0x262103){const _0x3a64a7=_0xbf77e1[_0x193554(0xd6)][_0x193554(0x161)];if(!_0x3a64a7)continue;const _0x4f50f1=_0x47c0f1[_0x193554(0x162)](_0x3a64a7);(!_0x4f50f1||_0xbf77e1['scope']===_0x193554(0x15b))&&_0x47c0f1[_0x193554(0x16f)](_0x3a64a7,_0xbf77e1);}const _0xe89515=[],_0x56b948=resolveSkillSyncPaths(_0x161e45);for(const _0x2903a8 of _0x47c0f1[_0x193554(0x15d)]()){const _0x73caf=requireSkillCode(_0x2903a8[_0x193554(0xd6)]),_0x451bc6=_0x279a48+'--'+_0x73caf;for(const _0x428cb0 of[_0x56b948['agentsSkillsDir'],_0x56b948[_0x193554(0x17a)]]){_0xe89515[_0x193554(0x124)](ensureManagedSymlink(resolve(_0x428cb0,_0x451bc6),_0x2903a8[_0x193554(0xc5)],_0x56b948[_0x193554(0xc2)]));}}return _0xe89515;}export function pruneStaleRuntimeSkillLinks(_0x116396,_0x43f209,_0xefd72c={},_0x493c66){const _0x21bfd0=a69_0x365af1,_0x175b8=resolveSkillSyncPaths(_0xefd72c),_0x41970e=new Set([..._0x43f209][_0x21bfd0(0x142)](_0x481ad4=>_0x481ad4[_0x21bfd0(0x125)]())[_0x21bfd0(0xd0)](Boolean)),_0x152444=_0x493c66?new Set([..._0x493c66][_0x21bfd0(0x142)](_0x391726=>_0x391726[_0x21bfd0(0x125)]())[_0x21bfd0(0xd0)](Boolean)):undefined,_0x2f608f=[];for(const _0x1d410a of[_0x175b8[_0x21bfd0(0x14b)],_0x175b8['claudeSkillsDir']]){for(const _0x4d61a6 of managedAppSkillLinkPaths(_0x1d410a,_0x116396)){const _0x59dc06=basename(_0x4d61a6)[_0x21bfd0(0x160)]((_0x116396+'--')[_0x21bfd0(0x151)]);if(_0x152444&&!_0x152444[_0x21bfd0(0x158)](_0x59dc06))continue;if(_0x41970e[_0x21bfd0(0x158)](_0x59dc06))continue;_0x2f608f[_0x21bfd0(0x124)](removeManagedSkillLink(_0x4d61a6,_0x175b8['managedRoot']));}}return _0x2f608f;}export function pruneStaleRuntimeSkillCache(_0x360602,_0x4decc6={}){const _0x59a690=a69_0x365af1,_0x2a4eb4=new Set([..._0x360602[_0x59a690(0x100)]]['map'](_0x2f089e=>_0x2f089e[_0x59a690(0x125)]())[_0x59a690(0xd0)](Boolean)),_0x57f43f=_0x360602[_0x59a690(0xc6)]?new Set([..._0x360602[_0x59a690(0xc6)]][_0x59a690(0x142)](_0x23ef09=>_0x23ef09[_0x59a690(0x125)]())[_0x59a690(0xd0)](Boolean)):undefined,_0x584ba0=_0x360602['scopes']??['personal','company'],_0x3a2db8=resolve(getRuntimeSkillCacheRoot(_0x360602[_0x59a690(0xe5)],_0x360602['accessKey'],_0x4decc6),safePathSegment(_0x360602[_0x59a690(0xe1)],_0x59a690(0xe1))),_0x42158c=[];for(const _0x526de7 of _0x584ba0){const _0x2b3808=resolve(_0x3a2db8,_0x526de7);if(!existsSync(_0x2b3808))continue;for(const _0x2b90a7 of readdirSync(_0x2b3808,{'withFileTypes':!![]})){if(!_0x2b90a7[_0x59a690(0xe7)]())continue;const _0x21b590=_0x2b90a7['name'];if(_0x57f43f&&!_0x57f43f[_0x59a690(0x158)](_0x21b590))continue;if(_0x2a4eb4[_0x59a690(0x158)](_0x21b590))continue;const _0x3ee225=resolve(_0x2b3808,_0x21b590),_0x2595fd=readMetadataIfPresent(resolve(_0x3ee225,METADATA_FILE));if(_0x2595fd?.[_0x59a690(0xe1)]!==_0x360602['appCode']||_0x2595fd[_0x59a690(0x149)]!==_0x526de7||_0x2595fd[_0x59a690(0x161)]!==_0x21b590){_0x42158c[_0x59a690(0x124)]({'path':_0x3ee225,'action':_0x59a690(0x132),'reason':_0x59a690(0x14e)});continue;}rmSync(_0x3ee225,{'recursive':!![],'force':!![]}),_0x42158c['push']({'path':_0x3ee225,'action':_0x59a690(0x173)});}}return _0x42158c;}export function linkGlobalRuntimeSkills(_0x439b7c,_0x42d4d2={}){const _0x1d9447=a69_0x365af1,_0x2c1f8d=resolveSkillSyncPaths(_0x42d4d2),_0x37ce4a=[];for(const _0x2f4609 of _0x439b7c){if(_0x2f4609[_0x1d9447(0x149)]!=='builtin')throw CliErrors['validation'](_0x1d9447(0x163)+_0x2f4609[_0x1d9447(0x149)]);const _0x5e1a91=requireSkillCode(_0x2f4609['skill']),_0x17871c=copyManagedSkillDirectory(_0x2f4609[_0x1d9447(0xc5)],resolve(_0x2c1f8d['agentsSkillsDir'],_0x5e1a91));_0x37ce4a['push']({..._0x17871c,'contentHash':_0x2f4609[_0x1d9447(0x13b)]});}return _0x37ce4a;}export function readPushDirectory(_0x29fb31,_0x3ae0c7){const _0x2d385a=a69_0x365af1,_0x428f68=resolve(_0x29fb31);if(!existsSync(_0x428f68)||!lstatSync(_0x428f68)[_0x2d385a(0xe7)]())throw CliErrors[_0x2d385a(0x135)](_0x2d385a(0x10f)+_0x29fb31);const _0x17146f=resolve(_0x428f68,SKILL_FILE);if(!existsSync(_0x17146f)||!lstatSync(_0x17146f)[_0x2d385a(0xf1)]())throw CliErrors[_0x2d385a(0x135)](_0x2d385a(0xce)+SKILL_FILE+':\x20'+_0x17146f);const _0xf4863a=readMetadataIfPresent(resolve(_0x428f68,METADATA_FILE));if(_0xf4863a?.[_0x2d385a(0x149)]&&_0xf4863a['scope']!=='personal')throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0x2d385a(0x140)+_0xf4863a[_0x2d385a(0x149)]+'\x22.');if(_0xf4863a?.[_0x2d385a(0xe1)]&&_0xf4863a[_0x2d385a(0xe1)]!==_0x3ae0c7)throw CliErrors[_0x2d385a(0x135)](_0x2d385a(0x154)+_0xf4863a[_0x2d385a(0xe1)]+_0x2d385a(0x159)+_0x3ae0c7+'\x22.');const _0x35ab99=scanSkillDirectory(_0x428f68),_0x555b1c=buildSkillPackage(_0x35ab99),_0x998b92=readFileSync(_0x17146f,_0x2d385a(0x15e)),_0x895f23=_0xf4863a?.[_0x2d385a(0x161)]??deriveSkillCodeFromDirectory(_0x428f68,_0x3ae0c7);if(!_0x895f23)throw CliErrors[_0x2d385a(0x135)](_0x2d385a(0xf3)+METADATA_FILE+_0x2d385a(0x168));return{'skillCode':_0x895f23,'metadata':_0xf4863a,'input':{'skillCode':_0x895f23,'skillName':_0xf4863a?.[_0x2d385a(0x12b)],'description':_0xf4863a?.[_0x2d385a(0x174)],'content':_0x998b92,'files':_0x555b1c[_0x2d385a(0x11c)],'packageBase64':_0x555b1c[_0x2d385a(0x15f)],'tags':_0xf4863a?.[_0x2d385a(0xdd)],'version':_0xf4863a?.[_0x2d385a(0xe2)],'sourceSessionId':_0xf4863a?.[_0x2d385a(0x147)]}};}export function recordPushedRuntimeSkill(_0x5d236c,_0x59e0dc,_0x2e9d70,_0x1b83ec={}){const _0x820df5=a69_0x365af1,_0x29ecc4=resolve(_0x5d236c),_0x423979=scanSkillDirectory(_0x29ecc4),_0x502c04=_0x423979['find'](_0x3e468f=>_0x3e468f['path']===SKILL_FILE)?.[_0x820df5(0x14f)]??'',_0x1f040d=tryNormalizeRemoteManifest(_0x59e0dc[_0x820df5(0x137)]),_0x3a9c72={..._0x59e0dc,'content':_0x59e0dc[_0x820df5(0x14f)]??_0x502c04,'files':_0x1f040d},_0x17de89=_0x1f040d?normalizeLocalFiles(_0x423979)['filter'](_0x29a7b7=>_0x1f040d[_0x820df5(0x137)]['some'](_0x3d8858=>_0x3d8858[_0x820df5(0x171)]===_0x29a7b7[_0x820df5(0x171)])):undefined,_0x5d8b24=buildMetadata(_0x3a9c72,_0x1b83ec['scope']??_0x820df5(0x15b),_0x2e9d70,contentHash(_0x3a9c72[_0x820df5(0x14f)]??''),_0x1b83ec['pushedAt'],_0x17de89);writeJsonAtomic(resolve(_0x29ecc4,METADATA_FILE),_0x5d8b24);}export function deriveSkillCodeFromDirectory(_0x2fd8d2,_0x5869df){const _0x45f33b=a69_0x365af1,_0x3300c2=basename(resolve(_0x2fd8d2)),_0x18da23=_0x5869df+'--';return _0x3300c2[_0x45f33b(0xdf)](_0x18da23)?_0x3300c2[_0x45f33b(0x160)](_0x18da23[_0x45f33b(0x151)]):_0x3300c2;}export function readMetadataIfPresent(_0x2b44f0){const _0x1ac13a=a69_0x365af1;if(!existsSync(_0x2b44f0))return undefined;try{const _0x22d332=JSON[_0x1ac13a(0xc4)](readFileSync(_0x2b44f0,_0x1ac13a(0x15e)));return _0x22d332;}catch{throw CliErrors[_0x1ac13a(0x135)](_0x1ac13a(0x104)+METADATA_FILE+':\x20'+_0x2b44f0);}}function buildMetadata(_0x53b9d1,_0x403cbd,_0x37c861,_0x1792ee,_0x2891a1,_0x205709){const _0x470b31=a69_0x365af1,_0x2bc501=_0x205709?normalizeLocalFiles(_0x205709):[],_0x37a5cf=normalizeRemoteManifest(_0x53b9d1[_0x470b31(0x137)]),_0x373371=_0x2bc501[_0x470b31(0x151)]>0x0?Object[_0x470b31(0x117)](_0x2bc501[_0x470b31(0x142)](_0x3b2952=>[_0x3b2952[_0x470b31(0x171)],contentHash(_0x3b2952[_0x470b31(0x14f)])])):undefined;return{'schemaVersion':_0x2bc501['length']>0x0?0x2:0x1,'id':_0x53b9d1['id'],'appCode':_0x37c861,'skillCode':requireSkillCode(_0x53b9d1),'skillName':_0x53b9d1[_0x470b31(0x12b)],'description':_0x53b9d1[_0x470b31(0x174)],'scope':_0x403cbd,'readonly':_0x403cbd!==_0x470b31(0x15b)||_0x53b9d1[_0x470b31(0xc3)]===!![],'tenantCode':_0x53b9d1[_0x470b31(0xfc)],'userId':_0x53b9d1[_0x470b31(0xd9)],'version':_0x53b9d1[_0x470b31(0xe2)],'status':_0x53b9d1['status'],'tags':Array['isArray'](_0x53b9d1[_0x470b31(0xdd)])?_0x53b9d1['tags']:[],'hasUpstreamUpdate':_0x53b9d1[_0x470b31(0x118)],'forkedFromSkillId':_0x53b9d1[_0x470b31(0xec)],'forkedFromVersion':_0x53b9d1[_0x470b31(0x10e)],'sourceSessionId':_0x53b9d1[_0x470b31(0x147)],'contentHash':_0x1792ee,'fileHashes':_0x373371,'treeHash':_0x37a5cf?.[_0x470b31(0x172)]??(_0x2bc501[_0x470b31(0x151)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x2bc501)):undefined),'ossPath':_0x37a5cf?.[_0x470b31(0xed)],'zipSha256':_0x37a5cf?.[_0x470b31(0x126)],'zipSize':_0x37a5cf?.[_0x470b31(0x177)],'files':_0x2bc501[_0x470b31(0x151)]>0x0?_0x2bc501[_0x470b31(0x142)](_0x5dfc90=>({'path':_0x5dfc90[_0x470b31(0x171)],'hash':contentHash(_0x5dfc90[_0x470b31(0x14f)]),'size':Buffer[_0x470b31(0x13a)](_0x5dfc90[_0x470b31(0x14f)],_0x470b31(0x15e))})):undefined,'pulledAt':_0x2891a1??new Date()[_0x470b31(0x10a)]()};}function requireSkillCode(_0x4699e9){const _0x18be8a=a69_0x365af1,_0x2507af=_0x4699e9[_0x18be8a(0x161)]?.[_0x18be8a(0x125)]();if(!_0x2507af)throw CliErrors[_0x18be8a(0x135)](_0x18be8a(0x129));return _0x2507af;}function trimmedEnv(_0x45da83){const _0x42d5af=a69_0x365af1,_0x14caae=productEnv(_0x45da83)?.[_0x42d5af(0x125)]();return _0x14caae?_0x14caae:undefined;}function safePathSegment(_0x3149a0,_0x286491=a69_0x365af1(0x179)){const _0x11e2cd=a69_0x365af1;if(!_0x3149a0||_0x3149a0[_0x11e2cd(0xf5)]('/')||_0x3149a0[_0x11e2cd(0xf5)]('\x5c')||_0x3149a0['includes']('..'))throw CliErrors[_0x11e2cd(0x135)](_0x11e2cd(0xf9)+_0x286491+_0x11e2cd(0x121)+_0x3149a0);return _0x3149a0;}function a69_0x3cb3(_0x866810,_0x54a4d4){_0x866810=_0x866810-0xc0;const _0x1d67f1=a69_0x1d67();let _0x3cb3ba=_0x1d67f1[_0x866810];return _0x3cb3ba;}function ensurePulledFilesCanBeOverwritten(_0x28b417,_0x27c791,_0x331b09,_0x47dc0e){const _0x41e19b=a69_0x365af1;if(_0x47dc0e||!existsSync(_0x27c791))return;const _0x23981a=readMetadataIfPresent(_0x27c791);if(!_0x23981a)return;const _0x2d3cf0=_0x23981a[_0x41e19b(0x148)]&&Object[_0x41e19b(0xe4)](_0x23981a[_0x41e19b(0x148)])[_0x41e19b(0x151)]>0x0?_0x23981a[_0x41e19b(0x148)]:undefined;if(_0x2d3cf0)for(const [_0x2c6445,_0x4f6a21]of Object['entries'](_0x2d3cf0)){const _0x5a7818=resolveManagedFilePath(_0x28b417,_0x2c6445);if(!existsSync(_0x5a7818))throw CliErrors[_0x41e19b(0x135)](_0x41e19b(0x115)+_0x28b417,_0x41e19b(0x114)+_0x2c6445);const _0x4d0eab=lstatSync(_0x5a7818);if(!_0x4d0eab[_0x41e19b(0xf1)]())throw CliErrors[_0x41e19b(0x135)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x28b417,_0x41e19b(0xef)+_0x2c6445);const _0x1ac8ac=contentHash(readFileSync(_0x5a7818,_0x41e19b(0x15e)));if(_0x1ac8ac!==_0x4f6a21)throw CliErrors[_0x41e19b(0x135)](_0x41e19b(0x115)+_0x28b417+_0x41e19b(0xf8)+_0x2c6445,'Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.\x20Changed\x20file:\x20'+_0x2c6445);}else{const _0x1daf37=resolve(_0x28b417,SKILL_FILE);if(existsSync(_0x1daf37)&&_0x23981a[_0x41e19b(0x13b)]){const _0x1fcf37=contentHash(readFileSync(_0x1daf37,_0x41e19b(0x15e)));if(_0x1fcf37!==_0x23981a[_0x41e19b(0x13b)])throw CliErrors[_0x41e19b(0x135)](_0x41e19b(0xd4)+_0x1daf37,_0x41e19b(0xd3));}}for(const _0x4b9cc8 of normalizeLocalFiles(_0x331b09)){if(_0x2d3cf0?.[_0x4b9cc8[_0x41e19b(0x171)]])continue;if(!_0x2d3cf0&&_0x4b9cc8[_0x41e19b(0x171)]===SKILL_FILE)continue;const _0x2927f0=resolveManagedFilePath(_0x28b417,_0x4b9cc8[_0x41e19b(0x171)]);if(!existsSync(_0x2927f0))continue;const _0x2fc4f1=lstatSync(_0x2927f0);if(!_0x2fc4f1[_0x41e19b(0xf1)]())throw CliErrors[_0x41e19b(0x135)](_0x41e19b(0x115)+_0x28b417,_0x41e19b(0x109)+_0x4b9cc8[_0x41e19b(0x171)]);const _0x27dd06=contentHash(readFileSync(_0x2927f0,_0x41e19b(0x15e)));if(_0x27dd06!==contentHash(_0x4b9cc8[_0x41e19b(0x14f)]))throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x28b417,_0x41e19b(0x10b)+_0x4b9cc8['path']);}}function scanSkillDirectory(_0x4052e9){const _0x577e39=realOrResolved(_0x4052e9),_0x561c02=[];let _0x22047c=0x0;function _0x5760b9(_0x15bb5b){const _0x2546f3=a69_0x3cb3,_0x52a4fd=readdirSync(_0x15bb5b,{'withFileTypes':!![]})[_0x2546f3(0x12d)]((_0x444088,_0x42de44)=>_0x444088[_0x2546f3(0xff)]['localeCompare'](_0x42de44['name']));for(const _0x22e727 of _0x52a4fd){if(_0x22e727['isDirectory']()&&IGNORED_DIR_NAMES['has'](_0x22e727[_0x2546f3(0xff)]))continue;if(IGNORED_FILE_NAMES[_0x2546f3(0x158)](_0x22e727[_0x2546f3(0xff)]))continue;const _0x63c9f5=resolve(_0x15bb5b,_0x22e727['name']);if(_0x22e727[_0x2546f3(0x103)]())throw CliErrors[_0x2546f3(0x135)](_0x2546f3(0x164)+_0x63c9f5);const _0x1cbc05=toPosixPath(relative(_0x577e39,_0x63c9f5));if(_0x22e727[_0x2546f3(0xe7)]()){_0x5760b9(_0x63c9f5);continue;}if(!_0x22e727[_0x2546f3(0xf1)]())continue;validateSkillRelativePath(_0x1cbc05);const _0xedde5a=readFileSync(_0x63c9f5);if(_0xedde5a[_0x2546f3(0x151)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x2546f3(0x135)](_0x2546f3(0x17d)+_0x1cbc05);_0x22047c+=_0xedde5a[_0x2546f3(0x151)];if(_0x22047c>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x2546f3(0x135)](_0x2546f3(0x17b));if(!isUtf8Text(_0xedde5a))throw CliErrors['validation']('Skill\x20file\x20is\x20not\x20supported\x20text:\x20'+_0x1cbc05);_0x561c02['push']({'path':_0x1cbc05,'content':_0xedde5a['toString'](_0x2546f3(0x15e))});if(_0x561c02[_0x2546f3(0x151)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x2546f3(0x13c));}}return _0x5760b9(_0x577e39),normalizeLocalFiles(_0x561c02);}function normalizeLocalFiles(_0x71e23f){const _0x589e12=a69_0x365af1;if(!Array['isArray'](_0x71e23f)||_0x71e23f[_0x589e12(0x151)]===0x0)return[];if(_0x71e23f[_0x589e12(0x151)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation']('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');const _0xe1a3d6=new Map();let _0x3fb880=0x0;for(const _0x416493 of _0x71e23f){if(!_0x416493||typeof _0x416493!==_0x589e12(0xcd)||typeof _0x416493[_0x589e12(0x171)]!==_0x589e12(0x10c))throw CliErrors[_0x589e12(0x135)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x28b791=normalizeSkillRelativePath(_0x416493[_0x589e12(0x171)]);if(_0xe1a3d6['has'](_0x28b791))throw CliErrors[_0x589e12(0x135)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x28b791);if(typeof _0x416493[_0x589e12(0x14f)]!==_0x589e12(0x10c))throw CliErrors[_0x589e12(0x135)]('Skill\x20file\x20content\x20must\x20be\x20text:\x20'+_0x28b791);if(_0x416493[_0x589e12(0x14f)][_0x589e12(0xf5)]('\x00'))throw CliErrors['validation'](_0x589e12(0x17c)+_0x28b791);const _0x45fc45=Buffer[_0x589e12(0x13a)](_0x416493[_0x589e12(0x14f)],_0x589e12(0x15e));if(_0x45fc45>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x589e12(0x135)](_0x589e12(0x17d)+_0x28b791);_0x3fb880+=_0x45fc45;if(_0x3fb880>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x589e12(0x135)](_0x589e12(0x17b));_0xe1a3d6[_0x589e12(0x16f)](_0x28b791,{'path':_0x28b791,'content':_0x416493[_0x589e12(0x14f)]});}return Array[_0x589e12(0xdb)](_0xe1a3d6[_0x589e12(0x15d)]())[_0x589e12(0x12d)](compareSkillFiles);}function normalizeManifestFiles(_0x4f51c6){const _0x41a0d3=a69_0x365af1;if(!Array[_0x41a0d3(0xfd)](_0x4f51c6)||_0x4f51c6[_0x41a0d3(0x151)]===0x0)return[];if(_0x4f51c6[_0x41a0d3(0x151)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation']('Skill\x20directory\x20exceeds\x20file\x20count\x20limit.');const _0x217f20=new Map();let _0x7b3d17=0x0;for(const _0x54c096 of _0x4f51c6){if(!_0x54c096||typeof _0x54c096!==_0x41a0d3(0xcd)||typeof _0x54c096[_0x41a0d3(0x171)]!==_0x41a0d3(0x10c))throw CliErrors[_0x41a0d3(0x135)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x1c8ea8=normalizeSkillRelativePath(_0x54c096[_0x41a0d3(0x171)]);if(_0x217f20[_0x41a0d3(0x158)](_0x1c8ea8))throw CliErrors[_0x41a0d3(0x135)](_0x41a0d3(0x122)+_0x1c8ea8);if(!isSha256Hex(_0x54c096[_0x41a0d3(0x12f)]))throw CliErrors[_0x41a0d3(0x135)](_0x41a0d3(0x152)+_0x1c8ea8);if(!Number[_0x41a0d3(0x182)](_0x54c096['size'])||_0x54c096[_0x41a0d3(0xf0)]<0x0)throw CliErrors[_0x41a0d3(0x135)](_0x41a0d3(0xea)+_0x1c8ea8);if(_0x54c096[_0x41a0d3(0xf0)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x41a0d3(0x135)](_0x41a0d3(0x17d)+_0x1c8ea8);_0x7b3d17+=_0x54c096[_0x41a0d3(0xf0)];if(_0x7b3d17>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x41a0d3(0x135)](_0x41a0d3(0x17b));_0x217f20[_0x41a0d3(0x16f)](_0x1c8ea8,{'path':_0x1c8ea8,'sha256':_0x54c096[_0x41a0d3(0x12f)]['toLowerCase'](),'size':_0x54c096['size']});}return Array[_0x41a0d3(0xdb)](_0x217f20['values']())[_0x41a0d3(0x12d)](compareSkillFiles);}function normalizeRemoteManifest(_0x3c5fd6){return normalizePackageManifest(_0x3c5fd6,{'requireOssPath':!![]});}function normalizePackageManifest(_0x446640,_0x57b28d){const _0x4c7d85=a69_0x365af1;if(!_0x446640||typeof _0x446640!==_0x4c7d85(0xcd)||Array[_0x4c7d85(0xfd)](_0x446640))return undefined;const _0x52046a=_0x446640,_0x1bafb6=typeof _0x52046a[_0x4c7d85(0xed)]===_0x4c7d85(0x10c)?_0x52046a[_0x4c7d85(0xed)][_0x4c7d85(0x125)]():undefined;if(_0x57b28d['requireOssPath']&&!_0x1bafb6)return undefined;if(!Array[_0x4c7d85(0xfd)](_0x52046a[_0x4c7d85(0x137)])||_0x52046a[_0x4c7d85(0x137)]['length']===0x0)return undefined;if(!isSha256Hex(_0x52046a[_0x4c7d85(0x172)]))throw CliErrors['validation'](_0x4c7d85(0xe3));if(!isSha256Hex(_0x52046a['zipSha256']))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number['isSafeInteger'](_0x52046a['zipSize'])||_0x52046a[_0x4c7d85(0x177)]<0x0)throw CliErrors[_0x4c7d85(0x135)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');if(_0x52046a['zipSize']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x4c7d85(0x135)](_0x4c7d85(0x11a));const _0x3ad572=normalizeManifestFiles(_0x52046a['files']);if(!_0x3ad572[_0x4c7d85(0xf4)](_0x36f391=>_0x36f391['path']===SKILL_FILE))throw CliErrors[_0x4c7d85(0x135)](_0x4c7d85(0xd1)+SKILL_FILE+'.');const _0x10ab9e=fileTreeHash(_0x3ad572);if(_0x10ab9e!==_0x52046a[_0x4c7d85(0x172)][_0x4c7d85(0x143)]())throw CliErrors['validation'](_0x4c7d85(0x11d));return{'schemaVersion':Number['isSafeInteger'](_0x52046a['schemaVersion'])?_0x52046a[_0x4c7d85(0x130)]:0x2,'ossPath':_0x1bafb6,'treeSha256':_0x10ab9e,'zipSha256':_0x52046a[_0x4c7d85(0x126)][_0x4c7d85(0x143)](),'zipSize':_0x52046a[_0x4c7d85(0x177)],'files':_0x3ad572};}function tryNormalizeRemoteManifest(_0x2837a1){return normalizeRemoteManifest(_0x2837a1);}function a69_0x1d67(){const _0x7cbb87=['size','isFile','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','Unable\x20to\x20resolve\x20skillCode\x20from\x20','some','includes','24bHrQkS','subarray','.\x20Changed\x20file:\x20','Unsafe\x20','build','Skill\x20package\x20exceeds\x20size\x20limit.','tenantCode','isArray','readUInt32LE','name','activeSkillCodes','updated','concat','isSymbolicLink','Invalid\x20','.cache','10238mYwjYz','homeDir','CLAUDE_SKILL_ROOT','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','toISOString','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','string','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','forkedFromVersion','Skill\x20directory\x20not\x20found:\x20','force','alloc','2346665ZRoUvr','663mrOzkC','Managed\x20file\x20was\x20removed\x20locally:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','not-managed-symlink','fromEntries','hasUpstreamUpdate','replace','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','manifest','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20CRC\x20mismatch:\x20','test','Runtime\x20Skill\x20package\x20','\x20for\x20local\x20path:\x20','Duplicate\x20Skill\x20file\x20path:\x20','\x20in\x20Skill\x20file\x20package.','push','trim','zipSha256','54ERATBy','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20name.','Runtime\x20Skill\x20is\x20missing\x20skillCode.','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20','skillName','Runtime\x20Skill\x20package\x20contains\x20encrypted\x20entries.','sort','stringify','sha256','schemaVersion','.git','skipped','skills','cache','validation','pulledAt','files','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','.turbo','byteLength','contentHash','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','hex','\x20has\x20scope=\x22','SKILL_ROOT','map','toLowerCase','Unsafe\x20Skill\x20file\x20path:\x20','readUInt16LE','Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.','sourceSessionId','fileHashes','scope','packageBytes','agentsSkillsDir','compare','base64','metadata-mismatch','content','1154628gioaLr','length','Skill\x20file\x20sha256\x20is\x20invalid:\x20','node_modules','Skill\x20metadata\x20appCode\x20\x22','builtin','1363943surdlR','dist','has','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','find','personal','max','values','utf8','packageBase64','slice','skillCode','get','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','Runtime\x20Skill\x20package\x20uncompressed\x20size\x20mismatch:\x20','writeUInt32LE','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20data:\x20','\x20or\x20directory\x20name.','split','Runtime\x20Skill\x20package\x20exceeds\x20total\x20text\x20size\x20limit.','unchanged','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20package-backed\x20Skill:\x20','lovrabet.skill.json','SKILL.md','set','bytes','path','treeSha256','removed','description','Runtime\x20Skill\x20package\x20has\x20truncated\x20local\x20header:\x20','9356TfHTIS','zipSize','copy','path\x20segment','claudeSkillsDir','Skill\x20directory\x20exceeds\x20total\x20text\x20size\x20limit.','Skill\x20file\x20is\x20not\x20supported\x20text:\x20','Skill\x20file\x20exceeds\x20size\x20limit:\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20zip\x20central\x20directory.','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','accessKey','isSafeInteger','endsWith','10207940fIEUiH','managedRoot','readonly','parse','dir','pruneSkillCodes','.agents','Runtime\x20Skill\x20package\x20local\x20header\x20mismatch:\x20','update','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','.svn','external-symlink','object','Missing\x20','\x20does\x20not\x20match\x20backend\x20content:\x20','filter','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','digest','skill','toString','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','userId','cacheRoot','from','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','tags','2857376GboKPr','startsWith','writeUInt16LE','appCode','version','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','keys','env','homeDirName','isDirectory','Runtime\x20Skill\x20package\x20uses\x20unsupported\x20multi-disk\x20zip\x20format.','Runtime\x20Skill\x20package\x20file\x20is\x20not\x20supported\x20text:\x20','Skill\x20file\x20size\x20is\x20invalid:\x20','created','forkedFromSkillId','ossPath','Runtime\x20Skill\x20package\x20has\x20truncated\x20central\x20directory.','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'];a69_0x1d67=function(){return _0x7cbb87;};return a69_0x1d67();}function requirePackageBytes(_0xa94f95,_0x204cbe){const _0x28c4a6=a69_0x365af1;if(!_0x204cbe||_0x204cbe[_0x28c4a6(0x151)]===0x0)throw CliErrors[_0x28c4a6(0x135)](_0x28c4a6(0x16c)+_0xa94f95);if(_0x204cbe[_0x28c4a6(0x151)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0x28c4a6(0x12a)+_0xa94f95);return _0x204cbe;}function localFilesToManifestFiles(_0x4b62cb){const _0x57e618=a69_0x365af1;return normalizeLocalFiles(_0x4b62cb)[_0x57e618(0x142)](_0x4729b3=>({'path':_0x4729b3[_0x57e618(0x171)],'sha256':contentHash(_0x4729b3[_0x57e618(0x14f)]),'size':Buffer[_0x57e618(0x13a)](_0x4729b3[_0x57e618(0x14f)],_0x57e618(0x15e))}));}function isSha256Hex(_0x4a4658){const _0x107c2a=a69_0x365af1;return typeof _0x4a4658===_0x107c2a(0x10c)&&/^[a-fA-F0-9]{64}$/[_0x107c2a(0x11f)](_0x4a4658);}function extractAndVerifyPackage(_0x16900b,_0x5d6ccd){const _0x34fb42=a69_0x365af1,_0x502823=normalizePackageManifest(_0x16900b,{'requireOssPath':![]});if(!_0x502823)throw CliErrors[_0x34fb42(0x135)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x5d6ccd[_0x34fb42(0x151)]!==_0x502823[_0x34fb42(0x177)])throw CliErrors[_0x34fb42(0x135)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x516101=bufferSha256(_0x5d6ccd);if(_0x516101!==_0x502823['zipSha256'])throw CliErrors[_0x34fb42(0x135)](_0x34fb42(0x10d));const _0x1ca905=parseZipPackage(_0x5d6ccd);if(_0x1ca905[_0x34fb42(0x151)]!==_0x502823['files']['length'])throw CliErrors[_0x34fb42(0x135)](_0x34fb42(0x180));const _0x16a437=new Map();for(const _0x14314d of _0x1ca905){if(_0x16a437[_0x34fb42(0x158)](_0x14314d[_0x34fb42(0x171)]))throw CliErrors[_0x34fb42(0x135)](_0x34fb42(0x13d)+_0x14314d['path']);_0x16a437['set'](_0x14314d[_0x34fb42(0x171)],_0x14314d);}const _0x344968=[];for(const _0xb6bf2a of _0x502823[_0x34fb42(0x137)]){const _0x1c3625=_0x16a437['get'](_0xb6bf2a[_0x34fb42(0x171)]);if(!_0x1c3625)throw CliErrors['validation'](_0x34fb42(0x17f)+_0xb6bf2a['path']);if(_0x1c3625['bytes'][_0x34fb42(0x151)]!==_0xb6bf2a[_0x34fb42(0xf0)])throw CliErrors[_0x34fb42(0x135)](_0x34fb42(0x13e)+_0xb6bf2a[_0x34fb42(0x171)]);const _0x31960c=bufferSha256(_0x1c3625[_0x34fb42(0x170)]);if(_0x31960c!==_0xb6bf2a['sha256'])throw CliErrors['validation'](_0x34fb42(0x138)+_0xb6bf2a[_0x34fb42(0x171)]);if(!isUtf8Text(_0x1c3625['bytes']))throw CliErrors['validation'](_0x34fb42(0xe9)+_0xb6bf2a[_0x34fb42(0x171)]);_0x344968[_0x34fb42(0x124)]({'path':_0xb6bf2a[_0x34fb42(0x171)],'content':_0x1c3625['bytes'][_0x34fb42(0xd7)](_0x34fb42(0x15e))});}return normalizeLocalFiles(_0x344968);}function createDeterministicZipPackage(_0x5764c6){const _0x13e177=a69_0x365af1,_0x49efe9=normalizeLocalFiles(_0x5764c6),_0x2cf8e5=[],_0x3a4bfd=[];let _0x3df32e=0x0;for(const _0x3f07a7 of _0x49efe9){const _0x13e0bd=Buffer['from'](_0x3f07a7[_0x13e177(0x171)],_0x13e177(0x15e)),_0x5c2333=Buffer[_0x13e177(0xdb)](_0x3f07a7[_0x13e177(0x14f)],_0x13e177(0x15e)),_0xd0bfa1=crc32(_0x5c2333),_0x2378d0=Buffer['alloc'](0x1e+_0x13e0bd[_0x13e177(0x151)]);_0x2378d0[_0x13e177(0x166)](ZIP_LOCAL_FILE_HEADER_SIGNATURE,0x0),_0x2378d0[_0x13e177(0xe0)](0x14,0x4),_0x2378d0[_0x13e177(0xe0)](ZIP_GENERAL_PURPOSE_UTF8,0x6),_0x2378d0[_0x13e177(0xe0)](ZIP_METHOD_STORE,0x8),_0x2378d0[_0x13e177(0xe0)](ZIP_FIXED_DOS_TIME,0xa),_0x2378d0[_0x13e177(0xe0)](ZIP_FIXED_DOS_DATE,0xc),_0x2378d0['writeUInt32LE'](_0xd0bfa1,0xe),_0x2378d0['writeUInt32LE'](_0x5c2333[_0x13e177(0x151)],0x12),_0x2378d0['writeUInt32LE'](_0x5c2333['length'],0x16),_0x2378d0[_0x13e177(0xe0)](_0x13e0bd[_0x13e177(0x151)],0x1a),_0x2378d0['writeUInt16LE'](0x0,0x1c),_0x13e0bd[_0x13e177(0x178)](_0x2378d0,0x1e),_0x2cf8e5[_0x13e177(0x124)](_0x2378d0,_0x5c2333);const _0x261768=Buffer[_0x13e177(0x111)](0x2e+_0x13e0bd[_0x13e177(0x151)]);_0x261768[_0x13e177(0x166)](ZIP_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x261768[_0x13e177(0xe0)](0x14,0x4),_0x261768['writeUInt16LE'](0x14,0x6),_0x261768[_0x13e177(0xe0)](ZIP_GENERAL_PURPOSE_UTF8,0x8),_0x261768[_0x13e177(0xe0)](ZIP_METHOD_STORE,0xa),_0x261768[_0x13e177(0xe0)](ZIP_FIXED_DOS_TIME,0xc),_0x261768[_0x13e177(0xe0)](ZIP_FIXED_DOS_DATE,0xe),_0x261768['writeUInt32LE'](_0xd0bfa1,0x10),_0x261768[_0x13e177(0x166)](_0x5c2333[_0x13e177(0x151)],0x14),_0x261768['writeUInt32LE'](_0x5c2333[_0x13e177(0x151)],0x18),_0x261768[_0x13e177(0xe0)](_0x13e0bd[_0x13e177(0x151)],0x1c),_0x261768[_0x13e177(0xe0)](0x0,0x1e),_0x261768['writeUInt16LE'](0x0,0x20),_0x261768['writeUInt16LE'](0x0,0x22),_0x261768[_0x13e177(0xe0)](0x0,0x24),_0x261768[_0x13e177(0x166)](0x0,0x26),_0x261768[_0x13e177(0x166)](_0x3df32e,0x2a),_0x13e0bd[_0x13e177(0x178)](_0x261768,0x2e),_0x3a4bfd['push'](_0x261768),_0x3df32e+=_0x2378d0[_0x13e177(0x151)]+_0x5c2333[_0x13e177(0x151)];}const _0x3f2a3e=Buffer[_0x13e177(0x102)](_0x3a4bfd),_0x2380ba=_0x3df32e,_0xfdcfc5=_0x3f2a3e['length'],_0x5c21bf=Buffer[_0x13e177(0x111)](0x16);_0x5c21bf[_0x13e177(0x166)](ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x5c21bf['writeUInt16LE'](0x0,0x4),_0x5c21bf[_0x13e177(0xe0)](0x0,0x6),_0x5c21bf[_0x13e177(0xe0)](_0x49efe9[_0x13e177(0x151)],0x8),_0x5c21bf[_0x13e177(0xe0)](_0x49efe9[_0x13e177(0x151)],0xa),_0x5c21bf[_0x13e177(0x166)](_0xfdcfc5,0xc),_0x5c21bf[_0x13e177(0x166)](_0x2380ba,0x10),_0x5c21bf[_0x13e177(0xe0)](0x0,0x14);const _0x527fec=Buffer[_0x13e177(0x102)]([..._0x2cf8e5,_0x3f2a3e,_0x5c21bf]);if(_0x527fec['length']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x13e177(0x135)](_0x13e177(0xfb));return _0x527fec;}function parseZipPackage(_0x2c2abd){const _0x18f5e2=a69_0x365af1;if(_0x2c2abd[_0x18f5e2(0x151)]<0x16)throw CliErrors[_0x18f5e2(0x135)](_0x18f5e2(0xdc));const _0x4b3c6c=findEndOfCentralDirectory(_0x2c2abd);if(_0x4b3c6c<0x0)throw CliErrors[_0x18f5e2(0x135)](_0x18f5e2(0x17e));const _0x11ac36=_0x2c2abd['readUInt16LE'](_0x4b3c6c+0x4),_0x16b455=_0x2c2abd[_0x18f5e2(0x145)](_0x4b3c6c+0x6),_0x1a9600=_0x2c2abd[_0x18f5e2(0x145)](_0x4b3c6c+0xa),_0x32c67a=_0x2c2abd[_0x18f5e2(0xfe)](_0x4b3c6c+0xc),_0x75ce64=_0x2c2abd['readUInt32LE'](_0x4b3c6c+0x10);if(_0x11ac36!==0x0||_0x16b455!==0x0)throw CliErrors[_0x18f5e2(0x135)](_0x18f5e2(0xe8));if(_0x1a9600>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x18f5e2(0x146));if(_0x75ce64+_0x32c67a>_0x4b3c6c||_0x75ce64>=_0x2c2abd[_0x18f5e2(0x151)])throw CliErrors[_0x18f5e2(0x135)]('Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20offsets.');const _0x1b0d65=[];let _0x3f226a=0x0,_0x21087a=_0x75ce64;for(let _0x59ef86=0x0;_0x59ef86<_0x1a9600;_0x59ef86+=0x1){if(_0x21087a+0x2e>_0x2c2abd['length'])throw CliErrors[_0x18f5e2(0x135)](_0x18f5e2(0xee));if(_0x2c2abd[_0x18f5e2(0xfe)](_0x21087a)!==ZIP_CENTRAL_DIRECTORY_SIGNATURE)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20entry.');const _0xeefa37=_0x2c2abd[_0x18f5e2(0x145)](_0x21087a+0x8),_0x262916=_0x2c2abd[_0x18f5e2(0x145)](_0x21087a+0xa),_0x4d0395=_0x2c2abd[_0x18f5e2(0xfe)](_0x21087a+0x10),_0x541fc1=_0x2c2abd['readUInt32LE'](_0x21087a+0x14),_0x53ec21=_0x2c2abd[_0x18f5e2(0xfe)](_0x21087a+0x18),_0x830d13=_0x2c2abd[_0x18f5e2(0x145)](_0x21087a+0x1c),_0x44f0c3=_0x2c2abd[_0x18f5e2(0x145)](_0x21087a+0x1e),_0x5e901e=_0x2c2abd[_0x18f5e2(0x145)](_0x21087a+0x20),_0x1470d3=_0x2c2abd[_0x18f5e2(0xfe)](_0x21087a+0x2a),_0x189e78=_0x21087a+0x2e,_0x2ad47c=_0x189e78+_0x830d13;if(_0x2ad47c>_0x2c2abd[_0x18f5e2(0x151)])throw CliErrors['validation'](_0x18f5e2(0x128));if((_0xeefa37&0x1)!==0x0)throw CliErrors[_0x18f5e2(0x135)](_0x18f5e2(0x12c));if(_0x262916!==ZIP_METHOD_STORE&&_0x262916!==ZIP_METHOD_DEFLATE)throw CliErrors[_0x18f5e2(0x135)]('Runtime\x20Skill\x20package\x20contains\x20unsupported\x20compression\x20method.');const _0x2971bb=normalizeSkillRelativePath(_0x2c2abd[_0x18f5e2(0xf7)](_0x189e78,_0x2ad47c)[_0x18f5e2(0xd7)](_0x18f5e2(0x15e)));if(_0x2971bb[_0x18f5e2(0xc0)]('/'))throw CliErrors[_0x18f5e2(0x135)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x2971bb);if(_0x53ec21>MAX_SKILL_FILE_BYTES)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20'+_0x2971bb);_0x3f226a+=_0x53ec21;if(_0x3f226a>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0x18f5e2(0x16a));const _0x1c4f5f=readZipEntryData(_0x2c2abd,_0x1470d3,_0x2971bb,_0x541fc1),_0x3b945f=_0x262916===ZIP_METHOD_STORE?_0x1c4f5f:inflateRawSync(_0x1c4f5f);if(_0x3b945f[_0x18f5e2(0x151)]!==_0x53ec21)throw CliErrors[_0x18f5e2(0x135)](_0x18f5e2(0x165)+_0x2971bb);if(crc32(_0x3b945f)!==_0x4d0395)throw CliErrors['validation'](_0x18f5e2(0x11e)+_0x2971bb);_0x1b0d65[_0x18f5e2(0x124)]({'path':_0x2971bb,'bytes':_0x3b945f}),_0x21087a=_0x2ad47c+_0x44f0c3+_0x5e901e;}if(_0x21087a!==_0x75ce64+_0x32c67a)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20central\x20directory\x20size\x20mismatch.');return _0x1b0d65[_0x18f5e2(0x12d)](compareSkillFiles);}function readZipEntryData(_0x32e112,_0x388da3,_0x372fb9,_0x562388){const _0x175c0f=a69_0x365af1;if(_0x388da3+0x1e>_0x32e112[_0x175c0f(0x151)])throw CliErrors['validation'](_0x175c0f(0x175)+_0x372fb9);if(_0x32e112[_0x175c0f(0xfe)](_0x388da3)!==ZIP_LOCAL_FILE_HEADER_SIGNATURE)throw CliErrors[_0x175c0f(0x135)](_0x175c0f(0xc8)+_0x372fb9);const _0x387e78=_0x32e112['readUInt16LE'](_0x388da3+0x1a),_0x244780=_0x32e112[_0x175c0f(0x145)](_0x388da3+0x1c),_0x4f9216=_0x388da3+0x1e,_0x4c97c4=_0x4f9216+_0x387e78,_0x500eb9=_0x4c97c4+_0x244780,_0x3d1339=_0x500eb9+_0x562388;if(_0x4c97c4>_0x32e112[_0x175c0f(0x151)]||_0x3d1339>_0x32e112['length'])throw CliErrors[_0x175c0f(0x135)](_0x175c0f(0x167)+_0x372fb9);const _0x2cba09=normalizeSkillRelativePath(_0x32e112[_0x175c0f(0xf7)](_0x4f9216,_0x4c97c4)[_0x175c0f(0xd7)](_0x175c0f(0x15e)));if(_0x2cba09!==_0x372fb9)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20local\x20path\x20mismatch:\x20'+_0x372fb9);return _0x32e112[_0x175c0f(0xf7)](_0x500eb9,_0x3d1339);}function findEndOfCentralDirectory(_0x18476a){const _0x921c65=a69_0x365af1,_0x527c4d=Math[_0x921c65(0x15c)](0x0,_0x18476a[_0x921c65(0x151)]-0x16-0xffff);for(let _0x5fa077=_0x18476a[_0x921c65(0x151)]-0x16;_0x5fa077>=_0x527c4d;_0x5fa077-=0x1){if(_0x18476a['readUInt32LE'](_0x5fa077)===ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE){const _0x3dca1e=_0x18476a[_0x921c65(0x145)](_0x5fa077+0x14);if(_0x5fa077+0x16+_0x3dca1e===_0x18476a[_0x921c65(0x151)])return _0x5fa077;}}return-0x1;}function createCrc32Table(){const _0x1778f9=new Uint32Array(0x100);for(let _0x266bae=0x0;_0x266bae<0x100;_0x266bae+=0x1){let _0xa25a30=_0x266bae;for(let _0x59da66=0x0;_0x59da66<0x8;_0x59da66+=0x1){_0xa25a30=(_0xa25a30&0x1)!==0x0?0xedb88320^_0xa25a30>>>0x1:_0xa25a30>>>0x1;}_0x1778f9[_0x266bae]=_0xa25a30>>>0x0;}return _0x1778f9;}function crc32(_0xf72f73){let _0x46eab3=0xffffffff;for(const _0x1bf283 of _0xf72f73){_0x46eab3=CRC32_TABLE[(_0x46eab3^_0x1bf283)&0xff]^_0x46eab3>>>0x8;}return(_0x46eab3^0xffffffff)>>>0x0;}function compareSkillFiles(_0x383918,_0x33adf9){const _0x59f7e4=a69_0x365af1;if(_0x383918[_0x59f7e4(0x171)]===SKILL_FILE)return _0x33adf9[_0x59f7e4(0x171)]===SKILL_FILE?0x0:-0x1;if(_0x33adf9[_0x59f7e4(0x171)]===SKILL_FILE)return 0x1;return Buffer[_0x59f7e4(0x14c)](Buffer[_0x59f7e4(0xdb)](_0x383918[_0x59f7e4(0x171)],_0x59f7e4(0x15e)),Buffer[_0x59f7e4(0xdb)](_0x33adf9[_0x59f7e4(0x171)],_0x59f7e4(0x15e)));}function materializeFiles(_0x5da253,_0x7f5f75){const _0xcc9e0b=a69_0x365af1;for(const _0x3b2fa1 of normalizeLocalFiles(_0x7f5f75)){const _0x1d3f7b=resolveManagedFilePath(_0x5da253,_0x3b2fa1['path']);mkdirSync(dirname(_0x1d3f7b),{'recursive':!![],'mode':0x1c0}),writeTextAtomic(_0x1d3f7b,_0x3b2fa1[_0xcc9e0b(0x14f)],0x180);}}function removeStaleManagedFiles(_0x464015,_0x141ee9,_0x13097f){const _0xfa9116=a69_0x365af1;if(!_0x141ee9)return;const _0xcf9415=new Set(normalizeLocalFiles(_0x13097f)[_0xfa9116(0x142)](_0x1320db=>_0x1320db[_0xfa9116(0x171)]));for(const _0x303242 of Object['keys'](_0x141ee9)){if(_0xcf9415['has'](_0x303242))continue;const _0x16e3b0=resolveManagedFilePath(_0x464015,_0x303242);existsSync(_0x16e3b0)&&lstatSync(_0x16e3b0)[_0xfa9116(0xf1)]()&&rmSync(_0x16e3b0,{'force':!![]});}}function resolveManagedFilePath(_0x55eb19,_0x252409){const _0xb90a1d=a69_0x365af1,_0x2b9ad8=normalizeSkillRelativePath(_0x252409),_0x4fe487=realOrResolved(_0x55eb19),_0x1dd4f7=resolve(_0x4fe487,..._0x2b9ad8[_0xb90a1d(0x169)]('/'));if(!isPathInside(_0x1dd4f7,_0x4fe487))throw CliErrors[_0xb90a1d(0x135)](_0xb90a1d(0x144)+_0x252409);return ensureNoSymlinkInManagedPath(_0x4fe487,_0x2b9ad8),_0x1dd4f7;}function ensureNoSymlinkInManagedPath(_0x410c1c,_0x248825){const _0x46b9d1=a69_0x365af1;let _0x1f985f=_0x410c1c;for(const _0x57afce of _0x248825[_0x46b9d1(0x169)]('/')){_0x1f985f=resolve(_0x1f985f,_0x57afce);const _0x1e4b84=lstatIfPresent(_0x1f985f);if(_0x1e4b84?.[_0x46b9d1(0x103)]())throw CliErrors['validation'](_0x46b9d1(0xca)+_0x248825);}}function normalizeSkillRelativePath(_0x5ab072){const _0x476c8c=toPosixPath(_0x5ab072['trim']());return validateSkillRelativePath(_0x476c8c),_0x476c8c;}function validateSkillRelativePath(_0x5718fc){const _0x20919d=a69_0x365af1;if(!_0x5718fc||_0x5718fc[_0x20919d(0xdf)]('/')||_0x5718fc[_0x20919d(0xf5)]('//'))throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x5718fc);for(const _0x306dce of _0x5718fc['split']('/')){if(!_0x306dce||_0x306dce==='.'||_0x306dce==='..')throw CliErrors['validation'](_0x20919d(0x144)+_0x5718fc);}}function toPosixPath(_0x2d941a){const _0x1e1996=a69_0x365af1;return _0x2d941a[_0x1e1996(0x119)](/\\/g,'/');}function isUtf8Text(_0x5710b8){const _0x45ccb1=a69_0x365af1;if(_0x5710b8[_0x45ccb1(0xf5)](0x0))return![];return _0x5710b8[_0x45ccb1(0xd7)]('utf8')['includes']('�')===![];}function ensureManagedSymlink(_0xab904d,_0x146445,_0x39a17b){const _0x37147b=a69_0x365af1;mkdirSync(dirname(_0xab904d),{'recursive':!![],'mode':0x1c0});if(existsSync(_0xab904d)||isDanglingSymlink(_0xab904d)){const _0x5093ff=lstatSync(_0xab904d);if(!_0x5093ff[_0x37147b(0x103)]())throw CliErrors[_0x37147b(0x135)](_0x37147b(0xd8)+_0xab904d);const _0x3dff33=resolveSymlinkTarget(_0xab904d);if(!isPathInside(realOrResolved(_0x3dff33),realOrResolved(_0x39a17b)))throw CliErrors[_0x37147b(0x135)](_0x37147b(0xf2)+_0xab904d);if(realOrResolved(_0x3dff33)===realOrResolved(_0x146445))return{'path':_0xab904d,'target':_0x146445,'action':_0x37147b(0x16b)};return unlinkSync(_0xab904d),symlinkSync(_0x146445,_0xab904d,'dir'),{'path':_0xab904d,'target':_0x146445,'action':_0x37147b(0x101)};}return symlinkSync(_0x146445,_0xab904d,_0x37147b(0xc5)),{'path':_0xab904d,'target':_0x146445,'action':_0x37147b(0xeb)};}function managedAppSkillLinkPaths(_0xa1d1ce,_0x29198d){const _0x3a2db9=a69_0x365af1;if(!existsSync(_0xa1d1ce))return[];const _0x4ba75f=_0x29198d+'--';return readdirSync(_0xa1d1ce,{'withFileTypes':!![]})['filter'](_0x5588b6=>_0x5588b6[_0x3a2db9(0xff)][_0x3a2db9(0xdf)](_0x4ba75f))[_0x3a2db9(0x142)](_0xda292=>resolve(_0xa1d1ce,_0xda292[_0x3a2db9(0xff)]));}function removeManagedSkillLink(_0x301169,_0x2cd15d){const _0xbb0e9a=a69_0x365af1,_0x471ec5=lstatIfPresent(_0x301169);if(!_0x471ec5?.[_0xbb0e9a(0x103)]())return{'path':_0x301169,'action':'skipped','reason':_0xbb0e9a(0x116)};const _0x4abb34=resolveSymlinkTarget(_0x301169);if(!isPathInside(realOrResolved(_0x4abb34),realOrResolved(_0x2cd15d)))return{'path':_0x301169,'action':_0xbb0e9a(0x132),'reason':_0xbb0e9a(0xcc)};return unlinkSync(_0x301169),{'path':_0x301169,'action':_0xbb0e9a(0x173)};}function copyManagedSkillDirectory(_0x1f6628,_0x598d3e){const _0x20cd2f=a69_0x365af1,_0x59b8f9=resolve(_0x598d3e,METADATA_FILE),_0x4ef7eb=existsSync(_0x598d3e);if(_0x4ef7eb){const _0x3e2a0c=lstatSync(_0x598d3e);if(_0x3e2a0c[_0x20cd2f(0x103)]())throw CliErrors[_0x20cd2f(0x135)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x598d3e);if(!_0x3e2a0c['isDirectory']())throw CliErrors[_0x20cd2f(0x135)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x598d3e);const _0x34257a=readMetadataIfPresent(_0x59b8f9);if(_0x34257a?.['scope']!==_0x20cd2f(0x155))throw CliErrors['validation'](_0x20cd2f(0xd2)+_0x598d3e);}mkdirSync(dirname(_0x598d3e),{'recursive':!![],'mode':0x1c0});const _0x5a262c=_0x4ef7eb?readMetadataIfPresent(_0x59b8f9)?.['contentHash']:undefined,_0xaa22d1=readMetadataIfPresent(resolve(_0x1f6628,METADATA_FILE))?.[_0x20cd2f(0x13b)];return _0x4ef7eb&&rmSync(_0x598d3e,{'recursive':!![],'force':!![]}),copySkillDirectory(_0x1f6628,_0x598d3e),{'path':_0x598d3e,'target':_0x1f6628,'action':!_0x4ef7eb?'created':_0x5a262c===_0xaa22d1?'unchanged':_0x20cd2f(0x101)};}function copySkillDirectory(_0x12f2c0,_0x49e071){const _0x4d3a9=a69_0x365af1;mkdirSync(_0x49e071,{'recursive':!![],'mode':0x1c0});for(const _0x2b86e1 of readdirSync(_0x12f2c0,{'withFileTypes':!![]})){const _0x47c878=resolve(_0x12f2c0,_0x2b86e1['name']),_0xb554a2=resolve(_0x49e071,_0x2b86e1[_0x4d3a9(0xff)]);if(_0x2b86e1[_0x4d3a9(0x103)]())throw CliErrors[_0x4d3a9(0x135)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x47c878);if(_0x2b86e1['isDirectory']()){copySkillDirectory(_0x47c878,_0xb554a2);continue;}_0x2b86e1[_0x4d3a9(0xf1)]()&&writeFileSync(_0xb554a2,readFileSync(_0x47c878));}}function isDanglingSymlink(_0x35142f){const _0x5b74f9=a69_0x365af1;try{return lstatSync(_0x35142f)[_0x5b74f9(0x103)]();}catch{return![];}}function resolveSymlinkTarget(_0x3efcf6){const _0x241d4a=readlinkSync(_0x3efcf6);return isAbsolute(_0x241d4a)?_0x241d4a:resolve(dirname(_0x3efcf6),_0x241d4a);}function isPathInside(_0x912089,_0x1d59b0){const _0x3e689c=a69_0x365af1,_0x183d99=_0x912089[_0x3e689c(0xc0)](sep)?_0x912089:''+_0x912089+sep,_0x3c32ce=_0x1d59b0['endsWith'](sep)?_0x1d59b0:''+_0x1d59b0+sep;return _0x912089===_0x1d59b0||_0x183d99['startsWith'](_0x3c32ce);}function realOrResolved(_0x402a10){try{return realpathSync(_0x402a10);}catch{return resolve(_0x402a10);}}function lstatIfPresent(_0x4e1329){try{return lstatSync(_0x4e1329);}catch{return undefined;}}function writeTextAtomic(_0x4f13b7,_0xcabf9,_0x2eabd1){const _0x248f98=a69_0x365af1,_0x2790fb=_0x4f13b7+'.tmp';try{writeFileSync(_0x2790fb,_0xcabf9,{'encoding':_0x248f98(0x15e),'mode':_0x2eabd1}),renameSync(_0x2790fb,_0x4f13b7);}catch(_0x44384a){try{rmSync(_0x2790fb,{'force':!![]});}catch{}throw _0x44384a;}}function writeJsonAtomic(_0x2e705e,_0x468e31){const _0x47bd1b=a69_0x365af1;writeTextAtomic(_0x2e705e,JSON[_0x47bd1b(0x12e)](_0x468e31,null,0x2)+'\x0a',0x180);}
1
+ const a69_0x137f9d=a69_0x551f;(function(_0x498933,_0x4ee00e){const _0x227ced=a69_0x551f,_0x545d39=_0x498933();while(!![]){try{const _0x76fcee=-parseInt(_0x227ced(0x1f3))/0x1*(-parseInt(_0x227ced(0x1b2))/0x2)+parseInt(_0x227ced(0x1f1))/0x3*(parseInt(_0x227ced(0x1ac))/0x4)+parseInt(_0x227ced(0x1e4))/0x5*(-parseInt(_0x227ced(0x1de))/0x6)+parseInt(_0x227ced(0x1f9))/0x7*(-parseInt(_0x227ced(0x1d7))/0x8)+-parseInt(_0x227ced(0x218))/0x9*(-parseInt(_0x227ced(0x216))/0xa)+parseInt(_0x227ced(0x1fd))/0xb+-parseInt(_0x227ced(0x1d5))/0xc*(parseInt(_0x227ced(0x168))/0xd);if(_0x76fcee===_0x4ee00e)break;else _0x545d39['push'](_0x545d39['shift']());}catch(_0x34a24f){_0x545d39['push'](_0x545d39['shift']());}}}(a69_0x234f,0x1e074));function a69_0x551f(_0xad78a3,_0x5567ce){_0xad78a3=_0xad78a3-0x15a;const _0x234fab=a69_0x234f();let _0x551fd3=_0x234fab[_0xad78a3];return _0x551fd3;}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=a69_0x137f9d(0x177),SKILL_FILE=a69_0x137f9d(0x20a),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,a69_0x137f9d(0x17c)]),IGNORED_DIR_NAMES=new Set([a69_0x137f9d(0x1ea),a69_0x137f9d(0x1c2),a69_0x137f9d(0x1ee),a69_0x137f9d(0x1dc),a69_0x137f9d(0x1ba),a69_0x137f9d(0x200),a69_0x137f9d(0x1ad),a69_0x137f9d(0x21b),a69_0x137f9d(0x1d1),a69_0x137f9d(0x19c)]),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(_0x3cfabe={}){const _0x4e71cd=a69_0x137f9d,_0x14a456=_0x3cfabe[_0x4e71cd(0x164)]??homedir(),_0x1b3219=resolve(_0x14a456,PRODUCT_CONFIG[_0x4e71cd(0x1fb)],_0x4e71cd(0x16b)),_0x1dda4a=trimmedEnv(_0x4e71cd(0x1a4)),_0x15718a=trimmedEnv(_0x4e71cd(0x166));return{'homeDir':_0x14a456,'cacheRoot':_0x1b3219,'managedRoot':resolve(_0x14a456,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0x3cfabe['agentsSkillsDir']??_0x1dda4a??resolve(_0x14a456,'.agents',_0x4e71cd(0x19e)),'claudeSkillsDir':_0x3cfabe[_0x4e71cd(0x1ab)]??_0x15718a??resolve(_0x14a456,_0x4e71cd(0x1f7),'skills')};}export function getRuntimeSkillCacheRoot(_0x9b90ae,_0x30816c,_0x3ff4e3={}){const _0x4f1e6d=resolveSkillSyncPaths(_0x3ff4e3);return resolve(_0x4f1e6d['cacheRoot'],_0x9b90ae,fingerprintAccessKey(_0x30816c),'skills');}export function getRuntimeSkillDir(_0x1b2330,_0x59779,_0x1e306f,_0x4778d7,_0x346c32,_0x29a0bb={}){const _0x53b615=a69_0x137f9d;return resolve(getRuntimeSkillCacheRoot(_0x1b2330,_0x59779,_0x29a0bb),safePathSegment(_0x1e306f,_0x53b615(0x170)),_0x4778d7,safePathSegment(_0x346c32,'skillCode'));}export function contentHash(_0x24efc1){const _0x306c2a=a69_0x137f9d;return createHash(_0x306c2a(0x1e3))[_0x306c2a(0x163)](_0x24efc1)['digest'](_0x306c2a(0x17f));}function bufferSha256(_0x192017){const _0x33c35a=a69_0x137f9d;return createHash(_0x33c35a(0x1e3))['update'](_0x192017)['digest'](_0x33c35a(0x17f));}export function fileTreeHash(_0x478cb6){const _0x380842=a69_0x137f9d,_0x46064a=createHash(_0x380842(0x1e3));for(const _0x10c57f of normalizeManifestFiles(_0x478cb6)){_0x46064a[_0x380842(0x163)](_0x10c57f[_0x380842(0x1c0)]),_0x46064a['update']('\x00'),_0x46064a[_0x380842(0x163)](_0x10c57f[_0x380842(0x1e3)]),_0x46064a[_0x380842(0x163)]('\x00'),_0x46064a[_0x380842(0x163)](String(_0x10c57f[_0x380842(0x1ff)])),_0x46064a[_0x380842(0x163)]('\x00');}return _0x46064a[_0x380842(0x213)]('hex');}export function buildSkillPackage(_0x21dda4){const _0x1a454c=a69_0x137f9d,_0x3da569=normalizeLocalFiles(_0x21dda4);if(!_0x3da569[_0x1a454c(0x19d)](_0x11173b=>_0x11173b['path']===SKILL_FILE))throw CliErrors[_0x1a454c(0x1e5)]('Missing\x20'+SKILL_FILE+_0x1a454c(0x20f));const _0x285815=localFilesToManifestFiles(_0x3da569),_0x391cc9=createDeterministicZipPackage(_0x3da569);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x285815),'zipSha256':bufferSha256(_0x391cc9),'zipSize':_0x391cc9[_0x1a454c(0x178)],'files':_0x285815},'packageBytes':_0x391cc9,'packageBase64':_0x391cc9['toString'](_0x1a454c(0x1f4))};}export function verifyRuntimeSkillPackage(_0x241cd0,_0x4349d5){const _0x49c3be=a69_0x137f9d,_0x2fd00a=normalizePackageManifest(_0x241cd0,{'requireOssPath':![]});if(!_0x2fd00a)throw CliErrors[_0x49c3be(0x1e5)](_0x49c3be(0x1a9));return extractAndVerifyPackage(_0x2fd00a,_0x4349d5);}export function materializeRuntimeSkill(_0xc3751f,_0x25c490,_0x5b203f){const _0x3ccd86=a69_0x137f9d,_0xe62273=requireSkillCode(_0xc3751f),_0x3a86d0=normalizeRemoteManifest(_0xc3751f['files']),_0x1ee5f5=_0x3a86d0!==undefined,_0x1ca6b2=_0x1ee5f5?requirePackageBytes(_0xe62273,_0x5b203f['packageBytes']):undefined,_0x210b16=_0x1ee5f5?extractAndVerifyPackage(_0x3a86d0,_0x1ca6b2):[{'path':SKILL_FILE,'content':_0xc3751f[_0x3ccd86(0x1cd)]??''}],_0x223726=_0x210b16[_0x3ccd86(0x1cc)](_0x2faac0=>_0x2faac0[_0x3ccd86(0x1c0)]===SKILL_FILE);if(!_0x223726)throw CliErrors['validation'](_0x3ccd86(0x1ae)+SKILL_FILE+':\x20'+_0xe62273);if(_0x1ee5f5&&_0xc3751f[_0x3ccd86(0x1cd)]!==undefined&&_0xc3751f['content']!==_0x223726[_0x3ccd86(0x1cd)])throw CliErrors['validation'](_0x3ccd86(0x1f2)+SKILL_FILE+_0x3ccd86(0x16c)+_0xe62273);const _0x303860=withMaterializedSkillFrontmatter(_0x210b16,_0xc3751f,_0xe62273),_0x30a1bf=_0x303860['find'](_0x3d68af=>_0x3d68af[_0x3ccd86(0x1c0)]===SKILL_FILE),_0x3b8374=_0x30a1bf['content'],_0xd167e7=getRuntimeSkillDir(_0x5b203f['env'],_0x5b203f[_0x3ccd86(0x20d)],_0x5b203f[_0x3ccd86(0x170)],_0x25c490,_0xe62273,_0x5b203f[_0x3ccd86(0x202)]),_0x472316=resolve(_0xd167e7,SKILL_FILE),_0x12286e=resolve(_0xd167e7,METADATA_FILE),_0x2dea48=contentHash(_0x3b8374),_0x2c19b8=readMetadataIfPresent(_0x12286e)?.[_0x3ccd86(0x16f)];ensurePulledFilesCanBeOverwritten(_0xd167e7,_0x12286e,_0x303860,_0x5b203f['force']===!![]),mkdirSync(_0xd167e7,{'recursive':!![],'mode':0x1c0});const _0x4fbd65=existsSync(_0x472316)?readFileSync(_0x472316,_0x3ccd86(0x1a6)):undefined;return materializeFiles(_0xd167e7,_0x303860),_0x1ee5f5&&removeStaleManagedFiles(_0xd167e7,_0x2c19b8,_0x303860),writeJsonAtomic(_0x12286e,buildMetadata(_0xc3751f,_0x25c490,_0x5b203f[_0x3ccd86(0x170)],_0x2dea48,_0x5b203f[_0x3ccd86(0x174)],_0x1ee5f5?_0x303860:undefined)),{'skill':_0xc3751f,'scope':_0x25c490,'dir':_0xd167e7,'skillMdPath':_0x472316,'metadataPath':_0x12286e,'contentHash':_0x2dea48,'changed':_0x4fbd65!==_0x3b8374};}function withMaterializedSkillFrontmatter(_0x19166a,_0x44f0a7,_0x1beb13){const _0x1f4595=a69_0x137f9d;return normalizeLocalFiles(_0x19166a)[_0x1f4595(0x1d0)](_0x26551c=>{const _0x20f7f4=_0x1f4595;if(_0x26551c[_0x20f7f4(0x1c0)]!==SKILL_FILE||hasYamlFrontmatter(_0x26551c['content']))return _0x26551c;return{..._0x26551c,'content':prependSkillFrontmatter(_0x26551c[_0x20f7f4(0x1cd)],{'name':_0x1beb13,'description':_0x44f0a7[_0x20f7f4(0x217)]?.[_0x20f7f4(0x190)]()||_0x44f0a7['skillName']?.[_0x20f7f4(0x190)]()||_0x1beb13})};});}function hasYamlFrontmatter(_0x3f333b){return/^\uFEFF?---\s*\r?\n/['test'](_0x3f333b);}function prependSkillFrontmatter(_0x4e37d1,_0x4d8e84){const _0x8a6bee=a69_0x137f9d,_0x54a421=_0x4e37d1['replace'](/^\uFEFF/,'');return['---',_0x8a6bee(0x215)+yamlString(_0x4d8e84[_0x8a6bee(0x1e1)]),_0x8a6bee(0x1fc)+yamlString(_0x4d8e84[_0x8a6bee(0x217)]),_0x8a6bee(0x18f),'',_0x54a421]['join']('\x0a');}function yamlString(_0x7016ef){const _0x1d1f75=a69_0x137f9d;return JSON['stringify'](_0x7016ef[_0x1d1f75(0x187)](/\r/g,'')[_0x1d1f75(0x190)]());}export function linkEffectiveRuntimeSkills(_0x3c367c,_0x3c4994,_0x3aaa9d={}){const _0x47b0ff=a69_0x137f9d,_0x57074b=new Map();for(const _0x29daf9 of _0x3c367c){const _0x8571ca=_0x29daf9[_0x47b0ff(0x1b5)][_0x47b0ff(0x17a)];if(!_0x8571ca)continue;const _0x3de798=_0x57074b[_0x47b0ff(0x1b6)](_0x8571ca);(!_0x3de798||_0x29daf9[_0x47b0ff(0x15e)]===_0x47b0ff(0x208))&&_0x57074b[_0x47b0ff(0x1df)](_0x8571ca,_0x29daf9);}const _0x18f5ca=[],_0x8ea7c3=resolveSkillSyncPaths(_0x3aaa9d);for(const _0x326fd1 of _0x57074b['values']()){const _0x492142=requireSkillCode(_0x326fd1['skill']),_0x45fb75=_0x3c4994+'--'+_0x492142;for(const _0x213770 of[_0x8ea7c3['agentsSkillsDir'],_0x8ea7c3[_0x47b0ff(0x1ab)]]){_0x18f5ca[_0x47b0ff(0x1a1)](ensureManagedSymlink(resolve(_0x213770,_0x45fb75),_0x326fd1[_0x47b0ff(0x1b0)],_0x8ea7c3[_0x47b0ff(0x1a2)]));}}return _0x18f5ca;}export function pruneStaleRuntimeSkillLinks(_0x2253b7,_0x221191,_0x4f2840={},_0x1064da){const _0x55cce3=a69_0x137f9d,_0x3bcfd3=resolveSkillSyncPaths(_0x4f2840),_0x2cc0a2=new Set([..._0x221191][_0x55cce3(0x1d0)](_0x19c752=>_0x19c752[_0x55cce3(0x190)]())[_0x55cce3(0x19b)](Boolean)),_0x437338=_0x1064da?new Set([..._0x1064da][_0x55cce3(0x1d0)](_0x10c10f=>_0x10c10f['trim']())[_0x55cce3(0x19b)](Boolean)):undefined,_0x3454f7=[];for(const _0x48e5a2 of[_0x3bcfd3[_0x55cce3(0x1c7)],_0x3bcfd3['claudeSkillsDir']]){for(const _0x30b591 of managedAppSkillLinkPaths(_0x48e5a2,_0x2253b7)){const _0x85be4b=basename(_0x30b591)[_0x55cce3(0x1c9)]((_0x2253b7+'--')[_0x55cce3(0x178)]);if(_0x437338&&!_0x437338['has'](_0x85be4b))continue;if(_0x2cc0a2[_0x55cce3(0x210)](_0x85be4b))continue;_0x3454f7[_0x55cce3(0x1a1)](removeManagedSkillLink(_0x30b591,_0x3bcfd3[_0x55cce3(0x1a2)]));}}return _0x3454f7;}export function pruneStaleRuntimeSkillCache(_0x49fa35,_0x3896cc={}){const _0x2297b1=a69_0x137f9d,_0x1f6036=new Set([..._0x49fa35[_0x2297b1(0x188)]][_0x2297b1(0x1d0)](_0x269a2f=>_0x269a2f['trim']())['filter'](Boolean)),_0x4d466b=_0x49fa35[_0x2297b1(0x1f5)]?new Set([..._0x49fa35[_0x2297b1(0x1f5)]]['map'](_0x188ef5=>_0x188ef5[_0x2297b1(0x190)]())['filter'](Boolean)):undefined,_0x2fafe6=_0x49fa35[_0x2297b1(0x18c)]??['personal','company'],_0x1d9f8e=resolve(getRuntimeSkillCacheRoot(_0x49fa35[_0x2297b1(0x194)],_0x49fa35[_0x2297b1(0x20d)],_0x3896cc),safePathSegment(_0x49fa35[_0x2297b1(0x170)],_0x2297b1(0x170))),_0x3252dd=[];for(const _0x3335d2 of _0x2fafe6){const _0x491b91=resolve(_0x1d9f8e,_0x3335d2);if(!existsSync(_0x491b91))continue;for(const _0x88f31c of readdirSync(_0x491b91,{'withFileTypes':!![]})){if(!_0x88f31c['isDirectory']())continue;const _0x5bd3d1=_0x88f31c[_0x2297b1(0x1e1)];if(_0x4d466b&&!_0x4d466b[_0x2297b1(0x210)](_0x5bd3d1))continue;if(_0x1f6036[_0x2297b1(0x210)](_0x5bd3d1))continue;const _0x322936=resolve(_0x491b91,_0x5bd3d1),_0x1d55f5=readMetadataIfPresent(resolve(_0x322936,METADATA_FILE));if(_0x1d55f5?.[_0x2297b1(0x170)]!==_0x49fa35['appCode']||_0x1d55f5[_0x2297b1(0x15e)]!==_0x3335d2||_0x1d55f5[_0x2297b1(0x17a)]!==_0x5bd3d1){_0x3252dd[_0x2297b1(0x1a1)]({'path':_0x322936,'action':_0x2297b1(0x173),'reason':_0x2297b1(0x214)});continue;}rmSync(_0x322936,{'recursive':!![],'force':!![]}),_0x3252dd[_0x2297b1(0x1a1)]({'path':_0x322936,'action':_0x2297b1(0x1b3)});}}return _0x3252dd;}export function linkGlobalRuntimeSkills(_0x50bdb8,_0x59dd6b={}){const _0x1a082f=a69_0x137f9d,_0x3fcc8a=resolveSkillSyncPaths(_0x59dd6b),_0xa33eeb=[];for(const _0x1c6b6b of _0x50bdb8){if(_0x1c6b6b[_0x1a082f(0x15e)]!==_0x1a082f(0x1a5))throw CliErrors[_0x1a082f(0x1e5)](_0x1a082f(0x18d)+_0x1c6b6b[_0x1a082f(0x15e)]);const _0x223d9c=requireSkillCode(_0x1c6b6b['skill']),_0x3e0303=copyManagedSkillDirectory(_0x1c6b6b[_0x1a082f(0x1b0)],resolve(_0x3fcc8a[_0x1a082f(0x1c7)],_0x223d9c));_0xa33eeb['push']({..._0x3e0303,'contentHash':_0x1c6b6b[_0x1a082f(0x16a)]});}return _0xa33eeb;}export function readPushDirectory(_0x1ea7e3,_0x2f1cb8){const _0x374dbd=a69_0x137f9d,_0x137d14=resolve(_0x1ea7e3);if(!existsSync(_0x137d14)||!lstatSync(_0x137d14)[_0x374dbd(0x21a)]())throw CliErrors['validation'](_0x374dbd(0x15d)+_0x1ea7e3);const _0xd558c8=resolve(_0x137d14,SKILL_FILE);if(!existsSync(_0xd558c8)||!lstatSync(_0xd558c8)[_0x374dbd(0x180)]())throw CliErrors[_0x374dbd(0x1e5)](_0x374dbd(0x205)+SKILL_FILE+':\x20'+_0xd558c8);const _0x163bb7=readMetadataIfPresent(resolve(_0x137d14,METADATA_FILE));if(_0x163bb7?.[_0x374dbd(0x15e)]&&_0x163bb7['scope']!==_0x374dbd(0x208))throw CliErrors['validation'](_0x374dbd(0x182)+METADATA_FILE+_0x374dbd(0x186)+_0x163bb7[_0x374dbd(0x15e)]+'\x22.');if(_0x163bb7?.[_0x374dbd(0x170)]&&_0x163bb7['appCode']!==_0x2f1cb8)throw CliErrors['validation']('Skill\x20metadata\x20appCode\x20\x22'+_0x163bb7['appCode']+_0x374dbd(0x1ed)+_0x2f1cb8+'\x22.');const _0x5c7303=scanSkillDirectory(_0x137d14),_0x4fb10f=buildSkillPackage(_0x5c7303),_0x2bd616=readFileSync(_0xd558c8,_0x374dbd(0x1a6)),_0x2a4a2c=_0x163bb7?.[_0x374dbd(0x17a)]??deriveSkillCodeFromDirectory(_0x137d14,_0x2f1cb8);if(!_0x2a4a2c)throw CliErrors[_0x374dbd(0x1e5)](_0x374dbd(0x21f)+METADATA_FILE+'\x20or\x20directory\x20name.');return{'skillCode':_0x2a4a2c,'metadata':_0x163bb7,'input':{'skillCode':_0x2a4a2c,'skillName':_0x163bb7?.['skillName'],'description':_0x163bb7?.[_0x374dbd(0x217)],'content':_0x2bd616,'files':_0x4fb10f['manifest'],'packageBase64':_0x4fb10f[_0x374dbd(0x1e8)],'tags':_0x163bb7?.[_0x374dbd(0x1be)],'version':_0x163bb7?.[_0x374dbd(0x204)],'sourceSessionId':_0x163bb7?.['sourceSessionId']}};}export function recordPushedRuntimeSkill(_0x3784c0,_0x5dcf32,_0x216b89,_0x214ad4={}){const _0x5d1d3a=a69_0x137f9d,_0xc1de93=resolve(_0x3784c0),_0x2a2e6e=scanSkillDirectory(_0xc1de93),_0x5c6b95=_0x2a2e6e[_0x5d1d3a(0x1cc)](_0x194638=>_0x194638[_0x5d1d3a(0x1c0)]===SKILL_FILE)?.['content']??'',_0x71d9a7=tryNormalizeRemoteManifest(_0x5dcf32['files']),_0x34cf66={..._0x5dcf32,'content':_0x5dcf32[_0x5d1d3a(0x1cd)]??_0x5c6b95,'files':_0x71d9a7},_0xab8095=_0x71d9a7?normalizeLocalFiles(_0x2a2e6e)[_0x5d1d3a(0x19b)](_0x218b25=>_0x71d9a7[_0x5d1d3a(0x1c8)][_0x5d1d3a(0x19d)](_0x32403a=>_0x32403a[_0x5d1d3a(0x1c0)]===_0x218b25['path'])):undefined,_0x504d45=buildMetadata(_0x34cf66,_0x214ad4['scope']??_0x5d1d3a(0x208),_0x216b89,contentHash(_0x34cf66['content']??''),_0x214ad4[_0x5d1d3a(0x193)],_0xab8095);writeJsonAtomic(resolve(_0xc1de93,METADATA_FILE),_0x504d45);}export function deriveSkillCodeFromDirectory(_0x28face,_0x543207){const _0x1c10a1=a69_0x137f9d,_0x34ae19=basename(resolve(_0x28face)),_0x219b00=_0x543207+'--';return _0x34ae19[_0x1c10a1(0x175)](_0x219b00)?_0x34ae19[_0x1c10a1(0x1c9)](_0x219b00[_0x1c10a1(0x178)]):_0x34ae19;}export function readMetadataIfPresent(_0x496108){const _0x26a0cf=a69_0x137f9d;if(!existsSync(_0x496108))return undefined;try{const _0x2d189f=JSON['parse'](readFileSync(_0x496108,_0x26a0cf(0x1a6)));return _0x2d189f;}catch{throw CliErrors['validation'](_0x26a0cf(0x1db)+METADATA_FILE+':\x20'+_0x496108);}}function buildMetadata(_0x183725,_0x19677c,_0x16e78c,_0x428441,_0x442ba0,_0x1d8e04){const _0xb9f4bf=a69_0x137f9d,_0x2cce58=_0x1d8e04?normalizeLocalFiles(_0x1d8e04):[],_0x38033a=normalizeRemoteManifest(_0x183725[_0xb9f4bf(0x1c8)]),_0x2aa173=_0x2cce58['length']>0x0?Object[_0xb9f4bf(0x198)](_0x2cce58['map'](_0x1a787d=>[_0x1a787d[_0xb9f4bf(0x1c0)],contentHash(_0x1a787d[_0xb9f4bf(0x1cd)])])):undefined;return{'schemaVersion':_0x2cce58[_0xb9f4bf(0x178)]>0x0?0x2:0x1,'id':_0x183725['id'],'appCode':_0x16e78c,'skillCode':requireSkillCode(_0x183725),'skillName':_0x183725['skillName'],'description':_0x183725[_0xb9f4bf(0x217)],'scope':_0x19677c,'readonly':_0x19677c!==_0xb9f4bf(0x208)||_0x183725[_0xb9f4bf(0x1e2)]===!![],'tenantCode':_0x183725['tenantCode'],'userId':_0x183725[_0xb9f4bf(0x1c1)],'version':_0x183725[_0xb9f4bf(0x204)],'status':_0x183725[_0xb9f4bf(0x1dd)],'tags':Array[_0xb9f4bf(0x1bb)](_0x183725[_0xb9f4bf(0x1be)])?_0x183725[_0xb9f4bf(0x1be)]:[],'hasUpstreamUpdate':_0x183725['hasUpstreamUpdate'],'forkedFromSkillId':_0x183725[_0xb9f4bf(0x197)],'forkedFromVersion':_0x183725[_0xb9f4bf(0x1d4)],'sourceSessionId':_0x183725[_0xb9f4bf(0x18a)],'contentHash':_0x428441,'fileHashes':_0x2aa173,'treeHash':_0x2cce58['length']>0x0?fileTreeHash(localFilesToManifestFiles(_0x2cce58)):_0x38033a?.['treeSha256'],'ossPath':_0x38033a?.[_0xb9f4bf(0x220)],'zipSha256':_0x38033a?.[_0xb9f4bf(0x181)],'zipSize':_0x38033a?.[_0xb9f4bf(0x1a3)],'files':_0x2cce58[_0xb9f4bf(0x178)]>0x0?_0x2cce58[_0xb9f4bf(0x1d0)](_0x956b53=>({'path':_0x956b53['path'],'hash':contentHash(_0x956b53[_0xb9f4bf(0x1cd)]),'size':Buffer[_0xb9f4bf(0x195)](_0x956b53['content'],'utf8')})):undefined,'pulledAt':_0x442ba0??new Date()['toISOString']()};}function requireSkillCode(_0x371d69){const _0x1e2802=a69_0x137f9d,_0xf6c8fb=_0x371d69[_0x1e2802(0x17a)]?.[_0x1e2802(0x190)]();if(!_0xf6c8fb)throw CliErrors[_0x1e2802(0x1e5)]('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0xf6c8fb;}function trimmedEnv(_0x16fdf7){const _0x42534b=a69_0x137f9d,_0x380e1c=productEnv(_0x16fdf7)?.[_0x42534b(0x190)]();return _0x380e1c?_0x380e1c:undefined;}function safePathSegment(_0x17960c,_0x18042d=a69_0x137f9d(0x1a8)){const _0x26617e=a69_0x137f9d;if(!_0x17960c||_0x17960c[_0x26617e(0x17d)]('/')||_0x17960c[_0x26617e(0x17d)]('\x5c')||_0x17960c['includes']('..'))throw CliErrors['validation'](_0x26617e(0x1bd)+_0x18042d+_0x26617e(0x15a)+_0x17960c);return _0x17960c;}function ensurePulledFilesCanBeOverwritten(_0x50e661,_0x4a5f75,_0x26b387,_0x424be8){const _0x452ad5=a69_0x137f9d;if(_0x424be8||!existsSync(_0x4a5f75))return;const _0x20771c=readMetadataIfPresent(_0x4a5f75);if(!_0x20771c)return;const _0x27a739=_0x20771c[_0x452ad5(0x16f)]&&Object[_0x452ad5(0x21e)](_0x20771c['fileHashes'])[_0x452ad5(0x178)]>0x0?_0x20771c[_0x452ad5(0x16f)]:undefined;if(_0x27a739)for(const [_0x5eaec9,_0x3eba75]of Object[_0x452ad5(0x162)](_0x27a739)){const _0x2c8847=resolveManagedFilePath(_0x50e661,_0x5eaec9);if(!existsSync(_0x2c8847))throw CliErrors[_0x452ad5(0x1e5)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x50e661,_0x452ad5(0x185)+_0x5eaec9);const _0x2c3190=lstatSync(_0x2c8847);if(!_0x2c3190[_0x452ad5(0x180)]())throw CliErrors['validation'](_0x452ad5(0x1d2)+_0x50e661,_0x452ad5(0x199)+_0x5eaec9);const _0x31227c=contentHash(readFileSync(_0x2c8847,'utf8'));if(_0x31227c!==_0x3eba75)throw CliErrors[_0x452ad5(0x1e5)](_0x452ad5(0x1d2)+_0x50e661+'.\x20Changed\x20file:\x20'+_0x5eaec9,_0x452ad5(0x191)+_0x5eaec9);}else{const _0x5be572=resolve(_0x50e661,SKILL_FILE);if(existsSync(_0x5be572)&&_0x20771c[_0x452ad5(0x16a)]){const _0x5075a9=contentHash(readFileSync(_0x5be572,_0x452ad5(0x1a6)));if(_0x5075a9!==_0x20771c[_0x452ad5(0x16a)])throw CliErrors['validation']('Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20'+_0x5be572,'Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.');}}for(const _0x4d1de1 of normalizeLocalFiles(_0x26b387)){if(_0x27a739?.[_0x4d1de1[_0x452ad5(0x1c0)]])continue;if(!_0x27a739&&_0x4d1de1[_0x452ad5(0x1c0)]===SKILL_FILE)continue;const _0x3e2254=resolveManagedFilePath(_0x50e661,_0x4d1de1[_0x452ad5(0x1c0)]);if(!existsSync(_0x3e2254))continue;const _0x218f7c=lstatSync(_0x3e2254);if(!_0x218f7c[_0x452ad5(0x180)]())throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x50e661,'Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20'+_0x4d1de1[_0x452ad5(0x1c0)]);const _0x30ef16=contentHash(readFileSync(_0x3e2254,_0x452ad5(0x1a6)));if(_0x30ef16!==contentHash(_0x4d1de1[_0x452ad5(0x1cd)]))throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x50e661,_0x452ad5(0x1e9)+_0x4d1de1[_0x452ad5(0x1c0)]);}}function scanSkillDirectory(_0x9c3613){const _0x1ad563=realOrResolved(_0x9c3613),_0x1ddfe2=[];let _0x4cff5f=0x0;function _0x2dd345(_0x4e7689){const _0x577f17=a69_0x551f,_0x3d4cf2=readdirSync(_0x4e7689,{'withFileTypes':!![]})['sort']((_0x525abf,_0x54ef6f)=>_0x525abf[_0x577f17(0x1e1)]['localeCompare'](_0x54ef6f['name']));for(const _0x54a6eb of _0x3d4cf2){if(_0x54a6eb[_0x577f17(0x21a)]()&&IGNORED_DIR_NAMES['has'](_0x54a6eb[_0x577f17(0x1e1)]))continue;if(IGNORED_FILE_NAMES[_0x577f17(0x210)](_0x54a6eb['name']))continue;const _0x2e0fa5=resolve(_0x4e7689,_0x54a6eb['name']);if(_0x54a6eb['isSymbolicLink']())throw CliErrors[_0x577f17(0x1e5)](_0x577f17(0x20e)+_0x2e0fa5);const _0x357700=toPosixPath(relative(_0x1ad563,_0x2e0fa5));if(_0x54a6eb[_0x577f17(0x21a)]()){_0x2dd345(_0x2e0fa5);continue;}if(!_0x54a6eb[_0x577f17(0x180)]())continue;validateSkillRelativePath(_0x357700);const _0x1b4e41=readFileSync(_0x2e0fa5);if(_0x1b4e41['length']>MAX_SKILL_FILE_BYTES)throw CliErrors['validation'](_0x577f17(0x1af)+_0x357700);_0x4cff5f+=_0x1b4e41[_0x577f17(0x178)];if(_0x4cff5f>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x577f17(0x1e5)](_0x577f17(0x160));if(!isUtf8Text(_0x1b4e41))throw CliErrors[_0x577f17(0x1e5)]('Skill\x20file\x20is\x20not\x20supported\x20text:\x20'+_0x357700);_0x1ddfe2[_0x577f17(0x1a1)]({'path':_0x357700,'content':_0x1b4e41[_0x577f17(0x1e7)]('utf8')});if(_0x1ddfe2[_0x577f17(0x178)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x577f17(0x184));}}return _0x2dd345(_0x1ad563),normalizeLocalFiles(_0x1ddfe2);}function normalizeLocalFiles(_0x3c85fb){const _0x3c2df9=a69_0x137f9d;if(!Array[_0x3c2df9(0x1bb)](_0x3c85fb)||_0x3c85fb['length']===0x0)return[];if(_0x3c85fb[_0x3c2df9(0x178)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x3c2df9(0x1e5)](_0x3c2df9(0x184));const _0x412b78=new Map();let _0x1e72b3=0x0;for(const _0x830363 of _0x3c85fb){if(!_0x830363||typeof _0x830363!==_0x3c2df9(0x18e)||typeof _0x830363[_0x3c2df9(0x1c0)]!==_0x3c2df9(0x1d6))throw CliErrors[_0x3c2df9(0x1e5)](_0x3c2df9(0x1aa));const _0xfc4881=normalizeSkillRelativePath(_0x830363[_0x3c2df9(0x1c0)]);if(_0x412b78[_0x3c2df9(0x210)](_0xfc4881))throw CliErrors[_0x3c2df9(0x1e5)](_0x3c2df9(0x176)+_0xfc4881);if(typeof _0x830363[_0x3c2df9(0x1cd)]!==_0x3c2df9(0x1d6))throw CliErrors[_0x3c2df9(0x1e5)](_0x3c2df9(0x196)+_0xfc4881);if(_0x830363[_0x3c2df9(0x1cd)][_0x3c2df9(0x17d)]('\x00'))throw CliErrors[_0x3c2df9(0x1e5)](_0x3c2df9(0x212)+_0xfc4881);const _0x523504=Buffer[_0x3c2df9(0x195)](_0x830363['content'],_0x3c2df9(0x1a6));if(_0x523504>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x3c2df9(0x1e5)]('Skill\x20file\x20exceeds\x20size\x20limit:\x20'+_0xfc4881);_0x1e72b3+=_0x523504;if(_0x1e72b3>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x3c2df9(0x1e5)](_0x3c2df9(0x160));_0x412b78[_0x3c2df9(0x1df)](_0xfc4881,{'path':_0xfc4881,'content':_0x830363[_0x3c2df9(0x1cd)]});}return Array[_0x3c2df9(0x206)](_0x412b78[_0x3c2df9(0x1ce)]())['sort'](compareSkillFiles);}function normalizeManifestFiles(_0x458249){const _0x2df941=a69_0x137f9d;if(!Array[_0x2df941(0x1bb)](_0x458249)||_0x458249[_0x2df941(0x178)]===0x0)return[];if(_0x458249[_0x2df941(0x178)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x2df941(0x184));const _0x3c2629=new Map();let _0x1607a5=0x0;for(const _0x4058f2 of _0x458249){if(!_0x4058f2||typeof _0x4058f2!==_0x2df941(0x18e)||typeof _0x4058f2['path']!==_0x2df941(0x1d6))throw CliErrors[_0x2df941(0x1e5)](_0x2df941(0x1aa));const _0x56b752=normalizeSkillRelativePath(_0x4058f2[_0x2df941(0x1c0)]);if(_0x3c2629[_0x2df941(0x210)](_0x56b752))throw CliErrors[_0x2df941(0x1e5)](_0x2df941(0x176)+_0x56b752);if(!isSha256Hex(_0x4058f2['sha256']))throw CliErrors['validation'](_0x2df941(0x1fe)+_0x56b752);if(!Number['isSafeInteger'](_0x4058f2[_0x2df941(0x1ff)])||_0x4058f2['size']<0x0)throw CliErrors[_0x2df941(0x1e5)](_0x2df941(0x20c)+_0x56b752);if(_0x4058f2[_0x2df941(0x1ff)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x2df941(0x1e5)](_0x2df941(0x1af)+_0x56b752);_0x1607a5+=_0x4058f2[_0x2df941(0x1ff)];if(_0x1607a5>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0x2df941(0x160));_0x3c2629[_0x2df941(0x1df)](_0x56b752,{'path':_0x56b752,'sha256':_0x4058f2[_0x2df941(0x1e3)][_0x2df941(0x1e6)](),'size':_0x4058f2[_0x2df941(0x1ff)]});}return Array[_0x2df941(0x206)](_0x3c2629[_0x2df941(0x1ce)]())['sort'](compareSkillFiles);}function normalizeRemoteManifest(_0x5bb366){return normalizePackageManifest(_0x5bb366,{'requireOssPath':!![]});}function normalizePackageManifest(_0x2694cf,_0x28916d){const _0x380fab=a69_0x137f9d;if(!_0x2694cf||typeof _0x2694cf!==_0x380fab(0x18e)||Array[_0x380fab(0x1bb)](_0x2694cf))return undefined;const _0x3cef57=_0x2694cf,_0x5a73a0=typeof _0x3cef57[_0x380fab(0x220)]===_0x380fab(0x1d6)?_0x3cef57[_0x380fab(0x220)][_0x380fab(0x190)]():undefined;if(_0x28916d[_0x380fab(0x201)]&&!_0x5a73a0)return undefined;if(!Array[_0x380fab(0x1bb)](_0x3cef57[_0x380fab(0x1c8)])||_0x3cef57['files']['length']===0x0)return undefined;if(!isSha256Hex(_0x3cef57[_0x380fab(0x21c)]))throw CliErrors[_0x380fab(0x1e5)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x3cef57['zipSha256']))throw CliErrors[_0x380fab(0x1e5)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x380fab(0x161)](_0x3cef57[_0x380fab(0x1a3)])||_0x3cef57[_0x380fab(0x1a3)]<0x0)throw CliErrors[_0x380fab(0x1e5)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');if(_0x3cef57[_0x380fab(0x1a3)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x380fab(0x1e5)](_0x380fab(0x1d9));const _0x320d83=normalizeManifestFiles(_0x3cef57[_0x380fab(0x1c8)]);if(!_0x320d83[_0x380fab(0x19d)](_0x5f5243=>_0x5f5243[_0x380fab(0x1c0)]===SKILL_FILE))throw CliErrors[_0x380fab(0x1e5)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x860269=fileTreeHash(_0x320d83);if(_0x860269!==_0x3cef57[_0x380fab(0x21c)][_0x380fab(0x1e6)]())throw CliErrors[_0x380fab(0x1e5)](_0x380fab(0x171));return{'schemaVersion':Number[_0x380fab(0x161)](_0x3cef57[_0x380fab(0x207)])?_0x3cef57[_0x380fab(0x207)]:0x2,'ossPath':_0x5a73a0,'treeSha256':_0x860269,'zipSha256':_0x3cef57['zipSha256'][_0x380fab(0x1e6)](),'zipSize':_0x3cef57[_0x380fab(0x1a3)],'files':_0x320d83};}function tryNormalizeRemoteManifest(_0xe2b61a){return normalizeRemoteManifest(_0xe2b61a);}function requirePackageBytes(_0x2dc701,_0x130add){const _0xc46af1=a69_0x137f9d;if(!_0x130add||_0x130add[_0xc46af1(0x178)]===0x0)throw CliErrors[_0xc46af1(0x1e5)](_0xc46af1(0x165)+_0x2dc701);if(_0x130add[_0xc46af1(0x178)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0xc46af1(0x1e5)](_0xc46af1(0x1fa)+_0x2dc701);return _0x130add;}function localFilesToManifestFiles(_0x283540){const _0xc4ea13=a69_0x137f9d;return normalizeLocalFiles(_0x283540)[_0xc4ea13(0x1d0)](_0x1d887a=>({'path':_0x1d887a[_0xc4ea13(0x1c0)],'sha256':contentHash(_0x1d887a[_0xc4ea13(0x1cd)]),'size':Buffer[_0xc4ea13(0x195)](_0x1d887a[_0xc4ea13(0x1cd)],_0xc4ea13(0x1a6))}));}function isSha256Hex(_0x3bc2c1){const _0x126d45=a69_0x137f9d;return typeof _0x3bc2c1==='string'&&/^[a-fA-F0-9]{64}$/[_0x126d45(0x1b1)](_0x3bc2c1);}function extractAndVerifyPackage(_0x2282d7,_0x44b090){const _0x35ec9e=a69_0x137f9d,_0x3eb66c=normalizePackageManifest(_0x2282d7,{'requireOssPath':![]});if(!_0x3eb66c)throw CliErrors[_0x35ec9e(0x1e5)](_0x35ec9e(0x1a9));if(_0x44b090[_0x35ec9e(0x178)]!==_0x3eb66c[_0x35ec9e(0x1a3)])throw CliErrors['validation'](_0x35ec9e(0x1c5));const _0x8d21cf=bufferSha256(_0x44b090);if(_0x8d21cf!==_0x3eb66c[_0x35ec9e(0x181)])throw CliErrors[_0x35ec9e(0x1e5)](_0x35ec9e(0x1bf));const _0x53a375=parseZipPackage(_0x44b090);if(_0x53a375[_0x35ec9e(0x178)]!==_0x3eb66c[_0x35ec9e(0x1c8)][_0x35ec9e(0x178)])throw CliErrors[_0x35ec9e(0x1e5)](_0x35ec9e(0x16e));const _0x1f62e5=new Map();for(const _0x5d6222 of _0x53a375){if(_0x1f62e5[_0x35ec9e(0x210)](_0x5d6222[_0x35ec9e(0x1c0)]))throw CliErrors[_0x35ec9e(0x1e5)](_0x35ec9e(0x1e0)+_0x5d6222[_0x35ec9e(0x1c0)]);_0x1f62e5[_0x35ec9e(0x1df)](_0x5d6222[_0x35ec9e(0x1c0)],_0x5d6222);}const _0x5666cb=[];for(const _0x637fdb of _0x3eb66c[_0x35ec9e(0x1c8)]){const _0x5a0c22=_0x1f62e5['get'](_0x637fdb[_0x35ec9e(0x1c0)]);if(!_0x5a0c22)throw CliErrors[_0x35ec9e(0x1e5)](_0x35ec9e(0x211)+_0x637fdb['path']);if(_0x5a0c22['bytes'][_0x35ec9e(0x178)]!==_0x637fdb[_0x35ec9e(0x1ff)])throw CliErrors[_0x35ec9e(0x1e5)](_0x35ec9e(0x167)+_0x637fdb[_0x35ec9e(0x1c0)]);const _0x17e781=bufferSha256(_0x5a0c22[_0x35ec9e(0x17e)]);if(_0x17e781!==_0x637fdb[_0x35ec9e(0x1e3)])throw CliErrors['validation'](_0x35ec9e(0x1f0)+_0x637fdb[_0x35ec9e(0x1c0)]);if(!isUtf8Text(_0x5a0c22[_0x35ec9e(0x17e)]))throw CliErrors[_0x35ec9e(0x1e5)]('Runtime\x20Skill\x20package\x20file\x20is\x20not\x20supported\x20text:\x20'+_0x637fdb[_0x35ec9e(0x1c0)]);_0x5666cb[_0x35ec9e(0x1a1)]({'path':_0x637fdb[_0x35ec9e(0x1c0)],'content':_0x5a0c22[_0x35ec9e(0x17e)][_0x35ec9e(0x1e7)](_0x35ec9e(0x1a6))});}return normalizeLocalFiles(_0x5666cb);}function createDeterministicZipPackage(_0x29c067){const _0x3a5488=a69_0x137f9d,_0x55d481=normalizeLocalFiles(_0x29c067),_0x39bbe2=[],_0x303729=[];let _0x19e614=0x0;for(const _0x24a6fa of _0x55d481){const _0x14e889=Buffer[_0x3a5488(0x206)](_0x24a6fa[_0x3a5488(0x1c0)],_0x3a5488(0x1a6)),_0x1ca2be=Buffer['from'](_0x24a6fa['content'],_0x3a5488(0x1a6)),_0x265abd=crc32(_0x1ca2be),_0x53eaae=Buffer[_0x3a5488(0x1f8)](0x1e+_0x14e889[_0x3a5488(0x178)]);_0x53eaae['writeUInt32LE'](ZIP_LOCAL_FILE_HEADER_SIGNATURE,0x0),_0x53eaae[_0x3a5488(0x203)](0x14,0x4),_0x53eaae[_0x3a5488(0x203)](ZIP_GENERAL_PURPOSE_UTF8,0x6),_0x53eaae[_0x3a5488(0x203)](ZIP_METHOD_STORE,0x8),_0x53eaae[_0x3a5488(0x203)](ZIP_FIXED_DOS_TIME,0xa),_0x53eaae[_0x3a5488(0x203)](ZIP_FIXED_DOS_DATE,0xc),_0x53eaae['writeUInt32LE'](_0x265abd,0xe),_0x53eaae[_0x3a5488(0x1ca)](_0x1ca2be[_0x3a5488(0x178)],0x12),_0x53eaae[_0x3a5488(0x1ca)](_0x1ca2be[_0x3a5488(0x178)],0x16),_0x53eaae[_0x3a5488(0x203)](_0x14e889[_0x3a5488(0x178)],0x1a),_0x53eaae[_0x3a5488(0x203)](0x0,0x1c),_0x14e889[_0x3a5488(0x1b7)](_0x53eaae,0x1e),_0x39bbe2[_0x3a5488(0x1a1)](_0x53eaae,_0x1ca2be);const _0x1fa5d3=Buffer[_0x3a5488(0x1f8)](0x2e+_0x14e889[_0x3a5488(0x178)]);_0x1fa5d3[_0x3a5488(0x1ca)](ZIP_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x1fa5d3[_0x3a5488(0x203)](0x14,0x4),_0x1fa5d3['writeUInt16LE'](0x14,0x6),_0x1fa5d3[_0x3a5488(0x203)](ZIP_GENERAL_PURPOSE_UTF8,0x8),_0x1fa5d3['writeUInt16LE'](ZIP_METHOD_STORE,0xa),_0x1fa5d3[_0x3a5488(0x203)](ZIP_FIXED_DOS_TIME,0xc),_0x1fa5d3[_0x3a5488(0x203)](ZIP_FIXED_DOS_DATE,0xe),_0x1fa5d3[_0x3a5488(0x1ca)](_0x265abd,0x10),_0x1fa5d3['writeUInt32LE'](_0x1ca2be[_0x3a5488(0x178)],0x14),_0x1fa5d3[_0x3a5488(0x1ca)](_0x1ca2be[_0x3a5488(0x178)],0x18),_0x1fa5d3['writeUInt16LE'](_0x14e889['length'],0x1c),_0x1fa5d3[_0x3a5488(0x203)](0x0,0x1e),_0x1fa5d3[_0x3a5488(0x203)](0x0,0x20),_0x1fa5d3['writeUInt16LE'](0x0,0x22),_0x1fa5d3[_0x3a5488(0x203)](0x0,0x24),_0x1fa5d3[_0x3a5488(0x1ca)](0x0,0x26),_0x1fa5d3[_0x3a5488(0x1ca)](_0x19e614,0x2a),_0x14e889[_0x3a5488(0x1b7)](_0x1fa5d3,0x2e),_0x303729[_0x3a5488(0x1a1)](_0x1fa5d3),_0x19e614+=_0x53eaae[_0x3a5488(0x178)]+_0x1ca2be['length'];}const _0x26a77a=Buffer[_0x3a5488(0x1a0)](_0x303729),_0x358937=_0x19e614,_0x5a8090=_0x26a77a[_0x3a5488(0x178)],_0x9b96c3=Buffer[_0x3a5488(0x1f8)](0x16);_0x9b96c3['writeUInt32LE'](ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x9b96c3[_0x3a5488(0x203)](0x0,0x4),_0x9b96c3['writeUInt16LE'](0x0,0x6),_0x9b96c3[_0x3a5488(0x203)](_0x55d481[_0x3a5488(0x178)],0x8),_0x9b96c3[_0x3a5488(0x203)](_0x55d481[_0x3a5488(0x178)],0xa),_0x9b96c3['writeUInt32LE'](_0x5a8090,0xc),_0x9b96c3['writeUInt32LE'](_0x358937,0x10),_0x9b96c3[_0x3a5488(0x203)](0x0,0x14);const _0x7d84db=Buffer[_0x3a5488(0x1a0)]([..._0x39bbe2,_0x26a77a,_0x9b96c3]);if(_0x7d84db[_0x3a5488(0x178)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0x3a5488(0x1da));return _0x7d84db;}function parseZipPackage(_0x313cf5){const _0x3b276e=a69_0x137f9d;if(_0x313cf5[_0x3b276e(0x178)]<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');const _0x4d7ece=findEndOfCentralDirectory(_0x313cf5);if(_0x4d7ece<0x0)throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x20b));const _0xb745c5=_0x313cf5[_0x3b276e(0x192)](_0x4d7ece+0x4),_0x33f91f=_0x313cf5[_0x3b276e(0x192)](_0x4d7ece+0x6),_0x1e1ec7=_0x313cf5[_0x3b276e(0x192)](_0x4d7ece+0xa),_0x38535f=_0x313cf5['readUInt32LE'](_0x4d7ece+0xc),_0x248e71=_0x313cf5[_0x3b276e(0x1cf)](_0x4d7ece+0x10);if(_0xb745c5!==0x0||_0x33f91f!==0x0)throw CliErrors[_0x3b276e(0x1e5)]('Runtime\x20Skill\x20package\x20uses\x20unsupported\x20multi-disk\x20zip\x20format.');if(_0x1e1ec7>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x169));if(_0x248e71+_0x38535f>_0x4d7ece||_0x248e71>=_0x313cf5[_0x3b276e(0x178)])throw CliErrors[_0x3b276e(0x1e5)]('Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20offsets.');const _0x2f8089=[];let _0x5e7127=0x0,_0xe93db6=_0x248e71;for(let _0xe29fbd=0x0;_0xe29fbd<_0x1e1ec7;_0xe29fbd+=0x1){if(_0xe93db6+0x2e>_0x313cf5['length'])throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x18b));if(_0x313cf5['readUInt32LE'](_0xe93db6)!==ZIP_CENTRAL_DIRECTORY_SIGNATURE)throw CliErrors['validation'](_0x3b276e(0x1c3));const _0x27bc5a=_0x313cf5['readUInt16LE'](_0xe93db6+0x8),_0x1c2099=_0x313cf5[_0x3b276e(0x192)](_0xe93db6+0xa),_0x2cce88=_0x313cf5[_0x3b276e(0x1cf)](_0xe93db6+0x10),_0x12d5fc=_0x313cf5[_0x3b276e(0x1cf)](_0xe93db6+0x14),_0x36699b=_0x313cf5[_0x3b276e(0x1cf)](_0xe93db6+0x18),_0x19a49a=_0x313cf5['readUInt16LE'](_0xe93db6+0x1c),_0x307524=_0x313cf5[_0x3b276e(0x192)](_0xe93db6+0x1e),_0xccbfc9=_0x313cf5[_0x3b276e(0x192)](_0xe93db6+0x20),_0x5902cf=_0x313cf5[_0x3b276e(0x1cf)](_0xe93db6+0x2a),_0x158ef7=_0xe93db6+0x2e,_0x30423a=_0x158ef7+_0x19a49a;if(_0x30423a>_0x313cf5[_0x3b276e(0x178)])throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x15f));if((_0x27bc5a&0x1)!==0x0)throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x15b));if(_0x1c2099!==ZIP_METHOD_STORE&&_0x1c2099!==ZIP_METHOD_DEFLATE)throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x15c));const _0x195c9a=normalizeSkillRelativePath(_0x313cf5['subarray'](_0x158ef7,_0x30423a)[_0x3b276e(0x1e7)](_0x3b276e(0x1a6)));if(_0x195c9a[_0x3b276e(0x21d)]('/'))throw CliErrors[_0x3b276e(0x1e5)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x195c9a);if(_0x36699b>MAX_SKILL_FILE_BYTES)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20'+_0x195c9a);_0x5e7127+=_0x36699b;if(_0x5e7127>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x16d));const _0x3f64a9=readZipEntryData(_0x313cf5,_0x5902cf,_0x195c9a,_0x12d5fc),_0x3e3296=_0x1c2099===ZIP_METHOD_STORE?_0x3f64a9:inflateRawSync(_0x3f64a9);if(_0x3e3296['length']!==_0x36699b)throw CliErrors['validation'](_0x3b276e(0x1c4)+_0x195c9a);if(crc32(_0x3e3296)!==_0x2cce88)throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x179)+_0x195c9a);_0x2f8089[_0x3b276e(0x1a1)]({'path':_0x195c9a,'bytes':_0x3e3296}),_0xe93db6=_0x30423a+_0x307524+_0xccbfc9;}if(_0xe93db6!==_0x248e71+_0x38535f)throw CliErrors[_0x3b276e(0x1e5)](_0x3b276e(0x1b9));return _0x2f8089[_0x3b276e(0x17b)](compareSkillFiles);}function readZipEntryData(_0x1ce743,_0x1edadb,_0x2a4522,_0x45d9e3){const _0x2d1ca7=a69_0x137f9d;if(_0x1edadb+0x1e>_0x1ce743[_0x2d1ca7(0x178)])throw CliErrors[_0x2d1ca7(0x1e5)](_0x2d1ca7(0x1cb)+_0x2a4522);if(_0x1ce743[_0x2d1ca7(0x1cf)](_0x1edadb)!==ZIP_LOCAL_FILE_HEADER_SIGNATURE)throw CliErrors[_0x2d1ca7(0x1e5)](_0x2d1ca7(0x1b4)+_0x2a4522);const _0x2aa124=_0x1ce743[_0x2d1ca7(0x192)](_0x1edadb+0x1a),_0x4c76b4=_0x1ce743['readUInt16LE'](_0x1edadb+0x1c),_0x56d78a=_0x1edadb+0x1e,_0xb2c691=_0x56d78a+_0x2aa124,_0x323c78=_0xb2c691+_0x4c76b4,_0x2fb803=_0x323c78+_0x45d9e3;if(_0xb2c691>_0x1ce743[_0x2d1ca7(0x178)]||_0x2fb803>_0x1ce743[_0x2d1ca7(0x178)])throw CliErrors[_0x2d1ca7(0x1e5)](_0x2d1ca7(0x1ef)+_0x2a4522);const _0x24b4ba=normalizeSkillRelativePath(_0x1ce743['subarray'](_0x56d78a,_0xb2c691)[_0x2d1ca7(0x1e7)]('utf8'));if(_0x24b4ba!==_0x2a4522)throw CliErrors[_0x2d1ca7(0x1e5)](_0x2d1ca7(0x183)+_0x2a4522);return _0x1ce743[_0x2d1ca7(0x1ec)](_0x323c78,_0x2fb803);}function findEndOfCentralDirectory(_0x7842e8){const _0x52b545=a69_0x137f9d,_0x2e8c78=Math[_0x52b545(0x1f6)](0x0,_0x7842e8[_0x52b545(0x178)]-0x16-0xffff);for(let _0x3c4355=_0x7842e8[_0x52b545(0x178)]-0x16;_0x3c4355>=_0x2e8c78;_0x3c4355-=0x1){if(_0x7842e8[_0x52b545(0x1cf)](_0x3c4355)===ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE){const _0x531018=_0x7842e8[_0x52b545(0x192)](_0x3c4355+0x14);if(_0x3c4355+0x16+_0x531018===_0x7842e8[_0x52b545(0x178)])return _0x3c4355;}}return-0x1;}function createCrc32Table(){const _0xc43286=new Uint32Array(0x100);for(let _0x4f3413=0x0;_0x4f3413<0x100;_0x4f3413+=0x1){let _0x54a690=_0x4f3413;for(let _0x324261=0x0;_0x324261<0x8;_0x324261+=0x1){_0x54a690=(_0x54a690&0x1)!==0x0?0xedb88320^_0x54a690>>>0x1:_0x54a690>>>0x1;}_0xc43286[_0x4f3413]=_0x54a690>>>0x0;}return _0xc43286;}function crc32(_0x17fb64){let _0x194fbe=0xffffffff;for(const _0x1f5301 of _0x17fb64){_0x194fbe=CRC32_TABLE[(_0x194fbe^_0x1f5301)&0xff]^_0x194fbe>>>0x8;}return(_0x194fbe^0xffffffff)>>>0x0;}function compareSkillFiles(_0x15ff9c,_0x308695){const _0x43934c=a69_0x137f9d;if(_0x15ff9c[_0x43934c(0x1c0)]===SKILL_FILE)return _0x308695[_0x43934c(0x1c0)]===SKILL_FILE?0x0:-0x1;if(_0x308695[_0x43934c(0x1c0)]===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x43934c(0x206)](_0x15ff9c['path'],_0x43934c(0x1a6)),Buffer[_0x43934c(0x206)](_0x308695[_0x43934c(0x1c0)],'utf8'));}function materializeFiles(_0x2980f8,_0x20fc64){const _0x406361=a69_0x137f9d;for(const _0x4dc21e of normalizeLocalFiles(_0x20fc64)){const _0x597fa5=resolveManagedFilePath(_0x2980f8,_0x4dc21e[_0x406361(0x1c0)]);mkdirSync(dirname(_0x597fa5),{'recursive':!![],'mode':0x1c0}),writeTextAtomic(_0x597fa5,_0x4dc21e['content'],0x180);}}function a69_0x234f(){const _0x41c42e=['189425zDDcJV','validation','toLowerCase','toString','packageBase64','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','.git','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','subarray','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','.svn','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20data:\x20','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','531177AIHJyd','Runtime\x20Skill\x20package\x20','4414shVVES','base64','pruneSkillCodes','max','.claude','alloc','8190xfhojl','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20','homeDirName','description:\x20','1083126twFVvV','Skill\x20file\x20sha256\x20is\x20invalid:\x20','size','dist','requireOssPath','paths','writeUInt16LE','version','Missing\x20','from','schemaVersion','personal','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','SKILL.md','Runtime\x20Skill\x20package\x20is\x20missing\x20zip\x20central\x20directory.','Skill\x20file\x20size\x20is\x20invalid:\x20','accessKey','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','\x20in\x20Skill\x20file\x20package.','has','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Skill\x20file\x20is\x20not\x20supported\x20text:\x20','digest','metadata-mismatch','name:\x20','10WLTrlL','description','1196982UAhars','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','isDirectory','coverage','treeSha256','endsWith','keys','Unable\x20to\x20resolve\x20skillCode\x20from\x20','ossPath','\x20for\x20local\x20path:\x20','Runtime\x20Skill\x20package\x20contains\x20encrypted\x20entries.','Runtime\x20Skill\x20package\x20contains\x20unsupported\x20compression\x20method.','Skill\x20directory\x20not\x20found:\x20','scope','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20name.','Skill\x20directory\x20exceeds\x20total\x20text\x20size\x20limit.','isSafeInteger','entries','update','homeDir','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20package-backed\x20Skill:\x20','CLAUDE_SKILL_ROOT','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','169LPqfcL','Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.','contentHash','cache','\x20does\x20not\x20match\x20backend\x20content:\x20','Runtime\x20Skill\x20package\x20exceeds\x20total\x20text\x20size\x20limit.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','fileHashes','appCode','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','split','skipped','pulledAt','startsWith','Duplicate\x20Skill\x20file\x20path:\x20','lovrabet.skill.json','length','Runtime\x20Skill\x20package\x20CRC\x20mismatch:\x20','skillCode','sort','.DS_Store','includes','bytes','hex','isFile','zipSha256','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','Runtime\x20Skill\x20package\x20local\x20path\x20mismatch:\x20','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','Managed\x20file\x20was\x20removed\x20locally:\x20','\x20has\x20scope=\x22','replace','activeSkillCodes','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','sourceSessionId','Runtime\x20Skill\x20package\x20has\x20truncated\x20central\x20directory.','scopes','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','object','---','trim','Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.\x20Changed\x20file:\x20','readUInt16LE','pushedAt','env','byteLength','Skill\x20file\x20content\x20must\x20be\x20text:\x20','forkedFromSkillId','fromEntries','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','Unsafe\x20Skill\x20file\x20path:\x20','filter','.cache','some','skills','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','concat','push','managedRoot','zipSize','SKILL_ROOT','builtin','utf8','not-managed-symlink','path\x20segment','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Skill\x20file\x20path\x20must\x20be\x20text.','claudeSkillsDir','4ZGGIsk','build','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Skill\x20file\x20exceeds\x20size\x20limit:\x20','dir','test','42sIbYke','removed','Runtime\x20Skill\x20package\x20local\x20header\x20mismatch:\x20','skill','get','copy','updated','Runtime\x20Skill\x20package\x20central\x20directory\x20size\x20mismatch.','.next','isArray','isSymbolicLink','Unsafe\x20','tags','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','path','userId','.hg','Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20entry.','Runtime\x20Skill\x20package\x20uncompressed\x20size\x20mismatch:\x20','Runtime\x20Skill\x20package\x20size\x20mismatch.','external-symlink','agentsSkillsDir','files','slice','writeUInt32LE','Runtime\x20Skill\x20package\x20has\x20truncated\x20local\x20header:\x20','find','content','values','readUInt32LE','map','.turbo','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','created','forkedFromVersion','12684KIklSO','string','1456VfhFfI','unchanged','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','Skill\x20package\x20exceeds\x20size\x20limit.','Invalid\x20','node_modules','status','24bWDYbv','set','Duplicate\x20Skill\x20package\x20entry:\x20','name','readonly','sha256'];a69_0x234f=function(){return _0x41c42e;};return a69_0x234f();}function removeStaleManagedFiles(_0x36f643,_0x22e2d0,_0x429383){const _0x5926b6=a69_0x137f9d;if(!_0x22e2d0)return;const _0x1e232a=new Set(normalizeLocalFiles(_0x429383)['map'](_0x29d5ee=>_0x29d5ee[_0x5926b6(0x1c0)]));for(const _0x1a5c99 of Object[_0x5926b6(0x21e)](_0x22e2d0)){if(_0x1e232a[_0x5926b6(0x210)](_0x1a5c99))continue;const _0xa98889=resolveManagedFilePath(_0x36f643,_0x1a5c99);existsSync(_0xa98889)&&lstatSync(_0xa98889)[_0x5926b6(0x180)]()&&rmSync(_0xa98889,{'force':!![]});}}function resolveManagedFilePath(_0x21be22,_0x18ec9b){const _0x27135b=a69_0x137f9d,_0x3ba168=normalizeSkillRelativePath(_0x18ec9b),_0x1d6465=realOrResolved(_0x21be22),_0x560b8b=resolve(_0x1d6465,..._0x3ba168[_0x27135b(0x172)]('/'));if(!isPathInside(_0x560b8b,_0x1d6465))throw CliErrors[_0x27135b(0x1e5)](_0x27135b(0x19a)+_0x18ec9b);return ensureNoSymlinkInManagedPath(_0x1d6465,_0x3ba168),_0x560b8b;}function ensureNoSymlinkInManagedPath(_0x4110f3,_0x2cc66c){const _0x5822ef=a69_0x137f9d;let _0x424105=_0x4110f3;for(const _0x4534fd of _0x2cc66c['split']('/')){_0x424105=resolve(_0x424105,_0x4534fd);const _0x1aa6b7=lstatIfPresent(_0x424105);if(_0x1aa6b7?.['isSymbolicLink']())throw CliErrors[_0x5822ef(0x1e5)](_0x5822ef(0x19f)+_0x2cc66c);}}function normalizeSkillRelativePath(_0x34743a){const _0xb64f0d=a69_0x137f9d,_0x40f3c6=toPosixPath(_0x34743a[_0xb64f0d(0x190)]());return validateSkillRelativePath(_0x40f3c6),_0x40f3c6;}function validateSkillRelativePath(_0x24d698){const _0xc1949c=a69_0x137f9d;if(!_0x24d698||_0x24d698[_0xc1949c(0x175)]('/')||_0x24d698[_0xc1949c(0x17d)]('//'))throw CliErrors[_0xc1949c(0x1e5)](_0xc1949c(0x19a)+_0x24d698);for(const _0x198f2c of _0x24d698[_0xc1949c(0x172)]('/')){if(!_0x198f2c||_0x198f2c==='.'||_0x198f2c==='..')throw CliErrors[_0xc1949c(0x1e5)](_0xc1949c(0x19a)+_0x24d698);}}function toPosixPath(_0x2ad85f){return _0x2ad85f['replace'](/\\/g,'/');}function isUtf8Text(_0x3bf320){const _0x29bb1c=a69_0x137f9d;if(_0x3bf320[_0x29bb1c(0x17d)](0x0))return![];return _0x3bf320[_0x29bb1c(0x1e7)]('utf8')['includes']('�')===![];}function ensureManagedSymlink(_0xfc6f48,_0x41e543,_0x2d0719){const _0x37b501=a69_0x137f9d;mkdirSync(dirname(_0xfc6f48),{'recursive':!![],'mode':0x1c0});if(existsSync(_0xfc6f48)||isDanglingSymlink(_0xfc6f48)){const _0x527dfc=lstatSync(_0xfc6f48);if(!_0x527dfc['isSymbolicLink']())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0xfc6f48);const _0x5253f3=resolveSymlinkTarget(_0xfc6f48);if(!isPathInside(realOrResolved(_0x5253f3),realOrResolved(_0x2d0719)))throw CliErrors[_0x37b501(0x1e5)](_0x37b501(0x219)+_0xfc6f48);if(realOrResolved(_0x5253f3)===realOrResolved(_0x41e543))return{'path':_0xfc6f48,'target':_0x41e543,'action':'unchanged'};return unlinkSync(_0xfc6f48),symlinkSync(_0x41e543,_0xfc6f48,_0x37b501(0x1b0)),{'path':_0xfc6f48,'target':_0x41e543,'action':_0x37b501(0x1b8)};}return symlinkSync(_0x41e543,_0xfc6f48,_0x37b501(0x1b0)),{'path':_0xfc6f48,'target':_0x41e543,'action':_0x37b501(0x1d3)};}function managedAppSkillLinkPaths(_0x37ae94,_0x1d6d4a){const _0xfd0ed0=a69_0x137f9d;if(!existsSync(_0x37ae94))return[];const _0x3c82f7=_0x1d6d4a+'--';return readdirSync(_0x37ae94,{'withFileTypes':!![]})[_0xfd0ed0(0x19b)](_0x24c5bb=>_0x24c5bb[_0xfd0ed0(0x1e1)]['startsWith'](_0x3c82f7))['map'](_0x19250a=>resolve(_0x37ae94,_0x19250a[_0xfd0ed0(0x1e1)]));}function removeManagedSkillLink(_0x41799,_0x17455b){const _0x143784=a69_0x137f9d,_0x344a4c=lstatIfPresent(_0x41799);if(!_0x344a4c?.[_0x143784(0x1bc)]())return{'path':_0x41799,'action':_0x143784(0x173),'reason':_0x143784(0x1a7)};const _0x113f85=resolveSymlinkTarget(_0x41799);if(!isPathInside(realOrResolved(_0x113f85),realOrResolved(_0x17455b)))return{'path':_0x41799,'action':'skipped','reason':_0x143784(0x1c6)};return unlinkSync(_0x41799),{'path':_0x41799,'action':_0x143784(0x1b3)};}function copyManagedSkillDirectory(_0x3f95dd,_0x56a6af){const _0x2aea57=a69_0x137f9d,_0x594f30=resolve(_0x56a6af,METADATA_FILE),_0x2fe75f=existsSync(_0x56a6af);if(_0x2fe75f){const _0x44c366=lstatSync(_0x56a6af);if(_0x44c366[_0x2aea57(0x1bc)]())throw CliErrors['validation'](_0x2aea57(0x189)+_0x56a6af);if(!_0x44c366['isDirectory']())throw CliErrors[_0x2aea57(0x1e5)](_0x2aea57(0x1eb)+_0x56a6af);const _0x4effbb=readMetadataIfPresent(_0x594f30);if(_0x4effbb?.[_0x2aea57(0x15e)]!=='builtin')throw CliErrors[_0x2aea57(0x1e5)]('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x56a6af);}mkdirSync(dirname(_0x56a6af),{'recursive':!![],'mode':0x1c0});const _0x10b011=_0x2fe75f?readMetadataIfPresent(_0x594f30)?.[_0x2aea57(0x16a)]:undefined,_0x47f83e=readMetadataIfPresent(resolve(_0x3f95dd,METADATA_FILE))?.[_0x2aea57(0x16a)];return _0x2fe75f&&rmSync(_0x56a6af,{'recursive':!![],'force':!![]}),copySkillDirectory(_0x3f95dd,_0x56a6af),{'path':_0x56a6af,'target':_0x3f95dd,'action':!_0x2fe75f?_0x2aea57(0x1d3):_0x10b011===_0x47f83e?_0x2aea57(0x1d8):_0x2aea57(0x1b8)};}function copySkillDirectory(_0x4a522f,_0x4ead45){const _0x28b602=a69_0x137f9d;mkdirSync(_0x4ead45,{'recursive':!![],'mode':0x1c0});for(const _0x5d89e6 of readdirSync(_0x4a522f,{'withFileTypes':!![]})){const _0x20b012=resolve(_0x4a522f,_0x5d89e6[_0x28b602(0x1e1)]),_0x1014e4=resolve(_0x4ead45,_0x5d89e6['name']);if(_0x5d89e6[_0x28b602(0x1bc)]())throw CliErrors['validation'](_0x28b602(0x209)+_0x20b012);if(_0x5d89e6[_0x28b602(0x21a)]()){copySkillDirectory(_0x20b012,_0x1014e4);continue;}_0x5d89e6['isFile']()&&writeFileSync(_0x1014e4,readFileSync(_0x20b012));}}function isDanglingSymlink(_0x4b6465){const _0x18c2e6=a69_0x137f9d;try{return lstatSync(_0x4b6465)[_0x18c2e6(0x1bc)]();}catch{return![];}}function resolveSymlinkTarget(_0x328c4a){const _0x52d8de=readlinkSync(_0x328c4a);return isAbsolute(_0x52d8de)?_0x52d8de:resolve(dirname(_0x328c4a),_0x52d8de);}function isPathInside(_0x32f7c4,_0x26d5d3){const _0x2a7d20=a69_0x137f9d,_0x478b03=_0x32f7c4[_0x2a7d20(0x21d)](sep)?_0x32f7c4:''+_0x32f7c4+sep,_0x4ffc38=_0x26d5d3[_0x2a7d20(0x21d)](sep)?_0x26d5d3:''+_0x26d5d3+sep;return _0x32f7c4===_0x26d5d3||_0x478b03[_0x2a7d20(0x175)](_0x4ffc38);}function realOrResolved(_0x583a2a){try{return realpathSync(_0x583a2a);}catch{return resolve(_0x583a2a);}}function lstatIfPresent(_0x32d0f5){try{return lstatSync(_0x32d0f5);}catch{return undefined;}}function writeTextAtomic(_0x2064b3,_0x1d804b,_0x1e830c){const _0x5b99f8=_0x2064b3+'.tmp';try{writeFileSync(_0x5b99f8,_0x1d804b,{'encoding':'utf8','mode':_0x1e830c}),renameSync(_0x5b99f8,_0x2064b3);}catch(_0x164801){try{rmSync(_0x5b99f8,{'force':!![]});}catch{}throw _0x164801;}}function writeJsonAtomic(_0x311075,_0x41ec7b){writeTextAtomic(_0x311075,JSON['stringify'](_0x41ec7b,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x2352fb,_0x13410a){const _0x5c7751=a70_0x5a49,_0x50dfe8=_0x2352fb();while(!![]){try{const _0x110d8b=parseInt(_0x5c7751(0x1c1))/0x1+-parseInt(_0x5c7751(0x1c6))/0x2+parseInt(_0x5c7751(0x1c4))/0x3*(-parseInt(_0x5c7751(0x1c0))/0x4)+-parseInt(_0x5c7751(0x1c2))/0x5+-parseInt(_0x5c7751(0x1c3))/0x6+-parseInt(_0x5c7751(0x1c5))/0x7*(parseInt(_0x5c7751(0x1bf))/0x8)+parseInt(_0x5c7751(0x1be))/0x9;if(_0x110d8b===_0x13410a)break;else _0x50dfe8['push'](_0x50dfe8['shift']());}catch(_0x29e7a2){_0x50dfe8['push'](_0x50dfe8['shift']());}}}(a70_0x2e6d,0xa10b0));function a70_0x5a49(_0x3bfe6a,_0x3d2d45){_0x3bfe6a=_0x3bfe6a-0x1be;const _0x2e6dec=a70_0x2e6d();let _0x5a4926=_0x2e6dec[_0x3bfe6a];return _0x5a4926;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a70_0x2e6d(){const _0x5ba804=['35056krHYcx','4067330aEDUav','4069572aNkeJc','15FeCBNA','61649gVmktg','486532DRCiiQ','37889244MGkoCg','1144vYNdyI','472756Frbwvm'];a70_0x2e6d=function(){return _0x5ba804;};return a70_0x2e6d();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x43b78a,_0x525355){const _0x3c090e=a70_0x2d09,_0x1f047b=_0x43b78a();while(!![]){try{const _0x3cec63=-parseInt(_0x3c090e(0x18f))/0x1+-parseInt(_0x3c090e(0x18e))/0x2+-parseInt(_0x3c090e(0x18d))/0x3+-parseInt(_0x3c090e(0x189))/0x4*(-parseInt(_0x3c090e(0x18c))/0x5)+-parseInt(_0x3c090e(0x18a))/0x6+parseInt(_0x3c090e(0x190))/0x7+parseInt(_0x3c090e(0x18b))/0x8;if(_0x3cec63===_0x525355)break;else _0x1f047b['push'](_0x1f047b['shift']());}catch(_0x2c1ce2){_0x1f047b['push'](_0x1f047b['shift']());}}}(a70_0xb10c,0x844e1));function a70_0x2d09(_0x2562e7,_0x37209a){_0x2562e7=_0x2562e7-0x189;const _0xb10cd3=a70_0xb10c();let _0x2d09e2=_0xb10cd3[_0x2562e7];return _0x2d09e2;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a70_0xb10c(){const _0x4c2649=['1012122FCXZlv','714098YmhkMO','5533654bnpizm','501824sXSXdZ','626592nyZoFN','3695568pWOkVa','25QGlkFe','39708fbCEhD'];a70_0xb10c=function(){return _0x4c2649;};return a70_0xb10c();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a71_0x521fbb=a71_0x5dd3;function a71_0x1e86(){const _0x4e0d84=['warn','addColors','message','initWinstonLogger','error','errors','getWinstonInstance','readFileSync','Failed\x20to\x20clear\x20logs:','Starting:\x20','success','clear','writeFileSync','utf8','command','info','248352SdXrrV','log','level','existsSync','setLogPath','unknown','6iFFDPF','Completed:\x20','1111564sugMQP','format','currentRawCommand','31747446jQPaxS','green','timestamp','red','winstonLogger','dirname','stringify','9459583epJoZI','File','setRawCommand','map','8375168uHQSUF','10zBXcJQ','2928891IBbOxo','10kjgjKq','readLogs','yellow','filter','127541QaJKco','combine','toISOString','logFilePath','mkdirSync','logTask','clearLogs','now','join','createLogger'];a71_0x1e86=function(){return _0x4e0d84;};return a71_0x1e86();}(function(_0x2478c9,_0x3f3389){const _0x157b91=a71_0x5dd3,_0x1e0377=_0x2478c9();while(!![]){try{const _0x16ca45=parseInt(_0x157b91(0x124))/0x1*(parseInt(_0x157b91(0x10d))/0x2)+parseInt(_0x157b91(0x11f))/0x3+-parseInt(_0x157b91(0x10f))/0x4*(-parseInt(_0x157b91(0x11e))/0x5)+-parseInt(_0x157b91(0x107))/0x6+parseInt(_0x157b91(0x119))/0x7+parseInt(_0x157b91(0x11d))/0x8+parseInt(_0x157b91(0x112))/0x9*(-parseInt(_0x157b91(0x120))/0xa);if(_0x16ca45===_0x3f3389)break;else _0x1e0377['push'](_0x1e0377['shift']());}catch(_0x586ff9){_0x1e0377['push'](_0x1e0377['shift']());}}}(a71_0x1e86,0xb5a91));import a71_0x263903 from'winston';import a71_0x2653a6 from'node:fs';function a71_0x5dd3(_0x2b08c7,_0x1cb0fe){_0x2b08c7=_0x2b08c7-0xf7;const _0x1e86b0=a71_0x1e86();let _0x5dd3f8=_0x1e86b0[_0x2b08c7];return _0x5dd3f8;}import a71_0x3c99c3 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a71_0x521fbb(0x116)];[a71_0x521fbb(0x127)]='';[a71_0x521fbb(0x111)]='';constructor(){}[a71_0x521fbb(0x11b)](_0x4e51f0){this['currentRawCommand']=_0x4e51f0;}[a71_0x521fbb(0x10b)](_0x105bb7){const _0x8e7c50=a71_0x521fbb;this[_0x8e7c50(0x127)]=a71_0x3c99c3[_0x8e7c50(0x12c)](_0x105bb7,PRODUCT_CONFIG['logFileName']),this[_0x8e7c50(0x116)]&&this[_0x8e7c50(0x116)][_0x8e7c50(0x102)](),this[_0x8e7c50(0xfa)]();}[a71_0x521fbb(0xfa)](){const _0x17a3d4=a71_0x521fbb,_0x43f1e3=a71_0x3c99c3[_0x17a3d4(0x117)](this[_0x17a3d4(0x127)]);!a71_0x2653a6[_0x17a3d4(0x10a)](_0x43f1e3)&&a71_0x2653a6[_0x17a3d4(0x128)](_0x43f1e3,{'recursive':!![]});const _0x495fde=a71_0x263903['format'][_0x17a3d4(0x125)](a71_0x263903[_0x17a3d4(0x110)]['timestamp'](),a71_0x263903[_0x17a3d4(0x110)][_0x17a3d4(0xfc)]({'stack':!![]}),a71_0x263903[_0x17a3d4(0x110)]['printf'](_0x10e1cf=>{const _0x42457e=_0x17a3d4,_0x299cbb={'timestamp':_0x10e1cf[_0x42457e(0x114)]||new Date()[_0x42457e(0x126)](),'level':_0x10e1cf[_0x42457e(0x109)]||'info','command':_0x10e1cf[_0x42457e(0x105)]||_0x42457e(0x10c),'rawCommand':_0x10e1cf['rawCommand']||this['currentRawCommand']||undefined,'message':_0x10e1cf['message']||'','duration':_0x10e1cf['duration']||undefined,'details':_0x10e1cf['details']||undefined};return JSON[_0x42457e(0x118)](_0x299cbb);}));this[_0x17a3d4(0x116)]=a71_0x263903[_0x17a3d4(0x12d)]({'level':_0x17a3d4(0x106),'format':_0x495fde,'transports':[new a71_0x263903['transports'][(_0x17a3d4(0x11a))]({'filename':this[_0x17a3d4(0x127)],'level':'info'})],'silent':![]}),a71_0x263903[_0x17a3d4(0xf8)]({'success':_0x17a3d4(0x113),'error':_0x17a3d4(0x115),'warn':_0x17a3d4(0x122),'info':'blue'});}[a71_0x521fbb(0x106)](_0x5597c0,_0x162b5f,_0x393b1c){const _0x26d7e1=a71_0x521fbb;if(!this[_0x26d7e1(0x127)]||!this[_0x26d7e1(0x116)])return;this[_0x26d7e1(0x116)][_0x26d7e1(0x106)](_0x162b5f,{'command':_0x5597c0,'details':_0x393b1c});}['success'](_0x1f10b1,_0x5eec31,_0x8b77bf,_0x40f0a4){const _0x2957b7=a71_0x521fbb;if(!this[_0x2957b7(0x127)]||!this[_0x2957b7(0x116)])return;this[_0x2957b7(0x116)][_0x2957b7(0x108)](_0x2957b7(0x106),_0x5eec31,{'level':_0x2957b7(0x101),'command':_0x1f10b1,'duration':_0x8b77bf,'details':_0x40f0a4});}[a71_0x521fbb(0xfb)](_0x2fbe5d,_0x549251,_0x5500d0){const _0x342f11=a71_0x521fbb;if(!this[_0x342f11(0x127)]||!this[_0x342f11(0x116)])return;this['winstonLogger'][_0x342f11(0xfb)](_0x549251,{'command':_0x2fbe5d,'details':_0x5500d0});}[a71_0x521fbb(0xf7)](_0x3bf911,_0x289a6a,_0x24f68f){const _0x81794b=a71_0x521fbb;if(!this[_0x81794b(0x127)]||!this[_0x81794b(0x116)])return;this[_0x81794b(0x116)]['warn'](_0x289a6a,{'command':_0x3bf911,'details':_0x24f68f});}async[a71_0x521fbb(0x129)](_0x5e22ff,_0x43380a,_0x5be489){const _0x21df1f=a71_0x521fbb,_0x9390c6=Date['now']();this[_0x21df1f(0x106)](_0x5e22ff,_0x21df1f(0x100)+_0x43380a);try{const _0x41e934=await _0x5be489(),_0xb3cc40=Date['now']()-_0x9390c6;return this[_0x21df1f(0x101)](_0x5e22ff,_0x21df1f(0x10e)+_0x43380a,_0xb3cc40),_0x41e934;}catch(_0x531d80){const _0x9583f3=Date[_0x21df1f(0x12b)]()-_0x9390c6;this[_0x21df1f(0xfb)](_0x5e22ff,'Failed:\x20'+_0x43380a,{'error':_0x531d80 instanceof Error?_0x531d80[_0x21df1f(0xf9)]:String(_0x531d80),'duration':_0x9583f3});throw _0x531d80;}}[a71_0x521fbb(0x121)](){const _0x5e5f1b=a71_0x521fbb;try{if(!a71_0x2653a6[_0x5e5f1b(0x10a)](this[_0x5e5f1b(0x127)]))return[];const _0x974ccd=a71_0x2653a6[_0x5e5f1b(0xfe)](this[_0x5e5f1b(0x127)],_0x5e5f1b(0x104));return _0x974ccd['split'](/\r?\n/)[_0x5e5f1b(0x123)](_0x2bfe50=>_0x2bfe50['trim']())[_0x5e5f1b(0x11c)](_0xd87566=>JSON['parse'](_0xd87566));}catch(_0x10b683){return console[_0x5e5f1b(0xf7)]('Failed\x20to\x20read\x20logs:',_0x10b683),[];}}[a71_0x521fbb(0x12a)](){const _0x5a44c9=a71_0x521fbb;try{a71_0x2653a6[_0x5a44c9(0x10a)](this[_0x5a44c9(0x127)])&&a71_0x2653a6[_0x5a44c9(0x103)](this[_0x5a44c9(0x127)],'',_0x5a44c9(0x104));}catch(_0x392c5a){console[_0x5a44c9(0xf7)](_0x5a44c9(0xff),_0x392c5a);}}[a71_0x521fbb(0xfd)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a71_0x45382f=a71_0x479e;(function(_0xf21f91,_0x53f2bd){const _0x35fbbf=a71_0x479e,_0x5d8e6c=_0xf21f91();while(!![]){try{const _0x25b506=-parseInt(_0x35fbbf(0x10c))/0x1+parseInt(_0x35fbbf(0x103))/0x2*(parseInt(_0x35fbbf(0x107))/0x3)+parseInt(_0x35fbbf(0xe7))/0x4*(-parseInt(_0x35fbbf(0xfb))/0x5)+parseInt(_0x35fbbf(0xf9))/0x6+-parseInt(_0x35fbbf(0xec))/0x7*(-parseInt(_0x35fbbf(0xf4))/0x8)+parseInt(_0x35fbbf(0xdc))/0x9*(-parseInt(_0x35fbbf(0x101))/0xa)+parseInt(_0x35fbbf(0xf8))/0xb*(parseInt(_0x35fbbf(0xf2))/0xc);if(_0x25b506===_0x53f2bd)break;else _0x5d8e6c['push'](_0x5d8e6c['shift']());}catch(_0x11563f){_0x5d8e6c['push'](_0x5d8e6c['shift']());}}}(a71_0x409f,0xbb7d8));import a71_0x31ca56 from'winston';import a71_0x31ed24 from'node:fs';function a71_0x409f(){const _0x37e608=['utf8','setRawCommand','existsSync','details','1040XnqIwB','setLogPath','4hHVbmT','Completed:\x20','readLogs','Failed\x20to\x20clear\x20logs:','1347975EvIoWv','errors','initWinstonLogger','addColors','duration','214745XePaib','blue','log','transports','trim','File','yellow','stringify','parse','getWinstonInstance','109692qEmQnm','command','info','currentRawCommand','map','unknown','Failed\x20to\x20read\x20logs:','logTask','logFilePath','rawCommand','mkdirSync','1556SzjSdG','join','timestamp','message','createLogger','4634833UDvrqf','filter','format','logFileName','winstonLogger','readFileSync','12LmzDaf','success','8OhInMB','Failed:\x20','writeFileSync','error','6588989WGIuUy','1051746xxcBwl','now','1090JpaETx','warn'];a71_0x409f=function(){return _0x37e608;};return a71_0x409f();}function a71_0x479e(_0x21fe67,_0x45b177){_0x21fe67=_0x21fe67-0xd3;const _0x409f48=a71_0x409f();let _0x479e19=_0x409f48[_0x21fe67];return _0x479e19;}import a71_0x14085c from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a71_0x45382f(0xf0)];['logFilePath']='';[a71_0x45382f(0xdf)]='';constructor(){}[a71_0x45382f(0xfe)](_0x1ac2af){const _0x28843a=a71_0x45382f;this[_0x28843a(0xdf)]=_0x1ac2af;}[a71_0x45382f(0x102)](_0x44f132){const _0x27080d=a71_0x45382f;this['logFilePath']=a71_0x14085c[_0x27080d(0xe8)](_0x44f132,PRODUCT_CONFIG[_0x27080d(0xef)]),this[_0x27080d(0xf0)]&&this[_0x27080d(0xf0)]['clear'](),this['initWinstonLogger']();}[a71_0x45382f(0x109)](){const _0x2d9306=a71_0x45382f,_0x1f523e=a71_0x14085c['dirname'](this[_0x2d9306(0xe4)]);!a71_0x31ed24['existsSync'](_0x1f523e)&&a71_0x31ed24[_0x2d9306(0xe6)](_0x1f523e,{'recursive':!![]});const _0x3e5db7=a71_0x31ca56[_0x2d9306(0xee)]['combine'](a71_0x31ca56[_0x2d9306(0xee)]['timestamp'](),a71_0x31ca56[_0x2d9306(0xee)][_0x2d9306(0x108)]({'stack':!![]}),a71_0x31ca56[_0x2d9306(0xee)]['printf'](_0x513457=>{const _0x152ee3=_0x2d9306,_0x538a04={'timestamp':_0x513457[_0x152ee3(0xe9)]||new Date()['toISOString'](),'level':_0x513457['level']||_0x152ee3(0xde),'command':_0x513457[_0x152ee3(0xdd)]||_0x152ee3(0xe1),'rawCommand':_0x513457[_0x152ee3(0xe5)]||this[_0x152ee3(0xdf)]||undefined,'message':_0x513457[_0x152ee3(0xea)]||'','duration':_0x513457[_0x152ee3(0x10b)]||undefined,'details':_0x513457[_0x152ee3(0x100)]||undefined};return JSON[_0x152ee3(0xd9)](_0x538a04);}));this[_0x2d9306(0xf0)]=a71_0x31ca56[_0x2d9306(0xeb)]({'level':_0x2d9306(0xde),'format':_0x3e5db7,'transports':[new a71_0x31ca56[(_0x2d9306(0xd5))][(_0x2d9306(0xd7))]({'filename':this[_0x2d9306(0xe4)],'level':'info'})],'silent':![]}),a71_0x31ca56[_0x2d9306(0x10a)]({'success':'green','error':'red','warn':_0x2d9306(0xd8),'info':_0x2d9306(0xd3)});}[a71_0x45382f(0xde)](_0x51bdcd,_0x106510,_0x291b9f){const _0x40c992=a71_0x45382f;if(!this[_0x40c992(0xe4)]||!this[_0x40c992(0xf0)])return;this['winstonLogger'][_0x40c992(0xde)](_0x106510,{'command':_0x51bdcd,'details':_0x291b9f});}[a71_0x45382f(0xf3)](_0x54d242,_0x4d1a59,_0x2bc8b9,_0xd48f23){const _0x344ef9=a71_0x45382f;if(!this['logFilePath']||!this[_0x344ef9(0xf0)])return;this[_0x344ef9(0xf0)][_0x344ef9(0xd4)](_0x344ef9(0xde),_0x4d1a59,{'level':'success','command':_0x54d242,'duration':_0x2bc8b9,'details':_0xd48f23});}[a71_0x45382f(0xf7)](_0x271081,_0x5912ec,_0x22fe3e){const _0x123a1c=a71_0x45382f;if(!this[_0x123a1c(0xe4)]||!this[_0x123a1c(0xf0)])return;this[_0x123a1c(0xf0)][_0x123a1c(0xf7)](_0x5912ec,{'command':_0x271081,'details':_0x22fe3e});}['warn'](_0x5e1134,_0x31ea07,_0x3ffa53){const _0x812341=a71_0x45382f;if(!this[_0x812341(0xe4)]||!this[_0x812341(0xf0)])return;this[_0x812341(0xf0)][_0x812341(0xfc)](_0x31ea07,{'command':_0x5e1134,'details':_0x3ffa53});}async[a71_0x45382f(0xe3)](_0x3f6295,_0x3af8e7,_0x38984a){const _0x3bea03=a71_0x45382f,_0x18e021=Date['now']();this[_0x3bea03(0xde)](_0x3f6295,'Starting:\x20'+_0x3af8e7);try{const _0xf175e6=await _0x38984a(),_0x4f1893=Date[_0x3bea03(0xfa)]()-_0x18e021;return this[_0x3bea03(0xf3)](_0x3f6295,_0x3bea03(0x104)+_0x3af8e7,_0x4f1893),_0xf175e6;}catch(_0x10ee8e){const _0x410441=Date[_0x3bea03(0xfa)]()-_0x18e021;this[_0x3bea03(0xf7)](_0x3f6295,_0x3bea03(0xf5)+_0x3af8e7,{'error':_0x10ee8e instanceof Error?_0x10ee8e['message']:String(_0x10ee8e),'duration':_0x410441});throw _0x10ee8e;}}[a71_0x45382f(0x105)](){const _0x187459=a71_0x45382f;try{if(!a71_0x31ed24['existsSync'](this[_0x187459(0xe4)]))return[];const _0x4708be=a71_0x31ed24[_0x187459(0xf1)](this[_0x187459(0xe4)],_0x187459(0xfd));return _0x4708be['split'](/\r?\n/)[_0x187459(0xed)](_0x18a4f3=>_0x18a4f3[_0x187459(0xd6)]())[_0x187459(0xe0)](_0x4f9483=>JSON[_0x187459(0xda)](_0x4f9483));}catch(_0x5a242d){return console[_0x187459(0xfc)](_0x187459(0xe2),_0x5a242d),[];}}['clearLogs'](){const _0x2d9fe8=a71_0x45382f;try{a71_0x31ed24[_0x2d9fe8(0xff)](this[_0x2d9fe8(0xe4)])&&a71_0x31ed24[_0x2d9fe8(0xf6)](this[_0x2d9fe8(0xe4)],'',_0x2d9fe8(0xfd));}catch(_0x5ecc9c){console[_0x2d9fe8(0xfc)](_0x2d9fe8(0x106),_0x5ecc9c);}}[a71_0x45382f(0xdb)](){const _0x384b38=a71_0x45382f;return this[_0x384b38(0xf0)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a72_0x5e03(){var _0x18ab20=['6949392raZEBa','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Invalid\x20JSON\x20for\x20--params:\x20','5338035IRgTPO','65960HrZKkr','76793jGMtaH','12sgSjKG','parse','isArray','object','1420FHAnBG','567sHrpRS','11163RghJli','items','851931okVinH','203841gPDrxo','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','92nApyqu','validation'];a72_0x5e03=function(){return _0x18ab20;};return a72_0x5e03();}(function(_0x1dc611,_0x1903f2){var _0x174ef4=a72_0x4fd9,_0x1e6dbf=_0x1dc611();while(!![]){try{var _0x5efeab=parseInt(_0x174ef4(0x197))/0x1*(parseInt(_0x174ef4(0x198))/0x2)+parseInt(_0x174ef4(0x18b))/0x3*(parseInt(_0x174ef4(0x190))/0x4)+parseInt(_0x174ef4(0x195))/0x5+parseInt(_0x174ef4(0x192))/0x6+parseInt(_0x174ef4(0x18a))/0x7*(parseInt(_0x174ef4(0x196))/0x8)+-parseInt(_0x174ef4(0x18d))/0x9+-parseInt(_0x174ef4(0x189))/0xa*(parseInt(_0x174ef4(0x18e))/0xb);if(_0x5efeab===_0x1903f2)break;else _0x1e6dbf['push'](_0x1e6dbf['shift']());}catch(_0x4c64b9){_0x1e6dbf['push'](_0x1e6dbf['shift']());}}}(a72_0x5e03,0xae4ec));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x19de5c){var _0x5b0612=a72_0x4fd9;if(!_0x19de5c)return undefined;try{return JSON[_0x5b0612(0x199)](_0x19de5c);}catch{throw CliErrors[_0x5b0612(0x191)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x19de5c);}}function a72_0x4fd9(_0x66960b,_0x6901d){_0x66960b=_0x66960b-0x187;var _0x5e0329=a72_0x5e03();var _0x4fd9ce=_0x5e0329[_0x66960b];return _0x4fd9ce;}export function parseJsonParamsValue(_0x3de244){var _0x1b17b4=a72_0x4fd9;if(!_0x3de244)return undefined;try{return JSON[_0x1b17b4(0x199)](_0x3de244);}catch{throw CliErrors[_0x1b17b4(0x191)](_0x1b17b4(0x194)+_0x3de244);}}export function parseBatchCreateItemsFromParams(_0x55d788){var _0x4b4d45=a72_0x4fd9;if(Array['isArray'](_0x55d788))return _0x55d788;if(_0x55d788!==null&&_0x55d788!==undefined&&typeof _0x55d788===_0x4b4d45(0x188)&&Array[_0x4b4d45(0x187)](_0x55d788[_0x4b4d45(0x18c)]))return _0x55d788[_0x4b4d45(0x18c)];throw CliErrors[_0x4b4d45(0x191)](_0x4b4d45(0x193),_0x4b4d45(0x18f));}
1
+ function a72_0x53c3(_0x480a71,_0xdc81ea){_0x480a71=_0x480a71-0x12c;var _0xb006b2=a72_0xb006();var _0x53c396=_0xb006b2[_0x480a71];return _0x53c396;}function a72_0xb006(){var _0x4e8447=['12835521OaRjju','validation','items','688176gLsjEJ','4373965MdGNYp','142924KoQglN','621906uUYTiV','44124kcKzRR','object','397180iRxPAE','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','parse','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','isArray','42fNwFKx','8ZGQSnP'];a72_0xb006=function(){return _0x4e8447;};return a72_0xb006();}(function(_0x807cb6,_0x5d07fb){var _0xdeed02=a72_0x53c3,_0xefb16a=_0x807cb6();while(!![]){try{var _0x5e7492=parseInt(_0xdeed02(0x12f))/0x1+-parseInt(_0xdeed02(0x13c))/0x2+-parseInt(_0xdeed02(0x12c))/0x3+-parseInt(_0xdeed02(0x13a))/0x4+-parseInt(_0xdeed02(0x13b))/0x5+parseInt(_0xdeed02(0x12d))/0x6*(parseInt(_0xdeed02(0x135))/0x7)+parseInt(_0xdeed02(0x136))/0x8*(parseInt(_0xdeed02(0x137))/0x9);if(_0x5e7492===_0x5d07fb)break;else _0xefb16a['push'](_0xefb16a['shift']());}catch(_0x518d8c){_0xefb16a['push'](_0xefb16a['shift']());}}}(a72_0xb006,0x844b0));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x5f234b){var _0xfbdc6e=a72_0x53c3;if(!_0x5f234b)return undefined;try{return JSON[_0xfbdc6e(0x132)](_0x5f234b);}catch{throw CliErrors[_0xfbdc6e(0x138)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5f234b);}}export function parseJsonParamsValue(_0x11f314){var _0x4e8689=a72_0x53c3;if(!_0x11f314)return undefined;try{return JSON[_0x4e8689(0x132)](_0x11f314);}catch{throw CliErrors[_0x4e8689(0x138)](_0x4e8689(0x130)+_0x11f314);}}export function parseBatchCreateItemsFromParams(_0x49b99f){var _0xeb237c=a72_0x53c3;if(Array[_0xeb237c(0x134)](_0x49b99f))return _0x49b99f;if(_0x49b99f!==null&&_0x49b99f!==undefined&&typeof _0x49b99f===_0xeb237c(0x12e)&&Array[_0xeb237c(0x134)](_0x49b99f['items']))return _0x49b99f[_0xeb237c(0x139)];throw CliErrors[_0xeb237c(0x138)](_0xeb237c(0x133),_0xeb237c(0x131));}
@@ -1 +1 @@
1
- function a73_0x57db(_0x42e42a,_0x4c3de6){_0x42e42a=_0x42e42a-0x10d;const _0x2bef60=a73_0x2bef();let _0x57db4e=_0x2bef60[_0x42e42a];return _0x57db4e;}const a73_0x2a1e42=a73_0x57db;(function(_0x2a8163,_0x4c1bab){const _0xb79df7=a73_0x57db,_0x49713d=_0x2a8163();while(!![]){try{const _0xedae5=parseInt(_0xb79df7(0x117))/0x1*(parseInt(_0xb79df7(0x11a))/0x2)+parseInt(_0xb79df7(0x115))/0x3*(-parseInt(_0xb79df7(0x10e))/0x4)+-parseInt(_0xb79df7(0x111))/0x5*(-parseInt(_0xb79df7(0x119))/0x6)+-parseInt(_0xb79df7(0x112))/0x7+parseInt(_0xb79df7(0x110))/0x8*(parseInt(_0xb79df7(0x116))/0x9)+parseInt(_0xb79df7(0x10f))/0xa*(-parseInt(_0xb79df7(0x113))/0xb)+parseInt(_0xb79df7(0x118))/0xc;if(_0xedae5===_0x4c1bab)break;else _0x49713d['push'](_0x49713d['shift']());}catch(_0x352afe){_0x49713d['push'](_0x49713d['shift']());}}}(a73_0x2bef,0xcea6c));export const isWindows=process[a73_0x2a1e42(0x114)]===a73_0x2a1e42(0x10d);function a73_0x2bef(){const _0x28295f=['26091VmTjji','18oZOyOw','1423633fUSVJe','2182920NhYngn','43794qlWFTY','2YJMFsa','win32','152pLDOWu','140kIzLhv','3205624NbrFjF','365vYBunD','4204942QGWJjM','913110JGrpEf','platform'];a73_0x2bef=function(){return _0x28295f;};return a73_0x2bef();}export function resolveNpmBin(_0x5e620f){return isWindows?_0x5e620f+'.cmd':_0x5e620f;}
1
+ function a73_0x299c(){const _0x11cf17=['354eiFeYu','2fdMFsn','46040JoSXrP','8nGcdcI','platform','7476tQQDUw','5333489RXghGd','6127lQfpdL','1338WphrRs','326437DxekNJ','19800372urEoZr','6484185hICHXj','10150OmiEkC'];a73_0x299c=function(){return _0x11cf17;};return a73_0x299c();}function a73_0x4c5a(_0x2c3fa5,_0xa488f9){_0x2c3fa5=_0x2c3fa5-0x15a;const _0x299cec=a73_0x299c();let _0x4c5a32=_0x299cec[_0x2c3fa5];return _0x4c5a32;}const a73_0x4f24c2=a73_0x4c5a;(function(_0x5d73ab,_0x28ece4){const _0x21818e=a73_0x4c5a,_0x104d5e=_0x5d73ab();while(!![]){try{const _0x55c3e8=parseInt(_0x21818e(0x161))/0x1*(parseInt(_0x21818e(0x166))/0x2)+-parseInt(_0x21818e(0x160))/0x3*(-parseInt(_0x21818e(0x15d))/0x4)+-parseInt(_0x21818e(0x15a))/0x5*(-parseInt(_0x21818e(0x165))/0x6)+parseInt(_0x21818e(0x15e))/0x7*(-parseInt(_0x21818e(0x15b))/0x8)+parseInt(_0x21818e(0x163))/0x9+parseInt(_0x21818e(0x164))/0xa*(parseInt(_0x21818e(0x15f))/0xb)+-parseInt(_0x21818e(0x162))/0xc;if(_0x55c3e8===_0x28ece4)break;else _0x104d5e['push'](_0x104d5e['shift']());}catch(_0x313292){_0x104d5e['push'](_0x104d5e['shift']());}}}(a73_0x299c,0x8ce79));export const isWindows=process[a73_0x4f24c2(0x15c)]==='win32';export function resolveNpmBin(_0x592afb){return isWindows?_0x592afb+'.cmd':_0x592afb;}