@lovrabet/lovrabet-cli 2.1.6-beta.4 → 2.1.6-beta.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(_0x366d26,_0x1edfa4){const _0x46f674=a91_0x1a9c,_0x5ae2f4=_0x366d26();while(!![]){try{const _0x310996=parseInt(_0x46f674(0x125))/0x1*(-parseInt(_0x46f674(0x13e))/0x2)+parseInt(_0x46f674(0x143))/0x3*(-parseInt(_0x46f674(0x14a))/0x4)+parseInt(_0x46f674(0x123))/0x5+parseInt(_0x46f674(0x134))/0x6*(-parseInt(_0x46f674(0x135))/0x7)+-parseInt(_0x46f674(0x14c))/0x8+-parseInt(_0x46f674(0x137))/0x9*(parseInt(_0x46f674(0x151))/0xa)+parseInt(_0x46f674(0x12a))/0xb*(parseInt(_0x46f674(0x127))/0xc);if(_0x310996===_0x1edfa4)break;else _0x5ae2f4['push'](_0x5ae2f4['shift']());}catch(_0x52e868){_0x5ae2f4['push'](_0x5ae2f4['shift']());}}}(a91_0xfbc2,0x334fb));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';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x49eb09,_0x441051,_0x36ea61){const _0x3ca4bc=a91_0x1a9c,_0x47cf25=requireSkillCode(_0x49eb09),_0x32670d=requirePackageBytes(_0x47cf25,_0x36ea61[_0x3ca4bc(0x13c)]),_0x44fc2d=extractDownloadedPackage(_0x32670d),_0x4a7e0a=_0x44fc2d[_0x3ca4bc(0x152)](_0x5d4623=>_0x5d4623[_0x3ca4bc(0x14b)]===SKILL_FILE);if(!_0x4a7e0a)throw CliErrors[_0x3ca4bc(0x138)](_0x3ca4bc(0x12b)+SKILL_FILE+':\x20'+_0x47cf25);const _0xdc17f3=withMaterializedSkillFrontmatter(_0x44fc2d,_0x49eb09,_0x47cf25),_0x26018b=_0xdc17f3['find'](_0x5ec2e3=>_0x5ec2e3[_0x3ca4bc(0x14b)]===SKILL_FILE),_0x59c7a9=fileText(_0x26018b),_0x1b6e55=getRuntimeSkillDir(_0x36ea61['env'],_0x36ea61[_0x3ca4bc(0x14d)],_0x36ea61[_0x3ca4bc(0x12c)],_0x441051,_0x47cf25,_0x36ea61[_0x3ca4bc(0x13a)]),_0x167970=resolve(_0x1b6e55,SKILL_FILE),_0x3938e4=resolve(_0x1b6e55,METADATA_FILE),_0x8e27da=contentHash(_0x59c7a9),_0x3a2aa5=readMetadataIfPresent(_0x3938e4)?.[_0x3ca4bc(0x14f)];ensurePulledFilesCanBeOverwritten(_0x1b6e55,_0x3938e4,_0xdc17f3,_0x36ea61[_0x3ca4bc(0x12e)]===!![]),mkdirSync(_0x1b6e55,{'recursive':!![],'mode':0x1c0});const _0x1fe6db=existsSync(_0x167970)?readFileSync(_0x167970,'utf8'):undefined;return materializeFiles(_0x1b6e55,_0xdc17f3),removeStaleManagedFiles(_0x1b6e55,_0x3a2aa5,_0xdc17f3),writeJsonAtomic(_0x3938e4,buildMetadata(_0x49eb09,_0x441051,_0x36ea61[_0x3ca4bc(0x12c)],_0x8e27da,_0x36ea61[_0x3ca4bc(0x141)],_0xdc17f3,_0x32670d)),{'skill':_0x49eb09,'scope':_0x441051,'dir':_0x1b6e55,'skillMdPath':_0x167970,'metadataPath':_0x3938e4,'contentHash':_0x8e27da,'changed':_0x1fe6db!==_0x59c7a9};}function withMaterializedSkillFrontmatter(_0x30032b,_0x5ca9ac,_0x53348a){const _0x38e6e5=a91_0x1a9c;return normalizeLocalFiles(_0x30032b)[_0x38e6e5(0x145)](_0x2ca2f4=>{const _0x2db6da=_0x38e6e5,_0x5728c8=fileText(_0x2ca2f4);if(_0x2ca2f4[_0x2db6da(0x14b)]!==SKILL_FILE||hasYamlFrontmatter(_0x5728c8))return _0x2ca2f4;return{'path':_0x2ca2f4['path'],'content':prependSkillFrontmatter(_0x5728c8,{'name':_0x53348a,'description':_0x5ca9ac[_0x2db6da(0x129)]?.[_0x2db6da(0x147)]()||_0x5ca9ac[_0x2db6da(0x139)]?.[_0x2db6da(0x147)]()||_0x53348a})};});}function hasYamlFrontmatter(_0x958f87){const _0x25cc85=a91_0x1a9c;return/^\uFEFF?---\s*\r?\n/[_0x25cc85(0x144)](_0x958f87);}function a91_0x1a9c(_0x53c7ea,_0x1fdb76){_0x53c7ea=_0x53c7ea-0x123;const _0xfbc20e=a91_0xfbc2();let _0x1a9c3e=_0xfbc20e[_0x53c7ea];return _0x1a9c3e;}function prependSkillFrontmatter(_0x1c430e,_0x1c3ff0){const _0xdcf6c9=a91_0x1a9c,_0x26df65=_0x1c430e['replace'](/^\uFEFF/,'');return['---',_0xdcf6c9(0x131)+yamlString(_0x1c3ff0[_0xdcf6c9(0x128)]),_0xdcf6c9(0x126)+yamlString(_0x1c3ff0[_0xdcf6c9(0x129)]),_0xdcf6c9(0x146),'',_0x26df65][_0xdcf6c9(0x136)]('\x0a');}function a91_0xfbc2(){const _0x51bee2=['skillName','paths','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','packageBytes','contentHash','2QJglzj','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','replace','pulledAt','isFile','435801pHLQII','test','map','---','trim','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','keys','8NGcYCc','path','3334248LRdyAd','accessKey','length','fileHashes','has','60QZjCSZ','find','1696115mkwTmL','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','55511qVaGvO','description:\x20','696TWEaVb','name','description','136301UdeWIi','Runtime\x20Skill\x20package\x20is\x20missing\x20','appCode','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','force','stringify','.\x20Changed\x20file:\x20','name:\x20','entries','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','12AofipG','93296EvKIRo','join','87372mHKCfo','validation'];a91_0xfbc2=function(){return _0x51bee2;};return a91_0xfbc2();}function yamlString(_0x5ba3a4){const _0x18e22c=a91_0x1a9c;return JSON[_0x18e22c(0x12f)](_0x5ba3a4[_0x18e22c(0x140)](/\r/g,'')['trim']());}function ensurePulledFilesCanBeOverwritten(_0x421f4a,_0x6de2bb,_0x13d208,_0x33e2dc){const _0x3505ed=a91_0x1a9c;if(_0x33e2dc||!existsSync(_0x6de2bb))return;const _0x4a3a6e=readMetadataIfPresent(_0x6de2bb);if(!_0x4a3a6e)return;const _0x13a958=_0x4a3a6e[_0x3505ed(0x14f)]&&Object[_0x3505ed(0x149)](_0x4a3a6e['fileHashes'])[_0x3505ed(0x14e)]>0x0?_0x4a3a6e[_0x3505ed(0x14f)]:undefined;if(_0x13a958)for(const [_0x57d97d,_0x2d979e]of Object[_0x3505ed(0x132)](_0x13a958)){const _0x35e8a8=resolveManagedFilePath(_0x421f4a,_0x57d97d);if(!existsSync(_0x35e8a8))throw CliErrors[_0x3505ed(0x138)](_0x3505ed(0x13f)+_0x421f4a,'Managed\x20file\x20was\x20removed\x20locally:\x20'+_0x57d97d);const _0x2e2dd3=lstatSync(_0x35e8a8);if(!_0x2e2dd3[_0x3505ed(0x142)]())throw CliErrors[_0x3505ed(0x138)](_0x3505ed(0x13f)+_0x421f4a,_0x3505ed(0x133)+_0x57d97d);const _0x93d187=bufferSha256(readFileSync(_0x35e8a8));if(_0x93d187!==_0x2d979e)throw CliErrors[_0x3505ed(0x138)](_0x3505ed(0x13f)+_0x421f4a+_0x3505ed(0x130)+_0x57d97d,_0x3505ed(0x12d)+_0x57d97d);}else{const _0x13a20d=resolve(_0x421f4a,SKILL_FILE);if(existsSync(_0x13a20d)&&_0x4a3a6e[_0x3505ed(0x13d)]){const _0x3e7e09=contentHash(readFileSync(_0x13a20d,'utf8'));if(_0x3e7e09!==_0x4a3a6e[_0x3505ed(0x13d)])throw CliErrors[_0x3505ed(0x138)](_0x3505ed(0x148)+_0x13a20d,_0x3505ed(0x13b));}}for(const _0x2a093e of normalizeLocalFiles(_0x13d208)){if(_0x13a958?.[_0x2a093e['path']])continue;if(!_0x13a958&&_0x2a093e[_0x3505ed(0x14b)]===SKILL_FILE)continue;const _0x3cdca9=resolveManagedFilePath(_0x421f4a,_0x2a093e[_0x3505ed(0x14b)]);if(!existsSync(_0x3cdca9))continue;const _0x401a67=lstatSync(_0x3cdca9);if(!_0x401a67[_0x3505ed(0x142)]())throw CliErrors[_0x3505ed(0x138)](_0x3505ed(0x13f)+_0x421f4a,'Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20'+_0x2a093e[_0x3505ed(0x14b)]);const _0x5de237=bufferSha256(readFileSync(_0x3cdca9));if(_0x5de237!==fileHash(_0x2a093e))throw CliErrors[_0x3505ed(0x138)](_0x3505ed(0x13f)+_0x421f4a,_0x3505ed(0x124)+_0x2a093e[_0x3505ed(0x14b)]);}}function materializeFiles(_0x31194e,_0x189840){const _0x592912=a91_0x1a9c;for(const _0x4837d1 of normalizeLocalFiles(_0x189840)){const _0x159bcb=resolveManagedFilePath(_0x31194e,_0x4837d1[_0x592912(0x14b)]);mkdirSync(dirname(_0x159bcb),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x159bcb,fileContent(_0x4837d1),0x180);}}function removeStaleManagedFiles(_0x5680c9,_0xee3361,_0x12f19c){const _0x5bde14=a91_0x1a9c;if(!_0xee3361)return;const _0x53d581=new Set(normalizeLocalFiles(_0x12f19c)[_0x5bde14(0x145)](_0xd57449=>_0xd57449['path']));for(const _0x5bf505 of Object[_0x5bde14(0x149)](_0xee3361)){if(_0x53d581[_0x5bde14(0x150)](_0x5bf505))continue;const _0x3caafe=resolveManagedFilePath(_0x5680c9,_0x5bf505);existsSync(_0x3caafe)&&lstatSync(_0x3caafe)[_0x5bde14(0x142)]()&&rmSync(_0x3caafe,{'force':!![]});}}
1
+ (function(_0x1efe3c,_0xa85ea9){const _0x1cd817=a91_0x1ff4,_0x5e8948=_0x1efe3c();while(!![]){try{const _0x50eaed=-parseInt(_0x1cd817(0xed))/0x1*(parseInt(_0x1cd817(0x101))/0x2)+-parseInt(_0x1cd817(0xf7))/0x3+parseInt(_0x1cd817(0x111))/0x4+-parseInt(_0x1cd817(0x10f))/0x5*(-parseInt(_0x1cd817(0xff))/0x6)+-parseInt(_0x1cd817(0xf6))/0x7+parseInt(_0x1cd817(0xf3))/0x8+-parseInt(_0x1cd817(0x10e))/0x9*(parseInt(_0x1cd817(0xe9))/0xa);if(_0x50eaed===_0xa85ea9)break;else _0x5e8948['push'](_0x5e8948['shift']());}catch(_0x3b8818){_0x5e8948['push'](_0x5e8948['shift']());}}}(a91_0x55a7,0x88bb4));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';function a91_0x1ff4(_0x174e9c,_0x4f64ec){_0x174e9c=_0x174e9c-0xe8;const _0x55a70b=a91_0x55a7();let _0x1ff48e=_0x55a70b[_0x174e9c];return _0x1ff48e;}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';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x52e1fa,_0x213df0,_0x3abe54){const _0x5805b4=a91_0x1ff4,_0x4ff615=requireSkillCode(_0x52e1fa),_0x2da101=requirePackageBytes(_0x4ff615,_0x3abe54[_0x5805b4(0xfa)]),_0x8dacb2=extractDownloadedPackage(_0x2da101),_0x1a7982=_0x8dacb2[_0x5805b4(0x103)](_0x2b5830=>_0x2b5830[_0x5805b4(0x100)]===SKILL_FILE);if(!_0x1a7982)throw CliErrors[_0x5805b4(0x10b)](_0x5805b4(0x105)+SKILL_FILE+':\x20'+_0x4ff615);const _0x9c0320=withMaterializedSkillFrontmatter(_0x8dacb2,_0x52e1fa,_0x4ff615),_0x57e08b=_0x9c0320['find'](_0x54ee7c=>_0x54ee7c[_0x5805b4(0x100)]===SKILL_FILE),_0xb76174=fileText(_0x57e08b),_0x4aff9d=getRuntimeSkillDir(_0x3abe54[_0x5805b4(0xfb)],_0x3abe54['accessKey'],_0x3abe54['appCode'],_0x213df0,_0x4ff615,_0x3abe54[_0x5805b4(0x10c)]),_0x411768=resolve(_0x4aff9d,SKILL_FILE),_0x2b33e5=resolve(_0x4aff9d,METADATA_FILE),_0x598019=contentHash(_0xb76174),_0x18d419=readMetadataIfPresent(_0x2b33e5)?.[_0x5805b4(0x106)];ensurePulledFilesCanBeOverwritten(_0x4aff9d,_0x2b33e5,_0x9c0320,_0x3abe54[_0x5805b4(0x10a)]===!![]),mkdirSync(_0x4aff9d,{'recursive':!![],'mode':0x1c0});const _0x7fca67=existsSync(_0x411768)?readFileSync(_0x411768,_0x5805b4(0x104)):undefined;return materializeFiles(_0x4aff9d,_0x9c0320),removeStaleManagedFiles(_0x4aff9d,_0x18d419,_0x9c0320),writeJsonAtomic(_0x2b33e5,buildMetadata(_0x52e1fa,_0x213df0,_0x3abe54[_0x5805b4(0xf4)],_0x598019,_0x3abe54[_0x5805b4(0xf2)],_0x9c0320,_0x2da101)),{'skill':_0x52e1fa,'scope':_0x213df0,'dir':_0x4aff9d,'skillMdPath':_0x411768,'metadataPath':_0x2b33e5,'contentHash':_0x598019,'changed':_0x7fca67!==_0xb76174};}function a91_0x55a7(){const _0x2b8318=['env','entries','length','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','6ewgHpH','path','774826ZApdwh','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','find','utf8','Runtime\x20Skill\x20package\x20is\x20missing\x20','fileHashes','skillName','has','trim','force','validation','paths','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','29493rWrPLx','4784245XrBKbX','description','2932368CHvuWG','stringify','---','340XlFKYn','description:\x20','map','contentHash','1PnEUog','keys','test','isFile','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','pulledAt','7519064QwFXbJ','appCode','name:\x20','4097478oxvkTy','2956761fNNssk','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','packageBytes'];a91_0x55a7=function(){return _0x2b8318;};return a91_0x55a7();}function withMaterializedSkillFrontmatter(_0x56053f,_0x5aaf69,_0x4d137b){return normalizeLocalFiles(_0x56053f)['map'](_0x2b0dcd=>{const _0x9f0d1a=a91_0x1ff4,_0x514bf8=fileText(_0x2b0dcd);if(_0x2b0dcd[_0x9f0d1a(0x100)]!==SKILL_FILE||hasYamlFrontmatter(_0x514bf8))return _0x2b0dcd;return{'path':_0x2b0dcd['path'],'content':prependSkillFrontmatter(_0x514bf8,{'name':_0x4d137b,'description':_0x5aaf69[_0x9f0d1a(0x110)]?.['trim']()||_0x5aaf69[_0x9f0d1a(0x107)]?.[_0x9f0d1a(0x109)]()||_0x4d137b})};});}function hasYamlFrontmatter(_0x5ca0b0){const _0xa718b=a91_0x1ff4;return/^\uFEFF?---\s*\r?\n/[_0xa718b(0xef)](_0x5ca0b0);}function prependSkillFrontmatter(_0xcdcee8,_0x509af3){const _0x13cb1d=a91_0x1ff4,_0x5e2e37=_0xcdcee8['replace'](/^\uFEFF/,'');return[_0x13cb1d(0xe8),_0x13cb1d(0xf5)+yamlString(_0x509af3['name']),_0x13cb1d(0xea)+yamlString(_0x509af3['description']),_0x13cb1d(0xe8),'',_0x5e2e37]['join']('\x0a');}function yamlString(_0x46587f){const _0x21eb36=a91_0x1ff4;return JSON[_0x21eb36(0x112)](_0x46587f['replace'](/\r/g,'')[_0x21eb36(0x109)]());}function ensurePulledFilesCanBeOverwritten(_0xeefee9,_0x2980a5,_0x4fe8a0,_0x100db3){const _0x3e8cbc=a91_0x1ff4;if(_0x100db3||!existsSync(_0x2980a5))return;const _0x129b7d=readMetadataIfPresent(_0x2980a5);if(!_0x129b7d)return;const _0x1b09bb=_0x129b7d['fileHashes']&&Object[_0x3e8cbc(0xee)](_0x129b7d[_0x3e8cbc(0x106)])[_0x3e8cbc(0xfd)]>0x0?_0x129b7d[_0x3e8cbc(0x106)]:undefined;if(_0x1b09bb)for(const [_0x4fdf13,_0x2462f7]of Object[_0x3e8cbc(0xfc)](_0x1b09bb)){const _0x37634c=resolveManagedFilePath(_0xeefee9,_0x4fdf13);if(!existsSync(_0x37634c))throw CliErrors['validation'](_0x3e8cbc(0xf1)+_0xeefee9,_0x3e8cbc(0xf9)+_0x4fdf13);const _0x3c17bc=lstatSync(_0x37634c);if(!_0x3c17bc[_0x3e8cbc(0xf0)]())throw CliErrors[_0x3e8cbc(0x10b)](_0x3e8cbc(0xf1)+_0xeefee9,_0x3e8cbc(0x10d)+_0x4fdf13);const _0x3e57c1=bufferSha256(readFileSync(_0x37634c));if(_0x3e57c1!==_0x2462f7)throw CliErrors[_0x3e8cbc(0x10b)](_0x3e8cbc(0xf1)+_0xeefee9+'.\x20Changed\x20file:\x20'+_0x4fdf13,_0x3e8cbc(0xfe)+_0x4fdf13);}else{const _0x6fbf74=resolve(_0xeefee9,SKILL_FILE);if(existsSync(_0x6fbf74)&&_0x129b7d[_0x3e8cbc(0xec)]){const _0x4e335b=contentHash(readFileSync(_0x6fbf74,_0x3e8cbc(0x104)));if(_0x4e335b!==_0x129b7d[_0x3e8cbc(0xec)])throw CliErrors[_0x3e8cbc(0x10b)]('Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20'+_0x6fbf74,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.');}}for(const _0x48a883 of normalizeLocalFiles(_0x4fe8a0)){if(_0x1b09bb?.[_0x48a883['path']])continue;if(!_0x1b09bb&&_0x48a883[_0x3e8cbc(0x100)]===SKILL_FILE)continue;const _0x6454f5=resolveManagedFilePath(_0xeefee9,_0x48a883[_0x3e8cbc(0x100)]);if(!existsSync(_0x6454f5))continue;const _0x1fa4e4=lstatSync(_0x6454f5);if(!_0x1fa4e4[_0x3e8cbc(0xf0)]())throw CliErrors[_0x3e8cbc(0x10b)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0xeefee9,_0x3e8cbc(0xf8)+_0x48a883[_0x3e8cbc(0x100)]);const _0x5b596f=bufferSha256(readFileSync(_0x6454f5));if(_0x5b596f!==fileHash(_0x48a883))throw CliErrors[_0x3e8cbc(0x10b)](_0x3e8cbc(0xf1)+_0xeefee9,_0x3e8cbc(0x102)+_0x48a883[_0x3e8cbc(0x100)]);}}function materializeFiles(_0x32216d,_0x52ef4b){const _0x449efe=a91_0x1ff4;for(const _0x258834 of normalizeLocalFiles(_0x52ef4b)){const _0x53d375=resolveManagedFilePath(_0x32216d,_0x258834[_0x449efe(0x100)]);mkdirSync(dirname(_0x53d375),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x53d375,fileContent(_0x258834),0x180);}}function removeStaleManagedFiles(_0x197c04,_0x24c4c1,_0x37a12c){const _0x3968c9=a91_0x1ff4;if(!_0x24c4c1)return;const _0x754594=new Set(normalizeLocalFiles(_0x37a12c)[_0x3968c9(0xeb)](_0x399b4f=>_0x399b4f[_0x3968c9(0x100)]));for(const _0x1806ab of Object[_0x3968c9(0xee)](_0x24c4c1)){if(_0x754594[_0x3968c9(0x108)](_0x1806ab))continue;const _0x30ed40=resolveManagedFilePath(_0x197c04,_0x1806ab);existsSync(_0x30ed40)&&lstatSync(_0x30ed40)[_0x3968c9(0xf0)]()&&rmSync(_0x30ed40,{'force':!![]});}}
@@ -1 +1 @@
1
- (function(_0xe65bda,_0x5ce66f){const _0x473fb8=a92_0x467c,_0x37427f=_0xe65bda();while(!![]){try{const _0x115aaa=-parseInt(_0x473fb8(0x1b5))/0x1+parseInt(_0x473fb8(0x1bc))/0x2+parseInt(_0x473fb8(0x1b1))/0x3*(parseInt(_0x473fb8(0x1ba))/0x4)+-parseInt(_0x473fb8(0x1cb))/0x5*(parseInt(_0x473fb8(0x1d1))/0x6)+-parseInt(_0x473fb8(0x1c9))/0x7+parseInt(_0x473fb8(0x1cd))/0x8*(-parseInt(_0x473fb8(0x1ad))/0x9)+parseInt(_0x473fb8(0x1be))/0xa;if(_0x115aaa===_0x5ce66f)break;else _0x37427f['push'](_0x37427f['shift']());}catch(_0x347954){_0x37427f['push'](_0x37427f['shift']());}}}(a92_0x8807,0x83fdf));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';function a92_0x467c(_0x4af3ab,_0x186a99){_0x4af3ab=_0x4af3ab-0x1ad;const _0x8807a8=a92_0x8807();let _0x467c78=_0x8807a8[_0x4af3ab];return _0x467c78;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x45e297,_0x44fe9c,_0x1649db,_0x42176c,_0x3ab891,_0x5ccf6e,_0x3df28c){const _0x48cf31=a92_0x467c,_0x12ec56=_0x5ccf6e?normalizeLocalFiles(_0x5ccf6e):[],_0x39b134=!_0x3df28c&&_0x12ec56[_0x48cf31(0x1cf)]>0x0?buildSkillPackage(_0x12ec56):undefined,_0x596b36=_0x3df28c?bufferSha256(_0x3df28c):_0x39b134?.[_0x48cf31(0x1bd)][_0x48cf31(0x1ce)],_0xc9c187=_0x3df28c?.['length']??_0x39b134?.[_0x48cf31(0x1bd)][_0x48cf31(0x1bb)],_0x4dc5e2=_0x12ec56[_0x48cf31(0x1cf)]>0x0?Object[_0x48cf31(0x1c3)](_0x12ec56[_0x48cf31(0x1c4)](_0x174f55=>[_0x174f55['path'],fileHash(_0x174f55)])):undefined;return{'schemaVersion':_0x12ec56['length']>0x0?0x2:0x1,'id':_0x45e297['id'],'appCode':_0x1649db,'skillCode':requireSkillCode(_0x45e297),'skillName':_0x45e297[_0x48cf31(0x1cc)],'description':_0x45e297[_0x48cf31(0x1c2)],'scope':_0x44fe9c,'readonly':_0x44fe9c!==_0x48cf31(0x1c7)||_0x45e297[_0x48cf31(0x1bf)]===!![],'tenantCode':_0x45e297['tenantCode'],'userId':_0x45e297[_0x48cf31(0x1c6)],'version':_0x45e297['version'],'status':_0x45e297[_0x48cf31(0x1b8)],'tags':Array[_0x48cf31(0x1ca)](_0x45e297[_0x48cf31(0x1b7)])?_0x45e297[_0x48cf31(0x1b7)]:[],'hasUpstreamUpdate':_0x45e297[_0x48cf31(0x1af)],'forkedFromSkillId':_0x45e297[_0x48cf31(0x1ae)],'forkedFromVersion':_0x45e297['forkedFromVersion'],'sourceSessionId':_0x45e297[_0x48cf31(0x1b0)],'contentHash':_0x42176c,'fileHashes':_0x4dc5e2,'treeHash':_0x12ec56[_0x48cf31(0x1cf)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x12ec56)):undefined,'ossPath':remoteManifestOssPath(_0x45e297[_0x48cf31(0x1c1)]),'zipSha256':_0x596b36,'zipSize':_0xc9c187,'files':_0x12ec56[_0x48cf31(0x1cf)]>0x0?_0x12ec56[_0x48cf31(0x1c4)](_0x2d3d07=>({'path':_0x2d3d07[_0x48cf31(0x1b9)],'hash':fileHash(_0x2d3d07),'size':fileContent(_0x2d3d07)[_0x48cf31(0x1cf)]})):undefined,'pulledAt':_0x3ab891??new Date()['toISOString']()};}export function requireSkillCode(_0x589c62){const _0x4d0b23=a92_0x467c,_0x53b3db=_0x589c62['skillCode']?.[_0x4d0b23(0x1c8)]();if(!_0x53b3db)throw CliErrors[_0x4d0b23(0x1c0)](_0x4d0b23(0x1c5));return _0x53b3db;}function a92_0x8807(){const _0x1f9e5f=['8290qvyihn','skillName','397272YRqoqb','zipSha256','length','object','336JNZybS','63DCZASY','forkedFromSkillId','hasUpstreamUpdate','sourceSessionId','1907031dkgRmD','parse','utf8','ossPath','235904JOnXQp','Invalid\x20','tags','status','path','4KyEVhq','zipSize','2130790tcNGzD','manifest','5039150hKrSYb','readonly','validation','files','description','fromEntries','map','Runtime\x20Skill\x20is\x20missing\x20skillCode.','userId','personal','trim','6915881xbtApa','isArray'];a92_0x8807=function(){return _0x1f9e5f;};return a92_0x8807();}export function readMetadataIfPresent(_0x2ac927){const _0x25f690=a92_0x467c;if(!existsSync(_0x2ac927))return undefined;try{const _0x5f242f=JSON[_0x25f690(0x1b2)](readFileSync(_0x2ac927,_0x25f690(0x1b3)));return _0x5f242f;}catch{throw CliErrors[_0x25f690(0x1c0)](_0x25f690(0x1b6)+METADATA_FILE+':\x20'+_0x2ac927);}}function remoteManifestOssPath(_0x25e1ce){const _0x557ad2=a92_0x467c;if(!_0x25e1ce||typeof _0x25e1ce!==_0x557ad2(0x1d0)||Array[_0x557ad2(0x1ca)](_0x25e1ce))return undefined;const _0x32c3df=_0x25e1ce[_0x557ad2(0x1b4)];return typeof _0x32c3df==='string'&&_0x32c3df[_0x557ad2(0x1c8)]()?_0x32c3df[_0x557ad2(0x1c8)]():undefined;}
1
+ (function(_0x2c60e8,_0x5d2127){const _0x46a3be=a92_0x4edf,_0x1d1dbb=_0x2c60e8();while(!![]){try{const _0x2aed55=-parseInt(_0x46a3be(0x1ce))/0x1+-parseInt(_0x46a3be(0x1c1))/0x2*(parseInt(_0x46a3be(0x1cf))/0x3)+parseInt(_0x46a3be(0x1d6))/0x4+parseInt(_0x46a3be(0x1bc))/0x5*(parseInt(_0x46a3be(0x1cb))/0x6)+parseInt(_0x46a3be(0x1c3))/0x7+-parseInt(_0x46a3be(0x1bd))/0x8*(-parseInt(_0x46a3be(0x1be))/0x9)+-parseInt(_0x46a3be(0x1c9))/0xa;if(_0x2aed55===_0x5d2127)break;else _0x1d1dbb['push'](_0x1d1dbb['shift']());}catch(_0x5e9dd7){_0x1d1dbb['push'](_0x1d1dbb['shift']());}}}(a92_0x15c7,0x8b12a));import{existsSync,readFileSync}from'node:fs';function a92_0x4edf(_0x32b21f,_0x1f95e6){_0x32b21f=_0x32b21f-0x1b7;const _0x15c74e=a92_0x15c7();let _0x4edf69=_0x15c74e[_0x32b21f];return _0x4edf69;}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';function a92_0x15c7(){const _0x476b67=['utf8','tags','tenantCode','string','parse','2244852QegtJq','description','fromEntries','path','skillName','Invalid\x20','forkedFromSkillId','map','Runtime\x20Skill\x20is\x20missing\x20skillCode.','object','9645rxiKpc','8flRpeJ','2601171aCdVpg','sourceSessionId','zipSha256','4RwMhcw','readonly','7170492QeadyX','manifest','files','status','length','personal','7545590LvwzTf','skillCode','1866uHPQxw','version','trim','59980ZnPvXB','1635489SwlEIW','isArray'];a92_0x15c7=function(){return _0x476b67;};return a92_0x15c7();}export function buildMetadata(_0x5ced74,_0x484be6,_0x2b5739,_0x384754,_0x23c995,_0x446bd2,_0xb2b125){const _0x115430=a92_0x4edf,_0x172517=_0x446bd2?normalizeLocalFiles(_0x446bd2):[],_0x2fc662=!_0xb2b125&&_0x172517['length']>0x0?buildSkillPackage(_0x172517):undefined,_0x232f92=_0xb2b125?bufferSha256(_0xb2b125):_0x2fc662?.[_0x115430(0x1c4)][_0x115430(0x1c0)],_0x2071ed=_0xb2b125?.['length']??_0x2fc662?.[_0x115430(0x1c4)]['zipSize'],_0xc2e151=_0x172517[_0x115430(0x1c7)]>0x0?Object[_0x115430(0x1d8)](_0x172517[_0x115430(0x1b9)](_0x1983db=>[_0x1983db[_0x115430(0x1d9)],fileHash(_0x1983db)])):undefined;return{'schemaVersion':_0x172517[_0x115430(0x1c7)]>0x0?0x2:0x1,'id':_0x5ced74['id'],'appCode':_0x2b5739,'skillCode':requireSkillCode(_0x5ced74),'skillName':_0x5ced74[_0x115430(0x1da)],'description':_0x5ced74[_0x115430(0x1d7)],'scope':_0x484be6,'readonly':_0x484be6!==_0x115430(0x1c8)||_0x5ced74[_0x115430(0x1c2)]===!![],'tenantCode':_0x5ced74[_0x115430(0x1d3)],'userId':_0x5ced74['userId'],'version':_0x5ced74[_0x115430(0x1cc)],'status':_0x5ced74[_0x115430(0x1c6)],'tags':Array[_0x115430(0x1d0)](_0x5ced74[_0x115430(0x1d2)])?_0x5ced74['tags']:[],'hasUpstreamUpdate':_0x5ced74['hasUpstreamUpdate'],'forkedFromSkillId':_0x5ced74[_0x115430(0x1b8)],'forkedFromVersion':_0x5ced74['forkedFromVersion'],'sourceSessionId':_0x5ced74[_0x115430(0x1bf)],'contentHash':_0x384754,'fileHashes':_0xc2e151,'treeHash':_0x172517[_0x115430(0x1c7)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x172517)):undefined,'ossPath':remoteManifestOssPath(_0x5ced74[_0x115430(0x1c5)]),'zipSha256':_0x232f92,'zipSize':_0x2071ed,'files':_0x172517[_0x115430(0x1c7)]>0x0?_0x172517['map'](_0x118889=>({'path':_0x118889[_0x115430(0x1d9)],'hash':fileHash(_0x118889),'size':fileContent(_0x118889)[_0x115430(0x1c7)]})):undefined,'pulledAt':_0x23c995??new Date()['toISOString']()};}export function requireSkillCode(_0x58c49c){const _0xcf426e=a92_0x4edf,_0x4c7549=_0x58c49c[_0xcf426e(0x1ca)]?.[_0xcf426e(0x1cd)]();if(!_0x4c7549)throw CliErrors['validation'](_0xcf426e(0x1ba));return _0x4c7549;}export function readMetadataIfPresent(_0x45913e){const _0x6d88c7=a92_0x4edf;if(!existsSync(_0x45913e))return undefined;try{const _0x3a8599=JSON[_0x6d88c7(0x1d5)](readFileSync(_0x45913e,_0x6d88c7(0x1d1)));return _0x3a8599;}catch{throw CliErrors['validation'](_0x6d88c7(0x1b7)+METADATA_FILE+':\x20'+_0x45913e);}}function remoteManifestOssPath(_0x258912){const _0x5d7e32=a92_0x4edf;if(!_0x258912||typeof _0x258912!==_0x5d7e32(0x1bb)||Array['isArray'](_0x258912))return undefined;const _0x167336=_0x258912['ossPath'];return typeof _0x167336===_0x5d7e32(0x1d4)&&_0x167336[_0x5d7e32(0x1cd)]()?_0x167336[_0x5d7e32(0x1cd)]():undefined;}
@@ -1 +1 @@
1
- (function(_0x2e06ff,_0x2bcc75){const _0x2a1139=a93_0x2f12,_0x3e60bf=_0x2e06ff();while(!![]){try{const _0x529546=parseInt(_0x2a1139(0x191))/0x1*(-parseInt(_0x2a1139(0x199))/0x2)+-parseInt(_0x2a1139(0x18f))/0x3*(parseInt(_0x2a1139(0x19e))/0x4)+parseInt(_0x2a1139(0x19c))/0x5+parseInt(_0x2a1139(0x19b))/0x6*(-parseInt(_0x2a1139(0x18d))/0x7)+parseInt(_0x2a1139(0x192))/0x8*(-parseInt(_0x2a1139(0x19f))/0x9)+-parseInt(_0x2a1139(0x190))/0xa+parseInt(_0x2a1139(0x195))/0xb;if(_0x529546===_0x2bcc75)break;else _0x3e60bf['push'](_0x3e60bf['shift']());}catch(_0x4fbe40){_0x3e60bf['push'](_0x3e60bf['shift']());}}}(a93_0x4e32,0xc6309));import{homedir}from'node:os';function a93_0x4e32(){const _0x3947b4=['homeDirName','3511756WFlBBA','9twuUnO','agentsSkillsDir','claudeSkillsDir','80255LeCEyd','validation','3dzZswX','15443600LrxcPT','145vRNvrk','13344KqmBMN','skillCode','Unsafe\x20','33817817Zjvoua','skills','CLAUDE_SKILL_ROOT','.claude','2872cTgXsD','includes','582ISwdJH','7408650VRsNfj'];a93_0x4e32=function(){return _0x3947b4;};return a93_0x4e32();}import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';function a93_0x2f12(_0x32688a,_0x2126a6){_0x32688a=_0x32688a-0x18b;const _0x4e3269=a93_0x4e32();let _0x2f124f=_0x4e3269[_0x32688a];return _0x2f124f;}import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x2eb934={}){const _0x147705=a93_0x2f12,_0x2c6bb9=_0x2eb934['homeDir']??homedir(),_0x4188d3=resolve(_0x2c6bb9,PRODUCT_CONFIG[_0x147705(0x19d)],'cache'),_0x5b76e0=trimmedEnv('SKILL_ROOT'),_0x2891af=trimmedEnv(_0x147705(0x197));return{'homeDir':_0x2c6bb9,'cacheRoot':_0x4188d3,'managedRoot':resolve(_0x2c6bb9,PRODUCT_CONFIG[_0x147705(0x19d)]),'agentsSkillsDir':_0x2eb934[_0x147705(0x18b)]??_0x5b76e0??resolve(_0x2c6bb9,'.agents','skills'),'claudeSkillsDir':_0x2eb934[_0x147705(0x18c)]??_0x2891af??resolve(_0x2c6bb9,_0x147705(0x198),_0x147705(0x196))};}export function getRuntimeSkillCacheRoot(_0x5a1242,_0x6f0dce,_0x1b93e4={}){const _0x2d78e0=a93_0x2f12,_0x597d1f=resolveSkillSyncPaths(_0x1b93e4);return resolve(_0x597d1f['cacheRoot'],_0x5a1242,fingerprintAccessKey(_0x6f0dce),_0x2d78e0(0x196));}export function getRuntimeSkillDir(_0x48cde4,_0x16aa57,_0x111a09,_0x1d170d,_0x1e77e2,_0x116ed5={}){const _0x5e0138=a93_0x2f12;return resolve(getRuntimeSkillCacheRoot(_0x48cde4,_0x16aa57,_0x116ed5),safePathSegment(_0x111a09,'appCode'),_0x1d170d,safePathSegment(_0x1e77e2,_0x5e0138(0x193)));}export function safePathSegment(_0x307e3d,_0x3f9b7c='path\x20segment'){const _0x5070ce=a93_0x2f12;if(!_0x307e3d||_0x307e3d[_0x5070ce(0x19a)]('/')||_0x307e3d[_0x5070ce(0x19a)]('\x5c')||_0x307e3d[_0x5070ce(0x19a)]('..'))throw CliErrors[_0x5070ce(0x18e)](_0x5070ce(0x194)+_0x3f9b7c+'\x20for\x20local\x20path:\x20'+_0x307e3d);return _0x307e3d;}function trimmedEnv(_0x11302b){const _0x3e9fe3=productEnv(_0x11302b)?.['trim']();return _0x3e9fe3?_0x3e9fe3:undefined;}
1
+ const a93_0x6460cb=a93_0x4161;(function(_0x2d93a9,_0x52d7db){const _0x4f58ee=a93_0x4161,_0x3f08e0=_0x2d93a9();while(!![]){try{const _0x2601b0=-parseInt(_0x4f58ee(0xdb))/0x1+parseInt(_0x4f58ee(0xd8))/0x2+parseInt(_0x4f58ee(0xe5))/0x3+-parseInt(_0x4f58ee(0xdc))/0x4*(-parseInt(_0x4f58ee(0xd9))/0x5)+-parseInt(_0x4f58ee(0xdd))/0x6+parseInt(_0x4f58ee(0xe1))/0x7*(-parseInt(_0x4f58ee(0xd3))/0x8)+parseInt(_0x4f58ee(0xe2))/0x9*(parseInt(_0x4f58ee(0xd0))/0xa);if(_0x2601b0===_0x52d7db)break;else _0x3f08e0['push'](_0x3f08e0['shift']());}catch(_0xf098a4){_0x3f08e0['push'](_0x3f08e0['shift']());}}}(a93_0x5812,0x650e3));function a93_0x5812(){const _0xd5d25f=['128312TCWfQP','1544qQAqgu','4697964MJamGP','appCode','\x20for\x20local\x20path:\x20','homeDir','1110613PlCQKU','2501055HkVyCi','includes','claudeSkillsDir','1091922yQxnwR','homeDirName','trim','40qHufdZ','agentsSkillsDir','validation','40VfjMuL','SKILL_ROOT','.agents','path\x20segment','cacheRoot','750172kIhZrC','3470MIIKCT','skills'];a93_0x5812=function(){return _0xd5d25f;};return a93_0x5812();}function a93_0x4161(_0x48f97d,_0x3a3837){_0x48f97d=_0x48f97d-0xd0;const _0x581274=a93_0x5812();let _0x41619a=_0x581274[_0x48f97d];return _0x41619a;}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';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x119d17={}){const _0x5b79db=a93_0x4161,_0xc5758f=_0x119d17[_0x5b79db(0xe0)]??homedir(),_0x40f075=resolve(_0xc5758f,PRODUCT_CONFIG['homeDirName'],'cache'),_0x450050=trimmedEnv(_0x5b79db(0xd4)),_0x4bf9ce=trimmedEnv('CLAUDE_SKILL_ROOT');return{'homeDir':_0xc5758f,'cacheRoot':_0x40f075,'managedRoot':resolve(_0xc5758f,PRODUCT_CONFIG[_0x5b79db(0xe6)]),'agentsSkillsDir':_0x119d17[_0x5b79db(0xd1)]??_0x450050??resolve(_0xc5758f,_0x5b79db(0xd5),_0x5b79db(0xda)),'claudeSkillsDir':_0x119d17[_0x5b79db(0xe4)]??_0x4bf9ce??resolve(_0xc5758f,'.claude',_0x5b79db(0xda))};}export function getRuntimeSkillCacheRoot(_0xd0d80e,_0x5e0731,_0x1271e1={}){const _0x271c7e=a93_0x4161,_0x59c80e=resolveSkillSyncPaths(_0x1271e1);return resolve(_0x59c80e[_0x271c7e(0xd7)],_0xd0d80e,fingerprintAccessKey(_0x5e0731),_0x271c7e(0xda));}export function getRuntimeSkillDir(_0x3b3e99,_0x32de42,_0x4632d4,_0x21a227,_0x5855b7,_0x522186={}){const _0x57f2d5=a93_0x4161;return resolve(getRuntimeSkillCacheRoot(_0x3b3e99,_0x32de42,_0x522186),safePathSegment(_0x4632d4,_0x57f2d5(0xde)),_0x21a227,safePathSegment(_0x5855b7,'skillCode'));}export function safePathSegment(_0x340f8a,_0x52e4ed=a93_0x6460cb(0xd6)){const _0x473189=a93_0x6460cb;if(!_0x340f8a||_0x340f8a['includes']('/')||_0x340f8a[_0x473189(0xe3)]('\x5c')||_0x340f8a['includes']('..'))throw CliErrors[_0x473189(0xd2)]('Unsafe\x20'+_0x52e4ed+_0x473189(0xdf)+_0x340f8a);return _0x340f8a;}function trimmedEnv(_0x32834c){const _0x56a13f=a93_0x6460cb,_0x9dc2a3=productEnv(_0x32834c)?.[_0x56a13f(0xe7)]();return _0x9dc2a3?_0x9dc2a3:undefined;}
@@ -1 +1 @@
1
- (function(_0x416d9f,_0x2ce5fd){const _0x3624ec=a94_0x34c8,_0x50e023=_0x416d9f();while(!![]){try{const _0x4df215=parseInt(_0x3624ec(0x92))/0x1*(parseInt(_0x3624ec(0x8e))/0x2)+-parseInt(_0x3624ec(0x87))/0x3*(parseInt(_0x3624ec(0x9f))/0x4)+-parseInt(_0x3624ec(0xa2))/0x5*(-parseInt(_0x3624ec(0x9d))/0x6)+-parseInt(_0x3624ec(0x82))/0x7*(parseInt(_0x3624ec(0x7b))/0x8)+-parseInt(_0x3624ec(0x8b))/0x9+parseInt(_0x3624ec(0x88))/0xa*(parseInt(_0x3624ec(0x7c))/0xb)+parseInt(_0x3624ec(0xa3))/0xc;if(_0x4df215===_0x2ce5fd)break;else _0x50e023['push'](_0x50e023['shift']());}catch(_0x3e964e){_0x50e023['push'](_0x50e023['shift']());}}}(a94_0x526a,0x33461));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';function a94_0x34c8(_0x492842,_0x412bfe){_0x492842=_0x492842-0x78;const _0x526a96=a94_0x526a();let _0x34c80f=_0x526a96[_0x492842];return _0x34c80f;}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(_0x5f17e9,_0x2291fd){const _0x2c7d2c=a94_0x34c8,_0x46629b=resolvePushDirectoryRoot(_0x5f17e9),_0x320e48=readMetadataIfPresent(resolve(_0x46629b,METADATA_FILE));if(_0x320e48?.['appCode']&&_0x320e48[_0x2c7d2c(0x80)]!==_0x2291fd)throw CliErrors[_0x2c7d2c(0x79)]('Skill\x20metadata\x20appCode\x20\x22'+_0x320e48[_0x2c7d2c(0x80)]+_0x2c7d2c(0x90)+_0x2291fd+'\x22.');const _0x27a51b=_0x320e48?.[_0x2c7d2c(0x9e)]?.[_0x2c7d2c(0x8c)]()||deriveSkillCodeFromDirectory(_0x46629b,_0x2291fd);if(!_0x27a51b)throw CliErrors[_0x2c7d2c(0x79)](_0x2c7d2c(0x81)+METADATA_FILE+_0x2c7d2c(0x83));return{'dir':_0x46629b,'skillCode':_0x27a51b,'metadata':_0x320e48};}export function readPushDirectory(_0x59257d,_0x20c53f){const _0x540f12=a94_0x34c8,_0x5a3bff=resolvePushDirectoryIdentity(_0x59257d,_0x20c53f),_0x33307f=_0x5a3bff['dir'],_0x55dba0=resolve(_0x33307f,SKILL_FILE);if(!existsSync(_0x55dba0)||!lstatSync(_0x55dba0)[_0x540f12(0xa1)]())throw CliErrors['validation'](_0x540f12(0x97)+SKILL_FILE+':\x20'+_0x55dba0);const _0x3715af=_0x5a3bff[_0x540f12(0x91)];if(_0x3715af?.[_0x540f12(0x85)]&&_0x3715af['scope']!==_0x540f12(0x8a))throw CliErrors[_0x540f12(0x79)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0x540f12(0x86)+_0x3715af[_0x540f12(0x85)]+'\x22.');const _0x1dad15=scanSkillDirectory(_0x33307f),_0x18b233=buildSkillPackage(_0x1dad15),_0x39e2da=readFileSync(_0x55dba0,_0x540f12(0x78)),_0x5e2268=_0x5a3bff[_0x540f12(0x9e)];return{'skillCode':_0x5e2268,'metadata':_0x3715af,'input':{'skillCode':_0x5e2268,'skillName':_0x3715af?.[_0x540f12(0x9b)],'description':_0x3715af?.[_0x540f12(0x99)],'content':_0x39e2da,'files':_0x18b233[_0x540f12(0x9c)],'packageBase64':_0x18b233[_0x540f12(0xa0)],'tags':_0x3715af?.['tags'],'version':_0x3715af?.['version'],'sourceSessionId':_0x3715af?.[_0x540f12(0x94)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x2fed6e,_0x551785,_0x5376c3,_0x20c6bc={}){const _0x151371=a94_0x34c8,_0x4afe98=resolvePushDirectoryRoot(_0x2fed6e),_0x128895=readMetadataIfPresent(resolve(_0x4afe98,METADATA_FILE)),_0x12acf4=requireRemoteScope(_0x551785),_0x729add=readLocalSkillContent(_0x4afe98),_0x18a807={..._0x551785,'appCode':_0x551785[_0x151371(0x80)]??_0x5376c3,'skillName':_0x551785['skillName']??_0x128895?.[_0x151371(0x9b)],'description':_0x551785['description']??_0x128895?.[_0x151371(0x99)],'tags':Array[_0x151371(0x96)](_0x551785[_0x151371(0x95)])?_0x551785['tags']:_0x128895?.[_0x151371(0x95)],'sourceSessionId':_0x551785[_0x151371(0x94)]??_0x128895?.[_0x151371(0x94)],'content':_0x551785['content']??_0x729add},_0x5e5767=buildMetadata(_0x18a807,_0x12acf4,_0x5376c3,contentHash(_0x729add),_0x20c6bc['refreshedAt']);writeJsonAtomic(resolve(_0x4afe98,METADATA_FILE),_0x5e5767);}export function recordPushedRuntimeSkill(_0x4d4dea,_0x3ad74a,_0x1c0aaf,_0x3bff4d={}){const _0xab19df=a94_0x34c8,_0x584f9a=resolvePushDirectoryRoot(_0x4d4dea),_0x30a116=scanSkillDirectory(_0x584f9a),_0x195836=_0x30a116[_0xab19df(0x8f)](_0xe99d9d=>_0xe99d9d[_0xab19df(0x93)]===SKILL_FILE),_0xd36450=_0x195836?fileText(_0x195836):'',_0x187883=tryNormalizePackageManifest(_0x3ad74a[_0xab19df(0x7f)]),_0x4965b3={..._0x3ad74a,'content':_0x3ad74a[_0xab19df(0x9a)]??_0xd36450,'files':_0x187883},_0x2b63f3=_0x187883?normalizeLocalFiles(_0x30a116)[_0xab19df(0x7e)](_0x134f14=>_0x187883[_0xab19df(0x7f)][_0xab19df(0x98)](_0x37a980=>_0x37a980[_0xab19df(0x93)]===_0x134f14[_0xab19df(0x93)])):undefined,_0x57f422=buildMetadata(_0x4965b3,_0x3bff4d[_0xab19df(0x85)]??'personal',_0x1c0aaf,contentHash(_0x4965b3['content']??''),_0x3bff4d[_0xab19df(0x7a)],_0x2b63f3);writeJsonAtomic(resolve(_0x584f9a,METADATA_FILE),_0x57f422);}export function deriveSkillCodeFromDirectory(_0x67e3e8,_0x17b1a0){const _0x5bcf5b=a94_0x34c8,_0x4b1039=basename(resolve(_0x67e3e8)),_0x2c4505=_0x17b1a0+'--';return _0x4b1039['startsWith'](_0x2c4505)?_0x4b1039[_0x5bcf5b(0xa5)](_0x2c4505[_0x5bcf5b(0x7d)]):_0x4b1039;}function resolvePushDirectoryRoot(_0x59851c){const _0x2be8b3=a94_0x34c8,_0x101af1=resolve(_0x59851c);if(!existsSync(_0x101af1))throw CliErrors[_0x2be8b3(0x79)]('Skill\x20directory\x20not\x20found:\x20'+_0x59851c);const _0x1fd63c=lstatSync(_0x101af1);if(_0x1fd63c[_0x2be8b3(0xa7)]())return _0x101af1;if(_0x1fd63c['isSymbolicLink']()){const _0x58bbed=realpathSync(_0x101af1);if(lstatSync(_0x58bbed)[_0x2be8b3(0xa7)]())return _0x58bbed;}throw CliErrors[_0x2be8b3(0x79)](_0x2be8b3(0x89)+_0x59851c);}function a94_0x526a(){const _0x120ac3=['760mOCmxN','Skill\x20directory\x20not\x20found:\x20','personal','2790855cYcJzN','trim','\x20has\x20unsupported\x20scope\x20\x22','14peFbxM','find','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','metadata','38632UeOITs','path','sourceSessionId','tags','isArray','Missing\x20','some','description','content','skillName','manifest','678tAmPcQ','skillCode','1353764RNYxpK','packageBase64','isFile','9295vgwPGU','6173640FpRzGo','unknown','slice','(unknown)','isDirectory','utf8','validation','pushedAt','16CwjaoE','36289imIBUU','length','filter','files','appCode','Unable\x20to\x20resolve\x20skillCode\x20from\x20','1354962eQQkUu','\x20or\x20directory\x20name.','Remote\x20Skill\x20','scope','\x20has\x20scope=\x22','3YlScNA'];a94_0x526a=function(){return _0x120ac3;};return a94_0x526a();}function requireRemoteScope(_0x28dc0e){const _0x43cc8c=a94_0x34c8;if(_0x28dc0e['scope']===_0x43cc8c(0x8a)||_0x28dc0e['scope']==='company'||_0x28dc0e['scope']==='builtin')return _0x28dc0e[_0x43cc8c(0x85)];throw CliErrors['validation'](_0x43cc8c(0x84)+(_0x28dc0e[_0x43cc8c(0x9e)]||_0x43cc8c(0xa6))+_0x43cc8c(0x8d)+(_0x28dc0e['scope']??_0x43cc8c(0xa4))+'\x22.');}function readLocalSkillContent(_0x3c9194){const _0x5a6ba7=a94_0x34c8,_0x39e632=resolve(_0x3c9194,SKILL_FILE);return existsSync(_0x39e632)&&lstatSync(_0x39e632)[_0x5a6ba7(0xa1)]()?readFileSync(_0x39e632,_0x5a6ba7(0x78)):'';}
1
+ (function(_0x2b688c,_0x142c63){const _0x21a345=a94_0xb93d,_0xd67947=_0x2b688c();while(!![]){try{const _0x26bb84=-parseInt(_0x21a345(0x165))/0x1*(-parseInt(_0x21a345(0x14c))/0x2)+parseInt(_0x21a345(0x15e))/0x3*(-parseInt(_0x21a345(0x15b))/0x4)+parseInt(_0x21a345(0x149))/0x5+parseInt(_0x21a345(0x158))/0x6*(parseInt(_0x21a345(0x16c))/0x7)+-parseInt(_0x21a345(0x15c))/0x8*(-parseInt(_0x21a345(0x142))/0x9)+parseInt(_0x21a345(0x15d))/0xa+-parseInt(_0x21a345(0x14f))/0xb*(parseInt(_0x21a345(0x13f))/0xc);if(_0x26bb84===_0x142c63)break;else _0xd67947['push'](_0xd67947['shift']());}catch(_0x1225b3){_0xd67947['push'](_0xd67947['shift']());}}}(a94_0x29cc,0x57d0f));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';function a94_0x29cc(){const _0x270a9c=['1523396rsBoXv','120WmbXae','3616530BdAKpP','3tTEnhL','refreshedAt','validation','dir','pushedAt','\x20has\x20unsupported\x20scope\x20\x22','metadata','11388iVXfDY','packageBase64','manifest','unknown','Missing\x20','find','appCode','763nxmxTM','isDirectory','utf8','4704BvYxXB','path','builtin','408762EuyYbc','(unknown)','isFile','\x20has\x20scope=\x22','files','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','isArray','3230890oPLzPi','trim','some','118sMUUdh','slice','content','51843iMGVDO','description','tags','sourceSessionId','scope','skillCode','startsWith','length','personal','12498XmekzQ','skillName','version'];a94_0x29cc=function(){return _0x270a9c;};return a94_0x29cc();}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(_0x4efc50,_0x3f353f){const _0x1a5bf1=a94_0xb93d,_0x22d54c=resolvePushDirectoryRoot(_0x4efc50),_0x5421b1=readMetadataIfPresent(resolve(_0x22d54c,METADATA_FILE));if(_0x5421b1?.['appCode']&&_0x5421b1[_0x1a5bf1(0x16b)]!==_0x3f353f)throw CliErrors[_0x1a5bf1(0x160)]('Skill\x20metadata\x20appCode\x20\x22'+_0x5421b1[_0x1a5bf1(0x16b)]+_0x1a5bf1(0x147)+_0x3f353f+'\x22.');const _0xc5bbea=_0x5421b1?.[_0x1a5bf1(0x154)]?.[_0x1a5bf1(0x14a)]()||deriveSkillCodeFromDirectory(_0x22d54c,_0x3f353f);if(!_0xc5bbea)throw CliErrors[_0x1a5bf1(0x160)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+METADATA_FILE+'\x20or\x20directory\x20name.');return{'dir':_0x22d54c,'skillCode':_0xc5bbea,'metadata':_0x5421b1};}function a94_0xb93d(_0x3e1d26,_0x1d1672){_0x3e1d26=_0x3e1d26-0x13e;const _0x29ccf1=a94_0x29cc();let _0xb93dc=_0x29ccf1[_0x3e1d26];return _0xb93dc;}export function readPushDirectory(_0x5a9006,_0x4119a6){const _0x34aa2b=a94_0xb93d,_0x417b05=resolvePushDirectoryIdentity(_0x5a9006,_0x4119a6),_0x2a32b7=_0x417b05[_0x34aa2b(0x161)],_0x2ceec0=resolve(_0x2a32b7,SKILL_FILE);if(!existsSync(_0x2ceec0)||!lstatSync(_0x2ceec0)['isFile']())throw CliErrors[_0x34aa2b(0x160)](_0x34aa2b(0x169)+SKILL_FILE+':\x20'+_0x2ceec0);const _0x340d7c=_0x417b05[_0x34aa2b(0x164)];if(_0x340d7c?.['scope']&&_0x340d7c['scope']!==_0x34aa2b(0x157))throw CliErrors[_0x34aa2b(0x160)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0x34aa2b(0x145)+_0x340d7c['scope']+'\x22.');const _0x5cd5c6=scanSkillDirectory(_0x2a32b7),_0x186c32=buildSkillPackage(_0x5cd5c6),_0x3771b8=readFileSync(_0x2ceec0,_0x34aa2b(0x13e)),_0x120b99=_0x417b05[_0x34aa2b(0x154)];return{'skillCode':_0x120b99,'metadata':_0x340d7c,'input':{'skillCode':_0x120b99,'skillName':_0x340d7c?.[_0x34aa2b(0x159)],'description':_0x340d7c?.[_0x34aa2b(0x150)],'content':_0x3771b8,'files':_0x186c32[_0x34aa2b(0x167)],'packageBase64':_0x186c32[_0x34aa2b(0x166)],'tags':_0x340d7c?.[_0x34aa2b(0x151)],'version':_0x340d7c?.[_0x34aa2b(0x15a)],'sourceSessionId':_0x340d7c?.[_0x34aa2b(0x152)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x4a0287,_0x5affea,_0x3c131b,_0xa270ff={}){const _0x33889a=a94_0xb93d,_0x327802=resolvePushDirectoryRoot(_0x4a0287),_0x47932f=readMetadataIfPresent(resolve(_0x327802,METADATA_FILE)),_0x4c5098=requireRemoteScope(_0x5affea),_0x544fd6=readLocalSkillContent(_0x327802),_0x26b872={..._0x5affea,'appCode':_0x5affea[_0x33889a(0x16b)]??_0x3c131b,'skillName':_0x5affea['skillName']??_0x47932f?.['skillName'],'description':_0x5affea[_0x33889a(0x150)]??_0x47932f?.[_0x33889a(0x150)],'tags':Array[_0x33889a(0x148)](_0x5affea[_0x33889a(0x151)])?_0x5affea[_0x33889a(0x151)]:_0x47932f?.['tags'],'sourceSessionId':_0x5affea['sourceSessionId']??_0x47932f?.['sourceSessionId'],'content':_0x5affea[_0x33889a(0x14e)]??_0x544fd6},_0x11e363=buildMetadata(_0x26b872,_0x4c5098,_0x3c131b,contentHash(_0x544fd6),_0xa270ff[_0x33889a(0x15f)]);writeJsonAtomic(resolve(_0x327802,METADATA_FILE),_0x11e363);}export function recordPushedRuntimeSkill(_0x3c78cd,_0x2be73a,_0x387ec6,_0x49405e={}){const _0x45dabc=a94_0xb93d,_0x5567de=resolvePushDirectoryRoot(_0x3c78cd),_0x35342d=scanSkillDirectory(_0x5567de),_0x449746=_0x35342d[_0x45dabc(0x16a)](_0x23f8e8=>_0x23f8e8[_0x45dabc(0x140)]===SKILL_FILE),_0x5bfc1f=_0x449746?fileText(_0x449746):'',_0x54804d=tryNormalizePackageManifest(_0x2be73a[_0x45dabc(0x146)]),_0x2aecfb={..._0x2be73a,'content':_0x2be73a[_0x45dabc(0x14e)]??_0x5bfc1f,'files':_0x54804d},_0x1d7987=_0x54804d?normalizeLocalFiles(_0x35342d)['filter'](_0x3206df=>_0x54804d[_0x45dabc(0x146)][_0x45dabc(0x14b)](_0x53bc28=>_0x53bc28[_0x45dabc(0x140)]===_0x3206df[_0x45dabc(0x140)])):undefined,_0x4552b2=buildMetadata(_0x2aecfb,_0x49405e[_0x45dabc(0x153)]??'personal',_0x387ec6,contentHash(_0x2aecfb[_0x45dabc(0x14e)]??''),_0x49405e[_0x45dabc(0x162)],_0x1d7987);writeJsonAtomic(resolve(_0x5567de,METADATA_FILE),_0x4552b2);}export function deriveSkillCodeFromDirectory(_0x3a0551,_0x5ead1c){const _0x5bbe24=a94_0xb93d,_0x27ed82=basename(resolve(_0x3a0551)),_0xbd71dd=_0x5ead1c+'--';return _0x27ed82[_0x5bbe24(0x155)](_0xbd71dd)?_0x27ed82[_0x5bbe24(0x14d)](_0xbd71dd[_0x5bbe24(0x156)]):_0x27ed82;}function resolvePushDirectoryRoot(_0x58aa70){const _0x17708e=a94_0xb93d,_0xe257af=resolve(_0x58aa70);if(!existsSync(_0xe257af))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x58aa70);const _0x278528=lstatSync(_0xe257af);if(_0x278528[_0x17708e(0x16d)]())return _0xe257af;if(_0x278528['isSymbolicLink']()){const _0x2aa393=realpathSync(_0xe257af);if(lstatSync(_0x2aa393)[_0x17708e(0x16d)]())return _0x2aa393;}throw CliErrors[_0x17708e(0x160)]('Skill\x20directory\x20not\x20found:\x20'+_0x58aa70);}function requireRemoteScope(_0x3ef940){const _0xc0c61b=a94_0xb93d;if(_0x3ef940[_0xc0c61b(0x153)]===_0xc0c61b(0x157)||_0x3ef940[_0xc0c61b(0x153)]==='company'||_0x3ef940['scope']===_0xc0c61b(0x141))return _0x3ef940[_0xc0c61b(0x153)];throw CliErrors[_0xc0c61b(0x160)]('Remote\x20Skill\x20'+(_0x3ef940['skillCode']||_0xc0c61b(0x143))+_0xc0c61b(0x163)+(_0x3ef940[_0xc0c61b(0x153)]??_0xc0c61b(0x168))+'\x22.');}function readLocalSkillContent(_0x59e625){const _0x11016a=a94_0xb93d,_0x36f8e0=resolve(_0x59e625,SKILL_FILE);return existsSync(_0x36f8e0)&&lstatSync(_0x36f8e0)[_0x11016a(0x144)]()?readFileSync(_0x36f8e0,_0x11016a(0x13e)):'';}
@@ -1 +1 @@
1
- (function(_0x2743b0,_0x37f7f0){const _0x36199a=a95_0x82a7,_0xd800ba=_0x2743b0();while(!![]){try{const _0x2b350f=-parseInt(_0x36199a(0x89))/0x1*(-parseInt(_0x36199a(0x87))/0x2)+parseInt(_0x36199a(0x7d))/0x3*(-parseInt(_0x36199a(0x8a))/0x4)+-parseInt(_0x36199a(0x7b))/0x5+-parseInt(_0x36199a(0x83))/0x6*(parseInt(_0x36199a(0x88))/0x7)+-parseInt(_0x36199a(0x85))/0x8+-parseInt(_0x36199a(0x7e))/0x9+-parseInt(_0x36199a(0x84))/0xa*(-parseInt(_0x36199a(0x7f))/0xb);if(_0x2b350f===_0x37f7f0)break;else _0xd800ba['push'](_0xd800ba['shift']());}catch(_0x175857){_0xd800ba['push'](_0xd800ba['shift']());}}}(a95_0x53c9,0x6dc9a));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x3413c2){const _0x173969=a95_0x82a7,_0x4c5e8d=_0x3413c2&&_0x3413c2[_0x173969(0x81)]>0x0?_0x3413c2:[_0x173969(0x80),'company',_0x173969(0x7c)],_0x4a5446=[];for(const _0x5be6d3 of _0x4c5e8d){if(!isRuntimeSkillScope(_0x5be6d3))throw CliErrors['validation'](_0x173969(0x86)+_0x5be6d3);!_0x4a5446['includes'](_0x5be6d3)&&_0x4a5446['push'](_0x5be6d3);}return _0x4a5446;}export function isRuntimeSkillScope(_0x501e9e){const _0xb002b8=a95_0x82a7;return _0x501e9e==='personal'||_0x501e9e===_0xb002b8(0x82)||_0x501e9e==='builtin';}function a95_0x82a7(_0x18ca15,_0x5822e2){_0x18ca15=_0x18ca15-0x7b;const _0x53c9de=a95_0x53c9();let _0x82a72b=_0x53c9de[_0x18ca15];return _0x82a72b;}function a95_0x53c9(){const _0x141b4c=['114BzYyKT','2862072AXJCbB','13574tfHyoc','personal','length','company','288858eFjWrQ','11160RwUhof','4546200BvoCdv','Unsupported\x20runtime\x20Skill\x20scope:\x20','254xusZZM','21QTmVZP','5573YzVVKa','62760rmWLCT','41465ZTfuwe','builtin'];a95_0x53c9=function(){return _0x141b4c;};return a95_0x53c9();}
1
+ (function(_0x6c2295,_0x23ab6b){const _0x373aca=a95_0x1895,_0x18a8c8=_0x6c2295();while(!![]){try{const _0x2a344b=-parseInt(_0x373aca(0x95))/0x1+-parseInt(_0x373aca(0x90))/0x2*(parseInt(_0x373aca(0x93))/0x3)+parseInt(_0x373aca(0x8d))/0x4*(-parseInt(_0x373aca(0x85))/0x5)+-parseInt(_0x373aca(0x89))/0x6*(-parseInt(_0x373aca(0x96))/0x7)+-parseInt(_0x373aca(0x8e))/0x8+-parseInt(_0x373aca(0x8a))/0x9*(-parseInt(_0x373aca(0x92))/0xa)+-parseInt(_0x373aca(0x84))/0xb*(-parseInt(_0x373aca(0x88))/0xc);if(_0x2a344b===_0x23ab6b)break;else _0x18a8c8['push'](_0x18a8c8['shift']());}catch(_0x4e6c95){_0x18a8c8['push'](_0x18a8c8['shift']());}}}(a95_0x1a4d,0x8b2b7));function a95_0x1a4d(){const _0x3a5ef1=['84jBnHsX','498dVBbcy','1651491XgBwWg','builtin','validation','5296BsNJuD','3492160zOWXIQ','company','445022RDndms','personal','30eNEMyY','6VasQPT','length','665639gELFVf','14147rByFTX','includes','2310748mVFOOu','270IwivIK','push','Unsupported\x20runtime\x20Skill\x20scope:\x20'];a95_0x1a4d=function(){return _0x3a5ef1;};return a95_0x1a4d();}function a95_0x1895(_0x3e5612,_0x38877f){_0x3e5612=_0x3e5612-0x84;const _0x1a4de3=a95_0x1a4d();let _0x189525=_0x1a4de3[_0x3e5612];return _0x189525;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x366b99){const _0x43ec32=a95_0x1895,_0x3b3b26=_0x366b99&&_0x366b99[_0x43ec32(0x94)]>0x0?_0x366b99:[_0x43ec32(0x91),_0x43ec32(0x8f),_0x43ec32(0x8b)],_0x4ed2f0=[];for(const _0x5679cb of _0x3b3b26){if(!isRuntimeSkillScope(_0x5679cb))throw CliErrors[_0x43ec32(0x8c)](_0x43ec32(0x87)+_0x5679cb);!_0x4ed2f0[_0x43ec32(0x97)](_0x5679cb)&&_0x4ed2f0[_0x43ec32(0x86)](_0x5679cb);}return _0x4ed2f0;}export function isRuntimeSkillScope(_0x3a64a0){const _0x51d3fb=a95_0x1895;return _0x3a64a0===_0x51d3fb(0x91)||_0x3a64a0===_0x51d3fb(0x8f)||_0x3a64a0==='builtin';}
@@ -1 +1 @@
1
- const a97_0x4c86f=a97_0x3fd7;(function(_0x7fe956,_0x383705){const _0x4c49f7=a97_0x3fd7,_0x2e137b=_0x7fe956();while(!![]){try{const _0x10a618=-parseInt(_0x4c49f7(0x12c))/0x1+parseInt(_0x4c49f7(0x12f))/0x2+-parseInt(_0x4c49f7(0x13d))/0x3+parseInt(_0x4c49f7(0x138))/0x4*(-parseInt(_0x4c49f7(0x144))/0x5)+-parseInt(_0x4c49f7(0x139))/0x6*(parseInt(_0x4c49f7(0x13c))/0x7)+-parseInt(_0x4c49f7(0x13f))/0x8+parseInt(_0x4c49f7(0x132))/0x9*(parseInt(_0x4c49f7(0x13e))/0xa);if(_0x10a618===_0x383705)break;else _0x2e137b['push'](_0x2e137b['shift']());}catch(_0x3031fa){_0x2e137b['push'](_0x2e137b['shift']());}}}(a97_0x2bf7,0x88a3d));import{unzipSync,zipSync}from'fflate';function a97_0x3fd7(_0x12cce2,_0x4ec163){_0x12cce2=_0x12cce2-0x12a;const _0x2bf712=a97_0x2bf7();let _0x3fd7d3=_0x2bf712[_0x12cce2];return _0x3fd7d3;}import{CliErrors}from'../../errors.js';import{MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_PACKAGE_BYTES,MAX_SKILL_TOTAL_BYTES}from'./constants.js';function a97_0x2bf7(){const _0x4c8d34=['1448913KedhWw','21003130YbUPgd','3178992IwOsDw','Runtime\x20Skill\x20package\x20exceeds\x20total\x20file\x20size\x20limit.','name','from','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','268390urmMsU','path','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','Skill\x20package\x20exceeds\x20size\x20limit.','540986huhWXK','map','validation','704224nNgmEO','validation_error','endsWith','9FbMLLy','1980-01-01T00:00:00.000Z','length','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','entries','Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.','4RJzYpG','498vJSQcU','object','originalSize','35231Wyaghl'];a97_0x2bf7=function(){return _0x4c8d34;};return a97_0x2bf7();}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a97_0x4c86f(0x133));export function createDeterministicZipPackage(_0x38aa1a){const _0x818f0e=a97_0x4c86f,_0x609368={};for(const _0x1a63e6 of normalizeLocalFiles(_0x38aa1a)){_0x609368[_0x1a63e6[_0x818f0e(0x145)]]=fileContent(_0x1a63e6);}const _0x42c1e9=Buffer[_0x818f0e(0x142)](zipSync(_0x609368,{'level':0x0,'mtime':ZIP_MTIME}));if(_0x42c1e9[_0x818f0e(0x134)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0x818f0e(0x12b));return _0x42c1e9;}export function parseZipPackage(_0x44e887){const _0x1250e3=a97_0x4c86f;if(_0x44e887[_0x1250e3(0x134)]<0x16)throw CliErrors[_0x1250e3(0x12e)](_0x1250e3(0x12a));if(_0x44e887[_0x1250e3(0x134)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x1250e3(0x12e)](_0x1250e3(0x135));let _0x365897=0x0,_0xa0a910=0x0,_0x57f1f8;try{_0x57f1f8=unzipSync(_0x44e887,{'filter'(_0x4f4e4b){const _0x1ea403=_0x1250e3,_0x55e4a1=normalizeSkillRelativePath(_0x4f4e4b[_0x1ea403(0x141)]);if(_0x55e4a1[_0x1ea403(0x131)]('/'))throw CliErrors[_0x1ea403(0x12e)](_0x1ea403(0x143)+_0x55e4a1);if(_0x4f4e4b[_0x1ea403(0x13b)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x1ea403(0x12e)]('Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20'+_0x55e4a1);_0x365897+=0x1;if(_0x365897>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x1ea403(0x12e)](_0x1ea403(0x137));_0xa0a910+=_0x4f4e4b[_0x1ea403(0x13b)];if(_0xa0a910>MAX_SKILL_TOTAL_BYTES)throw CliErrors['validation'](_0x1ea403(0x140));return!![];}});}catch(_0x397531){if(isRuntimeSkillValidationError(_0x397531))throw _0x397531;throw CliErrors[_0x1250e3(0x12e)](_0x1250e3(0x12a));}return Object[_0x1250e3(0x136)](_0x57f1f8)[_0x1250e3(0x12d)](([_0x1746d6,_0xcfd288])=>({'path':normalizeSkillRelativePath(_0x1746d6),'bytes':Buffer['from'](_0xcfd288)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x38f420){const _0x5b8f95=a97_0x4c86f;return typeof _0x38f420===_0x5b8f95(0x13a)&&_0x38f420!==null&&'code'in _0x38f420&&_0x38f420['code']===_0x5b8f95(0x130);}
1
+ const a97_0x125164=a97_0x18b0;(function(_0x398401,_0x44ff1e){const _0x34f37c=a97_0x18b0,_0x49f9ad=_0x398401();while(!![]){try{const _0xbac9f7=-parseInt(_0x34f37c(0x181))/0x1+parseInt(_0x34f37c(0x17b))/0x2+parseInt(_0x34f37c(0x16e))/0x3*(-parseInt(_0x34f37c(0x179))/0x4)+-parseInt(_0x34f37c(0x17e))/0x5*(parseInt(_0x34f37c(0x173))/0x6)+-parseInt(_0x34f37c(0x178))/0x7*(parseInt(_0x34f37c(0x17d))/0x8)+parseInt(_0x34f37c(0x170))/0x9+parseInt(_0x34f37c(0x17f))/0xa;if(_0xbac9f7===_0x44ff1e)break;else _0x49f9ad['push'](_0x49f9ad['shift']());}catch(_0x684c8){_0x49f9ad['push'](_0x49f9ad['shift']());}}}(a97_0x2df7,0xaddb7));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a97_0x125164(0x16c));export function createDeterministicZipPackage(_0x4697cc){const _0x2ddf31=a97_0x125164,_0x370842={};for(const _0xc6c358 of normalizeLocalFiles(_0x4697cc)){_0x370842[_0xc6c358[_0x2ddf31(0x16d)]]=fileContent(_0xc6c358);}return Buffer[_0x2ddf31(0x17c)](zipSync(_0x370842,{'level':0x0,'mtime':ZIP_MTIME}));}function a97_0x2df7(){const _0x485c9e=['14221790aCTOJv','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','792411wnbcil','object','1980-01-01T00:00:00.000Z','path','1194nDfGFd','length','12123063AcUwOd','name','entries','6xGEwQW','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','sort','validation','map','321909UGsrst','11516DpTgBG','code','2829076JLEBaC','from','136SwUPWL','3757865gqnIBh'];a97_0x2df7=function(){return _0x485c9e;};return a97_0x2df7();}function a97_0x18b0(_0x1c50a4,_0x19c441){_0x1c50a4=_0x1c50a4-0x16b;const _0x2df75e=a97_0x2df7();let _0x18b014=_0x2df75e[_0x1c50a4];return _0x18b014;}export function parseZipPackage(_0x142adc){const _0x856232=a97_0x125164;if(_0x142adc[_0x856232(0x16f)]<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x502d3e;try{_0x502d3e=unzipSync(_0x142adc,{'filter'(_0x24589a){const _0x2feae9=_0x856232,_0x69da9a=normalizeSkillRelativePath(_0x24589a[_0x2feae9(0x171)]);if(_0x69da9a['endsWith']('/'))throw CliErrors[_0x2feae9(0x176)](_0x2feae9(0x180)+_0x69da9a);return!![];}});}catch(_0x454aa3){if(isRuntimeSkillValidationError(_0x454aa3))throw _0x454aa3;throw CliErrors[_0x856232(0x176)](_0x856232(0x174));}return Object[_0x856232(0x172)](_0x502d3e)[_0x856232(0x177)](([_0x26e0e1,_0x3c9892])=>({'path':normalizeSkillRelativePath(_0x26e0e1),'bytes':Buffer['from'](_0x3c9892)}))[_0x856232(0x175)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x581630){const _0xfaf10f=a97_0x125164;return typeof _0x581630===_0xfaf10f(0x16b)&&_0x581630!==null&&_0xfaf10f(0x17a)in _0x581630&&_0x581630['code']==='validation_error';}
@@ -1 +1 @@
1
- (function(_0x1db8c4,_0x549dab){const _0x4ec579=a98_0x272f,_0x6f29b7=_0x1db8c4();while(!![]){try{const _0x4b3a5d=-parseInt(_0x4ec579(0xa2))/0x1*(parseInt(_0x4ec579(0x9e))/0x2)+-parseInt(_0x4ec579(0x88))/0x3+-parseInt(_0x4ec579(0x96))/0x4+parseInt(_0x4ec579(0xa4))/0x5*(parseInt(_0x4ec579(0x94))/0x6)+parseInt(_0x4ec579(0x7d))/0x7+-parseInt(_0x4ec579(0x77))/0x8+-parseInt(_0x4ec579(0x91))/0x9*(-parseInt(_0x4ec579(0x98))/0xa);if(_0x4b3a5d===_0x549dab)break;else _0x6f29b7['push'](_0x6f29b7['shift']());}catch(_0x314590){_0x6f29b7['push'](_0x6f29b7['shift']());}}}(a98_0x1b2e,0x52b0e));function a98_0x1b2e(){const _0x7eb6a7=['map','1798420qEyKIn','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20','183970uVZgxN','trim','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','push','string','schemaVersion','162lWiskC','Missing\x20','path','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','6361wVULqi','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','1415iCkeVZ','some','set','2695016gBkCfE','ossPath','toLowerCase','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','validation','\x20in\x20Skill\x20file\x20package.','1574349MpuAzu','isSafeInteger','toString','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','zipSha256','bytes','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','zipSize','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','sha256','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','616974VpqlXQ','length','isArray','size','files','Duplicate\x20Skill\x20package\x20entry:\x20','treeSha256','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20missing\x20','684iRkByX','get','base64','4728GicHUe'];a98_0x1b2e=function(){return _0x7eb6a7;};return a98_0x1b2e();}import{CliErrors}from'../../errors.js';import{MAX_SKILL_PACKAGE_BYTES,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(_0x36a342){const _0x4986d5=a98_0x272f,_0x3984d6=normalizeLocalFiles(_0x36a342);if(!_0x3984d6[_0x4986d5(0xa5)](_0x30a9ab=>_0x30a9ab[_0x4986d5(0xa0)]===SKILL_FILE))throw CliErrors[_0x4986d5(0x7b)](_0x4986d5(0x9f)+SKILL_FILE+_0x4986d5(0x7c));const _0x33702f=localFilesToManifestFiles(_0x3984d6),_0x45d836=createDeterministicZipPackage(_0x3984d6);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x33702f),'zipSha256':bufferSha256(_0x45d836),'zipSize':_0x45d836['length'],'files':_0x33702f},'packageBytes':_0x45d836,'packageBase64':_0x45d836[_0x4986d5(0x7f)](_0x4986d5(0x93))};}export function verifyRuntimeSkillPackage(_0x2a3898,_0x75e6ea){const _0x5c961d=a98_0x272f,_0x475698=normalizePackageManifest(_0x2a3898,{'requireOssPath':![]});if(!_0x475698)throw CliErrors[_0x5c961d(0x7b)](_0x5c961d(0x85));return extractAndVerifyPackage(_0x475698,_0x75e6ea);}export function verifyRuntimeSkillBundle(_0x24ee61,_0x4a4f2b){const _0x10d26b=a98_0x272f,_0x2f7d65=normalizePackageManifest(_0x24ee61,{'requireOssPath':![]});if(!_0x2f7d65)throw CliErrors[_0x10d26b(0x7b)](_0x10d26b(0x85));if(_0x4a4f2b[_0x10d26b(0x89)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x10d26b(0x7b)](_0x10d26b(0x80));return extractAndVerifyPackageFiles(_0x2f7d65,_0x4a4f2b);}export function tryNormalizePackageManifest(_0x3e7cc8){return normalizePackageManifest(_0x3e7cc8,{'requireOssPath':![]});}export function requirePackageBytes(_0x5e3b47,_0x3adc7f){const _0x16c453=a98_0x272f;if(!_0x3adc7f||_0x3adc7f['length']===0x0)throw CliErrors['validation'](_0x16c453(0x87)+_0x5e3b47);if(_0x3adc7f[_0x16c453(0x89)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x16c453(0x7b)](_0x16c453(0x97)+_0x5e3b47);return _0x3adc7f;}function a98_0x272f(_0x26f98d,_0x304ec6){_0x26f98d=_0x26f98d-0x76;const _0x1b2e5e=a98_0x1b2e();let _0x272fea=_0x1b2e5e[_0x26f98d];return _0x272fea;}export function extractDownloadedPackage(_0x109df4){const _0x50a373=a98_0x272f,_0x12f0cb=parseZipPackage(_0x109df4)[_0x50a373(0x95)](_0x477e6e=>({'path':_0x477e6e['path'],'bytes':_0x477e6e[_0x50a373(0x82)]}));if(!_0x12f0cb[_0x50a373(0xa5)](_0x661f58=>_0x661f58[_0x50a373(0xa0)]===SKILL_FILE))throw CliErrors[_0x50a373(0x7b)](_0x50a373(0x90)+SKILL_FILE+'.');return normalizeLocalFiles(_0x12f0cb);}export function localFilesToManifestFiles(_0x3fe890){const _0x3ad5ef=a98_0x272f;return normalizeLocalFiles(_0x3fe890)['map'](_0x22eeea=>({'path':_0x22eeea[_0x3ad5ef(0xa0)],'sha256':fileHash(_0x22eeea),'size':fileContent(_0x22eeea)[_0x3ad5ef(0x89)]}));}function normalizePackageManifest(_0x534d42,_0x294d08){const _0x14632d=a98_0x272f;if(!_0x534d42||typeof _0x534d42!=='object'||Array[_0x14632d(0x8a)](_0x534d42))return undefined;const _0x343fd5=_0x534d42,_0x107bbe=typeof _0x343fd5[_0x14632d(0x78)]===_0x14632d(0x9c)?_0x343fd5['ossPath'][_0x14632d(0x99)]():undefined;if(_0x294d08['requireOssPath']&&!_0x107bbe)return undefined;if(!Array['isArray'](_0x343fd5[_0x14632d(0x8c)])||_0x343fd5[_0x14632d(0x8c)][_0x14632d(0x89)]===0x0)return undefined;if(!isSha256Hex(_0x343fd5['treeSha256']))throw CliErrors[_0x14632d(0x7b)](_0x14632d(0xa3));if(!isSha256Hex(_0x343fd5[_0x14632d(0x81)]))throw CliErrors['validation'](_0x14632d(0x7a));if(!Number[_0x14632d(0x7e)](_0x343fd5[_0x14632d(0x84)])||_0x343fd5[_0x14632d(0x84)]<0x0)throw CliErrors[_0x14632d(0x7b)](_0x14632d(0x9a));if(_0x343fd5[_0x14632d(0x84)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x14632d(0x7b)](_0x14632d(0x80));const _0x56aa61=normalizeManifestFiles(_0x343fd5[_0x14632d(0x8c)]);if(!_0x56aa61[_0x14632d(0xa5)](_0x48f496=>_0x48f496['path']===SKILL_FILE))throw CliErrors[_0x14632d(0x7b)](_0x14632d(0xa1)+SKILL_FILE+'.');const _0x3ad8cc=fileTreeHash(_0x56aa61);if(_0x3ad8cc!==_0x343fd5[_0x14632d(0x8e)]['toLowerCase']())throw CliErrors[_0x14632d(0x7b)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x14632d(0x7e)](_0x343fd5[_0x14632d(0x9d)])?_0x343fd5[_0x14632d(0x9d)]:0x2,'ossPath':_0x107bbe,'treeSha256':_0x3ad8cc,'zipSha256':_0x343fd5[_0x14632d(0x81)][_0x14632d(0x79)](),'zipSize':_0x343fd5[_0x14632d(0x84)],'files':_0x56aa61};}function extractAndVerifyPackage(_0x362abf,_0x416b28){const _0x5a9253=a98_0x272f,_0x375556=normalizePackageManifest(_0x362abf,{'requireOssPath':![]});if(!_0x375556)throw CliErrors[_0x5a9253(0x7b)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x416b28[_0x5a9253(0x89)]!==_0x375556[_0x5a9253(0x84)])throw CliErrors['validation'](_0x5a9253(0x8f));const _0x4d725a=bufferSha256(_0x416b28);if(_0x4d725a!==_0x375556[_0x5a9253(0x81)])throw CliErrors[_0x5a9253(0x7b)](_0x5a9253(0x83));return extractAndVerifyPackageFiles(_0x375556,_0x416b28);}function extractAndVerifyPackageFiles(_0x37e58e,_0x4848d9){const _0x273018=a98_0x272f,_0x189960=parseZipPackage(_0x4848d9);if(_0x189960[_0x273018(0x89)]!==_0x37e58e[_0x273018(0x8c)]['length'])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x1ae200=new Map();for(const _0x204cce of _0x189960){if(_0x1ae200['has'](_0x204cce['path']))throw CliErrors[_0x273018(0x7b)](_0x273018(0x8d)+_0x204cce[_0x273018(0xa0)]);_0x1ae200[_0x273018(0x76)](_0x204cce[_0x273018(0xa0)],_0x204cce);}const _0x46cdce=[];for(const _0x21aa92 of _0x37e58e[_0x273018(0x8c)]){const _0x35b670=_0x1ae200[_0x273018(0x92)](_0x21aa92[_0x273018(0xa0)]);if(!_0x35b670)throw CliErrors[_0x273018(0x7b)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x21aa92[_0x273018(0xa0)]);if(_0x35b670[_0x273018(0x82)]['length']!==_0x21aa92[_0x273018(0x8b)])throw CliErrors[_0x273018(0x7b)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x21aa92[_0x273018(0xa0)]);const _0x504251=bufferSha256(_0x35b670[_0x273018(0x82)]);if(_0x504251!==_0x21aa92[_0x273018(0x86)])throw CliErrors[_0x273018(0x7b)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x21aa92[_0x273018(0xa0)]);_0x46cdce[_0x273018(0x9b)]({'path':_0x21aa92[_0x273018(0xa0)],'bytes':_0x35b670[_0x273018(0x82)]});}return normalizeLocalFiles(_0x46cdce);}
1
+ (function(_0x262bf3,_0x1d503d){const _0x433f2c=a98_0x3691,_0x7c4198=_0x262bf3();while(!![]){try{const _0x3e06ea=-parseInt(_0x433f2c(0x13d))/0x1+-parseInt(_0x433f2c(0x139))/0x2*(parseInt(_0x433f2c(0x10e))/0x3)+-parseInt(_0x433f2c(0x12c))/0x4*(-parseInt(_0x433f2c(0x114))/0x5)+-parseInt(_0x433f2c(0x125))/0x6*(-parseInt(_0x433f2c(0x13b))/0x7)+-parseInt(_0x433f2c(0x11c))/0x8+-parseInt(_0x433f2c(0x136))/0x9*(parseInt(_0x433f2c(0x135))/0xa)+-parseInt(_0x433f2c(0x137))/0xb*(-parseInt(_0x433f2c(0x12a))/0xc);if(_0x3e06ea===_0x1d503d)break;else _0x7c4198['push'](_0x7c4198['shift']());}catch(_0x45c465){_0x7c4198['push'](_0x7c4198['shift']());}}}(a98_0x4fd0,0x938c2));function a98_0x3691(_0x38f506,_0x300c33){_0x38f506=_0x38f506-0x10b;const _0x4fd0a9=a98_0x4fd0();let _0x3691b7=_0x4fd0a9[_0x38f506];return _0x3691b7;}import{CliErrors}from'../../errors.js';function a98_0x4fd0(){const _0x31b6a3=['ossPath','561tduZYV','string','Missing\x20','push','isSafeInteger','path','3471135JQlzbQ','\x20in\x20Skill\x20file\x20package.','Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','bytes','length','files','Runtime\x20Skill\x20package\x20is\x20missing\x20','6447384VyNalN','zipSize','schemaVersion','trim','size','base64','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','864yufkJo','validation','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','map','sha256','60tuWzhe','set','4OAtTIH','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','treeSha256','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','zipSha256','isArray','some','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','1994830UwJnku','27pHGzUY','4298635QuwcXs','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','454LqOWmz','toLowerCase','5789gWVCXQ','object','716065nQqXqd','get','toString','Runtime\x20Skill\x20package\x20size\x20mismatch.'];a98_0x4fd0=function(){return _0x31b6a3;};return a98_0x4fd0();}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(_0x107675){const _0x28e939=a98_0x3691,_0x1057dd=normalizeLocalFiles(_0x107675);if(!_0x1057dd[_0x28e939(0x133)](_0x45f606=>_0x45f606[_0x28e939(0x113)]===SKILL_FILE))throw CliErrors[_0x28e939(0x126)](_0x28e939(0x110)+SKILL_FILE+_0x28e939(0x115));const _0x56094c=localFilesToManifestFiles(_0x1057dd),_0x7c5c36=createDeterministicZipPackage(_0x1057dd);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x56094c),'zipSha256':bufferSha256(_0x7c5c36),'zipSize':_0x7c5c36['length'],'files':_0x56094c},'packageBytes':_0x7c5c36,'packageBase64':_0x7c5c36[_0x28e939(0x10b)](_0x28e939(0x121))};}export function verifyRuntimeSkillPackage(_0x2cce4e,_0x343902){const _0x1b4227=a98_0x3691,_0x433fdb=normalizePackageManifest(_0x2cce4e,{'requireOssPath':![]});if(!_0x433fdb)throw CliErrors[_0x1b4227(0x126)](_0x1b4227(0x127));return extractAndVerifyPackage(_0x433fdb,_0x343902);}export function verifyRuntimeSkillBundle(_0xba2cbd,_0x112889){const _0x4904e1=a98_0x3691,_0x3d22d0=normalizePackageManifest(_0xba2cbd,{'requireOssPath':![]});if(!_0x3d22d0)throw CliErrors[_0x4904e1(0x126)](_0x4904e1(0x127));return extractAndVerifyPackageFiles(_0x3d22d0,_0x112889);}export function tryNormalizePackageManifest(_0x58a147){return normalizePackageManifest(_0x58a147,{'requireOssPath':![]});}export function requirePackageBytes(_0x3835e0,_0x4ac71c){const _0x26d108=a98_0x3691;if(!_0x4ac71c||_0x4ac71c[_0x26d108(0x119)]===0x0)throw CliErrors[_0x26d108(0x126)](_0x26d108(0x122)+_0x3835e0);return _0x4ac71c;}export function extractDownloadedPackage(_0x1c2e7b){const _0x1ebf15=a98_0x3691,_0x6145af=parseZipPackage(_0x1c2e7b)[_0x1ebf15(0x128)](_0x1b2e59=>({'path':_0x1b2e59[_0x1ebf15(0x113)],'bytes':_0x1b2e59[_0x1ebf15(0x118)]}));if(!_0x6145af[_0x1ebf15(0x133)](_0xefbb22=>_0xefbb22[_0x1ebf15(0x113)]===SKILL_FILE))throw CliErrors[_0x1ebf15(0x126)](_0x1ebf15(0x11b)+SKILL_FILE+'.');return normalizeLocalFiles(_0x6145af);}export function localFilesToManifestFiles(_0x535caf){const _0x1496a2=a98_0x3691;return normalizeLocalFiles(_0x535caf)[_0x1496a2(0x128)](_0x1b277e=>({'path':_0x1b277e[_0x1496a2(0x113)],'sha256':fileHash(_0x1b277e),'size':fileContent(_0x1b277e)[_0x1496a2(0x119)]}));}function normalizePackageManifest(_0x38611e,_0x446bfb){const _0x13e8e2=a98_0x3691;if(!_0x38611e||typeof _0x38611e!==_0x13e8e2(0x13c)||Array['isArray'](_0x38611e))return undefined;const _0x3d0e15=_0x38611e,_0x26d6f6=typeof _0x3d0e15['ossPath']===_0x13e8e2(0x10f)?_0x3d0e15[_0x13e8e2(0x10d)][_0x13e8e2(0x11f)]():undefined;if(_0x446bfb['requireOssPath']&&!_0x26d6f6)return undefined;if(!Array[_0x13e8e2(0x132)](_0x3d0e15['files'])||_0x3d0e15[_0x13e8e2(0x11a)][_0x13e8e2(0x119)]===0x0)return undefined;if(!isSha256Hex(_0x3d0e15[_0x13e8e2(0x12f)]))throw CliErrors[_0x13e8e2(0x126)](_0x13e8e2(0x123));if(!isSha256Hex(_0x3d0e15['zipSha256']))throw CliErrors[_0x13e8e2(0x126)](_0x13e8e2(0x117));if(!Number[_0x13e8e2(0x112)](_0x3d0e15['zipSize'])||_0x3d0e15[_0x13e8e2(0x11d)]<0x0)throw CliErrors[_0x13e8e2(0x126)](_0x13e8e2(0x134));const _0x2aaa77=normalizeManifestFiles(_0x3d0e15[_0x13e8e2(0x11a)]);if(!_0x2aaa77[_0x13e8e2(0x133)](_0x44fcc9=>_0x44fcc9['path']===SKILL_FILE))throw CliErrors[_0x13e8e2(0x126)](_0x13e8e2(0x12e)+SKILL_FILE+'.');const _0x1ba485=fileTreeHash(_0x2aaa77);if(_0x1ba485!==_0x3d0e15['treeSha256'][_0x13e8e2(0x13a)]())throw CliErrors[_0x13e8e2(0x126)](_0x13e8e2(0x130));return{'schemaVersion':Number[_0x13e8e2(0x112)](_0x3d0e15[_0x13e8e2(0x11e)])?_0x3d0e15[_0x13e8e2(0x11e)]:0x2,'ossPath':_0x26d6f6,'treeSha256':_0x1ba485,'zipSha256':_0x3d0e15[_0x13e8e2(0x131)]['toLowerCase'](),'zipSize':_0x3d0e15['zipSize'],'files':_0x2aaa77};}function extractAndVerifyPackage(_0x51ec68,_0x3643fb){const _0x363563=a98_0x3691,_0xf3151a=normalizePackageManifest(_0x51ec68,{'requireOssPath':![]});if(!_0xf3151a)throw CliErrors['validation'](_0x363563(0x127));if(_0x3643fb[_0x363563(0x119)]!==_0xf3151a['zipSize'])throw CliErrors[_0x363563(0x126)](_0x363563(0x10c));const _0x445eec=bufferSha256(_0x3643fb);if(_0x445eec!==_0xf3151a[_0x363563(0x131)])throw CliErrors[_0x363563(0x126)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0xf3151a,_0x3643fb);}function extractAndVerifyPackageFiles(_0x220a6d,_0x437a6d){const _0x2ba8fb=a98_0x3691,_0x5290ea=parseZipPackage(_0x437a6d);if(_0x5290ea[_0x2ba8fb(0x119)]!==_0x220a6d['files'][_0x2ba8fb(0x119)])throw CliErrors[_0x2ba8fb(0x126)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x50da65=new Map();for(const _0x19cfb6 of _0x5290ea){if(_0x50da65['has'](_0x19cfb6[_0x2ba8fb(0x113)]))throw CliErrors[_0x2ba8fb(0x126)](_0x2ba8fb(0x116)+_0x19cfb6[_0x2ba8fb(0x113)]);_0x50da65[_0x2ba8fb(0x12b)](_0x19cfb6['path'],_0x19cfb6);}const _0x2d7e8f=[];for(const _0x35c758 of _0x220a6d['files']){const _0x4c049d=_0x50da65[_0x2ba8fb(0x13e)](_0x35c758[_0x2ba8fb(0x113)]);if(!_0x4c049d)throw CliErrors['validation'](_0x2ba8fb(0x138)+_0x35c758[_0x2ba8fb(0x113)]);if(_0x4c049d[_0x2ba8fb(0x118)][_0x2ba8fb(0x119)]!==_0x35c758[_0x2ba8fb(0x120)])throw CliErrors['validation'](_0x2ba8fb(0x12d)+_0x35c758[_0x2ba8fb(0x113)]);const _0x369fab=bufferSha256(_0x4c049d['bytes']);if(_0x369fab!==_0x35c758[_0x2ba8fb(0x129)])throw CliErrors[_0x2ba8fb(0x126)](_0x2ba8fb(0x124)+_0x35c758[_0x2ba8fb(0x113)]);_0x2d7e8f[_0x2ba8fb(0x111)]({'path':_0x35c758[_0x2ba8fb(0x113)],'bytes':_0x4c049d[_0x2ba8fb(0x118)]});}return normalizeLocalFiles(_0x2d7e8f);}
@@ -1 +1 @@
1
- function a99_0xf068(){var _0x361211=['471920ASEMqz','475636SsjKqZ','5425870SGaLNJ','2692716WGKGmV','43494aKqOtM','2396976OZdhgU','20763iQxzIZ','160AqwHre','5TwGJMI','36OqJuCz'];a99_0xf068=function(){return _0x361211;};return a99_0xf068();}(function(_0x588133,_0x9db320){var _0xf6f899=a99_0x581c,_0xfcaa74=_0x588133();while(!![]){try{var _0x3fb7f6=parseInt(_0xf6f899(0x107))/0x1+parseInt(_0xf6f899(0x106))/0x2*(-parseInt(_0xf6f899(0x101))/0x3)+-parseInt(_0xf6f899(0x100))/0x4+parseInt(_0xf6f899(0x105))/0x5*(parseInt(_0xf6f899(0x102))/0x6)+parseInt(_0xf6f899(0xfe))/0x7+-parseInt(_0xf6f899(0x104))/0x8*(parseInt(_0xf6f899(0x103))/0x9)+parseInt(_0xf6f899(0xff))/0xa;if(_0x3fb7f6===_0x9db320)break;else _0xfcaa74['push'](_0xfcaa74['shift']());}catch(_0x545091){_0xfcaa74['push'](_0xfcaa74['shift']());}}}(a99_0xf068,0x7a7a4));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a99_0x581c(_0xd79351,_0x14d257){_0xd79351=_0xd79351-0xfe;var _0xf06847=a99_0xf068();var _0x581c07=_0xf06847[_0xd79351];return _0x581c07;}export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';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';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(_0x468379,_0x7252ff){var _0x39db0f=a99_0x24f3,_0x411979=_0x468379();while(!![]){try{var _0x13e328=-parseInt(_0x39db0f(0x1b7))/0x1*(parseInt(_0x39db0f(0x1b8))/0x2)+parseInt(_0x39db0f(0x1b5))/0x3+-parseInt(_0x39db0f(0x1b0))/0x4+-parseInt(_0x39db0f(0x1b2))/0x5*(-parseInt(_0x39db0f(0x1ba))/0x6)+-parseInt(_0x39db0f(0x1b1))/0x7*(parseInt(_0x39db0f(0x1b3))/0x8)+parseInt(_0x39db0f(0x1b4))/0x9*(parseInt(_0x39db0f(0x1b6))/0xa)+parseInt(_0x39db0f(0x1b9))/0xb;if(_0x13e328===_0x7252ff)break;else _0x411979['push'](_0x411979['shift']());}catch(_0x10348b){_0x411979['push'](_0x411979['shift']());}}}(a99_0x2762,0xbdeb9));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_0x24f3(_0xa6bef9,_0x54d891){_0xa6bef9=_0xa6bef9-0x1b0;var _0x2762be=a99_0x2762();var _0x24f3a7=_0x2762be[_0xa6bef9];return _0x24f3a7;}function a99_0x2762(){var _0x547031=['422031XyYmBC','6blPTXn','11998558rQjjJe','54ojOolD','1832936rlHJZt','21IENwcu','383115gYzwIH','1397464yEUvBq','45wfLHnQ','2558367NKGLKN','786230qFXaxo'];a99_0x2762=function(){return _0x547031;};return a99_0x2762();}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 a100_0x1509(_0x35292f,_0xff3496){_0x35292f=_0x35292f-0x1ab;const _0x580606=a100_0x5806();let _0x150915=_0x580606[_0x35292f];return _0x150915;}(function(_0x46b963,_0x4a5de0){const _0x295393=a100_0x1509,_0x1ea7b4=_0x46b963();while(!![]){try{const _0x46cab7=-parseInt(_0x295393(0x1b2))/0x1*(parseInt(_0x295393(0x1ab))/0x2)+-parseInt(_0x295393(0x1b3))/0x3+-parseInt(_0x295393(0x1b1))/0x4+-parseInt(_0x295393(0x1b0))/0x5*(-parseInt(_0x295393(0x1af))/0x6)+parseInt(_0x295393(0x1ae))/0x7+parseInt(_0x295393(0x1ac))/0x8+parseInt(_0x295393(0x1ad))/0x9;if(_0x46cab7===_0x4a5de0)break;else _0x1ea7b4['push'](_0x1ea7b4['shift']());}catch(_0xf76088){_0x1ea7b4['push'](_0x1ea7b4['shift']());}}}(a100_0x5806,0x6c41a));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a100_0x5806(){const _0x2b01b8=['1622728dzfOGr','128237yEJevk','2529066suUSOO','10irFdBQ','2790472gVCyIo','7801353yoLCTs','5800053sUtrRW','102036GyXLeb','85yTJjTp'];a100_0x5806=function(){return _0x2b01b8;};return a100_0x5806();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a100_0x2acc(_0x16018f,_0x595c84){_0x16018f=_0x16018f-0xbe;const _0x1b80d6=a100_0x1b80();let _0x2acc81=_0x1b80d6[_0x16018f];return _0x2acc81;}(function(_0x58323f,_0x3b8ee7){const _0x3142b3=a100_0x2acc,_0x544cc5=_0x58323f();while(!![]){try{const _0x3867f7=-parseInt(_0x3142b3(0xc1))/0x1+-parseInt(_0x3142b3(0xbe))/0x2+parseInt(_0x3142b3(0xbf))/0x3*(parseInt(_0x3142b3(0xc4))/0x4)+parseInt(_0x3142b3(0xc2))/0x5+-parseInt(_0x3142b3(0xc5))/0x6+-parseInt(_0x3142b3(0xc0))/0x7+parseInt(_0x3142b3(0xc6))/0x8*(parseInt(_0x3142b3(0xc3))/0x9);if(_0x3867f7===_0x3b8ee7)break;else _0x544cc5['push'](_0x544cc5['shift']());}catch(_0x134a3c){_0x544cc5['push'](_0x544cc5['shift']());}}}(a100_0x1b80,0xe5a79));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a100_0x1b80(){const _0x6fd685=['1824610YNLNek','6kaQMse','7357399pPTDQV','418210OwtqiL','3742350NPIBlf','9qgtKGG','3670972IHAeEQ','2272806sAmfJI','8936656bTnjHC'];a100_0x1b80=function(){return _0x6fd685;};return a100_0x1b80();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a101_0xc27621=a101_0x2271;(function(_0x274ed3,_0x448d35){const _0x1b8638=a101_0x2271,_0x4c5684=_0x274ed3();while(!![]){try{const _0x168114=-parseInt(_0x1b8638(0xd8))/0x1*(parseInt(_0x1b8638(0xe4))/0x2)+-parseInt(_0x1b8638(0xaf))/0x3*(parseInt(_0x1b8638(0xb7))/0x4)+-parseInt(_0x1b8638(0xcb))/0x5*(parseInt(_0x1b8638(0xb3))/0x6)+parseInt(_0x1b8638(0xd3))/0x7*(parseInt(_0x1b8638(0xe2))/0x8)+parseInt(_0x1b8638(0xc0))/0x9*(-parseInt(_0x1b8638(0xe3))/0xa)+-parseInt(_0x1b8638(0xbe))/0xb+parseInt(_0x1b8638(0xcf))/0xc;if(_0x168114===_0x448d35)break;else _0x4c5684['push'](_0x4c5684['shift']());}catch(_0x1a116e){_0x4c5684['push'](_0x4c5684['shift']());}}}(a101_0x3fa1,0x533d3));import a101_0x545720 from'winston';function a101_0x2271(_0x2e35d9,_0x145978){_0x2e35d9=_0x2e35d9-0xa9;const _0x3fa14d=a101_0x3fa1();let _0x22716a=_0x3fa14d[_0x2e35d9];return _0x22716a;}import a101_0x28097c from'node:fs';import a101_0x147a1e from'node:path';function a101_0x3fa1(){const _0x59a79d=['error','130770YVjbwY','initWinstonLogger','mkdirSync','split','4iyzZfh','join','warn','message','log','Failed\x20to\x20read\x20logs:','readFileSync','7433041wYmlzL','timestamp','3790197pnWrXk','setLogPath','trim','transports','green','getWinstonInstance','Completed:\x20','unknown','winstonLogger','success','printf','120syWSfm','currentRawCommand','errors','Failed\x20to\x20clear\x20logs:','29169420DYzluT','red','now','logTask','763LnXBry','readLogs','createLogger','toISOString','parse','30197teyxgG','logFilePath','addColors','utf8','command','level','duration','clearLogs','info','logFileName','28056rIjaYJ','10GvMRul','14oBjSNQ','details','combine','dirname','existsSync','setRawCommand','filter','yellow','writeFileSync','1922334VqmnDb','clear','stringify'];a101_0x3fa1=function(){return _0x59a79d;};return a101_0x3fa1();}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a101_0xc27621(0xc8)];['logFilePath']='';[a101_0xc27621(0xcc)]='';constructor(){}[a101_0xc27621(0xab)](_0x297f71){const _0x4e2b4d=a101_0xc27621;this[_0x4e2b4d(0xcc)]=_0x297f71;}[a101_0xc27621(0xc1)](_0x565ddf){const _0x1d59bd=a101_0xc27621;this[_0x1d59bd(0xd9)]=a101_0x147a1e[_0x1d59bd(0xb8)](_0x565ddf,PRODUCT_CONFIG[_0x1d59bd(0xe1)]),this['winstonLogger']&&this[_0x1d59bd(0xc8)][_0x1d59bd(0xb0)](),this[_0x1d59bd(0xb4)]();}[a101_0xc27621(0xb4)](){const _0x25b2c6=a101_0xc27621,_0x536127=a101_0x147a1e[_0x25b2c6(0xa9)](this[_0x25b2c6(0xd9)]);!a101_0x28097c[_0x25b2c6(0xaa)](_0x536127)&&a101_0x28097c[_0x25b2c6(0xb5)](_0x536127,{'recursive':!![]});const _0xed1931=a101_0x545720['format'][_0x25b2c6(0xe6)](a101_0x545720['format'][_0x25b2c6(0xbf)](),a101_0x545720['format'][_0x25b2c6(0xcd)]({'stack':!![]}),a101_0x545720['format'][_0x25b2c6(0xca)](_0x2adc86=>{const _0x363606=_0x25b2c6,_0x36ea2d={'timestamp':_0x2adc86[_0x363606(0xbf)]||new Date()[_0x363606(0xd6)](),'level':_0x2adc86[_0x363606(0xdd)]||_0x363606(0xe0),'command':_0x2adc86[_0x363606(0xdc)]||_0x363606(0xc7),'rawCommand':_0x2adc86['rawCommand']||this[_0x363606(0xcc)]||undefined,'message':_0x2adc86[_0x363606(0xba)]||'','duration':_0x2adc86[_0x363606(0xde)]||undefined,'details':_0x2adc86[_0x363606(0xe5)]||undefined};return JSON[_0x363606(0xb1)](_0x36ea2d);}));this[_0x25b2c6(0xc8)]=a101_0x545720[_0x25b2c6(0xd5)]({'level':'info','format':_0xed1931,'transports':[new a101_0x545720[(_0x25b2c6(0xc3))]['File']({'filename':this[_0x25b2c6(0xd9)],'level':_0x25b2c6(0xe0)})],'silent':![]}),a101_0x545720[_0x25b2c6(0xda)]({'success':_0x25b2c6(0xc4),'error':_0x25b2c6(0xd0),'warn':_0x25b2c6(0xad),'info':'blue'});}[a101_0xc27621(0xe0)](_0x2480c2,_0x33f861,_0xfce533){const _0x14a345=a101_0xc27621;if(!this[_0x14a345(0xd9)]||!this[_0x14a345(0xc8)])return;this['winstonLogger'][_0x14a345(0xe0)](_0x33f861,{'command':_0x2480c2,'details':_0xfce533});}[a101_0xc27621(0xc9)](_0x3a9294,_0x33c3a4,_0x25ae49,_0x2c45ec){const _0x2cb798=a101_0xc27621;if(!this[_0x2cb798(0xd9)]||!this['winstonLogger'])return;this[_0x2cb798(0xc8)][_0x2cb798(0xbb)](_0x2cb798(0xe0),_0x33c3a4,{'level':_0x2cb798(0xc9),'command':_0x3a9294,'duration':_0x25ae49,'details':_0x2c45ec});}[a101_0xc27621(0xb2)](_0x2f99f8,_0x4345d8,_0x584b7f){const _0x406d65=a101_0xc27621;if(!this[_0x406d65(0xd9)]||!this[_0x406d65(0xc8)])return;this[_0x406d65(0xc8)]['error'](_0x4345d8,{'command':_0x2f99f8,'details':_0x584b7f});}[a101_0xc27621(0xb9)](_0x14c14e,_0x341dc5,_0x7ba20f){const _0x26a737=a101_0xc27621;if(!this[_0x26a737(0xd9)]||!this['winstonLogger'])return;this[_0x26a737(0xc8)]['warn'](_0x341dc5,{'command':_0x14c14e,'details':_0x7ba20f});}async[a101_0xc27621(0xd2)](_0x14b2ec,_0x36874b,_0x5cd809){const _0x54775f=a101_0xc27621,_0x565e61=Date[_0x54775f(0xd1)]();this[_0x54775f(0xe0)](_0x14b2ec,'Starting:\x20'+_0x36874b);try{const _0x30976b=await _0x5cd809(),_0x308f09=Date['now']()-_0x565e61;return this[_0x54775f(0xc9)](_0x14b2ec,_0x54775f(0xc6)+_0x36874b,_0x308f09),_0x30976b;}catch(_0x409fe2){const _0x2e54e2=Date['now']()-_0x565e61;this['error'](_0x14b2ec,'Failed:\x20'+_0x36874b,{'error':_0x409fe2 instanceof Error?_0x409fe2['message']:String(_0x409fe2),'duration':_0x2e54e2});throw _0x409fe2;}}[a101_0xc27621(0xd4)](){const _0x2ee7d3=a101_0xc27621;try{if(!a101_0x28097c[_0x2ee7d3(0xaa)](this[_0x2ee7d3(0xd9)]))return[];const _0x501671=a101_0x28097c[_0x2ee7d3(0xbd)](this[_0x2ee7d3(0xd9)],_0x2ee7d3(0xdb));return _0x501671[_0x2ee7d3(0xb6)](/\r?\n/)[_0x2ee7d3(0xac)](_0x11838b=>_0x11838b[_0x2ee7d3(0xc2)]())['map'](_0x3fa856=>JSON[_0x2ee7d3(0xd7)](_0x3fa856));}catch(_0x5d41b1){return console[_0x2ee7d3(0xb9)](_0x2ee7d3(0xbc),_0x5d41b1),[];}}[a101_0xc27621(0xdf)](){const _0x3ce0db=a101_0xc27621;try{a101_0x28097c[_0x3ce0db(0xaa)](this[_0x3ce0db(0xd9)])&&a101_0x28097c[_0x3ce0db(0xae)](this[_0x3ce0db(0xd9)],'',_0x3ce0db(0xdb));}catch(_0x40909d){console[_0x3ce0db(0xb9)](_0x3ce0db(0xce),_0x40909d);}}[a101_0xc27621(0xc5)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a101_0xf791e1=a101_0x1fca;(function(_0x3c107c,_0x34857f){const _0x2c7989=a101_0x1fca,_0x1179bd=_0x3c107c();while(!![]){try{const _0x5ea969=parseInt(_0x2c7989(0x180))/0x1+-parseInt(_0x2c7989(0x157))/0x2*(-parseInt(_0x2c7989(0x158))/0x3)+-parseInt(_0x2c7989(0x164))/0x4+parseInt(_0x2c7989(0x15e))/0x5*(-parseInt(_0x2c7989(0x184))/0x6)+-parseInt(_0x2c7989(0x15d))/0x7+parseInt(_0x2c7989(0x185))/0x8+-parseInt(_0x2c7989(0x177))/0x9*(-parseInt(_0x2c7989(0x16e))/0xa);if(_0x5ea969===_0x34857f)break;else _0x1179bd['push'](_0x1179bd['shift']());}catch(_0x1878f7){_0x1179bd['push'](_0x1179bd['shift']());}}}(a101_0x338b,0x9d7c2));import a101_0x4e9313 from'winston';import a101_0x410f76 from'node:fs';function a101_0x1fca(_0x1e827d,_0x1c1ac9){_0x1e827d=_0x1e827d-0x156;const _0x338bdb=a101_0x338b();let _0x1fca2a=_0x338bdb[_0x1e827d];return _0x1fca2a;}import a101_0x4dfa19 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a101_0x338b(){const _0x2d439e=['transports','setLogPath','4228348mvSYqw','initWinstonLogger','format','setRawCommand','message','logFilePath','combine','toISOString','dirname','printf','322670gGRuQQ','currentRawCommand','timestamp','error','command','now','winstonLogger','yellow','warn','27MZjkow','Starting:\x20','success','map','info','level','duration','trim','details','1029935Jcaidl','createLogger','utf8','Completed:\x20','2234838tYQGkU','4634688DpxSfm','writeFileSync','split','parse','red','stringify','green','addColors','existsSync','2QKOZBp','3445698jmPQgw','clear','Failed\x20to\x20read\x20logs:','getWinstonInstance','Failed:\x20','245518aXVMLz','15HGAoGS','unknown','clearLogs','readLogs'];a101_0x338b=function(){return _0x2d439e;};return a101_0x338b();}class Logger{[a101_0xf791e1(0x174)];[a101_0xf791e1(0x169)]='';['currentRawCommand']='';constructor(){}[a101_0xf791e1(0x167)](_0x13b271){const _0x118d11=a101_0xf791e1;this[_0x118d11(0x16f)]=_0x13b271;}[a101_0xf791e1(0x163)](_0x8d33c7){const _0x2f4af4=a101_0xf791e1;this['logFilePath']=a101_0x4dfa19['join'](_0x8d33c7,PRODUCT_CONFIG['logFileName']),this[_0x2f4af4(0x174)]&&this[_0x2f4af4(0x174)][_0x2f4af4(0x159)](),this[_0x2f4af4(0x165)]();}[a101_0xf791e1(0x165)](){const _0x46d88b=a101_0xf791e1,_0x1b65a5=a101_0x4dfa19[_0x46d88b(0x16c)](this['logFilePath']);!a101_0x410f76[_0x46d88b(0x156)](_0x1b65a5)&&a101_0x410f76['mkdirSync'](_0x1b65a5,{'recursive':!![]});const _0x48c697=a101_0x4e9313[_0x46d88b(0x166)][_0x46d88b(0x16a)](a101_0x4e9313['format']['timestamp'](),a101_0x4e9313[_0x46d88b(0x166)]['errors']({'stack':!![]}),a101_0x4e9313[_0x46d88b(0x166)][_0x46d88b(0x16d)](_0xc46e33=>{const _0x3c2364=_0x46d88b,_0x6cc8a0={'timestamp':_0xc46e33[_0x3c2364(0x170)]||new Date()[_0x3c2364(0x16b)](),'level':_0xc46e33[_0x3c2364(0x17c)]||_0x3c2364(0x17b),'command':_0xc46e33[_0x3c2364(0x172)]||_0x3c2364(0x15f),'rawCommand':_0xc46e33['rawCommand']||this['currentRawCommand']||undefined,'message':_0xc46e33[_0x3c2364(0x168)]||'','duration':_0xc46e33[_0x3c2364(0x17d)]||undefined,'details':_0xc46e33[_0x3c2364(0x17f)]||undefined};return JSON[_0x3c2364(0x18a)](_0x6cc8a0);}));this[_0x46d88b(0x174)]=a101_0x4e9313[_0x46d88b(0x181)]({'level':'info','format':_0x48c697,'transports':[new a101_0x4e9313[(_0x46d88b(0x162))]['File']({'filename':this['logFilePath'],'level':_0x46d88b(0x17b)})],'silent':![]}),a101_0x4e9313[_0x46d88b(0x18c)]({'success':_0x46d88b(0x18b),'error':_0x46d88b(0x189),'warn':_0x46d88b(0x175),'info':'blue'});}[a101_0xf791e1(0x17b)](_0xcbe59f,_0x28b4c4,_0x252d18){const _0x57dddd=a101_0xf791e1;if(!this[_0x57dddd(0x169)]||!this[_0x57dddd(0x174)])return;this[_0x57dddd(0x174)]['info'](_0x28b4c4,{'command':_0xcbe59f,'details':_0x252d18});}[a101_0xf791e1(0x179)](_0x27854a,_0x563e29,_0x89ed48,_0x15a29b){const _0x1bbfbf=a101_0xf791e1;if(!this[_0x1bbfbf(0x169)]||!this[_0x1bbfbf(0x174)])return;this[_0x1bbfbf(0x174)]['log'](_0x1bbfbf(0x17b),_0x563e29,{'level':'success','command':_0x27854a,'duration':_0x89ed48,'details':_0x15a29b});}['error'](_0x44201f,_0x557ab7,_0x319fa8){const _0x3c5687=a101_0xf791e1;if(!this['logFilePath']||!this[_0x3c5687(0x174)])return;this[_0x3c5687(0x174)][_0x3c5687(0x171)](_0x557ab7,{'command':_0x44201f,'details':_0x319fa8});}[a101_0xf791e1(0x176)](_0x4c1021,_0x15b729,_0x1e16e7){const _0x5713e9=a101_0xf791e1;if(!this['logFilePath']||!this[_0x5713e9(0x174)])return;this['winstonLogger'][_0x5713e9(0x176)](_0x15b729,{'command':_0x4c1021,'details':_0x1e16e7});}async['logTask'](_0x5e4eca,_0x59b38a,_0x345cb1){const _0x440d19=a101_0xf791e1,_0x3ac15f=Date['now']();this[_0x440d19(0x17b)](_0x5e4eca,_0x440d19(0x178)+_0x59b38a);try{const _0x1a1bc4=await _0x345cb1(),_0x143da4=Date[_0x440d19(0x173)]()-_0x3ac15f;return this['success'](_0x5e4eca,_0x440d19(0x183)+_0x59b38a,_0x143da4),_0x1a1bc4;}catch(_0x4ec3d1){const _0x37a2ac=Date['now']()-_0x3ac15f;this['error'](_0x5e4eca,_0x440d19(0x15c)+_0x59b38a,{'error':_0x4ec3d1 instanceof Error?_0x4ec3d1[_0x440d19(0x168)]:String(_0x4ec3d1),'duration':_0x37a2ac});throw _0x4ec3d1;}}[a101_0xf791e1(0x161)](){const _0x4f8d7c=a101_0xf791e1;try{if(!a101_0x410f76['existsSync'](this[_0x4f8d7c(0x169)]))return[];const _0x265086=a101_0x410f76['readFileSync'](this['logFilePath'],'utf8');return _0x265086[_0x4f8d7c(0x187)](/\r?\n/)['filter'](_0x4e1fb6=>_0x4e1fb6[_0x4f8d7c(0x17e)]())[_0x4f8d7c(0x17a)](_0x26d4de=>JSON[_0x4f8d7c(0x188)](_0x26d4de));}catch(_0x4ca1b2){return console['warn'](_0x4f8d7c(0x15a),_0x4ca1b2),[];}}[a101_0xf791e1(0x160)](){const _0x44c096=a101_0xf791e1;try{a101_0x410f76['existsSync'](this[_0x44c096(0x169)])&&a101_0x410f76[_0x44c096(0x186)](this[_0x44c096(0x169)],'',_0x44c096(0x182));}catch(_0x171ee5){console[_0x44c096(0x176)]('Failed\x20to\x20clear\x20logs:',_0x171ee5);}}[a101_0xf791e1(0x15b)](){const _0x4b1cc3=a101_0xf791e1;return this[_0x4b1cc3(0x174)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3af5f9,_0x208bf0){var _0x4650b7=a102_0x1419,_0x126bc4=_0x3af5f9();while(!![]){try{var _0xfba478=parseInt(_0x4650b7(0x1b9))/0x1*(-parseInt(_0x4650b7(0x1b5))/0x2)+parseInt(_0x4650b7(0x1c3))/0x3+parseInt(_0x4650b7(0x1bd))/0x4+parseInt(_0x4650b7(0x1bc))/0x5*(parseInt(_0x4650b7(0x1b6))/0x6)+-parseInt(_0x4650b7(0x1b7))/0x7*(parseInt(_0x4650b7(0x1c0))/0x8)+parseInt(_0x4650b7(0x1be))/0x9+-parseInt(_0x4650b7(0x1c4))/0xa*(parseInt(_0x4650b7(0x1b4))/0xb);if(_0xfba478===_0x208bf0)break;else _0x126bc4['push'](_0x126bc4['shift']());}catch(_0x27933a){_0x126bc4['push'](_0x126bc4['shift']());}}}(a102_0x4752,0x2e4d3));function a102_0x1419(_0x12d479,_0x3516ab){_0x12d479=_0x12d479-0x1b4;var _0x475252=a102_0x4752();var _0x141958=_0x475252[_0x12d479];return _0x141958;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0xb70b1c){var _0x955dfd=a102_0x1419;if(!_0xb70b1c)return undefined;try{return JSON[_0x955dfd(0x1b8)](_0xb70b1c);}catch{throw CliErrors['validation'](_0x955dfd(0x1bb)+_0xb70b1c);}}function a102_0x4752(){var _0x3f86ab=['Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','798672Gwjxfx','861310BGGflE','items','isArray','33AYKLOZ','794tfvCih','4854RkIQxK','3017dHPzqy','parse','667qxPWPh','validation','Invalid\x20JSON\x20for\x20--params:\x20','1140HVGcpj','1129584WHknvi','1672101LjNNqs','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','3824zFQVcW','object'];a102_0x4752=function(){return _0x3f86ab;};return a102_0x4752();}export function parseJsonParamsValue(_0x2cd9ea){var _0x65336=a102_0x1419;if(!_0x2cd9ea)return undefined;try{return JSON[_0x65336(0x1b8)](_0x2cd9ea);}catch{throw CliErrors[_0x65336(0x1ba)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x2cd9ea);}}export function parseBatchCreateItemsFromParams(_0x1ca23b){var _0x3fb58a=a102_0x1419;if(Array[_0x3fb58a(0x1c6)](_0x1ca23b))return _0x1ca23b;if(_0x1ca23b!==null&&_0x1ca23b!==undefined&&typeof _0x1ca23b===_0x3fb58a(0x1c1)&&Array[_0x3fb58a(0x1c6)](_0x1ca23b[_0x3fb58a(0x1c5)]))return _0x1ca23b[_0x3fb58a(0x1c5)];throw CliErrors[_0x3fb58a(0x1ba)](_0x3fb58a(0x1bf),_0x3fb58a(0x1c2));}
1
+ function a102_0x3d3f(){var _0xf938b2=['parse','5257266GLpcUz','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','4784DeQWSy','1148639fbNbmt','123TimkaW','8148637MbLrQX','4032873QMRgmp','96SvBydB','isArray','items','221470BmkQSs','object','7494328WjgdUa','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','validation','Invalid\x20JSON\x20for\x20--params:\x20'];a102_0x3d3f=function(){return _0xf938b2;};return a102_0x3d3f();}(function(_0x422452,_0x57b3aa){var _0x123217=a102_0x31ad,_0x508619=_0x422452();while(!![]){try{var _0x28aaaf=-parseInt(_0x123217(0x115))/0x1+parseInt(_0x123217(0x114))/0x2*(-parseInt(_0x123217(0x105))/0x3)+-parseInt(_0x123217(0x108))/0x4*(-parseInt(_0x123217(0x10b))/0x5)+parseInt(_0x123217(0x112))/0x6+-parseInt(_0x123217(0x106))/0x7+parseInt(_0x123217(0x10d))/0x8+parseInt(_0x123217(0x107))/0x9;if(_0x28aaaf===_0x57b3aa)break;else _0x508619['push'](_0x508619['shift']());}catch(_0x48219d){_0x508619['push'](_0x508619['shift']());}}}(a102_0x3d3f,0xdefc9));function a102_0x31ad(_0xe53b42,_0x9d0cc4){_0xe53b42=_0xe53b42-0x105;var _0x3d3f55=a102_0x3d3f();var _0x31ad4c=_0x3d3f55[_0xe53b42];return _0x31ad4c;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x258574){var _0x149c8c=a102_0x31ad;if(!_0x258574)return undefined;try{return JSON[_0x149c8c(0x111)](_0x258574);}catch{throw CliErrors[_0x149c8c(0x10f)](_0x149c8c(0x110)+_0x258574);}}export function parseJsonParamsValue(_0x56ea98){var _0x1fc917=a102_0x31ad;if(!_0x56ea98)return undefined;try{return JSON['parse'](_0x56ea98);}catch{throw CliErrors['validation'](_0x1fc917(0x110)+_0x56ea98);}}export function parseBatchCreateItemsFromParams(_0x48752f){var _0xb568ba=a102_0x31ad;if(Array[_0xb568ba(0x109)](_0x48752f))return _0x48752f;if(_0x48752f!==null&&_0x48752f!==undefined&&typeof _0x48752f===_0xb568ba(0x10c)&&Array[_0xb568ba(0x109)](_0x48752f[_0xb568ba(0x10a)]))return _0x48752f[_0xb568ba(0x10a)];throw CliErrors[_0xb568ba(0x10f)](_0xb568ba(0x10e),_0xb568ba(0x113));}
@@ -1 +1 @@
1
- function a103_0x2e7f(_0x694da,_0x256584){_0x694da=_0x694da-0x1ef;const _0x3e90d5=a103_0x3e90();let _0x2e7f74=_0x3e90d5[_0x694da];return _0x2e7f74;}const a103_0x5e77e4=a103_0x2e7f;(function(_0x5b3ef0,_0x5edc35){const _0x5798ae=a103_0x2e7f,_0x31b700=_0x5b3ef0();while(!![]){try{const _0x188c9c=parseInt(_0x5798ae(0x1f1))/0x1+parseInt(_0x5798ae(0x1f0))/0x2+-parseInt(_0x5798ae(0x1f5))/0x3*(parseInt(_0x5798ae(0x1fa))/0x4)+parseInt(_0x5798ae(0x1f4))/0x5*(parseInt(_0x5798ae(0x1f7))/0x6)+parseInt(_0x5798ae(0x1f3))/0x7+-parseInt(_0x5798ae(0x1ef))/0x8*(-parseInt(_0x5798ae(0x1f8))/0x9)+parseInt(_0x5798ae(0x1f2))/0xa*(-parseInt(_0x5798ae(0x1fb))/0xb);if(_0x188c9c===_0x5edc35)break;else _0x31b700['push'](_0x31b700['shift']());}catch(_0x144fe2){_0x31b700['push'](_0x31b700['shift']());}}}(a103_0x3e90,0x3ce2f));export const isWindows=process['platform']===a103_0x5e77e4(0x1f6);export function resolveNpmBin(_0x5277f3){const _0x26b77e=a103_0x5e77e4;return isWindows?_0x5277f3+_0x26b77e(0x1f9):_0x5277f3;}function a103_0x3e90(){const _0x51af9e=['120fYnMjk','302433LPQMEr','win32','4638wBWdfr','99jMxuBY','.cmd','12jPxtsM','4873txXdlb','119608oWuKBR','927630SXTCQu','393439KAVlmB','12310jhQhql','398230OmWxgZ'];a103_0x3e90=function(){return _0x51af9e;};return a103_0x3e90();}
1
+ function a103_0x1c9a(_0x400203,_0x46a948){_0x400203=_0x400203-0x1b7;const _0x3fd97e=a103_0x3fd9();let _0x1c9ada=_0x3fd97e[_0x400203];return _0x1c9ada;}const a103_0x1c9814=a103_0x1c9a;(function(_0x2ede53,_0x57da80){const _0x2a4fcf=a103_0x1c9a,_0x3bd0d9=_0x2ede53();while(!![]){try{const _0x3b347f=-parseInt(_0x2a4fcf(0x1c0))/0x1+-parseInt(_0x2a4fcf(0x1c1))/0x2+parseInt(_0x2a4fcf(0x1ba))/0x3*(parseInt(_0x2a4fcf(0x1bb))/0x4)+parseInt(_0x2a4fcf(0x1b9))/0x5+parseInt(_0x2a4fcf(0x1bd))/0x6+-parseInt(_0x2a4fcf(0x1bf))/0x7+parseInt(_0x2a4fcf(0x1bc))/0x8;if(_0x3b347f===_0x57da80)break;else _0x3bd0d9['push'](_0x3bd0d9['shift']());}catch(_0x35c22e){_0x3bd0d9['push'](_0x3bd0d9['shift']());}}}(a103_0x3fd9,0x345b8));export const isWindows=process[a103_0x1c9814(0x1be)]===a103_0x1c9814(0x1b7);function a103_0x3fd9(){const _0x343806=['2801204sRhyWx','280349NMPKWi','397558VpvWto','win32','.cmd','1954125rhyQSb','3FURQAX','1026604vbrDfE','2941720CMMdcf','471390yvkoPt','platform'];a103_0x3fd9=function(){return _0x343806;};return a103_0x3fd9();}export function resolveNpmBin(_0x241729){const _0x3b563b=a103_0x1c9814;return isWindows?_0x241729+_0x3b563b(0x1b8):_0x241729;}
@@ -1 +1 @@
1
- (function(_0x3b05dc,_0x39ac7f){const _0x2c46c9=a104_0x4510,_0xee7e1d=_0x3b05dc();while(!![]){try{const _0x1593bf=parseInt(_0x2c46c9(0x145))/0x1+parseInt(_0x2c46c9(0x13f))/0x2+parseInt(_0x2c46c9(0x14d))/0x3+-parseInt(_0x2c46c9(0x158))/0x4+-parseInt(_0x2c46c9(0x15f))/0x5+-parseInt(_0x2c46c9(0x143))/0x6+-parseInt(_0x2c46c9(0x14c))/0x7*(-parseInt(_0x2c46c9(0x151))/0x8);if(_0x1593bf===_0x39ac7f)break;else _0xee7e1d['push'](_0xee7e1d['shift']());}catch(_0x3779d5){_0xee7e1d['push'](_0xee7e1d['shift']());}}}(a104_0x2bb0,0x4bfb9));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 a104_0x2bb0(){const _0x5b2118=['.cache','8YsOrRf','yes','/dist-tags','true','parse','\x20update','latest','739516fkjPGU','lastNotifiedAt','stringify','https://www.npmjs.com/package/','prerelease','string','number','2015850btZiSe','entries','1121370YFOClM','patch','match','json','3299304uOOvtV','minor','124670zuNcaZ','/-/package/','major','object','checkedAt','fromEntries','map','3358250jECBLR','852159cspbbJ','/v/','trim'];a104_0x2bb0=function(){return _0x5b2118;};return a104_0x2bb0();}function parseSemver(_0x4809d1){const _0x2549af=a104_0x4510,_0x60f7bc=_0x4809d1['trim']()[_0x2549af(0x141)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x60f7bc)return null;return{'major':Number(_0x60f7bc[0x1]),'minor':Number(_0x60f7bc[0x2]),'patch':Number(_0x60f7bc[0x3]),'prerelease':_0x60f7bc[0x4]};}function compareSemver(_0x28a393,_0x54b4e7){const _0x5d6e3c=a104_0x4510,_0x5614e9=parseSemver(_0x28a393),_0x35a91d=parseSemver(_0x54b4e7);if(!_0x5614e9||!_0x35a91d)throw new Error('Invalid\x20semver');for(const _0x27c015 of[_0x5d6e3c(0x147),_0x5d6e3c(0x144),_0x5d6e3c(0x140)]){if(_0x5614e9[_0x27c015]<_0x35a91d[_0x27c015])return-0x1;if(_0x5614e9[_0x27c015]>_0x35a91d[_0x27c015])return 0x1;}if(!_0x5614e9[_0x5d6e3c(0x15c)]&&!_0x35a91d['prerelease'])return 0x0;if(!_0x5614e9[_0x5d6e3c(0x15c)])return 0x1;if(!_0x35a91d[_0x5d6e3c(0x15c)])return-0x1;if(_0x5614e9[_0x5d6e3c(0x15c)]===_0x35a91d[_0x5d6e3c(0x15c)])return 0x0;return _0x5614e9[_0x5d6e3c(0x15c)]<_0x35a91d['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x40b890=a104_0x4510,_0x537f64=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x40b890(0x14f)]()['toLowerCase']();return _0x537f64==='1'||_0x537f64===_0x40b890(0x154)||_0x537f64===_0x40b890(0x152);}function a104_0x4510(_0x3c4075,_0x4c1f94){_0x3c4075=_0x3c4075-0x13f;const _0x2bb09f=a104_0x2bb0();let _0x451053=_0x2bb09f[_0x3c4075];return _0x451053;}function cacheRoot(){const _0x59288a=a104_0x4510;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x59288a(0x150));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'lovrabet-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x346037=a104_0x4510;try{const _0x322c5c=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x4bcf5d=JSON[_0x346037(0x155)](_0x322c5c);if(!_0x4bcf5d||typeof _0x4bcf5d!=='object')return{};return _0x4bcf5d;}catch{return{};}}async function writeUpdateNoticeCache(_0x2b3499){const _0x429a1f=a104_0x4510;try{const _0xbbc6f=getUpdateNoticeCachePath();await mkdir(dirname(_0xbbc6f),{'recursive':!![]}),await writeFile(_0xbbc6f,JSON[_0x429a1f(0x15a)](_0x2b3499,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x2fea56,_0x22acd3){const _0x39addc=a104_0x4510;return typeof _0x2fea56[_0x39addc(0x149)]==='number'&&_0x22acd3-_0x2fea56['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x5d7894,_0x4aa2ce,_0x5232e8){const _0x59cc90=a104_0x4510;return _0x5d7894['lastNotifiedVersion']===_0x4aa2ce&&typeof _0x5d7894['lastNotifiedAt']===_0x59cc90(0x15e)&&_0x5232e8-_0x5d7894[_0x59cc90(0x159)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x4d4421=0x5dc){const _0x2864d7=a104_0x4510;try{const _0x4bd766=NPM_REGISTRY_BASE_URL+_0x2864d7(0x146)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2864d7(0x153),_0x1086be=await fetch(_0x4bd766,{'signal':AbortSignal['timeout'](_0x4d4421)});if(!_0x1086be['ok'])return null;const _0x124f70=await _0x1086be[_0x2864d7(0x142)]();if(!_0x124f70||typeof _0x124f70!==_0x2864d7(0x148))return null;return Object[_0x2864d7(0x14a)](Object[_0x2864d7(0x160)](_0x124f70)['filter'](([,_0x5514d0])=>typeof _0x5514d0===_0x2864d7(0x15d)&&_0x5514d0[_0x2864d7(0x14f)]())[_0x2864d7(0x14b)](([_0x252feb,_0x440b23])=>[_0x252feb,String(_0x440b23)['trim']()]));}catch{return null;}}export function buildNpmVersionUrl(_0x43e646){const _0x39036d=a104_0x4510;return _0x39036d(0x15b)+LOVRABET_NPM_PACKAGE_NAME+_0x39036d(0x14e)+_0x43e646;}export async function resolveLatestUpdateNotice(){const _0x41579c=a104_0x4510;if(isUpdateNoticeDisabled())return null;try{const _0x5efc6d=Date['now'](),_0x3e4c57=getCliVersion(),_0x45f9c2=await readUpdateNoticeCache();let _0x2dc0d3=isFreshCheck(_0x45f9c2,_0x5efc6d)?_0x45f9c2[_0x41579c(0x157)]?.[_0x41579c(0x14f)]():undefined;if(!_0x2dc0d3&&!isFreshCheck(_0x45f9c2,_0x5efc6d)){const _0x20fb75=await fetchNpmDistTags();_0x2dc0d3=_0x20fb75?.['latest']?.[_0x41579c(0x14f)](),await writeUpdateNoticeCache({..._0x45f9c2,'checkedAt':_0x5efc6d,'latest':_0x2dc0d3,'failed':!_0x2dc0d3});}if(!_0x2dc0d3||compareSemver(_0x3e4c57,_0x2dc0d3)>=0x0)return null;if(isRecentlyNotified(_0x45f9c2,_0x2dc0d3,_0x5efc6d))return null;const _0x1af32f=CLI_BIN_NAME+_0x41579c(0x156);return await writeUpdateNoticeCache({..._0x45f9c2,'checkedAt':isFreshCheck(_0x45f9c2,_0x5efc6d)?_0x45f9c2['checkedAt']:_0x5efc6d,'latest':_0x2dc0d3,'failed':![],'lastNotifiedVersion':_0x2dc0d3,'lastNotifiedAt':_0x5efc6d}),{'command':_0x1af32f,'current':_0x3e4c57,'latest':_0x2dc0d3,'url':buildNpmVersionUrl(_0x2dc0d3),'message':CLI_BIN_NAME+'\x20'+_0x2dc0d3+'\x20available,\x20current\x20'+_0x3e4c57+',\x20run:\x20'+_0x1af32f};}catch{return null;}}
1
+ (function(_0x432efe,_0x1d20e9){const _0x26fad3=a104_0x26ef,_0x34eb5a=_0x432efe();while(!![]){try{const _0x4a5c91=-parseInt(_0x26fad3(0x101))/0x1*(parseInt(_0x26fad3(0xe4))/0x2)+-parseInt(_0x26fad3(0xf4))/0x3+-parseInt(_0x26fad3(0xf8))/0x4+parseInt(_0x26fad3(0xe3))/0x5*(-parseInt(_0x26fad3(0xde))/0x6)+parseInt(_0x26fad3(0xe1))/0x7+-parseInt(_0x26fad3(0xdd))/0x8+parseInt(_0x26fad3(0xf5))/0x9*(parseInt(_0x26fad3(0xdb))/0xa);if(_0x4a5c91===_0x1d20e9)break;else _0x34eb5a['push'](_0x34eb5a['shift']());}catch(_0xb1da77){_0x34eb5a['push'](_0x34eb5a['shift']());}}}(a104_0x2a55,0x78d80));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a104_0x26ef(_0x368089,_0x5a874c){_0x368089=_0x368089-0xdb;const _0x2a5577=a104_0x2a55();let _0x26ef20=_0x2a5577[_0x368089];return _0x26ef20;}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(_0x532dee){const _0x58f95e=a104_0x26ef,_0x2ecb41=_0x532dee[_0x58f95e(0xe6)]()[_0x58f95e(0xff)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x2ecb41)return null;return{'major':Number(_0x2ecb41[0x1]),'minor':Number(_0x2ecb41[0x2]),'patch':Number(_0x2ecb41[0x3]),'prerelease':_0x2ecb41[0x4]};}function compareSemver(_0x106757,_0x1a3007){const _0x45f932=a104_0x26ef,_0x1b70f4=parseSemver(_0x106757),_0x554bdc=parseSemver(_0x1a3007);if(!_0x1b70f4||!_0x554bdc)throw new Error('Invalid\x20semver');for(const _0x1dfcd6 of[_0x45f932(0xeb),_0x45f932(0xfd),_0x45f932(0xe9)]){if(_0x1b70f4[_0x1dfcd6]<_0x554bdc[_0x1dfcd6])return-0x1;if(_0x1b70f4[_0x1dfcd6]>_0x554bdc[_0x1dfcd6])return 0x1;}if(!_0x1b70f4[_0x45f932(0x100)]&&!_0x554bdc[_0x45f932(0x100)])return 0x0;if(!_0x1b70f4['prerelease'])return 0x1;if(!_0x554bdc[_0x45f932(0x100)])return-0x1;if(_0x1b70f4[_0x45f932(0x100)]===_0x554bdc[_0x45f932(0x100)])return 0x0;return _0x1b70f4[_0x45f932(0x100)]<_0x554bdc[_0x45f932(0x100)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x21a32a=a104_0x26ef,_0x303f1d=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x21a32a(0xe6)]()[_0x21a32a(0xed)]();return _0x303f1d==='1'||_0x303f1d==='true'||_0x303f1d==='yes';}function cacheRoot(){const _0x462802=a104_0x26ef;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x462802(0xee));}export function getUpdateNoticeCachePath(){const _0x1869a2=a104_0x26ef;return join(cacheRoot(),'lovrabet-cli',_0x1869a2(0xfb));}async function readUpdateNoticeCache(){const _0x2582e6=a104_0x26ef;try{const _0x1b7049=await readFile(getUpdateNoticeCachePath(),_0x2582e6(0xf2)),_0x3b9a77=JSON[_0x2582e6(0xdf)](_0x1b7049);if(!_0x3b9a77||typeof _0x3b9a77!=='object')return{};return _0x3b9a77;}catch{return{};}}async function writeUpdateNoticeCache(_0x559e8b){const _0x5e017b=a104_0x26ef;try{const _0x497d6b=getUpdateNoticeCachePath();await mkdir(dirname(_0x497d6b),{'recursive':!![]}),await writeFile(_0x497d6b,JSON[_0x5e017b(0xf1)](_0x559e8b,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x57a26a,_0x2371a4){const _0x30e514=a104_0x26ef;return typeof _0x57a26a[_0x30e514(0xe0)]===_0x30e514(0xfc)&&_0x2371a4-_0x57a26a[_0x30e514(0xe0)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1c855d,_0x1e6a28,_0x4df9cb){const _0x460f31=a104_0x26ef;return _0x1c855d['lastNotifiedVersion']===_0x1e6a28&&typeof _0x1c855d[_0x460f31(0xe8)]===_0x460f31(0xfc)&&_0x4df9cb-_0x1c855d[_0x460f31(0xe8)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x219dd8=0x5dc){const _0x5abe96=a104_0x26ef;try{const _0x51ae0d=NPM_REGISTRY_BASE_URL+_0x5abe96(0xdc)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x5abe96(0xf7),_0x332338=await fetch(_0x51ae0d,{'signal':AbortSignal[_0x5abe96(0xf3)](_0x219dd8)});if(!_0x332338['ok'])return null;const _0x49af18=await _0x332338['json']();if(!_0x49af18||typeof _0x49af18!==_0x5abe96(0xec))return null;return Object[_0x5abe96(0xf0)](Object[_0x5abe96(0xf9)](_0x49af18)[_0x5abe96(0xe7)](([,_0x39104c])=>typeof _0x39104c===_0x5abe96(0xfa)&&_0x39104c[_0x5abe96(0xe6)]())['map'](([_0x563382,_0xeba92a])=>[_0x563382,String(_0xeba92a)['trim']()]));}catch{return null;}}export function buildNpmVersionUrl(_0x17fa37){const _0x4e9a45=a104_0x26ef;return _0x4e9a45(0xe2)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x17fa37;}export async function resolveLatestUpdateNotice(){const _0x1500fa=a104_0x26ef;if(isUpdateNoticeDisabled())return null;try{const _0xef3eff=Date[_0x1500fa(0xef)](),_0x2ec5cb=getCliVersion(),_0x23e7c4=await readUpdateNoticeCache();let _0x3fc5c2=isFreshCheck(_0x23e7c4,_0xef3eff)?_0x23e7c4[_0x1500fa(0xea)]?.[_0x1500fa(0xe6)]():undefined;if(!_0x3fc5c2&&!isFreshCheck(_0x23e7c4,_0xef3eff)){const _0x4ae50f=await fetchNpmDistTags();_0x3fc5c2=_0x4ae50f?.[_0x1500fa(0xea)]?.[_0x1500fa(0xe6)](),await writeUpdateNoticeCache({..._0x23e7c4,'checkedAt':_0xef3eff,'latest':_0x3fc5c2,'failed':!_0x3fc5c2});}if(!_0x3fc5c2||compareSemver(_0x2ec5cb,_0x3fc5c2)>=0x0)return null;if(isRecentlyNotified(_0x23e7c4,_0x3fc5c2,_0xef3eff))return null;const _0x6c3b6c=CLI_BIN_NAME+_0x1500fa(0xe5);return await writeUpdateNoticeCache({..._0x23e7c4,'checkedAt':isFreshCheck(_0x23e7c4,_0xef3eff)?_0x23e7c4[_0x1500fa(0xe0)]:_0xef3eff,'latest':_0x3fc5c2,'failed':![],'lastNotifiedVersion':_0x3fc5c2,'lastNotifiedAt':_0xef3eff}),{'command':_0x6c3b6c,'current':_0x2ec5cb,'latest':_0x3fc5c2,'url':buildNpmVersionUrl(_0x3fc5c2),'message':CLI_BIN_NAME+'\x20'+_0x3fc5c2+_0x1500fa(0xf6)+_0x2ec5cb+_0x1500fa(0xfe)+_0x6c3b6c};}catch{return null;}}function a104_0x2a55(){const _0x12f81e=['5295ihHmJZ','23892790OlUrTi','/-/package/','5017904taOFkM','846SRxgZP','parse','checkedAt','6670937LyUhyN','https://www.npmjs.com/package/','32875FbRVLl','28QjPyaD','\x20update','trim','filter','lastNotifiedAt','patch','latest','major','object','toLowerCase','.cache','now','fromEntries','stringify','utf8','timeout','1744458qckYkl','9YJNCuC','\x20available,\x20current\x20','/dist-tags','2549460YxHLBO','entries','string','update-check.json','number','minor',',\x20run:\x20','match','prerelease'];a104_0x2a55=function(){return _0x12f81e;};return a104_0x2a55();}
@@ -1 +1 @@
1
- (function(_0x28b317,_0x20803c){const _0x5f33da=a105_0x23e5,_0x42e09b=_0x28b317();while(!![]){try{const _0x157efe=-parseInt(_0x5f33da(0xe8))/0x1+-parseInt(_0x5f33da(0xe2))/0x2+-parseInt(_0x5f33da(0xe5))/0x3*(parseInt(_0x5f33da(0xe6))/0x4)+parseInt(_0x5f33da(0xe0))/0x5+parseInt(_0x5f33da(0xdf))/0x6+-parseInt(_0x5f33da(0xe3))/0x7*(-parseInt(_0x5f33da(0xe9))/0x8)+-parseInt(_0x5f33da(0xe7))/0x9*(-parseInt(_0x5f33da(0xe1))/0xa);if(_0x157efe===_0x20803c)break;else _0x42e09b['push'](_0x42e09b['shift']());}catch(_0x73c83b){_0x42e09b['push'](_0x42e09b['shift']());}}}(a105_0x3420,0xbe7f7));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x57b2cd=String(GIT_COMMIT);return _0x57b2cd&&_0x57b2cd!=='unknown'?_0x57b2cd:'';}export function getCliVersionDisplay(){const _0x8b61f3=a105_0x23e5,_0xa63eec=getCliGitCommit(),_0x3450f4=BUILD_TIME[_0x8b61f3(0xe4)](0x0,0xa);if(!_0xa63eec||!_0x3450f4)return VERSION;return VERSION+'\x20('+_0xa63eec+',\x20'+_0x3450f4+')';}function a105_0x23e5(_0x15a27d,_0x5f470e){_0x15a27d=_0x15a27d-0xdf;const _0x342000=a105_0x3420();let _0x23e50d=_0x342000[_0x15a27d];return _0x23e50d;}function a105_0x3420(){const _0x3ffd1e=['1213828WZxXnh','53672yjtBmt','2991450NzsMhc','1843225oBxhFL','310AqLomc','2863360JwRXZb','77aeUSIi','slice','198015aawkho','4dDPefv','740547GiArav'];a105_0x3420=function(){return _0x3ffd1e;};return a105_0x3420();}
1
+ (function(_0x229db9,_0x3c6788){const _0x4f526d=a105_0x1f72,_0x5e5708=_0x229db9();while(!![]){try{const _0xc5de33=-parseInt(_0x4f526d(0x1e9))/0x1*(parseInt(_0x4f526d(0x1e2))/0x2)+-parseInt(_0x4f526d(0x1e5))/0x3*(-parseInt(_0x4f526d(0x1e7))/0x4)+parseInt(_0x4f526d(0x1e4))/0x5+-parseInt(_0x4f526d(0x1ea))/0x6+-parseInt(_0x4f526d(0x1e6))/0x7+parseInt(_0x4f526d(0x1eb))/0x8+parseInt(_0x4f526d(0x1e8))/0x9;if(_0xc5de33===_0x3c6788)break;else _0x5e5708['push'](_0x5e5708['shift']());}catch(_0x34f1a5){_0x5e5708['push'](_0x5e5708['shift']());}}}(a105_0xd3ab,0x4a03e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x211b16=a105_0x1f72,_0x12c0bf=String(GIT_COMMIT);return _0x12c0bf&&_0x12c0bf!==_0x211b16(0x1e3)?_0x12c0bf:'';}function a105_0x1f72(_0x577027,_0x2e0098){_0x577027=_0x577027-0x1e2;const _0xd3abe9=a105_0xd3ab();let _0x1f7215=_0xd3abe9[_0x577027];return _0x1f7215;}export function getCliVersionDisplay(){const _0x43be83=getCliGitCommit(),_0x2a28a8=BUILD_TIME['slice'](0x0,0xa);if(!_0x43be83||!_0x2a28a8)return VERSION;return VERSION+'\x20('+_0x43be83+',\x20'+_0x2a28a8+')';}function a105_0xd3ab(){const _0x13e278=['unknown','78335MjyuhI','24579TxaZUc','1231482IGNcgp','152VahNWX','4717260cdFlkT','2lcDDXA','934230ONLQCo','2186880FehPtl','489704aUlgZn'];a105_0xd3ab=function(){return _0x13e278;};return a105_0xd3ab();}
@@ -1 +1 @@
1
- (function(_0xa58dfd,_0x54ab77){var _0x5741e1=a106_0x4246,_0xe7713=_0xa58dfd();while(!![]){try{var _0x8098fe=parseInt(_0x5741e1(0x106))/0x1+parseInt(_0x5741e1(0x107))/0x2*(-parseInt(_0x5741e1(0x10a))/0x3)+parseInt(_0x5741e1(0x104))/0x4*(-parseInt(_0x5741e1(0x102))/0x5)+parseInt(_0x5741e1(0x10c))/0x6*(parseInt(_0x5741e1(0x10b))/0x7)+-parseInt(_0x5741e1(0x10d))/0x8*(-parseInt(_0x5741e1(0x103))/0x9)+parseInt(_0x5741e1(0x105))/0xa+-parseInt(_0x5741e1(0x109))/0xb;if(_0x8098fe===_0x54ab77)break;else _0xe7713['push'](_0xe7713['shift']());}catch(_0x5ad68e){_0xe7713['push'](_0xe7713['shift']());}}}(a106_0x5923,0x7c9e7));export function writeCliSideChannelLine(_0xf45948){var _0x3780d1=a106_0x4246;process[_0x3780d1(0x101)][_0x3780d1(0x108)](_0xf45948+'\x0a');}function a106_0x4246(_0x49d96f,_0x1d1bfa){_0x49d96f=_0x49d96f-0x101;var _0x59238b=a106_0x5923();var _0x424680=_0x59238b[_0x49d96f];return _0x424680;}function a106_0x5923(){var _0x352a3e=['1241880AoGDzH','638416KaYKCR','138tbAZgy','write','1001385wOBMtw','34962HBwfnW','903ttIlvp','9186qROEUl','713144Zdaccv','stderr','1090MWDhkq','45qvRGeq','4QvPZgX'];a106_0x5923=function(){return _0x352a3e;};return a106_0x5923();}
1
+ (function(_0x3fa14d,_0x1ca6d5){var _0x2dacb9=a106_0x5b87,_0x746d43=_0x3fa14d();while(!![]){try{var _0x14b074=-parseInt(_0x2dacb9(0x148))/0x1+parseInt(_0x2dacb9(0x142))/0x2+parseInt(_0x2dacb9(0x147))/0x3*(parseInt(_0x2dacb9(0x146))/0x4)+parseInt(_0x2dacb9(0x14b))/0x5*(parseInt(_0x2dacb9(0x14c))/0x6)+-parseInt(_0x2dacb9(0x14d))/0x7*(-parseInt(_0x2dacb9(0x143))/0x8)+parseInt(_0x2dacb9(0x149))/0x9*(-parseInt(_0x2dacb9(0x144))/0xa)+parseInt(_0x2dacb9(0x14a))/0xb;if(_0x14b074===_0x1ca6d5)break;else _0x746d43['push'](_0x746d43['shift']());}catch(_0x3b02d0){_0x746d43['push'](_0x746d43['shift']());}}}(a106_0x1956,0x202af));function a106_0x1956(){var _0x502348=['170137BGBJvL','2955hYhCLQ','1578iZoOEZ','367192BfzbLh','15538ZOXRrs','40pjeOuH','950930HgDVYg','stderr','3896zlEDHI','69Kivacd','141406jMKNGD','18yepYwT'];a106_0x1956=function(){return _0x502348;};return a106_0x1956();}function a106_0x5b87(_0x4342c9,_0x575902){_0x4342c9=_0x4342c9-0x142;var _0x1956e8=a106_0x1956();var _0x5b874d=_0x1956e8[_0x4342c9];return _0x5b874d;}export function writeCliSideChannelLine(_0x24f89c){var _0x56f568=a106_0x5b87;process[_0x56f568(0x145)]['write'](_0x24f89c+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.6-beta.4",
3
+ "version": "2.1.6-beta.6",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",