@lovrabet/lovrabet-cli 2.0.14-beta.2 → 2.0.14-beta.4

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(_0x307885,_0x4aa62e){const _0x3a0a98=a61_0x4a36,_0x861db2=_0x307885();while(!![]){try{const _0x309296=parseInt(_0x3a0a98(0x139))/0x1*(parseInt(_0x3a0a98(0x147))/0x2)+-parseInt(_0x3a0a98(0x13b))/0x3+parseInt(_0x3a0a98(0x12b))/0x4*(-parseInt(_0x3a0a98(0x138))/0x5)+-parseInt(_0x3a0a98(0x13a))/0x6*(-parseInt(_0x3a0a98(0x145))/0x7)+-parseInt(_0x3a0a98(0x143))/0x8*(parseInt(_0x3a0a98(0x12e))/0x9)+-parseInt(_0x3a0a98(0x129))/0xa*(parseInt(_0x3a0a98(0x13f))/0xb)+parseInt(_0x3a0a98(0x13e))/0xc;if(_0x309296===_0x4aa62e)break;else _0x861db2['push'](_0x861db2['shift']());}catch(_0x31508c){_0x861db2['push'](_0x861db2['shift']());}}}(a61_0x3285,0xa13f4));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x5a5233,_0x13e5a2,_0x3ba0e0){const _0x5d8ce1=a61_0x4a36,_0x132896=buildConfirmationContext(_0x5a5233,_0x13e5a2,_0x3ba0e0),_0x1359af=[_0x5d8ce1(0x140)+_0x132896[_0x5d8ce1(0x132)]];return _0x132896[_0x5d8ce1(0x13d)]&&_0x1359af[_0x5d8ce1(0x133)]('\x20\x20\x20'+_0x132896[_0x5d8ce1(0x13d)]),_0x132896[_0x5d8ce1(0x136)]&&_0x1359af[_0x5d8ce1(0x133)](_0x5d8ce1(0x142)+_0x132896[_0x5d8ce1(0x136)]),_0x1359af[_0x5d8ce1(0x133)](_0x5d8ce1(0x137)),_0x1359af;}function a61_0x4a36(_0x3b323f,_0x19b0fc){_0x3b323f=_0x3b323f-0x129;const _0x32855e=a61_0x3285();let _0x4a3693=_0x32855e[_0x3b323f];return _0x4a3693;}export function reconstructCommandArgv(_0x5521da,_0x28f5c5){const _0xced99e=a61_0x4a36,_0x10249a=[CLI_BIN_NAME,_0x5521da[_0xced99e(0x130)],_0x5521da[_0xced99e(0x12a)]];for(const [_0x263283,_0x53803e]of Object[_0xced99e(0x135)](_0x28f5c5)){if(_0x53803e===!![])_0x10249a[_0xced99e(0x133)]('--'+_0x263283);else _0x53803e!==![]&&_0x53803e!==undefined&&_0x53803e!==''&&_0x10249a[_0xced99e(0x133)]('--'+_0x263283+'\x20'+JSON[_0xced99e(0x12c)](_0x53803e));}return _0x10249a['push'](_0xced99e(0x134)),_0x10249a[_0xced99e(0x131)]('\x20');}function buildConfirmationContext(_0x202b43,_0x3ecbb3,_0x12b53c){const _0x486f3e=a61_0x4a36,_0x4da7fa=extractAffectedRecords(_0x12b53c);return{'commandLabel':_0x3ecbb3,'description':_0x202b43[_0x486f3e(0x13d)],'affectedRecords':_0x4da7fa};}function extractAffectedRecords(_0x2d53a3){const _0x8f5b03=a61_0x4a36,_0x6c334b=[];if(_0x2d53a3[_0x8f5b03(0x141)])_0x6c334b[_0x8f5b03(0x133)](_0x8f5b03(0x13c)+_0x2d53a3[_0x8f5b03(0x141)]);if(_0x2d53a3['id'])_0x6c334b[_0x8f5b03(0x133)]('id='+_0x2d53a3['id']);if(_0x2d53a3[_0x8f5b03(0x146)])_0x6c334b['push'](_0x8f5b03(0x12d)+_0x2d53a3['name']);if(_0x2d53a3[_0x8f5b03(0x12f)])_0x6c334b[_0x8f5b03(0x133)](_0x8f5b03(0x144)+_0x2d53a3[_0x8f5b03(0x12f)]);return _0x6c334b['length']>0x0?_0x6c334b[_0x8f5b03(0x131)](',\x20'):undefined;}function a61_0x3285(){const _0x27114d=['join','commandLabel','push','--yes','entries','affectedRecords','\x20\x20\x20Continue?\x20[y/N]\x20','244705SAnblK','163MHWiWV','4942218QbFSzl','3131565KolRGO','code=','description','3017544YLLcym','932822RcagiW','⚠\x20\x20High-risk\x20operation:\x20','code','\x20\x20\x20Affected:\x20','63392apyXJb','params=','7yUrIUi','name','13678sOmYYd','30MJgtVe','command','4svjioa','stringify','name=','207LGzTOd','params','service'];a61_0x3285=function(){return _0x27114d;};return a61_0x3285();}
@@ -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(_0x5158b8,_0x3e3d0b){const _0x4a5751=a62_0x51f7,_0x74fab0=_0x5158b8();while(!![]){try{const _0xdcd672=-parseInt(_0x4a5751(0x8e))/0x1*(-parseInt(_0x4a5751(0x7f))/0x2)+parseInt(_0x4a5751(0x8f))/0x3*(parseInt(_0x4a5751(0x89))/0x4)+-parseInt(_0x4a5751(0x84))/0x5*(-parseInt(_0x4a5751(0x85))/0x6)+parseInt(_0x4a5751(0x88))/0x7+-parseInt(_0x4a5751(0x80))/0x8*(parseInt(_0x4a5751(0x7e))/0x9)+parseInt(_0x4a5751(0x8a))/0xa+parseInt(_0x4a5751(0x82))/0xb*(-parseInt(_0x4a5751(0x87))/0xc);if(_0xdcd672===_0x3e3d0b)break;else _0x74fab0['push'](_0x74fab0['shift']());}catch(_0x30ee4e){_0x74fab0['push'](_0x74fab0['shift']());}}}(a62_0x3e8f,0x55274));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a62_0x51f7(_0x292268,_0x50e021){_0x292268=_0x292268-0x7e;const _0x3e8fb6=a62_0x3e8f();let _0x51f7ac=_0x3e8fb6[_0x292268];return _0x51f7ac;}export function mapUserFacingExecuteError(_0x282e45){const _0x30687f=a62_0x51f7;if(_0x282e45 instanceof LovrabetError)return CliErrors[_0x30687f(0x81)](userFacingLovrabetMessage(_0x282e45));return _0x282e45;}function a62_0x3e8f(){const _0x310eb0=['message','103044xQvMNJ','2515394lBJKQG','2474564RaNCkI','2242620fnssgG','string','description','trim','174194vgbrQu','3cuPnHy','2532717fEssoL','4BebSpP','16bflSdw','validation','1639tNjWyw','stringify','10mFDzai','1921332mgwKpW'];a62_0x3e8f=function(){return _0x310eb0;};return a62_0x3e8f();}function userFacingLovrabetMessage(_0x2f5bab){const _0x40a9d8=a62_0x51f7,_0x2f388b=_0x2f5bab[_0x40a9d8(0x8c)];if(_0x2f388b!==undefined&&_0x2f388b!==null){if(typeof _0x2f388b===_0x40a9d8(0x8b)&&_0x2f388b[_0x40a9d8(0x8d)]())return _0x2f388b[_0x40a9d8(0x8d)]();try{return JSON[_0x40a9d8(0x83)](_0x2f388b);}catch{}}return _0x2f5bab[_0x40a9d8(0x86)];}
@@ -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_0x1b6fdb=a63_0x14e4;(function(_0x315c4c,_0x5356b1){const _0x4ed227=a63_0x14e4,_0x108fbb=_0x315c4c();while(!![]){try{const _0x228e6e=-parseInt(_0x4ed227(0x9d))/0x1+-parseInt(_0x4ed227(0xa0))/0x2+-parseInt(_0x4ed227(0xb5))/0x3+parseInt(_0x4ed227(0xa4))/0x4+-parseInt(_0x4ed227(0x88))/0x5*(-parseInt(_0x4ed227(0x8e))/0x6)+-parseInt(_0x4ed227(0x8c))/0x7+parseInt(_0x4ed227(0x9e))/0x8;if(_0x228e6e===_0x5356b1)break;else _0x108fbb['push'](_0x108fbb['shift']());}catch(_0x1531fb){_0x108fbb['push'](_0x108fbb['shift']());}}}(a63_0x1bc2,0x494b0));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';function a63_0x14e4(_0x296e8f,_0x53e4cb){_0x296e8f=_0x296e8f-0x7a;const _0x1bc2e9=a63_0x1bc2();let _0x14e4be=_0x1bc2e9[_0x296e8f];return _0x14e4be;}import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a63_0x1bc2(){const _0x2a5ed7=['_notice','authRequired','pretty','production','defaultVerbose','includes','name','123774kkkvwE','../core/api-client.js','requiresAuth','isNonInteractive','filter','validation','currentApp','execute','error','defaultPageSize','configMissing','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','appCode','update','accessKey','string','object','Set\x20accessKey\x20in\x20','12230CkHTvA','ACCESS_KEY','items','schema','3253467rgZLqR','doctor','780NFmMBF','requiresAppCode','catch','cancelled','map','appCodeSource','../core/sdk-client.js','\x20or\x20pass\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','app','resolve','rawFlags','newConfigFileName','trim','appName','43194ZNavHF','2177256SImSKM','riskLevel','99582XAZPvS','Run\x20`','apiDomain','.appcode\x20to\x20','1236380gfegjf','nonInteractive','service','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','APPCODE','pageSize','has','env','appcode','command'];a63_0x1bc2=function(){return _0x2a5ed7;};return a63_0x1bc2();}export function resolveAuthMode(_0x420db5){return void _0x420db5,AUTH_MODE['ClientAk'];}export function createPipelineEnv(_0x20054d,_0x15168a){const _0xc83f79=a63_0x14e4,_0x1b7ae4=typeof _0x15168a[_0xc83f79(0x97)]===_0xc83f79(0x85)&&_0x15168a['app'][_0xc83f79(0x9b)]();return{'rawFlags':_0x15168a,'appCode':_0x20054d[_0xc83f79(0x82)]||productEnv('APPCODE')||(_0x1b7ae4?undefined:readAppCodeFromConfig()),'appCodeSource':_0x20054d['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x15168a),'defaultFormat':_0x20054d['format'],'defaultPageSize':_0x20054d[_0xc83f79(0xa9)],'defaultVerbose':_0x20054d['verbose'],'riskLevel':_0x20054d[_0xc83f79(0x9f)],'accessKey':_0x20054d['accessKey'],'env':_0x20054d[_0xc83f79(0xab)],'mergedCli':{'defaultApp':_0x20054d['defaultApp'],'currentApp':_0x20054d[_0xc83f79(0x7c)],'appCode':_0x20054d['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a63_0x1b6fdb(0x7a)](_0x2ed4c2=>PIPELINE_FLAG_NAMES[a63_0x1b6fdb(0xaa)](_0x2ed4c2[a63_0x1b6fdb(0xb4)]))[a63_0x1b6fdb(0x92)](({name:_0x32fce5,type:_0x50e5ad,description:_0x5b7ec5})=>({'name':_0x32fce5,'type':_0x50e5ad,'description':_0x5b7ec5})),'formatOutput':formatOutput,'getCommandLabel'(_0x35a457){const _0x38612d=a63_0x1b6fdb;return CLI_BIN_NAME+'\x20'+_0x35a457[_0x38612d(0xa6)]+'\x20'+_0x35a457[_0x38612d(0xad)];},'riskPolicy':{'onViolation'(_0x1d2cf0){const _0x401aa4=a63_0x1b6fdb;console[_0x401aa4(0x7e)](_0x1d2cf0);},'createError'(_0x499aa5){return CliErrors['cancelled'](_0x499aa5);}},async 'prepare'(_0xad3153,_0x25e192){const _0x34287b=a63_0x1b6fdb,_0x1fe3f0=resolveAuthMode(_0x25e192);if(_0xad3153[_0x34287b(0xb7)]!==![]){if(!_0x25e192[_0x34287b(0x84)])throw CliErrors[_0x34287b(0xaf)](_0x34287b(0x87)+PRODUCT_CONFIG[_0x34287b(0x9a)]+_0x34287b(0x95)+productEnvName(_0x34287b(0x89))+'.');const {setActiveAK:_0xf9165b}=await import(_0x34287b(0xb6));_0xf9165b(_0x25e192[_0x34287b(0x84)]);}let _0x2d85af='';if(_0xad3153['requiresAppCode']!==![]){_0x2d85af=_0x25e192[_0x34287b(0x82)]??'',_0x2d85af=await resolveExplicitAppName(_0xad3153,_0x25e192,_0x2d85af);if(!_0x2d85af)throw CliErrors[_0x34287b(0x80)](_0x34287b(0x96)+PRODUCT_CONFIG[_0x34287b(0x9a)]+'.');}if(_0x2d85af){const {initSdkClient:_0x4562bb}=await import(_0x34287b(0x94));_0x4562bb({'appCode':_0x2d85af,'env':_0x25e192['env']??'production','accessKey':_0x25e192[_0x34287b(0x84)],'authMode':_0x1fe3f0});}return{'defaults':{'booleans':{'verbose':_0x25e192[_0x34287b(0xb2)]},'numbers':{'pagesize':_0x25e192[_0x34287b(0x7f)]}},'extras':{'appCode':_0x2d85af,'cookie':'','apiDomain':_0x25e192[_0x34287b(0xa2)],'apiDir':'','accessKey':_0x25e192[_0x34287b(0x84)],'envName':_0x25e192[_0x34287b(0xab)],'mergedCli':_0x25e192['mergedCli']}};},async 'confirmHighRisk'({def:_0x22b744,env:_0x16a942,flags:_0x4dc5fc,commandLabel:_0x258f33}){const _0x1395ab=a63_0x1b6fdb;if(_0x16a942[_0x1395ab(0xb8)]){const _0x5d8451=reconstructCommandArgv(_0x22b744,_0x4dc5fc);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x258f33+_0x1395ab(0x81)+('\x20\x20To\x20proceed:\x20'+_0x5d8451));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x22b744,_0x258f33,_0x4dc5fc),'createCancelledError':_0x5b33c9=>CliErrors[_0x1395ab(0x91)](_0x5b33c9)});},'mapDryRunError'(_0xcbcf5e){return mapUserFacingExecuteError(_0xcbcf5e);},'mapExecuteError'(_0x17368c){return mapUserFacingExecuteError(_0x17368c);},async 'finalize'(){const _0x21ddbc=a63_0x1b6fdb,{clearActiveAK:_0x4a1e86}=await import(_0x21ddbc(0xb6));_0x4a1e86();}};async function resolveExplicitAppName(_0x31fa88,_0x53f6e3,_0xa714bb){const _0x254ca0=a63_0x1b6fdb;if(_0x31fa88[_0x254ca0(0x8f)]===![])return _0xa714bb;const _0x9de6bd=typeof _0x53f6e3['rawFlags']['app']===_0x254ca0(0x85)?_0x53f6e3[_0x254ca0(0x99)]['app'][_0x254ca0(0x9b)]():'';if(!_0x9de6bd)return _0xa714bb;const _0x5e08b9=typeof _0x53f6e3[_0x254ca0(0x99)][_0x254ca0(0xac)]===_0x254ca0(0x85)&&_0x53f6e3[_0x254ca0(0x99)][_0x254ca0(0xac)]['trim']()||productEnv(_0x254ca0(0xa8));if(_0x5e08b9||_0x53f6e3[_0x254ca0(0x93)]==='local-alias')return _0xa714bb;const {getRemoteAppList:_0x3bb6e4}=await import('../commands/app/remote-source.js'),_0x1eaf85=await _0x3bb6e4({'env':_0x53f6e3[_0x254ca0(0xab)]??_0x254ca0(0xb1),'accessKey':_0x53f6e3[_0x254ca0(0x84)]}),_0x55fc1e=_0x1eaf85[_0x254ca0(0x8a)]['find'](_0x37fb45=>_0x37fb45[_0x254ca0(0x9c)]===_0x9de6bd),_0x4cedb0=_0x55fc1e?.[_0x254ca0(0x82)]?.[_0x254ca0(0x9b)]();if(_0x4cedb0)return _0x4cedb0;throw CliErrors[_0x254ca0(0x7b)]('Unknown\x20app:\x20'+_0x9de6bd,_0x254ca0(0xa1)+CLI_BIN_NAME+_0x254ca0(0xa7)+_0x9de6bd+_0x254ca0(0xa3)+PRODUCT_CONFIG['newConfigFileName']+'.');}export async function runCommand(_0x201306,_0x113925){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x201306)?withUpdateNotice(_0x201306):_0x201306,_0x113925,runnerAdapter);}function shouldAttachUpdateNotice(_0x197f75){const _0x14bbc0=a63_0x1b6fdb;return![_0x14bbc0(0x83),_0x14bbc0(0x8b),_0x14bbc0(0x8d)][_0x14bbc0(0xb3)](_0x197f75[_0x14bbc0(0xa6)]);}function withUpdateNotice(_0x1445b6){return{..._0x1445b6,async 'execute'(_0x1eef83){const _0x882ea5=a63_0x14e4,_0x43f6bc=shouldResolveUpdateNotice(_0x1eef83)?resolveLatestUpdateNotice()[_0x882ea5(0x90)](()=>null):Promise[_0x882ea5(0x98)](null),_0x5e3162=await _0x1445b6[_0x882ea5(0x7d)](_0x1eef83);return attachUpdateNotice(_0x5e3162,await _0x43f6bc);}};}function shouldResolveUpdateNotice(_0x56a757){const _0x19cf3e=a63_0x1b6fdb;return _0x56a757['format']===_0x19cf3e(0xb0)&&!_0x56a757[_0x19cf3e(0xa5)];}function attachUpdateNotice(_0x237745,_0x53ca9a){const _0x2bbe44=a63_0x1b6fdb;if(!_0x53ca9a||!_0x237745||typeof _0x237745!==_0x2bbe44(0x86))return _0x237745;const _0x1ae6c4=_0x237745,_0x4c27ff=typeof _0x1ae6c4[_0x2bbe44(0xae)]===_0x2bbe44(0x86)&&_0x1ae6c4['_notice']!==null?_0x1ae6c4['_notice']:{};return{..._0x1ae6c4,'_notice':{..._0x4c27ff,'update':_0x53ca9a}};}
@@ -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(_0x2bb8a2,_0xb94636){const _0x3b93dd=a64_0x399b,_0x23da34=_0x2bb8a2();while(!![]){try{const _0x3b4399=parseInt(_0x3b93dd(0x160))/0x1+parseInt(_0x3b93dd(0x15f))/0x2+parseInt(_0x3b93dd(0x162))/0x3+-parseInt(_0x3b93dd(0x15a))/0x4*(-parseInt(_0x3b93dd(0x15d))/0x5)+-parseInt(_0x3b93dd(0x161))/0x6+-parseInt(_0x3b93dd(0x15e))/0x7+parseInt(_0x3b93dd(0x15c))/0x8*(-parseInt(_0x3b93dd(0x15b))/0x9);if(_0x3b4399===_0xb94636)break;else _0x23da34['push'](_0x23da34['shift']());}catch(_0x3ff4c6){_0x23da34['push'](_0x23da34['shift']());}}}(a64_0x3c10,0xe6711));import{buildSchemaPayload as a64_0xcf7741}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';function a64_0x399b(_0x36a8de,_0x4a697d){_0x36a8de=_0x36a8de-0x15a;const _0x3c10ab=a64_0x3c10();let _0x399bbe=_0x3c10ab[_0x36a8de];return _0x399bbe;}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x139fc6,findDefinition:_0x1086ba}=await import('../commands/registry.js');return a64_0xcf7741({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x139fc6,'buildAllFlags':buildAllFlags,'findDefinition':_0x1086ba});}function a64_0x3c10(){const _0x1d55d0=['2707368ObrnQY','559776WpkmWY','3286672ODnXWB','9EmmGIS','9396840QIXqzP','5PyGPos','7761705WCURKf','3066060BZnzGE','1137247fNwKCj'];a64_0x3c10=function(){return _0x1d55d0;};return a64_0x3c10();}
@@ -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 a65_0x4cd5(_0xbdd54a,_0x12d8e9){_0xbdd54a=_0xbdd54a-0x1b9;var _0x8efc67=a65_0x8efc();var _0x4cd5fc=_0x8efc67[_0xbdd54a];return _0x4cd5fc;}(function(_0x582e20,_0x4edb4f){var _0x8c2984=a65_0x4cd5,_0x13cf9a=_0x582e20();while(!![]){try{var _0x44cea8=parseInt(_0x8c2984(0x1bd))/0x1+parseInt(_0x8c2984(0x1c2))/0x2+parseInt(_0x8c2984(0x1be))/0x3*(parseInt(_0x8c2984(0x1c1))/0x4)+parseInt(_0x8c2984(0x1bc))/0x5*(-parseInt(_0x8c2984(0x1b9))/0x6)+-parseInt(_0x8c2984(0x1ba))/0x7+parseInt(_0x8c2984(0x1bb))/0x8+-parseInt(_0x8c2984(0x1c0))/0x9*(-parseInt(_0x8c2984(0x1bf))/0xa);if(_0x44cea8===_0x4edb4f)break;else _0x13cf9a['push'](_0x13cf9a['shift']());}catch(_0x1e8346){_0x13cf9a['push'](_0x13cf9a['shift']());}}}(a65_0x8efc,0x19d96));function a65_0x8efc(){var _0x24dcd2=['5twERYT','34805rtLSGY','8697Nyzncj','65570VUHlSC','72bcFlmL','16ePVXEo','374302nBCEgq','1201236ILgytM','397201VhGLhT','614552YjTLLw'];a65_0x8efc=function(){return _0x24dcd2;};return a65_0x8efc();}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_0x2ce9e8=a66_0x6bab;(function(_0x20610c,_0x168b72){const _0x3926b7=a66_0x6bab,_0x41e53f=_0x20610c();while(!![]){try{const _0x3daff2=-parseInt(_0x3926b7(0xc5))/0x1*(parseInt(_0x3926b7(0xc4))/0x2)+parseInt(_0x3926b7(0xc9))/0x3*(-parseInt(_0x3926b7(0xc3))/0x4)+parseInt(_0x3926b7(0xc0))/0x5+parseInt(_0x3926b7(0xbd))/0x6*(parseInt(_0x3926b7(0xbc))/0x7)+parseInt(_0x3926b7(0xc8))/0x8*(parseInt(_0x3926b7(0xc1))/0x9)+-parseInt(_0x3926b7(0xbe))/0xa*(-parseInt(_0x3926b7(0xc2))/0xb)+-parseInt(_0x3926b7(0xbf))/0xc;if(_0x3daff2===_0x168b72)break;else _0x41e53f['push'](_0x41e53f['shift']());}catch(_0x4b05bb){_0x41e53f['push'](_0x41e53f['shift']());}}}(a66_0x5dc5,0x1e3f0));function a66_0x5dc5(){const _0x284d88=['592265gefvXr','126uZQKuN','1967383RaZTpC','219764ComSkL','2nbRQym','168323kgWYvZ','2.0.14-beta.4','0493045','70416KcVJVq','3IBxXbk','7nXGKaC','319224JAQZgL','10RqYXVi','1519032wCqQmn'];a66_0x5dc5=function(){return _0x284d88;};return a66_0x5dc5();}function a66_0x6bab(_0x30c7f1,_0x352b32){_0x30c7f1=_0x30c7f1-0xbc;const _0x5dc53b=a66_0x5dc5();let _0x6bab37=_0x5dc53b[_0x30c7f1];return _0x6bab37;}export const VERSION=a66_0x2ce9e8(0xc6);export const GIT_TAG='v2.0.14-beta.3';export const GIT_COMMIT=a66_0x2ce9e8(0xc7);export const BUILD_TIME='2026-06-16T12:28:14.466Z';
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 a67_0x5ea9(){const _0xd8d8c6=['2483412YSEquH','1714504soNMWo','2192400kcCHVi','3ZEdEmP','\x20\x20Use\x20','column','202104RAAQRW','312RwtFeT','21641xQuMUN','337941iZjRSz','green','5074315fJRLKP','\x20to\x20view\x20available\x20commands.'];a67_0x5ea9=function(){return _0xd8d8c6;};return a67_0x5ea9();}function a67_0x2360(_0x16c970,_0x5076f6){_0x16c970=_0x16c970-0xb9;const _0x5ea91c=a67_0x5ea9();let _0x236072=_0x5ea91c[_0x16c970];return _0x236072;}(function(_0x4032a0,_0x41e2f8){const _0x14d29e=a67_0x2360,_0x54ceb4=_0x4032a0();while(!![]){try{const _0x3fbaa2=-parseInt(_0x14d29e(0xbd))/0x1+-parseInt(_0x14d29e(0xc3))/0x2*(parseInt(_0x14d29e(0xc5))/0x3)+-parseInt(_0x14d29e(0xc2))/0x4+parseInt(_0x14d29e(0xc0))/0x5+-parseInt(_0x14d29e(0xbb))/0x6+-parseInt(_0x14d29e(0xc4))/0x7+-parseInt(_0x14d29e(0xbc))/0x8*(-parseInt(_0x14d29e(0xbe))/0x9);if(_0x3fbaa2===_0x41e2f8)break;else _0x54ceb4['push'](_0x54ceb4['shift']());}catch(_0x504417){_0x54ceb4['push'](_0x54ceb4['shift']());}}}(a67_0x5ea9,0x9a744));import{jsx as a67_0x176c4e,jsxs as a67_0x4ead19}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x53e19e=a67_0x2360,{exit:_0x11d229}=useApp();return useEffect(()=>{_0x11d229();},[_0x11d229]),a67_0x4ead19(Box,{'flexDirection':_0x53e19e(0xba),'marginTop':0x1,'marginBottom':0x1,'children':[a67_0x176c4e(Box,{'children':a67_0x176c4e(Text,{'bold':!![],'color':_0x53e19e(0xbf),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a67_0x4ead19(Box,{'marginTop':0x1,'children':[a67_0x176c4e(Text,{'dimColor':!![],'children':_0x53e19e(0xb9)}),a67_0x176c4e(Text,{'bold':!![],'color':_0x53e19e(0xbf),'children':CLI_BIN_NAME+'\x20--help'}),a67_0x176c4e(Text,{'dimColor':!![],'children':_0x53e19e(0xc1)})]})]});}
@@ -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_0x50afc5=a68_0x21e6;function a68_0x21e6(_0x1ac8b3,_0x24b2be){_0x1ac8b3=_0x1ac8b3-0x1e8;const _0x34425e=a68_0x3442();let _0x21e6b3=_0x34425e[_0x1ac8b3];return _0x21e6b3;}(function(_0x33d008,_0x526610){const _0x422929=a68_0x21e6,_0x46bf6d=_0x33d008();while(!![]){try{const _0xdcfa7b=-parseInt(_0x422929(0x1fd))/0x1+-parseInt(_0x422929(0x1f5))/0x2*(-parseInt(_0x422929(0x1fa))/0x3)+-parseInt(_0x422929(0x1e8))/0x4*(-parseInt(_0x422929(0x1f6))/0x5)+-parseInt(_0x422929(0x1f4))/0x6+parseInt(_0x422929(0x1ec))/0x7*(parseInt(_0x422929(0x1ed))/0x8)+-parseInt(_0x422929(0x1f2))/0x9*(parseInt(_0x422929(0x1fc))/0xa)+parseInt(_0x422929(0x1f8))/0xb;if(_0xdcfa7b===_0x526610)break;else _0x46bf6d['push'](_0x46bf6d['shift']());}catch(_0x3d1a63){_0x46bf6d['push'](_0x46bf6d['shift']());}}}(a68_0x3442,0xe5d73));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a68_0x5bf739}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a68_0x5bf739;function a68_0x3442(){const _0x4c36e0=['skills','trim','stdio','10809594JVsjIG','stderr','10622136mdZOht','4lysDrL','445oQudkD','stdout','33257246MNxuHo','toString','2358798kcAgoo','skipNpxSkillsEnvSuffix','10ZxIUEa','1837596ACUTwy','unknown','41192mooWDB','log','status','join','4305TLsbKG','3096ISUeOk','add'];a68_0x3442=function(){return _0x4c36e0;};return a68_0x3442();}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a68_0x50afc5(0x1fb)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x4d1afa,_0x376557=LOVRABET_SKILL_SOURCE,_0x434abc){const _0x219062=a68_0x50afc5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x38a998=_0x434abc?.[_0x219062(0x1f1)]??'inherit',_0x4ed66e=resolveNpmBin('npx'),_0x422c38=[_0x219062(0x1ef),_0x219062(0x1ee),_0x376557,'-g','-y'],_0x39432b=[_0x4ed66e,..._0x422c38][_0x219062(0x1eb)]('\x20');console[_0x219062(0x1e9)]('*\x20'+_0x39432b);const _0x469f41=spawnSync(_0x4ed66e,_0x422c38,{'cwd':_0x4d1afa,'stdio':_0x38a998,'env':process.env,'shell':![]});if(_0x469f41['status']===0x0)return{'ok':!![],'status':0x0};let _0x30f5d8='exit\x20'+(_0x469f41[_0x219062(0x1ea)]??_0x219062(0x1fe));if(_0x38a998==='pipe'){const _0x36bf2d=_0x469f41['stderr']?_0x469f41[_0x219062(0x1f3)][_0x219062(0x1f9)]()[_0x219062(0x1f0)]():'',_0x12437e=_0x469f41['stdout']?_0x469f41[_0x219062(0x1f7)]['toString']()[_0x219062(0x1f0)]():'';if(_0x36bf2d)_0x30f5d8=_0x36bf2d;else{if(_0x12437e)_0x30f5d8=_0x12437e;}}return{'ok':![],'status':_0x469f41['status']??null,'error':_0x30f5d8};}
@@ -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_0x324d67=a69_0x432a;(function(_0x1f13ea,_0x1acd29){const _0x15fd1d=a69_0x432a,_0x3f403c=_0x1f13ea();while(!![]){try{const _0x3ddb30=-parseInt(_0x15fd1d(0xbf))/0x1*(-parseInt(_0x15fd1d(0xff))/0x2)+-parseInt(_0x15fd1d(0xc9))/0x3+-parseInt(_0x15fd1d(0x10c))/0x4*(-parseInt(_0x15fd1d(0x9f))/0x5)+parseInt(_0x15fd1d(0x11f))/0x6+-parseInt(_0x15fd1d(0x88))/0x7*(-parseInt(_0x15fd1d(0x7a))/0x8)+-parseInt(_0x15fd1d(0x11a))/0x9+-parseInt(_0x15fd1d(0xd7))/0xa;if(_0x3ddb30===_0x1acd29)break;else _0x3f403c['push'](_0x3f403c['shift']());}catch(_0x55edd5){_0x3f403c['push'](_0x3f403c['shift']());}}}(a69_0x4154,0x27fc1));import{createHash}from'node:crypto';import{inflateRawSync}from'node:zlib';import{existsSync,lstatSync,mkdirSync,readdirSync,readFileSync,readlinkSync,realpathSync,renameSync,rmSync,symlinkSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{basename,dirname,isAbsolute,relative,resolve,sep}from'node:path';import{fingerprintAccessKey}from'../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../constant/product.js';import{CliErrors}from'../errors.js';const METADATA_FILE='lovrabet.skill.json',SKILL_FILE=a69_0x324d67(0xdb),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_0x324d67(0xe5)]),IGNORED_DIR_NAMES=new Set([a69_0x324d67(0xa6),a69_0x324d67(0x102),a69_0x324d67(0x111),'node_modules',a69_0x324d67(0xaa),a69_0x324d67(0xc0),a69_0x324d67(0xa3),a69_0x324d67(0xda),a69_0x324d67(0x100),a69_0x324d67(0xec)]),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(_0x1ddcc5={}){const _0x226609=a69_0x324d67,_0x368d04=_0x1ddcc5[_0x226609(0xe6)]??homedir(),_0x25e43e=resolve(_0x368d04,PRODUCT_CONFIG[_0x226609(0x78)],'cache'),_0x3de3fd=trimmedEnv(_0x226609(0xad)),_0xc242f4=trimmedEnv(_0x226609(0xd4));return{'homeDir':_0x368d04,'cacheRoot':_0x25e43e,'managedRoot':resolve(_0x368d04,PRODUCT_CONFIG[_0x226609(0x78)]),'agentsSkillsDir':_0x1ddcc5[_0x226609(0xd8)]??_0x3de3fd??resolve(_0x368d04,'.agents',_0x226609(0x101)),'claudeSkillsDir':_0x1ddcc5[_0x226609(0xcf)]??_0xc242f4??resolve(_0x368d04,_0x226609(0xfe),_0x226609(0x101))};}export function getRuntimeSkillCacheRoot(_0x310ab5,_0x137d81,_0x37b127={}){const _0x2b8fda=a69_0x324d67,_0x133c10=resolveSkillSyncPaths(_0x37b127);return resolve(_0x133c10[_0x2b8fda(0xc4)],_0x310ab5,fingerprintAccessKey(_0x137d81),_0x2b8fda(0x101));}export function getRuntimeSkillDir(_0x22e5ac,_0x27e016,_0x15a032,_0x3a60ae,_0x192d3f,_0x2e640b={}){const _0x5be19c=a69_0x324d67;return resolve(getRuntimeSkillCacheRoot(_0x22e5ac,_0x27e016,_0x2e640b),safePathSegment(_0x15a032,_0x5be19c(0x71)),_0x3a60ae,safePathSegment(_0x192d3f,_0x5be19c(0xae)));}export function contentHash(_0x138605){const _0x31ef80=a69_0x324d67;return createHash(_0x31ef80(0xb8))[_0x31ef80(0x91)](_0x138605)[_0x31ef80(0x124)](_0x31ef80(0x10e));}function fileContent(_0x35f4f1){const _0x19580c=a69_0x324d67;return _0x35f4f1[_0x19580c(0xa7)]??Buffer[_0x19580c(0xfc)](_0x35f4f1[_0x19580c(0xcb)]??'',_0x19580c(0xd0));}function fileText(_0x479ea1){const _0x309dd3=a69_0x324d67;return fileContent(_0x479ea1)[_0x309dd3(0xbc)](_0x309dd3(0xd0));}function a69_0x4154(){const _0x5dbb30=['split','isBuffer','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','isSafeInteger','homeDirName','Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.','23016eTFKHK','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Duplicate\x20Skill\x20file\x20path:\x20','validation','join','map','name','readUInt16LE','Unable\x20to\x20resolve\x20skillCode\x20from\x20','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','fromEntries','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','personal','pulledAt','420TImrmX','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20name.','Runtime\x20Skill\x20package\x20uses\x20unsupported\x20multi-disk\x20zip\x20format.','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','Missing\x20','toLowerCase','compare','isDirectory','update','created','---','Runtime\x20Skill\x20package\x20uncompressed\x20size\x20mismatch:\x20','dir','schemaVersion','\x20for\x20local\x20path:\x20','some','requireOssPath','path\x20segment','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','env','trim','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','184310djXDGo','Runtime\x20Skill\x20package\x20CRC\x20mismatch:\x20','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','description','build','Unsafe\x20','status','.git','bytes','Runtime\x20Skill\x20package\x20is\x20missing\x20zip\x20central\x20directory.','set','.next','tenantCode','Skill\x20package\x20exceeds\x20size\x20limit.','SKILL_ROOT','skillCode','endsWith','string','skill','Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20entry.','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','scopes','Runtime\x20Skill\x20package\x20has\x20truncated\x20central\x20directory.','filter','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','sha256','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','alloc','toString','size','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','22531LaVFqO','dist','\x20in\x20Skill\x20file\x20package.','get','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','cacheRoot','readUInt32LE','name:\x20','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','221445jnwckj','Skill\x20metadata\x20appCode\x20\x22','content','Skill\x20file\x20sha256\x20is\x20invalid:\x20','entries','object','claudeSkillsDir','utf8','sort','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20package-backed\x20Skill:\x20','Runtime\x20Skill\x20package\x20has\x20truncated\x20entry\x20data:\x20','CLAUDE_SKILL_ROOT','pushedAt','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','4165090XZESSG','agentsSkillsDir','builtin','coverage','SKILL.md','writeUInt16LE','forkedFromVersion','length','toISOString','Runtime\x20Skill\x20is\x20missing\x20skillCode.','isFile','keys','concat','Runtime\x20Skill\x20package\x20size\x20mismatch.','.DS_Store','homeDir','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','slice','Runtime\x20Skill\x20package\x20central\x20directory\x20size\x20mismatch.','sourceSessionId','.cache','replace','unchanged','managedRoot','includes','path','base64','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','find','zipSize','Duplicate\x20Skill\x20package\x20entry:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','zipSha256','\x20or\x20directory\x20name.','description:\x20','company','from','packageBytes','.claude','16dsarWM','.turbo','skills','.hg','values','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','contentHash','metadata-mismatch','push','Skill\x20directory\x20not\x20found:\x20','forkedFromSkillId','activeSkillCodes','has','16lGJQhZ','updated','hex','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','skillName','.svn','readonly','isSymbolicLink','startsWith','manifest','version','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.\x20Changed\x20file:\x20','hasUpstreamUpdate','1232028QriVzS','Skill\x20directory\x20exceeds\x20total\x20file\x20size\x20limit.','scope','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','test','1744062MPxURs','pruneSkillCodes','removed','isArray','copy','digest','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','treeSha256','ossPath','not-managed-symlink','Runtime\x20Skill\x20package\x20','subarray','Runtime\x20Skill\x20package\x20exceeds\x20total\x20file\x20size\x20limit.','Unsafe\x20Skill\x20file\x20path:\x20','files','paths','writeUInt32LE','skipped','fileHashes','Skill\x20directory\x20exceeds\x20file\x20count\x20limit.','Skill\x20file\x20exceeds\x20size\x20limit:\x20','force','.tmp','userId','appCode','Runtime\x20Skill\x20package\x20has\x20invalid\x20central\x20directory\x20offsets.','Invalid\x20'];a69_0x4154=function(){return _0x5dbb30;};return a69_0x4154();}function fileHash(_0x294a20){return bufferSha256(fileContent(_0x294a20));}function bufferSha256(_0x5e661c){const _0x4307a9=a69_0x324d67;return createHash(_0x4307a9(0xb8))[_0x4307a9(0x91)](_0x5e661c)['digest'](_0x4307a9(0x10e));}export function fileTreeHash(_0x52237b){const _0x375fcc=a69_0x324d67,_0x33a342=createHash(_0x375fcc(0xb8));for(const _0x1d3657 of normalizeManifestFiles(_0x52237b)){_0x33a342[_0x375fcc(0x91)](_0x1d3657[_0x375fcc(0xf1)]),_0x33a342['update']('\x00'),_0x33a342['update'](_0x1d3657[_0x375fcc(0xb8)]),_0x33a342[_0x375fcc(0x91)]('\x00'),_0x33a342['update'](String(_0x1d3657[_0x375fcc(0xbd)])),_0x33a342[_0x375fcc(0x91)]('\x00');}return _0x33a342[_0x375fcc(0x124)](_0x375fcc(0x10e));}export function buildSkillPackage(_0x14806e){const _0x5969a5=a69_0x324d67,_0x30e5ed=normalizeLocalFiles(_0x14806e);if(!_0x30e5ed[_0x5969a5(0x98)](_0x27f397=>_0x27f397[_0x5969a5(0xf1)]===SKILL_FILE))throw CliErrors['validation'](_0x5969a5(0x8d)+SKILL_FILE+_0x5969a5(0xc1));const _0x246c58=localFilesToManifestFiles(_0x30e5ed),_0x15a6bd=createDeterministicZipPackage(_0x30e5ed);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x246c58),'zipSha256':bufferSha256(_0x15a6bd),'zipSize':_0x15a6bd[_0x5969a5(0xde)],'files':_0x246c58},'packageBytes':_0x15a6bd,'packageBase64':_0x15a6bd['toString'](_0x5969a5(0xf2))};}export function verifyRuntimeSkillPackage(_0x4c3e2e,_0x1a61fe){const _0x252574=a69_0x324d67,_0xf565a9=normalizePackageManifest(_0x4c3e2e,{'requireOssPath':![]});if(!_0xf565a9)throw CliErrors[_0x252574(0x7d)](_0x252574(0xb7));return extractAndVerifyPackage(_0xf565a9,_0x1a61fe);}export function materializeRuntimeSkill(_0x54ab69,_0x7339b5,_0x53a63e){const _0x115935=a69_0x324d67,_0x477e0f=requireSkillCode(_0x54ab69),_0x20899d=normalizeRemoteManifest(_0x54ab69[_0x115935(0x12d)]),_0x5945b4=_0x20899d!==undefined,_0x49dd75=_0x5945b4?requirePackageBytes(_0x477e0f,_0x53a63e[_0x115935(0xfd)]):undefined,_0x4a6daf=_0x5945b4?extractAndVerifyPackage(_0x20899d,_0x49dd75):[{'path':SKILL_FILE,'content':_0x54ab69[_0x115935(0xcb)]??''}],_0x4e707e=_0x4a6daf[_0x115935(0xf4)](_0xf32634=>_0xf32634[_0x115935(0xf1)]===SKILL_FILE);if(!_0x4e707e)throw CliErrors[_0x115935(0x7d)](_0x115935(0x11d)+SKILL_FILE+':\x20'+_0x477e0f);const _0x1691c6=fileText(_0x4e707e);if(_0x5945b4&&_0x54ab69[_0x115935(0xcb)]!==undefined&&_0x54ab69['content']!==_0x1691c6)throw CliErrors[_0x115935(0x7d)](_0x115935(0x129)+SKILL_FILE+'\x20does\x20not\x20match\x20backend\x20content:\x20'+_0x477e0f);const _0x1785e8=withMaterializedSkillFrontmatter(_0x4a6daf,_0x54ab69,_0x477e0f),_0x5c3b9f=_0x1785e8[_0x115935(0xf4)](_0x568764=>_0x568764[_0x115935(0xf1)]===SKILL_FILE),_0x20f1ab=fileText(_0x5c3b9f),_0x45fba0=getRuntimeSkillDir(_0x53a63e[_0x115935(0x9c)],_0x53a63e['accessKey'],_0x53a63e['appCode'],_0x7339b5,_0x477e0f,_0x53a63e[_0x115935(0x12e)]),_0x4b9dde=resolve(_0x45fba0,SKILL_FILE),_0x4964ba=resolve(_0x45fba0,METADATA_FILE),_0x70d3ad=contentHash(_0x20f1ab),_0x508d3e=readMetadataIfPresent(_0x4964ba)?.[_0x115935(0x6b)];ensurePulledFilesCanBeOverwritten(_0x45fba0,_0x4964ba,_0x1785e8,_0x53a63e[_0x115935(0x6e)]===!![]),mkdirSync(_0x45fba0,{'recursive':!![],'mode':0x1c0});const _0x491070=existsSync(_0x4b9dde)?readFileSync(_0x4b9dde,'utf8'):undefined;return materializeFiles(_0x45fba0,_0x1785e8),_0x5945b4&&removeStaleManagedFiles(_0x45fba0,_0x508d3e,_0x1785e8),writeJsonAtomic(_0x4964ba,buildMetadata(_0x54ab69,_0x7339b5,_0x53a63e[_0x115935(0x71)],_0x70d3ad,_0x53a63e[_0x115935(0x87)],_0x5945b4?_0x1785e8:undefined)),{'skill':_0x54ab69,'scope':_0x7339b5,'dir':_0x45fba0,'skillMdPath':_0x4b9dde,'metadataPath':_0x4964ba,'contentHash':_0x70d3ad,'changed':_0x491070!==_0x20f1ab};}function withMaterializedSkillFrontmatter(_0xdbca63,_0xb70b,_0x227417){const _0x58d00d=a69_0x324d67;return normalizeLocalFiles(_0xdbca63)[_0x58d00d(0x7f)](_0x53bc16=>{const _0x1f721c=_0x58d00d,_0x14db17=fileText(_0x53bc16);if(_0x53bc16[_0x1f721c(0xf1)]!==SKILL_FILE||hasYamlFrontmatter(_0x14db17))return _0x53bc16;return{'path':_0x53bc16[_0x1f721c(0xf1)],'content':prependSkillFrontmatter(_0x14db17,{'name':_0x227417,'description':_0xb70b[_0x1f721c(0xa2)]?.['trim']()||_0xb70b['skillName']?.['trim']()||_0x227417})};});}function hasYamlFrontmatter(_0x42afdc){const _0x1d7e82=a69_0x324d67;return/^\uFEFF?---\s*\r?\n/[_0x1d7e82(0x11e)](_0x42afdc);}function prependSkillFrontmatter(_0x255652,_0x37594c){const _0x290177=a69_0x324d67,_0x4997da=_0x255652[_0x290177(0xed)](/^\uFEFF/,'');return[_0x290177(0x93),_0x290177(0xc6)+yamlString(_0x37594c['name']),_0x290177(0xfa)+yamlString(_0x37594c[_0x290177(0xa2)]),_0x290177(0x93),'',_0x4997da][_0x290177(0x7e)]('\x0a');}function yamlString(_0x5aefe6){const _0x104b75=a69_0x324d67;return JSON['stringify'](_0x5aefe6['replace'](/\r/g,'')[_0x104b75(0x9d)]());}export function linkEffectiveRuntimeSkills(_0x4178c1,_0x2cea05,_0x2a1f34={}){const _0x44b26d=a69_0x324d67,_0xdc4e02=new Map();for(const _0x29a1b2 of _0x4178c1){const _0x2c5fba=_0x29a1b2[_0x44b26d(0xb1)][_0x44b26d(0xae)];if(!_0x2c5fba)continue;const _0x2ca78a=_0xdc4e02[_0x44b26d(0xc2)](_0x2c5fba);(!_0x2ca78a||_0x29a1b2[_0x44b26d(0x11c)]===_0x44b26d(0x86))&&_0xdc4e02[_0x44b26d(0xa9)](_0x2c5fba,_0x29a1b2);}const _0x4247db=[],_0x4c1846=resolveSkillSyncPaths(_0x2a1f34);for(const _0x1e7301 of _0xdc4e02[_0x44b26d(0x103)]()){const _0x3b6e99=requireSkillCode(_0x1e7301[_0x44b26d(0xb1)]),_0x6bd198=_0x2cea05+'--'+_0x3b6e99;for(const _0x14a8c6 of[_0x4c1846[_0x44b26d(0xd8)],_0x4c1846[_0x44b26d(0xcf)]]){_0x4247db[_0x44b26d(0x107)](ensureManagedSymlink(resolve(_0x14a8c6,_0x6bd198),_0x1e7301['dir'],_0x4c1846[_0x44b26d(0xef)]));}}return _0x4247db;}export function pruneStaleRuntimeSkillLinks(_0x48112c,_0x493f53,_0x52ab0={},_0x28c5b2){const _0x5029f4=a69_0x324d67,_0x1fb85d=resolveSkillSyncPaths(_0x52ab0),_0x2bf5b8=new Set([..._0x493f53][_0x5029f4(0x7f)](_0x379644=>_0x379644[_0x5029f4(0x9d)]())[_0x5029f4(0xb6)](Boolean)),_0x1e26a4=_0x28c5b2?new Set([..._0x28c5b2]['map'](_0x55fdf1=>_0x55fdf1[_0x5029f4(0x9d)]())['filter'](Boolean)):undefined,_0x52a18a=[];for(const _0x1c2292 of[_0x1fb85d[_0x5029f4(0xd8)],_0x1fb85d[_0x5029f4(0xcf)]]){for(const _0x413acf of managedAppSkillLinkPaths(_0x1c2292,_0x48112c)){const _0x1a7e21=basename(_0x413acf)[_0x5029f4(0xe9)]((_0x48112c+'--')['length']);if(_0x1e26a4&&!_0x1e26a4[_0x5029f4(0x10b)](_0x1a7e21))continue;if(_0x2bf5b8[_0x5029f4(0x10b)](_0x1a7e21))continue;_0x52a18a[_0x5029f4(0x107)](removeManagedSkillLink(_0x413acf,_0x1fb85d[_0x5029f4(0xef)]));}}return _0x52a18a;}export function pruneStaleRuntimeSkillCache(_0x4fe6c0,_0x17baa0={}){const _0xea0c10=a69_0x324d67,_0x58707e=new Set([..._0x4fe6c0[_0xea0c10(0x10a)]][_0xea0c10(0x7f)](_0x10e012=>_0x10e012[_0xea0c10(0x9d)]())[_0xea0c10(0xb6)](Boolean)),_0x36dbd7=_0x4fe6c0[_0xea0c10(0x120)]?new Set([..._0x4fe6c0['pruneSkillCodes']]['map'](_0x3ae017=>_0x3ae017['trim']())[_0xea0c10(0xb6)](Boolean)):undefined,_0x5ef454=_0x4fe6c0[_0xea0c10(0xb4)]??[_0xea0c10(0x86),_0xea0c10(0xfb)],_0x10a086=resolve(getRuntimeSkillCacheRoot(_0x4fe6c0[_0xea0c10(0x9c)],_0x4fe6c0['accessKey'],_0x17baa0),safePathSegment(_0x4fe6c0['appCode'],'appCode')),_0x9c923f=[];for(const _0x5b7c0d of _0x5ef454){const _0x2b58da=resolve(_0x10a086,_0x5b7c0d);if(!existsSync(_0x2b58da))continue;for(const _0x5884b9 of readdirSync(_0x2b58da,{'withFileTypes':!![]})){if(!_0x5884b9[_0xea0c10(0x90)]())continue;const _0x3f3809=_0x5884b9[_0xea0c10(0x80)];if(_0x36dbd7&&!_0x36dbd7[_0xea0c10(0x10b)](_0x3f3809))continue;if(_0x58707e[_0xea0c10(0x10b)](_0x3f3809))continue;const _0x41057f=resolve(_0x2b58da,_0x3f3809),_0x11697c=readMetadataIfPresent(resolve(_0x41057f,METADATA_FILE));if(_0x11697c?.[_0xea0c10(0x71)]!==_0x4fe6c0[_0xea0c10(0x71)]||_0x11697c['scope']!==_0x5b7c0d||_0x11697c['skillCode']!==_0x3f3809){_0x9c923f[_0xea0c10(0x107)]({'path':_0x41057f,'action':_0xea0c10(0x6a),'reason':_0xea0c10(0x106)});continue;}rmSync(_0x41057f,{'recursive':!![],'force':!![]}),_0x9c923f[_0xea0c10(0x107)]({'path':_0x41057f,'action':_0xea0c10(0x121)});}}return _0x9c923f;}export function linkGlobalRuntimeSkills(_0x329211,_0x1f39b5={}){const _0x2e88b7=a69_0x324d67,_0xdacdd7=resolveSkillSyncPaths(_0x1f39b5),_0x961d7b=[];for(const _0x308e42 of _0x329211){if(_0x308e42['scope']!==_0x2e88b7(0xd9))throw CliErrors[_0x2e88b7(0x7d)]('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x308e42['scope']);const _0x40a74c=requireSkillCode(_0x308e42['skill']),_0x252aa3=copyManagedSkillDirectory(_0x308e42[_0x2e88b7(0x95)],resolve(_0xdacdd7[_0x2e88b7(0xd8)],_0x40a74c));_0x961d7b[_0x2e88b7(0x107)]({..._0x252aa3,'contentHash':_0x308e42[_0x2e88b7(0x105)]});}return _0x961d7b;}export function readPushDirectory(_0x33b9c3,_0x14b179){const _0x365c4b=a69_0x324d67,_0x2381de=resolve(_0x33b9c3);if(!existsSync(_0x2381de)||!lstatSync(_0x2381de)[_0x365c4b(0x90)]())throw CliErrors[_0x365c4b(0x7d)](_0x365c4b(0x108)+_0x33b9c3);const _0x20db5b=resolve(_0x2381de,SKILL_FILE);if(!existsSync(_0x20db5b)||!lstatSync(_0x20db5b)[_0x365c4b(0xe1)]())throw CliErrors[_0x365c4b(0x7d)]('Missing\x20'+SKILL_FILE+':\x20'+_0x20db5b);const _0x117300=readMetadataIfPresent(resolve(_0x2381de,METADATA_FILE));if(_0x117300?.[_0x365c4b(0x11c)]&&_0x117300[_0x365c4b(0x11c)]!==_0x365c4b(0x86))throw CliErrors[_0x365c4b(0x7d)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+'\x20has\x20scope=\x22'+_0x117300[_0x365c4b(0x11c)]+'\x22.');if(_0x117300?.['appCode']&&_0x117300['appCode']!==_0x14b179)throw CliErrors['validation'](_0x365c4b(0xca)+_0x117300[_0x365c4b(0x71)]+_0x365c4b(0xa1)+_0x14b179+'\x22.');const _0x231e24=scanSkillDirectory(_0x2381de),_0x3dc2e4=buildSkillPackage(_0x231e24),_0x346178=readFileSync(_0x20db5b,_0x365c4b(0xd0)),_0x417481=_0x117300?.['skillCode']??deriveSkillCodeFromDirectory(_0x2381de,_0x14b179);if(!_0x417481)throw CliErrors['validation'](_0x365c4b(0x82)+METADATA_FILE+_0x365c4b(0xf9));return{'skillCode':_0x417481,'metadata':_0x117300,'input':{'skillCode':_0x417481,'skillName':_0x117300?.[_0x365c4b(0x110)],'description':_0x117300?.[_0x365c4b(0xa2)],'content':_0x346178,'files':_0x3dc2e4[_0x365c4b(0x115)],'packageBase64':_0x3dc2e4['packageBase64'],'tags':_0x117300?.['tags'],'version':_0x117300?.['version'],'sourceSessionId':_0x117300?.[_0x365c4b(0xeb)]}};}export function recordPushedRuntimeSkill(_0x267da8,_0x583a75,_0x3e22c2,_0x281829={}){const _0x2d0041=a69_0x324d67,_0x5d602d=resolve(_0x267da8),_0x476abe=scanSkillDirectory(_0x5d602d),_0x35f03d=_0x476abe['find'](_0xd390d6=>_0xd390d6[_0x2d0041(0xf1)]===SKILL_FILE),_0x103d14=_0x35f03d?fileText(_0x35f03d):'',_0x380536=tryNormalizeRemoteManifest(_0x583a75[_0x2d0041(0x12d)]),_0x18f585={..._0x583a75,'content':_0x583a75[_0x2d0041(0xcb)]??_0x103d14,'files':_0x380536},_0x1e34f7=_0x380536?normalizeLocalFiles(_0x476abe)['filter'](_0x545f27=>_0x380536['files'][_0x2d0041(0x98)](_0x32ddca=>_0x32ddca[_0x2d0041(0xf1)]===_0x545f27['path'])):undefined,_0x122afc=buildMetadata(_0x18f585,_0x281829[_0x2d0041(0x11c)]??_0x2d0041(0x86),_0x3e22c2,contentHash(_0x18f585[_0x2d0041(0xcb)]??''),_0x281829[_0x2d0041(0xd5)],_0x1e34f7);writeJsonAtomic(resolve(_0x5d602d,METADATA_FILE),_0x122afc);}export function deriveSkillCodeFromDirectory(_0x3d68e8,_0x5bdced){const _0x2a9502=a69_0x324d67,_0x4a81bc=basename(resolve(_0x3d68e8)),_0x5f3c19=_0x5bdced+'--';return _0x4a81bc[_0x2a9502(0x114)](_0x5f3c19)?_0x4a81bc[_0x2a9502(0xe9)](_0x5f3c19['length']):_0x4a81bc;}export function readMetadataIfPresent(_0x31cf63){const _0xb5a6ac=a69_0x324d67;if(!existsSync(_0x31cf63))return undefined;try{const _0x54ae74=JSON['parse'](readFileSync(_0x31cf63,_0xb5a6ac(0xd0)));return _0x54ae74;}catch{throw CliErrors['validation'](_0xb5a6ac(0x73)+METADATA_FILE+':\x20'+_0x31cf63);}}function buildMetadata(_0x59d881,_0x980036,_0xb8fa7,_0x100801,_0x191c6c,_0x34c311){const _0xe7079=a69_0x324d67,_0x3f99f1=_0x34c311?normalizeLocalFiles(_0x34c311):[],_0x3bcc04=normalizeRemoteManifest(_0x59d881[_0xe7079(0x12d)]),_0x499e64=_0x3f99f1['length']>0x0?Object[_0xe7079(0x84)](_0x3f99f1[_0xe7079(0x7f)](_0x22d0b5=>[_0x22d0b5[_0xe7079(0xf1)],fileHash(_0x22d0b5)])):undefined;return{'schemaVersion':_0x3f99f1['length']>0x0?0x2:0x1,'id':_0x59d881['id'],'appCode':_0xb8fa7,'skillCode':requireSkillCode(_0x59d881),'skillName':_0x59d881[_0xe7079(0x110)],'description':_0x59d881['description'],'scope':_0x980036,'readonly':_0x980036!==_0xe7079(0x86)||_0x59d881[_0xe7079(0x112)]===!![],'tenantCode':_0x59d881[_0xe7079(0xab)],'userId':_0x59d881[_0xe7079(0x70)],'version':_0x59d881[_0xe7079(0x116)],'status':_0x59d881[_0xe7079(0xa5)],'tags':Array['isArray'](_0x59d881['tags'])?_0x59d881['tags']:[],'hasUpstreamUpdate':_0x59d881[_0xe7079(0x119)],'forkedFromSkillId':_0x59d881[_0xe7079(0x109)],'forkedFromVersion':_0x59d881[_0xe7079(0xdd)],'sourceSessionId':_0x59d881[_0xe7079(0xeb)],'contentHash':_0x100801,'fileHashes':_0x499e64,'treeHash':_0x3f99f1[_0xe7079(0xde)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x3f99f1)):_0x3bcc04?.[_0xe7079(0x126)],'ossPath':_0x3bcc04?.['ossPath'],'zipSha256':_0x3bcc04?.['zipSha256'],'zipSize':_0x3bcc04?.[_0xe7079(0xf5)],'files':_0x3f99f1[_0xe7079(0xde)]>0x0?_0x3f99f1[_0xe7079(0x7f)](_0x36dd8d=>({'path':_0x36dd8d[_0xe7079(0xf1)],'hash':fileHash(_0x36dd8d),'size':fileContent(_0x36dd8d)[_0xe7079(0xde)]})):undefined,'pulledAt':_0x191c6c??new Date()[_0xe7079(0xdf)]()};}function requireSkillCode(_0xd3742d){const _0x24fb2c=a69_0x324d67,_0x571d85=_0xd3742d[_0x24fb2c(0xae)]?.['trim']();if(!_0x571d85)throw CliErrors[_0x24fb2c(0x7d)](_0x24fb2c(0xe0));return _0x571d85;}function trimmedEnv(_0x9c9760){const _0x52fc39=a69_0x324d67,_0x1119ec=productEnv(_0x9c9760)?.[_0x52fc39(0x9d)]();return _0x1119ec?_0x1119ec:undefined;}function safePathSegment(_0x4b4c32,_0x44d5e1=a69_0x324d67(0x9a)){const _0x14aa32=a69_0x324d67;if(!_0x4b4c32||_0x4b4c32[_0x14aa32(0xf0)]('/')||_0x4b4c32['includes']('\x5c')||_0x4b4c32[_0x14aa32(0xf0)]('..'))throw CliErrors[_0x14aa32(0x7d)](_0x14aa32(0xa4)+_0x44d5e1+_0x14aa32(0x97)+_0x4b4c32);return _0x4b4c32;}function ensurePulledFilesCanBeOverwritten(_0x539f89,_0x29ed59,_0x40b863,_0x197ace){const _0x190d0f=a69_0x324d67;if(_0x197ace||!existsSync(_0x29ed59))return;const _0x14217b=readMetadataIfPresent(_0x29ed59);if(!_0x14217b)return;const _0x5afde4=_0x14217b['fileHashes']&&Object[_0x190d0f(0xe2)](_0x14217b[_0x190d0f(0x6b)])[_0x190d0f(0xde)]>0x0?_0x14217b[_0x190d0f(0x6b)]:undefined;if(_0x5afde4)for(const [_0x5063a2,_0x2f89c1]of Object[_0x190d0f(0xcd)](_0x5afde4)){const _0x5d1474=resolveManagedFilePath(_0x539f89,_0x5063a2);if(!existsSync(_0x5d1474))throw CliErrors[_0x190d0f(0x7d)](_0x190d0f(0xe7)+_0x539f89,_0x190d0f(0xba)+_0x5063a2);const _0x37d1d1=lstatSync(_0x5d1474);if(!_0x37d1d1[_0x190d0f(0xe1)]())throw CliErrors[_0x190d0f(0x7d)](_0x190d0f(0xe7)+_0x539f89,_0x190d0f(0xbe)+_0x5063a2);const _0x3552c4=bufferSha256(readFileSync(_0x5d1474));if(_0x3552c4!==_0x2f89c1)throw CliErrors[_0x190d0f(0x7d)](_0x190d0f(0xe7)+_0x539f89+'.\x20Changed\x20file:\x20'+_0x5063a2,_0x190d0f(0x118)+_0x5063a2);}else{const _0xd8e91b=resolve(_0x539f89,SKILL_FILE);if(existsSync(_0xd8e91b)&&_0x14217b[_0x190d0f(0x105)]){const _0x3ce24e=contentHash(readFileSync(_0xd8e91b,'utf8'));if(_0x3ce24e!==_0x14217b[_0x190d0f(0x105)])throw CliErrors[_0x190d0f(0x7d)](_0x190d0f(0x9b)+_0xd8e91b,'Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.');}}for(const _0x541e82 of normalizeLocalFiles(_0x40b863)){if(_0x5afde4?.[_0x541e82['path']])continue;if(!_0x5afde4&&_0x541e82[_0x190d0f(0xf1)]===SKILL_FILE)continue;const _0x48e4c8=resolveManagedFilePath(_0x539f89,_0x541e82['path']);if(!existsSync(_0x48e4c8))continue;const _0x27a9d6=lstatSync(_0x48e4c8);if(!_0x27a9d6[_0x190d0f(0xe1)]())throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x539f89,_0x190d0f(0xb3)+_0x541e82[_0x190d0f(0xf1)]);const _0x573df7=bufferSha256(readFileSync(_0x48e4c8));if(_0x573df7!==fileHash(_0x541e82))throw CliErrors['validation'](_0x190d0f(0xe7)+_0x539f89,_0x190d0f(0xb9)+_0x541e82[_0x190d0f(0xf1)]);}}function scanSkillDirectory(_0x7d8ea2){const _0x554331=realOrResolved(_0x7d8ea2),_0x273d0b=[];let _0x1d69df=0x0;function _0x32c88b(_0x1c8469){const _0x59bd8f=a69_0x432a,_0x2c19e0=readdirSync(_0x1c8469,{'withFileTypes':!![]})[_0x59bd8f(0xd1)]((_0x176b69,_0x28c120)=>_0x176b69[_0x59bd8f(0x80)]['localeCompare'](_0x28c120[_0x59bd8f(0x80)]));for(const _0x4d8fbb of _0x2c19e0){if(_0x4d8fbb[_0x59bd8f(0x90)]()&&IGNORED_DIR_NAMES[_0x59bd8f(0x10b)](_0x4d8fbb[_0x59bd8f(0x80)]))continue;if(IGNORED_FILE_NAMES[_0x59bd8f(0x10b)](_0x4d8fbb['name']))continue;const _0x12deff=resolve(_0x1c8469,_0x4d8fbb[_0x59bd8f(0x80)]);if(_0x4d8fbb[_0x59bd8f(0x113)]())throw CliErrors[_0x59bd8f(0x7d)](_0x59bd8f(0xc7)+_0x12deff);const _0x2bc9e1=toPosixPath(relative(_0x554331,_0x12deff));if(_0x4d8fbb[_0x59bd8f(0x90)]()){_0x32c88b(_0x12deff);continue;}if(!_0x4d8fbb['isFile']())continue;validateSkillRelativePath(_0x2bc9e1);const _0x57fce5=readFileSync(_0x12deff);if(_0x57fce5['length']>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x59bd8f(0x7d)](_0x59bd8f(0x6d)+_0x2bc9e1);_0x1d69df+=_0x57fce5[_0x59bd8f(0xde)];if(_0x1d69df>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x59bd8f(0x7d)](_0x59bd8f(0x11b));_0x273d0b[_0x59bd8f(0x107)]({'path':_0x2bc9e1,'bytes':_0x57fce5});if(_0x273d0b[_0x59bd8f(0xde)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x59bd8f(0x6c));}}return _0x32c88b(_0x554331),normalizeLocalFiles(_0x273d0b);}function normalizeLocalFiles(_0x73fca2){const _0x521c80=a69_0x324d67;if(!Array[_0x521c80(0x122)](_0x73fca2)||_0x73fca2[_0x521c80(0xde)]===0x0)return[];if(_0x73fca2[_0x521c80(0xde)]>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x521c80(0x7d)](_0x521c80(0x6c));const _0x2c3b6c=new Map();let _0x1695b0=0x0;for(const _0x20de62 of _0x73fca2){if(!_0x20de62||typeof _0x20de62!==_0x521c80(0xce)||typeof _0x20de62['path']!=='string')throw CliErrors[_0x521c80(0x7d)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x19f9c6=normalizeSkillRelativePath(_0x20de62['path']);if(_0x2c3b6c[_0x521c80(0x10b)](_0x19f9c6))throw CliErrors['validation'](_0x521c80(0x7c)+_0x19f9c6);if(_0x20de62[_0x521c80(0xa7)]!==undefined&&!Buffer[_0x521c80(0x75)](_0x20de62[_0x521c80(0xa7)]))throw CliErrors[_0x521c80(0x7d)](_0x521c80(0x9e)+_0x19f9c6);if(_0x20de62[_0x521c80(0xa7)]===undefined&&typeof _0x20de62[_0x521c80(0xcb)]!==_0x521c80(0xb0))throw CliErrors[_0x521c80(0x7d)](_0x521c80(0x76)+_0x19f9c6);const _0xe4179b=fileContent(_0x20de62),_0x4d7c27=_0xe4179b['length'];if(_0x4d7c27>MAX_SKILL_FILE_BYTES)throw CliErrors['validation'](_0x521c80(0x6d)+_0x19f9c6);_0x1695b0+=_0x4d7c27;if(_0x1695b0>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0x521c80(0x11b));_0x2c3b6c['set'](_0x19f9c6,{'path':_0x19f9c6,'bytes':_0xe4179b});}return Array[_0x521c80(0xfc)](_0x2c3b6c['values']())[_0x521c80(0xd1)](compareSkillFiles);}function normalizeManifestFiles(_0x3cb7c1){const _0x221339=a69_0x324d67;if(!Array[_0x221339(0x122)](_0x3cb7c1)||_0x3cb7c1[_0x221339(0xde)]===0x0)return[];if(_0x3cb7c1[_0x221339(0xde)]>MAX_SKILL_FILE_COUNT)throw CliErrors['validation'](_0x221339(0x6c));const _0x1d45ab=new Map();let _0x4f6709=0x0;for(const _0x50c2f7 of _0x3cb7c1){if(!_0x50c2f7||typeof _0x50c2f7!==_0x221339(0xce)||typeof _0x50c2f7[_0x221339(0xf1)]!=='string')throw CliErrors[_0x221339(0x7d)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0xc1df13=normalizeSkillRelativePath(_0x50c2f7[_0x221339(0xf1)]);if(_0x1d45ab[_0x221339(0x10b)](_0xc1df13))throw CliErrors[_0x221339(0x7d)](_0x221339(0x7c)+_0xc1df13);if(!isSha256Hex(_0x50c2f7[_0x221339(0xb8)]))throw CliErrors['validation'](_0x221339(0xcc)+_0xc1df13);if(!Number[_0x221339(0x77)](_0x50c2f7[_0x221339(0xbd)])||_0x50c2f7[_0x221339(0xbd)]<0x0)throw CliErrors[_0x221339(0x7d)]('Skill\x20file\x20size\x20is\x20invalid:\x20'+_0xc1df13);if(_0x50c2f7[_0x221339(0xbd)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x221339(0x7d)](_0x221339(0x6d)+_0xc1df13);_0x4f6709+=_0x50c2f7[_0x221339(0xbd)];if(_0x4f6709>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x221339(0x7d)](_0x221339(0x11b));_0x1d45ab[_0x221339(0xa9)](_0xc1df13,{'path':_0xc1df13,'sha256':_0x50c2f7['sha256'][_0x221339(0x8e)](),'size':_0x50c2f7[_0x221339(0xbd)]});}return Array['from'](_0x1d45ab[_0x221339(0x103)]())[_0x221339(0xd1)](compareSkillFiles);}function normalizeRemoteManifest(_0x24830d){return normalizePackageManifest(_0x24830d,{'requireOssPath':!![]});}function normalizePackageManifest(_0x109595,_0x5c0842){const _0x628616=a69_0x324d67;if(!_0x109595||typeof _0x109595!==_0x628616(0xce)||Array[_0x628616(0x122)](_0x109595))return undefined;const _0x185165=_0x109595,_0x5a89ff=typeof _0x185165[_0x628616(0x127)]===_0x628616(0xb0)?_0x185165[_0x628616(0x127)][_0x628616(0x9d)]():undefined;if(_0x5c0842[_0x628616(0x99)]&&!_0x5a89ff)return undefined;if(!Array['isArray'](_0x185165[_0x628616(0x12d)])||_0x185165[_0x628616(0x12d)][_0x628616(0xde)]===0x0)return undefined;if(!isSha256Hex(_0x185165[_0x628616(0x126)]))throw CliErrors[_0x628616(0x7d)](_0x628616(0x7b));if(!isSha256Hex(_0x185165[_0x628616(0xf8)]))throw CliErrors[_0x628616(0x7d)](_0x628616(0xd6));if(!Number[_0x628616(0x77)](_0x185165[_0x628616(0xf5)])||_0x185165['zipSize']<0x0)throw CliErrors[_0x628616(0x7d)](_0x628616(0xc8));if(_0x185165[_0x628616(0xf5)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0x628616(0xe8));const _0x36b101=normalizeManifestFiles(_0x185165['files']);if(!_0x36b101[_0x628616(0x98)](_0x7d73ae=>_0x7d73ae[_0x628616(0xf1)]===SKILL_FILE))throw CliErrors[_0x628616(0x7d)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x72eb71=fileTreeHash(_0x36b101);if(_0x72eb71!==_0x185165[_0x628616(0x126)][_0x628616(0x8e)]())throw CliErrors[_0x628616(0x7d)](_0x628616(0x125));return{'schemaVersion':Number[_0x628616(0x77)](_0x185165['schemaVersion'])?_0x185165[_0x628616(0x96)]:0x2,'ossPath':_0x5a89ff,'treeSha256':_0x72eb71,'zipSha256':_0x185165[_0x628616(0xf8)][_0x628616(0x8e)](),'zipSize':_0x185165[_0x628616(0xf5)],'files':_0x36b101};}function tryNormalizeRemoteManifest(_0x38779b){return normalizeRemoteManifest(_0x38779b);}function requirePackageBytes(_0x1b62ca,_0x41dd44){const _0x1054de=a69_0x324d67;if(!_0x41dd44||_0x41dd44[_0x1054de(0xde)]===0x0)throw CliErrors[_0x1054de(0x7d)](_0x1054de(0xd2)+_0x1b62ca);if(_0x41dd44['length']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20'+_0x1b62ca);return _0x41dd44;}function localFilesToManifestFiles(_0x9cf4f9){const _0x4719f0=a69_0x324d67;return normalizeLocalFiles(_0x9cf4f9)['map'](_0x22d642=>({'path':_0x22d642[_0x4719f0(0xf1)],'sha256':fileHash(_0x22d642),'size':fileContent(_0x22d642)[_0x4719f0(0xde)]}));}function isSha256Hex(_0x299c88){const _0x178e99=a69_0x324d67;return typeof _0x299c88===_0x178e99(0xb0)&&/^[a-fA-F0-9]{64}$/['test'](_0x299c88);}function extractAndVerifyPackage(_0x347393,_0x1bf28d){const _0x173884=a69_0x324d67,_0x38d93b=normalizePackageManifest(_0x347393,{'requireOssPath':![]});if(!_0x38d93b)throw CliErrors['validation'](_0x173884(0xb7));if(_0x1bf28d[_0x173884(0xde)]!==_0x38d93b[_0x173884(0xf5)])throw CliErrors[_0x173884(0x7d)](_0x173884(0xe4));const _0x33fde2=bufferSha256(_0x1bf28d);if(_0x33fde2!==_0x38d93b[_0x173884(0xf8)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');const _0x48640a=parseZipPackage(_0x1bf28d);if(_0x48640a['length']!==_0x38d93b['files'][_0x173884(0xde)])throw CliErrors['validation'](_0x173884(0xc3));const _0x3463f6=new Map();for(const _0x3678d9 of _0x48640a){if(_0x3463f6[_0x173884(0x10b)](_0x3678d9[_0x173884(0xf1)]))throw CliErrors[_0x173884(0x7d)](_0x173884(0xf6)+_0x3678d9[_0x173884(0xf1)]);_0x3463f6[_0x173884(0xa9)](_0x3678d9[_0x173884(0xf1)],_0x3678d9);}const _0x452300=[];for(const _0x5d9ddb of _0x38d93b[_0x173884(0x12d)]){const _0x3e3fa1=_0x3463f6[_0x173884(0xc2)](_0x5d9ddb[_0x173884(0xf1)]);if(!_0x3e3fa1)throw CliErrors[_0x173884(0x7d)](_0x173884(0x117)+_0x5d9ddb[_0x173884(0xf1)]);if(_0x3e3fa1[_0x173884(0xa7)][_0x173884(0xde)]!==_0x5d9ddb['size'])throw CliErrors[_0x173884(0x7d)](_0x173884(0x89)+_0x5d9ddb[_0x173884(0xf1)]);const _0x57aa88=bufferSha256(_0x3e3fa1[_0x173884(0xa7)]);if(_0x57aa88!==_0x5d9ddb[_0x173884(0xb8)])throw CliErrors['validation'](_0x173884(0x85)+_0x5d9ddb[_0x173884(0xf1)]);_0x452300[_0x173884(0x107)]({'path':_0x5d9ddb[_0x173884(0xf1)],'bytes':_0x3e3fa1['bytes']});}return normalizeLocalFiles(_0x452300);}function createDeterministicZipPackage(_0x194007){const _0x264e3a=a69_0x324d67,_0x1a1d20=normalizeLocalFiles(_0x194007),_0x2348e2=[],_0x467547=[];let _0x94e9dc=0x0;for(const _0x4ec2a7 of _0x1a1d20){const _0x4605f3=Buffer['from'](_0x4ec2a7[_0x264e3a(0xf1)],_0x264e3a(0xd0)),_0x173b82=fileContent(_0x4ec2a7),_0x80e533=crc32(_0x173b82),_0x17b58f=Buffer[_0x264e3a(0xbb)](0x1e+_0x4605f3[_0x264e3a(0xde)]);_0x17b58f[_0x264e3a(0x69)](ZIP_LOCAL_FILE_HEADER_SIGNATURE,0x0),_0x17b58f['writeUInt16LE'](0x14,0x4),_0x17b58f[_0x264e3a(0xdc)](ZIP_GENERAL_PURPOSE_UTF8,0x6),_0x17b58f[_0x264e3a(0xdc)](ZIP_METHOD_STORE,0x8),_0x17b58f[_0x264e3a(0xdc)](ZIP_FIXED_DOS_TIME,0xa),_0x17b58f['writeUInt16LE'](ZIP_FIXED_DOS_DATE,0xc),_0x17b58f[_0x264e3a(0x69)](_0x80e533,0xe),_0x17b58f[_0x264e3a(0x69)](_0x173b82[_0x264e3a(0xde)],0x12),_0x17b58f[_0x264e3a(0x69)](_0x173b82[_0x264e3a(0xde)],0x16),_0x17b58f[_0x264e3a(0xdc)](_0x4605f3[_0x264e3a(0xde)],0x1a),_0x17b58f[_0x264e3a(0xdc)](0x0,0x1c),_0x4605f3[_0x264e3a(0x123)](_0x17b58f,0x1e),_0x2348e2[_0x264e3a(0x107)](_0x17b58f,_0x173b82);const _0x1a080a=Buffer[_0x264e3a(0xbb)](0x2e+_0x4605f3['length']);_0x1a080a['writeUInt32LE'](ZIP_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x1a080a['writeUInt16LE'](0x14,0x4),_0x1a080a[_0x264e3a(0xdc)](0x14,0x6),_0x1a080a['writeUInt16LE'](ZIP_GENERAL_PURPOSE_UTF8,0x8),_0x1a080a[_0x264e3a(0xdc)](ZIP_METHOD_STORE,0xa),_0x1a080a['writeUInt16LE'](ZIP_FIXED_DOS_TIME,0xc),_0x1a080a[_0x264e3a(0xdc)](ZIP_FIXED_DOS_DATE,0xe),_0x1a080a[_0x264e3a(0x69)](_0x80e533,0x10),_0x1a080a['writeUInt32LE'](_0x173b82[_0x264e3a(0xde)],0x14),_0x1a080a[_0x264e3a(0x69)](_0x173b82[_0x264e3a(0xde)],0x18),_0x1a080a[_0x264e3a(0xdc)](_0x4605f3[_0x264e3a(0xde)],0x1c),_0x1a080a[_0x264e3a(0xdc)](0x0,0x1e),_0x1a080a[_0x264e3a(0xdc)](0x0,0x20),_0x1a080a[_0x264e3a(0xdc)](0x0,0x22),_0x1a080a[_0x264e3a(0xdc)](0x0,0x24),_0x1a080a[_0x264e3a(0x69)](0x0,0x26),_0x1a080a[_0x264e3a(0x69)](_0x94e9dc,0x2a),_0x4605f3['copy'](_0x1a080a,0x2e),_0x467547[_0x264e3a(0x107)](_0x1a080a),_0x94e9dc+=_0x17b58f[_0x264e3a(0xde)]+_0x173b82['length'];}const _0x2974d8=Buffer[_0x264e3a(0xe3)](_0x467547),_0x2dbfa9=_0x94e9dc,_0x552f3c=_0x2974d8[_0x264e3a(0xde)],_0x29dabd=Buffer[_0x264e3a(0xbb)](0x16);_0x29dabd['writeUInt32LE'](ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE,0x0),_0x29dabd['writeUInt16LE'](0x0,0x4),_0x29dabd[_0x264e3a(0xdc)](0x0,0x6),_0x29dabd['writeUInt16LE'](_0x1a1d20['length'],0x8),_0x29dabd[_0x264e3a(0xdc)](_0x1a1d20[_0x264e3a(0xde)],0xa),_0x29dabd[_0x264e3a(0x69)](_0x552f3c,0xc),_0x29dabd[_0x264e3a(0x69)](_0x2dbfa9,0x10),_0x29dabd[_0x264e3a(0xdc)](0x0,0x14);const _0x721284=Buffer['concat']([..._0x2348e2,_0x2974d8,_0x29dabd]);if(_0x721284['length']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x264e3a(0x7d)](_0x264e3a(0xac));return _0x721284;}function parseZipPackage(_0x58c611){const _0x6fe18e=a69_0x324d67;if(_0x58c611[_0x6fe18e(0xde)]<0x16)throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0x83));const _0x27d8b1=findEndOfCentralDirectory(_0x58c611);if(_0x27d8b1<0x0)throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0xa8));const _0xfb2f0f=_0x58c611[_0x6fe18e(0x81)](_0x27d8b1+0x4),_0x4cd07=_0x58c611[_0x6fe18e(0x81)](_0x27d8b1+0x6),_0x1bdbe9=_0x58c611['readUInt16LE'](_0x27d8b1+0xa),_0x1015f0=_0x58c611[_0x6fe18e(0xc5)](_0x27d8b1+0xc),_0x46f03f=_0x58c611[_0x6fe18e(0xc5)](_0x27d8b1+0x10);if(_0xfb2f0f!==0x0||_0x4cd07!==0x0)throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0x8b));if(_0x1bdbe9>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0x79));if(_0x46f03f+_0x1015f0>_0x27d8b1||_0x46f03f>=_0x58c611[_0x6fe18e(0xde)])throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0x72));const _0x3bbc39=[];let _0x40a4c9=0x0,_0x495ccb=_0x46f03f;for(let _0x3ab297=0x0;_0x3ab297<_0x1bdbe9;_0x3ab297+=0x1){if(_0x495ccb+0x2e>_0x58c611[_0x6fe18e(0xde)])throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0xb5));if(_0x58c611[_0x6fe18e(0xc5)](_0x495ccb)!==ZIP_CENTRAL_DIRECTORY_SIGNATURE)throw CliErrors['validation'](_0x6fe18e(0xb2));const _0x4da93e=_0x58c611[_0x6fe18e(0x81)](_0x495ccb+0x8),_0x48e6ea=_0x58c611[_0x6fe18e(0x81)](_0x495ccb+0xa),_0x438465=_0x58c611[_0x6fe18e(0xc5)](_0x495ccb+0x10),_0x5ae093=_0x58c611[_0x6fe18e(0xc5)](_0x495ccb+0x14),_0x98573f=_0x58c611['readUInt32LE'](_0x495ccb+0x18),_0x25d505=_0x58c611[_0x6fe18e(0x81)](_0x495ccb+0x1c),_0xf5248d=_0x58c611[_0x6fe18e(0x81)](_0x495ccb+0x1e),_0x55b00c=_0x58c611[_0x6fe18e(0x81)](_0x495ccb+0x20),_0x456c33=_0x58c611[_0x6fe18e(0xc5)](_0x495ccb+0x2a),_0x2841ae=_0x495ccb+0x2e,_0x1cb522=_0x2841ae+_0x25d505;if(_0x1cb522>_0x58c611[_0x6fe18e(0xde)])throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0x8a));if((_0x4da93e&0x1)!==0x0)throw CliErrors[_0x6fe18e(0x7d)]('Runtime\x20Skill\x20package\x20contains\x20encrypted\x20entries.');if(_0x48e6ea!==ZIP_METHOD_STORE&&_0x48e6ea!==ZIP_METHOD_DEFLATE)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20contains\x20unsupported\x20compression\x20method.');const _0x9b84b8=normalizeSkillRelativePath(_0x58c611[_0x6fe18e(0x12a)](_0x2841ae,_0x1cb522)[_0x6fe18e(0xbc)]('utf8'));if(_0x9b84b8[_0x6fe18e(0xaf)]('/'))throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0x8c)+_0x9b84b8);if(_0x98573f>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x6fe18e(0x7d)]('Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20'+_0x9b84b8);_0x40a4c9+=_0x98573f;if(_0x40a4c9>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0x6fe18e(0x12b));const _0x27b6d5=readZipEntryData(_0x58c611,_0x456c33,_0x9b84b8,_0x5ae093),_0x41f62c=_0x48e6ea===ZIP_METHOD_STORE?_0x27b6d5:inflateRawSync(_0x27b6d5);if(_0x41f62c[_0x6fe18e(0xde)]!==_0x98573f)throw CliErrors['validation'](_0x6fe18e(0x94)+_0x9b84b8);if(crc32(_0x41f62c)!==_0x438465)throw CliErrors['validation'](_0x6fe18e(0xa0)+_0x9b84b8);_0x3bbc39[_0x6fe18e(0x107)]({'path':_0x9b84b8,'bytes':_0x41f62c}),_0x495ccb=_0x1cb522+_0xf5248d+_0x55b00c;}if(_0x495ccb!==_0x46f03f+_0x1015f0)throw CliErrors[_0x6fe18e(0x7d)](_0x6fe18e(0xea));return _0x3bbc39[_0x6fe18e(0xd1)](compareSkillFiles);}function readZipEntryData(_0x4cf29e,_0x47800a,_0xab88c8,_0x385fa0){const _0x2eac69=a69_0x324d67;if(_0x47800a+0x1e>_0x4cf29e[_0x2eac69(0xde)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20has\x20truncated\x20local\x20header:\x20'+_0xab88c8);if(_0x4cf29e[_0x2eac69(0xc5)](_0x47800a)!==ZIP_LOCAL_FILE_HEADER_SIGNATURE)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20local\x20header\x20mismatch:\x20'+_0xab88c8);const _0x594a6c=_0x4cf29e['readUInt16LE'](_0x47800a+0x1a),_0x1c8d44=_0x4cf29e[_0x2eac69(0x81)](_0x47800a+0x1c),_0x2ea26f=_0x47800a+0x1e,_0x3a2cb1=_0x2ea26f+_0x594a6c,_0x17c38e=_0x3a2cb1+_0x1c8d44,_0x25e2d7=_0x17c38e+_0x385fa0;if(_0x3a2cb1>_0x4cf29e[_0x2eac69(0xde)]||_0x25e2d7>_0x4cf29e[_0x2eac69(0xde)])throw CliErrors[_0x2eac69(0x7d)](_0x2eac69(0xd3)+_0xab88c8);const _0x5352c5=normalizeSkillRelativePath(_0x4cf29e[_0x2eac69(0x12a)](_0x2ea26f,_0x3a2cb1)['toString'](_0x2eac69(0xd0)));if(_0x5352c5!==_0xab88c8)throw CliErrors[_0x2eac69(0x7d)]('Runtime\x20Skill\x20package\x20local\x20path\x20mismatch:\x20'+_0xab88c8);return _0x4cf29e[_0x2eac69(0x12a)](_0x17c38e,_0x25e2d7);}function findEndOfCentralDirectory(_0x2ba9df){const _0x1a7874=a69_0x324d67,_0x1ca589=Math['max'](0x0,_0x2ba9df[_0x1a7874(0xde)]-0x16-0xffff);for(let _0x2989f3=_0x2ba9df['length']-0x16;_0x2989f3>=_0x1ca589;_0x2989f3-=0x1){if(_0x2ba9df[_0x1a7874(0xc5)](_0x2989f3)===ZIP_END_OF_CENTRAL_DIRECTORY_SIGNATURE){const _0x169c9a=_0x2ba9df[_0x1a7874(0x81)](_0x2989f3+0x14);if(_0x2989f3+0x16+_0x169c9a===_0x2ba9df[_0x1a7874(0xde)])return _0x2989f3;}}return-0x1;}function createCrc32Table(){const _0x29d13a=new Uint32Array(0x100);for(let _0x13430b=0x0;_0x13430b<0x100;_0x13430b+=0x1){let _0x202c06=_0x13430b;for(let _0x5f1ffa=0x0;_0x5f1ffa<0x8;_0x5f1ffa+=0x1){_0x202c06=(_0x202c06&0x1)!==0x0?0xedb88320^_0x202c06>>>0x1:_0x202c06>>>0x1;}_0x29d13a[_0x13430b]=_0x202c06>>>0x0;}return _0x29d13a;}function crc32(_0x5e796d){let _0xaabf14=0xffffffff;for(const _0x1db825 of _0x5e796d){_0xaabf14=CRC32_TABLE[(_0xaabf14^_0x1db825)&0xff]^_0xaabf14>>>0x8;}return(_0xaabf14^0xffffffff)>>>0x0;}function compareSkillFiles(_0x16b8f2,_0x4d8d73){const _0x1ee51b=a69_0x324d67;if(_0x16b8f2['path']===SKILL_FILE)return _0x4d8d73[_0x1ee51b(0xf1)]===SKILL_FILE?0x0:-0x1;if(_0x4d8d73[_0x1ee51b(0xf1)]===SKILL_FILE)return 0x1;return Buffer[_0x1ee51b(0x8f)](Buffer[_0x1ee51b(0xfc)](_0x16b8f2['path'],_0x1ee51b(0xd0)),Buffer['from'](_0x4d8d73[_0x1ee51b(0xf1)],_0x1ee51b(0xd0)));}function materializeFiles(_0x31c9dc,_0x3ab1be){const _0x4871c1=a69_0x324d67;for(const _0x108530 of normalizeLocalFiles(_0x3ab1be)){const _0x1e2a6b=resolveManagedFilePath(_0x31c9dc,_0x108530[_0x4871c1(0xf1)]);mkdirSync(dirname(_0x1e2a6b),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x1e2a6b,fileContent(_0x108530),0x180);}}function a69_0x432a(_0x305e1a,_0x5dac03){_0x305e1a=_0x305e1a-0x69;const _0x4154ac=a69_0x4154();let _0x432ae1=_0x4154ac[_0x305e1a];return _0x432ae1;}function removeStaleManagedFiles(_0x354df7,_0x3c496e,_0x18253e){const _0x27d9fd=a69_0x324d67;if(!_0x3c496e)return;const _0x43dbdc=new Set(normalizeLocalFiles(_0x18253e)['map'](_0x20a0b1=>_0x20a0b1[_0x27d9fd(0xf1)]));for(const _0x5710ba of Object['keys'](_0x3c496e)){if(_0x43dbdc[_0x27d9fd(0x10b)](_0x5710ba))continue;const _0x5c66a4=resolveManagedFilePath(_0x354df7,_0x5710ba);existsSync(_0x5c66a4)&&lstatSync(_0x5c66a4)['isFile']()&&rmSync(_0x5c66a4,{'force':!![]});}}function resolveManagedFilePath(_0x55631c,_0x414024){const _0x2049c1=a69_0x324d67,_0x2a9a3a=normalizeSkillRelativePath(_0x414024),_0x4c6a86=realOrResolved(_0x55631c),_0x4157cb=resolve(_0x4c6a86,..._0x2a9a3a[_0x2049c1(0x74)]('/'));if(!isPathInside(_0x4157cb,_0x4c6a86))throw CliErrors[_0x2049c1(0x7d)](_0x2049c1(0x12c)+_0x414024);return ensureNoSymlinkInManagedPath(_0x4c6a86,_0x2a9a3a),_0x4157cb;}function ensureNoSymlinkInManagedPath(_0x1bb0c6,_0x234627){const _0x55a1bf=a69_0x324d67;let _0x5cb16f=_0x1bb0c6;for(const _0x5dd669 of _0x234627['split']('/')){_0x5cb16f=resolve(_0x5cb16f,_0x5dd669);const _0x328c10=lstatIfPresent(_0x5cb16f);if(_0x328c10?.[_0x55a1bf(0x113)]())throw CliErrors[_0x55a1bf(0x7d)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x234627);}}function normalizeSkillRelativePath(_0x3443ad){const _0x33a42c=a69_0x324d67,_0x279768=toPosixPath(_0x3443ad[_0x33a42c(0x9d)]());return validateSkillRelativePath(_0x279768),_0x279768;}function validateSkillRelativePath(_0x692166){const _0x4dc419=a69_0x324d67;if(!_0x692166||_0x692166[_0x4dc419(0x114)]('/')||_0x692166[_0x4dc419(0xf0)]('//'))throw CliErrors[_0x4dc419(0x7d)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x692166);for(const _0x1f64b1 of _0x692166[_0x4dc419(0x74)]('/')){if(!_0x1f64b1||_0x1f64b1==='.'||_0x1f64b1==='..')throw CliErrors['validation'](_0x4dc419(0x12c)+_0x692166);}}function toPosixPath(_0x57a54b){const _0x25383c=a69_0x324d67;return _0x57a54b[_0x25383c(0xed)](/\\/g,'/');}function ensureManagedSymlink(_0x2e8212,_0x4532f8,_0x167670){const _0x28b203=a69_0x324d67;mkdirSync(dirname(_0x2e8212),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x2e8212)||isDanglingSymlink(_0x2e8212)){const _0x12ef4d=lstatSync(_0x2e8212);if(!_0x12ef4d[_0x28b203(0x113)]())throw CliErrors[_0x28b203(0x7d)](_0x28b203(0x10f)+_0x2e8212);const _0x11073d=resolveSymlinkTarget(_0x2e8212);if(!isPathInside(realOrResolved(_0x11073d),realOrResolved(_0x167670)))throw CliErrors['validation'](_0x28b203(0xf7)+_0x2e8212);if(realOrResolved(_0x11073d)===realOrResolved(_0x4532f8))return{'path':_0x2e8212,'target':_0x4532f8,'action':_0x28b203(0xee)};return unlinkSync(_0x2e8212),symlinkSync(_0x4532f8,_0x2e8212,'dir'),{'path':_0x2e8212,'target':_0x4532f8,'action':_0x28b203(0x10d)};}return symlinkSync(_0x4532f8,_0x2e8212,'dir'),{'path':_0x2e8212,'target':_0x4532f8,'action':_0x28b203(0x92)};}function managedAppSkillLinkPaths(_0x5348d0,_0x490a1d){const _0x32c1bc=a69_0x324d67;if(!existsSync(_0x5348d0))return[];const _0x5eda92=_0x490a1d+'--';return readdirSync(_0x5348d0,{'withFileTypes':!![]})[_0x32c1bc(0xb6)](_0x19a72e=>_0x19a72e['name'][_0x32c1bc(0x114)](_0x5eda92))['map'](_0x3a3e3f=>resolve(_0x5348d0,_0x3a3e3f[_0x32c1bc(0x80)]));}function removeManagedSkillLink(_0x5a33dc,_0x3aa220){const _0x7c70c8=a69_0x324d67,_0x62f5ce=lstatIfPresent(_0x5a33dc);if(!_0x62f5ce?.[_0x7c70c8(0x113)]())return{'path':_0x5a33dc,'action':_0x7c70c8(0x6a),'reason':_0x7c70c8(0x128)};const _0x63f4ab=resolveSymlinkTarget(_0x5a33dc);if(!isPathInside(realOrResolved(_0x63f4ab),realOrResolved(_0x3aa220)))return{'path':_0x5a33dc,'action':_0x7c70c8(0x6a),'reason':'external-symlink'};return unlinkSync(_0x5a33dc),{'path':_0x5a33dc,'action':_0x7c70c8(0x121)};}function copyManagedSkillDirectory(_0x5d9271,_0x3ef658){const _0x1ea781=a69_0x324d67,_0x31cc3c=resolve(_0x3ef658,METADATA_FILE),_0x18b714=existsSync(_0x3ef658);if(_0x18b714){const _0x466203=lstatSync(_0x3ef658);if(_0x466203[_0x1ea781(0x113)]())throw CliErrors['validation'](_0x1ea781(0x104)+_0x3ef658);if(!_0x466203[_0x1ea781(0x90)]())throw CliErrors[_0x1ea781(0x7d)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x3ef658);const _0x119027=readMetadataIfPresent(_0x31cc3c);if(_0x119027?.[_0x1ea781(0x11c)]!=='builtin')throw CliErrors[_0x1ea781(0x7d)]('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x3ef658);}mkdirSync(dirname(_0x3ef658),{'recursive':!![],'mode':0x1c0});const _0x177581=_0x18b714?readMetadataIfPresent(_0x31cc3c)?.[_0x1ea781(0x105)]:undefined,_0x2298f5=readMetadataIfPresent(resolve(_0x5d9271,METADATA_FILE))?.[_0x1ea781(0x105)];return _0x18b714&&rmSync(_0x3ef658,{'recursive':!![],'force':!![]}),copySkillDirectory(_0x5d9271,_0x3ef658),{'path':_0x3ef658,'target':_0x5d9271,'action':!_0x18b714?_0x1ea781(0x92):_0x177581===_0x2298f5?_0x1ea781(0xee):_0x1ea781(0x10d)};}function copySkillDirectory(_0x3323ba,_0x5c429e){const _0x51c283=a69_0x324d67;mkdirSync(_0x5c429e,{'recursive':!![],'mode':0x1c0});for(const _0x437c01 of readdirSync(_0x3323ba,{'withFileTypes':!![]})){const _0x3a9a8d=resolve(_0x3323ba,_0x437c01[_0x51c283(0x80)]),_0x10fba0=resolve(_0x5c429e,_0x437c01[_0x51c283(0x80)]);if(_0x437c01[_0x51c283(0x113)]())throw CliErrors[_0x51c283(0x7d)](_0x51c283(0xf3)+_0x3a9a8d);if(_0x437c01[_0x51c283(0x90)]()){copySkillDirectory(_0x3a9a8d,_0x10fba0);continue;}_0x437c01[_0x51c283(0xe1)]()&&writeFileSync(_0x10fba0,readFileSync(_0x3a9a8d));}}function isDanglingSymlink(_0x36a4c5){const _0x1affd7=a69_0x324d67;try{return lstatSync(_0x36a4c5)[_0x1affd7(0x113)]();}catch{return![];}}function resolveSymlinkTarget(_0x20ef8b){const _0x2c257=readlinkSync(_0x20ef8b);return isAbsolute(_0x2c257)?_0x2c257:resolve(dirname(_0x20ef8b),_0x2c257);}function isPathInside(_0x3ab94f,_0x2750a7){const _0xbeaaf8=a69_0x324d67,_0x2912d0=_0x3ab94f[_0xbeaaf8(0xaf)](sep)?_0x3ab94f:''+_0x3ab94f+sep,_0x13f116=_0x2750a7[_0xbeaaf8(0xaf)](sep)?_0x2750a7:''+_0x2750a7+sep;return _0x3ab94f===_0x2750a7||_0x2912d0[_0xbeaaf8(0x114)](_0x13f116);}function realOrResolved(_0x45aec5){try{return realpathSync(_0x45aec5);}catch{return resolve(_0x45aec5);}}function lstatIfPresent(_0x258ac3){try{return lstatSync(_0x258ac3);}catch{return undefined;}}function writeTextAtomic(_0x1888b9,_0x110338,_0x537ce4){const _0x3307a2=a69_0x324d67;writeBytesAtomic(_0x1888b9,Buffer['from'](_0x110338,_0x3307a2(0xd0)),_0x537ce4);}function writeBytesAtomic(_0x587dec,_0x217ba5,_0x3a4456){const _0x3cce6e=a69_0x324d67,_0x4819b2=_0x587dec+_0x3cce6e(0x6f);try{writeFileSync(_0x4819b2,_0x217ba5,{'mode':_0x3a4456}),renameSync(_0x4819b2,_0x587dec);}catch(_0xbce270){try{rmSync(_0x4819b2,{'force':!![]});}catch{}throw _0xbce270;}}function writeJsonAtomic(_0x4b3f1b,_0x5a2a90){writeTextAtomic(_0x4b3f1b,JSON['stringify'](_0x5a2a90,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 a70_0x1fd9(_0x554056,_0x1d6dff){_0x554056=_0x554056-0xca;const _0x3e5647=a70_0x3e56();let _0x1fd9a5=_0x3e5647[_0x554056];return _0x1fd9a5;}function a70_0x3e56(){const _0x27be81=['5948630VRvUkY','6832602zzxTfg','1wiLbRz','7716864FfgERf','4zIwmlz','5455210rsCMEZ','55YTcMJQ','8519gJAuHF','12948TGYLFV','2840OPmPMT','1741677xmbBQO'];a70_0x3e56=function(){return _0x27be81;};return a70_0x3e56();}(function(_0x523bcb,_0x5d84e1){const _0x5cc094=a70_0x1fd9,_0x242041=_0x523bcb();while(!![]){try{const _0x5364a0=parseInt(_0x5cc094(0xd1))/0x1*(-parseInt(_0x5cc094(0xcc))/0x2)+parseInt(_0x5cc094(0xce))/0x3+parseInt(_0x5cc094(0xd3))/0x4*(parseInt(_0x5cc094(0xcf))/0x5)+parseInt(_0x5cc094(0xd2))/0x6+-parseInt(_0x5cc094(0xcb))/0x7*(parseInt(_0x5cc094(0xcd))/0x8)+parseInt(_0x5cc094(0xd0))/0x9+parseInt(_0x5cc094(0xd4))/0xa*(-parseInt(_0x5cc094(0xca))/0xb);if(_0x5364a0===_0x5d84e1)break;else _0x242041['push'](_0x242041['shift']());}catch(_0x329eb2){_0x242041['push'](_0x242041['shift']());}}}(a70_0x3e56,0x9e915));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';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
+ function a71_0x788e(){const _0xfe952a=['unknown','addColors','1498758IzofrR','duration','level','257990eVJJSG','info','transports','command','now','createLogger','map','logTask','error','1473096hPcYys','red','initWinstonLogger','yellow','3203xxzZcU','existsSync','3063536AJyQaM','Failed:\x20','utf8','657gkABDV','Starting:\x20','message','readFileSync','split','getWinstonInstance','errors','winstonLogger','toISOString','logFileName','3717434oRGgCz','Completed:\x20','Failed\x20to\x20read\x20logs:','readLogs','94535KIYWzb','log','rawCommand','warn','format','258usNtaN','stringify','dirname','combine','trim','green','334xqQAOQ','clearLogs','blue','writeFileSync','printf','logFilePath','currentRawCommand','Failed\x20to\x20clear\x20logs:','details','success','setLogPath','clear'];a71_0x788e=function(){return _0xfe952a;};return a71_0x788e();}const a71_0xdebf21=a71_0x4364;function a71_0x4364(_0x2e5907,_0x1ed276){_0x2e5907=_0x2e5907-0xee;const _0x788e4e=a71_0x788e();let _0x4364f5=_0x788e4e[_0x2e5907];return _0x4364f5;}(function(_0x273cd4,_0x32b0f3){const _0x17b033=a71_0x4364,_0x561b37=_0x273cd4();while(!![]){try{const _0x5c6559=-parseInt(_0x17b033(0x100))/0x1*(parseInt(_0x17b033(0x11e))/0x2)+-parseInt(_0x17b033(0xf0))/0x3+parseInt(_0x17b033(0xfc))/0x4+-parseInt(_0x17b033(0x113))/0x5*(parseInt(_0x17b033(0x118))/0x6)+parseInt(_0x17b033(0x10f))/0x7+-parseInt(_0x17b033(0x102))/0x8+parseInt(_0x17b033(0x105))/0x9*(parseInt(_0x17b033(0xf3))/0xa);if(_0x5c6559===_0x32b0f3)break;else _0x561b37['push'](_0x561b37['shift']());}catch(_0x3255b0){_0x561b37['push'](_0x561b37['shift']());}}}(a71_0x788e,0x86d29));import a71_0x24047d from'winston';import a71_0x5129da from'node:fs';import a71_0x5035e9 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a71_0xdebf21(0x10c)];['logFilePath']='';[a71_0xdebf21(0x124)]='';constructor(){}['setRawCommand'](_0x16738b){const _0x3167c6=a71_0xdebf21;this[_0x3167c6(0x124)]=_0x16738b;}[a71_0xdebf21(0x128)](_0x329b39){const _0x14ff09=a71_0xdebf21;this[_0x14ff09(0x123)]=a71_0x5035e9['join'](_0x329b39,PRODUCT_CONFIG[_0x14ff09(0x10e)]),this[_0x14ff09(0x10c)]&&this[_0x14ff09(0x10c)][_0x14ff09(0x129)](),this[_0x14ff09(0xfe)]();}[a71_0xdebf21(0xfe)](){const _0x5abf34=a71_0xdebf21,_0x4c08b5=a71_0x5035e9[_0x5abf34(0x11a)](this[_0x5abf34(0x123)]);!a71_0x5129da[_0x5abf34(0x101)](_0x4c08b5)&&a71_0x5129da['mkdirSync'](_0x4c08b5,{'recursive':!![]});const _0x4107ff=a71_0x24047d[_0x5abf34(0x117)][_0x5abf34(0x11b)](a71_0x24047d[_0x5abf34(0x117)]['timestamp'](),a71_0x24047d[_0x5abf34(0x117)][_0x5abf34(0x10b)]({'stack':!![]}),a71_0x24047d[_0x5abf34(0x117)][_0x5abf34(0x122)](_0x15dfc0=>{const _0x345212=_0x5abf34,_0x1a672e={'timestamp':_0x15dfc0['timestamp']||new Date()[_0x345212(0x10d)](),'level':_0x15dfc0[_0x345212(0xf2)]||_0x345212(0xf4),'command':_0x15dfc0[_0x345212(0xf6)]||_0x345212(0xee),'rawCommand':_0x15dfc0[_0x345212(0x115)]||this[_0x345212(0x124)]||undefined,'message':_0x15dfc0['message']||'','duration':_0x15dfc0[_0x345212(0xf1)]||undefined,'details':_0x15dfc0[_0x345212(0x126)]||undefined};return JSON[_0x345212(0x119)](_0x1a672e);}));this[_0x5abf34(0x10c)]=a71_0x24047d[_0x5abf34(0xf8)]({'level':_0x5abf34(0xf4),'format':_0x4107ff,'transports':[new a71_0x24047d[(_0x5abf34(0xf5))]['File']({'filename':this[_0x5abf34(0x123)],'level':'info'})],'silent':![]}),a71_0x24047d[_0x5abf34(0xef)]({'success':_0x5abf34(0x11d),'error':_0x5abf34(0xfd),'warn':_0x5abf34(0xff),'info':_0x5abf34(0x120)});}[a71_0xdebf21(0xf4)](_0x8b5dac,_0x32bfff,_0x114cfe){const _0x169ecc=a71_0xdebf21;if(!this[_0x169ecc(0x123)]||!this[_0x169ecc(0x10c)])return;this[_0x169ecc(0x10c)][_0x169ecc(0xf4)](_0x32bfff,{'command':_0x8b5dac,'details':_0x114cfe});}[a71_0xdebf21(0x127)](_0x31b5ff,_0x31b079,_0x53c002,_0xb468ee){const _0x4b4f4a=a71_0xdebf21;if(!this[_0x4b4f4a(0x123)]||!this[_0x4b4f4a(0x10c)])return;this[_0x4b4f4a(0x10c)][_0x4b4f4a(0x114)](_0x4b4f4a(0xf4),_0x31b079,{'level':_0x4b4f4a(0x127),'command':_0x31b5ff,'duration':_0x53c002,'details':_0xb468ee});}[a71_0xdebf21(0xfb)](_0x4e4bfa,_0x39c391,_0x32c815){const _0x5a6540=a71_0xdebf21;if(!this['logFilePath']||!this[_0x5a6540(0x10c)])return;this[_0x5a6540(0x10c)][_0x5a6540(0xfb)](_0x39c391,{'command':_0x4e4bfa,'details':_0x32c815});}[a71_0xdebf21(0x116)](_0x52d73d,_0xe01944,_0x1c3529){const _0x1af0df=a71_0xdebf21;if(!this[_0x1af0df(0x123)]||!this['winstonLogger'])return;this['winstonLogger']['warn'](_0xe01944,{'command':_0x52d73d,'details':_0x1c3529});}async[a71_0xdebf21(0xfa)](_0x38b6ce,_0x544827,_0x5846ca){const _0x412ce8=a71_0xdebf21,_0x3dc8b2=Date[_0x412ce8(0xf7)]();this[_0x412ce8(0xf4)](_0x38b6ce,_0x412ce8(0x106)+_0x544827);try{const _0x1de5c6=await _0x5846ca(),_0x352dd2=Date[_0x412ce8(0xf7)]()-_0x3dc8b2;return this['success'](_0x38b6ce,_0x412ce8(0x110)+_0x544827,_0x352dd2),_0x1de5c6;}catch(_0x526b6f){const _0x4ad6bb=Date[_0x412ce8(0xf7)]()-_0x3dc8b2;this['error'](_0x38b6ce,_0x412ce8(0x103)+_0x544827,{'error':_0x526b6f instanceof Error?_0x526b6f[_0x412ce8(0x107)]:String(_0x526b6f),'duration':_0x4ad6bb});throw _0x526b6f;}}[a71_0xdebf21(0x112)](){const _0x5a8b09=a71_0xdebf21;try{if(!a71_0x5129da[_0x5a8b09(0x101)](this[_0x5a8b09(0x123)]))return[];const _0x5d6bcd=a71_0x5129da[_0x5a8b09(0x108)](this[_0x5a8b09(0x123)],_0x5a8b09(0x104));return _0x5d6bcd[_0x5a8b09(0x109)](/\r?\n/)['filter'](_0x507650=>_0x507650[_0x5a8b09(0x11c)]())[_0x5a8b09(0xf9)](_0x3eb3ac=>JSON['parse'](_0x3eb3ac));}catch(_0x635ed3){return console[_0x5a8b09(0x116)](_0x5a8b09(0x111),_0x635ed3),[];}}[a71_0xdebf21(0x11f)](){const _0x39baf7=a71_0xdebf21;try{a71_0x5129da['existsSync'](this[_0x39baf7(0x123)])&&a71_0x5129da[_0x39baf7(0x121)](this['logFilePath'],'',_0x39baf7(0x104));}catch(_0x3ee9aa){console[_0x39baf7(0x116)](_0x39baf7(0x125),_0x3ee9aa);}}[a71_0xdebf21(0x10a)](){return this['winstonLogger'];}}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(_0x2def2e,_0x50dd65){var _0x31064e=a72_0x3585,_0x2ecb27=_0x2def2e();while(!![]){try{var _0x5fc5e7=parseInt(_0x31064e(0x1a1))/0x1*(-parseInt(_0x31064e(0x1b0))/0x2)+-parseInt(_0x31064e(0x1a5))/0x3+-parseInt(_0x31064e(0x1af))/0x4*(-parseInt(_0x31064e(0x1a2))/0x5)+parseInt(_0x31064e(0x1ae))/0x6+-parseInt(_0x31064e(0x1b2))/0x7*(-parseInt(_0x31064e(0x1a9))/0x8)+parseInt(_0x31064e(0x1ac))/0x9*(parseInt(_0x31064e(0x1a8))/0xa)+-parseInt(_0x31064e(0x1a6))/0xb;if(_0x5fc5e7===_0x50dd65)break;else _0x2ecb27['push'](_0x2ecb27['shift']());}catch(_0x47f5f3){_0x2ecb27['push'](_0x2ecb27['shift']());}}}(a72_0x3e03,0x83caa));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x211cdb){var _0x222c3a=a72_0x3585;if(!_0x211cdb)return undefined;try{return JSON['parse'](_0x211cdb);}catch{throw CliErrors['validation'](_0x222c3a(0x1a4)+_0x211cdb);}}function a72_0x3e03(){var _0x139d3e=['isArray','Invalid\x20JSON\x20for\x20--params:\x20','901965softVF','13839166MuefvE','object','5105890cREAFi','56Chyqhv','validation','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','9CUkYXe','items','4978998yxqYqk','3368964fVOLtC','446NoCNdW','parse','900907YWUnkD','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','4417srAfNP','5RGtxnw'];a72_0x3e03=function(){return _0x139d3e;};return a72_0x3e03();}export function parseJsonParamsValue(_0x21444b){var _0x20f506=a72_0x3585;if(!_0x21444b)return undefined;try{return JSON[_0x20f506(0x1b1)](_0x21444b);}catch{throw CliErrors[_0x20f506(0x1aa)](_0x20f506(0x1a4)+_0x21444b);}}function a72_0x3585(_0x2c8908,_0x4d69d3){_0x2c8908=_0x2c8908-0x1a1;var _0x3e033c=a72_0x3e03();var _0x35858e=_0x3e033c[_0x2c8908];return _0x35858e;}export function parseBatchCreateItemsFromParams(_0x1558a5){var _0x5ea0e0=a72_0x3585;if(Array[_0x5ea0e0(0x1a3)](_0x1558a5))return _0x1558a5;if(_0x1558a5!==null&&_0x1558a5!==undefined&&typeof _0x1558a5===_0x5ea0e0(0x1a7)&&Array[_0x5ea0e0(0x1a3)](_0x1558a5[_0x5ea0e0(0x1ad)]))return _0x1558a5[_0x5ea0e0(0x1ad)];throw CliErrors[_0x5ea0e0(0x1aa)](_0x5ea0e0(0x1ab),_0x5ea0e0(0x1b3));}
@@ -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_0xddc8(){const _0x5f482a=['3130qxXwrp','1072644LnCcRm','6BqCrAG','2187toWlbv','5288059ZtHVmq','1814260ZXDFVf','2QTyaTg','29056xislsv','2970976kZzuhr','11627sbRlNO','403673SWvCFi'];a73_0xddc8=function(){return _0x5f482a;};return a73_0xddc8();}(function(_0x541ed7,_0x4595f4){const _0x58653c=a73_0x4977,_0x2d0691=_0x541ed7();while(!![]){try{const _0x210b87=-parseInt(_0x58653c(0x13d))/0x1*(parseInt(_0x58653c(0x139))/0x2)+parseInt(_0x58653c(0x134))/0x3+parseInt(_0x58653c(0x13b))/0x4+-parseInt(_0x58653c(0x138))/0x5+parseInt(_0x58653c(0x135))/0x6*(parseInt(_0x58653c(0x137))/0x7)+-parseInt(_0x58653c(0x13a))/0x8*(parseInt(_0x58653c(0x136))/0x9)+-parseInt(_0x58653c(0x133))/0xa*(-parseInt(_0x58653c(0x13c))/0xb);if(_0x210b87===_0x4595f4)break;else _0x2d0691['push'](_0x2d0691['shift']());}catch(_0x552b8d){_0x2d0691['push'](_0x2d0691['shift']());}}}(a73_0xddc8,0x8337d));function a73_0x4977(_0x5b2adf,_0x11a022){_0x5b2adf=_0x5b2adf-0x133;const _0xddc8ea=a73_0xddc8();let _0x497763=_0xddc8ea[_0x5b2adf];return _0x497763;}export const isWindows=process['platform']==='win32';export function resolveNpmBin(_0x129b6b){return isWindows?_0x129b6b+'.cmd':_0x129b6b;}