@lovrabet/lovrabet-cli 2.1.6-beta.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x589bfa,_0x232ccb){const _0x521157=a91_0x472b,_0x3ffab5=_0x589bfa();while(!![]){try{const _0x2793ea=parseInt(_0x521157(0x140))/0x1+parseInt(_0x521157(0x12b))/0x2*(-parseInt(_0x521157(0x12c))/0x3)+parseInt(_0x521157(0x13c))/0x4*(-parseInt(_0x521157(0x133))/0x5)+-parseInt(_0x521157(0x13a))/0x6*(-parseInt(_0x521157(0x141))/0x7)+-parseInt(_0x521157(0x142))/0x8+parseInt(_0x521157(0x12a))/0x9+parseInt(_0x521157(0x148))/0xa;if(_0x2793ea===_0x232ccb)break;else _0x3ffab5['push'](_0x3ffab5['shift']());}catch(_0x11648e){_0x3ffab5['push'](_0x3ffab5['shift']());}}}(a91_0x3e96,0x6b116));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';function a91_0x3e96(){const _0x5314b2=['appCode','fileHashes','94396AIpWJJ','35vYTnpa','2851536FDJRyp','path','map','---','Managed\x20file\x20was\x20removed\x20locally:\x20','trim','14776080PNOZmM','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','accessKey','keys','description:\x20','name:\x20','.\x20Changed\x20file:\x20','isFile','replace','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','validation','Runtime\x20Skill\x20package\x20is\x20missing\x20','1474668MasApm','74966msbDbp','63EpBvIm','force','paths','contentHash','description','find','skillName','5ZJtwit','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','entries','stringify','env','name','has','384438TceZAb','utf8','1896344emGRnU','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'];a91_0x3e96=function(){return _0x5314b2;};return a91_0x3e96();}import{dirname,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';function a91_0x472b(_0x4dd45e,_0x586602){_0x4dd45e=_0x4dd45e-0x120;const _0x3e96f4=a91_0x3e96();let _0x472bcf=_0x3e96f4[_0x4dd45e];return _0x472bcf;}import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x25b4bc,_0x479779,_0xfb4001){const _0x5d0650=a91_0x472b,_0x1cd452=requireSkillCode(_0x25b4bc),_0x38b5a6=requirePackageBytes(_0x1cd452,_0xfb4001['packageBytes']),_0x558447=extractDownloadedPackage(_0x38b5a6),_0x49317e=_0x558447[_0x5d0650(0x131)](_0x5c8d87=>_0x5c8d87[_0x5d0650(0x143)]===SKILL_FILE);if(!_0x49317e)throw CliErrors['validation'](_0x5d0650(0x129)+SKILL_FILE+':\x20'+_0x1cd452);const _0x20d031=withMaterializedSkillFrontmatter(_0x558447,_0x25b4bc,_0x1cd452),_0x1f8adc=_0x20d031[_0x5d0650(0x131)](_0x472a08=>_0x472a08[_0x5d0650(0x143)]===SKILL_FILE),_0x107fb0=fileText(_0x1f8adc),_0x30dc22=getRuntimeSkillDir(_0xfb4001[_0x5d0650(0x137)],_0xfb4001[_0x5d0650(0x120)],_0xfb4001[_0x5d0650(0x13e)],_0x479779,_0x1cd452,_0xfb4001[_0x5d0650(0x12e)]),_0x4437aa=resolve(_0x30dc22,SKILL_FILE),_0x33ad8a=resolve(_0x30dc22,METADATA_FILE),_0x4ff6a0=contentHash(_0x107fb0),_0x397e86=readMetadataIfPresent(_0x33ad8a)?.['fileHashes'];ensurePulledFilesCanBeOverwritten(_0x30dc22,_0x33ad8a,_0x20d031,_0xfb4001[_0x5d0650(0x12d)]===!![]),mkdirSync(_0x30dc22,{'recursive':!![],'mode':0x1c0});const _0x3b7708=existsSync(_0x4437aa)?readFileSync(_0x4437aa,'utf8'):undefined;return materializeFiles(_0x30dc22,_0x20d031),removeStaleManagedFiles(_0x30dc22,_0x397e86,_0x20d031),writeJsonAtomic(_0x33ad8a,buildMetadata(_0x25b4bc,_0x479779,_0xfb4001[_0x5d0650(0x13e)],_0x4ff6a0,_0xfb4001['pulledAt'],_0x20d031,_0x38b5a6)),{'skill':_0x25b4bc,'scope':_0x479779,'dir':_0x30dc22,'skillMdPath':_0x4437aa,'metadataPath':_0x33ad8a,'contentHash':_0x4ff6a0,'changed':_0x3b7708!==_0x107fb0};}function withMaterializedSkillFrontmatter(_0xe75236,_0x1e28fd,_0x5e7e14){const _0x464914=a91_0x472b;return normalizeLocalFiles(_0xe75236)[_0x464914(0x144)](_0xf64599=>{const _0x4932c4=_0x464914,_0x4005e1=fileText(_0xf64599);if(_0xf64599['path']!==SKILL_FILE||hasYamlFrontmatter(_0x4005e1))return _0xf64599;return{'path':_0xf64599[_0x4932c4(0x143)],'content':prependSkillFrontmatter(_0x4005e1,{'name':_0x5e7e14,'description':_0x1e28fd['description']?.[_0x4932c4(0x147)]()||_0x1e28fd[_0x4932c4(0x132)]?.[_0x4932c4(0x147)]()||_0x5e7e14})};});}function hasYamlFrontmatter(_0x482b15){return/^\uFEFF?---\s*\r?\n/['test'](_0x482b15);}function prependSkillFrontmatter(_0xc8328a,_0x4ada14){const _0x47b03d=a91_0x472b,_0x3d49cf=_0xc8328a[_0x47b03d(0x126)](/^\uFEFF/,'');return[_0x47b03d(0x145),_0x47b03d(0x123)+yamlString(_0x4ada14[_0x47b03d(0x138)]),_0x47b03d(0x122)+yamlString(_0x4ada14[_0x47b03d(0x130)]),_0x47b03d(0x145),'',_0x3d49cf]['join']('\x0a');}function yamlString(_0x8b83c0){const _0x523994=a91_0x472b;return JSON[_0x523994(0x136)](_0x8b83c0[_0x523994(0x126)](/\r/g,'')[_0x523994(0x147)]());}function ensurePulledFilesCanBeOverwritten(_0x28d4c8,_0x1e2cbe,_0x1a3b07,_0x1da25a){const _0x4cad28=a91_0x472b;if(_0x1da25a||!existsSync(_0x1e2cbe))return;const _0xd20f44=readMetadataIfPresent(_0x1e2cbe);if(!_0xd20f44)return;const _0x23131b=_0xd20f44[_0x4cad28(0x13f)]&&Object[_0x4cad28(0x121)](_0xd20f44[_0x4cad28(0x13f)])['length']>0x0?_0xd20f44[_0x4cad28(0x13f)]:undefined;if(_0x23131b)for(const [_0x138dbd,_0x2cad65]of Object[_0x4cad28(0x135)](_0x23131b)){const _0x5aa4f8=resolveManagedFilePath(_0x28d4c8,_0x138dbd);if(!existsSync(_0x5aa4f8))throw CliErrors[_0x4cad28(0x128)](_0x4cad28(0x14b)+_0x28d4c8,_0x4cad28(0x146)+_0x138dbd);const _0x549040=lstatSync(_0x5aa4f8);if(!_0x549040[_0x4cad28(0x125)]())throw CliErrors[_0x4cad28(0x128)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x28d4c8,'Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'+_0x138dbd);const _0x2063f7=bufferSha256(readFileSync(_0x5aa4f8));if(_0x2063f7!==_0x2cad65)throw CliErrors[_0x4cad28(0x128)](_0x4cad28(0x14b)+_0x28d4c8+_0x4cad28(0x124)+_0x138dbd,_0x4cad28(0x13d)+_0x138dbd);}else{const _0x3b26e2=resolve(_0x28d4c8,SKILL_FILE);if(existsSync(_0x3b26e2)&&_0xd20f44[_0x4cad28(0x12f)]){const _0xb1d4c9=contentHash(readFileSync(_0x3b26e2,_0x4cad28(0x13b)));if(_0xb1d4c9!==_0xd20f44[_0x4cad28(0x12f)])throw CliErrors[_0x4cad28(0x128)](_0x4cad28(0x134)+_0x3b26e2,_0x4cad28(0x149));}}for(const _0x304a65 of normalizeLocalFiles(_0x1a3b07)){if(_0x23131b?.[_0x304a65['path']])continue;if(!_0x23131b&&_0x304a65[_0x4cad28(0x143)]===SKILL_FILE)continue;const _0x40dfac=resolveManagedFilePath(_0x28d4c8,_0x304a65[_0x4cad28(0x143)]);if(!existsSync(_0x40dfac))continue;const _0x4b98ef=lstatSync(_0x40dfac);if(!_0x4b98ef['isFile']())throw CliErrors[_0x4cad28(0x128)](_0x4cad28(0x14b)+_0x28d4c8,_0x4cad28(0x14a)+_0x304a65[_0x4cad28(0x143)]);const _0x59d8bb=bufferSha256(readFileSync(_0x40dfac));if(_0x59d8bb!==fileHash(_0x304a65))throw CliErrors[_0x4cad28(0x128)](_0x4cad28(0x14b)+_0x28d4c8,_0x4cad28(0x127)+_0x304a65[_0x4cad28(0x143)]);}}function materializeFiles(_0x5b6238,_0x2c7d48){const _0x476c31=a91_0x472b;for(const _0x5685aa of normalizeLocalFiles(_0x2c7d48)){const _0x33fa0d=resolveManagedFilePath(_0x5b6238,_0x5685aa[_0x476c31(0x143)]);mkdirSync(dirname(_0x33fa0d),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x33fa0d,fileContent(_0x5685aa),0x180);}}function removeStaleManagedFiles(_0x9692e4,_0x3070f1,_0x4bc7d1){const _0x572897=a91_0x472b;if(!_0x3070f1)return;const _0x456030=new Set(normalizeLocalFiles(_0x4bc7d1)[_0x572897(0x144)](_0x21c310=>_0x21c310['path']));for(const _0x192663 of Object['keys'](_0x3070f1)){if(_0x456030[_0x572897(0x139)](_0x192663))continue;const _0x2a035b=resolveManagedFilePath(_0x9692e4,_0x192663);existsSync(_0x2a035b)&&lstatSync(_0x2a035b)[_0x572897(0x125)]()&&rmSync(_0x2a035b,{'force':!![]});}}
1
+ (function(_0x5a5c52,_0x67464c){const _0x41cc17=a91_0x40f8,_0x177bfa=_0x5a5c52();while(!![]){try{const _0x4d4b41=parseInt(_0x41cc17(0xf6))/0x1+-parseInt(_0x41cc17(0xf9))/0x2+-parseInt(_0x41cc17(0x101))/0x3+-parseInt(_0x41cc17(0x11a))/0x4*(parseInt(_0x41cc17(0x113))/0x5)+-parseInt(_0x41cc17(0x115))/0x6*(-parseInt(_0x41cc17(0xf5))/0x7)+parseInt(_0x41cc17(0xf4))/0x8*(-parseInt(_0x41cc17(0x10d))/0x9)+parseInt(_0x41cc17(0x109))/0xa;if(_0x4d4b41===_0x67464c)break;else _0x177bfa['push'](_0x177bfa['shift']());}catch(_0x187441){_0x177bfa['push'](_0x177bfa['shift']());}}}(a91_0x36e0,0x7c6b5));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';function a91_0x40f8(_0x5b2526,_0x395d8e){_0x5b2526=_0x5b2526-0xf1;const _0x36e071=a91_0x36e0();let _0x40f8a4=_0x36e071[_0x5b2526];return _0x40f8a4;}import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x28b1a6,_0x49fd49,_0xe92b34){const _0x44db0c=a91_0x40f8,_0x3e30ed=requireSkillCode(_0x28b1a6),_0x129092=requirePackageBytes(_0x3e30ed,_0xe92b34['packageBytes']),_0x4782d5=extractDownloadedPackage(_0x129092),_0x35a325=_0x4782d5[_0x44db0c(0x10b)](_0x27aa0e=>_0x27aa0e['path']===SKILL_FILE);if(!_0x35a325)throw CliErrors[_0x44db0c(0x107)](_0x44db0c(0x117)+SKILL_FILE+':\x20'+_0x3e30ed);const _0x226b22=withMaterializedSkillFrontmatter(_0x4782d5,_0x28b1a6,_0x3e30ed),_0x341336=_0x226b22[_0x44db0c(0x10b)](_0x5f0a47=>_0x5f0a47[_0x44db0c(0x111)]===SKILL_FILE),_0x41477b=fileText(_0x341336),_0x146ad0=getRuntimeSkillDir(_0xe92b34['env'],_0xe92b34[_0x44db0c(0x106)],_0xe92b34[_0x44db0c(0x104)],_0x49fd49,_0x3e30ed,_0xe92b34[_0x44db0c(0xfc)]),_0x17eadb=resolve(_0x146ad0,SKILL_FILE),_0x5cebb8=resolve(_0x146ad0,METADATA_FILE),_0xe667ff=contentHash(_0x41477b),_0x14d6c0=readMetadataIfPresent(_0x5cebb8)?.[_0x44db0c(0x116)];ensurePulledFilesCanBeOverwritten(_0x146ad0,_0x5cebb8,_0x226b22,_0xe92b34[_0x44db0c(0x10a)]===!![]),mkdirSync(_0x146ad0,{'recursive':!![],'mode':0x1c0});const _0x4c1a9e=existsSync(_0x17eadb)?readFileSync(_0x17eadb,_0x44db0c(0xfb)):undefined;return materializeFiles(_0x146ad0,_0x226b22),removeStaleManagedFiles(_0x146ad0,_0x14d6c0,_0x226b22),writeJsonAtomic(_0x5cebb8,buildMetadata(_0x28b1a6,_0x49fd49,_0xe92b34[_0x44db0c(0x104)],_0xe667ff,_0xe92b34[_0x44db0c(0x112)],_0x226b22,_0x129092)),{'skill':_0x28b1a6,'scope':_0x49fd49,'dir':_0x146ad0,'skillMdPath':_0x17eadb,'metadataPath':_0x5cebb8,'contentHash':_0xe667ff,'changed':_0x4c1a9e!==_0x41477b};}function withMaterializedSkillFrontmatter(_0x3fb3d7,_0x5e5658,_0x4f3ed8){const _0x1f14d8=a91_0x40f8;return normalizeLocalFiles(_0x3fb3d7)[_0x1f14d8(0xf8)](_0x53fbe2=>{const _0x472991=_0x1f14d8,_0x1e2dc7=fileText(_0x53fbe2);if(_0x53fbe2[_0x472991(0x111)]!==SKILL_FILE||hasYamlFrontmatter(_0x1e2dc7))return _0x53fbe2;return{'path':_0x53fbe2[_0x472991(0x111)],'content':prependSkillFrontmatter(_0x1e2dc7,{'name':_0x4f3ed8,'description':_0x5e5658[_0x472991(0x103)]?.[_0x472991(0xf3)]()||_0x5e5658[_0x472991(0xf2)]?.[_0x472991(0xf3)]()||_0x4f3ed8})};});}function a91_0x36e0(){const _0x4c0208=['keys','utf8','paths','test','entries','has','name:\x20','1753212WpPDNP','length','description','appCode','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','accessKey','validation','replace','7922930uFRIEe','force','find','.\x20Changed\x20file:\x20','90819CNETQA','isFile','stringify','contentHash','path','pulledAt','165VVkBGC','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','26190wVoXyh','fileHashes','Runtime\x20Skill\x20package\x20is\x20missing\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','---','17372xzthYA','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','skillName','trim','376TnURIT','1302tpSOrg','306710CqCFrb','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','map','398544GvBWBo'];a91_0x36e0=function(){return _0x4c0208;};return a91_0x36e0();}function hasYamlFrontmatter(_0x314a84){const _0x52fe73=a91_0x40f8;return/^\uFEFF?---\s*\r?\n/[_0x52fe73(0xfd)](_0x314a84);}function prependSkillFrontmatter(_0x5ef748,_0x580ac0){const _0x573de2=a91_0x40f8,_0x3b108f=_0x5ef748[_0x573de2(0x108)](/^\uFEFF/,'');return['---',_0x573de2(0x100)+yamlString(_0x580ac0['name']),'description:\x20'+yamlString(_0x580ac0[_0x573de2(0x103)]),_0x573de2(0x119),'',_0x3b108f]['join']('\x0a');}function yamlString(_0x20df2a){const _0x1d7265=a91_0x40f8;return JSON[_0x1d7265(0x10f)](_0x20df2a[_0x1d7265(0x108)](/\r/g,'')[_0x1d7265(0xf3)]());}function ensurePulledFilesCanBeOverwritten(_0xbbe680,_0x380144,_0x78c31e,_0xc00628){const _0x19694f=a91_0x40f8;if(_0xc00628||!existsSync(_0x380144))return;const _0xdbb8e4=readMetadataIfPresent(_0x380144);if(!_0xdbb8e4)return;const _0x47a00b=_0xdbb8e4['fileHashes']&&Object[_0x19694f(0xfa)](_0xdbb8e4[_0x19694f(0x116)])[_0x19694f(0x102)]>0x0?_0xdbb8e4['fileHashes']:undefined;if(_0x47a00b)for(const [_0x3784a2,_0x2095de]of Object[_0x19694f(0xfe)](_0x47a00b)){const _0x17c182=resolveManagedFilePath(_0xbbe680,_0x3784a2);if(!existsSync(_0x17c182))throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0xbbe680,_0x19694f(0x118)+_0x3784a2);const _0xa474fd=lstatSync(_0x17c182);if(!_0xa474fd['isFile']())throw CliErrors[_0x19694f(0x107)](_0x19694f(0xf1)+_0xbbe680,'Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'+_0x3784a2);const _0x13ca0a=bufferSha256(readFileSync(_0x17c182));if(_0x13ca0a!==_0x2095de)throw CliErrors[_0x19694f(0x107)](_0x19694f(0xf1)+_0xbbe680+_0x19694f(0x10c)+_0x3784a2,_0x19694f(0xf7)+_0x3784a2);}else{const _0x3d5779=resolve(_0xbbe680,SKILL_FILE);if(existsSync(_0x3d5779)&&_0xdbb8e4[_0x19694f(0x110)]){const _0x173768=contentHash(readFileSync(_0x3d5779,_0x19694f(0xfb)));if(_0x173768!==_0xdbb8e4['contentHash'])throw CliErrors[_0x19694f(0x107)]('Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20'+_0x3d5779,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.');}}for(const _0x120019 of normalizeLocalFiles(_0x78c31e)){if(_0x47a00b?.[_0x120019[_0x19694f(0x111)]])continue;if(!_0x47a00b&&_0x120019[_0x19694f(0x111)]===SKILL_FILE)continue;const _0x3b37da=resolveManagedFilePath(_0xbbe680,_0x120019[_0x19694f(0x111)]);if(!existsSync(_0x3b37da))continue;const _0x47e4f9=lstatSync(_0x3b37da);if(!_0x47e4f9[_0x19694f(0x10e)]())throw CliErrors[_0x19694f(0x107)](_0x19694f(0xf1)+_0xbbe680,_0x19694f(0x105)+_0x120019[_0x19694f(0x111)]);const _0x4fc9b3=bufferSha256(readFileSync(_0x3b37da));if(_0x4fc9b3!==fileHash(_0x120019))throw CliErrors['validation'](_0x19694f(0xf1)+_0xbbe680,_0x19694f(0x114)+_0x120019[_0x19694f(0x111)]);}}function materializeFiles(_0x53ddeb,_0x15d5b1){for(const _0x50b658 of normalizeLocalFiles(_0x15d5b1)){const _0xe964c3=resolveManagedFilePath(_0x53ddeb,_0x50b658['path']);mkdirSync(dirname(_0xe964c3),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0xe964c3,fileContent(_0x50b658),0x180);}}function removeStaleManagedFiles(_0x47d6ec,_0x56f855,_0x723885){const _0x231cdd=a91_0x40f8;if(!_0x56f855)return;const _0x2b95f7=new Set(normalizeLocalFiles(_0x723885)[_0x231cdd(0xf8)](_0x456816=>_0x456816[_0x231cdd(0x111)]));for(const _0x1ec40a of Object[_0x231cdd(0xfa)](_0x56f855)){if(_0x2b95f7[_0x231cdd(0xff)](_0x1ec40a))continue;const _0x1291bb=resolveManagedFilePath(_0x47d6ec,_0x1ec40a);existsSync(_0x1291bb)&&lstatSync(_0x1291bb)[_0x231cdd(0x10e)]()&&rmSync(_0x1291bb,{'force':!![]});}}
@@ -1 +1 @@
1
- (function(_0x632a58,_0x4660f5){const _0x51c477=a92_0x4d8b,_0x135e5b=_0x632a58();while(!![]){try{const _0x3a1757=parseInt(_0x51c477(0x1de))/0x1+-parseInt(_0x51c477(0x1d1))/0x2*(parseInt(_0x51c477(0x1d4))/0x3)+parseInt(_0x51c477(0x1d5))/0x4+-parseInt(_0x51c477(0x1d2))/0x5*(-parseInt(_0x51c477(0x1ea))/0x6)+parseInt(_0x51c477(0x1ee))/0x7+parseInt(_0x51c477(0x1cf))/0x8*(parseInt(_0x51c477(0x1e9))/0x9)+-parseInt(_0x51c477(0x1db))/0xa;if(_0x3a1757===_0x4660f5)break;else _0x135e5b['push'](_0x135e5b['shift']());}catch(_0x39d543){_0x135e5b['push'](_0x135e5b['shift']());}}}(a92_0xe51b,0x2bf5c));import{existsSync,readFileSync}from'node:fs';function a92_0x4d8b(_0x5b2365,_0x381fba){_0x5b2365=_0x5b2365-0x1cb;const _0xe51bc4=a92_0xe51b();let _0x4d8b46=_0xe51bc4[_0x5b2365];return _0x4d8b46;}import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';function a92_0xe51b(){const _0x21d0cc=['1200892DGMpdc','string','zipSize','map','parse','17904fRbPAu','sourceSessionId','14054NcCMDh','5NHtqwS','manifest','102dqQIBf','510928hNumxV','forkedFromVersion','trim','zipSha256','hasUpstreamUpdate','path','3859880tJMNhh','Runtime\x20Skill\x20is\x20missing\x20skillCode.','userId','114711eDYxVS','length','description','utf8','validation','isArray','fromEntries','status','version','skillCode','tags','963GrQnsD','909006MfIoAp','skillName','forkedFromSkillId','ossPath'];a92_0xe51b=function(){return _0x21d0cc;};return a92_0xe51b();}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x3f030f,_0x4b21e9,_0x308a3f,_0x5488bb,_0xc9dd8a,_0x3a54a5,_0xe3880d){const _0x5a796e=a92_0x4d8b,_0x527c17=_0x3a54a5?normalizeLocalFiles(_0x3a54a5):[],_0x1b8008=!_0xe3880d&&_0x527c17['length']>0x0?buildSkillPackage(_0x527c17):undefined,_0x4b72b0=_0xe3880d?bufferSha256(_0xe3880d):_0x1b8008?.[_0x5a796e(0x1d3)][_0x5a796e(0x1d8)],_0x3c55a5=_0xe3880d?.['length']??_0x1b8008?.[_0x5a796e(0x1d3)][_0x5a796e(0x1cc)],_0x933d5b=_0x527c17[_0x5a796e(0x1df)]>0x0?Object[_0x5a796e(0x1e4)](_0x527c17[_0x5a796e(0x1cd)](_0x3598a2=>[_0x3598a2[_0x5a796e(0x1da)],fileHash(_0x3598a2)])):undefined;return{'schemaVersion':_0x527c17[_0x5a796e(0x1df)]>0x0?0x2:0x1,'id':_0x3f030f['id'],'appCode':_0x308a3f,'skillCode':requireSkillCode(_0x3f030f),'skillName':_0x3f030f[_0x5a796e(0x1eb)],'description':_0x3f030f[_0x5a796e(0x1e0)],'scope':_0x4b21e9,'readonly':_0x4b21e9!=='personal'||_0x3f030f['readonly']===!![],'tenantCode':_0x3f030f['tenantCode'],'userId':_0x3f030f[_0x5a796e(0x1dd)],'version':_0x3f030f[_0x5a796e(0x1e6)],'status':_0x3f030f[_0x5a796e(0x1e5)],'tags':Array[_0x5a796e(0x1e3)](_0x3f030f[_0x5a796e(0x1e8)])?_0x3f030f[_0x5a796e(0x1e8)]:[],'hasUpstreamUpdate':_0x3f030f[_0x5a796e(0x1d9)],'forkedFromSkillId':_0x3f030f[_0x5a796e(0x1ec)],'forkedFromVersion':_0x3f030f[_0x5a796e(0x1d6)],'sourceSessionId':_0x3f030f[_0x5a796e(0x1d0)],'contentHash':_0x5488bb,'fileHashes':_0x933d5b,'treeHash':_0x527c17[_0x5a796e(0x1df)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x527c17)):undefined,'ossPath':remoteManifestOssPath(_0x3f030f['files']),'zipSha256':_0x4b72b0,'zipSize':_0x3c55a5,'files':_0x527c17[_0x5a796e(0x1df)]>0x0?_0x527c17[_0x5a796e(0x1cd)](_0x3bcb02=>({'path':_0x3bcb02[_0x5a796e(0x1da)],'hash':fileHash(_0x3bcb02),'size':fileContent(_0x3bcb02)[_0x5a796e(0x1df)]})):undefined,'pulledAt':_0xc9dd8a??new Date()['toISOString']()};}export function requireSkillCode(_0x229cba){const _0x140903=a92_0x4d8b,_0x256243=_0x229cba[_0x140903(0x1e7)]?.['trim']();if(!_0x256243)throw CliErrors[_0x140903(0x1e2)](_0x140903(0x1dc));return _0x256243;}export function readMetadataIfPresent(_0x173243){const _0x47a78e=a92_0x4d8b;if(!existsSync(_0x173243))return undefined;try{const _0x997f91=JSON[_0x47a78e(0x1ce)](readFileSync(_0x173243,_0x47a78e(0x1e1)));return _0x997f91;}catch{throw CliErrors[_0x47a78e(0x1e2)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x173243);}}function remoteManifestOssPath(_0xcae8b2){const _0x57564d=a92_0x4d8b;if(!_0xcae8b2||typeof _0xcae8b2!=='object'||Array['isArray'](_0xcae8b2))return undefined;const _0x53075a=_0xcae8b2[_0x57564d(0x1ed)];return typeof _0x53075a===_0x57564d(0x1cb)&&_0x53075a[_0x57564d(0x1d7)]()?_0x53075a['trim']():undefined;}
1
+ (function(_0x259c12,_0x10396d){const _0x149916=a92_0x4af7,_0xfa163c=_0x259c12();while(!![]){try{const _0x57c333=-parseInt(_0x149916(0x116))/0x1*(-parseInt(_0x149916(0x105))/0x2)+parseInt(_0x149916(0x110))/0x3*(-parseInt(_0x149916(0x118))/0x4)+parseInt(_0x149916(0x10a))/0x5*(-parseInt(_0x149916(0x106))/0x6)+parseInt(_0x149916(0x104))/0x7+-parseInt(_0x149916(0x117))/0x8+parseInt(_0x149916(0x11f))/0x9+-parseInt(_0x149916(0x121))/0xa*(-parseInt(_0x149916(0x11a))/0xb);if(_0x57c333===_0x10396d)break;else _0xfa163c['push'](_0xfa163c['shift']());}catch(_0x3e1daf){_0xfa163c['push'](_0xfa163c['shift']());}}}(a92_0x4180,0xb2838));function a92_0x4af7(_0x4e1cd0,_0x255862){_0x4e1cd0=_0x4e1cd0-0x100;const _0x4180a4=a92_0x4180();let _0x4af7e9=_0x4180a4[_0x4e1cd0];return _0x4af7e9;}import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x495d79,_0x2eda1e,_0x4e7777,_0x115943,_0x58f119,_0x5a86f8,_0x72fbf4){const _0x12efb4=a92_0x4af7,_0x5cfd8e=_0x5a86f8?normalizeLocalFiles(_0x5a86f8):[],_0x357c4e=!_0x72fbf4&&_0x5cfd8e['length']>0x0?buildSkillPackage(_0x5cfd8e):undefined,_0x35f1a7=_0x72fbf4?bufferSha256(_0x72fbf4):_0x357c4e?.[_0x12efb4(0x119)][_0x12efb4(0x102)],_0x339e93=_0x72fbf4?.[_0x12efb4(0x108)]??_0x357c4e?.[_0x12efb4(0x119)][_0x12efb4(0x113)],_0xebe516=_0x5cfd8e['length']>0x0?Object[_0x12efb4(0x100)](_0x5cfd8e['map'](_0x179252=>[_0x179252[_0x12efb4(0x101)],fileHash(_0x179252)])):undefined;return{'schemaVersion':_0x5cfd8e[_0x12efb4(0x108)]>0x0?0x2:0x1,'id':_0x495d79['id'],'appCode':_0x4e7777,'skillCode':requireSkillCode(_0x495d79),'skillName':_0x495d79[_0x12efb4(0x112)],'description':_0x495d79['description'],'scope':_0x2eda1e,'readonly':_0x2eda1e!=='personal'||_0x495d79[_0x12efb4(0x10d)]===!![],'tenantCode':_0x495d79['tenantCode'],'userId':_0x495d79['userId'],'version':_0x495d79[_0x12efb4(0x11d)],'status':_0x495d79[_0x12efb4(0x10e)],'tags':Array[_0x12efb4(0x11c)](_0x495d79['tags'])?_0x495d79['tags']:[],'hasUpstreamUpdate':_0x495d79[_0x12efb4(0x11b)],'forkedFromSkillId':_0x495d79[_0x12efb4(0x122)],'forkedFromVersion':_0x495d79[_0x12efb4(0x10f)],'sourceSessionId':_0x495d79[_0x12efb4(0x123)],'contentHash':_0x115943,'fileHashes':_0xebe516,'treeHash':_0x5cfd8e['length']>0x0?fileTreeHash(localFilesToManifestFiles(_0x5cfd8e)):undefined,'ossPath':remoteManifestOssPath(_0x495d79[_0x12efb4(0x114)]),'zipSha256':_0x35f1a7,'zipSize':_0x339e93,'files':_0x5cfd8e[_0x12efb4(0x108)]>0x0?_0x5cfd8e['map'](_0x21b460=>({'path':_0x21b460['path'],'hash':fileHash(_0x21b460),'size':fileContent(_0x21b460)['length']})):undefined,'pulledAt':_0x58f119??new Date()[_0x12efb4(0x103)]()};}export function requireSkillCode(_0x45bcda){const _0x302f0a=a92_0x4af7,_0x35cfe9=_0x45bcda[_0x302f0a(0x115)]?.['trim']();if(!_0x35cfe9)throw CliErrors[_0x302f0a(0x10c)](_0x302f0a(0x120));return _0x35cfe9;}export function readMetadataIfPresent(_0x289f3f){const _0x45b506=a92_0x4af7;if(!existsSync(_0x289f3f))return undefined;try{const _0x4921e2=JSON[_0x45b506(0x11e)](readFileSync(_0x289f3f,'utf8'));return _0x4921e2;}catch{throw CliErrors[_0x45b506(0x10c)](_0x45b506(0x10b)+METADATA_FILE+':\x20'+_0x289f3f);}}function a92_0x4180(){const _0x26931f=['skillName','zipSize','files','skillCode','2Hgjgaq','8873864Tneefs','40AUnYKQ','manifest','2626283HCVOot','hasUpstreamUpdate','isArray','version','parse','631341UKrutz','Runtime\x20Skill\x20is\x20missing\x20skillCode.','50PaOQjC','forkedFromSkillId','sourceSessionId','fromEntries','path','zipSha256','toISOString','8276898dovKIb','230212HZBQYd','762zTvhYh','trim','length','string','2575sUSQDU','Invalid\x20','validation','readonly','status','forkedFromVersion','231213ckOdQV','ossPath'];a92_0x4180=function(){return _0x26931f;};return a92_0x4180();}function remoteManifestOssPath(_0x57666e){const _0x579c5b=a92_0x4af7;if(!_0x57666e||typeof _0x57666e!=='object'||Array[_0x579c5b(0x11c)](_0x57666e))return undefined;const _0xee91b3=_0x57666e[_0x579c5b(0x111)];return typeof _0xee91b3===_0x579c5b(0x109)&&_0xee91b3['trim']()?_0xee91b3[_0x579c5b(0x107)]():undefined;}
@@ -1 +1 @@
1
- const a93_0x28c41e=a93_0x1e95;(function(_0x407858,_0x14d618){const _0x54cc3c=a93_0x1e95,_0x99f86f=_0x407858();while(!![]){try{const _0x4b8750=parseInt(_0x54cc3c(0x15c))/0x1*(-parseInt(_0x54cc3c(0x15e))/0x2)+parseInt(_0x54cc3c(0x15d))/0x3+parseInt(_0x54cc3c(0x153))/0x4+parseInt(_0x54cc3c(0x160))/0x5*(parseInt(_0x54cc3c(0x161))/0x6)+-parseInt(_0x54cc3c(0x155))/0x7+parseInt(_0x54cc3c(0x159))/0x8+parseInt(_0x54cc3c(0x15b))/0x9*(-parseInt(_0x54cc3c(0x156))/0xa);if(_0x4b8750===_0x14d618)break;else _0x99f86f['push'](_0x99f86f['shift']());}catch(_0x56fb65){_0x99f86f['push'](_0x99f86f['shift']());}}}(a93_0x4f7b,0xef664));import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';function a93_0x4f7b(){const _0x48cbff=['cacheRoot','20805wxslfD','1170BhNzRg','path\x20segment','.agents','homeDir','cache','includes','\x20for\x20local\x20path:\x20','SKILL_ROOT','skillCode','trim','5229672TvxHPl','.claude','472129BSqiwO','26108270gWhyyh','claudeSkillsDir','homeDirName','6007488glGEGN','skills','9aRCQLU','40872KWvbRz','3470859ZRKIQv','18LdHjIZ'];a93_0x4f7b=function(){return _0x48cbff;};return a93_0x4f7b();}function a93_0x1e95(_0x819fcc,_0x3a69c8){_0x819fcc=_0x819fcc-0x150;const _0x4f7b1f=a93_0x4f7b();let _0x1e9526=_0x4f7b1f[_0x819fcc];return _0x1e9526;}import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x2ea180={}){const _0x59e654=a93_0x1e95,_0x3a2831=_0x2ea180[_0x59e654(0x164)]??homedir(),_0x2314c8=resolve(_0x3a2831,PRODUCT_CONFIG['homeDirName'],_0x59e654(0x165)),_0x52ff91=trimmedEnv(_0x59e654(0x150)),_0x1250e8=trimmedEnv('CLAUDE_SKILL_ROOT');return{'homeDir':_0x3a2831,'cacheRoot':_0x2314c8,'managedRoot':resolve(_0x3a2831,PRODUCT_CONFIG[_0x59e654(0x158)]),'agentsSkillsDir':_0x2ea180['agentsSkillsDir']??_0x52ff91??resolve(_0x3a2831,_0x59e654(0x163),'skills'),'claudeSkillsDir':_0x2ea180[_0x59e654(0x157)]??_0x1250e8??resolve(_0x3a2831,_0x59e654(0x154),_0x59e654(0x15a))};}export function getRuntimeSkillCacheRoot(_0x1e06dc,_0x5f240a,_0xa6162={}){const _0x59915f=a93_0x1e95,_0x1395d9=resolveSkillSyncPaths(_0xa6162);return resolve(_0x1395d9[_0x59915f(0x15f)],_0x1e06dc,fingerprintAccessKey(_0x5f240a),_0x59915f(0x15a));}export function getRuntimeSkillDir(_0xc36217,_0x1d3f58,_0x4bfa4d,_0x45a3a7,_0x1b90e5,_0x57b192={}){const _0x3bc7eb=a93_0x1e95;return resolve(getRuntimeSkillCacheRoot(_0xc36217,_0x1d3f58,_0x57b192),safePathSegment(_0x4bfa4d,'appCode'),_0x45a3a7,safePathSegment(_0x1b90e5,_0x3bc7eb(0x151)));}export function safePathSegment(_0x5a2898,_0x1fb807=a93_0x28c41e(0x162)){const _0x4d9313=a93_0x28c41e;if(!_0x5a2898||_0x5a2898['includes']('/')||_0x5a2898[_0x4d9313(0x166)]('\x5c')||_0x5a2898['includes']('..'))throw CliErrors['validation']('Unsafe\x20'+_0x1fb807+_0x4d9313(0x167)+_0x5a2898);return _0x5a2898;}function trimmedEnv(_0x420423){const _0x2a9502=a93_0x28c41e,_0xd81e55=productEnv(_0x420423)?.[_0x2a9502(0x152)]();return _0xd81e55?_0xd81e55:undefined;}
1
+ (function(_0x2b67f4,_0xc70d9b){const _0x36c39e=a93_0x3819,_0xf52342=_0x2b67f4();while(!![]){try{const _0xebd897=-parseInt(_0x36c39e(0x79))/0x1*(-parseInt(_0x36c39e(0x70))/0x2)+-parseInt(_0x36c39e(0x75))/0x3*(parseInt(_0x36c39e(0x7a))/0x4)+-parseInt(_0x36c39e(0x71))/0x5+parseInt(_0x36c39e(0x74))/0x6+-parseInt(_0x36c39e(0x6a))/0x7+parseInt(_0x36c39e(0x6f))/0x8*(-parseInt(_0x36c39e(0x78))/0x9)+parseInt(_0x36c39e(0x65))/0xa;if(_0xebd897===_0xc70d9b)break;else _0xf52342['push'](_0xf52342['shift']());}catch(_0x3580ea){_0xf52342['push'](_0xf52342['shift']());}}}(a93_0x1a6e,0x4e341));import{homedir}from'node:os';import{resolve}from'node:path';function a93_0x1a6e(){const _0x40879b=['skills','159498WyaBXI','16ASBwkz','145756ukZZhO','appCode','agentsSkillsDir','7829310ngnwYH','.agents','cache','cacheRoot','homeDir','600061KGndhx','.claude','homeDirName','trim','\x20for\x20local\x20path:\x20','32gFLREK','16216TAeHJs','3071965UXWxjy','includes','CLAUDE_SKILL_ROOT','3476970NQhzAB','33kaTgQa','Unsafe\x20'];a93_0x1a6e=function(){return _0x40879b;};return a93_0x1a6e();}import{fingerprintAccessKey}from'../../commands/app/cache.js';function a93_0x3819(_0x5f48c4,_0x5a5060){_0x5f48c4=_0x5f48c4-0x64;const _0x1a6ec7=a93_0x1a6e();let _0x3819b5=_0x1a6ec7[_0x5f48c4];return _0x3819b5;}import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x1ff3bf={}){const _0xa3c7a2=a93_0x3819,_0x584dc2=_0x1ff3bf[_0xa3c7a2(0x69)]??homedir(),_0x2667cc=resolve(_0x584dc2,PRODUCT_CONFIG[_0xa3c7a2(0x6c)],_0xa3c7a2(0x67)),_0x4667a9=trimmedEnv('SKILL_ROOT'),_0x2561e6=trimmedEnv(_0xa3c7a2(0x73));return{'homeDir':_0x584dc2,'cacheRoot':_0x2667cc,'managedRoot':resolve(_0x584dc2,PRODUCT_CONFIG[_0xa3c7a2(0x6c)]),'agentsSkillsDir':_0x1ff3bf[_0xa3c7a2(0x64)]??_0x4667a9??resolve(_0x584dc2,_0xa3c7a2(0x66),_0xa3c7a2(0x77)),'claudeSkillsDir':_0x1ff3bf['claudeSkillsDir']??_0x2561e6??resolve(_0x584dc2,_0xa3c7a2(0x6b),_0xa3c7a2(0x77))};}export function getRuntimeSkillCacheRoot(_0xad5eba,_0x5cc03d,_0x56a7b8={}){const _0x13b542=a93_0x3819,_0x57f01b=resolveSkillSyncPaths(_0x56a7b8);return resolve(_0x57f01b[_0x13b542(0x68)],_0xad5eba,fingerprintAccessKey(_0x5cc03d),_0x13b542(0x77));}export function getRuntimeSkillDir(_0x3e1f32,_0x3d88f7,_0x5937b0,_0x548045,_0x35c98d,_0x8f381={}){const _0x18732d=a93_0x3819;return resolve(getRuntimeSkillCacheRoot(_0x3e1f32,_0x3d88f7,_0x8f381),safePathSegment(_0x5937b0,_0x18732d(0x7b)),_0x548045,safePathSegment(_0x35c98d,'skillCode'));}export function safePathSegment(_0x288801,_0x4b51c4='path\x20segment'){const _0x2fd529=a93_0x3819;if(!_0x288801||_0x288801[_0x2fd529(0x72)]('/')||_0x288801[_0x2fd529(0x72)]('\x5c')||_0x288801[_0x2fd529(0x72)]('..'))throw CliErrors['validation'](_0x2fd529(0x76)+_0x4b51c4+_0x2fd529(0x6e)+_0x288801);return _0x288801;}function trimmedEnv(_0xc7b775){const _0x5442f7=a93_0x3819,_0x3e85f6=productEnv(_0xc7b775)?.[_0x5442f7(0x6d)]();return _0x3e85f6?_0x3e85f6:undefined;}
@@ -1 +1 @@
1
- (function(_0x104c8b,_0x4f5cc4){const _0xa8863=a94_0xfee2,_0x55e5a1=_0x104c8b();while(!![]){try{const _0x19468d=parseInt(_0xa8863(0x177))/0x1*(-parseInt(_0xa8863(0x167))/0x2)+parseInt(_0xa8863(0x15f))/0x3+parseInt(_0xa8863(0x151))/0x4+parseInt(_0xa8863(0x156))/0x5+-parseInt(_0xa8863(0x175))/0x6*(-parseInt(_0xa8863(0x178))/0x7)+-parseInt(_0xa8863(0x161))/0x8*(parseInt(_0xa8863(0x159))/0x9)+-parseInt(_0xa8863(0x15d))/0xa*(-parseInt(_0xa8863(0x157))/0xb);if(_0x19468d===_0x4f5cc4)break;else _0x55e5a1['push'](_0x55e5a1['shift']());}catch(_0x236713){_0x55e5a1['push'](_0x55e5a1['shift']());}}}(a94_0x198c,0x3905e));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';function a94_0xfee2(_0x4f3464,_0x32ba44){_0x4f3464=_0x4f3464-0x14d;const _0x198c06=a94_0x198c();let _0xfee2e3=_0x198c06[_0x4f3464];return _0xfee2e3;}import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x5956fb,_0x2977cc){const _0x403d8f=a94_0xfee2,_0x2364e5=resolvePushDirectoryRoot(_0x5956fb),_0xcdef6e=readMetadataIfPresent(resolve(_0x2364e5,METADATA_FILE));if(_0xcdef6e?.['appCode']&&_0xcdef6e[_0x403d8f(0x165)]!==_0x2977cc)throw CliErrors[_0x403d8f(0x15a)](_0x403d8f(0x173)+_0xcdef6e[_0x403d8f(0x165)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x2977cc+'\x22.');const _0xb50395=_0xcdef6e?.[_0x403d8f(0x174)]?.[_0x403d8f(0x176)]()||deriveSkillCodeFromDirectory(_0x2364e5,_0x2977cc);if(!_0xb50395)throw CliErrors['validation']('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+METADATA_FILE+_0x403d8f(0x164));return{'dir':_0x2364e5,'skillCode':_0xb50395,'metadata':_0xcdef6e};}export function readPushDirectory(_0x2e377c,_0x55d3b5){const _0x4e57b3=a94_0xfee2,_0x4c404a=resolvePushDirectoryIdentity(_0x2e377c,_0x55d3b5),_0x16805e=_0x4c404a[_0x4e57b3(0x155)],_0x2fcf3f=resolve(_0x16805e,SKILL_FILE);if(!existsSync(_0x2fcf3f)||!lstatSync(_0x2fcf3f)[_0x4e57b3(0x158)]())throw CliErrors[_0x4e57b3(0x15a)](_0x4e57b3(0x152)+SKILL_FILE+':\x20'+_0x2fcf3f);const _0x8fda32=_0x4c404a[_0x4e57b3(0x14f)];if(_0x8fda32?.['scope']&&_0x8fda32['scope']!==_0x4e57b3(0x16e))throw CliErrors[_0x4e57b3(0x15a)](_0x4e57b3(0x17a)+METADATA_FILE+_0x4e57b3(0x160)+_0x8fda32[_0x4e57b3(0x172)]+'\x22.');const _0x50e7f1=scanSkillDirectory(_0x16805e),_0x1fb858=buildSkillPackage(_0x50e7f1),_0x423e0d=readFileSync(_0x2fcf3f,'utf8'),_0xd9686b=_0x4c404a[_0x4e57b3(0x174)];return{'skillCode':_0xd9686b,'metadata':_0x8fda32,'input':{'skillCode':_0xd9686b,'skillName':_0x8fda32?.[_0x4e57b3(0x16a)],'description':_0x8fda32?.['description'],'content':_0x423e0d,'files':_0x1fb858[_0x4e57b3(0x166)],'packageBase64':_0x1fb858['packageBase64'],'tags':_0x8fda32?.[_0x4e57b3(0x16b)],'version':_0x8fda32?.[_0x4e57b3(0x15c)],'sourceSessionId':_0x8fda32?.[_0x4e57b3(0x16c)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x1bfcec,_0x29618b,_0x3140d4,_0x5802b0={}){const _0x39303f=a94_0xfee2,_0x3587cc=resolvePushDirectoryRoot(_0x1bfcec),_0x65dea0=readMetadataIfPresent(resolve(_0x3587cc,METADATA_FILE)),_0x1f48d7=requireRemoteScope(_0x29618b),_0x57ff30=readLocalSkillContent(_0x3587cc),_0x5e8595={..._0x29618b,'appCode':_0x29618b[_0x39303f(0x165)]??_0x3140d4,'skillName':_0x29618b[_0x39303f(0x16a)]??_0x65dea0?.[_0x39303f(0x16a)],'description':_0x29618b[_0x39303f(0x170)]??_0x65dea0?.[_0x39303f(0x170)],'tags':Array[_0x39303f(0x14d)](_0x29618b['tags'])?_0x29618b[_0x39303f(0x16b)]:_0x65dea0?.['tags'],'sourceSessionId':_0x29618b[_0x39303f(0x16c)]??_0x65dea0?.[_0x39303f(0x16c)],'content':_0x29618b[_0x39303f(0x168)]??_0x57ff30},_0x1dab9e=buildMetadata(_0x5e8595,_0x1f48d7,_0x3140d4,contentHash(_0x57ff30),_0x5802b0['refreshedAt']);writeJsonAtomic(resolve(_0x3587cc,METADATA_FILE),_0x1dab9e);}export function recordPushedRuntimeSkill(_0x53db4c,_0x45828c,_0xe816a1,_0x1c4a51={}){const _0x2fecbe=a94_0xfee2,_0x1556e7=resolvePushDirectoryRoot(_0x53db4c),_0x50abf9=scanSkillDirectory(_0x1556e7),_0x42b16b=_0x50abf9[_0x2fecbe(0x154)](_0x44983f=>_0x44983f[_0x2fecbe(0x150)]===SKILL_FILE),_0x1d039c=_0x42b16b?fileText(_0x42b16b):'',_0x508e6a=tryNormalizePackageManifest(_0x45828c['files']),_0x237993={..._0x45828c,'content':_0x45828c['content']??_0x1d039c,'files':_0x508e6a},_0xc2de49=_0x508e6a?normalizeLocalFiles(_0x50abf9)[_0x2fecbe(0x15b)](_0x13c93e=>_0x508e6a[_0x2fecbe(0x163)]['some'](_0x2aaf2a=>_0x2aaf2a[_0x2fecbe(0x150)]===_0x13c93e[_0x2fecbe(0x150)])):undefined,_0x43aef6=buildMetadata(_0x237993,_0x1c4a51[_0x2fecbe(0x172)]??_0x2fecbe(0x16e),_0xe816a1,contentHash(_0x237993[_0x2fecbe(0x168)]??''),_0x1c4a51[_0x2fecbe(0x16f)],_0xc2de49);writeJsonAtomic(resolve(_0x1556e7,METADATA_FILE),_0x43aef6);}export function deriveSkillCodeFromDirectory(_0x2abe22,_0x51b720){const _0x52ad11=a94_0xfee2,_0x22b80c=basename(resolve(_0x2abe22)),_0x354ec4=_0x51b720+'--';return _0x22b80c[_0x52ad11(0x14e)](_0x354ec4)?_0x22b80c['slice'](_0x354ec4[_0x52ad11(0x171)]):_0x22b80c;}function resolvePushDirectoryRoot(_0xee171a){const _0x5f4b72=a94_0xfee2,_0x119078=resolve(_0xee171a);if(!existsSync(_0x119078))throw CliErrors[_0x5f4b72(0x15a)](_0x5f4b72(0x162)+_0xee171a);const _0x1e1891=lstatSync(_0x119078);if(_0x1e1891[_0x5f4b72(0x16d)]())return _0x119078;if(_0x1e1891[_0x5f4b72(0x153)]()){const _0x150b66=realpathSync(_0x119078);if(lstatSync(_0x150b66)['isDirectory']())return _0x150b66;}throw CliErrors[_0x5f4b72(0x15a)]('Skill\x20directory\x20not\x20found:\x20'+_0xee171a);}function requireRemoteScope(_0x5e7b42){const _0x122be8=a94_0xfee2;if(_0x5e7b42[_0x122be8(0x172)]===_0x122be8(0x16e)||_0x5e7b42[_0x122be8(0x172)]===_0x122be8(0x15e)||_0x5e7b42[_0x122be8(0x172)]==='builtin')return _0x5e7b42['scope'];throw CliErrors['validation']('Remote\x20Skill\x20'+(_0x5e7b42[_0x122be8(0x174)]||'(unknown)')+_0x122be8(0x169)+(_0x5e7b42['scope']??_0x122be8(0x179))+'\x22.');}function a94_0x198c(){const _0x259dfa=['length','scope','Skill\x20metadata\x20appCode\x20\x22','skillCode','8292MTCgSw','trim','394DXpkeF','658MztHRm','unknown','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','isArray','startsWith','metadata','path','929236Jerumu','Missing\x20','isSymbolicLink','find','dir','220330XdzMeG','11rjcwun','isFile','9XIcHoT','validation','filter','version','1734290xCaLKE','company','408951yWvIZO','\x20has\x20scope=\x22','2907800HDTRKZ','Skill\x20directory\x20not\x20found:\x20','files','\x20or\x20directory\x20name.','appCode','manifest','604eJGsqx','content','\x20has\x20unsupported\x20scope\x20\x22','skillName','tags','sourceSessionId','isDirectory','personal','pushedAt','description'];a94_0x198c=function(){return _0x259dfa;};return a94_0x198c();}function readLocalSkillContent(_0x4bc59e){const _0x3eb6c8=a94_0xfee2,_0x598b63=resolve(_0x4bc59e,SKILL_FILE);return existsSync(_0x598b63)&&lstatSync(_0x598b63)[_0x3eb6c8(0x158)]()?readFileSync(_0x598b63,'utf8'):'';}
1
+ function a94_0x37bb(){const _0x99b73c=['builtin','346860TQuZsV','filter','Unable\x20to\x20resolve\x20skillCode\x20from\x20','isFile','personal','content','2140872tkfMjb','Skill\x20metadata\x20appCode\x20\x22','143hOMTao','Missing\x20','find','isDirectory','364637cwDnch','scope','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','5547269isquMq','311470SgZdXm','startsWith','skillCode','(unknown)','validation','unknown','3fbsrno','tags','2419450rNTgse','isArray','sourceSessionId','160ijKvyD','path','description','slice','skillName','1UtbPkz','isSymbolicLink','files','\x20has\x20unsupported\x20scope\x20\x22','company','pushedAt','appCode','1309372sHlkgE','876IpZbkH','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','\x20or\x20directory\x20name.','6UdIxmb','\x20has\x20scope=\x22','utf8','Skill\x20directory\x20not\x20found:\x20','packageBase64'];a94_0x37bb=function(){return _0x99b73c;};return a94_0x37bb();}(function(_0x260bf0,_0x1fe006){const _0x2f35a0=a94_0xe8fb,_0x1894e6=_0x260bf0();while(!![]){try{const _0xa04846=parseInt(_0x2f35a0(0x1e7))/0x1*(-parseInt(_0x2f35a0(0x1ee))/0x2)+-parseInt(_0x2f35a0(0x1dd))/0x3*(-parseInt(_0x2f35a0(0x1cd))/0x4)+-parseInt(_0x2f35a0(0x1df))/0x5*(-parseInt(_0x2f35a0(0x1f2))/0x6)+-parseInt(_0x2f35a0(0x1d6))/0x7+parseInt(_0x2f35a0(0x1e2))/0x8*(-parseInt(_0x2f35a0(0x1c7))/0x9)+-parseInt(_0x2f35a0(0x1d7))/0xa*(parseInt(_0x2f35a0(0x1cf))/0xb)+parseInt(_0x2f35a0(0x1ef))/0xc*(parseInt(_0x2f35a0(0x1d3))/0xd);if(_0xa04846===_0x1fe006)break;else _0x1894e6['push'](_0x1894e6['shift']());}catch(_0x596bed){_0x1894e6['push'](_0x1894e6['shift']());}}}(a94_0x37bb,0x6c5ad));function a94_0xe8fb(_0x24eb5d,_0x24b8af){_0x24eb5d=_0x24eb5d-0x1c7;const _0x37bb9a=a94_0x37bb();let _0xe8fb2a=_0x37bb9a[_0x24eb5d];return _0xe8fb2a;}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0xd8ed00,_0x1ec119){const _0x153b05=a94_0xe8fb,_0x232bea=resolvePushDirectoryRoot(_0xd8ed00),_0x2bf87c=readMetadataIfPresent(resolve(_0x232bea,METADATA_FILE));if(_0x2bf87c?.['appCode']&&_0x2bf87c[_0x153b05(0x1ed)]!==_0x1ec119)throw CliErrors[_0x153b05(0x1db)](_0x153b05(0x1ce)+_0x2bf87c['appCode']+_0x153b05(0x1d5)+_0x1ec119+'\x22.');const _0x5ec6a6=_0x2bf87c?.[_0x153b05(0x1d9)]?.['trim']()||deriveSkillCodeFromDirectory(_0x232bea,_0x1ec119);if(!_0x5ec6a6)throw CliErrors['validation'](_0x153b05(0x1c9)+METADATA_FILE+_0x153b05(0x1f1));return{'dir':_0x232bea,'skillCode':_0x5ec6a6,'metadata':_0x2bf87c};}export function readPushDirectory(_0x4e0d69,_0x11c386){const _0x146904=a94_0xe8fb,_0x2bd2ef=resolvePushDirectoryIdentity(_0x4e0d69,_0x11c386),_0x4b9d0f=_0x2bd2ef['dir'],_0x30c1b7=resolve(_0x4b9d0f,SKILL_FILE);if(!existsSync(_0x30c1b7)||!lstatSync(_0x30c1b7)[_0x146904(0x1ca)]())throw CliErrors[_0x146904(0x1db)](_0x146904(0x1d0)+SKILL_FILE+':\x20'+_0x30c1b7);const _0x299bc8=_0x2bd2ef['metadata'];if(_0x299bc8?.[_0x146904(0x1d4)]&&_0x299bc8['scope']!==_0x146904(0x1cb))throw CliErrors[_0x146904(0x1db)](_0x146904(0x1f0)+METADATA_FILE+_0x146904(0x1f3)+_0x299bc8[_0x146904(0x1d4)]+'\x22.');const _0xd0cdbe=scanSkillDirectory(_0x4b9d0f),_0x3fa957=buildSkillPackage(_0xd0cdbe),_0x1b7a63=readFileSync(_0x30c1b7,_0x146904(0x1f4)),_0x40ecbf=_0x2bd2ef[_0x146904(0x1d9)];return{'skillCode':_0x40ecbf,'metadata':_0x299bc8,'input':{'skillCode':_0x40ecbf,'skillName':_0x299bc8?.[_0x146904(0x1e6)],'description':_0x299bc8?.[_0x146904(0x1e4)],'content':_0x1b7a63,'files':_0x3fa957['manifest'],'packageBase64':_0x3fa957[_0x146904(0x1f6)],'tags':_0x299bc8?.[_0x146904(0x1de)],'version':_0x299bc8?.['version'],'sourceSessionId':_0x299bc8?.[_0x146904(0x1e1)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x2f257a,_0x35a551,_0x21f713,_0x4b913f={}){const _0x172ba4=a94_0xe8fb,_0x13c6a6=resolvePushDirectoryRoot(_0x2f257a),_0xa25ee0=readMetadataIfPresent(resolve(_0x13c6a6,METADATA_FILE)),_0x28a6b5=requireRemoteScope(_0x35a551),_0x344e98=readLocalSkillContent(_0x13c6a6),_0x8b86ec={..._0x35a551,'appCode':_0x35a551[_0x172ba4(0x1ed)]??_0x21f713,'skillName':_0x35a551[_0x172ba4(0x1e6)]??_0xa25ee0?.[_0x172ba4(0x1e6)],'description':_0x35a551[_0x172ba4(0x1e4)]??_0xa25ee0?.[_0x172ba4(0x1e4)],'tags':Array[_0x172ba4(0x1e0)](_0x35a551['tags'])?_0x35a551[_0x172ba4(0x1de)]:_0xa25ee0?.[_0x172ba4(0x1de)],'sourceSessionId':_0x35a551[_0x172ba4(0x1e1)]??_0xa25ee0?.[_0x172ba4(0x1e1)],'content':_0x35a551[_0x172ba4(0x1cc)]??_0x344e98},_0x248537=buildMetadata(_0x8b86ec,_0x28a6b5,_0x21f713,contentHash(_0x344e98),_0x4b913f['refreshedAt']);writeJsonAtomic(resolve(_0x13c6a6,METADATA_FILE),_0x248537);}export function recordPushedRuntimeSkill(_0x3cd169,_0x140a81,_0x3cbacf,_0x6118f5={}){const _0x2e9a03=a94_0xe8fb,_0x2e72eb=resolvePushDirectoryRoot(_0x3cd169),_0x300bb3=scanSkillDirectory(_0x2e72eb),_0x398f39=_0x300bb3[_0x2e9a03(0x1d1)](_0x20245b=>_0x20245b[_0x2e9a03(0x1e3)]===SKILL_FILE),_0x393e3c=_0x398f39?fileText(_0x398f39):'',_0x185d43=tryNormalizePackageManifest(_0x140a81[_0x2e9a03(0x1e9)]),_0x2b3c51={..._0x140a81,'content':_0x140a81[_0x2e9a03(0x1cc)]??_0x393e3c,'files':_0x185d43},_0x3982c5=_0x185d43?normalizeLocalFiles(_0x300bb3)[_0x2e9a03(0x1c8)](_0x4eb74f=>_0x185d43['files']['some'](_0x3fe713=>_0x3fe713[_0x2e9a03(0x1e3)]===_0x4eb74f['path'])):undefined,_0xadd0ae=buildMetadata(_0x2b3c51,_0x6118f5[_0x2e9a03(0x1d4)]??_0x2e9a03(0x1cb),_0x3cbacf,contentHash(_0x2b3c51['content']??''),_0x6118f5[_0x2e9a03(0x1ec)],_0x3982c5);writeJsonAtomic(resolve(_0x2e72eb,METADATA_FILE),_0xadd0ae);}export function deriveSkillCodeFromDirectory(_0x43a928,_0x5d6081){const _0x3c5fc6=a94_0xe8fb,_0x3ea2bf=basename(resolve(_0x43a928)),_0x393e28=_0x5d6081+'--';return _0x3ea2bf[_0x3c5fc6(0x1d8)](_0x393e28)?_0x3ea2bf[_0x3c5fc6(0x1e5)](_0x393e28['length']):_0x3ea2bf;}function resolvePushDirectoryRoot(_0x166aeb){const _0x11d0b8=a94_0xe8fb,_0x3ce30f=resolve(_0x166aeb);if(!existsSync(_0x3ce30f))throw CliErrors[_0x11d0b8(0x1db)](_0x11d0b8(0x1f5)+_0x166aeb);const _0x3fb52d=lstatSync(_0x3ce30f);if(_0x3fb52d[_0x11d0b8(0x1d2)]())return _0x3ce30f;if(_0x3fb52d[_0x11d0b8(0x1e8)]()){const _0x2ea2e8=realpathSync(_0x3ce30f);if(lstatSync(_0x2ea2e8)[_0x11d0b8(0x1d2)]())return _0x2ea2e8;}throw CliErrors[_0x11d0b8(0x1db)](_0x11d0b8(0x1f5)+_0x166aeb);}function requireRemoteScope(_0x27c543){const _0x1a9173=a94_0xe8fb;if(_0x27c543[_0x1a9173(0x1d4)]===_0x1a9173(0x1cb)||_0x27c543[_0x1a9173(0x1d4)]===_0x1a9173(0x1eb)||_0x27c543[_0x1a9173(0x1d4)]===_0x1a9173(0x1f7))return _0x27c543[_0x1a9173(0x1d4)];throw CliErrors[_0x1a9173(0x1db)]('Remote\x20Skill\x20'+(_0x27c543[_0x1a9173(0x1d9)]||_0x1a9173(0x1da))+_0x1a9173(0x1ea)+(_0x27c543['scope']??_0x1a9173(0x1dc))+'\x22.');}function readLocalSkillContent(_0x1d672d){const _0x3bd3ee=a94_0xe8fb,_0x404844=resolve(_0x1d672d,SKILL_FILE);return existsSync(_0x404844)&&lstatSync(_0x404844)[_0x3bd3ee(0x1ca)]()?readFileSync(_0x404844,_0x3bd3ee(0x1f4)):'';}
@@ -1 +1 @@
1
- function a95_0x12fe(){const _0x50af27=['length','15iuFxPV','8591328FTXhyM','2643864PdvPIE','validation','796364tYeRHh','builtin','5826345JUDplu','80WYfNuP','553860yCOXMZ','1362735ihFXiT','personal','includes','538200SKxldV'];a95_0x12fe=function(){return _0x50af27;};return a95_0x12fe();}(function(_0x3d85a1,_0x1ffe46){const _0x317a12=a95_0x4961,_0x1860f4=_0x3d85a1();while(!![]){try{const _0x4b5ad6=parseInt(_0x317a12(0x11d))/0x1+parseInt(_0x317a12(0x11b))/0x2+parseInt(_0x317a12(0x127))/0x3*(-parseInt(_0x317a12(0x125))/0x4)+parseInt(_0x317a12(0x121))/0x5+-parseInt(_0x317a12(0x11a))/0x6+-parseInt(_0x317a12(0x11f))/0x7+-parseInt(_0x317a12(0x120))/0x8*(-parseInt(_0x317a12(0x122))/0x9);if(_0x4b5ad6===_0x1ffe46)break;else _0x1860f4['push'](_0x1860f4['shift']());}catch(_0x41f61d){_0x1860f4['push'](_0x1860f4['shift']());}}}(a95_0x12fe,0xc4d65));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x343f30){const _0xd38b21=a95_0x4961,_0x51d5c9=_0x343f30&&_0x343f30[_0xd38b21(0x126)]>0x0?_0x343f30:[_0xd38b21(0x123),'company',_0xd38b21(0x11e)],_0x3daa3d=[];for(const _0x504d6f of _0x51d5c9){if(!isRuntimeSkillScope(_0x504d6f))throw CliErrors[_0xd38b21(0x11c)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x504d6f);!_0x3daa3d[_0xd38b21(0x124)](_0x504d6f)&&_0x3daa3d['push'](_0x504d6f);}return _0x3daa3d;}function a95_0x4961(_0x55276e,_0x3bc371){_0x55276e=_0x55276e-0x11a;const _0x12fe35=a95_0x12fe();let _0x4961dd=_0x12fe35[_0x55276e];return _0x4961dd;}export function isRuntimeSkillScope(_0x37739c){const _0x22c8a0=a95_0x4961;return _0x37739c===_0x22c8a0(0x123)||_0x37739c==='company'||_0x37739c===_0x22c8a0(0x11e);}
1
+ (function(_0x1ef2b5,_0x132f5d){const _0x4b8b83=a95_0xffb7,_0x23904b=_0x1ef2b5();while(!![]){try{const _0x488754=parseInt(_0x4b8b83(0x114))/0x1+parseInt(_0x4b8b83(0x10f))/0x2+-parseInt(_0x4b8b83(0x10c))/0x3*(parseInt(_0x4b8b83(0x112))/0x4)+-parseInt(_0x4b8b83(0x119))/0x5+-parseInt(_0x4b8b83(0x10d))/0x6*(-parseInt(_0x4b8b83(0x113))/0x7)+-parseInt(_0x4b8b83(0x116))/0x8+parseInt(_0x4b8b83(0x10e))/0x9;if(_0x488754===_0x132f5d)break;else _0x23904b['push'](_0x23904b['shift']());}catch(_0xea735){_0x23904b['push'](_0x23904b['shift']());}}}(a95_0x4131,0xa29ed));function a95_0xffb7(_0x235020,_0x5e9535){_0x235020=_0x235020-0x10a;const _0x41318a=a95_0x4131();let _0xffb7b6=_0x41318a[_0x235020];return _0xffb7b6;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x187900){const _0x22d7bd=a95_0xffb7,_0x46ef0e=_0x187900&&_0x187900[_0x22d7bd(0x110)]>0x0?_0x187900:[_0x22d7bd(0x11a),_0x22d7bd(0x118),'builtin'],_0x393c5b=[];for(const _0x1962cc of _0x46ef0e){if(!isRuntimeSkillScope(_0x1962cc))throw CliErrors[_0x22d7bd(0x10b)](_0x22d7bd(0x111)+_0x1962cc);!_0x393c5b[_0x22d7bd(0x115)](_0x1962cc)&&_0x393c5b[_0x22d7bd(0x10a)](_0x1962cc);}return _0x393c5b;}export function isRuntimeSkillScope(_0x9d1976){const _0x34fdc9=a95_0xffb7;return _0x9d1976===_0x34fdc9(0x11a)||_0x9d1976===_0x34fdc9(0x118)||_0x9d1976===_0x34fdc9(0x117);}function a95_0x4131(){const _0x5ee9b3=['424848gwcusZ','builtin','company','6458715dOXWIC','personal','push','validation','129PoQEpG','8994irQIlZ','9442674qFcOib','2148076idsvTX','length','Unsupported\x20runtime\x20Skill\x20scope:\x20','42568VFdBbK','1148aHcrfR','99488oednuO','includes'];a95_0x4131=function(){return _0x5ee9b3;};return a95_0x4131();}
@@ -1 +1 @@
1
- const a97_0x4259be=a97_0x34f3;(function(_0x10731d,_0x50541b){const _0x42abf0=a97_0x34f3,_0x5a25bc=_0x10731d();while(!![]){try{const _0x5aad9e=parseInt(_0x42abf0(0x80))/0x1*(-parseInt(_0x42abf0(0x73))/0x2)+-parseInt(_0x42abf0(0x72))/0x3+-parseInt(_0x42abf0(0x81))/0x4+-parseInt(_0x42abf0(0x89))/0x5*(-parseInt(_0x42abf0(0x87))/0x6)+-parseInt(_0x42abf0(0x7b))/0x7*(-parseInt(_0x42abf0(0x7d))/0x8)+-parseInt(_0x42abf0(0x7a))/0x9*(-parseInt(_0x42abf0(0x84))/0xa)+parseInt(_0x42abf0(0x86))/0xb*(-parseInt(_0x42abf0(0x7f))/0xc);if(_0x5aad9e===_0x50541b)break;else _0x5a25bc['push'](_0x5a25bc['shift']());}catch(_0xf8ed06){_0x5a25bc['push'](_0x5a25bc['shift']());}}}(a97_0x74e4,0x368ce));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a97_0x74e4(){const _0x36c148=['909136hONtEk','code','276wghuVz','15913yrISVO','26184IHRmCi','sort','1980-01-01T00:00:00.000Z','4172150qFnfjo','entries','8536EIjhpS','1188654pTjyOR','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','5uDjRgl','object','918273ASnKFc','22yBLWWm','validation_error','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','name','length','endsWith','validation','9mpNWVS','7yVpQvI','from'];a97_0x74e4=function(){return _0x36c148;};return a97_0x74e4();}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a97_0x4259be(0x83));export function createDeterministicZipPackage(_0x51b9b8){const _0x1e4d8e=a97_0x4259be,_0x5c51ec={};for(const _0x451f90 of normalizeLocalFiles(_0x51b9b8)){_0x5c51ec[_0x451f90['path']]=fileContent(_0x451f90);}return Buffer[_0x1e4d8e(0x7c)](zipSync(_0x5c51ec,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x3d5302){const _0x2ba540=a97_0x4259be;if(_0x3d5302[_0x2ba540(0x77)]<0x16)throw CliErrors[_0x2ba540(0x79)](_0x2ba540(0x88));let _0x71a2bf;try{_0x71a2bf=unzipSync(_0x3d5302,{'filter'(_0x50ec30){const _0x29dc2d=_0x2ba540,_0x17a42d=normalizeSkillRelativePath(_0x50ec30[_0x29dc2d(0x76)]);if(_0x17a42d[_0x29dc2d(0x78)]('/'))throw CliErrors[_0x29dc2d(0x79)](_0x29dc2d(0x75)+_0x17a42d);return!![];}});}catch(_0x2e6be2){if(isRuntimeSkillValidationError(_0x2e6be2))throw _0x2e6be2;throw CliErrors[_0x2ba540(0x79)](_0x2ba540(0x88));}return Object[_0x2ba540(0x85)](_0x71a2bf)['map'](([_0x5e02e7,_0x1253ac])=>({'path':normalizeSkillRelativePath(_0x5e02e7),'bytes':Buffer[_0x2ba540(0x7c)](_0x1253ac)}))[_0x2ba540(0x82)](compareSkillFiles);}function a97_0x34f3(_0xa163d9,_0xdcdb2a){_0xa163d9=_0xa163d9-0x72;const _0x74e420=a97_0x74e4();let _0x34f38c=_0x74e420[_0xa163d9];return _0x34f38c;}function isRuntimeSkillValidationError(_0x59d0b9){const _0x26b5c7=a97_0x4259be;return typeof _0x59d0b9===_0x26b5c7(0x8a)&&_0x59d0b9!==null&&_0x26b5c7(0x7e)in _0x59d0b9&&_0x59d0b9['code']===_0x26b5c7(0x74);}
1
+ (function(_0x4215e2,_0x12c81f){const _0x15dbd4=a97_0x2bda,_0x4e64ab=_0x4215e2();while(!![]){try{const _0x4821e6=parseInt(_0x15dbd4(0x1ea))/0x1*(parseInt(_0x15dbd4(0x1f8))/0x2)+-parseInt(_0x15dbd4(0x1f0))/0x3*(-parseInt(_0x15dbd4(0x1e8))/0x4)+parseInt(_0x15dbd4(0x1f5))/0x5+parseInt(_0x15dbd4(0x1f6))/0x6+parseInt(_0x15dbd4(0x1f7))/0x7*(parseInt(_0x15dbd4(0x1f9))/0x8)+parseInt(_0x15dbd4(0x1ec))/0x9*(-parseInt(_0x15dbd4(0x1f2))/0xa)+-parseInt(_0x15dbd4(0x1e7))/0xb;if(_0x4821e6===_0x12c81f)break;else _0x4e64ab['push'](_0x4e64ab['shift']());}catch(_0x418ee4){_0x4e64ab['push'](_0x4e64ab['shift']());}}}(a97_0x54fc,0x464f6));import{unzipSync,zipSync}from'fflate';function a97_0x54fc(){const _0x578131=['path','3837879BECFiL','object','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','from','1428ZBBrFg','code','10ZUKdec','endsWith','name','2062435yTprXj','2955624ZXogFD','816522amyVLS','322DwKixH','24uLBxJH','validation','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','13271313OyjnuW','3508BPOtAR','sort','1543khoVzX'];a97_0x54fc=function(){return _0x578131;};return a97_0x54fc();}function a97_0x2bda(_0x1bc9e1,_0x44762d){_0x1bc9e1=_0x1bc9e1-0x1e6;const _0x54fc6f=a97_0x54fc();let _0x2bdac8=_0x54fc6f[_0x1bc9e1];return _0x2bdac8;}import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');export function createDeterministicZipPackage(_0x5cf429){const _0x38b7e8=a97_0x2bda,_0x54e6ff={};for(const _0x1d1e2b of normalizeLocalFiles(_0x5cf429)){_0x54e6ff[_0x1d1e2b[_0x38b7e8(0x1eb)]]=fileContent(_0x1d1e2b);}return Buffer[_0x38b7e8(0x1ef)](zipSync(_0x54e6ff,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x274b5f){const _0x29055f=a97_0x2bda;if(_0x274b5f['length']<0x16)throw CliErrors['validation'](_0x29055f(0x1ee));let _0x2c2b74;try{_0x2c2b74=unzipSync(_0x274b5f,{'filter'(_0x3c5695){const _0x8cf333=_0x29055f,_0x545d84=normalizeSkillRelativePath(_0x3c5695[_0x8cf333(0x1f4)]);if(_0x545d84[_0x8cf333(0x1f3)]('/'))throw CliErrors[_0x8cf333(0x1fa)](_0x8cf333(0x1e6)+_0x545d84);return!![];}});}catch(_0x146d3c){if(isRuntimeSkillValidationError(_0x146d3c))throw _0x146d3c;throw CliErrors[_0x29055f(0x1fa)](_0x29055f(0x1ee));}return Object['entries'](_0x2c2b74)['map'](([_0x297601,_0x45d6e2])=>({'path':normalizeSkillRelativePath(_0x297601),'bytes':Buffer[_0x29055f(0x1ef)](_0x45d6e2)}))[_0x29055f(0x1e9)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x2ed393){const _0x49f6c0=a97_0x2bda;return typeof _0x2ed393===_0x49f6c0(0x1ed)&&_0x2ed393!==null&&_0x49f6c0(0x1f1)in _0x2ed393&&_0x2ed393[_0x49f6c0(0x1f1)]==='validation_error';}
@@ -1 +1 @@
1
- (function(_0x4c00f8,_0x4c061d){const _0x1005b8=a98_0x3f16,_0x19ce28=_0x4c00f8();while(!![]){try{const _0xadb4b=parseInt(_0x1005b8(0x184))/0x1*(parseInt(_0x1005b8(0x175))/0x2)+-parseInt(_0x1005b8(0x190))/0x3*(parseInt(_0x1005b8(0x183))/0x4)+parseInt(_0x1005b8(0x17e))/0x5*(-parseInt(_0x1005b8(0x191))/0x6)+parseInt(_0x1005b8(0x172))/0x7*(parseInt(_0x1005b8(0x185))/0x8)+parseInt(_0x1005b8(0x187))/0x9+parseInt(_0x1005b8(0x193))/0xa*(-parseInt(_0x1005b8(0x178))/0xb)+parseInt(_0x1005b8(0x174))/0xc;if(_0xadb4b===_0x4c061d)break;else _0x19ce28['push'](_0x19ce28['shift']());}catch(_0xd3584f){_0x19ce28['push'](_0x19ce28['shift']());}}}(a98_0xd237,0x4efd1));function a98_0x3f16(_0x521f00,_0x35e6af){_0x521f00=_0x521f00-0x168;const _0xd2375e=a98_0xd237();let _0x3f1648=_0xd2375e[_0x521f00];return _0x3f1648;}import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a98_0xd237(){const _0x1cd73d=['path','3825288dzkBeg','1930KAAENW','requireOssPath','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','11YYzkVy','base64','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','isArray','files','ossPath','15mSXkLE','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','length','set','4IwRipP','388Lfbaxf','1839792mXtWdy','Duplicate\x20Skill\x20package\x20entry:\x20','2046951sKVHkf','treeSha256','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','schemaVersion','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','object','zipSize','1499523NOIDdZ','232374gFzLdx','validation','4410160cuDBLH','some','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20missing\x20','zipSha256','map','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','bytes','isSafeInteger','trim','14DWJVZZ'];a98_0xd237=function(){return _0x1cd73d;};return a98_0xd237();}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x116eb5){const _0x9e8447=a98_0x3f16,_0x85b0a3=normalizeLocalFiles(_0x116eb5);if(!_0x85b0a3['some'](_0x112c36=>_0x112c36[_0x9e8447(0x173)]===SKILL_FILE))throw CliErrors[_0x9e8447(0x192)]('Missing\x20'+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x498196=localFilesToManifestFiles(_0x85b0a3),_0x251745=createDeterministicZipPackage(_0x85b0a3);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x498196),'zipSha256':bufferSha256(_0x251745),'zipSize':_0x251745[_0x9e8447(0x181)],'files':_0x498196},'packageBytes':_0x251745,'packageBase64':_0x251745['toString'](_0x9e8447(0x179))};}export function verifyRuntimeSkillPackage(_0x54427a,_0x24201b){const _0x3a2e2c=a98_0x3f16,_0x9caa9b=normalizePackageManifest(_0x54427a,{'requireOssPath':![]});if(!_0x9caa9b)throw CliErrors[_0x3a2e2c(0x192)](_0x3a2e2c(0x177));return extractAndVerifyPackage(_0x9caa9b,_0x24201b);}export function verifyRuntimeSkillBundle(_0x1f640d,_0x18078f){const _0x29381e=a98_0x3f16,_0x172ee8=normalizePackageManifest(_0x1f640d,{'requireOssPath':![]});if(!_0x172ee8)throw CliErrors[_0x29381e(0x192)](_0x29381e(0x177));return extractAndVerifyPackageFiles(_0x172ee8,_0x18078f);}export function tryNormalizePackageManifest(_0x58bff5){return normalizePackageManifest(_0x58bff5,{'requireOssPath':![]});}export function requirePackageBytes(_0x1318f8,_0x52b4d6){const _0x5f2116=a98_0x3f16;if(!_0x52b4d6||_0x52b4d6['length']===0x0)throw CliErrors[_0x5f2116(0x192)](_0x5f2116(0x17f)+_0x1318f8);return _0x52b4d6;}export function extractDownloadedPackage(_0x3d2928){const _0x1c389e=a98_0x3f16,_0x58d702=parseZipPackage(_0x3d2928)['map'](_0xf21387=>({'path':_0xf21387[_0x1c389e(0x173)],'bytes':_0xf21387[_0x1c389e(0x16f)]}));if(!_0x58d702[_0x1c389e(0x168)](_0x23e027=>_0x23e027['path']===SKILL_FILE))throw CliErrors[_0x1c389e(0x192)](_0x1c389e(0x16a)+SKILL_FILE+'.');return normalizeLocalFiles(_0x58d702);}export function localFilesToManifestFiles(_0x21e870){const _0xd44b7e=a98_0x3f16;return normalizeLocalFiles(_0x21e870)[_0xd44b7e(0x16c)](_0x3498a6=>({'path':_0x3498a6[_0xd44b7e(0x173)],'sha256':fileHash(_0x3498a6),'size':fileContent(_0x3498a6)['length']}));}function normalizePackageManifest(_0x3f02b8,_0x2d8c7c){const _0x8055d1=a98_0x3f16;if(!_0x3f02b8||typeof _0x3f02b8!==_0x8055d1(0x18e)||Array[_0x8055d1(0x17b)](_0x3f02b8))return undefined;const _0x501e9d=_0x3f02b8,_0xf82c45=typeof _0x501e9d['ossPath']==='string'?_0x501e9d[_0x8055d1(0x17d)][_0x8055d1(0x171)]():undefined;if(_0x2d8c7c[_0x8055d1(0x176)]&&!_0xf82c45)return undefined;if(!Array['isArray'](_0x501e9d[_0x8055d1(0x17c)])||_0x501e9d[_0x8055d1(0x17c)][_0x8055d1(0x181)]===0x0)return undefined;if(!isSha256Hex(_0x501e9d[_0x8055d1(0x188)]))throw CliErrors[_0x8055d1(0x192)](_0x8055d1(0x17a));if(!isSha256Hex(_0x501e9d['zipSha256']))throw CliErrors[_0x8055d1(0x192)](_0x8055d1(0x18d));if(!Number[_0x8055d1(0x170)](_0x501e9d[_0x8055d1(0x18f)])||_0x501e9d[_0x8055d1(0x18f)]<0x0)throw CliErrors[_0x8055d1(0x192)](_0x8055d1(0x16d));const _0x3870f6=normalizeManifestFiles(_0x501e9d['files']);if(!_0x3870f6[_0x8055d1(0x168)](_0x3324bf=>_0x3324bf['path']===SKILL_FILE))throw CliErrors[_0x8055d1(0x192)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x232f2e=fileTreeHash(_0x3870f6);if(_0x232f2e!==_0x501e9d[_0x8055d1(0x188)]['toLowerCase']())throw CliErrors['validation'](_0x8055d1(0x180));return{'schemaVersion':Number[_0x8055d1(0x170)](_0x501e9d[_0x8055d1(0x18b)])?_0x501e9d[_0x8055d1(0x18b)]:0x2,'ossPath':_0xf82c45,'treeSha256':_0x232f2e,'zipSha256':_0x501e9d[_0x8055d1(0x16b)]['toLowerCase'](),'zipSize':_0x501e9d[_0x8055d1(0x18f)],'files':_0x3870f6};}function extractAndVerifyPackage(_0x457b26,_0x11ea48){const _0x577d90=a98_0x3f16,_0x54e408=normalizePackageManifest(_0x457b26,{'requireOssPath':![]});if(!_0x54e408)throw CliErrors[_0x577d90(0x192)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x11ea48[_0x577d90(0x181)]!==_0x54e408[_0x577d90(0x18f)])throw CliErrors[_0x577d90(0x192)](_0x577d90(0x189));const _0x5c32ff=bufferSha256(_0x11ea48);if(_0x5c32ff!==_0x54e408[_0x577d90(0x16b)])throw CliErrors['validation'](_0x577d90(0x18a));return extractAndVerifyPackageFiles(_0x54e408,_0x11ea48);}function extractAndVerifyPackageFiles(_0x4482f0,_0xb3eac1){const _0x15a5f8=a98_0x3f16,_0x9750c7=parseZipPackage(_0xb3eac1);if(_0x9750c7[_0x15a5f8(0x181)]!==_0x4482f0[_0x15a5f8(0x17c)][_0x15a5f8(0x181)])throw CliErrors[_0x15a5f8(0x192)](_0x15a5f8(0x169));const _0x57bc0c=new Map();for(const _0x309a9a of _0x9750c7){if(_0x57bc0c['has'](_0x309a9a['path']))throw CliErrors[_0x15a5f8(0x192)](_0x15a5f8(0x186)+_0x309a9a['path']);_0x57bc0c[_0x15a5f8(0x182)](_0x309a9a[_0x15a5f8(0x173)],_0x309a9a);}const _0x2d29d7=[];for(const _0x15085e of _0x4482f0[_0x15a5f8(0x17c)]){const _0x52d7e4=_0x57bc0c['get'](_0x15085e[_0x15a5f8(0x173)]);if(!_0x52d7e4)throw CliErrors[_0x15a5f8(0x192)](_0x15a5f8(0x16e)+_0x15085e[_0x15a5f8(0x173)]);if(_0x52d7e4[_0x15a5f8(0x16f)][_0x15a5f8(0x181)]!==_0x15085e['size'])throw CliErrors[_0x15a5f8(0x192)](_0x15a5f8(0x18c)+_0x15085e[_0x15a5f8(0x173)]);const _0x57b444=bufferSha256(_0x52d7e4[_0x15a5f8(0x16f)]);if(_0x57b444!==_0x15085e['sha256'])throw CliErrors[_0x15a5f8(0x192)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x15085e['path']);_0x2d29d7['push']({'path':_0x15085e['path'],'bytes':_0x52d7e4[_0x15a5f8(0x16f)]});}return normalizeLocalFiles(_0x2d29d7);}
1
+ (function(_0x42de93,_0x489767){const _0x61dd6b=a98_0x6591,_0x247f0c=_0x42de93();while(!![]){try{const _0x582190=parseInt(_0x61dd6b(0x164))/0x1*(-parseInt(_0x61dd6b(0x162))/0x2)+parseInt(_0x61dd6b(0x14b))/0x3*(-parseInt(_0x61dd6b(0x14c))/0x4)+parseInt(_0x61dd6b(0x15d))/0x5*(parseInt(_0x61dd6b(0x161))/0x6)+-parseInt(_0x61dd6b(0x14f))/0x7+parseInt(_0x61dd6b(0x139))/0x8*(parseInt(_0x61dd6b(0x151))/0x9)+-parseInt(_0x61dd6b(0x156))/0xa+-parseInt(_0x61dd6b(0x160))/0xb*(-parseInt(_0x61dd6b(0x13d))/0xc);if(_0x582190===_0x489767)break;else _0x247f0c['push'](_0x247f0c['shift']());}catch(_0x1013b8){_0x247f0c['push'](_0x247f0c['shift']());}}}(a98_0x3889,0xf06c0));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x16fb3f){const _0x6e433a=a98_0x6591,_0x98d388=normalizeLocalFiles(_0x16fb3f);if(!_0x98d388['some'](_0x38d1bf=>_0x38d1bf[_0x6e433a(0x167)]===SKILL_FILE))throw CliErrors[_0x6e433a(0x168)](_0x6e433a(0x159)+SKILL_FILE+_0x6e433a(0x14d));const _0x53be29=localFilesToManifestFiles(_0x98d388),_0x55c35f=createDeterministicZipPackage(_0x98d388);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x53be29),'zipSha256':bufferSha256(_0x55c35f),'zipSize':_0x55c35f['length'],'files':_0x53be29},'packageBytes':_0x55c35f,'packageBase64':_0x55c35f[_0x6e433a(0x138)]('base64')};}export function verifyRuntimeSkillPackage(_0x502ca3,_0x1d5402){const _0x5ed19d=a98_0x6591,_0x50c06f=normalizePackageManifest(_0x502ca3,{'requireOssPath':![]});if(!_0x50c06f)throw CliErrors[_0x5ed19d(0x168)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x50c06f,_0x1d5402);}function a98_0x6591(_0x4d7736,_0x43e930){_0x4d7736=_0x4d7736-0x138;const _0x3889be=a98_0x3889();let _0x659139=_0x3889be[_0x4d7736];return _0x659139;}export function verifyRuntimeSkillBundle(_0x9adcf,_0x4fb38c){const _0xc45fe9=a98_0x6591,_0x4c59ae=normalizePackageManifest(_0x9adcf,{'requireOssPath':![]});if(!_0x4c59ae)throw CliErrors['validation'](_0xc45fe9(0x15f));return extractAndVerifyPackageFiles(_0x4c59ae,_0x4fb38c);}export function tryNormalizePackageManifest(_0x2ad9d0){return normalizePackageManifest(_0x2ad9d0,{'requireOssPath':![]});}export function requirePackageBytes(_0x540bbf,_0x562cb5){const _0x32e11a=a98_0x6591;if(!_0x562cb5||_0x562cb5[_0x32e11a(0x14e)]===0x0)throw CliErrors[_0x32e11a(0x168)](_0x32e11a(0x146)+_0x540bbf);return _0x562cb5;}export function extractDownloadedPackage(_0x3581d8){const _0x309bce=a98_0x6591,_0x42f29f=parseZipPackage(_0x3581d8)[_0x309bce(0x165)](_0x1ba669=>({'path':_0x1ba669[_0x309bce(0x167)],'bytes':_0x1ba669[_0x309bce(0x15c)]}));if(!_0x42f29f['some'](_0x5d85cf=>_0x5d85cf[_0x309bce(0x167)]===SKILL_FILE))throw CliErrors[_0x309bce(0x168)](_0x309bce(0x141)+SKILL_FILE+'.');return normalizeLocalFiles(_0x42f29f);}function a98_0x3889(){const _0x8add5c=['Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','treeSha256','object','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','toLowerCase','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','sha256','9969MgXtWc','1324mYZtGf','\x20in\x20Skill\x20file\x20package.','length','2838101dpWlJJ','string','14650623nckugt','zipSize','set','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','2583730IMOCyj','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','schemaVersion','Missing\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','bytes','20Zmrbpq','size','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','3935866rKJAaC','1412994sJwyGD','138HWBDIk','trim','7782DibXTx','map','files','path','validation','zipSha256','toString','8yGcSEd','isArray','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','ossPath','24LIeZpG','has','Runtime\x20Skill\x20package\x20sha256\x20mismatch.'];a98_0x3889=function(){return _0x8add5c;};return a98_0x3889();}export function localFilesToManifestFiles(_0x145a4f){const _0x25d086=a98_0x6591;return normalizeLocalFiles(_0x145a4f)[_0x25d086(0x165)](_0x39c394=>({'path':_0x39c394[_0x25d086(0x167)],'sha256':fileHash(_0x39c394),'size':fileContent(_0x39c394)[_0x25d086(0x14e)]}));}function normalizePackageManifest(_0x418d32,_0x3443e8){const _0x4d474f=a98_0x6591;if(!_0x418d32||typeof _0x418d32!==_0x4d474f(0x144)||Array[_0x4d474f(0x13a)](_0x418d32))return undefined;const _0x81213=_0x418d32,_0x5a73bc=typeof _0x81213[_0x4d474f(0x13c)]===_0x4d474f(0x150)?_0x81213[_0x4d474f(0x13c)][_0x4d474f(0x163)]():undefined;if(_0x3443e8['requireOssPath']&&!_0x5a73bc)return undefined;if(!Array[_0x4d474f(0x13a)](_0x81213[_0x4d474f(0x166)])||_0x81213[_0x4d474f(0x166)][_0x4d474f(0x14e)]===0x0)return undefined;if(!isSha256Hex(_0x81213[_0x4d474f(0x143)]))throw CliErrors[_0x4d474f(0x168)](_0x4d474f(0x13b));if(!isSha256Hex(_0x81213[_0x4d474f(0x169)]))throw CliErrors[_0x4d474f(0x168)](_0x4d474f(0x148));if(!Number['isSafeInteger'](_0x81213['zipSize'])||_0x81213['zipSize']<0x0)throw CliErrors['validation'](_0x4d474f(0x15b));const _0x810b74=normalizeManifestFiles(_0x81213[_0x4d474f(0x166)]);if(!_0x810b74['some'](_0x49fd53=>_0x49fd53['path']===SKILL_FILE))throw CliErrors[_0x4d474f(0x168)](_0x4d474f(0x149)+SKILL_FILE+'.');const _0x1825bf=fileTreeHash(_0x810b74);if(_0x1825bf!==_0x81213[_0x4d474f(0x143)][_0x4d474f(0x147)]())throw CliErrors[_0x4d474f(0x168)](_0x4d474f(0x145));return{'schemaVersion':Number['isSafeInteger'](_0x81213[_0x4d474f(0x158)])?_0x81213['schemaVersion']:0x2,'ossPath':_0x5a73bc,'treeSha256':_0x1825bf,'zipSha256':_0x81213[_0x4d474f(0x169)][_0x4d474f(0x147)](),'zipSize':_0x81213[_0x4d474f(0x152)],'files':_0x810b74};}function extractAndVerifyPackage(_0x11a42f,_0x529c29){const _0x57a19a=a98_0x6591,_0x443a3d=normalizePackageManifest(_0x11a42f,{'requireOssPath':![]});if(!_0x443a3d)throw CliErrors[_0x57a19a(0x168)](_0x57a19a(0x15f));if(_0x529c29[_0x57a19a(0x14e)]!==_0x443a3d[_0x57a19a(0x152)])throw CliErrors['validation'](_0x57a19a(0x154));const _0x904af1=bufferSha256(_0x529c29);if(_0x904af1!==_0x443a3d[_0x57a19a(0x169)])throw CliErrors['validation'](_0x57a19a(0x13f));return extractAndVerifyPackageFiles(_0x443a3d,_0x529c29);}function extractAndVerifyPackageFiles(_0x3ca151,_0x213f70){const _0x397f3e=a98_0x6591,_0xcd4a08=parseZipPackage(_0x213f70);if(_0xcd4a08['length']!==_0x3ca151[_0x397f3e(0x166)]['length'])throw CliErrors[_0x397f3e(0x168)](_0x397f3e(0x157));const _0x2cc8dd=new Map();for(const _0x120738 of _0xcd4a08){if(_0x2cc8dd[_0x397f3e(0x13e)](_0x120738['path']))throw CliErrors[_0x397f3e(0x168)](_0x397f3e(0x140)+_0x120738[_0x397f3e(0x167)]);_0x2cc8dd[_0x397f3e(0x153)](_0x120738[_0x397f3e(0x167)],_0x120738);}const _0x3e74d5=[];for(const _0x4dccea of _0x3ca151[_0x397f3e(0x166)]){const _0x24f091=_0x2cc8dd['get'](_0x4dccea[_0x397f3e(0x167)]);if(!_0x24f091)throw CliErrors['validation'](_0x397f3e(0x15a)+_0x4dccea['path']);if(_0x24f091[_0x397f3e(0x15c)]['length']!==_0x4dccea[_0x397f3e(0x15e)])throw CliErrors[_0x397f3e(0x168)](_0x397f3e(0x155)+_0x4dccea[_0x397f3e(0x167)]);const _0x223275=bufferSha256(_0x24f091[_0x397f3e(0x15c)]);if(_0x223275!==_0x4dccea[_0x397f3e(0x14a)])throw CliErrors[_0x397f3e(0x168)](_0x397f3e(0x142)+_0x4dccea[_0x397f3e(0x167)]);_0x3e74d5['push']({'path':_0x4dccea[_0x397f3e(0x167)],'bytes':_0x24f091[_0x397f3e(0x15c)]});}return normalizeLocalFiles(_0x3e74d5);}
@@ -1 +1 @@
1
- (function(_0x57051c,_0x5b29c6){var _0x309f20=a99_0x234a,_0x5e49a4=_0x57051c();while(!![]){try{var _0x5d725e=parseInt(_0x309f20(0xe5))/0x1+-parseInt(_0x309f20(0xe2))/0x2*(-parseInt(_0x309f20(0xe1))/0x3)+-parseInt(_0x309f20(0xe6))/0x4*(-parseInt(_0x309f20(0xe7))/0x5)+parseInt(_0x309f20(0xe3))/0x6*(parseInt(_0x309f20(0xe4))/0x7)+parseInt(_0x309f20(0xe8))/0x8*(parseInt(_0x309f20(0xe9))/0x9)+-parseInt(_0x309f20(0xe0))/0xa+-parseInt(_0x309f20(0xdf))/0xb;if(_0x5d725e===_0x5b29c6)break;else _0x5e49a4['push'](_0x5e49a4['shift']());}catch(_0x5aa2c3){_0x5e49a4['push'](_0x5e49a4['shift']());}}}(a99_0x1f53,0xc96cf));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';function a99_0x234a(_0x29c8b4,_0x137b52){_0x29c8b4=_0x29c8b4-0xdf;var _0x1f5336=a99_0x1f53();var _0x234a80=_0x1f5336[_0x29c8b4];return _0x234a80;}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';function a99_0x1f53(){var _0x83fa6f=['33795LBIiKQ','42057708fGmCry','1365750htexci','213wEplkg','7258gidecq','138SfHlUl','425915JbMaYF','1155318YhjBay','12ejRFPS','2618075OEwoLN','856RDWDEA'];a99_0x1f53=function(){return _0x83fa6f;};return a99_0x1f53();}export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0xe57226,_0xf1d89d){var _0x21f8ae=a99_0x1305,_0x16bfb6=_0xe57226();while(!![]){try{var _0x4b8cfb=parseInt(_0x21f8ae(0x71))/0x1*(-parseInt(_0x21f8ae(0x68))/0x2)+-parseInt(_0x21f8ae(0x6a))/0x3+parseInt(_0x21f8ae(0x6f))/0x4*(-parseInt(_0x21f8ae(0x73))/0x5)+-parseInt(_0x21f8ae(0x69))/0x6+parseInt(_0x21f8ae(0x72))/0x7*(-parseInt(_0x21f8ae(0x6b))/0x8)+-parseInt(_0x21f8ae(0x70))/0x9*(parseInt(_0x21f8ae(0x6e))/0xa)+parseInt(_0x21f8ae(0x6d))/0xb*(parseInt(_0x21f8ae(0x6c))/0xc);if(_0x4b8cfb===_0xf1d89d)break;else _0x16bfb6['push'](_0x16bfb6['shift']());}catch(_0x681bfd){_0x16bfb6['push'](_0x16bfb6['shift']());}}}(a99_0x85be,0x1a03b));function a99_0x85be(){var _0x193b52=['72499PCXaKD','155eXjfzt','1018orawsq','760260cbTMEn','300954kqPIYb','104YvNjNd','12EBksnY','10421389VtAhjt','3830tazecX','23572BthYDg','2745eIqOWw','353EDHSGW'];a99_0x85be=function(){return _0x193b52;};return a99_0x85be();}export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a99_0x1305(_0x257961,_0x26f4a3){_0x257961=_0x257961-0x68;var _0x85be84=a99_0x85be();var _0x130555=_0x85be84[_0x257961];return _0x130555;}export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- (function(_0xe7799c,_0x5e3ac7){const _0x4ff4e5=a100_0x4103,_0x496555=_0xe7799c();while(!![]){try{const _0xebb39f=parseInt(_0x4ff4e5(0x121))/0x1+parseInt(_0x4ff4e5(0x120))/0x2+parseInt(_0x4ff4e5(0x124))/0x3*(parseInt(_0x4ff4e5(0x11f))/0x4)+parseInt(_0x4ff4e5(0x11c))/0x5*(-parseInt(_0x4ff4e5(0x11e))/0x6)+parseInt(_0x4ff4e5(0x122))/0x7+parseInt(_0x4ff4e5(0x123))/0x8*(-parseInt(_0x4ff4e5(0x11d))/0x9)+parseInt(_0x4ff4e5(0x11b))/0xa;if(_0xebb39f===_0x5e3ac7)break;else _0x496555['push'](_0x496555['shift']());}catch(_0x174f12){_0x496555['push'](_0x496555['shift']());}}}(a100_0x224b,0x8b690));function a100_0x224b(){const _0x150a74=['1220188QVcdWo','218170IBkxcc','169839RkblTq','2969918rLzuYZ','2569856GLwuMx','6ciMbiP','3548390jbsYLo','31035WzwRhg','9nVdGxk','750WYwaCM'];a100_0x224b=function(){return _0x150a74;};return a100_0x224b();}function a100_0x4103(_0x53353e,_0x514f65){_0x53353e=_0x53353e-0x11b;const _0x224b10=a100_0x224b();let _0x4103bf=_0x224b10[_0x53353e];return _0x4103bf;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a100_0x4a18(){const _0x43829f=['3658728BrkquX','2ktKoli','2190630JUoFWW','107536XvQHpF','5989291lATRiB','5263098mmhepi','496133iOqiJl','1288794UqfREd'];a100_0x4a18=function(){return _0x43829f;};return a100_0x4a18();}(function(_0x1955ac,_0x3b9eb7){const _0x403671=a100_0x46e8,_0x57dd10=_0x1955ac();while(!![]){try{const _0x173c59=parseInt(_0x403671(0x1a3))/0x1+-parseInt(_0x403671(0x19e))/0x2*(-parseInt(_0x403671(0x1a4))/0x3)+-parseInt(_0x403671(0x1a5))/0x4+parseInt(_0x403671(0x19f))/0x5+parseInt(_0x403671(0x1a2))/0x6+-parseInt(_0x403671(0x1a1))/0x7+parseInt(_0x403671(0x1a0))/0x8;if(_0x173c59===_0x3b9eb7)break;else _0x57dd10['push'](_0x57dd10['shift']());}catch(_0x21eec7){_0x57dd10['push'](_0x57dd10['shift']());}}}(a100_0x4a18,0x7635b));function a100_0x46e8(_0x3997e1,_0x48d5c4){_0x3997e1=_0x3997e1-0x19e;const _0x4a18d0=a100_0x4a18();let _0x46e8fc=_0x4a18d0[_0x3997e1];return _0x46e8fc;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a101_0x36e28a=a101_0x323f;function a101_0x59d9(){const _0x38865b=['9dpmJXU','filter','Starting:\x20','1031326iSNIUY','3185464BpiWEq','currentRawCommand','timestamp','165jaMszc','message','parse','logFilePath','success','duration','stringify','2714604clPLNr','green','setRawCommand','printf','error','Failed:\x20','unknown','clear','dirname','warn','now','join','addColors','readLogs','existsSync','Completed:\x20','setLogPath','red','4BlRuku','14966810PHErHs','info','trim','map','mkdirSync','9228WJjGqU','yellow','9PAQPQL','3101875xzNlii','utf8','toISOString','Failed\x20to\x20read\x20logs:','rawCommand','3801YEbUYf','winstonLogger','split','details','readFileSync','format','writeFileSync','602293dQOftf','initWinstonLogger','getWinstonInstance'];a101_0x59d9=function(){return _0x38865b;};return a101_0x59d9();}(function(_0x3f6614,_0x3f0350){const _0x552af0=a101_0x323f,_0x3fa84d=_0x3f6614();while(!![]){try{const _0x55aeda=parseInt(_0x552af0(0x158))/0x1+parseInt(_0x552af0(0x15e))/0x2*(parseInt(_0x552af0(0x14b))/0x3)+parseInt(_0x552af0(0x143))/0x4*(-parseInt(_0x552af0(0x14c))/0x5)+parseInt(_0x552af0(0x149))/0x6*(parseInt(_0x552af0(0x151))/0x7)+parseInt(_0x552af0(0x15f))/0x8*(parseInt(_0x552af0(0x15b))/0x9)+parseInt(_0x552af0(0x144))/0xa+-parseInt(_0x552af0(0x162))/0xb*(parseInt(_0x552af0(0x169))/0xc);if(_0x55aeda===_0x3f0350)break;else _0x3fa84d['push'](_0x3fa84d['shift']());}catch(_0x53be70){_0x3fa84d['push'](_0x3fa84d['shift']());}}}(a101_0x59d9,0xd3572));import a101_0x4758de from'winston';import a101_0xe4ed97 from'node:fs';import a101_0x11bfcd from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a101_0x323f(_0x55eb29,_0x52abc1){_0x55eb29=_0x55eb29-0x13b;const _0x59d928=a101_0x59d9();let _0x323fdc=_0x59d928[_0x55eb29];return _0x323fdc;}class Logger{[a101_0x36e28a(0x152)];[a101_0x36e28a(0x165)]='';['currentRawCommand']='';constructor(){}[a101_0x36e28a(0x16b)](_0xe8374){const _0x46c9ac=a101_0x36e28a;this[_0x46c9ac(0x160)]=_0xe8374;}[a101_0x36e28a(0x141)](_0x360416){const _0x36d3b1=a101_0x36e28a;this[_0x36d3b1(0x165)]=a101_0x11bfcd[_0x36d3b1(0x13c)](_0x360416,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x36d3b1(0x152)][_0x36d3b1(0x170)](),this[_0x36d3b1(0x159)]();}[a101_0x36e28a(0x159)](){const _0x3a6616=a101_0x36e28a,_0x4d409a=a101_0x11bfcd[_0x3a6616(0x171)](this['logFilePath']);!a101_0xe4ed97[_0x3a6616(0x13f)](_0x4d409a)&&a101_0xe4ed97[_0x3a6616(0x148)](_0x4d409a,{'recursive':!![]});const _0x539569=a101_0x4758de['format']['combine'](a101_0x4758de[_0x3a6616(0x156)][_0x3a6616(0x161)](),a101_0x4758de[_0x3a6616(0x156)]['errors']({'stack':!![]}),a101_0x4758de[_0x3a6616(0x156)][_0x3a6616(0x16c)](_0x46e77e=>{const _0xa9f0f5=_0x3a6616,_0x36d047={'timestamp':_0x46e77e[_0xa9f0f5(0x161)]||new Date()[_0xa9f0f5(0x14e)](),'level':_0x46e77e['level']||_0xa9f0f5(0x145),'command':_0x46e77e['command']||_0xa9f0f5(0x16f),'rawCommand':_0x46e77e[_0xa9f0f5(0x150)]||this['currentRawCommand']||undefined,'message':_0x46e77e[_0xa9f0f5(0x163)]||'','duration':_0x46e77e[_0xa9f0f5(0x167)]||undefined,'details':_0x46e77e[_0xa9f0f5(0x154)]||undefined};return JSON[_0xa9f0f5(0x168)](_0x36d047);}));this['winstonLogger']=a101_0x4758de['createLogger']({'level':_0x3a6616(0x145),'format':_0x539569,'transports':[new a101_0x4758de['transports']['File']({'filename':this[_0x3a6616(0x165)],'level':_0x3a6616(0x145)})],'silent':![]}),a101_0x4758de[_0x3a6616(0x13d)]({'success':_0x3a6616(0x16a),'error':_0x3a6616(0x142),'warn':_0x3a6616(0x14a),'info':'blue'});}[a101_0x36e28a(0x145)](_0x5ec566,_0xb0e727,_0x5e3562){const _0x3d2a13=a101_0x36e28a;if(!this[_0x3d2a13(0x165)]||!this[_0x3d2a13(0x152)])return;this[_0x3d2a13(0x152)]['info'](_0xb0e727,{'command':_0x5ec566,'details':_0x5e3562});}[a101_0x36e28a(0x166)](_0x306a07,_0x40eb32,_0x399349,_0x34b9d9){const _0x101d4c=a101_0x36e28a;if(!this['logFilePath']||!this[_0x101d4c(0x152)])return;this[_0x101d4c(0x152)]['log']('info',_0x40eb32,{'level':_0x101d4c(0x166),'command':_0x306a07,'duration':_0x399349,'details':_0x34b9d9});}[a101_0x36e28a(0x16d)](_0x1cf59d,_0x13f43a,_0x318493){const _0x3aa646=a101_0x36e28a;if(!this[_0x3aa646(0x165)]||!this['winstonLogger'])return;this['winstonLogger'][_0x3aa646(0x16d)](_0x13f43a,{'command':_0x1cf59d,'details':_0x318493});}[a101_0x36e28a(0x172)](_0x49bf23,_0x59e7f6,_0x52decb){const _0x5e0a8f=a101_0x36e28a;if(!this[_0x5e0a8f(0x165)]||!this[_0x5e0a8f(0x152)])return;this[_0x5e0a8f(0x152)]['warn'](_0x59e7f6,{'command':_0x49bf23,'details':_0x52decb});}async['logTask'](_0x1ebae7,_0x533f13,_0x2319eb){const _0x2dd1ce=a101_0x36e28a,_0x50a830=Date[_0x2dd1ce(0x13b)]();this[_0x2dd1ce(0x145)](_0x1ebae7,_0x2dd1ce(0x15d)+_0x533f13);try{const _0x210447=await _0x2319eb(),_0x58760f=Date[_0x2dd1ce(0x13b)]()-_0x50a830;return this[_0x2dd1ce(0x166)](_0x1ebae7,_0x2dd1ce(0x140)+_0x533f13,_0x58760f),_0x210447;}catch(_0x5ba200){const _0x352c59=Date[_0x2dd1ce(0x13b)]()-_0x50a830;this[_0x2dd1ce(0x16d)](_0x1ebae7,_0x2dd1ce(0x16e)+_0x533f13,{'error':_0x5ba200 instanceof Error?_0x5ba200[_0x2dd1ce(0x163)]:String(_0x5ba200),'duration':_0x352c59});throw _0x5ba200;}}[a101_0x36e28a(0x13e)](){const _0x45a5bc=a101_0x36e28a;try{if(!a101_0xe4ed97[_0x45a5bc(0x13f)](this[_0x45a5bc(0x165)]))return[];const _0x5c0a03=a101_0xe4ed97[_0x45a5bc(0x155)](this[_0x45a5bc(0x165)],'utf8');return _0x5c0a03[_0x45a5bc(0x153)](/\r?\n/)[_0x45a5bc(0x15c)](_0x232a55=>_0x232a55[_0x45a5bc(0x146)]())[_0x45a5bc(0x147)](_0x357094=>JSON[_0x45a5bc(0x164)](_0x357094));}catch(_0x15e94c){return console[_0x45a5bc(0x172)](_0x45a5bc(0x14f),_0x15e94c),[];}}['clearLogs'](){const _0x398914=a101_0x36e28a;try{a101_0xe4ed97['existsSync'](this[_0x398914(0x165)])&&a101_0xe4ed97[_0x398914(0x157)](this[_0x398914(0x165)],'',_0x398914(0x14d));}catch(_0xe66b5d){console[_0x398914(0x172)]('Failed\x20to\x20clear\x20logs:',_0xe66b5d);}}[a101_0x36e28a(0x15a)](){const _0x4df021=a101_0x36e28a;return this[_0x4df021(0x152)];}}export const logger=new Logger();
1
+ const a101_0x3b0410=a101_0x49d5;(function(_0x22ace7,_0x1f3dc2){const _0x1e0e82=a101_0x49d5,_0x51ed00=_0x22ace7();while(!![]){try{const _0x441121=-parseInt(_0x1e0e82(0xcb))/0x1*(parseInt(_0x1e0e82(0x100))/0x2)+-parseInt(_0x1e0e82(0xfd))/0x3*(-parseInt(_0x1e0e82(0xc8))/0x4)+-parseInt(_0x1e0e82(0xd9))/0x5*(-parseInt(_0x1e0e82(0xd7))/0x6)+-parseInt(_0x1e0e82(0xda))/0x7*(-parseInt(_0x1e0e82(0xe9))/0x8)+-parseInt(_0x1e0e82(0xe8))/0x9+-parseInt(_0x1e0e82(0xeb))/0xa*(-parseInt(_0x1e0e82(0xf5))/0xb)+-parseInt(_0x1e0e82(0xe2))/0xc*(-parseInt(_0x1e0e82(0xdb))/0xd);if(_0x441121===_0x1f3dc2)break;else _0x51ed00['push'](_0x51ed00['shift']());}catch(_0x44a2e9){_0x51ed00['push'](_0x51ed00['shift']());}}}(a101_0x45ea,0xde207));import a101_0x47eedf from'winston';import a101_0x5a7a46 from'node:fs';import a101_0x5c1745 from'node:path';function a101_0x49d5(_0x29893b,_0x3c4ed1){_0x29893b=_0x29893b-0xc1;const _0x45eaf5=a101_0x45ea();let _0x49d55d=_0x45eaf5[_0x29893b];return _0x49d55d;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a101_0x3b0410(0xed)];['logFilePath']='';[a101_0x3b0410(0xe6)]='';constructor(){}[a101_0x3b0410(0xe4)](_0x4aa6a6){this['currentRawCommand']=_0x4aa6a6;}[a101_0x3b0410(0xf1)](_0x483636){const _0x23565e=a101_0x3b0410;this[_0x23565e(0xf4)]=a101_0x5c1745[_0x23565e(0xfc)](_0x483636,PRODUCT_CONFIG[_0x23565e(0xf7)]),this['winstonLogger']&&this['winstonLogger'][_0x23565e(0xc9)](),this[_0x23565e(0xf2)]();}[a101_0x3b0410(0xf2)](){const _0x9e7f5f=a101_0x3b0410,_0x2f7492=a101_0x5c1745[_0x9e7f5f(0xcf)](this['logFilePath']);!a101_0x5a7a46[_0x9e7f5f(0xef)](_0x2f7492)&&a101_0x5a7a46[_0x9e7f5f(0xce)](_0x2f7492,{'recursive':!![]});const _0x1c5348=a101_0x47eedf[_0x9e7f5f(0xc5)][_0x9e7f5f(0xfe)](a101_0x47eedf[_0x9e7f5f(0xc5)][_0x9e7f5f(0xd0)](),a101_0x47eedf[_0x9e7f5f(0xc5)]['errors']({'stack':!![]}),a101_0x47eedf[_0x9e7f5f(0xc5)]['printf'](_0x2d060c=>{const _0x62f67f=_0x9e7f5f,_0x15e7a4={'timestamp':_0x2d060c[_0x62f67f(0xd0)]||new Date()[_0x62f67f(0xdd)](),'level':_0x2d060c[_0x62f67f(0xe1)]||_0x62f67f(0xc6),'command':_0x2d060c[_0x62f67f(0xde)]||_0x62f67f(0xd1),'rawCommand':_0x2d060c[_0x62f67f(0xcc)]||this[_0x62f67f(0xe6)]||undefined,'message':_0x2d060c['message']||'','duration':_0x2d060c[_0x62f67f(0xfa)]||undefined,'details':_0x2d060c[_0x62f67f(0xd3)]||undefined};return JSON[_0x62f67f(0xd5)](_0x15e7a4);}));this[_0x9e7f5f(0xed)]=a101_0x47eedf[_0x9e7f5f(0xc4)]({'level':_0x9e7f5f(0xc6),'format':_0x1c5348,'transports':[new a101_0x47eedf[(_0x9e7f5f(0xea))]['File']({'filename':this[_0x9e7f5f(0xf4)],'level':_0x9e7f5f(0xc6)})],'silent':![]}),a101_0x47eedf['addColors']({'success':_0x9e7f5f(0xe3),'error':'red','warn':_0x9e7f5f(0xd2),'info':_0x9e7f5f(0xca)});}['info'](_0x3046cd,_0x3d33f2,_0x5dc40c){const _0x3933e5=a101_0x3b0410;if(!this[_0x3933e5(0xf4)]||!this[_0x3933e5(0xed)])return;this['winstonLogger'][_0x3933e5(0xc6)](_0x3d33f2,{'command':_0x3046cd,'details':_0x5dc40c});}[a101_0x3b0410(0xc3)](_0x116ebb,_0x1bf772,_0x4e5ca4,_0x13695d){const _0x4982f5=a101_0x3b0410;if(!this[_0x4982f5(0xf4)]||!this[_0x4982f5(0xed)])return;this[_0x4982f5(0xed)][_0x4982f5(0xd8)](_0x4982f5(0xc6),_0x1bf772,{'level':_0x4982f5(0xc3),'command':_0x116ebb,'duration':_0x4e5ca4,'details':_0x13695d});}[a101_0x3b0410(0xe5)](_0x4d31a9,_0x799123,_0x683f1b){const _0x5d0b08=a101_0x3b0410;if(!this[_0x5d0b08(0xf4)]||!this[_0x5d0b08(0xed)])return;this[_0x5d0b08(0xed)][_0x5d0b08(0xe5)](_0x799123,{'command':_0x4d31a9,'details':_0x683f1b});}['warn'](_0x1ceb7e,_0x4b4280,_0x4c3a45){const _0x4ac1d8=a101_0x3b0410;if(!this['logFilePath']||!this[_0x4ac1d8(0xed)])return;this['winstonLogger']['warn'](_0x4b4280,{'command':_0x1ceb7e,'details':_0x4c3a45});}async[a101_0x3b0410(0xe0)](_0x488fe2,_0x5ce233,_0x2da98e){const _0x285cb5=a101_0x3b0410,_0x5eb4fa=Date[_0x285cb5(0xf9)]();this[_0x285cb5(0xc6)](_0x488fe2,_0x285cb5(0xff)+_0x5ce233);try{const _0x3184b1=await _0x2da98e(),_0x248447=Date[_0x285cb5(0xf9)]()-_0x5eb4fa;return this[_0x285cb5(0xc3)](_0x488fe2,_0x285cb5(0xee)+_0x5ce233,_0x248447),_0x3184b1;}catch(_0x3283f6){const _0x3119a5=Date[_0x285cb5(0xf9)]()-_0x5eb4fa;this[_0x285cb5(0xe5)](_0x488fe2,_0x285cb5(0xdf)+_0x5ce233,{'error':_0x3283f6 instanceof Error?_0x3283f6[_0x285cb5(0xd6)]:String(_0x3283f6),'duration':_0x3119a5});throw _0x3283f6;}}[a101_0x3b0410(0xe7)](){const _0x17f756=a101_0x3b0410;try{if(!a101_0x5a7a46['existsSync'](this[_0x17f756(0xf4)]))return[];const _0x3e41cc=a101_0x5a7a46[_0x17f756(0xc2)](this[_0x17f756(0xf4)],_0x17f756(0xf8));return _0x3e41cc[_0x17f756(0x101)](/\r?\n/)[_0x17f756(0xcd)](_0x21333c=>_0x21333c[_0x17f756(0xf3)]())[_0x17f756(0xd4)](_0x562db2=>JSON[_0x17f756(0xf6)](_0x562db2));}catch(_0x1b4764){return console[_0x17f756(0xdc)](_0x17f756(0xec),_0x1b4764),[];}}[a101_0x3b0410(0xfb)](){const _0x357900=a101_0x3b0410;try{a101_0x5a7a46[_0x357900(0xef)](this['logFilePath'])&&a101_0x5a7a46[_0x357900(0xf0)](this['logFilePath'],'','utf8');}catch(_0x315fd7){console[_0x357900(0xdc)](_0x357900(0xc7),_0x315fd7);}}[a101_0x3b0410(0xc1)](){return this['winstonLogger'];}}function a101_0x45ea(){const _0x501df0=['Completed:\x20','existsSync','writeFileSync','setLogPath','initWinstonLogger','trim','logFilePath','132MvfLyo','parse','logFileName','utf8','now','duration','clearLogs','join','519QXLOOV','combine','Starting:\x20','1455368cHRDMF','split','getWinstonInstance','readFileSync','success','createLogger','format','info','Failed\x20to\x20clear\x20logs:','7684aCNUxv','clear','blue','2KsCpfq','rawCommand','filter','mkdirSync','dirname','timestamp','unknown','yellow','details','map','stringify','message','78wkXLQu','log','261785poNehJ','14QMfegW','20040683mqpbuz','warn','toISOString','command','Failed:\x20','logTask','level','12ZNgbZq','green','setRawCommand','error','currentRawCommand','readLogs','9488322MlExum','1471024gRiPPn','transports','414280WIGdyR','Failed\x20to\x20read\x20logs:','winstonLogger'];a101_0x45ea=function(){return _0x501df0;};return a101_0x45ea();}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3312c4,_0x2b3517){var _0x3fe875=a102_0x73ce,_0x546f48=_0x3312c4();while(!![]){try{var _0x17ee60=parseInt(_0x3fe875(0x110))/0x1+parseInt(_0x3fe875(0x108))/0x2*(-parseInt(_0x3fe875(0x117))/0x3)+-parseInt(_0x3fe875(0x10d))/0x4*(parseInt(_0x3fe875(0x114))/0x5)+-parseInt(_0x3fe875(0x10a))/0x6+parseInt(_0x3fe875(0x111))/0x7*(parseInt(_0x3fe875(0x107))/0x8)+-parseInt(_0x3fe875(0x10c))/0x9*(parseInt(_0x3fe875(0x118))/0xa)+parseInt(_0x3fe875(0x10e))/0xb*(parseInt(_0x3fe875(0x112))/0xc);if(_0x17ee60===_0x2b3517)break;else _0x546f48['push'](_0x546f48['shift']());}catch(_0x31a961){_0x546f48['push'](_0x546f48['shift']());}}}(a102_0x5224,0xe5c19));function a102_0x73ce(_0x5ecec2,_0x46b6fb){_0x5ecec2=_0x5ecec2-0x107;var _0x522430=a102_0x5224();var _0x73ce7b=_0x522430[_0x5ecec2];return _0x73ce7b;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x287309){var _0x103a30=a102_0x73ce;if(!_0x287309)return undefined;try{return JSON[_0x103a30(0x119)](_0x287309);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x287309);}}function a102_0x5224(){var _0xf6365c=['Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','5OLjwJc','isArray','Invalid\x20JSON\x20for\x20--params:\x20','9ckqdnm','1524130aNBgWH','parse','200536vvOBZi','1085282lqvvkf','items','2645508pPmDvH','object','9PpNNZO','3490940oOJXmL','121VIzuhL','validation','1258473QGIEuL','273vYwohU','1962528oUYGdP'];a102_0x5224=function(){return _0xf6365c;};return a102_0x5224();}export function parseJsonParamsValue(_0x319e6d){var _0x283f6f=a102_0x73ce;if(!_0x319e6d)return undefined;try{return JSON['parse'](_0x319e6d);}catch{throw CliErrors[_0x283f6f(0x10f)](_0x283f6f(0x116)+_0x319e6d);}}export function parseBatchCreateItemsFromParams(_0x500dcf){var _0x382402=a102_0x73ce;if(Array[_0x382402(0x115)](_0x500dcf))return _0x500dcf;if(_0x500dcf!==null&&_0x500dcf!==undefined&&typeof _0x500dcf===_0x382402(0x10b)&&Array[_0x382402(0x115)](_0x500dcf[_0x382402(0x109)]))return _0x500dcf['items'];throw CliErrors[_0x382402(0x10f)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x382402(0x113));}
1
+ (function(_0x375c0c,_0x2724e5){var _0x20376c=a102_0xed13,_0x326fbc=_0x375c0c();while(!![]){try{var _0x50ae26=parseInt(_0x20376c(0x170))/0x1*(parseInt(_0x20376c(0x16a))/0x2)+-parseInt(_0x20376c(0x16d))/0x3+-parseInt(_0x20376c(0x16f))/0x4*(parseInt(_0x20376c(0x177))/0x5)+-parseInt(_0x20376c(0x16b))/0x6+-parseInt(_0x20376c(0x173))/0x7*(-parseInt(_0x20376c(0x176))/0x8)+-parseInt(_0x20376c(0x172))/0x9+parseInt(_0x20376c(0x171))/0xa;if(_0x50ae26===_0x2724e5)break;else _0x326fbc['push'](_0x326fbc['shift']());}catch(_0x4c2787){_0x326fbc['push'](_0x326fbc['shift']());}}}(a102_0xce66,0xba41e));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x232560){var _0x3811e0=a102_0xed13;if(!_0x232560)return undefined;try{return JSON[_0x3811e0(0x168)](_0x232560);}catch{throw CliErrors[_0x3811e0(0x16c)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x232560);}}function a102_0xed13(_0x10e6c9,_0x9a258c){_0x10e6c9=_0x10e6c9-0x168;var _0xce6688=a102_0xce66();var _0xed1388=_0xce6688[_0x10e6c9];return _0xed1388;}export function parseJsonParamsValue(_0x4b176b){var _0x326b0d=a102_0xed13;if(!_0x4b176b)return undefined;try{return JSON[_0x326b0d(0x168)](_0x4b176b);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x4b176b);}}function a102_0xce66(){var _0x22447b=['72466KauyZU','5673750WdyLaz','validation','2570622qkvOtT','isArray','865712PMtVhL','11InsZfL','20362760vLZuax','4675959BQjPbF','7qUfPTg','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','12126664fncmUh','20ADdmfP','parse','items'];a102_0xce66=function(){return _0x22447b;};return a102_0xce66();}export function parseBatchCreateItemsFromParams(_0x68fe99){var _0x33e954=a102_0xed13;if(Array[_0x33e954(0x16e)](_0x68fe99))return _0x68fe99;if(_0x68fe99!==null&&_0x68fe99!==undefined&&typeof _0x68fe99==='object'&&Array[_0x33e954(0x16e)](_0x68fe99[_0x33e954(0x169)]))return _0x68fe99[_0x33e954(0x169)];throw CliErrors[_0x33e954(0x16c)](_0x33e954(0x174),_0x33e954(0x175));}
@@ -1 +1 @@
1
- function a103_0x30ab(_0x1162e9,_0x55133a){_0x1162e9=_0x1162e9-0x1c1;const _0x9784b8=a103_0x9784();let _0x30abed=_0x9784b8[_0x1162e9];return _0x30abed;}function a103_0x9784(){const _0xdbf77b=['6921153Djceru','platform','.cmd','3765342kLyVMT','8cJafcD','705201vrEOEC','20vyjkUt','30WNwMrn','9055365jMpeuW','1041438irOzkx','3cCRDic','3030468TdToZK','2181370aZOOLl'];a103_0x9784=function(){return _0xdbf77b;};return a103_0x9784();}const a103_0x3823f8=a103_0x30ab;(function(_0x46d6f4,_0x229cb0){const _0xe66e0d=a103_0x30ab,_0x942c46=_0x46d6f4();while(!![]){try{const _0x4254dd=parseInt(_0xe66e0d(0x1cd))/0x1+-parseInt(_0xe66e0d(0x1c7))/0x2*(parseInt(_0xe66e0d(0x1c5))/0x3)+parseInt(_0xe66e0d(0x1c6))/0x4+parseInt(_0xe66e0d(0x1c2))/0x5*(-parseInt(_0xe66e0d(0x1c4))/0x6)+parseInt(_0xe66e0d(0x1cb))/0x7+parseInt(_0xe66e0d(0x1cc))/0x8*(-parseInt(_0xe66e0d(0x1c8))/0x9)+-parseInt(_0xe66e0d(0x1c1))/0xa*(-parseInt(_0xe66e0d(0x1c3))/0xb);if(_0x4254dd===_0x229cb0)break;else _0x942c46['push'](_0x942c46['shift']());}catch(_0x2bd448){_0x942c46['push'](_0x942c46['shift']());}}}(a103_0x9784,0xb621e));export const isWindows=process[a103_0x3823f8(0x1c9)]==='win32';export function resolveNpmBin(_0x4352d8){const _0x5f3347=a103_0x3823f8;return isWindows?_0x4352d8+_0x5f3347(0x1ca):_0x4352d8;}
1
+ function a103_0x2d73(){const _0x2906f2=['1095962qWLAym','943570FcBxiT','3010456UVGoYh','2973998tUAfag','16LNpqSD','1640418KGzYti','.cmd','1080621IMorgL','win32','platform','1334207iUitwZ'];a103_0x2d73=function(){return _0x2906f2;};return a103_0x2d73();}const a103_0x585b3b=a103_0x3fbc;(function(_0x593a22,_0x5dd07f){const _0x5b8999=a103_0x3fbc,_0x282dbd=_0x593a22();while(!![]){try{const _0x5b648a=parseInt(_0x5b8999(0x12e))/0x1+-parseInt(_0x5b8999(0x131))/0x2+parseInt(_0x5b8999(0x12a))/0x3+-parseInt(_0x5b8999(0x132))/0x4*(-parseInt(_0x5b8999(0x12f))/0x5)+parseInt(_0x5b8999(0x133))/0x6+parseInt(_0x5b8999(0x12d))/0x7+-parseInt(_0x5b8999(0x130))/0x8;if(_0x5b648a===_0x5dd07f)break;else _0x282dbd['push'](_0x282dbd['shift']());}catch(_0x1c273d){_0x282dbd['push'](_0x282dbd['shift']());}}}(a103_0x2d73,0xc62cb));export const isWindows=process[a103_0x585b3b(0x12c)]===a103_0x585b3b(0x12b);function a103_0x3fbc(_0x2302b8,_0x49dbcc){_0x2302b8=_0x2302b8-0x12a;const _0x2d7358=a103_0x2d73();let _0x3fbcf3=_0x2d7358[_0x2302b8];return _0x3fbcf3;}export function resolveNpmBin(_0x543c57){const _0x5b145c=a103_0x585b3b;return isWindows?_0x543c57+_0x5b145c(0x134):_0x543c57;}
@@ -1 +1 @@
1
- (function(_0x4c6cab,_0x22f866){const _0xb5080=a104_0x55d6,_0x2eae38=_0x4c6cab();while(!![]){try{const _0x223cd1=-parseInt(_0xb5080(0xbe))/0x1+-parseInt(_0xb5080(0xa5))/0x2+parseInt(_0xb5080(0xc6))/0x3+-parseInt(_0xb5080(0xae))/0x4+-parseInt(_0xb5080(0xb9))/0x5*(-parseInt(_0xb5080(0xc9))/0x6)+-parseInt(_0xb5080(0xb3))/0x7+parseInt(_0xb5080(0xbc))/0x8;if(_0x223cd1===_0x22f866)break;else _0x2eae38['push'](_0x2eae38['shift']());}catch(_0xf8ce94){_0x2eae38['push'](_0x2eae38['shift']());}}}(a104_0xdbf7,0xe33e2));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x1a4149){const _0x131ead=a104_0x55d6,_0x122ac3=_0x1a4149[_0x131ead(0xa6)]()[_0x131ead(0xb1)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x122ac3)return null;return{'major':Number(_0x122ac3[0x1]),'minor':Number(_0x122ac3[0x2]),'patch':Number(_0x122ac3[0x3]),'prerelease':_0x122ac3[0x4]};}function compareSemver(_0x64afa8,_0xfd0507){const _0x5aa474=a104_0x55d6,_0x363300=parseSemver(_0x64afa8),_0x94f634=parseSemver(_0xfd0507);if(!_0x363300||!_0x94f634)throw new Error('Invalid\x20semver');for(const _0x46e010 of[_0x5aa474(0xc1),_0x5aa474(0xb2),_0x5aa474(0xba)]){if(_0x363300[_0x46e010]<_0x94f634[_0x46e010])return-0x1;if(_0x363300[_0x46e010]>_0x94f634[_0x46e010])return 0x1;}if(!_0x363300[_0x5aa474(0xbd)]&&!_0x94f634[_0x5aa474(0xbd)])return 0x0;if(!_0x363300[_0x5aa474(0xbd)])return 0x1;if(!_0x94f634['prerelease'])return-0x1;if(_0x363300[_0x5aa474(0xbd)]===_0x94f634[_0x5aa474(0xbd)])return 0x0;return _0x363300[_0x5aa474(0xbd)]<_0x94f634[_0x5aa474(0xbd)]?-0x1:0x1;}function a104_0xdbf7(){const _0x37a674=['319213LvgmCM','true','checkedAt','major','now','.cache','lovrabet-cli','latest','928671AdoKMA','number','/v/','150BGBkAe','/dist-tags','parse','2921468qsMjQW','trim','filter','object','lastNotifiedAt','\x20available,\x20current\x20','string','timeout','toLowerCase','3729764TaRObm','yes','fromEntries','match','minor','10420662EunsRu','/-/package/','entries','https://www.npmjs.com/package/','map','json','130105COuEHm','patch','utf8','33374064hBHgJu','prerelease'];a104_0xdbf7=function(){return _0x37a674;};return a104_0xdbf7();}function isUpdateNoticeDisabled(){const _0x16a003=a104_0x55d6,_0x30914e=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x16a003(0xad)]();return _0x30914e==='1'||_0x30914e===_0x16a003(0xbf)||_0x30914e===_0x16a003(0xaf);}function cacheRoot(){const _0x593776=a104_0x55d6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x593776(0xc3));}export function getUpdateNoticeCachePath(){const _0x8ff59e=a104_0x55d6;return join(cacheRoot(),_0x8ff59e(0xc4),'update-check.json');}async function readUpdateNoticeCache(){const _0x3439a8=a104_0x55d6;try{const _0x2a87e6=await readFile(getUpdateNoticeCachePath(),_0x3439a8(0xbb)),_0x38b1ba=JSON[_0x3439a8(0xa4)](_0x2a87e6);if(!_0x38b1ba||typeof _0x38b1ba!==_0x3439a8(0xa8))return{};return _0x38b1ba;}catch{return{};}}async function writeUpdateNoticeCache(_0x244442){const _0x4e010f=a104_0x55d6;try{const _0x2cabf6=getUpdateNoticeCachePath();await mkdir(dirname(_0x2cabf6),{'recursive':!![]}),await writeFile(_0x2cabf6,JSON['stringify'](_0x244442,null,0x2)+'\x0a',_0x4e010f(0xbb));}catch{}}function isFreshCheck(_0x56267f,_0x24fd46){const _0x89c4f4=a104_0x55d6;return typeof _0x56267f[_0x89c4f4(0xc0)]===_0x89c4f4(0xc7)&&_0x24fd46-_0x56267f['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1cab4f,_0x35e59e,_0x1a6575){const _0x195b7a=a104_0x55d6;return _0x1cab4f['lastNotifiedVersion']===_0x35e59e&&typeof _0x1cab4f[_0x195b7a(0xa9)]==='number'&&_0x1a6575-_0x1cab4f[_0x195b7a(0xa9)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x4cb15c=0x5dc){const _0x1c9fb4=a104_0x55d6;try{const _0x41fc42=NPM_REGISTRY_BASE_URL+_0x1c9fb4(0xb4)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1c9fb4(0xa3),_0x18a01b=await fetch(_0x41fc42,{'signal':AbortSignal[_0x1c9fb4(0xac)](_0x4cb15c)});if(!_0x18a01b['ok'])return null;const _0x477486=await _0x18a01b[_0x1c9fb4(0xb8)]();if(!_0x477486||typeof _0x477486!==_0x1c9fb4(0xa8))return null;return Object[_0x1c9fb4(0xb0)](Object[_0x1c9fb4(0xb5)](_0x477486)[_0x1c9fb4(0xa7)](([,_0x17bcb2])=>typeof _0x17bcb2===_0x1c9fb4(0xab)&&_0x17bcb2['trim']())[_0x1c9fb4(0xb7)](([_0x5680e5,_0x462df6])=>[_0x5680e5,String(_0x462df6)[_0x1c9fb4(0xa6)]()]));}catch{return null;}}function a104_0x55d6(_0x5569c5,_0x2ecadc){_0x5569c5=_0x5569c5-0xa3;const _0xdbf727=a104_0xdbf7();let _0x55d6b7=_0xdbf727[_0x5569c5];return _0x55d6b7;}export function buildNpmVersionUrl(_0x356cdf){const _0x9dcd4c=a104_0x55d6;return _0x9dcd4c(0xb6)+LOVRABET_NPM_PACKAGE_NAME+_0x9dcd4c(0xc8)+_0x356cdf;}export async function resolveLatestUpdateNotice(){const _0xf947d8=a104_0x55d6;if(isUpdateNoticeDisabled())return null;try{const _0x411c8c=Date[_0xf947d8(0xc2)](),_0x452cff=getCliVersion(),_0x5636a2=await readUpdateNoticeCache();let _0x6f80bd=isFreshCheck(_0x5636a2,_0x411c8c)?_0x5636a2[_0xf947d8(0xc5)]?.[_0xf947d8(0xa6)]():undefined;if(!_0x6f80bd&&!isFreshCheck(_0x5636a2,_0x411c8c)){const _0x5e1dbe=await fetchNpmDistTags();_0x6f80bd=_0x5e1dbe?.[_0xf947d8(0xc5)]?.[_0xf947d8(0xa6)](),await writeUpdateNoticeCache({..._0x5636a2,'checkedAt':_0x411c8c,'latest':_0x6f80bd,'failed':!_0x6f80bd});}if(!_0x6f80bd||compareSemver(_0x452cff,_0x6f80bd)>=0x0)return null;if(isRecentlyNotified(_0x5636a2,_0x6f80bd,_0x411c8c))return null;const _0x317524=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x5636a2,'checkedAt':isFreshCheck(_0x5636a2,_0x411c8c)?_0x5636a2[_0xf947d8(0xc0)]:_0x411c8c,'latest':_0x6f80bd,'failed':![],'lastNotifiedVersion':_0x6f80bd,'lastNotifiedAt':_0x411c8c}),{'command':_0x317524,'current':_0x452cff,'latest':_0x6f80bd,'url':buildNpmVersionUrl(_0x6f80bd),'message':CLI_BIN_NAME+'\x20'+_0x6f80bd+_0xf947d8(0xaa)+_0x452cff+',\x20run:\x20'+_0x317524};}catch{return null;}}
1
+ function a104_0x4f4e(_0x10cace,_0x1f9bb7){_0x10cace=_0x10cace-0x1a4;const _0x1c932a=a104_0x1c93();let _0x4f4e91=_0x1c932a[_0x10cace];return _0x4f4e91;}(function(_0xf27789,_0x1e460d){const _0x4869f9=a104_0x4f4e,_0x38926d=_0xf27789();while(!![]){try{const _0x4a23fb=parseInt(_0x4869f9(0x1a5))/0x1*(parseInt(_0x4869f9(0x1ae))/0x2)+parseInt(_0x4869f9(0x1c6))/0x3+parseInt(_0x4869f9(0x1bd))/0x4+-parseInt(_0x4869f9(0x1b6))/0x5+parseInt(_0x4869f9(0x1a4))/0x6*(-parseInt(_0x4869f9(0x1ba))/0x7)+parseInt(_0x4869f9(0x1af))/0x8*(-parseInt(_0x4869f9(0x1c5))/0x9)+-parseInt(_0x4869f9(0x1bf))/0xa*(-parseInt(_0x4869f9(0x1c1))/0xb);if(_0x4a23fb===_0x1e460d)break;else _0x38926d['push'](_0x38926d['shift']());}catch(_0x1cf38b){_0x38926d['push'](_0x38926d['shift']());}}}(a104_0x1c93,0x91a11));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x51ce45){const _0x155d04=_0x51ce45['trim']()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x155d04)return null;return{'major':Number(_0x155d04[0x1]),'minor':Number(_0x155d04[0x2]),'patch':Number(_0x155d04[0x3]),'prerelease':_0x155d04[0x4]};}function compareSemver(_0x135ee8,_0x4b2e3f){const _0xa5c528=a104_0x4f4e,_0x41918a=parseSemver(_0x135ee8),_0x32eb8b=parseSemver(_0x4b2e3f);if(!_0x41918a||!_0x32eb8b)throw new Error(_0xa5c528(0x1b0));for(const _0x490d7e of[_0xa5c528(0x1bb),'minor',_0xa5c528(0x1c2)]){if(_0x41918a[_0x490d7e]<_0x32eb8b[_0x490d7e])return-0x1;if(_0x41918a[_0x490d7e]>_0x32eb8b[_0x490d7e])return 0x1;}if(!_0x41918a[_0xa5c528(0x1ab)]&&!_0x32eb8b[_0xa5c528(0x1ab)])return 0x0;if(!_0x41918a['prerelease'])return 0x1;if(!_0x32eb8b[_0xa5c528(0x1ab)])return-0x1;if(_0x41918a[_0xa5c528(0x1ab)]===_0x32eb8b[_0xa5c528(0x1ab)])return 0x0;return _0x41918a[_0xa5c528(0x1ab)]<_0x32eb8b[_0xa5c528(0x1ab)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x4f2467=a104_0x4f4e,_0x47a8f2=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x4f2467(0x1be)]()[_0x4f2467(0x1aa)]();return _0x47a8f2==='1'||_0x47a8f2===_0x4f2467(0x1a7)||_0x47a8f2==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x46447f=a104_0x4f4e;return join(cacheRoot(),'lovrabet-cli',_0x46447f(0x1ad));}function a104_0x1c93(){const _0x49bbe7=['6QuCuuF','760769kkAAcX','string','true','lastNotifiedVersion','/dist-tags','toLowerCase','prerelease','/-/package/','update-check.json','2ugJoGm','8uzsbFA','Invalid\x20semver','number','map','\x20available,\x20current\x20','timeout','checkedAt','3377250pZxbGS','latest','fromEntries','lastNotifiedAt','6781663IYMiKC','major','utf8','4721624nppzTe','trim','1420920pKzFNd','https://www.npmjs.com/package/','11SHnVtd','patch','filter','parse','3820356dSbICu','1745919hrrBnf','object'];a104_0x1c93=function(){return _0x49bbe7;};return a104_0x1c93();}async function readUpdateNoticeCache(){const _0x2d458c=a104_0x4f4e;try{const _0x213258=await readFile(getUpdateNoticeCachePath(),_0x2d458c(0x1bc)),_0x20477b=JSON[_0x2d458c(0x1c4)](_0x213258);if(!_0x20477b||typeof _0x20477b!==_0x2d458c(0x1c7))return{};return _0x20477b;}catch{return{};}}async function writeUpdateNoticeCache(_0x2ed976){const _0x26d08d=a104_0x4f4e;try{const _0x31d4ae=getUpdateNoticeCachePath();await mkdir(dirname(_0x31d4ae),{'recursive':!![]}),await writeFile(_0x31d4ae,JSON['stringify'](_0x2ed976,null,0x2)+'\x0a',_0x26d08d(0x1bc));}catch{}}function isFreshCheck(_0x25ac3f,_0x245348){const _0x3b9d5d=a104_0x4f4e;return typeof _0x25ac3f[_0x3b9d5d(0x1b5)]===_0x3b9d5d(0x1b1)&&_0x245348-_0x25ac3f['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x585a27,_0x5deada,_0x1d2f92){const _0x104632=a104_0x4f4e;return _0x585a27[_0x104632(0x1a8)]===_0x5deada&&typeof _0x585a27['lastNotifiedAt']===_0x104632(0x1b1)&&_0x1d2f92-_0x585a27[_0x104632(0x1b9)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0xdafabd=0x5dc){const _0x1d5a7c=a104_0x4f4e;try{const _0x55cc58=NPM_REGISTRY_BASE_URL+_0x1d5a7c(0x1ac)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1d5a7c(0x1a9),_0x54d636=await fetch(_0x55cc58,{'signal':AbortSignal[_0x1d5a7c(0x1b4)](_0xdafabd)});if(!_0x54d636['ok'])return null;const _0x3d68bd=await _0x54d636['json']();if(!_0x3d68bd||typeof _0x3d68bd!==_0x1d5a7c(0x1c7))return null;return Object[_0x1d5a7c(0x1b8)](Object['entries'](_0x3d68bd)[_0x1d5a7c(0x1c3)](([,_0x58751a])=>typeof _0x58751a===_0x1d5a7c(0x1a6)&&_0x58751a[_0x1d5a7c(0x1be)]())[_0x1d5a7c(0x1b2)](([_0x57de5e,_0x7d6262])=>[_0x57de5e,String(_0x7d6262)[_0x1d5a7c(0x1be)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x504878){const _0x4881f0=a104_0x4f4e;return _0x4881f0(0x1c0)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x504878;}export async function resolveLatestUpdateNotice(){const _0x1561c2=a104_0x4f4e;if(isUpdateNoticeDisabled())return null;try{const _0x44f788=Date['now'](),_0x46d81e=getCliVersion(),_0xaa113b=await readUpdateNoticeCache();let _0x8cbea=isFreshCheck(_0xaa113b,_0x44f788)?_0xaa113b[_0x1561c2(0x1b7)]?.[_0x1561c2(0x1be)]():undefined;if(!_0x8cbea&&!isFreshCheck(_0xaa113b,_0x44f788)){const _0x2fbd17=await fetchNpmDistTags();_0x8cbea=_0x2fbd17?.[_0x1561c2(0x1b7)]?.['trim'](),await writeUpdateNoticeCache({..._0xaa113b,'checkedAt':_0x44f788,'latest':_0x8cbea,'failed':!_0x8cbea});}if(!_0x8cbea||compareSemver(_0x46d81e,_0x8cbea)>=0x0)return null;if(isRecentlyNotified(_0xaa113b,_0x8cbea,_0x44f788))return null;const _0x3f9e0c=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0xaa113b,'checkedAt':isFreshCheck(_0xaa113b,_0x44f788)?_0xaa113b['checkedAt']:_0x44f788,'latest':_0x8cbea,'failed':![],'lastNotifiedVersion':_0x8cbea,'lastNotifiedAt':_0x44f788}),{'command':_0x3f9e0c,'current':_0x46d81e,'latest':_0x8cbea,'url':buildNpmVersionUrl(_0x8cbea),'message':CLI_BIN_NAME+'\x20'+_0x8cbea+_0x1561c2(0x1b3)+_0x46d81e+',\x20run:\x20'+_0x3f9e0c};}catch{return null;}}
@@ -1 +1 @@
1
- function a105_0x3796(){const _0x5f39fe=['1169600PiXCdX','11pKmGMD','4874976znCsnx','2222679NTaNkN','2RUUkHo','3699996oaEvoS','29760KLwhRZ','774BGcJCW','158380lVfwop','228614RSfLZk','unknown','328WyWzuy','slice','56dpZZuy'];a105_0x3796=function(){return _0x5f39fe;};return a105_0x3796();}(function(_0x53bc72,_0x35ea42){const _0x2ae26a=a105_0x37e8,_0x20a6ca=_0x53bc72();while(!![]){try{const _0xd80356=-parseInt(_0x2ae26a(0xb8))/0x1*(parseInt(_0x2ae26a(0xbd))/0x2)+-parseInt(_0x2ae26a(0xb7))/0x3+parseInt(_0x2ae26a(0xbf))/0x4*(parseInt(_0x2ae26a(0xba))/0x5)+parseInt(_0x2ae26a(0xb6))/0x6+parseInt(_0x2ae26a(0xc1))/0x7*(-parseInt(_0x2ae26a(0xc2))/0x8)+parseInt(_0x2ae26a(0xbb))/0x9*(parseInt(_0x2ae26a(0xbc))/0xa)+-parseInt(_0x2ae26a(0xb5))/0xb*(-parseInt(_0x2ae26a(0xb9))/0xc);if(_0xd80356===_0x35ea42)break;else _0x20a6ca['push'](_0x20a6ca['shift']());}catch(_0x3a15ff){_0x20a6ca['push'](_0x20a6ca['shift']());}}}(a105_0x3796,0xcb16e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a105_0x37e8(_0x40296f,_0x469fd0){_0x40296f=_0x40296f-0xb5;const _0x37961=a105_0x3796();let _0x37e8c0=_0x37961[_0x40296f];return _0x37e8c0;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x5649e8=a105_0x37e8,_0x295be8=String(GIT_COMMIT);return _0x295be8&&_0x295be8!==_0x5649e8(0xbe)?_0x295be8:'';}export function getCliVersionDisplay(){const _0x2fb57b=a105_0x37e8,_0xba942a=getCliGitCommit(),_0x5c7b6d=BUILD_TIME[_0x2fb57b(0xc0)](0x0,0xa);if(!_0xba942a||!_0x5c7b6d)return VERSION;return VERSION+'\x20('+_0xba942a+',\x20'+_0x5c7b6d+')';}
1
+ (function(_0x1f9b64,_0x2bde8b){const _0x4dfddc=a105_0x59ed,_0x2c6282=_0x1f9b64();while(!![]){try{const _0x1c4fdd=-parseInt(_0x4dfddc(0x181))/0x1*(parseInt(_0x4dfddc(0x185))/0x2)+parseInt(_0x4dfddc(0x187))/0x3+-parseInt(_0x4dfddc(0x188))/0x4*(parseInt(_0x4dfddc(0x186))/0x5)+-parseInt(_0x4dfddc(0x189))/0x6+-parseInt(_0x4dfddc(0x182))/0x7*(parseInt(_0x4dfddc(0x184))/0x8)+parseInt(_0x4dfddc(0x18c))/0x9+parseInt(_0x4dfddc(0x18a))/0xa;if(_0x1c4fdd===_0x2bde8b)break;else _0x2c6282['push'](_0x2c6282['shift']());}catch(_0x133e03){_0x2c6282['push'](_0x2c6282['shift']());}}}(a105_0x6380,0xcb0d0));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a105_0x59ed(_0x5910ad,_0x18dd33){_0x5910ad=_0x5910ad-0x181;const _0x638012=a105_0x6380();let _0x59edcd=_0x638012[_0x5910ad];return _0x59edcd;}function a105_0x6380(){const _0x480b6f=['slice','8MivuUx','4100BCTJwD','3487775FwbHtv','2134233QimmBi','4GcJOaJ','3678126SMrNVF','17687630sHDyXT','unknown','10177011rtlEUP','659cvPTeI','824117bAolGi'];a105_0x6380=function(){return _0x480b6f;};return a105_0x6380();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x494074=a105_0x59ed,_0x2e4d0c=String(GIT_COMMIT);return _0x2e4d0c&&_0x2e4d0c!==_0x494074(0x18b)?_0x2e4d0c:'';}export function getCliVersionDisplay(){const _0x3a94b1=a105_0x59ed,_0xfa8b07=getCliGitCommit(),_0x4d9ee6=BUILD_TIME[_0x3a94b1(0x183)](0x0,0xa);if(!_0xfa8b07||!_0x4d9ee6)return VERSION;return VERSION+'\x20('+_0xfa8b07+',\x20'+_0x4d9ee6+')';}
@@ -1 +1 @@
1
- function a106_0x4a4d(_0x174c72,_0x2500d5){_0x174c72=_0x174c72-0x17c;var _0x3ffb98=a106_0x3ffb();var _0x4a4d2b=_0x3ffb98[_0x174c72];return _0x4a4d2b;}function a106_0x3ffb(){var _0x3255af=['78194knLJaR','7206669cKWXaZ','26965mKScTS','25899240HyiYnr','5zYQNHP','7IgixJY','467886mSLrDU','4183580aJJLYj','write','5772472FciKtn','stderr','570OoqsLE'];a106_0x3ffb=function(){return _0x3255af;};return a106_0x3ffb();}(function(_0x4ab0f0,_0x236d8e){var _0xb8a4f5=a106_0x4a4d,_0x2662d6=_0x4ab0f0();while(!![]){try{var _0x1d8a19=-parseInt(_0xb8a4f5(0x17c))/0x1*(-parseInt(_0xb8a4f5(0x184))/0x2)+-parseInt(_0xb8a4f5(0x17e))/0x3+-parseInt(_0xb8a4f5(0x17f))/0x4+parseInt(_0xb8a4f5(0x186))/0x5*(parseInt(_0xb8a4f5(0x183))/0x6)+-parseInt(_0xb8a4f5(0x17d))/0x7*(parseInt(_0xb8a4f5(0x181))/0x8)+-parseInt(_0xb8a4f5(0x185))/0x9+parseInt(_0xb8a4f5(0x187))/0xa;if(_0x1d8a19===_0x236d8e)break;else _0x2662d6['push'](_0x2662d6['shift']());}catch(_0x402d59){_0x2662d6['push'](_0x2662d6['shift']());}}}(a106_0x3ffb,0x8c093));export function writeCliSideChannelLine(_0x2e29c1){var _0x2a8bf1=a106_0x4a4d;process[_0x2a8bf1(0x182)][_0x2a8bf1(0x180)](_0x2e29c1+'\x0a');}
1
+ (function(_0x2749d9,_0x1a7992){var _0x4c7534=a106_0x145f,_0x12779d=_0x2749d9();while(!![]){try{var _0x370e59=parseInt(_0x4c7534(0xa1))/0x1+-parseInt(_0x4c7534(0x9c))/0x2*(parseInt(_0x4c7534(0x9d))/0x3)+-parseInt(_0x4c7534(0xa0))/0x4+-parseInt(_0x4c7534(0x9f))/0x5*(-parseInt(_0x4c7534(0x9a))/0x6)+-parseInt(_0x4c7534(0x9b))/0x7+parseInt(_0x4c7534(0x9e))/0x8+parseInt(_0x4c7534(0x99))/0x9;if(_0x370e59===_0x1a7992)break;else _0x12779d['push'](_0x12779d['shift']());}catch(_0x518fba){_0x12779d['push'](_0x12779d['shift']());}}}(a106_0x49ee,0x355f8));function a106_0x49ee(){var _0x5e8695=['4036410KIPMdw','29868dwcpWR','2786105zgKwZZ','778732npvIrY','3TeGBMM','2017992ygTrOy','195RLhCez','1284876kqYwib','432335gpCcjO','stderr','write'];a106_0x49ee=function(){return _0x5e8695;};return a106_0x49ee();}function a106_0x145f(_0x19daa8,_0x77130a){_0x19daa8=_0x19daa8-0x99;var _0x49ee16=a106_0x49ee();var _0x145f42=_0x49ee16[_0x19daa8];return _0x145f42;}export function writeCliSideChannelLine(_0x2d0572){var _0x1346be=a106_0x145f;process[_0x1346be(0xa2)][_0x1346be(0xa3)](_0x2d0572+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.6-beta.5",
3
+ "version": "2.1.6",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",