@lovrabet/lovrabet-cli 2.1.4-beta.1 → 2.1.5

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(_0x573316,_0x33a913){const _0xaa4eca=a91_0x4940,_0x2c5483=_0x573316();while(!![]){try{const _0x4ed54c=parseInt(_0xaa4eca(0x101))/0x1*(-parseInt(_0xaa4eca(0x10f))/0x2)+-parseInt(_0xaa4eca(0x112))/0x3*(parseInt(_0xaa4eca(0x110))/0x4)+parseInt(_0xaa4eca(0x10a))/0x5+parseInt(_0xaa4eca(0xf8))/0x6*(-parseInt(_0xaa4eca(0x10d))/0x7)+-parseInt(_0xaa4eca(0x117))/0x8*(parseInt(_0xaa4eca(0xf6))/0x9)+-parseInt(_0xaa4eca(0xf5))/0xa*(parseInt(_0xaa4eca(0x11c))/0xb)+parseInt(_0xaa4eca(0x10e))/0xc;if(_0x4ed54c===_0x33a913)break;else _0x2c5483['push'](_0x2c5483['shift']());}catch(_0x9d0477){_0x2c5483['push'](_0x2c5483['shift']());}}}(a91_0x44c4,0xcbe0b));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';function a91_0x44c4(){const _0x34ed2e=['env','trim','validation','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','pulledAt','utf8','join','has','11zJxGun','test','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','keys','packageBytes','description','.\x20Changed\x20file:\x20','find','4659340RIhpsA','isFile','map','4815013iKnbVy','64295244mkskvp','186468aIyzuy','2068796ZCshRc','contentHash','6RRpWmj','accessKey','appCode','skillName','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','14424CrdHng','stringify','path','length','---','11dRPZTN','name','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','fileHashes','replace','8813390ANULfs','5679mzZrVB','paths','12HRKBWW'];a91_0x44c4=function(){return _0x34ed2e;};return a91_0x44c4();}import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x5064fa,_0x2079c9,_0x1c3139){const _0x4b98b5=a91_0x4940,_0x2d72ff=requireSkillCode(_0x5064fa),_0x5a9e7d=requirePackageBytes(_0x2d72ff,_0x1c3139[_0x4b98b5(0x106)]),_0xd6299c=extractDownloadedPackage(_0x5a9e7d),_0x1fcb06=_0xd6299c[_0x4b98b5(0x109)](_0x2c92f6=>_0x2c92f6[_0x4b98b5(0x119)]===SKILL_FILE);if(!_0x1fcb06)throw CliErrors[_0x4b98b5(0xfb)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x2d72ff);const _0xec54eb=withMaterializedSkillFrontmatter(_0xd6299c,_0x5064fa,_0x2d72ff),_0xc2ae92=_0xec54eb[_0x4b98b5(0x109)](_0x296180=>_0x296180[_0x4b98b5(0x119)]===SKILL_FILE),_0x5dcac4=fileText(_0xc2ae92),_0x2986de=getRuntimeSkillDir(_0x1c3139[_0x4b98b5(0xf9)],_0x1c3139[_0x4b98b5(0x113)],_0x1c3139[_0x4b98b5(0x114)],_0x2079c9,_0x2d72ff,_0x1c3139[_0x4b98b5(0xf7)]),_0x8e32c4=resolve(_0x2986de,SKILL_FILE),_0x32fa17=resolve(_0x2986de,METADATA_FILE),_0x48eeaa=contentHash(_0x5dcac4),_0x122e22=readMetadataIfPresent(_0x32fa17)?.[_0x4b98b5(0x11f)];ensurePulledFilesCanBeOverwritten(_0x2986de,_0x32fa17,_0xec54eb,_0x1c3139['force']===!![]),mkdirSync(_0x2986de,{'recursive':!![],'mode':0x1c0});const _0xdcd127=existsSync(_0x8e32c4)?readFileSync(_0x8e32c4,_0x4b98b5(0xfe)):undefined;return materializeFiles(_0x2986de,_0xec54eb),removeStaleManagedFiles(_0x2986de,_0x122e22,_0xec54eb),writeJsonAtomic(_0x32fa17,buildMetadata(_0x5064fa,_0x2079c9,_0x1c3139['appCode'],_0x48eeaa,_0x1c3139[_0x4b98b5(0xfd)],_0xec54eb,_0x5a9e7d)),{'skill':_0x5064fa,'scope':_0x2079c9,'dir':_0x2986de,'skillMdPath':_0x8e32c4,'metadataPath':_0x32fa17,'contentHash':_0x48eeaa,'changed':_0xdcd127!==_0x5dcac4};}function withMaterializedSkillFrontmatter(_0x2b15bf,_0x331f32,_0x4f3f3f){const _0x4d765c=a91_0x4940;return normalizeLocalFiles(_0x2b15bf)[_0x4d765c(0x10c)](_0x351bf8=>{const _0x2e6595=_0x4d765c,_0x21b259=fileText(_0x351bf8);if(_0x351bf8['path']!==SKILL_FILE||hasYamlFrontmatter(_0x21b259))return _0x351bf8;return{'path':_0x351bf8[_0x2e6595(0x119)],'content':prependSkillFrontmatter(_0x21b259,{'name':_0x4f3f3f,'description':_0x331f32[_0x2e6595(0x107)]?.['trim']()||_0x331f32[_0x2e6595(0x115)]?.['trim']()||_0x4f3f3f})};});}function hasYamlFrontmatter(_0x30763a){const _0x1c1b43=a91_0x4940;return/^\uFEFF?---\s*\r?\n/[_0x1c1b43(0x102)](_0x30763a);}function prependSkillFrontmatter(_0x2d90ec,_0x4b3335){const _0x4ca5b4=a91_0x4940,_0x3adc7e=_0x2d90ec[_0x4ca5b4(0x120)](/^\uFEFF/,'');return['---','name:\x20'+yamlString(_0x4b3335[_0x4ca5b4(0x11d)]),'description:\x20'+yamlString(_0x4b3335['description']),_0x4ca5b4(0x11b),'',_0x3adc7e][_0x4ca5b4(0xff)]('\x0a');}function yamlString(_0x18c0fb){const _0x16a717=a91_0x4940;return JSON[_0x16a717(0x118)](_0x18c0fb[_0x16a717(0x120)](/\r/g,'')[_0x16a717(0xfa)]());}function ensurePulledFilesCanBeOverwritten(_0x9a49cd,_0x2374d1,_0x229e0c,_0xf26d29){const _0x25600a=a91_0x4940;if(_0xf26d29||!existsSync(_0x2374d1))return;const _0x57abf7=readMetadataIfPresent(_0x2374d1);if(!_0x57abf7)return;const _0x53903f=_0x57abf7[_0x25600a(0x11f)]&&Object[_0x25600a(0x105)](_0x57abf7[_0x25600a(0x11f)])[_0x25600a(0x11a)]>0x0?_0x57abf7[_0x25600a(0x11f)]:undefined;if(_0x53903f)for(const [_0x5c4a95,_0x26646a]of Object['entries'](_0x53903f)){const _0x25de22=resolveManagedFilePath(_0x9a49cd,_0x5c4a95);if(!existsSync(_0x25de22))throw CliErrors[_0x25600a(0xfb)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x9a49cd,_0x25600a(0x104)+_0x5c4a95);const _0x907eb=lstatSync(_0x25de22);if(!_0x907eb[_0x25600a(0x10b)]())throw CliErrors['validation'](_0x25600a(0x11e)+_0x9a49cd,_0x25600a(0x103)+_0x5c4a95);const _0x4f13fc=bufferSha256(readFileSync(_0x25de22));if(_0x4f13fc!==_0x26646a)throw CliErrors[_0x25600a(0xfb)](_0x25600a(0x11e)+_0x9a49cd+_0x25600a(0x108)+_0x5c4a95,_0x25600a(0x116)+_0x5c4a95);}else{const _0x1fba4c=resolve(_0x9a49cd,SKILL_FILE);if(existsSync(_0x1fba4c)&&_0x57abf7[_0x25600a(0x111)]){const _0x1f3950=contentHash(readFileSync(_0x1fba4c,_0x25600a(0xfe)));if(_0x1f3950!==_0x57abf7[_0x25600a(0x111)])throw CliErrors[_0x25600a(0xfb)]('Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20'+_0x1fba4c,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.');}}for(const _0x296dbe of normalizeLocalFiles(_0x229e0c)){if(_0x53903f?.[_0x296dbe[_0x25600a(0x119)]])continue;if(!_0x53903f&&_0x296dbe[_0x25600a(0x119)]===SKILL_FILE)continue;const _0x5a048a=resolveManagedFilePath(_0x9a49cd,_0x296dbe[_0x25600a(0x119)]);if(!existsSync(_0x5a048a))continue;const _0x2ab743=lstatSync(_0x5a048a);if(!_0x2ab743['isFile']())throw CliErrors[_0x25600a(0xfb)](_0x25600a(0x11e)+_0x9a49cd,'Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20'+_0x296dbe['path']);const _0x32dd4f=bufferSha256(readFileSync(_0x5a048a));if(_0x32dd4f!==fileHash(_0x296dbe))throw CliErrors[_0x25600a(0xfb)](_0x25600a(0x11e)+_0x9a49cd,_0x25600a(0xfc)+_0x296dbe[_0x25600a(0x119)]);}}function materializeFiles(_0x47fa0a,_0x13e733){const _0x13e54b=a91_0x4940;for(const _0x55a712 of normalizeLocalFiles(_0x13e733)){const _0x3b6d8d=resolveManagedFilePath(_0x47fa0a,_0x55a712[_0x13e54b(0x119)]);mkdirSync(dirname(_0x3b6d8d),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x3b6d8d,fileContent(_0x55a712),0x180);}}function a91_0x4940(_0x4a48a0,_0x31ea0e){_0x4a48a0=_0x4a48a0-0xf5;const _0x44c496=a91_0x44c4();let _0x49406f=_0x44c496[_0x4a48a0];return _0x49406f;}function removeStaleManagedFiles(_0x3054c2,_0x3f91d0,_0x328af5){const _0x377d0b=a91_0x4940;if(!_0x3f91d0)return;const _0x8c1025=new Set(normalizeLocalFiles(_0x328af5)['map'](_0x52c844=>_0x52c844[_0x377d0b(0x119)]));for(const _0x2b9e7a of Object[_0x377d0b(0x105)](_0x3f91d0)){if(_0x8c1025[_0x377d0b(0x100)](_0x2b9e7a))continue;const _0x259f5b=resolveManagedFilePath(_0x3054c2,_0x2b9e7a);existsSync(_0x259f5b)&&lstatSync(_0x259f5b)['isFile']()&&rmSync(_0x259f5b,{'force':!![]});}}
1
+ (function(_0x335999,_0x59aeec){const _0x42bb8a=a91_0x350f,_0x11a782=_0x335999();while(!![]){try{const _0x5c978b=-parseInt(_0x42bb8a(0x11e))/0x1*(-parseInt(_0x42bb8a(0x11b))/0x2)+-parseInt(_0x42bb8a(0x131))/0x3*(-parseInt(_0x42bb8a(0x13f))/0x4)+parseInt(_0x42bb8a(0x132))/0x5*(-parseInt(_0x42bb8a(0x146))/0x6)+parseInt(_0x42bb8a(0x139))/0x7*(parseInt(_0x42bb8a(0x143))/0x8)+parseInt(_0x42bb8a(0x126))/0x9*(parseInt(_0x42bb8a(0x122))/0xa)+-parseInt(_0x42bb8a(0x13c))/0xb*(-parseInt(_0x42bb8a(0x142))/0xc)+-parseInt(_0x42bb8a(0x13e))/0xd;if(_0x5c978b===_0x59aeec)break;else _0x11a782['push'](_0x11a782['shift']());}catch(_0x53d0dd){_0x11a782['push'](_0x11a782['shift']());}}}(a91_0x3976,0xd50c6));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';function a91_0x350f(_0x1d2b15,_0xae25d1){_0x1d2b15=_0x1d2b15-0x11a;const _0x3976c9=a91_0x3976();let _0x350f22=_0x3976c9[_0x1d2b15];return _0x350f22;}import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';function a91_0x3976(){const _0x2c8f1b=['stringify','contentHash','pulledAt','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','82572yLzxMA','878995GAnggY','name:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','.\x20Changed\x20file:\x20','env','utf8','Runtime\x20Skill\x20package\x20is\x20missing\x20','7FwAauA','appCode','length','6295949QexhXI','trim','50993553hVyVGr','76jbuCFp','---','name','12AfZxBN','10686008timeGa','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','description','12nLrnfZ','fileHashes','170BTeArQ','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','path','13724sydOVD','keys','join','force','70EpiuNn','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','skillName','validation','1991853CqXHTt','map','find','replace','Managed\x20file\x20was\x20removed\x20locally:\x20','packageBytes'];a91_0x3976=function(){return _0x2c8f1b;};return a91_0x3976();}export function materializeRuntimeSkill(_0x5a07ed,_0x140f34,_0x27c88a){const _0x44e48c=a91_0x350f,_0x24c30f=requireSkillCode(_0x5a07ed),_0x1222fc=requirePackageBytes(_0x24c30f,_0x27c88a[_0x44e48c(0x12b)]),_0x40ebc5=extractDownloadedPackage(_0x1222fc),_0x5a3149=_0x40ebc5[_0x44e48c(0x128)](_0x2bada5=>_0x2bada5[_0x44e48c(0x11d)]===SKILL_FILE);if(!_0x5a3149)throw CliErrors[_0x44e48c(0x125)](_0x44e48c(0x138)+SKILL_FILE+':\x20'+_0x24c30f);const _0x1449dd=withMaterializedSkillFrontmatter(_0x40ebc5,_0x5a07ed,_0x24c30f),_0x2ee97c=_0x1449dd[_0x44e48c(0x128)](_0x503e0e=>_0x503e0e['path']===SKILL_FILE),_0x35de69=fileText(_0x2ee97c),_0x3d4317=getRuntimeSkillDir(_0x27c88a[_0x44e48c(0x136)],_0x27c88a['accessKey'],_0x27c88a[_0x44e48c(0x13a)],_0x140f34,_0x24c30f,_0x27c88a['paths']),_0x4ba305=resolve(_0x3d4317,SKILL_FILE),_0x46747f=resolve(_0x3d4317,METADATA_FILE),_0x2bff3a=contentHash(_0x35de69),_0x340335=readMetadataIfPresent(_0x46747f)?.['fileHashes'];ensurePulledFilesCanBeOverwritten(_0x3d4317,_0x46747f,_0x1449dd,_0x27c88a[_0x44e48c(0x121)]===!![]),mkdirSync(_0x3d4317,{'recursive':!![],'mode':0x1c0});const _0x48a5f3=existsSync(_0x4ba305)?readFileSync(_0x4ba305,_0x44e48c(0x137)):undefined;return materializeFiles(_0x3d4317,_0x1449dd),removeStaleManagedFiles(_0x3d4317,_0x340335,_0x1449dd),writeJsonAtomic(_0x46747f,buildMetadata(_0x5a07ed,_0x140f34,_0x27c88a[_0x44e48c(0x13a)],_0x2bff3a,_0x27c88a[_0x44e48c(0x12e)],_0x1449dd,_0x1222fc)),{'skill':_0x5a07ed,'scope':_0x140f34,'dir':_0x3d4317,'skillMdPath':_0x4ba305,'metadataPath':_0x46747f,'contentHash':_0x2bff3a,'changed':_0x48a5f3!==_0x35de69};}function withMaterializedSkillFrontmatter(_0x3d85e3,_0x4a193b,_0x1e1e1f){const _0x538827=a91_0x350f;return normalizeLocalFiles(_0x3d85e3)[_0x538827(0x127)](_0x2d43c5=>{const _0x45f53b=_0x538827,_0x407420=fileText(_0x2d43c5);if(_0x2d43c5['path']!==SKILL_FILE||hasYamlFrontmatter(_0x407420))return _0x2d43c5;return{'path':_0x2d43c5['path'],'content':prependSkillFrontmatter(_0x407420,{'name':_0x1e1e1f,'description':_0x4a193b[_0x45f53b(0x145)]?.[_0x45f53b(0x13d)]()||_0x4a193b[_0x45f53b(0x124)]?.[_0x45f53b(0x13d)]()||_0x1e1e1f})};});}function hasYamlFrontmatter(_0x29470a){return/^\uFEFF?---\s*\r?\n/['test'](_0x29470a);}function prependSkillFrontmatter(_0x44b3cf,_0x161e25){const _0x380b48=a91_0x350f,_0x2d7d46=_0x44b3cf['replace'](/^\uFEFF/,'');return[_0x380b48(0x140),_0x380b48(0x133)+yamlString(_0x161e25[_0x380b48(0x141)]),'description:\x20'+yamlString(_0x161e25[_0x380b48(0x145)]),_0x380b48(0x140),'',_0x2d7d46][_0x380b48(0x120)]('\x0a');}function yamlString(_0x4d6b7c){const _0x433fd9=a91_0x350f;return JSON[_0x433fd9(0x12c)](_0x4d6b7c[_0x433fd9(0x129)](/\r/g,'')[_0x433fd9(0x13d)]());}function ensurePulledFilesCanBeOverwritten(_0x420a86,_0x5865c5,_0x45dce3,_0x4c9c9e){const _0x5c85bc=a91_0x350f;if(_0x4c9c9e||!existsSync(_0x5865c5))return;const _0x96cba=readMetadataIfPresent(_0x5865c5);if(!_0x96cba)return;const _0x59f1d4=_0x96cba[_0x5c85bc(0x11a)]&&Object['keys'](_0x96cba[_0x5c85bc(0x11a)])[_0x5c85bc(0x13b)]>0x0?_0x96cba['fileHashes']:undefined;if(_0x59f1d4)for(const [_0x2f76b3,_0x1e7702]of Object['entries'](_0x59f1d4)){const _0x1f68a6=resolveManagedFilePath(_0x420a86,_0x2f76b3);if(!existsSync(_0x1f68a6))throw CliErrors[_0x5c85bc(0x125)](_0x5c85bc(0x134)+_0x420a86,_0x5c85bc(0x12a)+_0x2f76b3);const _0x230b99=lstatSync(_0x1f68a6);if(!_0x230b99['isFile']())throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x420a86,_0x5c85bc(0x11c)+_0x2f76b3);const _0x572dd3=bufferSha256(readFileSync(_0x1f68a6));if(_0x572dd3!==_0x1e7702)throw CliErrors[_0x5c85bc(0x125)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x420a86+_0x5c85bc(0x135)+_0x2f76b3,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'+_0x2f76b3);}else{const _0x5b55f8=resolve(_0x420a86,SKILL_FILE);if(existsSync(_0x5b55f8)&&_0x96cba[_0x5c85bc(0x12d)]){const _0x5cc90a=contentHash(readFileSync(_0x5b55f8,'utf8'));if(_0x5cc90a!==_0x96cba[_0x5c85bc(0x12d)])throw CliErrors[_0x5c85bc(0x125)](_0x5c85bc(0x123)+_0x5b55f8,_0x5c85bc(0x144));}}for(const _0x630e1e of normalizeLocalFiles(_0x45dce3)){if(_0x59f1d4?.[_0x630e1e[_0x5c85bc(0x11d)]])continue;if(!_0x59f1d4&&_0x630e1e[_0x5c85bc(0x11d)]===SKILL_FILE)continue;const _0xc915a0=resolveManagedFilePath(_0x420a86,_0x630e1e['path']);if(!existsSync(_0xc915a0))continue;const _0xc77f14=lstatSync(_0xc915a0);if(!_0xc77f14['isFile']())throw CliErrors[_0x5c85bc(0x125)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x420a86,_0x5c85bc(0x130)+_0x630e1e[_0x5c85bc(0x11d)]);const _0x434065=bufferSha256(readFileSync(_0xc915a0));if(_0x434065!==fileHash(_0x630e1e))throw CliErrors['validation'](_0x5c85bc(0x134)+_0x420a86,_0x5c85bc(0x12f)+_0x630e1e[_0x5c85bc(0x11d)]);}}function materializeFiles(_0x48c2f0,_0x5315d3){const _0x299019=a91_0x350f;for(const _0x2e3b67 of normalizeLocalFiles(_0x5315d3)){const _0x5b2638=resolveManagedFilePath(_0x48c2f0,_0x2e3b67[_0x299019(0x11d)]);mkdirSync(dirname(_0x5b2638),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x5b2638,fileContent(_0x2e3b67),0x180);}}function removeStaleManagedFiles(_0x2cdc67,_0x5e72ba,_0x116238){const _0x253922=a91_0x350f;if(!_0x5e72ba)return;const _0xa5a4ad=new Set(normalizeLocalFiles(_0x116238)[_0x253922(0x127)](_0x36ff5a=>_0x36ff5a[_0x253922(0x11d)]));for(const _0x55621c of Object[_0x253922(0x11f)](_0x5e72ba)){if(_0xa5a4ad['has'](_0x55621c))continue;const _0x205ff5=resolveManagedFilePath(_0x2cdc67,_0x55621c);existsSync(_0x205ff5)&&lstatSync(_0x205ff5)['isFile']()&&rmSync(_0x205ff5,{'force':!![]});}}
@@ -1 +1 @@
1
- (function(_0x2c185e,_0x27ffd3){const _0x523641=a92_0x4b98,_0x3e4e7a=_0x2c185e();while(!![]){try{const _0x4b5285=-parseInt(_0x523641(0x178))/0x1*(-parseInt(_0x523641(0x189))/0x2)+parseInt(_0x523641(0x18a))/0x3+-parseInt(_0x523641(0x177))/0x4+parseInt(_0x523641(0x172))/0x5+parseInt(_0x523641(0x171))/0x6*(parseInt(_0x523641(0x184))/0x7)+parseInt(_0x523641(0x17a))/0x8*(parseInt(_0x523641(0x180))/0x9)+-parseInt(_0x523641(0x17c))/0xa;if(_0x4b5285===_0x27ffd3)break;else _0x3e4e7a['push'](_0x3e4e7a['shift']());}catch(_0x4bf0f4){_0x3e4e7a['push'](_0x3e4e7a['shift']());}}}(a92_0x5dc5,0xc3cab));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a92_0x4b98(_0x547c58,_0x384b81){_0x547c58=_0x547c58-0x16f;const _0x5dc5f8=a92_0x5dc5();let _0x4b984e=_0x5dc5f8[_0x547c58];return _0x4b984e;}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';function a92_0x5dc5(){const _0x7f54ce=['path','map','string','zipSize','object','personal','skillName','36FFEIbh','4128605lkUIGt','files','tenantCode','length','manifest','1270480qSPFfV','38803ZMiJsL','hasUpstreamUpdate','464byuvsG','utf8','37710550WLVCsy','zipSha256','Runtime\x20Skill\x20is\x20missing\x20skillCode.','description','143919rhUPGa','trim','tags','isArray','1782389iSsuTx','userId','forkedFromSkillId','validation','ossPath','34bgFNDI','2850078sLQaBE'];a92_0x5dc5=function(){return _0x7f54ce;};return a92_0x5dc5();}export function buildMetadata(_0x43b483,_0x38bb29,_0x5efb51,_0x434396,_0x1357f1,_0x2c00b2,_0x11ce7c){const _0x13c5aa=a92_0x4b98,_0x25587f=_0x2c00b2?normalizeLocalFiles(_0x2c00b2):[],_0x5848ae=!_0x11ce7c&&_0x25587f[_0x13c5aa(0x175)]>0x0?buildSkillPackage(_0x25587f):undefined,_0x468b78=_0x11ce7c?bufferSha256(_0x11ce7c):_0x5848ae?.[_0x13c5aa(0x176)][_0x13c5aa(0x17d)],_0x3a3f9d=_0x11ce7c?.[_0x13c5aa(0x175)]??_0x5848ae?.[_0x13c5aa(0x176)][_0x13c5aa(0x18e)],_0xf2f6e8=_0x25587f['length']>0x0?Object['fromEntries'](_0x25587f[_0x13c5aa(0x18c)](_0x54fac2=>[_0x54fac2[_0x13c5aa(0x18b)],fileHash(_0x54fac2)])):undefined;return{'schemaVersion':_0x25587f[_0x13c5aa(0x175)]>0x0?0x2:0x1,'id':_0x43b483['id'],'appCode':_0x5efb51,'skillCode':requireSkillCode(_0x43b483),'skillName':_0x43b483[_0x13c5aa(0x170)],'description':_0x43b483[_0x13c5aa(0x17f)],'scope':_0x38bb29,'readonly':_0x38bb29!==_0x13c5aa(0x16f)||_0x43b483['readonly']===!![],'tenantCode':_0x43b483[_0x13c5aa(0x174)],'userId':_0x43b483[_0x13c5aa(0x185)],'version':_0x43b483['version'],'status':_0x43b483['status'],'tags':Array[_0x13c5aa(0x183)](_0x43b483[_0x13c5aa(0x182)])?_0x43b483['tags']:[],'hasUpstreamUpdate':_0x43b483[_0x13c5aa(0x179)],'forkedFromSkillId':_0x43b483[_0x13c5aa(0x186)],'forkedFromVersion':_0x43b483['forkedFromVersion'],'sourceSessionId':_0x43b483['sourceSessionId'],'contentHash':_0x434396,'fileHashes':_0xf2f6e8,'treeHash':_0x25587f[_0x13c5aa(0x175)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x25587f)):undefined,'ossPath':remoteManifestOssPath(_0x43b483[_0x13c5aa(0x173)]),'zipSha256':_0x468b78,'zipSize':_0x3a3f9d,'files':_0x25587f[_0x13c5aa(0x175)]>0x0?_0x25587f[_0x13c5aa(0x18c)](_0x1a743e=>({'path':_0x1a743e[_0x13c5aa(0x18b)],'hash':fileHash(_0x1a743e),'size':fileContent(_0x1a743e)[_0x13c5aa(0x175)]})):undefined,'pulledAt':_0x1357f1??new Date()['toISOString']()};}export function requireSkillCode(_0xa739ce){const _0x26b374=a92_0x4b98,_0x1bd16d=_0xa739ce['skillCode']?.['trim']();if(!_0x1bd16d)throw CliErrors[_0x26b374(0x187)](_0x26b374(0x17e));return _0x1bd16d;}export function readMetadataIfPresent(_0x405524){const _0x21ec48=a92_0x4b98;if(!existsSync(_0x405524))return undefined;try{const _0x25b12a=JSON['parse'](readFileSync(_0x405524,_0x21ec48(0x17b)));return _0x25b12a;}catch{throw CliErrors[_0x21ec48(0x187)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x405524);}}function remoteManifestOssPath(_0x56181c){const _0x16f234=a92_0x4b98;if(!_0x56181c||typeof _0x56181c!==_0x16f234(0x18f)||Array[_0x16f234(0x183)](_0x56181c))return undefined;const _0x5c6579=_0x56181c[_0x16f234(0x188)];return typeof _0x5c6579===_0x16f234(0x18d)&&_0x5c6579['trim']()?_0x5c6579[_0x16f234(0x181)]():undefined;}
1
+ (function(_0x1a8f13,_0xb3989c){const _0x4e9b06=a92_0x1623,_0x22a6a9=_0x1a8f13();while(!![]){try{const _0x3c761f=parseInt(_0x4e9b06(0x1ba))/0x1*(parseInt(_0x4e9b06(0x1c3))/0x2)+parseInt(_0x4e9b06(0x1b6))/0x3+-parseInt(_0x4e9b06(0x1c7))/0x4+-parseInt(_0x4e9b06(0x1ae))/0x5*(parseInt(_0x4e9b06(0x1b5))/0x6)+parseInt(_0x4e9b06(0x1cc))/0x7*(-parseInt(_0x4e9b06(0x1b9))/0x8)+-parseInt(_0x4e9b06(0x1b7))/0x9+parseInt(_0x4e9b06(0x1c6))/0xa*(parseInt(_0x4e9b06(0x1b1))/0xb);if(_0x3c761f===_0xb3989c)break;else _0x22a6a9['push'](_0x22a6a9['shift']());}catch(_0x43c8b8){_0x22a6a9['push'](_0x22a6a9['shift']());}}}(a92_0x4db2,0x1b75f));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_0x1623(_0x758f89,_0xde4e9e){_0x758f89=_0x758f89-0x1ab;const _0x4db222=a92_0x4db2();let _0x16230d=_0x4db222[_0x758f89];return _0x16230d;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x5385da,_0x53758a,_0x3c6001,_0x4033a8,_0x2b82b9,_0x22cf4f,_0x2f695b){const _0x2c2ce1=a92_0x1623,_0x45e838=_0x22cf4f?normalizeLocalFiles(_0x22cf4f):[],_0x1ab450=!_0x2f695b&&_0x45e838['length']>0x0?buildSkillPackage(_0x45e838):undefined,_0x3c4c60=_0x2f695b?bufferSha256(_0x2f695b):_0x1ab450?.[_0x2c2ce1(0x1b3)]['zipSha256'],_0x339294=_0x2f695b?.[_0x2c2ce1(0x1bd)]??_0x1ab450?.[_0x2c2ce1(0x1b3)][_0x2c2ce1(0x1b0)],_0x2d8ffb=_0x45e838[_0x2c2ce1(0x1bd)]>0x0?Object['fromEntries'](_0x45e838['map'](_0x5448f0=>[_0x5448f0[_0x2c2ce1(0x1ad)],fileHash(_0x5448f0)])):undefined;return{'schemaVersion':_0x45e838[_0x2c2ce1(0x1bd)]>0x0?0x2:0x1,'id':_0x5385da['id'],'appCode':_0x3c6001,'skillCode':requireSkillCode(_0x5385da),'skillName':_0x5385da[_0x2c2ce1(0x1c2)],'description':_0x5385da[_0x2c2ce1(0x1be)],'scope':_0x53758a,'readonly':_0x53758a!=='personal'||_0x5385da[_0x2c2ce1(0x1c8)]===!![],'tenantCode':_0x5385da[_0x2c2ce1(0x1c0)],'userId':_0x5385da[_0x2c2ce1(0x1cb)],'version':_0x5385da[_0x2c2ce1(0x1bf)],'status':_0x5385da[_0x2c2ce1(0x1ac)],'tags':Array[_0x2c2ce1(0x1af)](_0x5385da[_0x2c2ce1(0x1b4)])?_0x5385da[_0x2c2ce1(0x1b4)]:[],'hasUpstreamUpdate':_0x5385da[_0x2c2ce1(0x1c9)],'forkedFromSkillId':_0x5385da['forkedFromSkillId'],'forkedFromVersion':_0x5385da['forkedFromVersion'],'sourceSessionId':_0x5385da[_0x2c2ce1(0x1c4)],'contentHash':_0x4033a8,'fileHashes':_0x2d8ffb,'treeHash':_0x45e838[_0x2c2ce1(0x1bd)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x45e838)):undefined,'ossPath':remoteManifestOssPath(_0x5385da[_0x2c2ce1(0x1bc)]),'zipSha256':_0x3c4c60,'zipSize':_0x339294,'files':_0x45e838[_0x2c2ce1(0x1bd)]>0x0?_0x45e838['map'](_0x56d99d=>({'path':_0x56d99d[_0x2c2ce1(0x1ad)],'hash':fileHash(_0x56d99d),'size':fileContent(_0x56d99d)['length']})):undefined,'pulledAt':_0x2b82b9??new Date()[_0x2c2ce1(0x1b2)]()};}export function requireSkillCode(_0x507496){const _0x3835ea=_0x507496['skillCode']?.['trim']();if(!_0x3835ea)throw CliErrors['validation']('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0x3835ea;}export function readMetadataIfPresent(_0x2dceaf){const _0x21dc74=a92_0x1623;if(!existsSync(_0x2dceaf))return undefined;try{const _0x51e8aa=JSON[_0x21dc74(0x1b8)](readFileSync(_0x2dceaf,'utf8'));return _0x51e8aa;}catch{throw CliErrors[_0x21dc74(0x1c1)](_0x21dc74(0x1c5)+METADATA_FILE+':\x20'+_0x2dceaf);}}function remoteManifestOssPath(_0x4d3d3a){const _0x403093=a92_0x1623;if(!_0x4d3d3a||typeof _0x4d3d3a!==_0x403093(0x1bb)||Array[_0x403093(0x1af)](_0x4d3d3a))return undefined;const _0x3dae4a=_0x4d3d3a[_0x403093(0x1ab)];return typeof _0x3dae4a==='string'&&_0x3dae4a[_0x403093(0x1ca)]()?_0x3dae4a[_0x403093(0x1ca)]():undefined;}function a92_0x4db2(){const _0x8f4001=['sourceSessionId','Invalid\x20','20100ZPrnTJ','307644gBOnWO','readonly','hasUpstreamUpdate','trim','userId','381493iyWBQl','ossPath','status','path','5ZggSmK','isArray','zipSize','44fTSSgT','toISOString','manifest','tags','333948BoKQYT','440316JYnhJt','532989IzaJLY','parse','8RGewMn','4ySMTzQ','object','files','length','description','version','tenantCode','validation','skillName','101978KfYkbS'];a92_0x4db2=function(){return _0x8f4001;};return a92_0x4db2();}
@@ -1 +1 @@
1
- const a93_0x29a3d6=a93_0x5cf1;(function(_0x5d413e,_0x5840e9){const _0x343ee6=a93_0x5cf1,_0x3e1644=_0x5d413e();while(!![]){try{const _0x15c083=parseInt(_0x343ee6(0x197))/0x1+parseInt(_0x343ee6(0x18f))/0x2*(-parseInt(_0x343ee6(0x18c))/0x3)+-parseInt(_0x343ee6(0x18b))/0x4*(parseInt(_0x343ee6(0x19a))/0x5)+-parseInt(_0x343ee6(0x19b))/0x6+parseInt(_0x343ee6(0x187))/0x7+-parseInt(_0x343ee6(0x196))/0x8+-parseInt(_0x343ee6(0x199))/0x9*(-parseInt(_0x343ee6(0x195))/0xa);if(_0x15c083===_0x5840e9)break;else _0x3e1644['push'](_0x3e1644['shift']());}catch(_0x5021ec){_0x3e1644['push'](_0x3e1644['shift']());}}}(a93_0x2efd,0x85950));import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';function a93_0x2efd(){const _0x56eac3=['.agents','CLAUDE_SKILL_ROOT','path\x20segment','agentsSkillsDir','10dsoDAV','7929256GHQOAS','256049EMxHtk','includes','23277753yPpxll','5LePbOd','5487084VzGoLn','skillCode','validation','SKILL_ROOT','homeDirName','6749883FhGhDQ','skills','appCode','cache','2785304mYKuEA','10014wrkJAK','trim','homeDir','394phycyx','\x20for\x20local\x20path:\x20'];a93_0x2efd=function(){return _0x56eac3;};return a93_0x2efd();}import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x4ab89e={}){const _0x264f3c=a93_0x5cf1,_0x549a32=_0x4ab89e[_0x264f3c(0x18e)]??homedir(),_0x495ccf=resolve(_0x549a32,PRODUCT_CONFIG[_0x264f3c(0x186)],_0x264f3c(0x18a)),_0x5b5f16=trimmedEnv(_0x264f3c(0x185)),_0x5cdfce=trimmedEnv(_0x264f3c(0x192));return{'homeDir':_0x549a32,'cacheRoot':_0x495ccf,'managedRoot':resolve(_0x549a32,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0x4ab89e[_0x264f3c(0x194)]??_0x5b5f16??resolve(_0x549a32,_0x264f3c(0x191),_0x264f3c(0x188)),'claudeSkillsDir':_0x4ab89e['claudeSkillsDir']??_0x5cdfce??resolve(_0x549a32,'.claude',_0x264f3c(0x188))};}export function getRuntimeSkillCacheRoot(_0xb000a0,_0x305f1c,_0x20afdc={}){const _0x6d0288=resolveSkillSyncPaths(_0x20afdc);return resolve(_0x6d0288['cacheRoot'],_0xb000a0,fingerprintAccessKey(_0x305f1c),'skills');}export function getRuntimeSkillDir(_0x5d24fc,_0x242037,_0x4a1cc7,_0x24296e,_0x1c781d,_0x22e2ce={}){const _0x10a3b8=a93_0x5cf1;return resolve(getRuntimeSkillCacheRoot(_0x5d24fc,_0x242037,_0x22e2ce),safePathSegment(_0x4a1cc7,_0x10a3b8(0x189)),_0x24296e,safePathSegment(_0x1c781d,_0x10a3b8(0x183)));}export function safePathSegment(_0x4d6b45,_0x10d495=a93_0x29a3d6(0x193)){const _0x38da5f=a93_0x29a3d6;if(!_0x4d6b45||_0x4d6b45[_0x38da5f(0x198)]('/')||_0x4d6b45[_0x38da5f(0x198)]('\x5c')||_0x4d6b45[_0x38da5f(0x198)]('..'))throw CliErrors[_0x38da5f(0x184)]('Unsafe\x20'+_0x10d495+_0x38da5f(0x190)+_0x4d6b45);return _0x4d6b45;}function a93_0x5cf1(_0xfc851b,_0x19af7d){_0xfc851b=_0xfc851b-0x183;const _0x2efda8=a93_0x2efd();let _0x5cf1a1=_0x2efda8[_0xfc851b];return _0x5cf1a1;}function trimmedEnv(_0xc7b413){const _0x31109e=a93_0x29a3d6,_0x49c625=productEnv(_0xc7b413)?.[_0x31109e(0x18d)]();return _0x49c625?_0x49c625:undefined;}
1
+ const a93_0x274dc2=a93_0x8b18;function a93_0x8b18(_0xb446d,_0x26c2ed){_0xb446d=_0xb446d-0x105;const _0x282cbf=a93_0x282c();let _0x8b186f=_0x282cbf[_0xb446d];return _0x8b186f;}(function(_0x1ac11d,_0x43d110){const _0x2e1a8c=a93_0x8b18,_0x33ee3e=_0x1ac11d();while(!![]){try{const _0x27f357=parseInt(_0x2e1a8c(0x117))/0x1+parseInt(_0x2e1a8c(0x11b))/0x2+-parseInt(_0x2e1a8c(0x106))/0x3+parseInt(_0x2e1a8c(0x110))/0x4+parseInt(_0x2e1a8c(0x119))/0x5+-parseInt(_0x2e1a8c(0x118))/0x6*(-parseInt(_0x2e1a8c(0x113))/0x7)+parseInt(_0x2e1a8c(0x111))/0x8*(-parseInt(_0x2e1a8c(0x116))/0x9);if(_0x27f357===_0x43d110)break;else _0x33ee3e['push'](_0x33ee3e['shift']());}catch(_0x1f03a3){_0x33ee3e['push'](_0x33ee3e['shift']());}}}(a93_0x282c,0xc6cb0));import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';function a93_0x282c(){const _0x5d4e7b=['skills','.agents','agentsSkillsDir','path\x20segment','appCode','CLAUDE_SKILL_ROOT','.claude','cacheRoot','4973220jWLIIW','829560CxbDaw','cache','674261TSsALz','homeDirName','\x20for\x20local\x20path:\x20','171vWyVLV','601364rcvSkI','84dVyeYm','326370KEZLsa','trim','240222fAhDcu','validation','1782345yxRQLW','includes'];a93_0x282c=function(){return _0x5d4e7b;};return a93_0x282c();}import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0xf39af3={}){const _0x2471bd=a93_0x8b18,_0x5cb1bb=_0xf39af3['homeDir']??homedir(),_0x2fbeaf=resolve(_0x5cb1bb,PRODUCT_CONFIG[_0x2471bd(0x114)],_0x2471bd(0x112)),_0x548b86=trimmedEnv('SKILL_ROOT'),_0x556c1a=trimmedEnv(_0x2471bd(0x10d));return{'homeDir':_0x5cb1bb,'cacheRoot':_0x2fbeaf,'managedRoot':resolve(_0x5cb1bb,PRODUCT_CONFIG[_0x2471bd(0x114)]),'agentsSkillsDir':_0xf39af3[_0x2471bd(0x10a)]??_0x548b86??resolve(_0x5cb1bb,_0x2471bd(0x109),_0x2471bd(0x108)),'claudeSkillsDir':_0xf39af3['claudeSkillsDir']??_0x556c1a??resolve(_0x5cb1bb,_0x2471bd(0x10e),_0x2471bd(0x108))};}export function getRuntimeSkillCacheRoot(_0x2a168d,_0x2a431d,_0x457b9a={}){const _0x49afe8=a93_0x8b18,_0x3a9c90=resolveSkillSyncPaths(_0x457b9a);return resolve(_0x3a9c90[_0x49afe8(0x10f)],_0x2a168d,fingerprintAccessKey(_0x2a431d),'skills');}export function getRuntimeSkillDir(_0x12e9ca,_0x40889b,_0x208081,_0x1e4c83,_0x332091,_0x25fa8c={}){const _0xbd2eac=a93_0x8b18;return resolve(getRuntimeSkillCacheRoot(_0x12e9ca,_0x40889b,_0x25fa8c),safePathSegment(_0x208081,_0xbd2eac(0x10c)),_0x1e4c83,safePathSegment(_0x332091,'skillCode'));}export function safePathSegment(_0x5e696b,_0x49d387=a93_0x274dc2(0x10b)){const _0x7b244f=a93_0x274dc2;if(!_0x5e696b||_0x5e696b[_0x7b244f(0x107)]('/')||_0x5e696b['includes']('\x5c')||_0x5e696b['includes']('..'))throw CliErrors[_0x7b244f(0x105)]('Unsafe\x20'+_0x49d387+_0x7b244f(0x115)+_0x5e696b);return _0x5e696b;}function trimmedEnv(_0x547058){const _0x5c6029=a93_0x274dc2,_0x35064f=productEnv(_0x547058)?.[_0x5c6029(0x11a)]();return _0x35064f?_0x35064f:undefined;}
@@ -1 +1 @@
1
- function a94_0x4e3b(){const _0x15e8ca=['packageBase64','isSymbolicLink','Skill\x20directory\x20not\x20found:\x20','description','\x20or\x20directory\x20name.','files','17557553DsEJhk','isFile','length','55otRYvJ','skillName','content','appCode','6nQRick','1348jzJJPz','tags','pushedAt','startsWith','Unable\x20to\x20resolve\x20skillCode\x20from\x20','\x20has\x20scope=\x22','6672708WrmIcz','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','validation','133984OPeUwd','personal','783Oolaxg','21IXxHZW','skillCode','path','1751580SuUCWT','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','12zDoLeI','manifest','scope','utf8','51830VImMXM','slice','isDirectory','Missing\x20','236186ZXeWLk','12MXwPCQ','Skill\x20metadata\x20appCode\x20\x22'];a94_0x4e3b=function(){return _0x15e8ca;};return a94_0x4e3b();}(function(_0x2fc08e,_0x2ad343){const _0x3ef2e5=a94_0x11f9,_0x3d6ad5=_0x2fc08e();while(!![]){try{const _0x4d1dea=-parseInt(_0x3ef2e5(0x8f))/0x1*(parseInt(_0x3ef2e5(0x9f))/0x2)+-parseInt(_0x3ef2e5(0xab))/0x3*(-parseInt(_0x3ef2e5(0xa0))/0x4)+-parseInt(_0x3ef2e5(0xaf))/0x5*(-parseInt(_0x3ef2e5(0x90))/0x6)+-parseInt(_0x3ef2e5(0xac))/0x7*(-parseInt(_0x3ef2e5(0xa9))/0x8)+-parseInt(_0x3ef2e5(0xa6))/0x9+-parseInt(_0x3ef2e5(0xb5))/0xa*(parseInt(_0x3ef2e5(0x9b))/0xb)+parseInt(_0x3ef2e5(0xb1))/0xc*(parseInt(_0x3ef2e5(0x98))/0xd);if(_0x4d1dea===_0x2ad343)break;else _0x3d6ad5['push'](_0x3d6ad5['shift']());}catch(_0x19bd52){_0x3d6ad5['push'](_0x3d6ad5['shift']());}}}(a94_0x4e3b,0xae339));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';function a94_0x11f9(_0x4815a1,_0x4252ef){_0x4815a1=_0x4815a1-0x8e;const _0x4e3b23=a94_0x4e3b();let _0x11f919=_0x4e3b23[_0x4815a1];return _0x11f919;}export function readPushDirectory(_0x1715ab,_0x347220){const _0x30e705=a94_0x11f9,_0x43aae0=resolvePushDirectoryRoot(_0x1715ab),_0x2ddf97=resolve(_0x43aae0,SKILL_FILE);if(!existsSync(_0x2ddf97)||!lstatSync(_0x2ddf97)[_0x30e705(0x99)]())throw CliErrors[_0x30e705(0xa8)](_0x30e705(0x8e)+SKILL_FILE+':\x20'+_0x2ddf97);const _0x2cf65b=readMetadataIfPresent(resolve(_0x43aae0,METADATA_FILE));if(_0x2cf65b?.['scope']&&_0x2cf65b[_0x30e705(0xb3)]!==_0x30e705(0xaa))throw CliErrors[_0x30e705(0xa8)](_0x30e705(0xb0)+METADATA_FILE+_0x30e705(0xa5)+_0x2cf65b[_0x30e705(0xb3)]+'\x22.');if(_0x2cf65b?.['appCode']&&_0x2cf65b[_0x30e705(0x9e)]!==_0x347220)throw CliErrors['validation'](_0x30e705(0x91)+_0x2cf65b['appCode']+_0x30e705(0xa7)+_0x347220+'\x22.');const _0x323b75=scanSkillDirectory(_0x43aae0),_0x45a504=buildSkillPackage(_0x323b75),_0x5417f5=readFileSync(_0x2ddf97,_0x30e705(0xb4)),_0x487b24=_0x2cf65b?.[_0x30e705(0xad)]??deriveSkillCodeFromDirectory(_0x43aae0,_0x347220);if(!_0x487b24)throw CliErrors['validation'](_0x30e705(0xa4)+METADATA_FILE+_0x30e705(0x96));return{'skillCode':_0x487b24,'metadata':_0x2cf65b,'input':{'skillCode':_0x487b24,'skillName':_0x2cf65b?.[_0x30e705(0x9c)],'description':_0x2cf65b?.[_0x30e705(0x95)],'content':_0x5417f5,'files':_0x45a504[_0x30e705(0xb2)],'packageBase64':_0x45a504[_0x30e705(0x92)],'tags':_0x2cf65b?.[_0x30e705(0xa1)],'version':_0x2cf65b?.['version'],'sourceSessionId':_0x2cf65b?.['sourceSessionId']}};}export function recordPushedRuntimeSkill(_0x323579,_0x36e569,_0x1d3d43,_0x4e6b3b={}){const _0x571076=a94_0x11f9,_0x8d01d7=resolvePushDirectoryRoot(_0x323579),_0x1a62f5=scanSkillDirectory(_0x8d01d7),_0x213240=_0x1a62f5['find'](_0x624b55=>_0x624b55[_0x571076(0xae)]===SKILL_FILE),_0x20a9d1=_0x213240?fileText(_0x213240):'',_0x4b9f50=tryNormalizePackageManifest(_0x36e569[_0x571076(0x97)]),_0x37e549={..._0x36e569,'content':_0x36e569[_0x571076(0x9d)]??_0x20a9d1,'files':_0x4b9f50},_0x459f93=_0x4b9f50?normalizeLocalFiles(_0x1a62f5)['filter'](_0x39dcc7=>_0x4b9f50['files']['some'](_0x3ae30b=>_0x3ae30b[_0x571076(0xae)]===_0x39dcc7[_0x571076(0xae)])):undefined,_0x2f08ac=buildMetadata(_0x37e549,_0x4e6b3b[_0x571076(0xb3)]??_0x571076(0xaa),_0x1d3d43,contentHash(_0x37e549[_0x571076(0x9d)]??''),_0x4e6b3b[_0x571076(0xa2)],_0x459f93);writeJsonAtomic(resolve(_0x8d01d7,METADATA_FILE),_0x2f08ac);}export function deriveSkillCodeFromDirectory(_0x27a84e,_0x32c0c9){const _0x298f3c=a94_0x11f9,_0x2a4021=basename(resolve(_0x27a84e)),_0x23aa95=_0x32c0c9+'--';return _0x2a4021[_0x298f3c(0xa3)](_0x23aa95)?_0x2a4021[_0x298f3c(0xb6)](_0x23aa95[_0x298f3c(0x9a)]):_0x2a4021;}function resolvePushDirectoryRoot(_0x4bfdc7){const _0x15965d=a94_0x11f9,_0x499ba9=resolve(_0x4bfdc7);if(!existsSync(_0x499ba9))throw CliErrors[_0x15965d(0xa8)](_0x15965d(0x94)+_0x4bfdc7);const _0x3e424f=lstatSync(_0x499ba9);if(_0x3e424f['isDirectory']())return _0x499ba9;if(_0x3e424f[_0x15965d(0x93)]()){const _0x2f21e5=realpathSync(_0x499ba9);if(lstatSync(_0x2f21e5)[_0x15965d(0xb7)]())return _0x2f21e5;}throw CliErrors[_0x15965d(0xa8)]('Skill\x20directory\x20not\x20found:\x20'+_0x4bfdc7);}
1
+ (function(_0x532684,_0x21e394){const _0x769178=a94_0x3c5c,_0x911329=_0x532684();while(!![]){try{const _0x3c2140=parseInt(_0x769178(0x1f7))/0x1*(-parseInt(_0x769178(0x1e3))/0x2)+parseInt(_0x769178(0x203))/0x3*(parseInt(_0x769178(0x1ee))/0x4)+parseInt(_0x769178(0x1fe))/0x5+-parseInt(_0x769178(0x1fc))/0x6+parseInt(_0x769178(0x1e7))/0x7+-parseInt(_0x769178(0x1e9))/0x8*(parseInt(_0x769178(0x1dd))/0x9)+parseInt(_0x769178(0x1ed))/0xa*(parseInt(_0x769178(0x1ec))/0xb);if(_0x3c2140===_0x21e394)break;else _0x911329['push'](_0x911329['shift']());}catch(_0x3b629e){_0x911329['push'](_0x911329['shift']());}}}(a94_0x2378,0xbd999));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';function a94_0x2378(){const _0x237e85=['description','\x20has\x20scope=\x22','\x20or\x20directory\x20name.','appCode','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','slice','1XPYSTv','startsWith','files','isFile','skillName','7737828XLMoIo','find','5670725HRuFpF','Missing\x20','length','skillCode','personal','142296GEsYnK','isDirectory','Skill\x20directory\x20not\x20found:\x20','content','18UMItZi','sourceSessionId','scope','manifest','utf8','isSymbolicLink','1725758LaXkDe','Unable\x20to\x20resolve\x20skillCode\x20from\x20','filter','validation','4710244yutgkw','pushedAt','5853288icbWcu','version','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','209Vloioq','1310810YOBoTQ','8xRkVal','path','Skill\x20metadata\x20appCode\x20\x22'];a94_0x2378=function(){return _0x237e85;};return a94_0x2378();}import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';function a94_0x3c5c(_0x12bed5,_0x244869){_0x12bed5=_0x12bed5-0x1dd;const _0x237893=a94_0x2378();let _0x3c5ca9=_0x237893[_0x12bed5];return _0x3c5ca9;}import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function readPushDirectory(_0x10ea4b,_0x4d1151){const _0x4e7f23=a94_0x3c5c,_0x37b27f=resolvePushDirectoryRoot(_0x10ea4b),_0x192677=resolve(_0x37b27f,SKILL_FILE);if(!existsSync(_0x192677)||!lstatSync(_0x192677)[_0x4e7f23(0x1fa)]())throw CliErrors['validation'](_0x4e7f23(0x1ff)+SKILL_FILE+':\x20'+_0x192677);const _0x1f2f15=readMetadataIfPresent(resolve(_0x37b27f,METADATA_FILE));if(_0x1f2f15?.['scope']&&_0x1f2f15[_0x4e7f23(0x1df)]!==_0x4e7f23(0x202))throw CliErrors['validation'](_0x4e7f23(0x1f5)+METADATA_FILE+_0x4e7f23(0x1f2)+_0x1f2f15[_0x4e7f23(0x1df)]+'\x22.');if(_0x1f2f15?.[_0x4e7f23(0x1f4)]&&_0x1f2f15[_0x4e7f23(0x1f4)]!==_0x4d1151)throw CliErrors[_0x4e7f23(0x1e6)](_0x4e7f23(0x1f0)+_0x1f2f15[_0x4e7f23(0x1f4)]+_0x4e7f23(0x1eb)+_0x4d1151+'\x22.');const _0x1a0c47=scanSkillDirectory(_0x37b27f),_0x5ef8dc=buildSkillPackage(_0x1a0c47),_0x183247=readFileSync(_0x192677,_0x4e7f23(0x1e1)),_0x1d230c=_0x1f2f15?.[_0x4e7f23(0x201)]??deriveSkillCodeFromDirectory(_0x37b27f,_0x4d1151);if(!_0x1d230c)throw CliErrors[_0x4e7f23(0x1e6)](_0x4e7f23(0x1e4)+METADATA_FILE+_0x4e7f23(0x1f3));return{'skillCode':_0x1d230c,'metadata':_0x1f2f15,'input':{'skillCode':_0x1d230c,'skillName':_0x1f2f15?.[_0x4e7f23(0x1fb)],'description':_0x1f2f15?.[_0x4e7f23(0x1f1)],'content':_0x183247,'files':_0x5ef8dc[_0x4e7f23(0x1e0)],'packageBase64':_0x5ef8dc['packageBase64'],'tags':_0x1f2f15?.['tags'],'version':_0x1f2f15?.[_0x4e7f23(0x1ea)],'sourceSessionId':_0x1f2f15?.[_0x4e7f23(0x1de)]}};}export function recordPushedRuntimeSkill(_0x5db280,_0x5daad3,_0x2543fa,_0x41b224={}){const _0x46b3e9=a94_0x3c5c,_0x288bed=resolvePushDirectoryRoot(_0x5db280),_0x231dc6=scanSkillDirectory(_0x288bed),_0x11cb11=_0x231dc6[_0x46b3e9(0x1fd)](_0x275844=>_0x275844[_0x46b3e9(0x1ef)]===SKILL_FILE),_0x1a6049=_0x11cb11?fileText(_0x11cb11):'',_0x1b81d8=tryNormalizePackageManifest(_0x5daad3[_0x46b3e9(0x1f9)]),_0x24e6cd={..._0x5daad3,'content':_0x5daad3[_0x46b3e9(0x206)]??_0x1a6049,'files':_0x1b81d8},_0x2b9a32=_0x1b81d8?normalizeLocalFiles(_0x231dc6)[_0x46b3e9(0x1e5)](_0x55950c=>_0x1b81d8[_0x46b3e9(0x1f9)]['some'](_0x40658e=>_0x40658e['path']===_0x55950c[_0x46b3e9(0x1ef)])):undefined,_0x495e2b=buildMetadata(_0x24e6cd,_0x41b224[_0x46b3e9(0x1df)]??_0x46b3e9(0x202),_0x2543fa,contentHash(_0x24e6cd[_0x46b3e9(0x206)]??''),_0x41b224[_0x46b3e9(0x1e8)],_0x2b9a32);writeJsonAtomic(resolve(_0x288bed,METADATA_FILE),_0x495e2b);}export function deriveSkillCodeFromDirectory(_0x269b72,_0x2a72c8){const _0x12f9dd=a94_0x3c5c,_0x18577e=basename(resolve(_0x269b72)),_0x23b150=_0x2a72c8+'--';return _0x18577e[_0x12f9dd(0x1f8)](_0x23b150)?_0x18577e[_0x12f9dd(0x1f6)](_0x23b150[_0x12f9dd(0x200)]):_0x18577e;}function resolvePushDirectoryRoot(_0x3bb33f){const _0x4d27b6=a94_0x3c5c,_0x1711e1=resolve(_0x3bb33f);if(!existsSync(_0x1711e1))throw CliErrors[_0x4d27b6(0x1e6)](_0x4d27b6(0x205)+_0x3bb33f);const _0x23ff46=lstatSync(_0x1711e1);if(_0x23ff46['isDirectory']())return _0x1711e1;if(_0x23ff46[_0x4d27b6(0x1e2)]()){const _0x4626d5=realpathSync(_0x1711e1);if(lstatSync(_0x4626d5)[_0x4d27b6(0x204)]())return _0x4626d5;}throw CliErrors[_0x4d27b6(0x1e6)](_0x4d27b6(0x205)+_0x3bb33f);}
@@ -1 +1 @@
1
- function a95_0xba1f(_0x4ef4eb,_0x4cb789){_0x4ef4eb=_0x4ef4eb-0xa0;const _0x2b5569=a95_0x2b55();let _0xba1f5=_0x2b5569[_0x4ef4eb];return _0xba1f5;}(function(_0x37e78e,_0x50931b){const _0x46c0c9=a95_0xba1f,_0x1fca7d=_0x37e78e();while(!![]){try{const _0x32dda3=-parseInt(_0x46c0c9(0xac))/0x1*(-parseInt(_0x46c0c9(0xa0))/0x2)+-parseInt(_0x46c0c9(0xaa))/0x3*(-parseInt(_0x46c0c9(0xa7))/0x4)+parseInt(_0x46c0c9(0xa4))/0x5+-parseInt(_0x46c0c9(0xa5))/0x6+parseInt(_0x46c0c9(0xa3))/0x7+parseInt(_0x46c0c9(0xae))/0x8+-parseInt(_0x46c0c9(0xa6))/0x9;if(_0x32dda3===_0x50931b)break;else _0x1fca7d['push'](_0x1fca7d['shift']());}catch(_0x320933){_0x1fca7d['push'](_0x1fca7d['shift']());}}}(a95_0x2b55,0x6e9c5));import{CliErrors}from'../../errors.js';function a95_0x2b55(){const _0x2aefa2=['builtin','236659MiFlAC','company','3396792TfYidX','4GMkxMI','validation','personal','1716470CfQufu','3507175RxsapK','5070330sCREXd','10682856XTbmWv','8wRifRa','length','Unsupported\x20runtime\x20Skill\x20scope:\x20','960807TYqbIm'];a95_0x2b55=function(){return _0x2aefa2;};return a95_0x2b55();}export function normalizeRuntimeSkillScopes(_0x35d82e){const _0x58c7d5=a95_0xba1f,_0x3d8259=_0x35d82e&&_0x35d82e[_0x58c7d5(0xa8)]>0x0?_0x35d82e:[_0x58c7d5(0xa2),'company',_0x58c7d5(0xab)],_0x1b9276=[];for(const _0xa70ca2 of _0x3d8259){if(!isRuntimeSkillScope(_0xa70ca2))throw CliErrors[_0x58c7d5(0xa1)](_0x58c7d5(0xa9)+_0xa70ca2);!_0x1b9276['includes'](_0xa70ca2)&&_0x1b9276['push'](_0xa70ca2);}return _0x1b9276;}export function isRuntimeSkillScope(_0x4c59af){const _0x1c8deb=a95_0xba1f;return _0x4c59af==='personal'||_0x4c59af===_0x1c8deb(0xad)||_0x4c59af===_0x1c8deb(0xab);}
1
+ (function(_0xa01c26,_0x374d1d){const _0x1a828d=a95_0x551d,_0x2d2023=_0xa01c26();while(!![]){try{const _0xa087a6=parseInt(_0x1a828d(0x91))/0x1*(-parseInt(_0x1a828d(0x9d))/0x2)+-parseInt(_0x1a828d(0x92))/0x3+-parseInt(_0x1a828d(0x9b))/0x4+-parseInt(_0x1a828d(0x98))/0x5*(-parseInt(_0x1a828d(0x8d))/0x6)+-parseInt(_0x1a828d(0x96))/0x7*(-parseInt(_0x1a828d(0x99))/0x8)+-parseInt(_0x1a828d(0x9a))/0x9*(-parseInt(_0x1a828d(0x97))/0xa)+-parseInt(_0x1a828d(0x94))/0xb*(-parseInt(_0x1a828d(0x8f))/0xc);if(_0xa087a6===_0x374d1d)break;else _0x2d2023['push'](_0x2d2023['shift']());}catch(_0xfdc5cd){_0x2d2023['push'](_0x2d2023['shift']());}}}(a95_0x2f41,0x4cb5e));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x58bdd2){const _0x3cc763=a95_0x551d,_0x31aad9=_0x58bdd2&&_0x58bdd2['length']>0x0?_0x58bdd2:[_0x3cc763(0x95),_0x3cc763(0x8e),'builtin'],_0x2ec0ee=[];for(const _0x1f4a92 of _0x31aad9){if(!isRuntimeSkillScope(_0x1f4a92))throw CliErrors['validation'](_0x3cc763(0x93)+_0x1f4a92);!_0x2ec0ee['includes'](_0x1f4a92)&&_0x2ec0ee[_0x3cc763(0x90)](_0x1f4a92);}return _0x2ec0ee;}function a95_0x551d(_0x5a526c,_0x42bf5d){_0x5a526c=_0x5a526c-0x8d;const _0x2f419d=a95_0x2f41();let _0x551db0=_0x2f419d[_0x5a526c];return _0x551db0;}function a95_0x2f41(){const _0x4e569c=['push','53614rCSkJJ','5208vIefYX','Unsupported\x20runtime\x20Skill\x20scope:\x20','1407769sUIiIm','personal','7uQGynh','604990kymbik','60yTKEtn','1037144VZLylr','18NhbMoo','1586824HqMNfD','builtin','8YxgEln','274242ePjlnL','company','12etCqRW'];a95_0x2f41=function(){return _0x4e569c;};return a95_0x2f41();}export function isRuntimeSkillScope(_0x1b1b52){const _0x43170d=a95_0x551d;return _0x1b1b52==='personal'||_0x1b1b52==='company'||_0x1b1b52===_0x43170d(0x9c);}
@@ -1 +1 @@
1
- const a97_0xc472ba=a97_0x9c36;(function(_0x2f16a5,_0x1e4beb){const _0xeb0fc8=a97_0x9c36,_0x12e603=_0x2f16a5();while(!![]){try{const _0x35ff09=-parseInt(_0xeb0fc8(0x1de))/0x1+parseInt(_0xeb0fc8(0x1e3))/0x2+-parseInt(_0xeb0fc8(0x1e9))/0x3*(parseInt(_0xeb0fc8(0x1ef))/0x4)+parseInt(_0xeb0fc8(0x1f6))/0x5*(-parseInt(_0xeb0fc8(0x1dd))/0x6)+-parseInt(_0xeb0fc8(0x1e0))/0x7*(-parseInt(_0xeb0fc8(0x1eb))/0x8)+parseInt(_0xeb0fc8(0x1e4))/0x9+parseInt(_0xeb0fc8(0x1f3))/0xa*(parseInt(_0xeb0fc8(0x1ec))/0xb);if(_0x35ff09===_0x1e4beb)break;else _0x12e603['push'](_0x12e603['shift']());}catch(_0x365176){_0x12e603['push'](_0x12e603['shift']());}}}(a97_0x2378,0xb344c));function a97_0x2378(){const _0x5a50cc=['Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','Runtime\x20Skill\x20package\x20exceeds\x20total\x20file\x20size\x20limit.','5uvmflt','code','map','originalSize','465126iwgugM','735474KGMTlC','length','7oOoNrD','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','validation','2736026qnNLFH','3228417sVxCIH','name','entries','object','from','9DjryRe','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','2478152hmazVw','33gvfMJW','path','validation_error','1174076UMNnqt','1980-01-01T00:00:00.000Z','sort','endsWith','1304470jSJOtm'];a97_0x2378=function(){return _0x5a50cc;};return a97_0x2378();}import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a97_0x9c36(_0x57a681,_0x45b5a5){_0x57a681=_0x57a681-0x1da;const _0x237818=a97_0x2378();let _0x9c36ea=_0x237818[_0x57a681];return _0x9c36ea;}import{MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_PACKAGE_BYTES,MAX_SKILL_TOTAL_BYTES}from'./constants.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a97_0xc472ba(0x1f0));export function createDeterministicZipPackage(_0x2c9bd0){const _0x1ecf86=a97_0xc472ba,_0x52a220={};for(const _0x4ac8d9 of normalizeLocalFiles(_0x2c9bd0)){_0x52a220[_0x4ac8d9[_0x1ecf86(0x1ed)]]=fileContent(_0x4ac8d9);}const _0x5dd1d5=Buffer[_0x1ecf86(0x1e8)](zipSync(_0x52a220,{'level':0x0,'mtime':ZIP_MTIME}));if(_0x5dd1d5[_0x1ecf86(0x1df)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x1ecf86(0x1e2)]('Skill\x20package\x20exceeds\x20size\x20limit.');return _0x5dd1d5;}export function parseZipPackage(_0x7018ae){const _0xb964a0=a97_0xc472ba;if(_0x7018ae[_0xb964a0(0x1df)]<0x16)throw CliErrors[_0xb964a0(0x1e2)](_0xb964a0(0x1f4));if(_0x7018ae[_0xb964a0(0x1df)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0xb964a0(0x1e2)](_0xb964a0(0x1ea));let _0x20bdce=0x0,_0x4ebc2b=0x0,_0x93f166;try{_0x93f166=unzipSync(_0x7018ae,{'filter'(_0x568377){const _0xefa911=_0xb964a0,_0x26cc8d=normalizeSkillRelativePath(_0x568377[_0xefa911(0x1e5)]);if(_0x26cc8d[_0xefa911(0x1f2)]('/'))throw CliErrors[_0xefa911(0x1e2)](_0xefa911(0x1e1)+_0x26cc8d);if(_0x568377[_0xefa911(0x1dc)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0xefa911(0x1e2)]('Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20'+_0x26cc8d);_0x20bdce+=0x1;if(_0x20bdce>MAX_SKILL_FILE_COUNT)throw CliErrors[_0xefa911(0x1e2)]('Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.');_0x4ebc2b+=_0x568377[_0xefa911(0x1dc)];if(_0x4ebc2b>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0xefa911(0x1e2)](_0xefa911(0x1f5));return!![];}});}catch(_0xbb853e){if(isRuntimeSkillValidationError(_0xbb853e))throw _0xbb853e;throw CliErrors[_0xb964a0(0x1e2)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0xb964a0(0x1e6)](_0x93f166)[_0xb964a0(0x1db)](([_0x424879,_0x17496d])=>({'path':normalizeSkillRelativePath(_0x424879),'bytes':Buffer['from'](_0x17496d)}))[_0xb964a0(0x1f1)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x26d8e6){const _0x29e6eb=a97_0xc472ba;return typeof _0x26d8e6===_0x29e6eb(0x1e7)&&_0x26d8e6!==null&&'code'in _0x26d8e6&&_0x26d8e6[_0x29e6eb(0x1da)]===_0x29e6eb(0x1ee);}
1
+ const a97_0x41c3cf=a97_0xd4a2;(function(_0x53e0e0,_0x24c079){const _0xe7efe=a97_0xd4a2,_0x48a030=_0x53e0e0();while(!![]){try{const _0x31fc81=parseInt(_0xe7efe(0x1a0))/0x1+parseInt(_0xe7efe(0x1a9))/0x2*(-parseInt(_0xe7efe(0x19e))/0x3)+-parseInt(_0xe7efe(0x1a7))/0x4+parseInt(_0xe7efe(0x1a3))/0x5+-parseInt(_0xe7efe(0x195))/0x6*(parseInt(_0xe7efe(0x1a4))/0x7)+-parseInt(_0xe7efe(0x1a2))/0x8*(parseInt(_0xe7efe(0x19b))/0x9)+parseInt(_0xe7efe(0x197))/0xa;if(_0x31fc81===_0x24c079)break;else _0x48a030['push'](_0x48a030['shift']());}catch(_0x5a5455){_0x48a030['push'](_0x48a030['shift']());}}}(a97_0x4e5f,0x32b64));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a97_0xd4a2(_0xe79e5b,_0x3144dc){_0xe79e5b=_0xe79e5b-0x191;const _0x4e5ffa=a97_0x4e5f();let _0xd4a254=_0x4e5ffa[_0xe79e5b];return _0xd4a254;}import{MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_PACKAGE_BYTES,MAX_SKILL_TOTAL_BYTES}from'./constants.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a97_0x41c3cf(0x19c));function a97_0x4e5f(){const _0xb815c6=['validation_error','811710FiWURY','from','12577730LUwHBz','Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20','Skill\x20package\x20exceeds\x20size\x20limit.','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','2975112rCFNQw','1980-01-01T00:00:00.000Z','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','31002IjPSdL','validation','11269RlsQFT','sort','8WezDYu','513115CSnrKB','21HBPpRO','code','length','1544760pcliKG','object','8TUhpaS','endsWith','path','map','name'];a97_0x4e5f=function(){return _0xb815c6;};return a97_0x4e5f();}export function createDeterministicZipPackage(_0x4dcb9f){const _0x306ea9=a97_0x41c3cf,_0x4bc7ac={};for(const _0x369d38 of normalizeLocalFiles(_0x4dcb9f)){_0x4bc7ac[_0x369d38[_0x306ea9(0x191)]]=fileContent(_0x369d38);}const _0x43c530=Buffer[_0x306ea9(0x196)](zipSync(_0x4bc7ac,{'level':0x0,'mtime':ZIP_MTIME}));if(_0x43c530[_0x306ea9(0x1a6)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x306ea9(0x19f)](_0x306ea9(0x199));return _0x43c530;}export function parseZipPackage(_0x31ec60){const _0x55f01f=a97_0x41c3cf;if(_0x31ec60['length']<0x16)throw CliErrors[_0x55f01f(0x19f)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');if(_0x31ec60[_0x55f01f(0x1a6)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x55f01f(0x19f)](_0x55f01f(0x19d));let _0x47bc99=0x0,_0x16e24a=0x0,_0x4b198c;try{_0x4b198c=unzipSync(_0x31ec60,{'filter'(_0x3733ab){const _0x113244=_0x55f01f,_0xbe06a5=normalizeSkillRelativePath(_0x3733ab[_0x113244(0x193)]);if(_0xbe06a5[_0x113244(0x1aa)]('/'))throw CliErrors[_0x113244(0x19f)](_0x113244(0x19a)+_0xbe06a5);if(_0x3733ab['originalSize']>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x113244(0x19f)](_0x113244(0x198)+_0xbe06a5);_0x47bc99+=0x1;if(_0x47bc99>MAX_SKILL_FILE_COUNT)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.');_0x16e24a+=_0x3733ab['originalSize'];if(_0x16e24a>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x113244(0x19f)]('Runtime\x20Skill\x20package\x20exceeds\x20total\x20file\x20size\x20limit.');return!![];}});}catch(_0x1bee4b){if(isRuntimeSkillValidationError(_0x1bee4b))throw _0x1bee4b;throw CliErrors[_0x55f01f(0x19f)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object['entries'](_0x4b198c)[_0x55f01f(0x192)](([_0x4cb717,_0x12e4fd])=>({'path':normalizeSkillRelativePath(_0x4cb717),'bytes':Buffer[_0x55f01f(0x196)](_0x12e4fd)}))[_0x55f01f(0x1a1)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3fa09f){const _0x521da7=a97_0x41c3cf;return typeof _0x3fa09f===_0x521da7(0x1a8)&&_0x3fa09f!==null&&_0x521da7(0x1a5)in _0x3fa09f&&_0x3fa09f[_0x521da7(0x1a5)]===_0x521da7(0x194);}
@@ -1 +1 @@
1
- (function(_0x380e48,_0x503a2b){const _0xda0d10=a98_0x42a3,_0x2e81b5=_0x380e48();while(!![]){try{const _0x53f950=-parseInt(_0xda0d10(0x7f))/0x1*(-parseInt(_0xda0d10(0x91))/0x2)+-parseInt(_0xda0d10(0x71))/0x3*(parseInt(_0xda0d10(0x6e))/0x4)+-parseInt(_0xda0d10(0x97))/0x5+-parseInt(_0xda0d10(0x7e))/0x6*(parseInt(_0xda0d10(0x69))/0x7)+-parseInt(_0xda0d10(0x83))/0x8*(-parseInt(_0xda0d10(0x6f))/0x9)+parseInt(_0xda0d10(0x90))/0xa+parseInt(_0xda0d10(0x76))/0xb;if(_0x53f950===_0x503a2b)break;else _0x2e81b5['push'](_0x2e81b5['shift']());}catch(_0x420987){_0x2e81b5['push'](_0x2e81b5['shift']());}}}(a98_0x59c1,0x3946c));import{CliErrors}from'../../errors.js';function a98_0x59c1(){const _0x24d019=['8mwWTWY','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','push','path','schemaVersion','Runtime\x20Skill\x20package\x20is\x20missing\x20','set','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','isSafeInteger','3647180EoZnnu','2rWSGvc','string','map','zipSha256','some','has','1161555OIEAES','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20','1964291kZlekW','sha256','ossPath','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','get','1081400vlavLP','1512927CnTLIp','base64','3SjJKnW','Runtime\x20Skill\x20package\x20size\x20mismatch.','bytes','toLowerCase','treeSha256','3956425dKqrJc','Duplicate\x20Skill\x20package\x20entry:\x20','isArray','Missing\x20','zipSize','files','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','size','6fbIzoM','125382yRVuua','\x20in\x20Skill\x20file\x20package.','validation','length'];a98_0x59c1=function(){return _0x24d019;};return a98_0x59c1();}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(_0x1d2ac4){const _0x30e3d1=a98_0x42a3,_0x10eb67=normalizeLocalFiles(_0x1d2ac4);if(!_0x10eb67[_0x30e3d1(0x95)](_0x91faad=>_0x91faad[_0x30e3d1(0x88)]===SKILL_FILE))throw CliErrors[_0x30e3d1(0x81)](_0x30e3d1(0x79)+SKILL_FILE+_0x30e3d1(0x80));const _0x248e8a=localFilesToManifestFiles(_0x10eb67),_0x38a762=createDeterministicZipPackage(_0x10eb67);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x248e8a),'zipSha256':bufferSha256(_0x38a762),'zipSize':_0x38a762[_0x30e3d1(0x82)],'files':_0x248e8a},'packageBytes':_0x38a762,'packageBase64':_0x38a762['toString'](_0x30e3d1(0x70))};}export function verifyRuntimeSkillPackage(_0x2b747b,_0x175aa6){const _0x529b2e=a98_0x42a3,_0x2e4d15=normalizePackageManifest(_0x2b747b,{'requireOssPath':![]});if(!_0x2e4d15)throw CliErrors[_0x529b2e(0x81)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x2e4d15,_0x175aa6);}function a98_0x42a3(_0x349ce7,_0x42a5bd){_0x349ce7=_0x349ce7-0x69;const _0x59c183=a98_0x59c1();let _0x42a317=_0x59c183[_0x349ce7];return _0x42a317;}export function verifyRuntimeSkillBundle(_0xefc658,_0x3ba3f5){const _0x27d272=a98_0x42a3,_0x504498=normalizePackageManifest(_0xefc658,{'requireOssPath':![]});if(!_0x504498)throw CliErrors['validation'](_0x27d272(0x8c));if(_0x3ba3f5[_0x27d272(0x82)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0x27d272(0x7c));return extractAndVerifyPackageFiles(_0x504498,_0x3ba3f5);}export function tryNormalizePackageManifest(_0x42c8a5){return normalizePackageManifest(_0x42c8a5,{'requireOssPath':![]});}export function requirePackageBytes(_0x2d23e4,_0x414bdd){const _0x1ab503=a98_0x42a3;if(!_0x414bdd||_0x414bdd['length']===0x0)throw CliErrors['validation'](_0x1ab503(0x84)+_0x2d23e4);if(_0x414bdd['length']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x1ab503(0x81)](_0x1ab503(0x98)+_0x2d23e4);return _0x414bdd;}export function extractDownloadedPackage(_0x1083ca){const _0x303ac0=a98_0x42a3,_0xe99dc0=parseZipPackage(_0x1083ca)[_0x303ac0(0x93)](_0x1b9285=>({'path':_0x1b9285[_0x303ac0(0x88)],'bytes':_0x1b9285[_0x303ac0(0x73)]}));if(!_0xe99dc0['some'](_0x324379=>_0x324379[_0x303ac0(0x88)]===SKILL_FILE))throw CliErrors[_0x303ac0(0x81)](_0x303ac0(0x8a)+SKILL_FILE+'.');return normalizeLocalFiles(_0xe99dc0);}export function localFilesToManifestFiles(_0x4aceec){const _0x397caa=a98_0x42a3;return normalizeLocalFiles(_0x4aceec)[_0x397caa(0x93)](_0x22f2ca=>({'path':_0x22f2ca[_0x397caa(0x88)],'sha256':fileHash(_0x22f2ca),'size':fileContent(_0x22f2ca)['length']}));}function normalizePackageManifest(_0x3f0910,_0x118b3c){const _0x4f4c02=a98_0x42a3;if(!_0x3f0910||typeof _0x3f0910!=='object'||Array['isArray'](_0x3f0910))return undefined;const _0x12275f=_0x3f0910,_0x2b15e0=typeof _0x12275f[_0x4f4c02(0x6b)]===_0x4f4c02(0x92)?_0x12275f[_0x4f4c02(0x6b)]['trim']():undefined;if(_0x118b3c['requireOssPath']&&!_0x2b15e0)return undefined;if(!Array[_0x4f4c02(0x78)](_0x12275f[_0x4f4c02(0x7b)])||_0x12275f[_0x4f4c02(0x7b)][_0x4f4c02(0x82)]===0x0)return undefined;if(!isSha256Hex(_0x12275f[_0x4f4c02(0x75)]))throw CliErrors[_0x4f4c02(0x81)](_0x4f4c02(0x6c));if(!isSha256Hex(_0x12275f[_0x4f4c02(0x94)]))throw CliErrors[_0x4f4c02(0x81)](_0x4f4c02(0x86));if(!Number[_0x4f4c02(0x8f)](_0x12275f['zipSize'])||_0x12275f['zipSize']<0x0)throw CliErrors[_0x4f4c02(0x81)](_0x4f4c02(0x8d));if(_0x12275f['zipSize']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x4f4c02(0x81)]('Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.');const _0x419be9=normalizeManifestFiles(_0x12275f['files']);if(!_0x419be9['some'](_0xcecca4=>_0xcecca4['path']===SKILL_FILE))throw CliErrors[_0x4f4c02(0x81)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x1bcd43=fileTreeHash(_0x419be9);if(_0x1bcd43!==_0x12275f[_0x4f4c02(0x75)][_0x4f4c02(0x74)]())throw CliErrors[_0x4f4c02(0x81)](_0x4f4c02(0x85));return{'schemaVersion':Number['isSafeInteger'](_0x12275f[_0x4f4c02(0x89)])?_0x12275f[_0x4f4c02(0x89)]:0x2,'ossPath':_0x2b15e0,'treeSha256':_0x1bcd43,'zipSha256':_0x12275f[_0x4f4c02(0x94)][_0x4f4c02(0x74)](),'zipSize':_0x12275f[_0x4f4c02(0x7a)],'files':_0x419be9};}function extractAndVerifyPackage(_0x3b84e0,_0x20cd64){const _0xd450de=a98_0x42a3,_0x16bed0=normalizePackageManifest(_0x3b84e0,{'requireOssPath':![]});if(!_0x16bed0)throw CliErrors['validation'](_0xd450de(0x8c));if(_0x20cd64[_0xd450de(0x82)]!==_0x16bed0[_0xd450de(0x7a)])throw CliErrors['validation'](_0xd450de(0x72));const _0x177173=bufferSha256(_0x20cd64);if(_0x177173!==_0x16bed0[_0xd450de(0x94)])throw CliErrors[_0xd450de(0x81)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x16bed0,_0x20cd64);}function extractAndVerifyPackageFiles(_0x56dd95,_0x5c7cfe){const _0x3fa25f=a98_0x42a3,_0x284545=parseZipPackage(_0x5c7cfe);if(_0x284545[_0x3fa25f(0x82)]!==_0x56dd95[_0x3fa25f(0x7b)][_0x3fa25f(0x82)])throw CliErrors[_0x3fa25f(0x81)](_0x3fa25f(0x8e));const _0x5905e7=new Map();for(const _0x79c039 of _0x284545){if(_0x5905e7[_0x3fa25f(0x96)](_0x79c039['path']))throw CliErrors[_0x3fa25f(0x81)](_0x3fa25f(0x77)+_0x79c039[_0x3fa25f(0x88)]);_0x5905e7[_0x3fa25f(0x8b)](_0x79c039[_0x3fa25f(0x88)],_0x79c039);}const _0x38cde7=[];for(const _0x2fe076 of _0x56dd95['files']){const _0x540f05=_0x5905e7[_0x3fa25f(0x6d)](_0x2fe076[_0x3fa25f(0x88)]);if(!_0x540f05)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x2fe076[_0x3fa25f(0x88)]);if(_0x540f05['bytes']['length']!==_0x2fe076[_0x3fa25f(0x7d)])throw CliErrors[_0x3fa25f(0x81)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x2fe076[_0x3fa25f(0x88)]);const _0x5cfa40=bufferSha256(_0x540f05[_0x3fa25f(0x73)]);if(_0x5cfa40!==_0x2fe076[_0x3fa25f(0x6a)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x2fe076['path']);_0x38cde7[_0x3fa25f(0x87)]({'path':_0x2fe076[_0x3fa25f(0x88)],'bytes':_0x540f05['bytes']});}return normalizeLocalFiles(_0x38cde7);}
1
+ (function(_0x1670cd,_0x5365bc){const _0x53ae04=a98_0x27b8,_0x329282=_0x1670cd();while(!![]){try{const _0x4c3e74=-parseInt(_0x53ae04(0x7e))/0x1+parseInt(_0x53ae04(0x97))/0x2*(parseInt(_0x53ae04(0x82))/0x3)+parseInt(_0x53ae04(0x90))/0x4+parseInt(_0x53ae04(0x81))/0x5+parseInt(_0x53ae04(0x7c))/0x6+parseInt(_0x53ae04(0x96))/0x7*(parseInt(_0x53ae04(0x75))/0x8)+-parseInt(_0x53ae04(0x8f))/0x9;if(_0x4c3e74===_0x5365bc)break;else _0x329282['push'](_0x329282['shift']());}catch(_0x160741){_0x329282['push'](_0x329282['shift']());}}}(a98_0x3b4a,0x356b4));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(_0x21222b){const _0x3fdc8d=a98_0x27b8,_0x337898=normalizeLocalFiles(_0x21222b);if(!_0x337898[_0x3fdc8d(0x6e)](_0x54330f=>_0x54330f[_0x3fdc8d(0x68)]===SKILL_FILE))throw CliErrors[_0x3fdc8d(0x89)](_0x3fdc8d(0x6b)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x376cad=localFilesToManifestFiles(_0x337898),_0x364738=createDeterministicZipPackage(_0x337898);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x376cad),'zipSha256':bufferSha256(_0x364738),'zipSize':_0x364738[_0x3fdc8d(0x8d)],'files':_0x376cad},'packageBytes':_0x364738,'packageBase64':_0x364738[_0x3fdc8d(0x72)](_0x3fdc8d(0x84))};}export function verifyRuntimeSkillPackage(_0x1c4d5a,_0x32c9b9){const _0x27779e=a98_0x27b8,_0x13cc08=normalizePackageManifest(_0x1c4d5a,{'requireOssPath':![]});if(!_0x13cc08)throw CliErrors['validation'](_0x27779e(0x6d));return extractAndVerifyPackage(_0x13cc08,_0x32c9b9);}export function verifyRuntimeSkillBundle(_0x5f0bcc,_0x2bc018){const _0x363711=a98_0x27b8,_0x2afda8=normalizePackageManifest(_0x5f0bcc,{'requireOssPath':![]});if(!_0x2afda8)throw CliErrors[_0x363711(0x89)](_0x363711(0x6d));if(_0x2bc018[_0x363711(0x8d)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x363711(0x89)](_0x363711(0x71));return extractAndVerifyPackageFiles(_0x2afda8,_0x2bc018);}export function tryNormalizePackageManifest(_0x3ee2ed){return normalizePackageManifest(_0x3ee2ed,{'requireOssPath':![]});}export function requirePackageBytes(_0xfba0a8,_0x3430c0){const _0x2fa256=a98_0x27b8;if(!_0x3430c0||_0x3430c0[_0x2fa256(0x8d)]===0x0)throw CliErrors[_0x2fa256(0x89)](_0x2fa256(0x85)+_0xfba0a8);if(_0x3430c0[_0x2fa256(0x8d)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x2fa256(0x89)](_0x2fa256(0x7f)+_0xfba0a8);return _0x3430c0;}export function extractDownloadedPackage(_0x44350d){const _0x1137b5=a98_0x27b8,_0x13875d=parseZipPackage(_0x44350d)[_0x1137b5(0x80)](_0xb912f5=>({'path':_0xb912f5[_0x1137b5(0x68)],'bytes':_0xb912f5[_0x1137b5(0x77)]}));if(!_0x13875d[_0x1137b5(0x6e)](_0x4e2dab=>_0x4e2dab['path']===SKILL_FILE))throw CliErrors['validation'](_0x1137b5(0x73)+SKILL_FILE+'.');return normalizeLocalFiles(_0x13875d);}export function localFilesToManifestFiles(_0x4f981d){const _0x30ce01=a98_0x27b8;return normalizeLocalFiles(_0x4f981d)[_0x30ce01(0x80)](_0x4f1846=>({'path':_0x4f1846[_0x30ce01(0x68)],'sha256':fileHash(_0x4f1846),'size':fileContent(_0x4f1846)[_0x30ce01(0x8d)]}));}function a98_0x27b8(_0x572397,_0x2ee796){_0x572397=_0x572397-0x67;const _0x3b4afe=a98_0x3b4a();let _0x27b85f=_0x3b4afe[_0x572397];return _0x27b85f;}function a98_0x3b4a(){const _0x4f1ee8=['length','isSafeInteger','4431969SRuSYJ','854520DkAXLh','isArray','toLowerCase','size','sha256','get','19551KRXQBX','4UJacLH','files','object','path','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Missing\x20','zipSha256','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','some','set','trim','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','toString','Runtime\x20Skill\x20package\x20is\x20missing\x20','string','568JCnEIS','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','bytes','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','schemaVersion','push','Duplicate\x20Skill\x20package\x20entry:\x20','762528aeRmJF','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','228824IrDvtA','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20','map','193120vbSgmq','543636CfnasC','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','base64','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','has','treeSha256','ossPath','validation','zipSize','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','requireOssPath'];a98_0x3b4a=function(){return _0x4f1ee8;};return a98_0x3b4a();}function normalizePackageManifest(_0x32ac28,_0x4087ce){const _0x25cc89=a98_0x27b8;if(!_0x32ac28||typeof _0x32ac28!==_0x25cc89(0x67)||Array[_0x25cc89(0x91)](_0x32ac28))return undefined;const _0x5b9e80=_0x32ac28,_0x3b2659=typeof _0x5b9e80['ossPath']===_0x25cc89(0x74)?_0x5b9e80[_0x25cc89(0x88)][_0x25cc89(0x70)]():undefined;if(_0x4087ce[_0x25cc89(0x8c)]&&!_0x3b2659)return undefined;if(!Array[_0x25cc89(0x91)](_0x5b9e80[_0x25cc89(0x98)])||_0x5b9e80['files']['length']===0x0)return undefined;if(!isSha256Hex(_0x5b9e80[_0x25cc89(0x87)]))throw CliErrors['validation'](_0x25cc89(0x6a));if(!isSha256Hex(_0x5b9e80[_0x25cc89(0x6c)]))throw CliErrors[_0x25cc89(0x89)](_0x25cc89(0x78));if(!Number[_0x25cc89(0x8e)](_0x5b9e80[_0x25cc89(0x8a)])||_0x5b9e80['zipSize']<0x0)throw CliErrors[_0x25cc89(0x89)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');if(_0x5b9e80[_0x25cc89(0x8a)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x25cc89(0x89)](_0x25cc89(0x71));const _0x3a9352=normalizeManifestFiles(_0x5b9e80[_0x25cc89(0x98)]);if(!_0x3a9352[_0x25cc89(0x6e)](_0x6c3014=>_0x6c3014[_0x25cc89(0x68)]===SKILL_FILE))throw CliErrors['validation'](_0x25cc89(0x8b)+SKILL_FILE+'.');const _0x13a45f=fileTreeHash(_0x3a9352);if(_0x13a45f!==_0x5b9e80[_0x25cc89(0x87)][_0x25cc89(0x92)]())throw CliErrors['validation'](_0x25cc89(0x83));return{'schemaVersion':Number[_0x25cc89(0x8e)](_0x5b9e80[_0x25cc89(0x79)])?_0x5b9e80['schemaVersion']:0x2,'ossPath':_0x3b2659,'treeSha256':_0x13a45f,'zipSha256':_0x5b9e80['zipSha256']['toLowerCase'](),'zipSize':_0x5b9e80[_0x25cc89(0x8a)],'files':_0x3a9352};}function extractAndVerifyPackage(_0x510ff9,_0x56f27a){const _0x129b35=a98_0x27b8,_0x4a03b3=normalizePackageManifest(_0x510ff9,{'requireOssPath':![]});if(!_0x4a03b3)throw CliErrors[_0x129b35(0x89)](_0x129b35(0x6d));if(_0x56f27a['length']!==_0x4a03b3['zipSize'])throw CliErrors[_0x129b35(0x89)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x3fcdb6=bufferSha256(_0x56f27a);if(_0x3fcdb6!==_0x4a03b3[_0x129b35(0x6c)])throw CliErrors[_0x129b35(0x89)](_0x129b35(0x7d));return extractAndVerifyPackageFiles(_0x4a03b3,_0x56f27a);}function extractAndVerifyPackageFiles(_0x112466,_0x28dd80){const _0x4d83ef=a98_0x27b8,_0x439235=parseZipPackage(_0x28dd80);if(_0x439235[_0x4d83ef(0x8d)]!==_0x112466[_0x4d83ef(0x98)][_0x4d83ef(0x8d)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x680e0b=new Map();for(const _0x2a0760 of _0x439235){if(_0x680e0b[_0x4d83ef(0x86)](_0x2a0760[_0x4d83ef(0x68)]))throw CliErrors[_0x4d83ef(0x89)](_0x4d83ef(0x7b)+_0x2a0760[_0x4d83ef(0x68)]);_0x680e0b[_0x4d83ef(0x6f)](_0x2a0760['path'],_0x2a0760);}const _0x43af21=[];for(const _0x500503 of _0x112466['files']){const _0x1f6efd=_0x680e0b[_0x4d83ef(0x95)](_0x500503[_0x4d83ef(0x68)]);if(!_0x1f6efd)throw CliErrors[_0x4d83ef(0x89)](_0x4d83ef(0x69)+_0x500503[_0x4d83ef(0x68)]);if(_0x1f6efd[_0x4d83ef(0x77)][_0x4d83ef(0x8d)]!==_0x500503[_0x4d83ef(0x93)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x500503['path']);const _0x15b671=bufferSha256(_0x1f6efd['bytes']);if(_0x15b671!==_0x500503[_0x4d83ef(0x94)])throw CliErrors['validation'](_0x4d83ef(0x76)+_0x500503['path']);_0x43af21[_0x4d83ef(0x7a)]({'path':_0x500503[_0x4d83ef(0x68)],'bytes':_0x1f6efd[_0x4d83ef(0x77)]});}return normalizeLocalFiles(_0x43af21);}
@@ -1 +1 @@
1
- (function(_0x2b16bd,_0x42f05b){var _0x58ab45=a99_0xb0db,_0x9fabe8=_0x2b16bd();while(!![]){try{var _0x401f23=-parseInt(_0x58ab45(0x1a9))/0x1*(parseInt(_0x58ab45(0x1af))/0x2)+-parseInt(_0x58ab45(0x1ab))/0x3+-parseInt(_0x58ab45(0x1aa))/0x4+parseInt(_0x58ab45(0x1b0))/0x5*(-parseInt(_0x58ab45(0x1b2))/0x6)+parseInt(_0x58ab45(0x1ae))/0x7*(parseInt(_0x58ab45(0x1ac))/0x8)+-parseInt(_0x58ab45(0x1a8))/0x9*(parseInt(_0x58ab45(0x1b1))/0xa)+parseInt(_0x58ab45(0x1ad))/0xb;if(_0x401f23===_0x42f05b)break;else _0x9fabe8['push'](_0x9fabe8['shift']());}catch(_0x21a461){_0x9fabe8['push'](_0x9fabe8['shift']());}}}(a99_0x5e9b,0x78990));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a99_0x5e9b(){var _0x403911=['1695654qUSLXu','522TUMDkV','38393OuNuwC','3716164fzQnBn','2237628ylMhIQ','112dpKkXz','31793872SzsdZb','363454vvYPZR','6ldVRWX','10tpzmNP','132410ZcVGxr'];a99_0x5e9b=function(){return _0x403911;};return a99_0x5e9b();}export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a99_0xb0db(_0x43da17,_0x57d055){_0x43da17=_0x43da17-0x1a8;var _0x5e9b09=a99_0x5e9b();var _0xb0dbdc=_0x5e9b09[_0x43da17];return _0xb0dbdc;}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,recordPushedRuntimeSkill}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x56eec1,_0x1226bf){var _0x210acc=a99_0x4a0d,_0x8ee7cf=_0x56eec1();while(!![]){try{var _0x2c8dcf=-parseInt(_0x210acc(0x16f))/0x1*(-parseInt(_0x210acc(0x173))/0x2)+parseInt(_0x210acc(0x16c))/0x3*(-parseInt(_0x210acc(0x174))/0x4)+-parseInt(_0x210acc(0x171))/0x5+parseInt(_0x210acc(0x175))/0x6*(parseInt(_0x210acc(0x16e))/0x7)+-parseInt(_0x210acc(0x16d))/0x8+-parseInt(_0x210acc(0x172))/0x9*(-parseInt(_0x210acc(0x16b))/0xa)+parseInt(_0x210acc(0x170))/0xb;if(_0x2c8dcf===_0x1226bf)break;else _0x8ee7cf['push'](_0x8ee7cf['shift']());}catch(_0x56bde1){_0x8ee7cf['push'](_0x8ee7cf['shift']());}}}(a99_0x184f,0xb1aee));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a99_0x184f(){var _0x4a3a01=['327670rnwJBS','339984iQRAtu','5483744pasXKZ','181769WySoej','83191TDEbaI','1417999DNlmyE','4257780GKsYad','306QSVktw','16RGxFCF','36LNiMSz','318AGWXIw'];a99_0x184f=function(){return _0x4a3a01;};return a99_0x184f();}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';function a99_0x4a0d(_0xb4c414,_0x2abc2e){_0xb4c414=_0xb4c414-0x16b;var _0x184f22=a99_0x184f();var _0x4a0d12=_0x184f22[_0xb4c414];return _0x4a0d12;}export{deriveSkillCodeFromDirectory,readPushDirectory,recordPushedRuntimeSkill}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- (function(_0x25792a,_0x2c104c){const _0x39403a=a100_0x40b3,_0x52dfcb=_0x25792a();while(!![]){try{const _0x22ae52=parseInt(_0x39403a(0x1e9))/0x1*(parseInt(_0x39403a(0x1ef))/0x2)+-parseInt(_0x39403a(0x1ed))/0x3+parseInt(_0x39403a(0x1f1))/0x4*(parseInt(_0x39403a(0x1f2))/0x5)+-parseInt(_0x39403a(0x1f0))/0x6+-parseInt(_0x39403a(0x1f3))/0x7+parseInt(_0x39403a(0x1eb))/0x8*(parseInt(_0x39403a(0x1ea))/0x9)+-parseInt(_0x39403a(0x1ec))/0xa*(parseInt(_0x39403a(0x1ee))/0xb);if(_0x22ae52===_0x2c104c)break;else _0x52dfcb['push'](_0x52dfcb['shift']());}catch(_0x8c3a93){_0x52dfcb['push'](_0x52dfcb['shift']());}}}(a100_0x3a03,0xa704b));function a100_0x3a03(){const _0x1e0f54=['3987738KoIiWv','4OnNvmm','2778495bBGSyA','1531152aXvphI','837724CaRJKa','7960347SgqPrD','8ioBoGg','2177810XqFuxa','1477977FEnnyr','11yAlCgp','2eswSkx'];a100_0x3a03=function(){return _0x1e0f54;};return a100_0x3a03();}function a100_0x40b3(_0x440475,_0x4f7feb){_0x440475=_0x440475-0x1e9;const _0x3a0315=a100_0x3a03();let _0x40b3f1=_0x3a0315[_0x440475];return _0x40b3f1;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x31df1c,_0x246586){const _0xe62d80=a100_0x35d8,_0x19e0ad=_0x31df1c();while(!![]){try{const _0x213582=-parseInt(_0xe62d80(0xe7))/0x1*(-parseInt(_0xe62d80(0xe4))/0x2)+-parseInt(_0xe62d80(0xec))/0x3*(-parseInt(_0xe62d80(0xe5))/0x4)+-parseInt(_0xe62d80(0xe3))/0x5+parseInt(_0xe62d80(0xeb))/0x6*(-parseInt(_0xe62d80(0xe2))/0x7)+-parseInt(_0xe62d80(0xe6))/0x8*(-parseInt(_0xe62d80(0xea))/0x9)+-parseInt(_0xe62d80(0xe9))/0xa+parseInt(_0xe62d80(0xed))/0xb*(parseInt(_0xe62d80(0xe8))/0xc);if(_0x213582===_0x246586)break;else _0x19e0ad['push'](_0x19e0ad['shift']());}catch(_0x202c9d){_0x19e0ad['push'](_0x19e0ad['shift']());}}}(a100_0xbe2b,0x4325d));function a100_0x35d8(_0x43ddbd,_0x3c69a1){_0x43ddbd=_0x43ddbd-0xe2;const _0xbe2b89=a100_0xbe2b();let _0x35d890=_0xbe2b89[_0x43ddbd];return _0x35d890;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a100_0xbe2b(){const _0x4d4164=['8uoVpsW','57417JEAFLv','8056212VIXbrF','586750tYeOPw','128943VdewpY','1618392ObyuEV','1049754scXrJr','11vgXMaH','7dWBxHl','2447845hAUVXv','2RCcawQ','4InihAS'];a100_0xbe2b=function(){return _0x4d4164;};return a100_0xbe2b();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a101_0x273ce0=a101_0x56d6;(function(_0x29f253,_0x13f837){const _0x446a95=a101_0x56d6,_0x350412=_0x29f253();while(!![]){try{const _0x17fca7=parseInt(_0x446a95(0x1f6))/0x1+parseInt(_0x446a95(0x1e1))/0x2*(parseInt(_0x446a95(0x1ed))/0x3)+parseInt(_0x446a95(0x1fe))/0x4*(-parseInt(_0x446a95(0x20a))/0x5)+-parseInt(_0x446a95(0x1f1))/0x6+parseInt(_0x446a95(0x209))/0x7+parseInt(_0x446a95(0x204))/0x8+-parseInt(_0x446a95(0x1f9))/0x9;if(_0x17fca7===_0x13f837)break;else _0x350412['push'](_0x350412['shift']());}catch(_0x2e0b0b){_0x350412['push'](_0x350412['shift']());}}}(a101_0x165a,0x27b8d));import a101_0x2f79eb from'winston';import a101_0x10eab3 from'node:fs';import a101_0x5cf756 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a101_0x56d6(_0x179c99,_0x2edc91){_0x179c99=_0x179c99-0x1e0;const _0x165a3f=a101_0x165a();let _0x56d626=_0x165a3f[_0x179c99];return _0x56d626;}function a101_0x165a(){const _0x2b271a=['filter','winstonLogger','format','createLogger','dirname','2xFNLkI','message','yellow','File','Failed:\x20','error','utf8','Starting:\x20','warn','readFileSync','info','parse','579432SKQcAb','clearLogs','currentRawCommand','addColors','302154yjRvBW','now','logFilePath','writeFileSync','combine','285857CifPYd','Completed:\x20','duration','3453282tLKKWW','existsSync','errors','transports','rawCommand','12TvNsDH','logFileName','toISOString','split','logTask','details','2016192pJKiwT','success','Failed\x20to\x20clear\x20logs:','command','initWinstonLogger','393778tmPrBp','317535wMoBwm','unknown','setRawCommand','setLogPath','trim','blue','readLogs','getWinstonInstance','log','clear','join','red','green','printf'];a101_0x165a=function(){return _0x2b271a;};return a101_0x165a();}class Logger{[a101_0x273ce0(0x219)];[a101_0x273ce0(0x1f3)]='';[a101_0x273ce0(0x1ef)]='';constructor(){}[a101_0x273ce0(0x20c)](_0x48e259){const _0x160b16=a101_0x273ce0;this[_0x160b16(0x1ef)]=_0x48e259;}[a101_0x273ce0(0x20d)](_0x4f0db4){const _0xe8cff=a101_0x273ce0;this[_0xe8cff(0x1f3)]=a101_0x5cf756[_0xe8cff(0x214)](_0x4f0db4,PRODUCT_CONFIG[_0xe8cff(0x1ff)]),this[_0xe8cff(0x219)]&&this[_0xe8cff(0x219)][_0xe8cff(0x213)](),this[_0xe8cff(0x208)]();}[a101_0x273ce0(0x208)](){const _0xfec007=a101_0x273ce0,_0x39f373=a101_0x5cf756[_0xfec007(0x1e0)](this[_0xfec007(0x1f3)]);!a101_0x10eab3['existsSync'](_0x39f373)&&a101_0x10eab3['mkdirSync'](_0x39f373,{'recursive':!![]});const _0x181867=a101_0x2f79eb['format'][_0xfec007(0x1f5)](a101_0x2f79eb['format']['timestamp'](),a101_0x2f79eb[_0xfec007(0x21a)][_0xfec007(0x1fb)]({'stack':!![]}),a101_0x2f79eb[_0xfec007(0x21a)][_0xfec007(0x217)](_0x4eb472=>{const _0x1ed64d=_0xfec007,_0x2323fb={'timestamp':_0x4eb472['timestamp']||new Date()[_0x1ed64d(0x200)](),'level':_0x4eb472['level']||_0x1ed64d(0x1eb),'command':_0x4eb472[_0x1ed64d(0x207)]||_0x1ed64d(0x20b),'rawCommand':_0x4eb472[_0x1ed64d(0x1fd)]||this['currentRawCommand']||undefined,'message':_0x4eb472['message']||'','duration':_0x4eb472[_0x1ed64d(0x1f8)]||undefined,'details':_0x4eb472[_0x1ed64d(0x203)]||undefined};return JSON['stringify'](_0x2323fb);}));this[_0xfec007(0x219)]=a101_0x2f79eb[_0xfec007(0x21b)]({'level':'info','format':_0x181867,'transports':[new a101_0x2f79eb[(_0xfec007(0x1fc))][(_0xfec007(0x1e4))]({'filename':this[_0xfec007(0x1f3)],'level':'info'})],'silent':![]}),a101_0x2f79eb[_0xfec007(0x1f0)]({'success':_0xfec007(0x216),'error':_0xfec007(0x215),'warn':_0xfec007(0x1e3),'info':_0xfec007(0x20f)});}[a101_0x273ce0(0x1eb)](_0x5ca4e8,_0x1b9af6,_0x288664){const _0x2bd86d=a101_0x273ce0;if(!this['logFilePath']||!this[_0x2bd86d(0x219)])return;this[_0x2bd86d(0x219)][_0x2bd86d(0x1eb)](_0x1b9af6,{'command':_0x5ca4e8,'details':_0x288664});}[a101_0x273ce0(0x205)](_0x483265,_0x28e0a0,_0x4d7ab3,_0x53362c){const _0x2daedf=a101_0x273ce0;if(!this[_0x2daedf(0x1f3)]||!this[_0x2daedf(0x219)])return;this[_0x2daedf(0x219)][_0x2daedf(0x212)](_0x2daedf(0x1eb),_0x28e0a0,{'level':_0x2daedf(0x205),'command':_0x483265,'duration':_0x4d7ab3,'details':_0x53362c});}[a101_0x273ce0(0x1e6)](_0x394ca1,_0x7db999,_0x69d578){const _0x48b168=a101_0x273ce0;if(!this[_0x48b168(0x1f3)]||!this[_0x48b168(0x219)])return;this[_0x48b168(0x219)][_0x48b168(0x1e6)](_0x7db999,{'command':_0x394ca1,'details':_0x69d578});}[a101_0x273ce0(0x1e9)](_0x527c5a,_0x1999fd,_0x36f915){const _0x2963d1=a101_0x273ce0;if(!this['logFilePath']||!this[_0x2963d1(0x219)])return;this[_0x2963d1(0x219)]['warn'](_0x1999fd,{'command':_0x527c5a,'details':_0x36f915});}async[a101_0x273ce0(0x202)](_0x1ada0c,_0x2dc913,_0xcd89ef){const _0x1c94ee=a101_0x273ce0,_0x470659=Date['now']();this['info'](_0x1ada0c,_0x1c94ee(0x1e8)+_0x2dc913);try{const _0x23e1f6=await _0xcd89ef(),_0x1223b2=Date['now']()-_0x470659;return this[_0x1c94ee(0x205)](_0x1ada0c,_0x1c94ee(0x1f7)+_0x2dc913,_0x1223b2),_0x23e1f6;}catch(_0x2cd1b1){const _0x5e074c=Date[_0x1c94ee(0x1f2)]()-_0x470659;this[_0x1c94ee(0x1e6)](_0x1ada0c,_0x1c94ee(0x1e5)+_0x2dc913,{'error':_0x2cd1b1 instanceof Error?_0x2cd1b1[_0x1c94ee(0x1e2)]:String(_0x2cd1b1),'duration':_0x5e074c});throw _0x2cd1b1;}}[a101_0x273ce0(0x210)](){const _0x476b4a=a101_0x273ce0;try{if(!a101_0x10eab3['existsSync'](this[_0x476b4a(0x1f3)]))return[];const _0x17639e=a101_0x10eab3[_0x476b4a(0x1ea)](this[_0x476b4a(0x1f3)],_0x476b4a(0x1e7));return _0x17639e[_0x476b4a(0x201)](/\r?\n/)[_0x476b4a(0x218)](_0x32ed2e=>_0x32ed2e[_0x476b4a(0x20e)]())['map'](_0x5d3bb8=>JSON[_0x476b4a(0x1ec)](_0x5d3bb8));}catch(_0xe08be){return console[_0x476b4a(0x1e9)]('Failed\x20to\x20read\x20logs:',_0xe08be),[];}}[a101_0x273ce0(0x1ee)](){const _0x29480a=a101_0x273ce0;try{a101_0x10eab3[_0x29480a(0x1fa)](this[_0x29480a(0x1f3)])&&a101_0x10eab3[_0x29480a(0x1f4)](this[_0x29480a(0x1f3)],'',_0x29480a(0x1e7));}catch(_0x3780ba){console[_0x29480a(0x1e9)](_0x29480a(0x206),_0x3780ba);}}[a101_0x273ce0(0x211)](){const _0x36d176=a101_0x273ce0;return this[_0x36d176(0x219)];}}export const logger=new Logger();
1
+ const a101_0x3e116f=a101_0x2473;function a101_0x2473(_0xa19d9d,_0x24fa7f){_0xa19d9d=_0xa19d9d-0x19a;const _0x1df27e=a101_0x1df2();let _0x24731b=_0x1df27e[_0xa19d9d];return _0x24731b;}(function(_0x19dbb7,_0x1c688f){const _0x49f0bf=a101_0x2473,_0x4deb57=_0x19dbb7();while(!![]){try{const _0x26faff=parseInt(_0x49f0bf(0x19f))/0x1+-parseInt(_0x49f0bf(0x1a7))/0x2*(-parseInt(_0x49f0bf(0x1bb))/0x3)+parseInt(_0x49f0bf(0x1c5))/0x4*(parseInt(_0x49f0bf(0x1b9))/0x5)+parseInt(_0x49f0bf(0x1c9))/0x6+parseInt(_0x49f0bf(0x1ae))/0x7*(-parseInt(_0x49f0bf(0x1ad))/0x8)+parseInt(_0x49f0bf(0x1b5))/0x9+-parseInt(_0x49f0bf(0x1b6))/0xa*(parseInt(_0x49f0bf(0x1af))/0xb);if(_0x26faff===_0x1c688f)break;else _0x4deb57['push'](_0x4deb57['shift']());}catch(_0x1dc555){_0x4deb57['push'](_0x4deb57['shift']());}}}(a101_0x1df2,0x702d9));import a101_0x5437fd from'winston';import a101_0x3c2384 from'node:fs';function a101_0x1df2(){const _0x3f7436=['47005TvYZKn','177397yvxjYw','mkdirSync','Failed:\x20','clearLogs','info','currentRawCommand','3720753xSEYth','580UgOWWY','stringify','Failed\x20to\x20clear\x20logs:','31930inmqJI','green','6591OEOQPA','Starting:\x20','message','timestamp','now','rawCommand','unknown','winstonLogger','Failed\x20to\x20read\x20logs:','filter','188wDKVfq','readLogs','map','utf8','3862008ofxKPi','addColors','clear','createLogger','setRawCommand','logTask','readFileSync','logFilePath','trim','initWinstonLogger','format','logFileName','setLogPath','errors','12795OaMFaP','success','getWinstonInstance','level','File','transports','details','existsSync','640BPSzHY','warn','blue','log','red','error','808jdiKVF'];a101_0x1df2=function(){return _0x3f7436;};return a101_0x1df2();}import a101_0x4dbeb3 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a101_0x3e116f(0x1c2)];['logFilePath']='';[a101_0x3e116f(0x1b4)]='';constructor(){}[a101_0x3e116f(0x1cd)](_0x197d50){const _0xd9609f=a101_0x3e116f;this[_0xd9609f(0x1b4)]=_0x197d50;}[a101_0x3e116f(0x19d)](_0x2b0658){const _0x89244b=a101_0x3e116f;this[_0x89244b(0x1d0)]=a101_0x4dbeb3['join'](_0x2b0658,PRODUCT_CONFIG[_0x89244b(0x19c)]),this['winstonLogger']&&this['winstonLogger'][_0x89244b(0x1cb)](),this[_0x89244b(0x19a)]();}[a101_0x3e116f(0x19a)](){const _0x324805=a101_0x3e116f,_0x1b88e9=a101_0x4dbeb3['dirname'](this[_0x324805(0x1d0)]);!a101_0x3c2384[_0x324805(0x1a6)](_0x1b88e9)&&a101_0x3c2384[_0x324805(0x1b0)](_0x1b88e9,{'recursive':!![]});const _0x87b0f3=a101_0x5437fd[_0x324805(0x19b)]['combine'](a101_0x5437fd[_0x324805(0x19b)][_0x324805(0x1be)](),a101_0x5437fd['format'][_0x324805(0x19e)]({'stack':!![]}),a101_0x5437fd[_0x324805(0x19b)]['printf'](_0x3136fe=>{const _0xd74ba6=_0x324805,_0x382a61={'timestamp':_0x3136fe['timestamp']||new Date()['toISOString'](),'level':_0x3136fe[_0xd74ba6(0x1a2)]||'info','command':_0x3136fe['command']||_0xd74ba6(0x1c1),'rawCommand':_0x3136fe[_0xd74ba6(0x1c0)]||this[_0xd74ba6(0x1b4)]||undefined,'message':_0x3136fe['message']||'','duration':_0x3136fe['duration']||undefined,'details':_0x3136fe[_0xd74ba6(0x1a5)]||undefined};return JSON[_0xd74ba6(0x1b7)](_0x382a61);}));this[_0x324805(0x1c2)]=a101_0x5437fd[_0x324805(0x1cc)]({'level':_0x324805(0x1b3),'format':_0x87b0f3,'transports':[new a101_0x5437fd[(_0x324805(0x1a4))][(_0x324805(0x1a3))]({'filename':this[_0x324805(0x1d0)],'level':_0x324805(0x1b3)})],'silent':![]}),a101_0x5437fd[_0x324805(0x1ca)]({'success':_0x324805(0x1ba),'error':_0x324805(0x1ab),'warn':'yellow','info':_0x324805(0x1a9)});}[a101_0x3e116f(0x1b3)](_0x675ed7,_0x3a9193,_0x5287fe){const _0x55bb8d=a101_0x3e116f;if(!this[_0x55bb8d(0x1d0)]||!this[_0x55bb8d(0x1c2)])return;this[_0x55bb8d(0x1c2)][_0x55bb8d(0x1b3)](_0x3a9193,{'command':_0x675ed7,'details':_0x5287fe});}[a101_0x3e116f(0x1a0)](_0x57a7af,_0x3fcc08,_0x1434d4,_0x7e2c88){const _0xecf4f1=a101_0x3e116f;if(!this['logFilePath']||!this[_0xecf4f1(0x1c2)])return;this[_0xecf4f1(0x1c2)][_0xecf4f1(0x1aa)]('info',_0x3fcc08,{'level':'success','command':_0x57a7af,'duration':_0x1434d4,'details':_0x7e2c88});}['error'](_0x532a29,_0x5d42ad,_0x2b32d2){const _0x1e3131=a101_0x3e116f;if(!this[_0x1e3131(0x1d0)]||!this[_0x1e3131(0x1c2)])return;this[_0x1e3131(0x1c2)][_0x1e3131(0x1ac)](_0x5d42ad,{'command':_0x532a29,'details':_0x2b32d2});}[a101_0x3e116f(0x1a8)](_0x52c72e,_0x305909,_0x11d486){const _0x5af01e=a101_0x3e116f;if(!this[_0x5af01e(0x1d0)]||!this[_0x5af01e(0x1c2)])return;this[_0x5af01e(0x1c2)][_0x5af01e(0x1a8)](_0x305909,{'command':_0x52c72e,'details':_0x11d486});}async[a101_0x3e116f(0x1ce)](_0x33fc62,_0x2a8d74,_0x5ee837){const _0x41fbea=a101_0x3e116f,_0x51d936=Date[_0x41fbea(0x1bf)]();this[_0x41fbea(0x1b3)](_0x33fc62,_0x41fbea(0x1bc)+_0x2a8d74);try{const _0x2d056c=await _0x5ee837(),_0x153670=Date[_0x41fbea(0x1bf)]()-_0x51d936;return this[_0x41fbea(0x1a0)](_0x33fc62,'Completed:\x20'+_0x2a8d74,_0x153670),_0x2d056c;}catch(_0x3f8be3){const _0x262f37=Date[_0x41fbea(0x1bf)]()-_0x51d936;this[_0x41fbea(0x1ac)](_0x33fc62,_0x41fbea(0x1b1)+_0x2a8d74,{'error':_0x3f8be3 instanceof Error?_0x3f8be3[_0x41fbea(0x1bd)]:String(_0x3f8be3),'duration':_0x262f37});throw _0x3f8be3;}}[a101_0x3e116f(0x1c6)](){const _0x137fea=a101_0x3e116f;try{if(!a101_0x3c2384[_0x137fea(0x1a6)](this[_0x137fea(0x1d0)]))return[];const _0x568abf=a101_0x3c2384[_0x137fea(0x1cf)](this[_0x137fea(0x1d0)],_0x137fea(0x1c8));return _0x568abf['split'](/\r?\n/)[_0x137fea(0x1c4)](_0x19913a=>_0x19913a[_0x137fea(0x1d1)]())[_0x137fea(0x1c7)](_0x30d2f8=>JSON['parse'](_0x30d2f8));}catch(_0x214f9b){return console[_0x137fea(0x1a8)](_0x137fea(0x1c3),_0x214f9b),[];}}[a101_0x3e116f(0x1b2)](){const _0x2d5272=a101_0x3e116f;try{a101_0x3c2384['existsSync'](this[_0x2d5272(0x1d0)])&&a101_0x3c2384['writeFileSync'](this[_0x2d5272(0x1d0)],'','utf8');}catch(_0x556074){console[_0x2d5272(0x1a8)](_0x2d5272(0x1b8),_0x556074);}}[a101_0x3e116f(0x1a1)](){const _0x369522=a101_0x3e116f;return this[_0x369522(0x1c2)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x18951c,_0x2e9951){var _0x1e1a4a=a102_0x1ba1,_0xd353ff=_0x18951c();while(!![]){try{var _0x131249=-parseInt(_0x1e1a4a(0x1f2))/0x1*(-parseInt(_0x1e1a4a(0x1f0))/0x2)+parseInt(_0x1e1a4a(0x1eb))/0x3*(-parseInt(_0x1e1a4a(0x1e8))/0x4)+parseInt(_0x1e1a4a(0x1f5))/0x5+-parseInt(_0x1e1a4a(0x1ed))/0x6*(-parseInt(_0x1e1a4a(0x1ef))/0x7)+parseInt(_0x1e1a4a(0x1f6))/0x8*(-parseInt(_0x1e1a4a(0x1e7))/0x9)+parseInt(_0x1e1a4a(0x1ea))/0xa*(parseInt(_0x1e1a4a(0x1ec))/0xb)+-parseInt(_0x1e1a4a(0x1f1))/0xc;if(_0x131249===_0x2e9951)break;else _0xd353ff['push'](_0xd353ff['shift']());}catch(_0x5726e5){_0xd353ff['push'](_0xd353ff['shift']());}}}(a102_0x3f23,0x1f4ea));function a102_0x1ba1(_0x38580b,_0x47ce81){_0x38580b=_0x38580b-0x1e7;var _0x3f23ca=a102_0x3f23();var _0x1ba1ed=_0x3f23ca[_0x38580b];return _0x1ba1ed;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1946bd){var _0x1b22e0=a102_0x1ba1;if(!_0x1946bd)return undefined;try{return JSON['parse'](_0x1946bd);}catch{throw CliErrors['validation'](_0x1b22e0(0x1e9)+_0x1946bd);}}export function parseJsonParamsValue(_0xf4ccc3){var _0x914c52=a102_0x1ba1;if(!_0xf4ccc3)return undefined;try{return JSON[_0x914c52(0x1ee)](_0xf4ccc3);}catch{throw CliErrors['validation'](_0x914c52(0x1e9)+_0xf4ccc3);}}function a102_0x3f23(){var _0x1a4efa=['Invalid\x20JSON\x20for\x20--params:\x20','20Ojjdmc','4014voPtdy','114697sWlbYs','60NdSttK','parse','163779HWTOWH','14ZawgCP','2842776CFZmuE','13953zBKdKs','items','isArray','1259835dtgIom','951968fZzJsK','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','18GzvBBK','4fifUFf'];a102_0x3f23=function(){return _0x1a4efa;};return a102_0x3f23();}export function parseBatchCreateItemsFromParams(_0x1d91cc){var _0x3c6ae6=a102_0x1ba1;if(Array[_0x3c6ae6(0x1f4)](_0x1d91cc))return _0x1d91cc;if(_0x1d91cc!==null&&_0x1d91cc!==undefined&&typeof _0x1d91cc==='object'&&Array[_0x3c6ae6(0x1f4)](_0x1d91cc[_0x3c6ae6(0x1f3)]))return _0x1d91cc['items'];throw CliErrors['validation'](_0x3c6ae6(0x1f7),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}
1
+ function a102_0x8012(){var _0x57462c=['5747430XBLSGe','2009304GdGFwZ','parse','1918228pAUYAG','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','157QSFBOC','validation','8nXTXQV','9395604OsiuQU','7690KNarPo','6971895ZXfprg','isArray','Invalid\x20JSON\x20for\x20--params:\x20','6188076BVMbwe','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}'];a102_0x8012=function(){return _0x57462c;};return a102_0x8012();}function a102_0x15b0(_0x304dbc,_0x41c781){_0x304dbc=_0x304dbc-0x15f;var _0x801250=a102_0x8012();var _0x15b03b=_0x801250[_0x304dbc];return _0x15b03b;}(function(_0x3acc6d,_0x3e69a2){var _0x5c5cd7=a102_0x15b0,_0x58f061=_0x3acc6d();while(!![]){try{var _0x4c71e4=parseInt(_0x5c5cd7(0x166))/0x1*(parseInt(_0x5c5cd7(0x16a))/0x2)+-parseInt(_0x5c5cd7(0x162))/0x3+parseInt(_0x5c5cd7(0x164))/0x4+parseInt(_0x5c5cd7(0x161))/0x5+-parseInt(_0x5c5cd7(0x15f))/0x6+-parseInt(_0x5c5cd7(0x16b))/0x7+parseInt(_0x5c5cd7(0x168))/0x8*(parseInt(_0x5c5cd7(0x169))/0x9);if(_0x4c71e4===_0x3e69a2)break;else _0x58f061['push'](_0x58f061['shift']());}catch(_0x235441){_0x58f061['push'](_0x58f061['shift']());}}}(a102_0x8012,0x8d7ed));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x5ed775){var _0x16fd07=a102_0x15b0;if(!_0x5ed775)return undefined;try{return JSON[_0x16fd07(0x163)](_0x5ed775);}catch{throw CliErrors[_0x16fd07(0x167)](_0x16fd07(0x16d)+_0x5ed775);}}export function parseJsonParamsValue(_0x4ad3d6){var _0x38c4b6=a102_0x15b0;if(!_0x4ad3d6)return undefined;try{return JSON['parse'](_0x4ad3d6);}catch{throw CliErrors[_0x38c4b6(0x167)](_0x38c4b6(0x16d)+_0x4ad3d6);}}export function parseBatchCreateItemsFromParams(_0x4d071d){var _0x48ae90=a102_0x15b0;if(Array[_0x48ae90(0x16c)](_0x4d071d))return _0x4d071d;if(_0x4d071d!==null&&_0x4d071d!==undefined&&typeof _0x4d071d==='object'&&Array['isArray'](_0x4d071d['items']))return _0x4d071d['items'];throw CliErrors[_0x48ae90(0x167)](_0x48ae90(0x160),_0x48ae90(0x165));}
@@ -1 +1 @@
1
- const a103_0x559956=a103_0x87b7;function a103_0x191c(){const _0x114ec9=['platform','2tNMbGF','18AoSOnM','412356WqHvxi','.cmd','1088730oNYZgb','4740267pXDbsx','8ITuTqJ','9522190imIJgr','4265010alSQxh','4249014iRkxcx','438239OeiRmJ'];a103_0x191c=function(){return _0x114ec9;};return a103_0x191c();}(function(_0x40770d,_0x34a783){const _0x32834c=a103_0x87b7,_0x3e9b28=_0x40770d();while(!![]){try{const _0x16c686=-parseInt(_0x32834c(0xf5))/0x1*(parseInt(_0x32834c(0xf7))/0x2)+parseInt(_0x32834c(0xf8))/0x3*(parseInt(_0x32834c(0xf9))/0x4)+-parseInt(_0x32834c(0xf3))/0x5+parseInt(_0x32834c(0xf4))/0x6+-parseInt(_0x32834c(0xfc))/0x7*(parseInt(_0x32834c(0xfd))/0x8)+parseInt(_0x32834c(0xfb))/0x9+parseInt(_0x32834c(0xf2))/0xa;if(_0x16c686===_0x34a783)break;else _0x3e9b28['push'](_0x3e9b28['shift']());}catch(_0x12aa88){_0x3e9b28['push'](_0x3e9b28['shift']());}}}(a103_0x191c,0x6956e));export const isWindows=process[a103_0x559956(0xf6)]==='win32';function a103_0x87b7(_0x28322e,_0x33bdae){_0x28322e=_0x28322e-0xf2;const _0x191c7e=a103_0x191c();let _0x87b7de=_0x191c7e[_0x28322e];return _0x87b7de;}export function resolveNpmBin(_0x1ebfa7){const _0x43467d=a103_0x559956;return isWindows?_0x1ebfa7+_0x43467d(0xfa):_0x1ebfa7;}
1
+ const a103_0x1d5921=a103_0x3062;function a103_0x3062(_0x22ae59,_0x5867a0){_0x22ae59=_0x22ae59-0x1f4;const _0x3de791=a103_0x3de7();let _0x306206=_0x3de791[_0x22ae59];return _0x306206;}(function(_0x52b90a,_0xf982e3){const _0x5b58ae=a103_0x3062,_0x4e33f1=_0x52b90a();while(!![]){try{const _0x3a5021=-parseInt(_0x5b58ae(0x1f9))/0x1+-parseInt(_0x5b58ae(0x1ff))/0x2+parseInt(_0x5b58ae(0x1f4))/0x3*(parseInt(_0x5b58ae(0x1fa))/0x4)+parseInt(_0x5b58ae(0x1f8))/0x5*(-parseInt(_0x5b58ae(0x1fc))/0x6)+-parseInt(_0x5b58ae(0x1f6))/0x7*(parseInt(_0x5b58ae(0x1f7))/0x8)+parseInt(_0x5b58ae(0x1f5))/0x9+parseInt(_0x5b58ae(0x1fb))/0xa*(parseInt(_0x5b58ae(0x200))/0xb);if(_0x3a5021===_0xf982e3)break;else _0x4e33f1['push'](_0x4e33f1['shift']());}catch(_0x132813){_0x4e33f1['push'](_0x4e33f1['shift']());}}}(a103_0x3de7,0x3c793));export const isWindows=process[a103_0x1d5921(0x1fd)]==='win32';export function resolveNpmBin(_0x5a0474){const _0x2f8ee2=a103_0x1d5921;return isWindows?_0x5a0474+_0x2f8ee2(0x1fe):_0x5a0474;}function a103_0x3de7(){const _0x41a9e3=['platform','.cmd','903382NVsnad','628364kzmOCn','10167CxRQLk','3257262hUOgLD','14tbpSVe','1676088wafjsv','6290cpLzoo','217759goYuSG','524Kyplxq','160MDaOYl','1830hSyIkp'];a103_0x3de7=function(){return _0x41a9e3;};return a103_0x3de7();}
@@ -1 +1 @@
1
- (function(_0x39bc8b,_0x4f8ce0){const _0x168e11=a104_0x27e4,_0x191ac7=_0x39bc8b();while(!![]){try{const _0x3cd4c4=-parseInt(_0x168e11(0x84))/0x1*(-parseInt(_0x168e11(0x7c))/0x2)+parseInt(_0x168e11(0x7a))/0x3+-parseInt(_0x168e11(0x6d))/0x4*(-parseInt(_0x168e11(0x72))/0x5)+parseInt(_0x168e11(0x88))/0x6*(parseInt(_0x168e11(0x75))/0x7)+parseInt(_0x168e11(0x82))/0x8+parseInt(_0x168e11(0x71))/0x9*(parseInt(_0x168e11(0x8d))/0xa)+-parseInt(_0x168e11(0x83))/0xb*(parseInt(_0x168e11(0x73))/0xc);if(_0x3cd4c4===_0x4f8ce0)break;else _0x191ac7['push'](_0x191ac7['shift']());}catch(_0x395553){_0x191ac7['push'](_0x191ac7['shift']());}}}(a104_0x1bc9,0x44c07));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x22c5b0){const _0x40accb=a104_0x27e4,_0x1c4bfa=_0x22c5b0[_0x40accb(0x85)]()[_0x40accb(0x79)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1c4bfa)return null;return{'major':Number(_0x1c4bfa[0x1]),'minor':Number(_0x1c4bfa[0x2]),'patch':Number(_0x1c4bfa[0x3]),'prerelease':_0x1c4bfa[0x4]};}function compareSemver(_0xca8183,_0x5cddf6){const _0x43edcb=a104_0x27e4,_0x4abb83=parseSemver(_0xca8183),_0x15a216=parseSemver(_0x5cddf6);if(!_0x4abb83||!_0x15a216)throw new Error('Invalid\x20semver');for(const _0x11ce02 of['major',_0x43edcb(0x80),'patch']){if(_0x4abb83[_0x11ce02]<_0x15a216[_0x11ce02])return-0x1;if(_0x4abb83[_0x11ce02]>_0x15a216[_0x11ce02])return 0x1;}if(!_0x4abb83[_0x43edcb(0x86)]&&!_0x15a216[_0x43edcb(0x86)])return 0x0;if(!_0x4abb83['prerelease'])return 0x1;if(!_0x15a216[_0x43edcb(0x86)])return-0x1;if(_0x4abb83['prerelease']===_0x15a216[_0x43edcb(0x86)])return 0x0;return _0x4abb83[_0x43edcb(0x86)]<_0x15a216[_0x43edcb(0x86)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x3ca09a=a104_0x27e4,_0x392e6f=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x3ca09a(0x85)]()[_0x3ca09a(0x81)]();return _0x392e6f==='1'||_0x392e6f===_0x3ca09a(0x8c)||_0x392e6f===_0x3ca09a(0x7e);}function cacheRoot(){const _0x341cca=a104_0x27e4;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x341cca(0x74));}export function getUpdateNoticeCachePath(){const _0x267ff3=a104_0x27e4;return join(cacheRoot(),_0x267ff3(0x7f),'update-check.json');}async function readUpdateNoticeCache(){const _0x452668=a104_0x27e4;try{const _0x18ad42=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x3aa769=JSON['parse'](_0x18ad42);if(!_0x3aa769||typeof _0x3aa769!==_0x452668(0x87))return{};return _0x3aa769;}catch{return{};}}async function writeUpdateNoticeCache(_0x38a8ff){const _0x4dae5a=a104_0x27e4;try{const _0x22307a=getUpdateNoticeCachePath();await mkdir(dirname(_0x22307a),{'recursive':!![]}),await writeFile(_0x22307a,JSON['stringify'](_0x38a8ff,null,0x2)+'\x0a',_0x4dae5a(0x6c));}catch{}}function isFreshCheck(_0x398f9c,_0x133539){const _0x1836ea=a104_0x27e4;return typeof _0x398f9c[_0x1836ea(0x91)]===_0x1836ea(0x77)&&_0x133539-_0x398f9c['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xa5769e,_0x57387d,_0x4dae12){const _0x5c7617=a104_0x27e4;return _0xa5769e[_0x5c7617(0x8a)]===_0x57387d&&typeof _0xa5769e[_0x5c7617(0x7b)]===_0x5c7617(0x77)&&_0x4dae12-_0xa5769e[_0x5c7617(0x7b)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0xe4e6d5=0x5dc){const _0x4e1815=a104_0x27e4;try{const _0x5a6bb6=NPM_REGISTRY_BASE_URL+_0x4e1815(0x6f)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x4e1815(0x8e),_0x135d84=await fetch(_0x5a6bb6,{'signal':AbortSignal[_0x4e1815(0x7d)](_0xe4e6d5)});if(!_0x135d84['ok'])return null;const _0x233a72=await _0x135d84['json']();if(!_0x233a72||typeof _0x233a72!==_0x4e1815(0x87))return null;return Object['fromEntries'](Object['entries'](_0x233a72)[_0x4e1815(0x76)](([,_0x54e362])=>typeof _0x54e362===_0x4e1815(0x78)&&_0x54e362[_0x4e1815(0x85)]())[_0x4e1815(0x8b)](([_0xe4d690,_0x3585ca])=>[_0xe4d690,String(_0x3585ca)['trim']()]));}catch{return null;}}function a104_0x27e4(_0x5de4c3,_0x5c94cd){_0x5de4c3=_0x5de4c3-0x6c;const _0x1bc9ef=a104_0x1bc9();let _0x27e4e9=_0x1bc9ef[_0x5de4c3];return _0x27e4e9;}export function buildNpmVersionUrl(_0x36453f){const _0x2247ce=a104_0x27e4;return _0x2247ce(0x90)+LOVRABET_NPM_PACKAGE_NAME+_0x2247ce(0x89)+_0x36453f;}function a104_0x1bc9(){const _0x42ae2f=['https://www.npmjs.com/package/','checkedAt','utf8','104ixGGtu','latest','/-/package/','\x20available,\x20current\x20','9819hJOKBs','58405UhFCiF','14088hrZnrH','.cache','182cyOURe','filter','number','string','match','363807HqCnWV','lastNotifiedAt','204izwVwP','timeout','yes','lovrabet-cli','minor','toLowerCase','3489432mNExBr','12232fMFeCq','4595DMelNR','trim','prerelease','object','54582FEfQhU','/v/','lastNotifiedVersion','map','true','190CuldnM','/dist-tags','now'];a104_0x1bc9=function(){return _0x42ae2f;};return a104_0x1bc9();}export async function resolveLatestUpdateNotice(){const _0x332c0d=a104_0x27e4;if(isUpdateNoticeDisabled())return null;try{const _0x881798=Date[_0x332c0d(0x8f)](),_0x3708f6=getCliVersion(),_0x3188f3=await readUpdateNoticeCache();let _0x1d0f21=isFreshCheck(_0x3188f3,_0x881798)?_0x3188f3[_0x332c0d(0x6e)]?.[_0x332c0d(0x85)]():undefined;if(!_0x1d0f21&&!isFreshCheck(_0x3188f3,_0x881798)){const _0x12abae=await fetchNpmDistTags();_0x1d0f21=_0x12abae?.['latest']?.[_0x332c0d(0x85)](),await writeUpdateNoticeCache({..._0x3188f3,'checkedAt':_0x881798,'latest':_0x1d0f21,'failed':!_0x1d0f21});}if(!_0x1d0f21||compareSemver(_0x3708f6,_0x1d0f21)>=0x0)return null;if(isRecentlyNotified(_0x3188f3,_0x1d0f21,_0x881798))return null;const _0xec220=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x3188f3,'checkedAt':isFreshCheck(_0x3188f3,_0x881798)?_0x3188f3[_0x332c0d(0x91)]:_0x881798,'latest':_0x1d0f21,'failed':![],'lastNotifiedVersion':_0x1d0f21,'lastNotifiedAt':_0x881798}),{'command':_0xec220,'current':_0x3708f6,'latest':_0x1d0f21,'url':buildNpmVersionUrl(_0x1d0f21),'message':CLI_BIN_NAME+'\x20'+_0x1d0f21+_0x332c0d(0x70)+_0x3708f6+',\x20run:\x20'+_0xec220};}catch{return null;}}
1
+ (function(_0x2e4eb0,_0x54cd63){const _0x27aa4b=a104_0x1df6,_0x384f18=_0x2e4eb0();while(!![]){try{const _0xc50593=-parseInt(_0x27aa4b(0x189))/0x1+parseInt(_0x27aa4b(0x18d))/0x2+parseInt(_0x27aa4b(0x178))/0x3*(-parseInt(_0x27aa4b(0x172))/0x4)+-parseInt(_0x27aa4b(0x17d))/0x5*(parseInt(_0x27aa4b(0x17f))/0x6)+-parseInt(_0x27aa4b(0x174))/0x7+parseInt(_0x27aa4b(0x180))/0x8*(-parseInt(_0x27aa4b(0x18a))/0x9)+parseInt(_0x27aa4b(0x175))/0xa;if(_0xc50593===_0x54cd63)break;else _0x384f18['push'](_0x384f18['shift']());}catch(_0x4785f5){_0x384f18['push'](_0x384f18['shift']());}}}(a104_0x1961,0xb015c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x1bd6a0){const _0x557555=a104_0x1df6,_0x260f6e=_0x1bd6a0[_0x557555(0x17e)]()[_0x557555(0x183)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x260f6e)return null;return{'major':Number(_0x260f6e[0x1]),'minor':Number(_0x260f6e[0x2]),'patch':Number(_0x260f6e[0x3]),'prerelease':_0x260f6e[0x4]};}function compareSemver(_0x41d6b0,_0x4ffd70){const _0x4f151c=a104_0x1df6,_0x3f63a2=parseSemver(_0x41d6b0),_0x14a278=parseSemver(_0x4ffd70);if(!_0x3f63a2||!_0x14a278)throw new Error(_0x4f151c(0x18f));for(const _0x542213 of[_0x4f151c(0x187),_0x4f151c(0x185),'patch']){if(_0x3f63a2[_0x542213]<_0x14a278[_0x542213])return-0x1;if(_0x3f63a2[_0x542213]>_0x14a278[_0x542213])return 0x1;}if(!_0x3f63a2[_0x4f151c(0x188)]&&!_0x14a278['prerelease'])return 0x0;if(!_0x3f63a2[_0x4f151c(0x188)])return 0x1;if(!_0x14a278[_0x4f151c(0x188)])return-0x1;if(_0x3f63a2['prerelease']===_0x14a278[_0x4f151c(0x188)])return 0x0;return _0x3f63a2['prerelease']<_0x14a278['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x541cbf=a104_0x1df6,_0x1e9ae5=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x541cbf(0x17e)]()[_0x541cbf(0x170)]();return _0x1e9ae5==='1'||_0x1e9ae5===_0x541cbf(0x190)||_0x1e9ae5==='yes';}function cacheRoot(){const _0x1a7108=a104_0x1df6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1a7108(0x17c));}export function getUpdateNoticeCachePath(){const _0x5eb213=a104_0x1df6;return join(cacheRoot(),_0x5eb213(0x181),'update-check.json');}function a104_0x1961(){const _0x235a1e=['stringify','2026864bxvOqC','30878770QGBqHi','string','number','645upoQdt','timeout','\x20available,\x20current\x20','/v/','.cache','2005xgWpvy','trim','8238IgCdXp','1320VdyCzX','lovrabet-cli','map','match','latest','minor','entries','major','prerelease','421962aGSLCQ','76698MYxYkp','https://www.npmjs.com/package/','fromEntries','1077888esqShf','\x20update','Invalid\x20semver','true','json','/dist-tags','checkedAt','object','parse','lastNotifiedAt','toLowerCase','filter','4416BxECjG'];a104_0x1961=function(){return _0x235a1e;};return a104_0x1961();}async function readUpdateNoticeCache(){const _0x29a1c2=a104_0x1df6;try{const _0x3551a9=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x56b077=JSON[_0x29a1c2(0x195)](_0x3551a9);if(!_0x56b077||typeof _0x56b077!==_0x29a1c2(0x194))return{};return _0x56b077;}catch{return{};}}function a104_0x1df6(_0x1cfa48,_0x46a0df){_0x1cfa48=_0x1cfa48-0x16f;const _0x1961d4=a104_0x1961();let _0x1df6bd=_0x1961d4[_0x1cfa48];return _0x1df6bd;}async function writeUpdateNoticeCache(_0x1f3377){const _0x3e19fd=a104_0x1df6;try{const _0x22a337=getUpdateNoticeCachePath();await mkdir(dirname(_0x22a337),{'recursive':!![]}),await writeFile(_0x22a337,JSON[_0x3e19fd(0x173)](_0x1f3377,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x1d536f,_0x356cff){const _0x53a6a9=a104_0x1df6;return typeof _0x1d536f[_0x53a6a9(0x193)]===_0x53a6a9(0x177)&&_0x356cff-_0x1d536f[_0x53a6a9(0x193)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3bf116,_0x46c9ce,_0x272d47){const _0xb26760=a104_0x1df6;return _0x3bf116['lastNotifiedVersion']===_0x46c9ce&&typeof _0x3bf116['lastNotifiedAt']==='number'&&_0x272d47-_0x3bf116[_0xb26760(0x16f)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x2a1a8f=0x5dc){const _0x264042=a104_0x1df6;try{const _0x560bb5=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x264042(0x192),_0x265233=await fetch(_0x560bb5,{'signal':AbortSignal[_0x264042(0x179)](_0x2a1a8f)});if(!_0x265233['ok'])return null;const _0x1a601f=await _0x265233[_0x264042(0x191)]();if(!_0x1a601f||typeof _0x1a601f!=='object')return null;return Object[_0x264042(0x18c)](Object[_0x264042(0x186)](_0x1a601f)[_0x264042(0x171)](([,_0x7ef60b])=>typeof _0x7ef60b===_0x264042(0x176)&&_0x7ef60b[_0x264042(0x17e)]())[_0x264042(0x182)](([_0x53e8e4,_0x54e674])=>[_0x53e8e4,String(_0x54e674)[_0x264042(0x17e)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x43b023){const _0x432143=a104_0x1df6;return _0x432143(0x18b)+LOVRABET_NPM_PACKAGE_NAME+_0x432143(0x17b)+_0x43b023;}export async function resolveLatestUpdateNotice(){const _0x1eedc6=a104_0x1df6;if(isUpdateNoticeDisabled())return null;try{const _0x452458=Date['now'](),_0x284631=getCliVersion(),_0x8ae7be=await readUpdateNoticeCache();let _0x2e5eb0=isFreshCheck(_0x8ae7be,_0x452458)?_0x8ae7be[_0x1eedc6(0x184)]?.[_0x1eedc6(0x17e)]():undefined;if(!_0x2e5eb0&&!isFreshCheck(_0x8ae7be,_0x452458)){const _0x5ae0c7=await fetchNpmDistTags();_0x2e5eb0=_0x5ae0c7?.[_0x1eedc6(0x184)]?.['trim'](),await writeUpdateNoticeCache({..._0x8ae7be,'checkedAt':_0x452458,'latest':_0x2e5eb0,'failed':!_0x2e5eb0});}if(!_0x2e5eb0||compareSemver(_0x284631,_0x2e5eb0)>=0x0)return null;if(isRecentlyNotified(_0x8ae7be,_0x2e5eb0,_0x452458))return null;const _0x1420c2=CLI_BIN_NAME+_0x1eedc6(0x18e);return await writeUpdateNoticeCache({..._0x8ae7be,'checkedAt':isFreshCheck(_0x8ae7be,_0x452458)?_0x8ae7be['checkedAt']:_0x452458,'latest':_0x2e5eb0,'failed':![],'lastNotifiedVersion':_0x2e5eb0,'lastNotifiedAt':_0x452458}),{'command':_0x1420c2,'current':_0x284631,'latest':_0x2e5eb0,'url':buildNpmVersionUrl(_0x2e5eb0),'message':CLI_BIN_NAME+'\x20'+_0x2e5eb0+_0x1eedc6(0x17a)+_0x284631+',\x20run:\x20'+_0x1420c2};}catch{return null;}}
@@ -1 +1 @@
1
- function a105_0x347f(){const _0x2207dd=['602676OopgyR','slice','63uyPxyt','unknown','4628576dkAIgZ','3448440pbYFeS','159474WnxwMt','6480bfglkj','7833940SMyeTt','1416dgxnUk','124832CGXqui','9QBpAlg'];a105_0x347f=function(){return _0x2207dd;};return a105_0x347f();}(function(_0x340a50,_0x5b2392){const _0x2f7010=a105_0x79de,_0x2020d7=_0x340a50();while(!![]){try{const _0x1f138b=parseInt(_0x2f7010(0xa7))/0x1+-parseInt(_0x2f7010(0xa5))/0x2+parseInt(_0x2f7010(0xa4))/0x3*(parseInt(_0x2f7010(0xa2))/0x4)+parseInt(_0x2f7010(0xa0))/0x5+-parseInt(_0x2f7010(0xa1))/0x6*(parseInt(_0x2f7010(0xa9))/0x7)+-parseInt(_0x2f7010(0xab))/0x8+parseInt(_0x2f7010(0xa6))/0x9*(-parseInt(_0x2f7010(0xa3))/0xa);if(_0x1f138b===_0x5b2392)break;else _0x2020d7['push'](_0x2020d7['shift']());}catch(_0xbefd32){_0x2020d7['push'](_0x2020d7['shift']());}}}(a105_0x347f,0x600c3));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x7e606f=a105_0x79de,_0x511f17=String(GIT_COMMIT);return _0x511f17&&_0x511f17!==_0x7e606f(0xaa)?_0x511f17:'';}function a105_0x79de(_0x4be68f,_0x57960e){_0x4be68f=_0x4be68f-0xa0;const _0x347f18=a105_0x347f();let _0x79de5c=_0x347f18[_0x4be68f];return _0x79de5c;}export function getCliVersionDisplay(){const _0x182133=a105_0x79de,_0x4124e8=getCliGitCommit(),_0x5ee5d8=BUILD_TIME[_0x182133(0xa8)](0x0,0xa);if(!_0x4124e8||!_0x5ee5d8)return VERSION;return VERSION+'\x20('+_0x4124e8+',\x20'+_0x5ee5d8+')';}
1
+ function a105_0x3e6b(){const _0x546010=['8934lzWeyx','2556308DvDBtW','3438840QBKmFA','1816906PVBfWC','343hkyIkT','3GjQSOO','1190ZftCik','14564HNZsnE','972EJEnaJ','2364mjQWIu','199161JCCYmN','360CXbJaU'];a105_0x3e6b=function(){return _0x546010;};return a105_0x3e6b();}(function(_0x5cfe30,_0x4002a4){const _0x213fa2=a105_0x2a4f,_0x51214c=_0x5cfe30();while(!![]){try{const _0x59bcd9=-parseInt(_0x213fa2(0x123))/0x1*(-parseInt(_0x213fa2(0x11b))/0x2)+-parseInt(_0x213fa2(0x118))/0x3*(parseInt(_0x213fa2(0x120))/0x4)+-parseInt(_0x213fa2(0x119))/0x5*(parseInt(_0x213fa2(0x11f))/0x6)+parseInt(_0x213fa2(0x122))/0x7+parseInt(_0x213fa2(0x121))/0x8+-parseInt(_0x213fa2(0x11d))/0x9*(-parseInt(_0x213fa2(0x11e))/0xa)+-parseInt(_0x213fa2(0x11a))/0xb*(parseInt(_0x213fa2(0x11c))/0xc);if(_0x59bcd9===_0x4002a4)break;else _0x51214c['push'](_0x51214c['shift']());}catch(_0xbff027){_0x51214c['push'](_0x51214c['shift']());}}}(a105_0x3e6b,0x61484));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a105_0x2a4f(_0x505e03,_0x8eda82){_0x505e03=_0x505e03-0x118;const _0x3e6b8e=a105_0x3e6b();let _0x2a4f74=_0x3e6b8e[_0x505e03];return _0x2a4f74;}export function getCliGitCommit(){const _0x5130bc=String(GIT_COMMIT);return _0x5130bc&&_0x5130bc!=='unknown'?_0x5130bc:'';}export function getCliVersionDisplay(){const _0x3ad35b=getCliGitCommit(),_0x2687df=BUILD_TIME['slice'](0x0,0xa);if(!_0x3ad35b||!_0x2687df)return VERSION;return VERSION+'\x20('+_0x3ad35b+',\x20'+_0x2687df+')';}
@@ -1 +1 @@
1
- function a106_0x535c(_0x4ed532,_0x2c6ab6){_0x4ed532=_0x4ed532-0xd0;var _0x3ad169=a106_0x3ad1();var _0x535c7d=_0x3ad169[_0x4ed532];return _0x535c7d;}(function(_0x56c3bf,_0x2ebef6){var _0x37d615=a106_0x535c,_0x5a13cb=_0x56c3bf();while(!![]){try{var _0x201ce4=-parseInt(_0x37d615(0xd0))/0x1*(parseInt(_0x37d615(0xd4))/0x2)+-parseInt(_0x37d615(0xd1))/0x3+-parseInt(_0x37d615(0xd2))/0x4+parseInt(_0x37d615(0xd6))/0x5*(parseInt(_0x37d615(0xd8))/0x6)+-parseInt(_0x37d615(0xdb))/0x7+-parseInt(_0x37d615(0xd9))/0x8*(parseInt(_0x37d615(0xd3))/0x9)+-parseInt(_0x37d615(0xda))/0xa*(-parseInt(_0x37d615(0xd5))/0xb);if(_0x201ce4===_0x2ebef6)break;else _0x5a13cb['push'](_0x5a13cb['shift']());}catch(_0x2aeb6d){_0x5a13cb['push'](_0x5a13cb['shift']());}}}(a106_0x3ad1,0x8fbde));function a106_0x3ad1(){var _0x1999a0=['3398181pQlRrs','2716360cmdiir','24237XGpKxE','8QQXvLh','341kijPig','5opTLxd','stderr','3695352qyzyya','2696FRwQEr','1210530SZLiIL','7276325DGwHWu','5234qfIlpU'];a106_0x3ad1=function(){return _0x1999a0;};return a106_0x3ad1();}export function writeCliSideChannelLine(_0x458c9c){var _0x4620f0=a106_0x535c;process[_0x4620f0(0xd7)]['write'](_0x458c9c+'\x0a');}
1
+ (function(_0xeab3a2,_0x6f214b){var _0x134161=a106_0x59d6,_0x541e8a=_0xeab3a2();while(!![]){try{var _0x232bc1=parseInt(_0x134161(0x1df))/0x1*(parseInt(_0x134161(0x1dd))/0x2)+parseInt(_0x134161(0x1e2))/0x3+parseInt(_0x134161(0x1e3))/0x4+-parseInt(_0x134161(0x1e6))/0x5+-parseInt(_0x134161(0x1e5))/0x6+-parseInt(_0x134161(0x1e0))/0x7+-parseInt(_0x134161(0x1e1))/0x8;if(_0x232bc1===_0x6f214b)break;else _0x541e8a['push'](_0x541e8a['shift']());}catch(_0x15c256){_0x541e8a['push'](_0x541e8a['shift']());}}}(a106_0x3763,0x39fe6));function a106_0x59d6(_0x5565d6,_0x725956){_0x5565d6=_0x5565d6-0x1dd;var _0x37635f=a106_0x3763();var _0x59d68b=_0x37635f[_0x5565d6];return _0x59d68b;}export function writeCliSideChannelLine(_0x273982){var _0x6b8264=a106_0x59d6;process[_0x6b8264(0x1de)][_0x6b8264(0x1e4)](_0x273982+'\x0a');}function a106_0x3763(){var _0x4078f8=['2872590KSbosU','1083176WkSWcg','1272009DlpHYU','1256040fbzsho','write','739962Sbbkvx','665620xDizTI','2GqPNku','stderr','301747aRFrBW'];a106_0x3763=function(){return _0x4078f8;};return a106_0x3763();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.4-beta.1",
3
+ "version": "2.1.5",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",