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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) 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/app-config/get.js +1 -0
  10. package/lib/commands/app-config/index.js +1 -0
  11. package/lib/commands/app-config/shared.js +1 -0
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/config/definitions.js +1 -1
  23. package/lib/commands/config/shared.js +1 -1
  24. package/lib/commands/data/index.js +1 -1
  25. package/lib/commands/dataset/detail.js +1 -1
  26. package/lib/commands/dataset/index.js +1 -1
  27. package/lib/commands/dataset/list.js +1 -1
  28. package/lib/commands/dataset/sdk-doc.js +1 -1
  29. package/lib/commands/doctor.js +1 -1
  30. package/lib/commands/init.js +1 -1
  31. package/lib/commands/kb/index.js +1 -1
  32. package/lib/commands/logs/index.js +1 -1
  33. package/lib/commands/personal-bff/index.js +1 -1
  34. package/lib/commands/registry.js +1 -1
  35. package/lib/commands/schema.js +1 -1
  36. package/lib/commands/service/dynamic.js +1 -1
  37. package/lib/commands/service/index.js +1 -1
  38. package/lib/commands/service/registry.js +1 -1
  39. package/lib/commands/skill/commands/create.js +1 -1
  40. package/lib/commands/skill/commands/install.js +1 -1
  41. package/lib/commands/skill/commands/list.js +1 -1
  42. package/lib/commands/skill/commands/push.js +1 -1
  43. package/lib/commands/skill/commands/validate.js +1 -1
  44. package/lib/commands/skill/flags.js +1 -1
  45. package/lib/commands/skill/index.js +1 -1
  46. package/lib/commands/skill/manifest-helpers.js +1 -1
  47. package/lib/commands/skill/push-retarget.js +1 -0
  48. package/lib/commands/skill/scopes.js +1 -1
  49. package/lib/commands/skill/summary.js +1 -1
  50. package/lib/commands/skill/templates.js +1 -1
  51. package/lib/commands/skill/validate.js +1 -1
  52. package/lib/commands/sql/detail.js +1 -1
  53. package/lib/commands/sql/exec.js +1 -1
  54. package/lib/commands/sql/index.js +1 -1
  55. package/lib/commands/update.js +1 -1
  56. package/lib/commands/workspace/index.js +1 -1
  57. package/lib/config/schema.js +1 -1
  58. package/lib/constant/app.js +1 -1
  59. package/lib/constant/auth-mode.js +1 -1
  60. package/lib/constant/cli.js +1 -1
  61. package/lib/constant/defaults.js +1 -1
  62. package/lib/constant/distribution.js +1 -1
  63. package/lib/constant/domain.js +1 -1
  64. package/lib/constant/env.js +1 -1
  65. package/lib/constant/output.js +1 -1
  66. package/lib/constant/product.js +1 -1
  67. package/lib/constant/risk.js +1 -1
  68. package/lib/constant/url.js +1 -1
  69. package/lib/context.js +1 -1
  70. package/lib/core/api-client.js +1 -1
  71. package/lib/core/db-resolver.js +1 -1
  72. package/lib/core/sdk-client.js +1 -1
  73. package/lib/errors.js +1 -1
  74. package/lib/framework/build-all-flags.js +1 -1
  75. package/lib/framework/dryrun.js +1 -1
  76. package/lib/framework/flags.js +1 -1
  77. package/lib/framework/help.js +1 -1
  78. package/lib/framework/index.js +1 -1
  79. package/lib/framework/output.js +1 -1
  80. package/lib/framework/preparse.js +1 -1
  81. package/lib/framework/response.js +1 -1
  82. package/lib/framework/runner-confirmation.js +1 -1
  83. package/lib/framework/runner-error.js +1 -1
  84. package/lib/framework/runner.js +1 -1
  85. package/lib/framework/schema-export.js +1 -1
  86. package/lib/framework/types.js +1 -1
  87. package/lib/generated/build-info.js +1 -1
  88. package/lib/help.js +1 -1
  89. package/lib/skills/npx-skills-add.js +1 -1
  90. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  91. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  92. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  93. package/lib/skills/runtime-skill-sync/links.js +1 -1
  94. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  95. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  96. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  97. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  98. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  99. package/lib/skills/runtime-skill-sync/push.js +1 -1
  100. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  101. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  103. package/lib/skills/runtime-skill-sync.js +1 -1
  104. package/lib/utils/apply-jq-filter.js +1 -1
  105. package/lib/utils/logger.js +1 -1
  106. package/lib/utils/params.js +1 -1
  107. package/lib/utils/platform.js +1 -1
  108. package/lib/utils/update-notice.js +1 -1
  109. package/lib/utils/version.js +1 -1
  110. package/lib/utils/write-cli-side-channel.js +1 -1
  111. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1aabda,_0x3e4a82){const _0x1fdaee=a90_0x3895,_0x4f3e32=_0x1aabda();while(!![]){try{const _0xb8a78a=parseInt(_0x1fdaee(0x94))/0x1*(-parseInt(_0x1fdaee(0xae))/0x2)+-parseInt(_0x1fdaee(0xb0))/0x3+-parseInt(_0x1fdaee(0xa5))/0x4+-parseInt(_0x1fdaee(0xac))/0x5+-parseInt(_0x1fdaee(0xa9))/0x6*(-parseInt(_0x1fdaee(0x99))/0x7)+parseInt(_0x1fdaee(0xb4))/0x8+parseInt(_0x1fdaee(0xb2))/0x9;if(_0xb8a78a===_0x3e4a82)break;else _0x4f3e32['push'](_0x4f3e32['shift']());}catch(_0x20b8a9){_0x4f3e32['push'](_0x4f3e32['shift']());}}}(a90_0x4fe5,0x88724));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';function a90_0x3895(_0x55f4ca,_0x2aac3c){_0x55f4ca=_0x55f4ca-0x92;const _0x4fe51c=a90_0x4fe5();let _0x3895b5=_0x4fe51c[_0x55f4ca];return _0x3895b5;}import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x3f248b){const _0xe5d971=a90_0x3895;return _0x3f248b['bytes']??Buffer['from'](_0x3f248b[_0xe5d971(0x9c)]??'',_0xe5d971(0xa6));}export function fileText(_0x43d7c2){const _0x540e55=a90_0x3895;return fileContent(_0x43d7c2)[_0x540e55(0x9e)]('utf8');}export function normalizeLocalFiles(_0x1f21e0){const _0x5e4aa4=a90_0x3895;if(!Array[_0x5e4aa4(0xab)](_0x1f21e0)||_0x1f21e0[_0x5e4aa4(0xb3)]===0x0)return[];const _0x26551a=new Map();for(const _0x49d44f of _0x1f21e0){if(!_0x49d44f||typeof _0x49d44f!==_0x5e4aa4(0xa0)||typeof _0x49d44f['path']!=='string')throw CliErrors[_0x5e4aa4(0xba)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x22f95f=normalizeSkillRelativePath(_0x49d44f['path']);if(_0x26551a[_0x5e4aa4(0x98)](_0x22f95f))throw CliErrors[_0x5e4aa4(0xba)](_0x5e4aa4(0x92)+_0x22f95f);if(_0x49d44f[_0x5e4aa4(0xb1)]!==undefined&&!Buffer[_0x5e4aa4(0xb9)](_0x49d44f[_0x5e4aa4(0xb1)]))throw CliErrors[_0x5e4aa4(0xba)](_0x5e4aa4(0xa4)+_0x22f95f);if(_0x49d44f[_0x5e4aa4(0xb1)]===undefined&&typeof _0x49d44f[_0x5e4aa4(0x9c)]!=='string')throw CliErrors[_0x5e4aa4(0xba)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x22f95f);const _0x590193=fileContent(_0x49d44f);_0x26551a[_0x5e4aa4(0xbb)](_0x22f95f,{'path':_0x22f95f,'bytes':_0x590193});}return Array[_0x5e4aa4(0x97)](_0x26551a[_0x5e4aa4(0x9d)]())[_0x5e4aa4(0xaf)](compareSkillFiles);}export function normalizeManifestFiles(_0x2d811f){const _0x3b7238=a90_0x3895;if(!Array[_0x3b7238(0xab)](_0x2d811f)||_0x2d811f[_0x3b7238(0xb3)]===0x0)return[];const _0x3aa5df=new Map();for(const _0x37b344 of _0x2d811f){if(!_0x37b344||typeof _0x37b344!==_0x3b7238(0xa0)||typeof _0x37b344['path']!=='string')throw CliErrors[_0x3b7238(0xba)](_0x3b7238(0xb6));const _0x3ecff0=normalizeSkillRelativePath(_0x37b344[_0x3b7238(0xa1)]);if(_0x3aa5df[_0x3b7238(0x98)](_0x3ecff0))throw CliErrors[_0x3b7238(0xba)](_0x3b7238(0x92)+_0x3ecff0);if(!isSha256Hex(_0x37b344['sha256']))throw CliErrors[_0x3b7238(0xba)](_0x3b7238(0xaa)+_0x3ecff0);if(!Number[_0x3b7238(0x9a)](_0x37b344['size'])||_0x37b344[_0x3b7238(0xb5)]<0x0)throw CliErrors[_0x3b7238(0xba)](_0x3b7238(0xa7)+_0x3ecff0);_0x3aa5df['set'](_0x3ecff0,{'path':_0x3ecff0,'sha256':_0x37b344['sha256']['toLowerCase'](),'size':_0x37b344['size']});}return Array[_0x3b7238(0x97)](_0x3aa5df[_0x3b7238(0x9d)]())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0x5031d3){const _0x279198=realpathSync(_0x5031d3),_0x3bfe8f=[];function _0x2bdfec(_0x1f6c2a){const _0x18f2fd=a90_0x3895,_0x51fb2d=readdirSync(_0x1f6c2a,{'withFileTypes':!![]})[_0x18f2fd(0xaf)]((_0x3989b0,_0x4b82e9)=>_0x3989b0[_0x18f2fd(0xa3)]['localeCompare'](_0x4b82e9[_0x18f2fd(0xa3)]));for(const _0x534336 of _0x51fb2d){if(_0x534336[_0x18f2fd(0xb8)]()&&IGNORED_DIR_NAMES[_0x18f2fd(0x98)](_0x534336[_0x18f2fd(0xa3)]))continue;if(IGNORED_FILE_NAMES[_0x18f2fd(0x98)](_0x534336['name']))continue;const _0x3dc7b7=resolve(_0x1f6c2a,_0x534336['name']);if(_0x534336[_0x18f2fd(0xa8)]())throw CliErrors[_0x18f2fd(0xba)](_0x18f2fd(0xa2)+_0x3dc7b7);const _0x4a3fd3=toPosixPath(relative(_0x279198,_0x3dc7b7));if(_0x534336[_0x18f2fd(0xb8)]()){_0x2bdfec(_0x3dc7b7);continue;}if(!_0x534336['isFile']())continue;validateSkillRelativePath(_0x4a3fd3);const _0x4b32ec=readFileSync(_0x3dc7b7);_0x3bfe8f['push']({'path':_0x4a3fd3,'bytes':_0x4b32ec});}}return _0x2bdfec(_0x279198),normalizeLocalFiles(_0x3bfe8f);}export function compareSkillFiles(_0x4a05fb,_0x276c63){const _0x3a1ef6=a90_0x3895;if(_0x4a05fb[_0x3a1ef6(0xa1)]===SKILL_FILE)return _0x276c63[_0x3a1ef6(0xa1)]===SKILL_FILE?0x0:-0x1;if(_0x276c63[_0x3a1ef6(0xa1)]===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x3a1ef6(0x97)](_0x4a05fb[_0x3a1ef6(0xa1)],_0x3a1ef6(0xa6)),Buffer[_0x3a1ef6(0x97)](_0x276c63[_0x3a1ef6(0xa1)],_0x3a1ef6(0xa6)));}function a90_0x4fe5(){const _0x560741=['isSymbolicLink','607242EexRce','Skill\x20file\x20sha256\x20is\x20invalid:\x20','isArray','4789125PMBWsR','split','2192jpvBxD','sort','271029MzeLHh','bytes','20074626YrhCTj','length','5252728PkkEww','size','Skill\x20file\x20path\x20must\x20be\x20text.','Unsafe\x20Skill\x20file\x20path:\x20','isDirectory','isBuffer','validation','set','Duplicate\x20Skill\x20file\x20path:\x20','startsWith','381MhsvWk','includes','string','from','has','7PHLApm','isSafeInteger','trim','content','values','toString','test','object','path','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','name','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','3854736PPspHg','utf8','Skill\x20file\x20size\x20is\x20invalid:\x20'];a90_0x4fe5=function(){return _0x560741;};return a90_0x4fe5();}export function normalizeSkillRelativePath(_0x34c08e){const _0x2676b9=a90_0x3895,_0x29c451=toPosixPath(_0x34c08e[_0x2676b9(0x9b)]());return validateSkillRelativePath(_0x29c451),_0x29c451;}export function validateSkillRelativePath(_0x40889e){const _0x4c243a=a90_0x3895;if(!_0x40889e||_0x40889e[_0x4c243a(0x93)]('/')||_0x40889e[_0x4c243a(0x95)]('//'))throw CliErrors[_0x4c243a(0xba)](_0x4c243a(0xb7)+_0x40889e);for(const _0x32b611 of _0x40889e[_0x4c243a(0xad)]('/')){if(!_0x32b611||_0x32b611==='.'||_0x32b611==='..')throw CliErrors[_0x4c243a(0xba)](_0x4c243a(0xb7)+_0x40889e);}}export function toPosixPath(_0x3dc640){return _0x3dc640['replace'](/\\/g,'/');}export function isSha256Hex(_0x54c0ca){const _0x233528=a90_0x3895;return typeof _0x54c0ca===_0x233528(0x96)&&/^[a-fA-F0-9]{64}$/[_0x233528(0x9f)](_0x54c0ca);}
1
+ (function(_0x39b1d0,_0x464f6d){const _0x560c5a=a94_0x4250,_0xfd9d74=_0x39b1d0();while(!![]){try{const _0x9be9cc=-parseInt(_0x560c5a(0x140))/0x1+-parseInt(_0x560c5a(0x158))/0x2*(parseInt(_0x560c5a(0x149))/0x3)+-parseInt(_0x560c5a(0x150))/0x4+-parseInt(_0x560c5a(0x143))/0x5+-parseInt(_0x560c5a(0x153))/0x6*(-parseInt(_0x560c5a(0x154))/0x7)+-parseInt(_0x560c5a(0x14e))/0x8+parseInt(_0x560c5a(0x15c))/0x9;if(_0x9be9cc===_0x464f6d)break;else _0xfd9d74['push'](_0xfd9d74['shift']());}catch(_0x1d3201){_0xfd9d74['push'](_0xfd9d74['shift']());}}}(a94_0x4c8c,0x82f2d));import{readFileSync,readdirSync,realpathSync}from'node:fs';function a94_0x4250(_0x3303e4,_0x1e459e){_0x3303e4=_0x3303e4-0x139;const _0x4c8c1f=a94_0x4c8c();let _0x4250cd=_0x4c8c1f[_0x3303e4];return _0x4250cd;}import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x11c106){const _0x2861fe=a94_0x4250;return _0x11c106[_0x2861fe(0x14f)]??Buffer['from'](_0x11c106['content']??'',_0x2861fe(0x14d));}export function fileText(_0xb116ba){return fileContent(_0xb116ba)['toString']('utf8');}export function normalizeLocalFiles(_0x17cc7e){const _0xba4792=a94_0x4250;if(!Array['isArray'](_0x17cc7e)||_0x17cc7e['length']===0x0)return[];const _0x1be928=new Map();for(const _0x25a7c3 of _0x17cc7e){if(!_0x25a7c3||typeof _0x25a7c3!=='object'||typeof _0x25a7c3[_0xba4792(0x157)]!==_0xba4792(0x13f))throw CliErrors[_0xba4792(0x161)](_0xba4792(0x159));const _0xeaa483=normalizeSkillRelativePath(_0x25a7c3[_0xba4792(0x157)]);if(_0x1be928[_0xba4792(0x14b)](_0xeaa483))throw CliErrors[_0xba4792(0x161)](_0xba4792(0x141)+_0xeaa483);if(_0x25a7c3['bytes']!==undefined&&!Buffer['isBuffer'](_0x25a7c3[_0xba4792(0x14f)]))throw CliErrors[_0xba4792(0x161)](_0xba4792(0x13a)+_0xeaa483);if(_0x25a7c3[_0xba4792(0x14f)]===undefined&&typeof _0x25a7c3[_0xba4792(0x15d)]!==_0xba4792(0x13f))throw CliErrors[_0xba4792(0x161)](_0xba4792(0x146)+_0xeaa483);const _0x6841de=fileContent(_0x25a7c3);_0x1be928['set'](_0xeaa483,{'path':_0xeaa483,'bytes':_0x6841de});}return Array[_0xba4792(0x14c)](_0x1be928['values']())[_0xba4792(0x15e)](compareSkillFiles);}export function normalizeManifestFiles(_0xdf8025){const _0x281f40=a94_0x4250;if(!Array[_0x281f40(0x13b)](_0xdf8025)||_0xdf8025[_0x281f40(0x148)]===0x0)return[];const _0x3ccb99=new Map();for(const _0x3a40c6 of _0xdf8025){if(!_0x3a40c6||typeof _0x3a40c6!==_0x281f40(0x15b)||typeof _0x3a40c6['path']!==_0x281f40(0x13f))throw CliErrors['validation'](_0x281f40(0x159));const _0x346eb6=normalizeSkillRelativePath(_0x3a40c6[_0x281f40(0x157)]);if(_0x3ccb99[_0x281f40(0x14b)](_0x346eb6))throw CliErrors[_0x281f40(0x161)](_0x281f40(0x141)+_0x346eb6);if(!isSha256Hex(_0x3a40c6[_0x281f40(0x152)]))throw CliErrors[_0x281f40(0x161)](_0x281f40(0x155)+_0x346eb6);if(!Number[_0x281f40(0x13d)](_0x3a40c6['size'])||_0x3a40c6['size']<0x0)throw CliErrors[_0x281f40(0x161)](_0x281f40(0x145)+_0x346eb6);_0x3ccb99['set'](_0x346eb6,{'path':_0x346eb6,'sha256':_0x3a40c6[_0x281f40(0x152)][_0x281f40(0x13c)](),'size':_0x3a40c6['size']});}return Array[_0x281f40(0x14c)](_0x3ccb99[_0x281f40(0x15f)]())[_0x281f40(0x15e)](compareSkillFiles);}export function scanSkillDirectory(_0x1f940c){const _0x1d1d78=realpathSync(_0x1f940c),_0x227c12=[];function _0x15e660(_0x3bc95b){const _0x57816b=a94_0x4250,_0x5a13df=readdirSync(_0x3bc95b,{'withFileTypes':!![]})[_0x57816b(0x15e)]((_0x53db93,_0x20b23b)=>_0x53db93['name']['localeCompare'](_0x20b23b['name']));for(const _0x15f411 of _0x5a13df){if(_0x15f411[_0x57816b(0x139)]()&&IGNORED_DIR_NAMES['has'](_0x15f411[_0x57816b(0x151)]))continue;if(IGNORED_FILE_NAMES['has'](_0x15f411[_0x57816b(0x151)]))continue;const _0x3e434e=resolve(_0x3bc95b,_0x15f411[_0x57816b(0x151)]);if(_0x15f411['isSymbolicLink']())throw CliErrors[_0x57816b(0x161)](_0x57816b(0x13e)+_0x3e434e);const _0x14282a=toPosixPath(relative(_0x1d1d78,_0x3e434e));if(_0x15f411['isDirectory']()){_0x15e660(_0x3e434e);continue;}if(!_0x15f411[_0x57816b(0x147)]())continue;validateSkillRelativePath(_0x14282a);const _0x4994c0=readFileSync(_0x3e434e);_0x227c12[_0x57816b(0x156)]({'path':_0x14282a,'bytes':_0x4994c0});}}return _0x15e660(_0x1d1d78),normalizeLocalFiles(_0x227c12);}export function compareSkillFiles(_0x2d3490,_0x2a2763){const _0x42289b=a94_0x4250;if(_0x2d3490[_0x42289b(0x157)]===SKILL_FILE)return _0x2a2763[_0x42289b(0x157)]===SKILL_FILE?0x0:-0x1;if(_0x2a2763['path']===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x42289b(0x14c)](_0x2d3490[_0x42289b(0x157)],_0x42289b(0x14d)),Buffer['from'](_0x2a2763[_0x42289b(0x157)],_0x42289b(0x14d)));}export function normalizeSkillRelativePath(_0x28eca7){const _0x2ece6a=a94_0x4250,_0x1dcf32=toPosixPath(_0x28eca7[_0x2ece6a(0x160)]());return validateSkillRelativePath(_0x1dcf32),_0x1dcf32;}function a94_0x4c8c(){const _0x4bdb47=['bytes','3548096dNcPIH','name','sha256','687138sFsSbm','7YIdEZz','Skill\x20file\x20sha256\x20is\x20invalid:\x20','push','path','697924jayXgJ','Skill\x20file\x20path\x20must\x20be\x20text.','includes','object','27484542TSUBqe','content','sort','values','trim','validation','isDirectory','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','isArray','toLowerCase','isSafeInteger','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','string','498995pSVXPy','Duplicate\x20Skill\x20file\x20path:\x20','split','807405wchaec','Unsafe\x20Skill\x20file\x20path:\x20','Skill\x20file\x20size\x20is\x20invalid:\x20','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','isFile','length','9BLbCBL','replace','has','from','utf8','300880LhsyaP'];a94_0x4c8c=function(){return _0x4bdb47;};return a94_0x4c8c();}export function validateSkillRelativePath(_0x1df5fe){const _0x47b64f=a94_0x4250;if(!_0x1df5fe||_0x1df5fe['startsWith']('/')||_0x1df5fe[_0x47b64f(0x15a)]('//'))throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x1df5fe);for(const _0xc4e586 of _0x1df5fe[_0x47b64f(0x142)]('/')){if(!_0xc4e586||_0xc4e586==='.'||_0xc4e586==='..')throw CliErrors[_0x47b64f(0x161)](_0x47b64f(0x144)+_0x1df5fe);}}export function toPosixPath(_0x24afba){const _0x1bc821=a94_0x4250;return _0x24afba[_0x1bc821(0x14a)](/\\/g,'/');}export function isSha256Hex(_0x305394){return typeof _0x305394==='string'&&/^[a-fA-F0-9]{64}$/['test'](_0x305394);}
@@ -1 +1 @@
1
- (function(_0x26f62c,_0x369a0c){const _0x1cdeb2=a91_0x1b88,_0x33c264=_0x26f62c();while(!![]){try{const _0x502942=-parseInt(_0x1cdeb2(0x105))/0x1+parseInt(_0x1cdeb2(0xfb))/0x2*(-parseInt(_0x1cdeb2(0x108))/0x3)+parseInt(_0x1cdeb2(0x110))/0x4*(parseInt(_0x1cdeb2(0x104))/0x5)+-parseInt(_0x1cdeb2(0x107))/0x6*(parseInt(_0x1cdeb2(0x106))/0x7)+-parseInt(_0x1cdeb2(0x103))/0x8+-parseInt(_0x1cdeb2(0x117))/0x9*(-parseInt(_0x1cdeb2(0x10d))/0xa)+parseInt(_0x1cdeb2(0x113))/0xb;if(_0x502942===_0x369a0c)break;else _0x33c264['push'](_0x33c264['shift']());}catch(_0x52852d){_0x33c264['push'](_0x33c264['shift']());}}}(a91_0x29e6,0x3999a));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../errors.js';function a91_0x1b88(_0x57b3bd,_0xefc435){_0x57b3bd=_0x57b3bd-0xf3;const _0x29e670=a91_0x29e6();let _0x1b8852=_0x29e670[_0x57b3bd];return _0x1b8852;}import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x3dd058,_0x2ed5e4,_0x4378b3){const _0x157662=a91_0x1b88,_0x526b9f=requireSkillCode(_0x3dd058),_0x40e24e=requirePackageBytes(_0x526b9f,_0x4378b3['packageBytes']),_0x20ef9b=extractDownloadedPackage(_0x40e24e),_0x1e639f=_0x20ef9b[_0x157662(0xfd)](_0x6b7b21=>_0x6b7b21['path']===SKILL_FILE);if(!_0x1e639f)throw CliErrors[_0x157662(0x100)](_0x157662(0xf7)+SKILL_FILE+':\x20'+_0x526b9f);const _0x52315c=withMaterializedSkillFrontmatter(_0x20ef9b,_0x3dd058,_0x526b9f),_0x433a5f=_0x52315c[_0x157662(0xfd)](_0x3f5c8a=>_0x3f5c8a['path']===SKILL_FILE),_0x3199dd=fileText(_0x433a5f),_0x47c2f1=getRuntimeSkillDir(_0x4378b3['env'],_0x4378b3[_0x157662(0xf4)],_0x4378b3[_0x157662(0xfc)],_0x2ed5e4,_0x526b9f,_0x4378b3[_0x157662(0x116)]),_0xfd027c=resolve(_0x47c2f1,SKILL_FILE),_0x3ec75f=resolve(_0x47c2f1,METADATA_FILE),_0x1c9657=contentHash(_0x3199dd),_0x2170d3=readMetadataIfPresent(_0x3ec75f)?.[_0x157662(0x11b)];ensurePulledFilesCanBeOverwritten(_0x47c2f1,_0x3ec75f,_0x52315c,_0x4378b3[_0x157662(0x11c)]===!![]),mkdirSync(_0x47c2f1,{'recursive':!![],'mode':0x1c0});const _0x3a115f=existsSync(_0xfd027c)?readFileSync(_0xfd027c,'utf8'):undefined;return materializeFiles(_0x47c2f1,_0x52315c),removeStaleManagedFiles(_0x47c2f1,_0x2170d3,_0x52315c),writeJsonAtomic(_0x3ec75f,buildMetadata(_0x3dd058,_0x2ed5e4,_0x4378b3[_0x157662(0xfc)],_0x1c9657,_0x4378b3[_0x157662(0xf3)],_0x52315c,_0x40e24e)),{'skill':_0x3dd058,'scope':_0x2ed5e4,'dir':_0x47c2f1,'skillMdPath':_0xfd027c,'metadataPath':_0x3ec75f,'contentHash':_0x1c9657,'changed':_0x3a115f!==_0x3199dd};}function withMaterializedSkillFrontmatter(_0x923d45,_0x4a16f5,_0x5aa31a){const _0x51153c=a91_0x1b88;return normalizeLocalFiles(_0x923d45)[_0x51153c(0x109)](_0x5b75de=>{const _0x2e97c1=_0x51153c,_0x5b52e4=fileText(_0x5b75de);if(_0x5b75de['path']!==SKILL_FILE||hasYamlFrontmatter(_0x5b52e4))return _0x5b75de;return{'path':_0x5b75de[_0x2e97c1(0xf6)],'content':prependSkillFrontmatter(_0x5b52e4,{'name':_0x5aa31a,'description':_0x4a16f5['description']?.[_0x2e97c1(0x102)]()||_0x4a16f5[_0x2e97c1(0xf5)]?.['trim']()||_0x5aa31a})};});}function hasYamlFrontmatter(_0x5b59f0){const _0x1f5a55=a91_0x1b88;return/^\uFEFF?---\s*\r?\n/[_0x1f5a55(0xfe)](_0x5b59f0);}function a91_0x29e6(){const _0x34e174=['join','entries','fileHashes','force','contentHash','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','pulledAt','accessKey','skillName','path','Runtime\x20Skill\x20package\x20is\x20missing\x20','replace','stringify','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','2RhszCm','appCode','find','test','length','validation','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','trim','1397600HqWIEI','5RGDUJB','58568yqSXFn','7CvEmeN','2012904eSYrNd','48792XWrtcr','map','keys','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','name','10djgBeh','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','isFile','536392QlqZGM','Managed\x20file\x20was\x20removed\x20locally:\x20','utf8','3573625SyiaBg','---','name:\x20','paths','3257757LLoHxV','description'];a91_0x29e6=function(){return _0x34e174;};return a91_0x29e6();}function prependSkillFrontmatter(_0xbb373e,_0x3d23eb){const _0x34c031=a91_0x1b88,_0x51e6db=_0xbb373e['replace'](/^\uFEFF/,'');return[_0x34c031(0x114),_0x34c031(0x115)+yamlString(_0x3d23eb[_0x34c031(0x10c)]),'description:\x20'+yamlString(_0x3d23eb[_0x34c031(0x118)]),'---','',_0x51e6db][_0x34c031(0x119)]('\x0a');}function yamlString(_0x57cbc4){const _0x23cfff=a91_0x1b88;return JSON[_0x23cfff(0xf9)](_0x57cbc4[_0x23cfff(0xf8)](/\r/g,'')['trim']());}function ensurePulledFilesCanBeOverwritten(_0x27f601,_0x52c6fe,_0x49fbd4,_0x4c4065){const _0x2a7dc4=a91_0x1b88;if(_0x4c4065||!existsSync(_0x52c6fe))return;const _0x4e6b29=readMetadataIfPresent(_0x52c6fe);if(!_0x4e6b29)return;const _0x5e5386=_0x4e6b29['fileHashes']&&Object[_0x2a7dc4(0x10a)](_0x4e6b29['fileHashes'])[_0x2a7dc4(0xff)]>0x0?_0x4e6b29[_0x2a7dc4(0x11b)]:undefined;if(_0x5e5386)for(const [_0x182dd8,_0x2f28]of Object[_0x2a7dc4(0x11a)](_0x5e5386)){const _0x59f0cc=resolveManagedFilePath(_0x27f601,_0x182dd8);if(!existsSync(_0x59f0cc))throw CliErrors[_0x2a7dc4(0x100)](_0x2a7dc4(0x10e)+_0x27f601,_0x2a7dc4(0x111)+_0x182dd8);const _0x351d11=lstatSync(_0x59f0cc);if(!_0x351d11[_0x2a7dc4(0x10f)]())throw CliErrors[_0x2a7dc4(0x100)](_0x2a7dc4(0x10e)+_0x27f601,'Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'+_0x182dd8);const _0xec8c6=bufferSha256(readFileSync(_0x59f0cc));if(_0xec8c6!==_0x2f28)throw CliErrors['validation'](_0x2a7dc4(0x10e)+_0x27f601+'.\x20Changed\x20file:\x20'+_0x182dd8,_0x2a7dc4(0x101)+_0x182dd8);}else{const _0x33f10a=resolve(_0x27f601,SKILL_FILE);if(existsSync(_0x33f10a)&&_0x4e6b29[_0x2a7dc4(0x11d)]){const _0x106cd3=contentHash(readFileSync(_0x33f10a,_0x2a7dc4(0x112)));if(_0x106cd3!==_0x4e6b29[_0x2a7dc4(0x11d)])throw CliErrors[_0x2a7dc4(0x100)](_0x2a7dc4(0x10b)+_0x33f10a,_0x2a7dc4(0x11e));}}for(const _0x1bc084 of normalizeLocalFiles(_0x49fbd4)){if(_0x5e5386?.[_0x1bc084[_0x2a7dc4(0xf6)]])continue;if(!_0x5e5386&&_0x1bc084[_0x2a7dc4(0xf6)]===SKILL_FILE)continue;const _0xeb01ca=resolveManagedFilePath(_0x27f601,_0x1bc084[_0x2a7dc4(0xf6)]);if(!existsSync(_0xeb01ca))continue;const _0x14fc2f=lstatSync(_0xeb01ca);if(!_0x14fc2f[_0x2a7dc4(0x10f)]())throw CliErrors[_0x2a7dc4(0x100)](_0x2a7dc4(0x10e)+_0x27f601,_0x2a7dc4(0xfa)+_0x1bc084[_0x2a7dc4(0xf6)]);const _0x5c1b23=bufferSha256(readFileSync(_0xeb01ca));if(_0x5c1b23!==fileHash(_0x1bc084))throw CliErrors[_0x2a7dc4(0x100)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x27f601,'Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20'+_0x1bc084[_0x2a7dc4(0xf6)]);}}function materializeFiles(_0xac9ddf,_0x25b7e4){const _0xc9ddf4=a91_0x1b88;for(const _0x279454 of normalizeLocalFiles(_0x25b7e4)){const _0x36c5d3=resolveManagedFilePath(_0xac9ddf,_0x279454[_0xc9ddf4(0xf6)]);mkdirSync(dirname(_0x36c5d3),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x36c5d3,fileContent(_0x279454),0x180);}}function removeStaleManagedFiles(_0x1787b,_0x5bbdd5,_0xf0c4da){const _0x9dc9a6=a91_0x1b88;if(!_0x5bbdd5)return;const _0x44559f=new Set(normalizeLocalFiles(_0xf0c4da)['map'](_0x1e18e7=>_0x1e18e7[_0x9dc9a6(0xf6)]));for(const _0x40e8de of Object[_0x9dc9a6(0x10a)](_0x5bbdd5)){if(_0x44559f['has'](_0x40e8de))continue;const _0x2e6edb=resolveManagedFilePath(_0x1787b,_0x40e8de);existsSync(_0x2e6edb)&&lstatSync(_0x2e6edb)[_0x9dc9a6(0x10f)]()&&rmSync(_0x2e6edb,{'force':!![]});}}
1
+ (function(_0x189610,_0x472237){const _0x4f06f9=a95_0x50e1,_0x5e606d=_0x189610();while(!![]){try{const _0x5ef4de=parseInt(_0x4f06f9(0xb3))/0x1+-parseInt(_0x4f06f9(0xc3))/0x2*(-parseInt(_0x4f06f9(0xa7))/0x3)+-parseInt(_0x4f06f9(0xbb))/0x4+parseInt(_0x4f06f9(0xa0))/0x5+-parseInt(_0x4f06f9(0xc2))/0x6*(-parseInt(_0x4f06f9(0xb2))/0x7)+-parseInt(_0x4f06f9(0xa8))/0x8+-parseInt(_0x4f06f9(0xc4))/0x9;if(_0x5ef4de===_0x472237)break;else _0x5e606d['push'](_0x5e606d['shift']());}catch(_0x25cfbe){_0x5e606d['push'](_0x5e606d['shift']());}}}(a95_0x23ff,0xd5d3b));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';function a95_0x23ff(){const _0x56a175=['fileHashes','has','---','name','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','utf8','1011712VzRfGt','appCode','paths','join','test','stringify','Managed\x20file\x20was\x20removed\x20locally:\x20','1272PqPCyW','6npyGmc','13348584jjKCsN','trim','pulledAt','keys','Runtime\x20Skill\x20package\x20is\x20missing\x20','name:\x20','2568415FmARtt','find','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','entries','description:\x20','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','path','880029ifpbhw','4090432yVdbfJ','description','contentHash','map','packageBytes','.\x20Changed\x20file:\x20','validation','accessKey','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','isFile','7105WXaFjT','1514351VuBlll','length'];a95_0x23ff=function(){return _0x56a175;};return a95_0x23ff();}import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x3d4d9a,_0x49e5d6,_0x43df91){const _0x3c5129=a95_0x50e1,_0x1f1a5f=requireSkillCode(_0x3d4d9a),_0x4421fc=requirePackageBytes(_0x1f1a5f,_0x43df91[_0x3c5129(0xac)]),_0x549b9b=extractDownloadedPackage(_0x4421fc),_0x10c78f=_0x549b9b[_0x3c5129(0xa1)](_0x3da5d6=>_0x3da5d6['path']===SKILL_FILE);if(!_0x10c78f)throw CliErrors[_0x3c5129(0xae)](_0x3c5129(0x9e)+SKILL_FILE+':\x20'+_0x1f1a5f);const _0x533e07=withMaterializedSkillFrontmatter(_0x549b9b,_0x3d4d9a,_0x1f1a5f),_0x2ce946=_0x533e07[_0x3c5129(0xa1)](_0x1bccfd=>_0x1bccfd[_0x3c5129(0xa6)]===SKILL_FILE),_0x48fb83=fileText(_0x2ce946),_0x28e9f9=getRuntimeSkillDir(_0x43df91['env'],_0x43df91[_0x3c5129(0xaf)],_0x43df91[_0x3c5129(0xbc)],_0x49e5d6,_0x1f1a5f,_0x43df91[_0x3c5129(0xbd)]),_0x532dc2=resolve(_0x28e9f9,SKILL_FILE),_0x422cfb=resolve(_0x28e9f9,METADATA_FILE),_0x3fd1d9=contentHash(_0x48fb83),_0x4667a8=readMetadataIfPresent(_0x422cfb)?.[_0x3c5129(0xb5)];ensurePulledFilesCanBeOverwritten(_0x28e9f9,_0x422cfb,_0x533e07,_0x43df91['force']===!![]),mkdirSync(_0x28e9f9,{'recursive':!![],'mode':0x1c0});const _0x20aec8=existsSync(_0x532dc2)?readFileSync(_0x532dc2,_0x3c5129(0xba)):undefined;return materializeFiles(_0x28e9f9,_0x533e07),removeStaleManagedFiles(_0x28e9f9,_0x4667a8,_0x533e07),writeJsonAtomic(_0x422cfb,buildMetadata(_0x3d4d9a,_0x49e5d6,_0x43df91[_0x3c5129(0xbc)],_0x3fd1d9,_0x43df91[_0x3c5129(0x9c)],_0x533e07,_0x4421fc)),{'skill':_0x3d4d9a,'scope':_0x49e5d6,'dir':_0x28e9f9,'skillMdPath':_0x532dc2,'metadataPath':_0x422cfb,'contentHash':_0x3fd1d9,'changed':_0x20aec8!==_0x48fb83};}function withMaterializedSkillFrontmatter(_0x4f726e,_0x30fd7c,_0x217ee1){const _0x56d38c=a95_0x50e1;return normalizeLocalFiles(_0x4f726e)[_0x56d38c(0xab)](_0x552765=>{const _0x324fdc=_0x56d38c,_0x21df3b=fileText(_0x552765);if(_0x552765['path']!==SKILL_FILE||hasYamlFrontmatter(_0x21df3b))return _0x552765;return{'path':_0x552765[_0x324fdc(0xa6)],'content':prependSkillFrontmatter(_0x21df3b,{'name':_0x217ee1,'description':_0x30fd7c[_0x324fdc(0xa9)]?.[_0x324fdc(0x9b)]()||_0x30fd7c['skillName']?.[_0x324fdc(0x9b)]()||_0x217ee1})};});}function hasYamlFrontmatter(_0x562469){const _0x48ee2e=a95_0x50e1;return/^\uFEFF?---\s*\r?\n/[_0x48ee2e(0xbf)](_0x562469);}function prependSkillFrontmatter(_0x27055d,_0x5b3582){const _0x48c30f=a95_0x50e1,_0x20e489=_0x27055d['replace'](/^\uFEFF/,'');return[_0x48c30f(0xb7),_0x48c30f(0x9f)+yamlString(_0x5b3582[_0x48c30f(0xb8)]),_0x48c30f(0xa4)+yamlString(_0x5b3582[_0x48c30f(0xa9)]),_0x48c30f(0xb7),'',_0x20e489][_0x48c30f(0xbe)]('\x0a');}function yamlString(_0x7f1dd9){const _0x1adb98=a95_0x50e1;return JSON[_0x1adb98(0xc0)](_0x7f1dd9['replace'](/\r/g,'')[_0x1adb98(0x9b)]());}function ensurePulledFilesCanBeOverwritten(_0xf9ca5f,_0x598140,_0x216b53,_0x18dd96){const _0x3e2874=a95_0x50e1;if(_0x18dd96||!existsSync(_0x598140))return;const _0x14af23=readMetadataIfPresent(_0x598140);if(!_0x14af23)return;const _0x36f488=_0x14af23[_0x3e2874(0xb5)]&&Object[_0x3e2874(0x9d)](_0x14af23[_0x3e2874(0xb5)])[_0x3e2874(0xb4)]>0x0?_0x14af23[_0x3e2874(0xb5)]:undefined;if(_0x36f488)for(const [_0x2ce277,_0x2cc2e7]of Object[_0x3e2874(0xa3)](_0x36f488)){const _0x3068c0=resolveManagedFilePath(_0xf9ca5f,_0x2ce277);if(!existsSync(_0x3068c0))throw CliErrors['validation'](_0x3e2874(0xa2)+_0xf9ca5f,_0x3e2874(0xc1)+_0x2ce277);const _0x4d4816=lstatSync(_0x3068c0);if(!_0x4d4816[_0x3e2874(0xb1)]())throw CliErrors[_0x3e2874(0xae)](_0x3e2874(0xa2)+_0xf9ca5f,'Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'+_0x2ce277);const _0x1f7ff7=bufferSha256(readFileSync(_0x3068c0));if(_0x1f7ff7!==_0x2cc2e7)throw CliErrors[_0x3e2874(0xae)](_0x3e2874(0xa2)+_0xf9ca5f+_0x3e2874(0xad)+_0x2ce277,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'+_0x2ce277);}else{const _0xd0e5cc=resolve(_0xf9ca5f,SKILL_FILE);if(existsSync(_0xd0e5cc)&&_0x14af23[_0x3e2874(0xaa)]){const _0x34928a=contentHash(readFileSync(_0xd0e5cc,_0x3e2874(0xba)));if(_0x34928a!==_0x14af23[_0x3e2874(0xaa)])throw CliErrors[_0x3e2874(0xae)](_0x3e2874(0xa5)+_0xd0e5cc,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.');}}for(const _0x14dc92 of normalizeLocalFiles(_0x216b53)){if(_0x36f488?.[_0x14dc92[_0x3e2874(0xa6)]])continue;if(!_0x36f488&&_0x14dc92[_0x3e2874(0xa6)]===SKILL_FILE)continue;const _0x1df424=resolveManagedFilePath(_0xf9ca5f,_0x14dc92[_0x3e2874(0xa6)]);if(!existsSync(_0x1df424))continue;const _0x2d7063=lstatSync(_0x1df424);if(!_0x2d7063[_0x3e2874(0xb1)]())throw CliErrors[_0x3e2874(0xae)](_0x3e2874(0xa2)+_0xf9ca5f,_0x3e2874(0xb0)+_0x14dc92['path']);const _0x628cf8=bufferSha256(readFileSync(_0x1df424));if(_0x628cf8!==fileHash(_0x14dc92))throw CliErrors[_0x3e2874(0xae)](_0x3e2874(0xa2)+_0xf9ca5f,_0x3e2874(0xb9)+_0x14dc92['path']);}}function a95_0x50e1(_0x2a4b02,_0x41beb6){_0x2a4b02=_0x2a4b02-0x9b;const _0x23ff95=a95_0x23ff();let _0x50e1fc=_0x23ff95[_0x2a4b02];return _0x50e1fc;}function materializeFiles(_0x4c2627,_0x2ef0c6){const _0x411dea=a95_0x50e1;for(const _0x8f7ccb of normalizeLocalFiles(_0x2ef0c6)){const _0x3233d3=resolveManagedFilePath(_0x4c2627,_0x8f7ccb[_0x411dea(0xa6)]);mkdirSync(dirname(_0x3233d3),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x3233d3,fileContent(_0x8f7ccb),0x180);}}function removeStaleManagedFiles(_0x1fb277,_0x347118,_0x45a6a8){const _0x43598a=a95_0x50e1;if(!_0x347118)return;const _0x358760=new Set(normalizeLocalFiles(_0x45a6a8)['map'](_0x570bd7=>_0x570bd7['path']));for(const _0x2d849b of Object[_0x43598a(0x9d)](_0x347118)){if(_0x358760[_0x43598a(0xb6)](_0x2d849b))continue;const _0x3fc134=resolveManagedFilePath(_0x1fb277,_0x2d849b);existsSync(_0x3fc134)&&lstatSync(_0x3fc134)[_0x43598a(0xb1)]()&&rmSync(_0x3fc134,{'force':!![]});}}
@@ -1 +1 @@
1
- function a92_0x16dc(_0x58db76,_0x340671){_0x58db76=_0x58db76-0x18a;const _0x9241ae=a92_0x9241();let _0x16dc07=_0x9241ae[_0x58db76];return _0x16dc07;}(function(_0x1e2679,_0x14e3b9){const _0x23ce46=a92_0x16dc,_0x2bfe28=_0x1e2679();while(!![]){try{const _0x2c2589=parseInt(_0x23ce46(0x19f))/0x1*(parseInt(_0x23ce46(0x18e))/0x2)+parseInt(_0x23ce46(0x18c))/0x3+-parseInt(_0x23ce46(0x1ad))/0x4+-parseInt(_0x23ce46(0x1a7))/0x5+-parseInt(_0x23ce46(0x1a1))/0x6+-parseInt(_0x23ce46(0x198))/0x7+-parseInt(_0x23ce46(0x19c))/0x8*(-parseInt(_0x23ce46(0x199))/0x9);if(_0x2c2589===_0x14e3b9)break;else _0x2bfe28['push'](_0x2bfe28['shift']());}catch(_0x53f57a){_0x2bfe28['push'](_0x2bfe28['shift']());}}}(a92_0x9241,0x37042));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x2d2af4,_0x2eaf27,_0x44aad6,_0x4fd639,_0x374633,_0x11d84d,_0x29f0eb){const _0x1d50ff=a92_0x16dc,_0xdb4b06=_0x11d84d?normalizeLocalFiles(_0x11d84d):[],_0x571e08=!_0x29f0eb&&_0xdb4b06[_0x1d50ff(0x19b)]>0x0?buildSkillPackage(_0xdb4b06):undefined,_0x1980f6=_0x29f0eb?bufferSha256(_0x29f0eb):_0x571e08?.[_0x1d50ff(0x194)][_0x1d50ff(0x18a)],_0x4da552=_0x29f0eb?.[_0x1d50ff(0x19b)]??_0x571e08?.['manifest'][_0x1d50ff(0x1a8)],_0xef50cf=_0xdb4b06[_0x1d50ff(0x19b)]>0x0?Object[_0x1d50ff(0x1a2)](_0xdb4b06[_0x1d50ff(0x1aa)](_0x30c103=>[_0x30c103['path'],fileHash(_0x30c103)])):undefined;return{'schemaVersion':_0xdb4b06[_0x1d50ff(0x19b)]>0x0?0x2:0x1,'id':_0x2d2af4['id'],'appCode':_0x44aad6,'skillCode':requireSkillCode(_0x2d2af4),'skillName':_0x2d2af4['skillName'],'description':_0x2d2af4['description'],'scope':_0x2eaf27,'readonly':_0x2eaf27!==_0x1d50ff(0x1a4)||_0x2d2af4[_0x1d50ff(0x19e)]===!![],'tenantCode':_0x2d2af4['tenantCode'],'userId':_0x2d2af4[_0x1d50ff(0x191)],'version':_0x2d2af4[_0x1d50ff(0x190)],'status':_0x2d2af4['status'],'tags':Array['isArray'](_0x2d2af4[_0x1d50ff(0x19d)])?_0x2d2af4[_0x1d50ff(0x19d)]:[],'hasUpstreamUpdate':_0x2d2af4[_0x1d50ff(0x1a9)],'forkedFromSkillId':_0x2d2af4[_0x1d50ff(0x197)],'forkedFromVersion':_0x2d2af4['forkedFromVersion'],'sourceSessionId':_0x2d2af4[_0x1d50ff(0x193)],'contentHash':_0x4fd639,'fileHashes':_0xef50cf,'treeHash':_0xdb4b06[_0x1d50ff(0x19b)]>0x0?fileTreeHash(localFilesToManifestFiles(_0xdb4b06)):undefined,'ossPath':remoteManifestOssPath(_0x2d2af4[_0x1d50ff(0x1ac)]),'zipSha256':_0x1980f6,'zipSize':_0x4da552,'files':_0xdb4b06[_0x1d50ff(0x19b)]>0x0?_0xdb4b06['map'](_0x140507=>({'path':_0x140507[_0x1d50ff(0x1a6)],'hash':fileHash(_0x140507),'size':fileContent(_0x140507)[_0x1d50ff(0x19b)]})):undefined,'pulledAt':_0x374633??new Date()[_0x1d50ff(0x18b)]()};}function a92_0x9241(){const _0xa0c45b=['1498400tKbsMM','zipSha256','toISOString','210876QXQWCF','skillCode','6778GmUaPQ','validation','version','userId','trim','sourceSessionId','manifest','ossPath','utf8','forkedFromSkillId','2553460MFYzCe','17541euwlVp','Invalid\x20','length','5240BSwspz','tags','readonly','3cWsALH','string','397338SfkLsh','fromEntries','parse','personal','isArray','path','1630525dICcyr','zipSize','hasUpstreamUpdate','map','object','files'];a92_0x9241=function(){return _0xa0c45b;};return a92_0x9241();}export function requireSkillCode(_0x51bcd0){const _0x22245f=a92_0x16dc,_0x58e108=_0x51bcd0[_0x22245f(0x18d)]?.['trim']();if(!_0x58e108)throw CliErrors[_0x22245f(0x18f)]('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0x58e108;}export function readMetadataIfPresent(_0xf491f3){const _0x4d2fb5=a92_0x16dc;if(!existsSync(_0xf491f3))return undefined;try{const _0x543723=JSON[_0x4d2fb5(0x1a3)](readFileSync(_0xf491f3,_0x4d2fb5(0x196)));return _0x543723;}catch{throw CliErrors[_0x4d2fb5(0x18f)](_0x4d2fb5(0x19a)+METADATA_FILE+':\x20'+_0xf491f3);}}function remoteManifestOssPath(_0x2ebdd5){const _0x9eae88=a92_0x16dc;if(!_0x2ebdd5||typeof _0x2ebdd5!==_0x9eae88(0x1ab)||Array[_0x9eae88(0x1a5)](_0x2ebdd5))return undefined;const _0x29fa10=_0x2ebdd5[_0x9eae88(0x195)];return typeof _0x29fa10===_0x9eae88(0x1a0)&&_0x29fa10[_0x9eae88(0x192)]()?_0x29fa10[_0x9eae88(0x192)]():undefined;}
1
+ (function(_0x3998a7,_0x32ffc9){const _0x10c37c=a96_0x206c,_0x4903f0=_0x3998a7();while(!![]){try{const _0x3525ad=parseInt(_0x10c37c(0x1da))/0x1+parseInt(_0x10c37c(0x1bf))/0x2+-parseInt(_0x10c37c(0x1c9))/0x3*(-parseInt(_0x10c37c(0x1d5))/0x4)+parseInt(_0x10c37c(0x1c4))/0x5+-parseInt(_0x10c37c(0x1c2))/0x6+-parseInt(_0x10c37c(0x1ca))/0x7+-parseInt(_0x10c37c(0x1dd))/0x8*(parseInt(_0x10c37c(0x1ce))/0x9);if(_0x3525ad===_0x32ffc9)break;else _0x4903f0['push'](_0x4903f0['shift']());}catch(_0x43f457){_0x4903f0['push'](_0x4903f0['shift']());}}}(a96_0x381b,0xc03a6));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';function a96_0x206c(_0x2db1e5,_0x469192){_0x2db1e5=_0x2db1e5-0x1bf;const _0x381be6=a96_0x381b();let _0x206c24=_0x381be6[_0x2db1e5];return _0x206c24;}import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a96_0x381b(){const _0x4c2030=['tags','315931kdCMHZ','validation','toISOString','744JiXyns','zipSha256','skillCode','length','skillName','hasUpstreamUpdate','809486jhyizp','fromEntries','trim','281100wbqiOz','manifest','6083340AfraIT','userId','readonly','object','version','5985KjHUeP','5415830RqdTrH','string','ossPath','tenantCode','118953ILrNzT','status','path','zipSize','map','description','forkedFromSkillId','1804QcXrhu','utf8','Runtime\x20Skill\x20is\x20missing\x20skillCode.','isArray'];a96_0x381b=function(){return _0x4c2030;};return a96_0x381b();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x189e81,_0x367611,_0x245275,_0x44dd99,_0x17f1d1,_0x541a90,_0x2b4283){const _0x3c53ec=a96_0x206c,_0x239601=_0x541a90?normalizeLocalFiles(_0x541a90):[],_0x4bd856=!_0x2b4283&&_0x239601[_0x3c53ec(0x1e0)]>0x0?buildSkillPackage(_0x239601):undefined,_0x2bf059=_0x2b4283?bufferSha256(_0x2b4283):_0x4bd856?.[_0x3c53ec(0x1c3)][_0x3c53ec(0x1de)],_0x1896c8=_0x2b4283?.[_0x3c53ec(0x1e0)]??_0x4bd856?.[_0x3c53ec(0x1c3)][_0x3c53ec(0x1d1)],_0x23089f=_0x239601[_0x3c53ec(0x1e0)]>0x0?Object[_0x3c53ec(0x1c0)](_0x239601[_0x3c53ec(0x1d2)](_0x449c09=>[_0x449c09[_0x3c53ec(0x1d0)],fileHash(_0x449c09)])):undefined;return{'schemaVersion':_0x239601[_0x3c53ec(0x1e0)]>0x0?0x2:0x1,'id':_0x189e81['id'],'appCode':_0x245275,'skillCode':requireSkillCode(_0x189e81),'skillName':_0x189e81[_0x3c53ec(0x1e1)],'description':_0x189e81[_0x3c53ec(0x1d3)],'scope':_0x367611,'readonly':_0x367611!=='personal'||_0x189e81[_0x3c53ec(0x1c6)]===!![],'tenantCode':_0x189e81[_0x3c53ec(0x1cd)],'userId':_0x189e81[_0x3c53ec(0x1c5)],'version':_0x189e81[_0x3c53ec(0x1c8)],'status':_0x189e81[_0x3c53ec(0x1cf)],'tags':Array[_0x3c53ec(0x1d8)](_0x189e81[_0x3c53ec(0x1d9)])?_0x189e81['tags']:[],'hasUpstreamUpdate':_0x189e81[_0x3c53ec(0x1e2)],'forkedFromSkillId':_0x189e81[_0x3c53ec(0x1d4)],'forkedFromVersion':_0x189e81['forkedFromVersion'],'sourceSessionId':_0x189e81['sourceSessionId'],'contentHash':_0x44dd99,'fileHashes':_0x23089f,'treeHash':_0x239601[_0x3c53ec(0x1e0)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x239601)):undefined,'ossPath':remoteManifestOssPath(_0x189e81['files']),'zipSha256':_0x2bf059,'zipSize':_0x1896c8,'files':_0x239601[_0x3c53ec(0x1e0)]>0x0?_0x239601['map'](_0x32e408=>({'path':_0x32e408['path'],'hash':fileHash(_0x32e408),'size':fileContent(_0x32e408)[_0x3c53ec(0x1e0)]})):undefined,'pulledAt':_0x17f1d1??new Date()[_0x3c53ec(0x1dc)]()};}export function requireSkillCode(_0x477233){const _0x50b0ce=a96_0x206c,_0x3685a2=_0x477233[_0x50b0ce(0x1df)]?.['trim']();if(!_0x3685a2)throw CliErrors['validation'](_0x50b0ce(0x1d7));return _0x3685a2;}export function readMetadataIfPresent(_0x5b49de){const _0x44c3cf=a96_0x206c;if(!existsSync(_0x5b49de))return undefined;try{const _0x5ec88d=JSON['parse'](readFileSync(_0x5b49de,_0x44c3cf(0x1d6)));return _0x5ec88d;}catch{throw CliErrors[_0x44c3cf(0x1db)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x5b49de);}}function remoteManifestOssPath(_0x75d2a3){const _0x1301ed=a96_0x206c;if(!_0x75d2a3||typeof _0x75d2a3!==_0x1301ed(0x1c7)||Array[_0x1301ed(0x1d8)](_0x75d2a3))return undefined;const _0x41f70c=_0x75d2a3[_0x1301ed(0x1cc)];return typeof _0x41f70c===_0x1301ed(0x1cb)&&_0x41f70c['trim']()?_0x41f70c[_0x1301ed(0x1c1)]():undefined;}
@@ -1 +1 @@
1
- const a93_0x13379c=a93_0x1359;(function(_0x347080,_0x105793){const _0x3287a8=a93_0x1359,_0x30aa01=_0x347080();while(!![]){try{const _0x579230=parseInt(_0x3287a8(0x81))/0x1+-parseInt(_0x3287a8(0x86))/0x2+-parseInt(_0x3287a8(0x84))/0x3*(parseInt(_0x3287a8(0x74))/0x4)+parseInt(_0x3287a8(0x77))/0x5*(-parseInt(_0x3287a8(0x76))/0x6)+parseInt(_0x3287a8(0x7b))/0x7+parseInt(_0x3287a8(0x6d))/0x8*(parseInt(_0x3287a8(0x6c))/0x9)+parseInt(_0x3287a8(0x83))/0xa*(parseInt(_0x3287a8(0x72))/0xb);if(_0x579230===_0x105793)break;else _0x30aa01['push'](_0x30aa01['shift']());}catch(_0x38d7f4){_0x30aa01['push'](_0x30aa01['shift']());}}}(a93_0x3107,0xb0ec4));function a93_0x1359(_0x2e255b,_0x15db08){_0x2e255b=_0x2e255b-0x6b;const _0x31074d=a93_0x3107();let _0x1359ba=_0x31074d[_0x2e255b];return _0x1359ba;}import{homedir}from'node:os';import{resolve}from'node:path';function a93_0x3107(){const _0x481b14=['174738CwZwwH','homeDirName','1035246pyVZzo','homeDir','289098IcVOta','64HKxubl','includes','Unsafe\x20','.claude','validation','473bjFvTo','skillCode','92KUaXpu','SKILL_ROOT','4038kDcQul','655PKWjgv','path\x20segment','skills','agentsSkillsDir','7431851pBlFEj','appCode','\x20for\x20local\x20path:\x20','.agents','CLAUDE_SKILL_ROOT','trim','748806wMaSlA','claudeSkillsDir','140150QHnyWt'];a93_0x3107=function(){return _0x481b14;};return a93_0x3107();}import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x250ddb={}){const _0x44e6cd=a93_0x1359,_0x46a295=_0x250ddb[_0x44e6cd(0x6b)]??homedir(),_0x325ac4=resolve(_0x46a295,PRODUCT_CONFIG[_0x44e6cd(0x85)],'cache'),_0x141298=trimmedEnv(_0x44e6cd(0x75)),_0x38e2b2=trimmedEnv(_0x44e6cd(0x7f));return{'homeDir':_0x46a295,'cacheRoot':_0x325ac4,'managedRoot':resolve(_0x46a295,PRODUCT_CONFIG[_0x44e6cd(0x85)]),'agentsSkillsDir':_0x250ddb[_0x44e6cd(0x7a)]??_0x141298??resolve(_0x46a295,_0x44e6cd(0x7e),_0x44e6cd(0x79)),'claudeSkillsDir':_0x250ddb[_0x44e6cd(0x82)]??_0x38e2b2??resolve(_0x46a295,_0x44e6cd(0x70),_0x44e6cd(0x79))};}export function getRuntimeSkillCacheRoot(_0x5e9344,_0x28f591,_0x1ef841={}){const _0x20461e=a93_0x1359,_0x3721e6=resolveSkillSyncPaths(_0x1ef841);return resolve(_0x3721e6['cacheRoot'],_0x5e9344,fingerprintAccessKey(_0x28f591),_0x20461e(0x79));}export function getRuntimeSkillDir(_0x128e7e,_0x852159,_0x236ab2,_0x29be3e,_0x298b74,_0x5a789d={}){const _0x54844=a93_0x1359;return resolve(getRuntimeSkillCacheRoot(_0x128e7e,_0x852159,_0x5a789d),safePathSegment(_0x236ab2,_0x54844(0x7c)),_0x29be3e,safePathSegment(_0x298b74,_0x54844(0x73)));}export function safePathSegment(_0x5dbc4d,_0x4b69e7=a93_0x13379c(0x78)){const _0x270a19=a93_0x13379c;if(!_0x5dbc4d||_0x5dbc4d[_0x270a19(0x6e)]('/')||_0x5dbc4d[_0x270a19(0x6e)]('\x5c')||_0x5dbc4d['includes']('..'))throw CliErrors[_0x270a19(0x71)](_0x270a19(0x6f)+_0x4b69e7+_0x270a19(0x7d)+_0x5dbc4d);return _0x5dbc4d;}function trimmedEnv(_0x49d967){const _0x494764=a93_0x13379c,_0x42421e=productEnv(_0x49d967)?.[_0x494764(0x80)]();return _0x42421e?_0x42421e:undefined;}
1
+ const a97_0x38d5fb=a97_0x3dcc;(function(_0x33bc91,_0x245c4b){const _0x186a18=a97_0x3dcc,_0xad607d=_0x33bc91();while(!![]){try{const _0x726643=-parseInt(_0x186a18(0xe1))/0x1*(parseInt(_0x186a18(0xd3))/0x2)+-parseInt(_0x186a18(0xd7))/0x3*(-parseInt(_0x186a18(0xdd))/0x4)+parseInt(_0x186a18(0xd5))/0x5*(parseInt(_0x186a18(0xd1))/0x6)+parseInt(_0x186a18(0xd0))/0x7+parseInt(_0x186a18(0xda))/0x8*(parseInt(_0x186a18(0xc9))/0x9)+parseInt(_0x186a18(0xde))/0xa*(-parseInt(_0x186a18(0xe4))/0xb)+-parseInt(_0x186a18(0xcf))/0xc;if(_0x726643===_0x245c4b)break;else _0xad607d['push'](_0xad607d['shift']());}catch(_0x4f67e1){_0xad607d['push'](_0xad607d['shift']());}}}(a97_0x30bf,0x9470b));function a97_0x3dcc(_0xc71d,_0x4d07a2){_0xc71d=_0xc71d-0xc8;const _0x30bf0f=a97_0x30bf();let _0x3dcc4f=_0x30bf0f[_0xc71d];return _0x3dcc4f;}import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x2fba69={}){const _0x2f1ab3=a97_0x3dcc,_0x1076ae=_0x2fba69[_0x2f1ab3(0xca)]??homedir(),_0x56df63=resolve(_0x1076ae,PRODUCT_CONFIG[_0x2f1ab3(0xc8)],'cache'),_0x22b5c6=trimmedEnv(_0x2f1ab3(0xcd)),_0x37d33a=trimmedEnv(_0x2f1ab3(0xd2));return{'homeDir':_0x1076ae,'cacheRoot':_0x56df63,'managedRoot':resolve(_0x1076ae,PRODUCT_CONFIG[_0x2f1ab3(0xc8)]),'agentsSkillsDir':_0x2fba69[_0x2f1ab3(0xd6)]??_0x22b5c6??resolve(_0x1076ae,_0x2f1ab3(0xdf),_0x2f1ab3(0xe2)),'claudeSkillsDir':_0x2fba69[_0x2f1ab3(0xd9)]??_0x37d33a??resolve(_0x1076ae,_0x2f1ab3(0xe0),_0x2f1ab3(0xe2))};}export function getRuntimeSkillCacheRoot(_0x58536e,_0x4600d1,_0x277baf={}){const _0x48cf9b=a97_0x3dcc,_0x5c793d=resolveSkillSyncPaths(_0x277baf);return resolve(_0x5c793d[_0x48cf9b(0xdb)],_0x58536e,fingerprintAccessKey(_0x4600d1),'skills');}function a97_0x30bf(){const _0x443e1a=['claudeSkillsDir','4515208vQPMkh','cacheRoot','skillCode','16elXdNK','368370hTwFuo','.agents','.claude','2GaQlew','skills','appCode','220pzXQNx','homeDirName','9oLPdHY','homeDir','validation','includes','SKILL_ROOT','trim','1495656vBwpPi','6372807wEhvUw','948114SUYXoL','CLAUDE_SKILL_ROOT','440204WBwXNr','path\x20segment','5PqZQGG','agentsSkillsDir','207579AolzJH','\x20for\x20local\x20path:\x20'];a97_0x30bf=function(){return _0x443e1a;};return a97_0x30bf();}export function getRuntimeSkillDir(_0x4fea7f,_0x43dde5,_0x320f22,_0x1ec361,_0x4760b1,_0x25f07c={}){const _0x3f5fff=a97_0x3dcc;return resolve(getRuntimeSkillCacheRoot(_0x4fea7f,_0x43dde5,_0x25f07c),safePathSegment(_0x320f22,_0x3f5fff(0xe3)),_0x1ec361,safePathSegment(_0x4760b1,_0x3f5fff(0xdc)));}export function safePathSegment(_0x41a0cc,_0x304a1f=a97_0x38d5fb(0xd4)){const _0x53e160=a97_0x38d5fb;if(!_0x41a0cc||_0x41a0cc['includes']('/')||_0x41a0cc['includes']('\x5c')||_0x41a0cc[_0x53e160(0xcc)]('..'))throw CliErrors[_0x53e160(0xcb)]('Unsafe\x20'+_0x304a1f+_0x53e160(0xd8)+_0x41a0cc);return _0x41a0cc;}function trimmedEnv(_0x1ee7e3){const _0x388d62=a97_0x38d5fb,_0x3a2819=productEnv(_0x1ee7e3)?.[_0x388d62(0xce)]();return _0x3a2819?_0x3a2819:undefined;}
@@ -1 +1 @@
1
- (function(_0x24b502,_0x276921){const _0x59ebd3=a94_0x310e,_0x4104b3=_0x24b502();while(!![]){try{const _0x183142=parseInt(_0x59ebd3(0x1f8))/0x1+-parseInt(_0x59ebd3(0x21a))/0x2*(-parseInt(_0x59ebd3(0x20d))/0x3)+parseInt(_0x59ebd3(0x1f2))/0x4+parseInt(_0x59ebd3(0x20c))/0x5*(-parseInt(_0x59ebd3(0x1ee))/0x6)+-parseInt(_0x59ebd3(0x210))/0x7+-parseInt(_0x59ebd3(0x1f9))/0x8+-parseInt(_0x59ebd3(0x215))/0x9*(-parseInt(_0x59ebd3(0x20a))/0xa);if(_0x183142===_0x276921)break;else _0x4104b3['push'](_0x4104b3['shift']());}catch(_0x58b61f){_0x4104b3['push'](_0x4104b3['shift']());}}}(a94_0x3e5b,0x45149));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a94_0x3e5b(){const _0x52e4e2=['packageBase64','tags','126OWcRfG','some','isSymbolicLink','utf8','1383908QTRPJE','find','\x20has\x20scope=\x22','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','Skill\x20metadata\x20appCode\x20\x22','targetScope','363536iAIPoq','2431376bKPnPh','version','content','sourceSessionId','isDirectory','skillName','\x20has\x20unsupported\x20scope\x20\x22','unknown','path','skillCode','files','\x20or\x20directory\x20name.','Skill\x20directory\x20not\x20found:\x20','refreshedAt','personal','scope','length','2430ODxLWT','Missing\x20','108970WwpOHo','201354NHGZNk','description','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','2281867IZNbry','manifest','startsWith','validation','appCode','9567jecdYM','isArray','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','Remote\x20Skill\x20','filter','12xkMnUm','isFile','metadata','Unable\x20to\x20resolve\x20skillCode\x20from\x20'];a94_0x3e5b=function(){return _0x52e4e2;};return a94_0x3e5b();}import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x31a4a5,_0x200dd7){const _0x1a5dad=a94_0x310e,_0xffadc4=resolvePushDirectoryRoot(_0x31a4a5),_0x1b7c18=readMetadataIfPresent(resolve(_0xffadc4,METADATA_FILE));if(_0x1b7c18?.['appCode']&&_0x1b7c18[_0x1a5dad(0x214)]!==_0x200dd7)throw CliErrors[_0x1a5dad(0x213)](_0x1a5dad(0x1f6)+_0x1b7c18[_0x1a5dad(0x214)]+_0x1a5dad(0x217)+_0x200dd7+'\x22.');const _0x4d7a42=_0x1b7c18?.['skillCode']?.['trim']()||deriveSkillCodeFromDirectory(_0xffadc4,_0x200dd7);if(!_0x4d7a42)throw CliErrors[_0x1a5dad(0x213)](_0x1a5dad(0x21d)+METADATA_FILE+_0x1a5dad(0x204));return{'dir':_0xffadc4,'skillCode':_0x4d7a42,'metadata':_0x1b7c18};}export function readPushDirectory(_0x5a151d,_0x549785,_0x1b53cc={}){const _0x11df94=a94_0x310e,_0x17e538=resolvePushDirectoryIdentity(_0x5a151d,_0x549785),_0xc20f39=_0x17e538['dir'],_0x45f6f3=resolve(_0xc20f39,SKILL_FILE);if(!existsSync(_0x45f6f3)||!lstatSync(_0x45f6f3)[_0x11df94(0x21b)]())throw CliErrors[_0x11df94(0x213)](_0x11df94(0x20b)+SKILL_FILE+':\x20'+_0x45f6f3);const _0xa8648f=_0x17e538[_0x11df94(0x21c)],_0x3153d9=_0x1b53cc[_0x11df94(0x1f7)]??_0x11df94(0x207);if(_0xa8648f?.[_0x11df94(0x208)]==='builtin')throw CliErrors[_0x11df94(0x213)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x11df94(0x1f4)+_0xa8648f[_0x11df94(0x208)]+'\x22.');if(_0x3153d9==='personal'&&_0xa8648f?.[_0x11df94(0x208)]&&_0xa8648f[_0x11df94(0x208)]!==_0x11df94(0x207))throw CliErrors[_0x11df94(0x213)](_0x11df94(0x1f5)+METADATA_FILE+_0x11df94(0x1f4)+_0xa8648f[_0x11df94(0x208)]+'\x22.',_0x11df94(0x20f)+_0xc20f39+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x510630=scanSkillDirectory(_0xc20f39),_0x120d81=buildSkillPackage(_0x510630),_0x25a392=readFileSync(_0x45f6f3,_0x11df94(0x1f1)),_0x119de2=_0x17e538[_0x11df94(0x202)];return{'skillCode':_0x119de2,'metadata':_0xa8648f,'input':{'skillCode':_0x119de2,'skillName':_0xa8648f?.[_0x11df94(0x1fe)],'description':_0xa8648f?.[_0x11df94(0x20e)],'content':_0x25a392,'files':_0x120d81[_0x11df94(0x211)],'packageBase64':_0x120d81[_0x11df94(0x21e)],'tags':_0xa8648f?.[_0x11df94(0x21f)],'version':_0xa8648f?.[_0x11df94(0x1fa)],'sourceSessionId':_0xa8648f?.[_0x11df94(0x1fc)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x34f489,_0x176025,_0x8d26e4,_0x3915c6={}){const _0x15b96e=a94_0x310e,_0x399a59=resolvePushDirectoryRoot(_0x34f489),_0x3e01e9=readMetadataIfPresent(resolve(_0x399a59,METADATA_FILE)),_0x4fe29a=requireRemoteScope(_0x176025),_0x156820=readLocalSkillContent(_0x399a59),_0x551fd9={..._0x176025,'appCode':_0x176025[_0x15b96e(0x214)]??_0x8d26e4,'skillName':_0x176025['skillName']??_0x3e01e9?.['skillName'],'description':_0x176025['description']??_0x3e01e9?.[_0x15b96e(0x20e)],'tags':Array[_0x15b96e(0x216)](_0x176025[_0x15b96e(0x21f)])?_0x176025['tags']:_0x3e01e9?.[_0x15b96e(0x21f)],'sourceSessionId':_0x176025[_0x15b96e(0x1fc)]??_0x3e01e9?.['sourceSessionId'],'content':_0x176025['content']??_0x156820},_0xd1010e=buildMetadata(_0x551fd9,_0x4fe29a,_0x8d26e4,contentHash(_0x156820),_0x3915c6[_0x15b96e(0x206)]);writeJsonAtomic(resolve(_0x399a59,METADATA_FILE),_0xd1010e);}export function recordPushedRuntimeSkill(_0x2589f2,_0x3be34c,_0x1edba1,_0x1bfaa0={}){const _0x45783a=a94_0x310e,_0x2ac149=resolvePushDirectoryRoot(_0x2589f2),_0xc0ba40=scanSkillDirectory(_0x2ac149),_0x55fa84=_0xc0ba40[_0x45783a(0x1f3)](_0x382cb2=>_0x382cb2[_0x45783a(0x201)]===SKILL_FILE),_0x5751f6=_0x55fa84?fileText(_0x55fa84):'',_0x1ac85d=tryNormalizePackageManifest(_0x3be34c[_0x45783a(0x203)]),_0x585f80={..._0x3be34c,'content':_0x3be34c[_0x45783a(0x1fb)]??_0x5751f6,'files':_0x1ac85d},_0x2b8a41=_0x1ac85d?normalizeLocalFiles(_0xc0ba40)[_0x45783a(0x219)](_0x4204f2=>_0x1ac85d['files'][_0x45783a(0x1ef)](_0x342c9c=>_0x342c9c[_0x45783a(0x201)]===_0x4204f2['path'])):undefined,_0x387523=buildMetadata(_0x585f80,_0x1bfaa0[_0x45783a(0x208)]??'personal',_0x1edba1,contentHash(_0x585f80[_0x45783a(0x1fb)]??''),_0x1bfaa0['pushedAt'],_0x2b8a41);writeJsonAtomic(resolve(_0x2ac149,METADATA_FILE),_0x387523);}function a94_0x310e(_0x49e8c0,_0x580dbc){_0x49e8c0=_0x49e8c0-0x1ee;const _0x3e5b88=a94_0x3e5b();let _0x310e6d=_0x3e5b88[_0x49e8c0];return _0x310e6d;}export function deriveSkillCodeFromDirectory(_0x1c13f0,_0x196f40){const _0x47c744=a94_0x310e,_0x2c6990=basename(resolve(_0x1c13f0)),_0x195519=_0x196f40+'--';return _0x2c6990[_0x47c744(0x212)](_0x195519)?_0x2c6990['slice'](_0x195519[_0x47c744(0x209)]):_0x2c6990;}function resolvePushDirectoryRoot(_0x53e5f8){const _0x439ad1=a94_0x310e,_0x43e26b=resolve(_0x53e5f8);if(!existsSync(_0x43e26b))throw CliErrors[_0x439ad1(0x213)](_0x439ad1(0x205)+_0x53e5f8);const _0x4cfbe7=lstatSync(_0x43e26b);if(_0x4cfbe7[_0x439ad1(0x1fd)]())return _0x43e26b;if(_0x4cfbe7[_0x439ad1(0x1f0)]()){const _0x4aab4a=realpathSync(_0x43e26b);if(lstatSync(_0x4aab4a)[_0x439ad1(0x1fd)]())return _0x4aab4a;}throw CliErrors['validation'](_0x439ad1(0x205)+_0x53e5f8);}function requireRemoteScope(_0x5e9308){const _0xfedbeb=a94_0x310e;if(_0x5e9308['scope']===_0xfedbeb(0x207)||_0x5e9308['scope']==='company'||_0x5e9308['scope']==='builtin')return _0x5e9308[_0xfedbeb(0x208)];throw CliErrors[_0xfedbeb(0x213)](_0xfedbeb(0x218)+(_0x5e9308['skillCode']||'(unknown)')+_0xfedbeb(0x1ff)+(_0x5e9308[_0xfedbeb(0x208)]??_0xfedbeb(0x200))+'\x22.');}function readLocalSkillContent(_0x45a0b2){const _0x1dafd3=a94_0x310e,_0x48bb16=resolve(_0x45a0b2,SKILL_FILE);return existsSync(_0x48bb16)&&lstatSync(_0x48bb16)[_0x1dafd3(0x21b)]()?readFileSync(_0x48bb16,'utf8'):'';}
1
+ (function(_0x338fcc,_0x3b769a){const _0x58db99=a98_0x12dd,_0x43a226=_0x338fcc();while(!![]){try{const _0x33ccf2=parseInt(_0x58db99(0xce))/0x1+-parseInt(_0x58db99(0xe2))/0x2+parseInt(_0x58db99(0xb8))/0x3*(-parseInt(_0x58db99(0xde))/0x4)+-parseInt(_0x58db99(0xe7))/0x5+-parseInt(_0x58db99(0xba))/0x6*(parseInt(_0x58db99(0xb7))/0x7)+parseInt(_0x58db99(0xbf))/0x8*(-parseInt(_0x58db99(0xdd))/0x9)+-parseInt(_0x58db99(0xe3))/0xa*(-parseInt(_0x58db99(0xb6))/0xb);if(_0x33ccf2===_0x3b769a)break;else _0x43a226['push'](_0x43a226['shift']());}catch(_0x535aad){_0x43a226['push'](_0x43a226['shift']());}}}(a98_0x4430,0x8d55a));function a98_0x4430(){const _0x29e640=['isDirectory','metadata','skillName','unknown','139034WOSwcf','find','Skill\x20metadata\x20appCode\x20\x22','appCode','content','startsWith','pushedAt','skillCode','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','slice','path','length','targetScope','validation','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','160857TWdnNc','21804WysxAc','utf8','\x20has\x20scope=\x22','(unknown)','2046908eLKEog','30xNqupX','filter','sourceSessionId','builtin','5774390khkbJz','trim','\x20has\x20unsupported\x20scope\x20\x22','scope','17039605hScniF','833lKELNR','81vOHgRo','tags','56130wDoOKm','Unable\x20to\x20resolve\x20skillCode\x20from\x20','company','personal','isSymbolicLink','344SSYcCY','files','isFile','isArray','version','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','refreshedAt','some','Remote\x20Skill\x20','description','Skill\x20directory\x20not\x20found:\x20'];a98_0x4430=function(){return _0x29e640;};return a98_0x4430();}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 a98_0x12dd(_0x313868,_0x239412){_0x313868=_0x313868-0xb6;const _0x4430ed=a98_0x4430();let _0x12dd8c=_0x4430ed[_0x313868];return _0x12dd8c;}import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x35f6ae,_0x15ce95,_0x168ef9={}){const _0x1d2bf6=a98_0x12dd,_0x28813a=resolvePushDirectoryRoot(_0x35f6ae),_0x461a55=readMetadataIfPresent(resolve(_0x28813a,METADATA_FILE));if(_0x461a55?.['appCode']&&_0x461a55[_0x1d2bf6(0xd1)]!==_0x15ce95&&!_0x168ef9['allowAppCodeRetarget'])throw CliErrors['validation'](_0x1d2bf6(0xd0)+_0x461a55['appCode']+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x15ce95+'\x22.');const _0x206ece=_0x461a55?.['skillCode']?.[_0x1d2bf6(0xe8)]()||deriveSkillCodeFromDirectory(_0x28813a,_0x15ce95);if(!_0x206ece)throw CliErrors[_0x1d2bf6(0xdb)](_0x1d2bf6(0xbb)+METADATA_FILE+'\x20or\x20directory\x20name.');return{'dir':_0x28813a,'skillCode':_0x206ece,'metadata':_0x461a55};}export function readPushDirectory(_0x4c8e05,_0x2849f0,_0xca39e={}){const _0x51daf1=a98_0x12dd,_0x132d7c=resolvePushDirectoryIdentity(_0x4c8e05,_0x2849f0,_0xca39e),_0x542034=_0x132d7c['dir'],_0x83f7e3=resolve(_0x542034,SKILL_FILE);if(!existsSync(_0x83f7e3)||!lstatSync(_0x83f7e3)[_0x51daf1(0xc1)]())throw CliErrors[_0x51daf1(0xdb)]('Missing\x20'+SKILL_FILE+':\x20'+_0x83f7e3);const _0x3294b6=_0x132d7c[_0x51daf1(0xcb)],_0x31eaa9=_0xca39e[_0x51daf1(0xda)]??'personal';if(_0x3294b6?.[_0x51daf1(0xea)]===_0x51daf1(0xe6))throw CliErrors[_0x51daf1(0xdb)](_0x51daf1(0xd6)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x3294b6[_0x51daf1(0xea)]+'\x22.');if(_0x31eaa9===_0x51daf1(0xbd)&&_0x3294b6?.[_0x51daf1(0xea)]&&_0x3294b6[_0x51daf1(0xea)]!==_0x51daf1(0xbd))throw CliErrors['validation'](_0x51daf1(0xc4)+METADATA_FILE+_0x51daf1(0xe0)+_0x3294b6[_0x51daf1(0xea)]+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x542034+_0x51daf1(0xdc));const _0x34d67f=scanSkillDirectory(_0x542034),_0x28a2d6=buildSkillPackage(_0x34d67f),_0x269507=readFileSync(_0x83f7e3,_0x51daf1(0xdf)),_0x10ae9d=_0x132d7c[_0x51daf1(0xd5)];return{'skillCode':_0x10ae9d,'metadata':_0x3294b6,'input':{'skillCode':_0x10ae9d,'skillName':_0x3294b6?.[_0x51daf1(0xcc)],'description':_0x3294b6?.[_0x51daf1(0xc8)],'content':_0x269507,'files':_0x28a2d6['manifest'],'packageBase64':_0x28a2d6['packageBase64'],'tags':_0x3294b6?.[_0x51daf1(0xb9)],'version':_0x3294b6?.[_0x51daf1(0xc3)],'sourceSessionId':_0x3294b6?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x2587f9,_0x5cb0d2,_0x4dd273,_0x6cdd9={}){const _0x4ad9af=a98_0x12dd,_0x1d90de=resolvePushDirectoryRoot(_0x2587f9),_0x3cb221=readMetadataIfPresent(resolve(_0x1d90de,METADATA_FILE)),_0x4582af=requireRemoteScope(_0x5cb0d2),_0x471863=readLocalSkillContent(_0x1d90de),_0x496e3c={..._0x5cb0d2,'appCode':_0x5cb0d2[_0x4ad9af(0xd1)]??_0x4dd273,'skillName':_0x5cb0d2['skillName']??_0x3cb221?.[_0x4ad9af(0xcc)],'description':_0x5cb0d2[_0x4ad9af(0xc8)]??_0x3cb221?.[_0x4ad9af(0xc8)],'tags':Array[_0x4ad9af(0xc2)](_0x5cb0d2['tags'])?_0x5cb0d2[_0x4ad9af(0xb9)]:_0x3cb221?.[_0x4ad9af(0xb9)],'sourceSessionId':_0x5cb0d2[_0x4ad9af(0xe5)]??_0x3cb221?.['sourceSessionId'],'content':_0x5cb0d2[_0x4ad9af(0xd2)]??_0x471863},_0x52cea5=buildMetadata(_0x496e3c,_0x4582af,_0x4dd273,contentHash(_0x471863),_0x6cdd9[_0x4ad9af(0xc5)]);writeJsonAtomic(resolve(_0x1d90de,METADATA_FILE),_0x52cea5);}export function recordPushedRuntimeSkill(_0xc0ec17,_0x22fd64,_0x504573,_0x52eae6={}){const _0x439033=a98_0x12dd,_0x2e243b=resolvePushDirectoryRoot(_0xc0ec17),_0x369784=scanSkillDirectory(_0x2e243b),_0x114248=_0x369784[_0x439033(0xcf)](_0x40b595=>_0x40b595['path']===SKILL_FILE),_0x11e121=_0x114248?fileText(_0x114248):'',_0x338ae5=tryNormalizePackageManifest(_0x22fd64['files']),_0x26d3e8={..._0x22fd64,'content':_0x22fd64[_0x439033(0xd2)]??_0x11e121,'files':_0x338ae5},_0x17967f=_0x338ae5?normalizeLocalFiles(_0x369784)[_0x439033(0xe4)](_0x5591b3=>_0x338ae5[_0x439033(0xc0)][_0x439033(0xc6)](_0x162649=>_0x162649['path']===_0x5591b3[_0x439033(0xd8)])):undefined,_0x3dc98c=buildMetadata(_0x26d3e8,_0x52eae6[_0x439033(0xea)]??_0x439033(0xbd),_0x504573,contentHash(_0x26d3e8[_0x439033(0xd2)]??''),_0x52eae6[_0x439033(0xd4)],_0x17967f);writeJsonAtomic(resolve(_0x2e243b,METADATA_FILE),_0x3dc98c);}export function deriveSkillCodeFromDirectory(_0x12943e,_0x3ff5f5){const _0x5c5857=a98_0x12dd,_0x50579c=basename(resolve(_0x12943e)),_0x54c241=_0x3ff5f5+'--';return _0x50579c[_0x5c5857(0xd3)](_0x54c241)?_0x50579c[_0x5c5857(0xd7)](_0x54c241[_0x5c5857(0xd9)]):_0x50579c;}function resolvePushDirectoryRoot(_0x45726f){const _0x2fca20=a98_0x12dd,_0x225b01=resolve(_0x45726f);if(!existsSync(_0x225b01))throw CliErrors[_0x2fca20(0xdb)](_0x2fca20(0xc9)+_0x45726f);const _0x75f376=lstatSync(_0x225b01);if(_0x75f376[_0x2fca20(0xca)]())return _0x225b01;if(_0x75f376[_0x2fca20(0xbe)]()){const _0x2db3b7=realpathSync(_0x225b01);if(lstatSync(_0x2db3b7)[_0x2fca20(0xca)]())return _0x2db3b7;}throw CliErrors[_0x2fca20(0xdb)](_0x2fca20(0xc9)+_0x45726f);}function requireRemoteScope(_0x2c1467){const _0x78e848=a98_0x12dd;if(_0x2c1467[_0x78e848(0xea)]===_0x78e848(0xbd)||_0x2c1467[_0x78e848(0xea)]===_0x78e848(0xbc)||_0x2c1467[_0x78e848(0xea)]===_0x78e848(0xe6))return _0x2c1467['scope'];throw CliErrors['validation'](_0x78e848(0xc7)+(_0x2c1467[_0x78e848(0xd5)]||_0x78e848(0xe1))+_0x78e848(0xe9)+(_0x2c1467[_0x78e848(0xea)]??_0x78e848(0xcd))+'\x22.');}function readLocalSkillContent(_0x5d0f7d){const _0x279ed7=a98_0x12dd,_0x8d0faa=resolve(_0x5d0f7d,SKILL_FILE);return existsSync(_0x8d0faa)&&lstatSync(_0x8d0faa)[_0x279ed7(0xc1)]()?readFileSync(_0x8d0faa,_0x279ed7(0xdf)):'';}
@@ -1 +1 @@
1
- (function(_0x45b60c,_0x3aec94){const _0x3fa9ad=a95_0x42ec,_0x5e8376=_0x45b60c();while(!![]){try{const _0x1929e8=-parseInt(_0x3fa9ad(0x77))/0x1+parseInt(_0x3fa9ad(0x7a))/0x2*(-parseInt(_0x3fa9ad(0x83))/0x3)+parseInt(_0x3fa9ad(0x82))/0x4+-parseInt(_0x3fa9ad(0x79))/0x5*(parseInt(_0x3fa9ad(0x7d))/0x6)+parseInt(_0x3fa9ad(0x85))/0x7*(-parseInt(_0x3fa9ad(0x78))/0x8)+parseInt(_0x3fa9ad(0x76))/0x9*(-parseInt(_0x3fa9ad(0x7f))/0xa)+parseInt(_0x3fa9ad(0x7c))/0xb*(parseInt(_0x3fa9ad(0x81))/0xc);if(_0x1929e8===_0x3aec94)break;else _0x5e8376['push'](_0x5e8376['shift']());}catch(_0x14420a){_0x5e8376['push'](_0x5e8376['shift']());}}}(a95_0x4f17,0xc9928));function a95_0x4f17(){const _0x2ade80=['company','83508oOluLQ','5406936WewBEB','15tjeyRz','personal','640157uqAbfg','374751UUaLor','365070NLKYAq','8kKAYry','265NCIlwI','124424suChVw','length','3476AECQkt','103764LbJDfV','builtin','250TMYbcf'];a95_0x4f17=function(){return _0x2ade80;};return a95_0x4f17();}function a95_0x42ec(_0x49266f,_0x4d60e3){_0x49266f=_0x49266f-0x76;const _0x4f17b1=a95_0x4f17();let _0x42ecd6=_0x4f17b1[_0x49266f];return _0x42ecd6;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x40cf82){const _0x5c70c7=a95_0x42ec,_0x2b9e47=_0x40cf82&&_0x40cf82[_0x5c70c7(0x7b)]>0x0?_0x40cf82:[_0x5c70c7(0x84),_0x5c70c7(0x80),_0x5c70c7(0x7e)],_0x1f49e1=[];for(const _0x2995d9 of _0x2b9e47){if(!isRuntimeSkillScope(_0x2995d9))throw CliErrors['validation']('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x2995d9);!_0x1f49e1['includes'](_0x2995d9)&&_0x1f49e1['push'](_0x2995d9);}return _0x1f49e1;}export function isRuntimeSkillScope(_0x49cc89){const _0x213f8f=a95_0x42ec;return _0x49cc89===_0x213f8f(0x84)||_0x49cc89===_0x213f8f(0x80)||_0x49cc89===_0x213f8f(0x7e);}
1
+ (function(_0x16ab48,_0x2188ad){const _0x53f567=a99_0x1bcc,_0x30eee7=_0x16ab48();while(!![]){try{const _0x10d5d2=-parseInt(_0x53f567(0x159))/0x1+-parseInt(_0x53f567(0x15e))/0x2*(parseInt(_0x53f567(0x15f))/0x3)+parseInt(_0x53f567(0x15b))/0x4*(parseInt(_0x53f567(0x166))/0x5)+parseInt(_0x53f567(0x165))/0x6*(parseInt(_0x53f567(0x164))/0x7)+parseInt(_0x53f567(0x163))/0x8+-parseInt(_0x53f567(0x168))/0x9+parseInt(_0x53f567(0x160))/0xa;if(_0x10d5d2===_0x2188ad)break;else _0x30eee7['push'](_0x30eee7['shift']());}catch(_0x136ab8){_0x30eee7['push'](_0x30eee7['shift']());}}}(a99_0x279b,0xc1882));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x498be3){const _0x2052c4=a99_0x1bcc,_0x2f3f51=_0x498be3&&_0x498be3['length']>0x0?_0x498be3:[_0x2052c4(0x158),_0x2052c4(0x15d),_0x2052c4(0x162)],_0x47b119=[];for(const _0x2755ba of _0x2f3f51){if(!isRuntimeSkillScope(_0x2755ba))throw CliErrors[_0x2052c4(0x167)](_0x2052c4(0x161)+_0x2755ba);!_0x47b119[_0x2052c4(0x15a)](_0x2755ba)&&_0x47b119[_0x2052c4(0x15c)](_0x2755ba);}return _0x47b119;}function a99_0x279b(){const _0x50c24f=['20hkQAHn','validation','6269436QpjVMe','personal','1020943IdWbIQ','includes','237252MuAlKu','push','company','8EfGZVf','330348kqKbQw','15417660nxdyhw','Unsupported\x20runtime\x20Skill\x20scope:\x20','builtin','4205512ctcplr','904414KrYJft','30ZDjXXL'];a99_0x279b=function(){return _0x50c24f;};return a99_0x279b();}function a99_0x1bcc(_0x2629f0,_0x4a932c){_0x2629f0=_0x2629f0-0x158;const _0x279b8f=a99_0x279b();let _0x1bcc56=_0x279b8f[_0x2629f0];return _0x1bcc56;}export function isRuntimeSkillScope(_0x39bb51){const _0x7f3ceb=a99_0x1bcc;return _0x39bb51==='personal'||_0x39bb51===_0x7f3ceb(0x15d)||_0x39bb51===_0x7f3ceb(0x162);}
@@ -1 +1 @@
1
- const a97_0x27e804=a97_0x231c;(function(_0x12886b,_0x3f54b6){const _0x7efccb=a97_0x231c,_0x414923=_0x12886b();while(!![]){try{const _0x2d446e=parseInt(_0x7efccb(0x9a))/0x1+parseInt(_0x7efccb(0x8c))/0x2+parseInt(_0x7efccb(0x91))/0x3*(-parseInt(_0x7efccb(0x92))/0x4)+parseInt(_0x7efccb(0x94))/0x5*(-parseInt(_0x7efccb(0x9c))/0x6)+parseInt(_0x7efccb(0x8d))/0x7+-parseInt(_0x7efccb(0x97))/0x8+-parseInt(_0x7efccb(0x8e))/0x9;if(_0x2d446e===_0x3f54b6)break;else _0x414923['push'](_0x414923['shift']());}catch(_0x36940c){_0x414923['push'](_0x414923['shift']());}}}(a97_0xfd72,0x4d92c));import{unzipSync,zipSync}from'fflate';function a97_0x231c(_0x152761,_0x55f21e){_0x152761=_0x152761-0x89;const _0xfd7266=a97_0xfd72();let _0x231c26=_0xfd7266[_0x152761];return _0x231c26;}import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a97_0x27e804(0x99));export function createDeterministicZipPackage(_0x3238eb){const _0x46970b=a97_0x27e804,_0x1f8a31={};for(const _0x220b06 of normalizeLocalFiles(_0x3238eb)){_0x1f8a31[_0x220b06[_0x46970b(0x96)]]=fileContent(_0x220b06);}return Buffer[_0x46970b(0x8f)](zipSync(_0x1f8a31,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x498c4c){const _0x15fb0f=a97_0x27e804;if(_0x498c4c[_0x15fb0f(0x98)]<0x16)throw CliErrors[_0x15fb0f(0x8b)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x7f29c2;try{_0x7f29c2=unzipSync(_0x498c4c,{'filter'(_0x280b8d){const _0x5ac1ed=_0x15fb0f,_0x5244ad=normalizeSkillRelativePath(_0x280b8d[_0x5ac1ed(0x8a)]);if(_0x5244ad['endsWith']('/'))throw CliErrors[_0x5ac1ed(0x8b)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x5244ad);return!![];}});}catch(_0x32ff17){if(isRuntimeSkillValidationError(_0x32ff17))throw _0x32ff17;throw CliErrors[_0x15fb0f(0x8b)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x15fb0f(0x90)](_0x7f29c2)[_0x15fb0f(0x89)](([_0x4f9898,_0x4085a0])=>({'path':normalizeSkillRelativePath(_0x4f9898),'bytes':Buffer['from'](_0x4085a0)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x17421){const _0x5887ef=a97_0x27e804;return typeof _0x17421===_0x5887ef(0x9b)&&_0x17421!==null&&_0x5887ef(0x95)in _0x17421&&_0x17421[_0x5887ef(0x95)]===_0x5887ef(0x93);}function a97_0xfd72(){const _0x1a4104=['182928DmDPrR','length','1980-01-01T00:00:00.000Z','334805isfwZv','object','3001662EqCJbh','map','name','validation','1036472uvNNPo','2403352zSLEdT','2609127ySzXZS','from','entries','321lGIotI','2452nbrNGk','validation_error','5iKAAIU','code','path'];a97_0xfd72=function(){return _0x1a4104;};return a97_0xfd72();}
1
+ (function(_0x5de715,_0x15fc5c){const _0x1af41b=a101_0x10f9,_0x5aaedb=_0x5de715();while(!![]){try{const _0x32d086=parseInt(_0x1af41b(0x1e8))/0x1*(-parseInt(_0x1af41b(0x1f3))/0x2)+parseInt(_0x1af41b(0x1f4))/0x3+-parseInt(_0x1af41b(0x1e1))/0x4+-parseInt(_0x1af41b(0x1e0))/0x5*(parseInt(_0x1af41b(0x1ee))/0x6)+parseInt(_0x1af41b(0x1e5))/0x7*(parseInt(_0x1af41b(0x1f0))/0x8)+parseInt(_0x1af41b(0x1e2))/0x9*(parseInt(_0x1af41b(0x1ed))/0xa)+-parseInt(_0x1af41b(0x1ea))/0xb*(-parseInt(_0x1af41b(0x1ef))/0xc);if(_0x32d086===_0x15fc5c)break;else _0x5aaedb['push'](_0x5aaedb['shift']());}catch(_0x40c568){_0x5aaedb['push'](_0x5aaedb['shift']());}}}(a101_0xed86,0x2e765));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');function a101_0xed86(){const _0x5cd5cc=['path','10AdCHWq','6vVMzKe','12cboLKk','25224ZKIGkf','map','sort','132zxvrub','491130fNUbgb','object','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1087120dBMYBw','332664zGujPt','427689ljLEIr','code','name','840yGGreM','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','from','4509VmDFam','entries','2187922HAEPlx','validation'];a101_0xed86=function(){return _0x5cd5cc;};return a101_0xed86();}export function createDeterministicZipPackage(_0x1f6f1f){const _0x41158e=a101_0x10f9,_0x1cf00a={};for(const _0x50b942 of normalizeLocalFiles(_0x1f6f1f)){_0x1cf00a[_0x50b942[_0x41158e(0x1ec)]]=fileContent(_0x50b942);}return Buffer[_0x41158e(0x1e7)](zipSync(_0x1cf00a,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x36032c){const _0x192840=a101_0x10f9;if(_0x36032c['length']<0x16)throw CliErrors[_0x192840(0x1eb)](_0x192840(0x1f6));let _0x4f3fc5;try{_0x4f3fc5=unzipSync(_0x36032c,{'filter'(_0x51b0e3){const _0x572fce=_0x192840,_0x55615e=normalizeSkillRelativePath(_0x51b0e3[_0x572fce(0x1e4)]);if(_0x55615e['endsWith']('/'))throw CliErrors[_0x572fce(0x1eb)](_0x572fce(0x1e6)+_0x55615e);return!![];}});}catch(_0x21015a){if(isRuntimeSkillValidationError(_0x21015a))throw _0x21015a;throw CliErrors[_0x192840(0x1eb)](_0x192840(0x1f6));}return Object[_0x192840(0x1e9)](_0x4f3fc5)[_0x192840(0x1f1)](([_0x43b8e8,_0x1f9de2])=>({'path':normalizeSkillRelativePath(_0x43b8e8),'bytes':Buffer[_0x192840(0x1e7)](_0x1f9de2)}))[_0x192840(0x1f2)](compareSkillFiles);}function a101_0x10f9(_0x595490,_0x2f5f0d){_0x595490=_0x595490-0x1e0;const _0xed86eb=a101_0xed86();let _0x10f981=_0xed86eb[_0x595490];return _0x10f981;}function isRuntimeSkillValidationError(_0x11f8ff){const _0x3f2aa5=a101_0x10f9;return typeof _0x11f8ff===_0x3f2aa5(0x1f5)&&_0x11f8ff!==null&&_0x3f2aa5(0x1e3)in _0x11f8ff&&_0x11f8ff[_0x3f2aa5(0x1e3)]==='validation_error';}
@@ -1 +1 @@
1
- (function(_0x5113a1,_0x5921c2){const _0x315f9e=a98_0x5bf0,_0x2f1227=_0x5113a1();while(!![]){try{const _0x29d755=-parseInt(_0x315f9e(0xd9))/0x1+-parseInt(_0x315f9e(0xc0))/0x2*(-parseInt(_0x315f9e(0xdb))/0x3)+-parseInt(_0x315f9e(0xce))/0x4*(-parseInt(_0x315f9e(0xd1))/0x5)+-parseInt(_0x315f9e(0xb1))/0x6*(parseInt(_0x315f9e(0xc4))/0x7)+-parseInt(_0x315f9e(0xc3))/0x8+-parseInt(_0x315f9e(0xda))/0x9*(-parseInt(_0x315f9e(0xab))/0xa)+parseInt(_0x315f9e(0xb4))/0xb*(parseInt(_0x315f9e(0xba))/0xc);if(_0x29d755===_0x5921c2)break;else _0x2f1227['push'](_0x2f1227['shift']());}catch(_0x2ebab1){_0x2f1227['push'](_0x2f1227['shift']());}}}(a98_0x2814,0x60b68));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a98_0x5bf0(_0x1a5a51,_0x16147d){_0x1a5a51=_0x1a5a51-0xaa;const _0x281401=a98_0x2814();let _0x5bf0e3=_0x281401[_0x1a5a51];return _0x5bf0e3;}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x1d11c0){const _0x2b0dec=a98_0x5bf0,_0x1e23f5=normalizeLocalFiles(_0x1d11c0);if(!_0x1e23f5[_0x2b0dec(0xd6)](_0x5e0a38=>_0x5e0a38[_0x2b0dec(0xc7)]===SKILL_FILE))throw CliErrors[_0x2b0dec(0xc5)](_0x2b0dec(0xc8)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x3e1cd9=localFilesToManifestFiles(_0x1e23f5),_0x5d7f36=createDeterministicZipPackage(_0x1e23f5);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x3e1cd9),'zipSha256':bufferSha256(_0x5d7f36),'zipSize':_0x5d7f36[_0x2b0dec(0xbe)],'files':_0x3e1cd9},'packageBytes':_0x5d7f36,'packageBase64':_0x5d7f36[_0x2b0dec(0xca)](_0x2b0dec(0xbb))};}export function verifyRuntimeSkillPackage(_0xc2ea36,_0xe99642){const _0x532740=a98_0x5bf0,_0x191c99=normalizePackageManifest(_0xc2ea36,{'requireOssPath':![]});if(!_0x191c99)throw CliErrors[_0x532740(0xc5)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x191c99,_0xe99642);}export function verifyRuntimeSkillBundle(_0xfe9db9,_0x2fa6c2){const _0x57412f=normalizePackageManifest(_0xfe9db9,{'requireOssPath':![]});if(!_0x57412f)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x57412f,_0x2fa6c2);}export function tryNormalizePackageManifest(_0x53003f){return normalizePackageManifest(_0x53003f,{'requireOssPath':![]});}export function requirePackageBytes(_0x9eb72,_0x365454){const _0x177a27=a98_0x5bf0;if(!_0x365454||_0x365454[_0x177a27(0xbe)]===0x0)throw CliErrors[_0x177a27(0xc5)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x9eb72);return _0x365454;}function a98_0x2814(){const _0x46c024=['Runtime\x20Skill\x20package\x20sha256\x20mismatch.','trim','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','some','bytes','map','791219vOzVoK','234GayhwK','9BUmdQu','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','58570mFbRPq','string','zipSha256','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','zipSize','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','114fELthM','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','23837GoTyoV','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','push','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','isArray','object','3300ipWNld','base64','toLowerCase','requireOssPath','length','schemaVersion','377494CsBGYO','size','Runtime\x20Skill\x20package\x20size\x20mismatch.','988136rUrwsh','117719yPtTCP','validation','files','path','Missing\x20','isSafeInteger','toString','ossPath','treeSha256','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','9092nbHxVv','Runtime\x20Skill\x20package\x20is\x20missing\x20','sha256','695AmngNT'];a98_0x2814=function(){return _0x46c024;};return a98_0x2814();}export function extractDownloadedPackage(_0x472613){const _0x2434cd=a98_0x5bf0,_0x4a65ba=parseZipPackage(_0x472613)[_0x2434cd(0xd8)](_0x8c81c7=>({'path':_0x8c81c7[_0x2434cd(0xc7)],'bytes':_0x8c81c7['bytes']}));if(!_0x4a65ba['some'](_0x3943ce=>_0x3943ce[_0x2434cd(0xc7)]===SKILL_FILE))throw CliErrors['validation'](_0x2434cd(0xcf)+SKILL_FILE+'.');return normalizeLocalFiles(_0x4a65ba);}export function localFilesToManifestFiles(_0x43e7d0){const _0x3bfafb=a98_0x5bf0;return normalizeLocalFiles(_0x43e7d0)[_0x3bfafb(0xd8)](_0xcdd5b=>({'path':_0xcdd5b[_0x3bfafb(0xc7)],'sha256':fileHash(_0xcdd5b),'size':fileContent(_0xcdd5b)[_0x3bfafb(0xbe)]}));}function normalizePackageManifest(_0x4d6c3f,_0x332c83){const _0xd5c8e5=a98_0x5bf0;if(!_0x4d6c3f||typeof _0x4d6c3f!==_0xd5c8e5(0xb9)||Array[_0xd5c8e5(0xb8)](_0x4d6c3f))return undefined;const _0x423641=_0x4d6c3f,_0x3fe3a5=typeof _0x423641[_0xd5c8e5(0xcb)]===_0xd5c8e5(0xac)?_0x423641['ossPath'][_0xd5c8e5(0xd3)]():undefined;if(_0x332c83[_0xd5c8e5(0xbd)]&&!_0x3fe3a5)return undefined;if(!Array[_0xd5c8e5(0xb8)](_0x423641[_0xd5c8e5(0xc6)])||_0x423641[_0xd5c8e5(0xc6)][_0xd5c8e5(0xbe)]===0x0)return undefined;if(!isSha256Hex(_0x423641[_0xd5c8e5(0xcc)]))throw CliErrors[_0xd5c8e5(0xc5)](_0xd5c8e5(0xb3));if(!isSha256Hex(_0x423641[_0xd5c8e5(0xad)]))throw CliErrors['validation'](_0xd5c8e5(0xaa));if(!Number[_0xd5c8e5(0xc9)](_0x423641[_0xd5c8e5(0xaf)])||_0x423641[_0xd5c8e5(0xaf)]<0x0)throw CliErrors[_0xd5c8e5(0xc5)](_0xd5c8e5(0xd5));const _0x4687e4=normalizeManifestFiles(_0x423641[_0xd5c8e5(0xc6)]);if(!_0x4687e4['some'](_0xbea7b6=>_0xbea7b6['path']===SKILL_FILE))throw CliErrors['validation'](_0xd5c8e5(0xb7)+SKILL_FILE+'.');const _0x407d61=fileTreeHash(_0x4687e4);if(_0x407d61!==_0x423641[_0xd5c8e5(0xcc)][_0xd5c8e5(0xbc)]())throw CliErrors[_0xd5c8e5(0xc5)](_0xd5c8e5(0xb5));return{'schemaVersion':Number[_0xd5c8e5(0xc9)](_0x423641['schemaVersion'])?_0x423641[_0xd5c8e5(0xbf)]:0x2,'ossPath':_0x3fe3a5,'treeSha256':_0x407d61,'zipSha256':_0x423641[_0xd5c8e5(0xad)][_0xd5c8e5(0xbc)](),'zipSize':_0x423641[_0xd5c8e5(0xaf)],'files':_0x4687e4};}function extractAndVerifyPackage(_0x41afc9,_0x207287){const _0x31d722=a98_0x5bf0,_0x1a3dc4=normalizePackageManifest(_0x41afc9,{'requireOssPath':![]});if(!_0x1a3dc4)throw CliErrors[_0x31d722(0xc5)](_0x31d722(0xd4));if(_0x207287[_0x31d722(0xbe)]!==_0x1a3dc4[_0x31d722(0xaf)])throw CliErrors['validation'](_0x31d722(0xc2));const _0x265a9e=bufferSha256(_0x207287);if(_0x265a9e!==_0x1a3dc4['zipSha256'])throw CliErrors[_0x31d722(0xc5)](_0x31d722(0xd2));return extractAndVerifyPackageFiles(_0x1a3dc4,_0x207287);}function extractAndVerifyPackageFiles(_0x5921f4,_0xf68e){const _0x500395=a98_0x5bf0,_0x3e171f=parseZipPackage(_0xf68e);if(_0x3e171f[_0x500395(0xbe)]!==_0x5921f4[_0x500395(0xc6)][_0x500395(0xbe)])throw CliErrors[_0x500395(0xc5)](_0x500395(0xb2));const _0x323d30=new Map();for(const _0x3e08cc of _0x3e171f){if(_0x323d30['has'](_0x3e08cc[_0x500395(0xc7)]))throw CliErrors[_0x500395(0xc5)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x3e08cc[_0x500395(0xc7)]);_0x323d30['set'](_0x3e08cc[_0x500395(0xc7)],_0x3e08cc);}const _0x125dbd=[];for(const _0x1d825c of _0x5921f4[_0x500395(0xc6)]){const _0x147876=_0x323d30['get'](_0x1d825c[_0x500395(0xc7)]);if(!_0x147876)throw CliErrors[_0x500395(0xc5)](_0x500395(0xae)+_0x1d825c['path']);if(_0x147876[_0x500395(0xd7)][_0x500395(0xbe)]!==_0x1d825c[_0x500395(0xc1)])throw CliErrors['validation'](_0x500395(0xcd)+_0x1d825c['path']);const _0x96bc74=bufferSha256(_0x147876[_0x500395(0xd7)]);if(_0x96bc74!==_0x1d825c[_0x500395(0xd0)])throw CliErrors['validation'](_0x500395(0xb0)+_0x1d825c[_0x500395(0xc7)]);_0x125dbd[_0x500395(0xb6)]({'path':_0x1d825c[_0x500395(0xc7)],'bytes':_0x147876['bytes']});}return normalizeLocalFiles(_0x125dbd);}
1
+ (function(_0x2f4bf6,_0x2ea2ee){const _0x248cdd=a102_0x3bd2,_0x41cd3b=_0x2f4bf6();while(!![]){try{const _0x3573ec=parseInt(_0x248cdd(0x1e6))/0x1*(parseInt(_0x248cdd(0x1cd))/0x2)+-parseInt(_0x248cdd(0x1d9))/0x3*(parseInt(_0x248cdd(0x1bd))/0x4)+-parseInt(_0x248cdd(0x1ce))/0x5*(parseInt(_0x248cdd(0x1c5))/0x6)+parseInt(_0x248cdd(0x1c1))/0x7*(parseInt(_0x248cdd(0x1c7))/0x8)+-parseInt(_0x248cdd(0x1dd))/0x9*(parseInt(_0x248cdd(0x1d0))/0xa)+-parseInt(_0x248cdd(0x1e8))/0xb+parseInt(_0x248cdd(0x1bf))/0xc*(parseInt(_0x248cdd(0x1c0))/0xd);if(_0x3573ec===_0x2ea2ee)break;else _0x41cd3b['push'](_0x41cd3b['shift']());}catch(_0x39c106){_0x41cd3b['push'](_0x41cd3b['shift']());}}}(a102_0x371a,0xbd85e));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';function a102_0x371a(){const _0x48ef62=['push','2198900ggjYsu','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Missing\x20','validation','trim','some','size','154472wkJobj','ossPath','3432BObYot','66027wLlZRp','28497ZnepQp','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','has','174KKMqtq','set','1184avQDcH','length','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','bytes','isArray','1126826KxyWSy','158295rfGVGi','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','490OSKPtA','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','requireOssPath','object','string','treeSha256','path','isSafeInteger','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','78RXPhHK','zipSize','toLowerCase','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','52083kLpqXn','Runtime\x20Skill\x20package\x20size\x20mismatch.','files','schemaVersion','zipSha256','Duplicate\x20Skill\x20package\x20entry:\x20','toString','Runtime\x20Skill\x20package\x20is\x20missing\x20','map','2Uhfxfw'];a102_0x371a=function(){return _0x48ef62;};return a102_0x371a();}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x58a8b1){const _0x5ac9b8=a102_0x3bd2,_0x3a0a74=normalizeLocalFiles(_0x58a8b1);if(!_0x3a0a74[_0x5ac9b8(0x1bb)](_0x45801c=>_0x45801c[_0x5ac9b8(0x1d6)]===SKILL_FILE))throw CliErrors['validation'](_0x5ac9b8(0x1eb)+SKILL_FILE+_0x5ac9b8(0x1c9));const _0x4754ea=localFilesToManifestFiles(_0x3a0a74),_0x4a4550=createDeterministicZipPackage(_0x3a0a74);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x4754ea),'zipSha256':bufferSha256(_0x4a4550),'zipSize':_0x4a4550[_0x5ac9b8(0x1c8)],'files':_0x4754ea},'packageBytes':_0x4a4550,'packageBase64':_0x4a4550[_0x5ac9b8(0x1e3)]('base64')};}export function verifyRuntimeSkillPackage(_0x42ec02,_0x36dd7f){const _0x39f692=a102_0x3bd2,_0x5732bd=normalizePackageManifest(_0x42ec02,{'requireOssPath':![]});if(!_0x5732bd)throw CliErrors[_0x39f692(0x1ec)](_0x39f692(0x1ea));return extractAndVerifyPackage(_0x5732bd,_0x36dd7f);}export function verifyRuntimeSkillBundle(_0x2203ce,_0x4bd1d6){const _0x4f0a35=a102_0x3bd2,_0x4c3f19=normalizePackageManifest(_0x2203ce,{'requireOssPath':![]});if(!_0x4c3f19)throw CliErrors[_0x4f0a35(0x1ec)](_0x4f0a35(0x1ea));return extractAndVerifyPackageFiles(_0x4c3f19,_0x4bd1d6);}export function tryNormalizePackageManifest(_0x1acb96){return normalizePackageManifest(_0x1acb96,{'requireOssPath':![]});}export function requirePackageBytes(_0x2aa7a2,_0x3f0169){const _0x21bcbe=a102_0x3bd2;if(!_0x3f0169||_0x3f0169[_0x21bcbe(0x1c8)]===0x0)throw CliErrors[_0x21bcbe(0x1ec)](_0x21bcbe(0x1c3)+_0x2aa7a2);return _0x3f0169;}export function extractDownloadedPackage(_0x111ddc){const _0x23f2ce=a102_0x3bd2,_0xe85d67=parseZipPackage(_0x111ddc)[_0x23f2ce(0x1e5)](_0x4dff1f=>({'path':_0x4dff1f[_0x23f2ce(0x1d6)],'bytes':_0x4dff1f[_0x23f2ce(0x1cb)]}));if(!_0xe85d67[_0x23f2ce(0x1bb)](_0x45d906=>_0x45d906[_0x23f2ce(0x1d6)]===SKILL_FILE))throw CliErrors[_0x23f2ce(0x1ec)](_0x23f2ce(0x1e4)+SKILL_FILE+'.');return normalizeLocalFiles(_0xe85d67);}export function localFilesToManifestFiles(_0x42407c){const _0x523519=a102_0x3bd2;return normalizeLocalFiles(_0x42407c)['map'](_0x20a41d=>({'path':_0x20a41d[_0x523519(0x1d6)],'sha256':fileHash(_0x20a41d),'size':fileContent(_0x20a41d)[_0x523519(0x1c8)]}));}function normalizePackageManifest(_0x200792,_0x44c736){const _0x51d7fa=a102_0x3bd2;if(!_0x200792||typeof _0x200792!==_0x51d7fa(0x1d3)||Array[_0x51d7fa(0x1cc)](_0x200792))return undefined;const _0x541698=_0x200792,_0x317d85=typeof _0x541698[_0x51d7fa(0x1be)]===_0x51d7fa(0x1d4)?_0x541698['ossPath'][_0x51d7fa(0x1ed)]():undefined;if(_0x44c736[_0x51d7fa(0x1d2)]&&!_0x317d85)return undefined;if(!Array['isArray'](_0x541698['files'])||_0x541698['files'][_0x51d7fa(0x1c8)]===0x0)return undefined;if(!isSha256Hex(_0x541698[_0x51d7fa(0x1d5)]))throw CliErrors[_0x51d7fa(0x1ec)](_0x51d7fa(0x1c2));if(!isSha256Hex(_0x541698['zipSha256']))throw CliErrors[_0x51d7fa(0x1ec)](_0x51d7fa(0x1cf));if(!Number[_0x51d7fa(0x1d7)](_0x541698['zipSize'])||_0x541698['zipSize']<0x0)throw CliErrors[_0x51d7fa(0x1ec)](_0x51d7fa(0x1e9));const _0x33a8ac=normalizeManifestFiles(_0x541698[_0x51d7fa(0x1df)]);if(!_0x33a8ac[_0x51d7fa(0x1bb)](_0xcc023f=>_0xcc023f[_0x51d7fa(0x1d6)]===SKILL_FILE))throw CliErrors[_0x51d7fa(0x1ec)](_0x51d7fa(0x1d1)+SKILL_FILE+'.');const _0x455a83=fileTreeHash(_0x33a8ac);if(_0x455a83!==_0x541698[_0x51d7fa(0x1d5)][_0x51d7fa(0x1db)]())throw CliErrors['validation']('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0x541698[_0x51d7fa(0x1e0)])?_0x541698[_0x51d7fa(0x1e0)]:0x2,'ossPath':_0x317d85,'treeSha256':_0x455a83,'zipSha256':_0x541698[_0x51d7fa(0x1e1)]['toLowerCase'](),'zipSize':_0x541698[_0x51d7fa(0x1da)],'files':_0x33a8ac};}function a102_0x3bd2(_0x520791,_0x285a40){_0x520791=_0x520791-0x1bb;const _0x371ada=a102_0x371a();let _0x3bd2db=_0x371ada[_0x520791];return _0x3bd2db;}function extractAndVerifyPackage(_0x5bfc5e,_0x5d83d8){const _0x3cde19=a102_0x3bd2,_0x1f226d=normalizePackageManifest(_0x5bfc5e,{'requireOssPath':![]});if(!_0x1f226d)throw CliErrors[_0x3cde19(0x1ec)](_0x3cde19(0x1ea));if(_0x5d83d8[_0x3cde19(0x1c8)]!==_0x1f226d[_0x3cde19(0x1da)])throw CliErrors[_0x3cde19(0x1ec)](_0x3cde19(0x1de));const _0x2df1c0=bufferSha256(_0x5d83d8);if(_0x2df1c0!==_0x1f226d[_0x3cde19(0x1e1)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x1f226d,_0x5d83d8);}function extractAndVerifyPackageFiles(_0x1d5ac3,_0x5dfe5c){const _0x10bc26=a102_0x3bd2,_0x16736f=parseZipPackage(_0x5dfe5c);if(_0x16736f['length']!==_0x1d5ac3['files'][_0x10bc26(0x1c8)])throw CliErrors[_0x10bc26(0x1ec)](_0x10bc26(0x1d8));const _0x2c93b4=new Map();for(const _0x17866d of _0x16736f){if(_0x2c93b4[_0x10bc26(0x1c4)](_0x17866d[_0x10bc26(0x1d6)]))throw CliErrors[_0x10bc26(0x1ec)](_0x10bc26(0x1e2)+_0x17866d[_0x10bc26(0x1d6)]);_0x2c93b4[_0x10bc26(0x1c6)](_0x17866d[_0x10bc26(0x1d6)],_0x17866d);}const _0x5901a7=[];for(const _0x232679 of _0x1d5ac3[_0x10bc26(0x1df)]){const _0x326ea3=_0x2c93b4['get'](_0x232679['path']);if(!_0x326ea3)throw CliErrors[_0x10bc26(0x1ec)](_0x10bc26(0x1ca)+_0x232679['path']);if(_0x326ea3[_0x10bc26(0x1cb)][_0x10bc26(0x1c8)]!==_0x232679[_0x10bc26(0x1bc)])throw CliErrors[_0x10bc26(0x1ec)](_0x10bc26(0x1dc)+_0x232679[_0x10bc26(0x1d6)]);const _0x138948=bufferSha256(_0x326ea3[_0x10bc26(0x1cb)]);if(_0x138948!==_0x232679['sha256'])throw CliErrors[_0x10bc26(0x1ec)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x232679[_0x10bc26(0x1d6)]);_0x5901a7[_0x10bc26(0x1e7)]({'path':_0x232679['path'],'bytes':_0x326ea3[_0x10bc26(0x1cb)]});}return normalizeLocalFiles(_0x5901a7);}
@@ -1 +1 @@
1
- function a99_0x4aaa(_0x131fb1,_0x2a5830){_0x131fb1=_0x131fb1-0x80;var _0x3a0f1d=a99_0x3a0f();var _0x4aaab5=_0x3a0f1d[_0x131fb1];return _0x4aaab5;}(function(_0x11ba97,_0x59003d){var _0x30f6c6=a99_0x4aaa,_0x22b2b8=_0x11ba97();while(!![]){try{var _0x135605=-parseInt(_0x30f6c6(0x89))/0x1*(-parseInt(_0x30f6c6(0x81))/0x2)+parseInt(_0x30f6c6(0x87))/0x3*(-parseInt(_0x30f6c6(0x80))/0x4)+parseInt(_0x30f6c6(0x86))/0x5*(parseInt(_0x30f6c6(0x82))/0x6)+parseInt(_0x30f6c6(0x88))/0x7+-parseInt(_0x30f6c6(0x83))/0x8+parseInt(_0x30f6c6(0x85))/0x9+-parseInt(_0x30f6c6(0x84))/0xa;if(_0x135605===_0x59003d)break;else _0x22b2b8['push'](_0x22b2b8['shift']());}catch(_0x22d9a7){_0x22b2b8['push'](_0x22b2b8['shift']());}}}(a99_0x3a0f,0xdd64b));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a99_0x3a0f(){var _0x267446=['10737118DtcuvW','1MQgluv','7065076kLrWBP','3625718luMDFt','1915626MCXRyo','13243896KddjaR','7565960lqsEWt','1278819lHOrBl','25grmlBE','3PlCVUD'];a99_0x3a0f=function(){return _0x267446;};return a99_0x3a0f();}export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x581c5d,_0x4736b0){var _0x56a69d=a103_0x23e3,_0x11e098=_0x581c5d();while(!![]){try{var _0x1eaa76=-parseInt(_0x56a69d(0x1f6))/0x1*(parseInt(_0x56a69d(0x1fd))/0x2)+parseInt(_0x56a69d(0x1fa))/0x3+-parseInt(_0x56a69d(0x1f7))/0x4*(-parseInt(_0x56a69d(0x1f8))/0x5)+parseInt(_0x56a69d(0x1f5))/0x6+-parseInt(_0x56a69d(0x1f9))/0x7*(-parseInt(_0x56a69d(0x1fb))/0x8)+-parseInt(_0x56a69d(0x1f3))/0x9*(-parseInt(_0x56a69d(0x1f2))/0xa)+-parseInt(_0x56a69d(0x1f4))/0xb*(parseInt(_0x56a69d(0x1fc))/0xc);if(_0x1eaa76===_0x4736b0)break;else _0x11e098['push'](_0x11e098['shift']());}catch(_0x2cbcd3){_0x11e098['push'](_0x11e098['shift']());}}}(a103_0x4d5d,0xb7355));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';function a103_0x23e3(_0x204763,_0x2ca9c6){_0x204763=_0x204763-0x1f2;var _0x4d5d3d=a103_0x4d5d();var _0x23e37=_0x4d5d3d[_0x204763];return _0x23e37;}export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths}from'./runtime-skill-sync/paths.js';function a103_0x4d5d(){var _0x1c3ebf=['51121ulsYBT','2343068fJNWhD','10pIeHVh','4102mnXdXC','745395SYRHiO','16424ishyZH','20819244iCKKAN','8HWtcpy','10aYAMGT','330723aKanrr','11WIgJaE','180228MCrbis'];a103_0x4d5d=function(){return _0x1c3ebf;};return a103_0x4d5d();}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- function a100_0x3c42(_0x5f515a,_0x423bde){_0x5f515a=_0x5f515a-0x1cf;const _0xbdeca5=a100_0xbdec();let _0x3c427e=_0xbdeca5[_0x5f515a];return _0x3c427e;}(function(_0x719cb5,_0x5c7a8d){const _0x21559d=a100_0x3c42,_0xe4d250=_0x719cb5();while(!![]){try{const _0x50cb21=parseInt(_0x21559d(0x1d9))/0x1+-parseInt(_0x21559d(0x1d4))/0x2*(parseInt(_0x21559d(0x1d7))/0x3)+-parseInt(_0x21559d(0x1cf))/0x4+parseInt(_0x21559d(0x1d8))/0x5*(-parseInt(_0x21559d(0x1d5))/0x6)+parseInt(_0x21559d(0x1d1))/0x7*(-parseInt(_0x21559d(0x1d6))/0x8)+-parseInt(_0x21559d(0x1d0))/0x9*(parseInt(_0x21559d(0x1d3))/0xa)+parseInt(_0x21559d(0x1d2))/0xb;if(_0x50cb21===_0x5c7a8d)break;else _0xe4d250['push'](_0xe4d250['shift']());}catch(_0x659231){_0xe4d250['push'](_0xe4d250['shift']());}}}(a100_0xbdec,0x2ea98));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a100_0xbdec(){const _0x5dd7e7=['83477axsPFQ','813176zUOtRw','18dIaYAK','46179AJIDGQ','11354816iFMWiE','1371290yLJlcA','142686NZVAqH','1818858mmjsBu','88fxOmOU','3LigsyH','5EiynRl'];a100_0xbdec=function(){return _0x5dd7e7;};return a100_0xbdec();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x3488cb,_0x4d6a1f){const _0x361084=a104_0x239b,_0xda5fd=_0x3488cb();while(!![]){try{const _0x198cd4=parseInt(_0x361084(0x191))/0x1*(parseInt(_0x361084(0x193))/0x2)+-parseInt(_0x361084(0x199))/0x3+parseInt(_0x361084(0x195))/0x4+-parseInt(_0x361084(0x192))/0x5*(-parseInt(_0x361084(0x190))/0x6)+-parseInt(_0x361084(0x194))/0x7*(parseInt(_0x361084(0x197))/0x8)+parseInt(_0x361084(0x196))/0x9+-parseInt(_0x361084(0x198))/0xa;if(_0x198cd4===_0x4d6a1f)break;else _0xda5fd['push'](_0xda5fd['shift']());}catch(_0x12a7c5){_0xda5fd['push'](_0xda5fd['shift']());}}}(a104_0x1d86,0x5e97c));function a104_0x239b(_0x2e3677,_0x13c195){_0x2e3677=_0x2e3677-0x190;const _0x1d8626=a104_0x1d86();let _0x239bd8=_0x1d8626[_0x2e3677];return _0x239bd8;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a104_0x1d86(){const _0x2ad288=['6OUegGE','977VGfDxC','2444050QUWwqg','36tnxtzy','71561EeAaSp','1873016VJItMS','2255859ysvRVt','232hIQymE','3195800gDEUWo','665406XzgLcv'];a104_0x1d86=function(){return _0x2ad288;};return a104_0x1d86();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a101_0x307f68=a101_0x3313;function a101_0x4b11(){const _0x22ad3b=['9BcjjBY','success','details','utf8','join','yellow','readFileSync','red','combine','writeFileSync','printf','info','readLogs','parse','logFilePath','existsSync','transports','split','3644sjJped','command','logTask','error','4091272ackAAd','getWinstonInstance','stringify','Failed:\x20','warn','green','logFileName','33954010JtCZWf','now','filter','4702292ZyUXgU','clear','clearLogs','313914ytMHcp','dirname','85KRvMhQ','2550594AlfZQK','Failed\x20to\x20clear\x20logs:','winstonLogger','message','unknown','setLogPath','log','createLogger','format','map','6002588OxPaYj','currentRawCommand','Failed\x20to\x20read\x20logs:','652vGBZRM','trim','Starting:\x20','timestamp','initWinstonLogger','addColors'];a101_0x4b11=function(){return _0x22ad3b;};return a101_0x4b11();}(function(_0x126aeb,_0x43c802){const _0x50d3d4=a101_0x3313,_0x397cbe=_0x126aeb();while(!![]){try{const _0x57f758=-parseInt(_0x50d3d4(0xff))/0x1*(parseInt(_0x50d3d4(0xe7))/0x2)+parseInt(_0x50d3d4(0x113))/0x3+-parseInt(_0x50d3d4(0xe4))/0x4+-parseInt(_0x50d3d4(0x112))/0x5*(parseInt(_0x50d3d4(0x110))/0x6)+parseInt(_0x50d3d4(0x10d))/0x7+-parseInt(_0x50d3d4(0x103))/0x8*(parseInt(_0x50d3d4(0xed))/0x9)+parseInt(_0x50d3d4(0x10a))/0xa;if(_0x57f758===_0x43c802)break;else _0x397cbe['push'](_0x397cbe['shift']());}catch(_0x1506cc){_0x397cbe['push'](_0x397cbe['shift']());}}}(a101_0x4b11,0xca21c));import a101_0x25d334 from'winston';import a101_0x4491e2 from'node:fs';import a101_0x4892d3 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a101_0x3313(_0x14d8d8,_0x585aea){_0x14d8d8=_0x14d8d8-0xe0;const _0x4b11a7=a101_0x4b11();let _0x33133c=_0x4b11a7[_0x14d8d8];return _0x33133c;}class Logger{[a101_0x307f68(0x115)];['logFilePath']='';[a101_0x307f68(0xe5)]='';constructor(){}['setRawCommand'](_0x68df24){const _0x116d6f=a101_0x307f68;this[_0x116d6f(0xe5)]=_0x68df24;}[a101_0x307f68(0x118)](_0x70d6e3){const _0x583328=a101_0x307f68;this[_0x583328(0xfb)]=a101_0x4892d3[_0x583328(0xf1)](_0x70d6e3,PRODUCT_CONFIG[_0x583328(0x109)]),this[_0x583328(0x115)]&&this[_0x583328(0x115)][_0x583328(0x10e)](),this[_0x583328(0xeb)]();}[a101_0x307f68(0xeb)](){const _0x1eb6ed=a101_0x307f68,_0x372b21=a101_0x4892d3[_0x1eb6ed(0x111)](this['logFilePath']);!a101_0x4491e2[_0x1eb6ed(0xfc)](_0x372b21)&&a101_0x4491e2['mkdirSync'](_0x372b21,{'recursive':!![]});const _0x4bf375=a101_0x25d334[_0x1eb6ed(0xe2)][_0x1eb6ed(0xf5)](a101_0x25d334['format'][_0x1eb6ed(0xea)](),a101_0x25d334['format']['errors']({'stack':!![]}),a101_0x25d334['format'][_0x1eb6ed(0xf7)](_0x29581a=>{const _0x22c981=_0x1eb6ed,_0x5b3382={'timestamp':_0x29581a['timestamp']||new Date()['toISOString'](),'level':_0x29581a['level']||'info','command':_0x29581a[_0x22c981(0x100)]||_0x22c981(0x117),'rawCommand':_0x29581a['rawCommand']||this[_0x22c981(0xe5)]||undefined,'message':_0x29581a['message']||'','duration':_0x29581a['duration']||undefined,'details':_0x29581a[_0x22c981(0xef)]||undefined};return JSON[_0x22c981(0x105)](_0x5b3382);}));this[_0x1eb6ed(0x115)]=a101_0x25d334[_0x1eb6ed(0xe1)]({'level':'info','format':_0x4bf375,'transports':[new a101_0x25d334[(_0x1eb6ed(0xfd))]['File']({'filename':this[_0x1eb6ed(0xfb)],'level':_0x1eb6ed(0xf8)})],'silent':![]}),a101_0x25d334[_0x1eb6ed(0xec)]({'success':_0x1eb6ed(0x108),'error':_0x1eb6ed(0xf4),'warn':_0x1eb6ed(0xf2),'info':'blue'});}[a101_0x307f68(0xf8)](_0x98d34e,_0x4f1374,_0x3cee2c){const _0x1c771f=a101_0x307f68;if(!this[_0x1c771f(0xfb)]||!this[_0x1c771f(0x115)])return;this[_0x1c771f(0x115)][_0x1c771f(0xf8)](_0x4f1374,{'command':_0x98d34e,'details':_0x3cee2c});}['success'](_0x455125,_0x21a599,_0x2425aa,_0x29ff72){const _0x55aaee=a101_0x307f68;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x55aaee(0xe0)](_0x55aaee(0xf8),_0x21a599,{'level':_0x55aaee(0xee),'command':_0x455125,'duration':_0x2425aa,'details':_0x29ff72});}[a101_0x307f68(0x102)](_0x2ddfbf,_0x5448a9,_0x1593af){const _0x5d4800=a101_0x307f68;if(!this['logFilePath']||!this[_0x5d4800(0x115)])return;this[_0x5d4800(0x115)][_0x5d4800(0x102)](_0x5448a9,{'command':_0x2ddfbf,'details':_0x1593af});}[a101_0x307f68(0x107)](_0x2b8db6,_0x31b41c,_0x142240){const _0x33aecb=a101_0x307f68;if(!this[_0x33aecb(0xfb)]||!this[_0x33aecb(0x115)])return;this[_0x33aecb(0x115)]['warn'](_0x31b41c,{'command':_0x2b8db6,'details':_0x142240});}async[a101_0x307f68(0x101)](_0x536429,_0x5e786f,_0x446bc1){const _0x29ad8f=a101_0x307f68,_0x227d85=Date[_0x29ad8f(0x10b)]();this[_0x29ad8f(0xf8)](_0x536429,_0x29ad8f(0xe9)+_0x5e786f);try{const _0x1ff168=await _0x446bc1(),_0x1b6d9a=Date[_0x29ad8f(0x10b)]()-_0x227d85;return this[_0x29ad8f(0xee)](_0x536429,'Completed:\x20'+_0x5e786f,_0x1b6d9a),_0x1ff168;}catch(_0x455e19){const _0x564f25=Date['now']()-_0x227d85;this[_0x29ad8f(0x102)](_0x536429,_0x29ad8f(0x106)+_0x5e786f,{'error':_0x455e19 instanceof Error?_0x455e19[_0x29ad8f(0x116)]:String(_0x455e19),'duration':_0x564f25});throw _0x455e19;}}[a101_0x307f68(0xf9)](){const _0x684d99=a101_0x307f68;try{if(!a101_0x4491e2[_0x684d99(0xfc)](this[_0x684d99(0xfb)]))return[];const _0x44d1ed=a101_0x4491e2[_0x684d99(0xf3)](this[_0x684d99(0xfb)],_0x684d99(0xf0));return _0x44d1ed[_0x684d99(0xfe)](/\r?\n/)[_0x684d99(0x10c)](_0x3afc5a=>_0x3afc5a[_0x684d99(0xe8)]())[_0x684d99(0xe3)](_0x2bd42a=>JSON[_0x684d99(0xfa)](_0x2bd42a));}catch(_0x4ae8a3){return console[_0x684d99(0x107)](_0x684d99(0xe6),_0x4ae8a3),[];}}[a101_0x307f68(0x10f)](){const _0x527b21=a101_0x307f68;try{a101_0x4491e2[_0x527b21(0xfc)](this[_0x527b21(0xfb)])&&a101_0x4491e2[_0x527b21(0xf6)](this[_0x527b21(0xfb)],'',_0x527b21(0xf0));}catch(_0x24639b){console[_0x527b21(0x107)](_0x527b21(0x114),_0x24639b);}}[a101_0x307f68(0x104)](){const _0x39f125=a101_0x307f68;return this[_0x39f125(0x115)];}}export const logger=new Logger();
1
+ const a105_0x2d43ce=a105_0x1aea;function a105_0x1d47(){const _0x4d4622=['279cHsRjP','now','45116SEOOlg','level','details','187FWUbqI','green','getWinstonInstance','currentRawCommand','log','warn','236296Djpjfx','existsSync','8808933kkNHgQ','Starting:\x20','Failed\x20to\x20read\x20logs:','winstonLogger','unknown','setLogPath','toISOString','clear','Failed:\x20','dirname','logFilePath','File','duration','error','246310bKGKfO','Failed\x20to\x20clear\x20logs:','split','6sfJFKf','filter','map','mkdirSync','format','rawCommand','trim','success','join','initWinstonLogger','errors','printf','addColors','logFileName','message','utf8','1436060HlmTKv','writeFileSync','timestamp','command','clearLogs','info','54402096zVMuwp','12MQtaWC','3jrFMzf','logTask','642914fTorbx'];a105_0x1d47=function(){return _0x4d4622;};return a105_0x1d47();}(function(_0x5caa16,_0x675d2b){const _0x1b6e5e=a105_0x1aea,_0x381906=_0x5caa16();while(!![]){try{const _0x5e1d2e=parseInt(_0x1b6e5e(0x16e))/0x1+parseInt(_0x1b6e5e(0x16b))/0x2*(-parseInt(_0x1b6e5e(0x169))/0x3)+parseInt(_0x1b6e5e(0x168))/0x4*(-parseInt(_0x1b6e5e(0x161))/0x5)+-parseInt(_0x1b6e5e(0x151))/0x6*(parseInt(_0x1b6e5e(0x179))/0x7)+parseInt(_0x1b6e5e(0x177))/0x8*(-parseInt(_0x1b6e5e(0x16c))/0x9)+parseInt(_0x1b6e5e(0x14e))/0xa*(-parseInt(_0x1b6e5e(0x171))/0xb)+parseInt(_0x1b6e5e(0x167))/0xc;if(_0x5e1d2e===_0x675d2b)break;else _0x381906['push'](_0x381906['shift']());}catch(_0x2363ed){_0x381906['push'](_0x381906['shift']());}}}(a105_0x1d47,0xc3fb2));import a105_0x259cdd from'winston';import a105_0x538d7c from'node:fs';function a105_0x1aea(_0x253439,_0x4a6683){_0x253439=_0x253439-0x144;const _0x1d4754=a105_0x1d47();let _0x1aea85=_0x1d4754[_0x253439];return _0x1aea85;}import a105_0x49ab49 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a105_0x2d43ce(0x14a)]='';[a105_0x2d43ce(0x174)]='';constructor(){}['setRawCommand'](_0x178030){const _0x5cce02=a105_0x2d43ce;this[_0x5cce02(0x174)]=_0x178030;}[a105_0x2d43ce(0x145)](_0xe14efd){const _0x5359b4=a105_0x2d43ce;this['logFilePath']=a105_0x49ab49[_0x5359b4(0x159)](_0xe14efd,PRODUCT_CONFIG[_0x5359b4(0x15e)]),this[_0x5359b4(0x17c)]&&this['winstonLogger'][_0x5359b4(0x147)](),this[_0x5359b4(0x15a)]();}['initWinstonLogger'](){const _0x2cbb03=a105_0x2d43ce,_0x6c38e9=a105_0x49ab49[_0x2cbb03(0x149)](this[_0x2cbb03(0x14a)]);!a105_0x538d7c[_0x2cbb03(0x178)](_0x6c38e9)&&a105_0x538d7c[_0x2cbb03(0x154)](_0x6c38e9,{'recursive':!![]});const _0x29ee0d=a105_0x259cdd[_0x2cbb03(0x155)]['combine'](a105_0x259cdd[_0x2cbb03(0x155)][_0x2cbb03(0x163)](),a105_0x259cdd[_0x2cbb03(0x155)][_0x2cbb03(0x15b)]({'stack':!![]}),a105_0x259cdd[_0x2cbb03(0x155)][_0x2cbb03(0x15c)](_0x54b4da=>{const _0x53c6ef=_0x2cbb03,_0x24c810={'timestamp':_0x54b4da[_0x53c6ef(0x163)]||new Date()[_0x53c6ef(0x146)](),'level':_0x54b4da[_0x53c6ef(0x16f)]||'info','command':_0x54b4da[_0x53c6ef(0x164)]||_0x53c6ef(0x144),'rawCommand':_0x54b4da[_0x53c6ef(0x156)]||this[_0x53c6ef(0x174)]||undefined,'message':_0x54b4da[_0x53c6ef(0x15f)]||'','duration':_0x54b4da[_0x53c6ef(0x14c)]||undefined,'details':_0x54b4da[_0x53c6ef(0x170)]||undefined};return JSON['stringify'](_0x24c810);}));this[_0x2cbb03(0x17c)]=a105_0x259cdd['createLogger']({'level':_0x2cbb03(0x166),'format':_0x29ee0d,'transports':[new a105_0x259cdd['transports'][(_0x2cbb03(0x14b))]({'filename':this[_0x2cbb03(0x14a)],'level':_0x2cbb03(0x166)})],'silent':![]}),a105_0x259cdd[_0x2cbb03(0x15d)]({'success':_0x2cbb03(0x172),'error':'red','warn':'yellow','info':'blue'});}[a105_0x2d43ce(0x166)](_0x2e7a9f,_0x526adb,_0x1db0b9){const _0x495199=a105_0x2d43ce;if(!this['logFilePath']||!this[_0x495199(0x17c)])return;this['winstonLogger']['info'](_0x526adb,{'command':_0x2e7a9f,'details':_0x1db0b9});}[a105_0x2d43ce(0x158)](_0x45ea22,_0x26cbf1,_0x8f55fa,_0x2dd007){const _0x2a43f4=a105_0x2d43ce;if(!this[_0x2a43f4(0x14a)]||!this[_0x2a43f4(0x17c)])return;this['winstonLogger'][_0x2a43f4(0x175)](_0x2a43f4(0x166),_0x26cbf1,{'level':'success','command':_0x45ea22,'duration':_0x8f55fa,'details':_0x2dd007});}['error'](_0x5d1a75,_0x292d6c,_0x5b96c3){const _0xf2156c=a105_0x2d43ce;if(!this[_0xf2156c(0x14a)]||!this[_0xf2156c(0x17c)])return;this[_0xf2156c(0x17c)]['error'](_0x292d6c,{'command':_0x5d1a75,'details':_0x5b96c3});}[a105_0x2d43ce(0x176)](_0x10b9d0,_0x42eb72,_0xd48a23){const _0x1783ca=a105_0x2d43ce;if(!this[_0x1783ca(0x14a)]||!this[_0x1783ca(0x17c)])return;this[_0x1783ca(0x17c)][_0x1783ca(0x176)](_0x42eb72,{'command':_0x10b9d0,'details':_0xd48a23});}async[a105_0x2d43ce(0x16a)](_0x3e90bc,_0x149789,_0x44371e){const _0x2d2e62=a105_0x2d43ce,_0x9ad992=Date[_0x2d2e62(0x16d)]();this[_0x2d2e62(0x166)](_0x3e90bc,_0x2d2e62(0x17a)+_0x149789);try{const _0x3a30f6=await _0x44371e(),_0x1a8517=Date[_0x2d2e62(0x16d)]()-_0x9ad992;return this[_0x2d2e62(0x158)](_0x3e90bc,'Completed:\x20'+_0x149789,_0x1a8517),_0x3a30f6;}catch(_0x4e7c4d){const _0xadf3e2=Date[_0x2d2e62(0x16d)]()-_0x9ad992;this[_0x2d2e62(0x14d)](_0x3e90bc,_0x2d2e62(0x148)+_0x149789,{'error':_0x4e7c4d instanceof Error?_0x4e7c4d['message']:String(_0x4e7c4d),'duration':_0xadf3e2});throw _0x4e7c4d;}}['readLogs'](){const _0x5c7800=a105_0x2d43ce;try{if(!a105_0x538d7c[_0x5c7800(0x178)](this[_0x5c7800(0x14a)]))return[];const _0xb00789=a105_0x538d7c['readFileSync'](this[_0x5c7800(0x14a)],_0x5c7800(0x160));return _0xb00789[_0x5c7800(0x150)](/\r?\n/)[_0x5c7800(0x152)](_0x59efad=>_0x59efad[_0x5c7800(0x157)]())[_0x5c7800(0x153)](_0x17d7f7=>JSON['parse'](_0x17d7f7));}catch(_0x2366a9){return console[_0x5c7800(0x176)](_0x5c7800(0x17b),_0x2366a9),[];}}[a105_0x2d43ce(0x165)](){const _0x8186e5=a105_0x2d43ce;try{a105_0x538d7c[_0x8186e5(0x178)](this[_0x8186e5(0x14a)])&&a105_0x538d7c[_0x8186e5(0x162)](this[_0x8186e5(0x14a)],'','utf8');}catch(_0x255b3a){console[_0x8186e5(0x176)](_0x8186e5(0x14f),_0x255b3a);}}[a105_0x2d43ce(0x173)](){const _0x4838c6=a105_0x2d43ce;return this[_0x4838c6(0x17c)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x5526f8,_0x20548d){var _0x4fe790=a102_0x1aa6,_0x4f20da=_0x5526f8();while(!![]){try{var _0x5283b4=-parseInt(_0x4fe790(0x83))/0x1*(parseInt(_0x4fe790(0x8a))/0x2)+parseInt(_0x4fe790(0x8b))/0x3+parseInt(_0x4fe790(0x81))/0x4+parseInt(_0x4fe790(0x8d))/0x5+-parseInt(_0x4fe790(0x87))/0x6+parseInt(_0x4fe790(0x85))/0x7+parseInt(_0x4fe790(0x8c))/0x8;if(_0x5283b4===_0x20548d)break;else _0x4f20da['push'](_0x4f20da['shift']());}catch(_0x4d15a0){_0x4f20da['push'](_0x4f20da['shift']());}}}(a102_0x12d4,0x8aa29));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4b3493){var _0x4fc341=a102_0x1aa6;if(!_0x4b3493)return undefined;try{return JSON[_0x4fc341(0x86)](_0x4b3493);}catch{throw CliErrors[_0x4fc341(0x89)](_0x4fc341(0x88)+_0x4b3493);}}function a102_0x1aa6(_0x1ee192,_0x5b9521){_0x1ee192=_0x1ee192-0x81;var _0x12d463=a102_0x12d4();var _0x1aa61c=_0x12d463[_0x1ee192];return _0x1aa61c;}export function parseJsonParamsValue(_0x3a3a69){var _0x64dcb4=a102_0x1aa6;if(!_0x3a3a69)return undefined;try{return JSON[_0x64dcb4(0x86)](_0x3a3a69);}catch{throw CliErrors[_0x64dcb4(0x89)](_0x64dcb4(0x88)+_0x3a3a69);}}export function parseBatchCreateItemsFromParams(_0x3ac0d3){var _0x3432b5=a102_0x1aa6;if(Array[_0x3432b5(0x84)](_0x3ac0d3))return _0x3ac0d3;if(_0x3ac0d3!==null&&_0x3ac0d3!==undefined&&typeof _0x3ac0d3==='object'&&Array[_0x3432b5(0x84)](_0x3ac0d3[_0x3432b5(0x82)]))return _0x3ac0d3['items'];throw CliErrors[_0x3432b5(0x89)](_0x3432b5(0x8e),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function a102_0x12d4(){var _0x31714b=['batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','1981724NYVquk','items','144018LpkACE','isArray','1258761kCjsyH','parse','6468240MLpofu','Invalid\x20JSON\x20for\x20--params:\x20','validation','14FfIPYn','179238zmmXhH','9747400JoYdzq','3502950mFqfvf'];a102_0x12d4=function(){return _0x31714b;};return a102_0x12d4();}
1
+ (function(_0x186eaf,_0x21946d){var _0x42ce37=a106_0x3012,_0x327b6b=_0x186eaf();while(!![]){try{var _0x12f671=-parseInt(_0x42ce37(0x76))/0x1*(parseInt(_0x42ce37(0x72))/0x2)+parseInt(_0x42ce37(0x69))/0x3+-parseInt(_0x42ce37(0x6c))/0x4+-parseInt(_0x42ce37(0x6f))/0x5+parseInt(_0x42ce37(0x6b))/0x6+parseInt(_0x42ce37(0x73))/0x7+parseInt(_0x42ce37(0x6a))/0x8*(-parseInt(_0x42ce37(0x71))/0x9);if(_0x12f671===_0x21946d)break;else _0x327b6b['push'](_0x327b6b['shift']());}catch(_0x51a547){_0x327b6b['push'](_0x327b6b['shift']());}}}(a106_0x52d8,0x9fe6c));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1432db){var _0x480c58=a106_0x3012;if(!_0x1432db)return undefined;try{return JSON[_0x480c58(0x70)](_0x1432db);}catch{throw CliErrors['validation'](_0x480c58(0x6e)+_0x1432db);}}export function parseJsonParamsValue(_0x326232){var _0x9a488c=a106_0x3012;if(!_0x326232)return undefined;try{return JSON[_0x9a488c(0x70)](_0x326232);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x326232);}}function a106_0x52d8(){var _0x113f66=['items','2629512JRAPcZ','740840fbmfEE','2743080zfKFni','2270092JSECSR','validation','Invalid\x20JSON\x20for\x20--params:\x20','395775ufxiDT','parse','81EMrhfh','274iUbhbl','7156632ZoPBhd','isArray','object','1613LhAXXj'];a106_0x52d8=function(){return _0x113f66;};return a106_0x52d8();}function a106_0x3012(_0x5c741f,_0x2fa639){_0x5c741f=_0x5c741f-0x69;var _0x52d89=a106_0x52d8();var _0x301253=_0x52d89[_0x5c741f];return _0x301253;}export function parseBatchCreateItemsFromParams(_0x2e1634){var _0x405673=a106_0x3012;if(Array[_0x405673(0x74)](_0x2e1634))return _0x2e1634;if(_0x2e1634!==null&&_0x2e1634!==undefined&&typeof _0x2e1634===_0x405673(0x75)&&Array[_0x405673(0x74)](_0x2e1634['items']))return _0x2e1634[_0x405673(0x77)];throw CliErrors[_0x405673(0x6d)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}
@@ -1 +1 @@
1
- const a103_0x4f1c08=a103_0x1e40;(function(_0x23afd5,_0x589785){const _0x75a9cf=a103_0x1e40,_0x1d0b35=_0x23afd5();while(!![]){try{const _0x23d6d7=-parseInt(_0x75a9cf(0x139))/0x1*(-parseInt(_0x75a9cf(0x13b))/0x2)+-parseInt(_0x75a9cf(0x13e))/0x3+-parseInt(_0x75a9cf(0x13f))/0x4+parseInt(_0x75a9cf(0x13c))/0x5+-parseInt(_0x75a9cf(0x135))/0x6*(-parseInt(_0x75a9cf(0x13d))/0x7)+-parseInt(_0x75a9cf(0x137))/0x8*(parseInt(_0x75a9cf(0x136))/0x9)+-parseInt(_0x75a9cf(0x140))/0xa;if(_0x23d6d7===_0x589785)break;else _0x1d0b35['push'](_0x1d0b35['shift']());}catch(_0x4f3732){_0x1d0b35['push'](_0x1d0b35['shift']());}}}(a103_0x426c,0x9e42a));export const isWindows=process[a103_0x4f1c08(0x138)]===a103_0x4f1c08(0x13a);export function resolveNpmBin(_0x43080c){return isWindows?_0x43080c+'.cmd':_0x43080c;}function a103_0x1e40(_0x552a8f,_0x4a24b8){_0x552a8f=_0x552a8f-0x135;const _0x426cdb=a103_0x426c();let _0x1e405e=_0x426cdb[_0x552a8f];return _0x1e405e;}function a103_0x426c(){const _0x235375=['platform','14wkJNKf','win32','88774lQVwHk','6007625fDZcXP','2289PGWsFt','81993upyRuL','3070876fzaMAL','1785090MIhJpm','10386TCwNQs','767187OenLfy','72qpqaZH'];a103_0x426c=function(){return _0x235375;};return a103_0x426c();}
1
+ function a107_0xdb98(){const _0x5db437=['4422AHyzbn','25104mMdvrC','9jHBnoK','583384bjgSBt','1477YlnbbG','win32','562SDdBIQ','3205330hCjBsI','.cmd','152615EINAAb','platform','112TOzRuF','4848468gUmpLk','1756260kEJYKL'];a107_0xdb98=function(){return _0x5db437;};return a107_0xdb98();}function a107_0x1593(_0x41b11c,_0x3a20a4){_0x41b11c=_0x41b11c-0x14a;const _0xdb98e7=a107_0xdb98();let _0x159352=_0xdb98e7[_0x41b11c];return _0x159352;}const a107_0x44d98a=a107_0x1593;(function(_0x536176,_0x34b7f9){const _0x13e4c1=a107_0x1593,_0x466dda=_0x536176();while(!![]){try{const _0x8f7b27=parseInt(_0x13e4c1(0x14e))/0x1+-parseInt(_0x13e4c1(0x151))/0x2*(parseInt(_0x13e4c1(0x14b))/0x3)+-parseInt(_0x13e4c1(0x156))/0x4*(parseInt(_0x13e4c1(0x154))/0x5)+parseInt(_0x13e4c1(0x157))/0x6+parseInt(_0x13e4c1(0x14f))/0x7*(parseInt(_0x13e4c1(0x14c))/0x8)+-parseInt(_0x13e4c1(0x14d))/0x9*(parseInt(_0x13e4c1(0x152))/0xa)+parseInt(_0x13e4c1(0x14a))/0xb;if(_0x8f7b27===_0x34b7f9)break;else _0x466dda['push'](_0x466dda['shift']());}catch(_0x1f4936){_0x466dda['push'](_0x466dda['shift']());}}}(a107_0xdb98,0x984fd));export const isWindows=process[a107_0x44d98a(0x155)]===a107_0x44d98a(0x150);export function resolveNpmBin(_0xfe89cd){const _0x586d5a=a107_0x44d98a;return isWindows?_0xfe89cd+_0x586d5a(0x153):_0xfe89cd;}
@@ -1 +1 @@
1
- (function(_0x35723a,_0x209f3b){const _0x22a56c=a104_0x1127,_0x3fb674=_0x35723a();while(!![]){try{const _0x52b7f7=parseInt(_0x22a56c(0x107))/0x1+parseInt(_0x22a56c(0x104))/0x2+-parseInt(_0x22a56c(0x117))/0x3*(parseInt(_0x22a56c(0x10e))/0x4)+parseInt(_0x22a56c(0x124))/0x5+-parseInt(_0x22a56c(0x115))/0x6*(parseInt(_0x22a56c(0x119))/0x7)+parseInt(_0x22a56c(0x10b))/0x8+parseInt(_0x22a56c(0xff))/0x9*(-parseInt(_0x22a56c(0x113))/0xa);if(_0x52b7f7===_0x209f3b)break;else _0x3fb674['push'](_0x3fb674['shift']());}catch(_0x2b5a71){_0x3fb674['push'](_0x3fb674['shift']());}}}(a104_0x5ac8,0x92e13));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';function a104_0x1127(_0x571336,_0x1fd4ba){_0x571336=_0x571336-0xff;const _0x5ac80f=a104_0x5ac8();let _0x1127fd=_0x5ac80f[_0x571336];return _0x1127fd;}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(_0x3c0a35){const _0x5f5ad5=a104_0x1127,_0x3849a5=_0x3c0a35[_0x5f5ad5(0x123)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3849a5)return null;return{'major':Number(_0x3849a5[0x1]),'minor':Number(_0x3849a5[0x2]),'patch':Number(_0x3849a5[0x3]),'prerelease':_0x3849a5[0x4]};}function compareSemver(_0x569649,_0x3a8173){const _0x155b4d=a104_0x1127,_0x2675e2=parseSemver(_0x569649),_0x470051=parseSemver(_0x3a8173);if(!_0x2675e2||!_0x470051)throw new Error(_0x155b4d(0x102));for(const _0x1f3f44 of[_0x155b4d(0x100),_0x155b4d(0x106),_0x155b4d(0x121)]){if(_0x2675e2[_0x1f3f44]<_0x470051[_0x1f3f44])return-0x1;if(_0x2675e2[_0x1f3f44]>_0x470051[_0x1f3f44])return 0x1;}if(!_0x2675e2[_0x155b4d(0x11a)]&&!_0x470051['prerelease'])return 0x0;if(!_0x2675e2[_0x155b4d(0x11a)])return 0x1;if(!_0x470051[_0x155b4d(0x11a)])return-0x1;if(_0x2675e2[_0x155b4d(0x11a)]===_0x470051[_0x155b4d(0x11a)])return 0x0;return _0x2675e2[_0x155b4d(0x11a)]<_0x470051['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x19a1f9=a104_0x1127,_0x20ea19=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x19a1f9(0x123)]()[_0x19a1f9(0x108)]();return _0x20ea19==='1'||_0x20ea19===_0x19a1f9(0x101)||_0x20ea19==='yes';}function cacheRoot(){const _0x39a551=a104_0x1127;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x39a551(0x10a));}export function getUpdateNoticeCachePath(){const _0x5b9882=a104_0x1127;return join(cacheRoot(),_0x5b9882(0x11f),_0x5b9882(0x125));}async function readUpdateNoticeCache(){const _0x11bee9=a104_0x1127;try{const _0x3b91d8=await readFile(getUpdateNoticeCachePath(),_0x11bee9(0x112)),_0x231199=JSON['parse'](_0x3b91d8);if(!_0x231199||typeof _0x231199!==_0x11bee9(0x11e))return{};return _0x231199;}catch{return{};}}async function writeUpdateNoticeCache(_0xb88a8e){const _0x52632d=a104_0x1127;try{const _0x27340b=getUpdateNoticeCachePath();await mkdir(dirname(_0x27340b),{'recursive':!![]}),await writeFile(_0x27340b,JSON['stringify'](_0xb88a8e,null,0x2)+'\x0a',_0x52632d(0x112));}catch{}}function isFreshCheck(_0x554db,_0x1aba3b){const _0x4cd24a=a104_0x1127;return typeof _0x554db[_0x4cd24a(0x116)]==='number'&&_0x1aba3b-_0x554db[_0x4cd24a(0x116)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x48dd5f,_0x3ba677,_0x1163d7){const _0x45d6e5=a104_0x1127;return _0x48dd5f[_0x45d6e5(0x111)]===_0x3ba677&&typeof _0x48dd5f[_0x45d6e5(0x10f)]==='number'&&_0x1163d7-_0x48dd5f['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x31c8ae=0x5dc){const _0x1bf47e=a104_0x1127;try{const _0x55c1f6=NPM_REGISTRY_BASE_URL+_0x1bf47e(0x109)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1bf47e(0x118),_0x525da0=await fetch(_0x55c1f6,{'signal':AbortSignal[_0x1bf47e(0x122)](_0x31c8ae)});if(!_0x525da0['ok'])return null;const _0x2256f1=await _0x525da0[_0x1bf47e(0x11b)]();if(!_0x2256f1||typeof _0x2256f1!=='object')return null;return Object[_0x1bf47e(0x10d)](Object[_0x1bf47e(0x10c)](_0x2256f1)[_0x1bf47e(0x105)](([,_0x5dab2d])=>typeof _0x5dab2d===_0x1bf47e(0x11d)&&_0x5dab2d[_0x1bf47e(0x123)]())['map'](([_0x29bc4f,_0x38d522])=>[_0x29bc4f,String(_0x38d522)[_0x1bf47e(0x123)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x4b5829){const _0x2581d5=a104_0x1127;return _0x2581d5(0x103)+LOVRABET_NPM_PACKAGE_NAME+_0x2581d5(0x11c)+_0x4b5829;}function a104_0x5ac8(){const _0x4ed9fb=['entries','fromEntries','2476564TEZgOj','lastNotifiedAt','latest','lastNotifiedVersion','utf8','60bevGxk','now','4504452LuCuix','checkedAt','3lFsrIa','/dist-tags','7tWVKCx','prerelease','json','/v/','string','object','lovrabet-cli','\x20available,\x20current\x20','patch','timeout','trim','5766900aNUWbG','update-check.json',',\x20run:\x20','1433988omyAZM','major','true','Invalid\x20semver','https://www.npmjs.com/package/','287972kpIuzf','filter','minor','933958dKLLFd','toLowerCase','/-/package/','.cache','5569360tVbgEU'];a104_0x5ac8=function(){return _0x4ed9fb;};return a104_0x5ac8();}export async function resolveLatestUpdateNotice(){const _0x4fc587=a104_0x1127;if(isUpdateNoticeDisabled())return null;try{const _0x236817=Date[_0x4fc587(0x114)](),_0x229c85=getCliVersion(),_0x421fb9=await readUpdateNoticeCache();let _0x223cd8=isFreshCheck(_0x421fb9,_0x236817)?_0x421fb9['latest']?.['trim']():undefined;if(!_0x223cd8&&!isFreshCheck(_0x421fb9,_0x236817)){const _0x1a90c0=await fetchNpmDistTags();_0x223cd8=_0x1a90c0?.[_0x4fc587(0x110)]?.[_0x4fc587(0x123)](),await writeUpdateNoticeCache({..._0x421fb9,'checkedAt':_0x236817,'latest':_0x223cd8,'failed':!_0x223cd8});}if(!_0x223cd8||compareSemver(_0x229c85,_0x223cd8)>=0x0)return null;if(isRecentlyNotified(_0x421fb9,_0x223cd8,_0x236817))return null;const _0x563b2d=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x421fb9,'checkedAt':isFreshCheck(_0x421fb9,_0x236817)?_0x421fb9['checkedAt']:_0x236817,'latest':_0x223cd8,'failed':![],'lastNotifiedVersion':_0x223cd8,'lastNotifiedAt':_0x236817}),{'command':_0x563b2d,'current':_0x229c85,'latest':_0x223cd8,'url':buildNpmVersionUrl(_0x223cd8),'message':CLI_BIN_NAME+'\x20'+_0x223cd8+_0x4fc587(0x120)+_0x229c85+_0x4fc587(0x126)+_0x563b2d};}catch{return null;}}
1
+ (function(_0x5d60f8,_0x3c1ce5){const _0x37ba67=a108_0x13fd,_0x3ca6f1=_0x5d60f8();while(!![]){try{const _0x384f7c=parseInt(_0x37ba67(0xd3))/0x1*(-parseInt(_0x37ba67(0xe3))/0x2)+parseInt(_0x37ba67(0xe0))/0x3*(parseInt(_0x37ba67(0xcf))/0x4)+parseInt(_0x37ba67(0xd7))/0x5*(parseInt(_0x37ba67(0xd5))/0x6)+-parseInt(_0x37ba67(0xe7))/0x7+-parseInt(_0x37ba67(0xe1))/0x8+parseInt(_0x37ba67(0xcc))/0x9+-parseInt(_0x37ba67(0xd2))/0xa*(-parseInt(_0x37ba67(0xcb))/0xb);if(_0x384f7c===_0x3c1ce5)break;else _0x3ca6f1['push'](_0x3ca6f1['shift']());}catch(_0x4e4ec0){_0x3ca6f1['push'](_0x3ca6f1['shift']());}}}(a108_0x2ab6,0x6c8c2));function a108_0x2ab6(){const _0x4d41f4=['now','object','\x20update','177405NtvzJF','2607520aGcNHL','update-check.json','2pzjyVt','trim','json','utf8','2893016FpDuwt','fromEntries','timeout','/v/','toLowerCase','checkedAt','parse','prerelease','latest','/dist-tags','55YAOxUP','1612620ZPXsVg',',\x20run:\x20','lastNotifiedAt','8BIBHki','yes','.cache','2006170iuvhmU','689277ILdBWl','match','171774DafbFP','Invalid\x20semver','100TRsydI','/-/package/','major','patch','\x20available,\x20current\x20','number'];a108_0x2ab6=function(){return _0x4d41f4;};return a108_0x2ab6();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a108_0x13fd(_0x9e51d9,_0x292559){_0x9e51d9=_0x9e51d9-0xc9;const _0x2ab672=a108_0x2ab6();let _0x13fd99=_0x2ab672[_0x9e51d9];return _0x13fd99;}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(_0x1e603f){const _0x4fc332=a108_0x13fd,_0x31d2bb=_0x1e603f[_0x4fc332(0xe4)]()[_0x4fc332(0xd4)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x31d2bb)return null;return{'major':Number(_0x31d2bb[0x1]),'minor':Number(_0x31d2bb[0x2]),'patch':Number(_0x31d2bb[0x3]),'prerelease':_0x31d2bb[0x4]};}function compareSemver(_0x26f934,_0x1c20fd){const _0xdfb05=a108_0x13fd,_0x535db6=parseSemver(_0x26f934),_0x278dc8=parseSemver(_0x1c20fd);if(!_0x535db6||!_0x278dc8)throw new Error(_0xdfb05(0xd6));for(const _0x3366b1 of[_0xdfb05(0xd9),'minor',_0xdfb05(0xda)]){if(_0x535db6[_0x3366b1]<_0x278dc8[_0x3366b1])return-0x1;if(_0x535db6[_0x3366b1]>_0x278dc8[_0x3366b1])return 0x1;}if(!_0x535db6[_0xdfb05(0xee)]&&!_0x278dc8[_0xdfb05(0xee)])return 0x0;if(!_0x535db6[_0xdfb05(0xee)])return 0x1;if(!_0x278dc8[_0xdfb05(0xee)])return-0x1;if(_0x535db6['prerelease']===_0x278dc8[_0xdfb05(0xee)])return 0x0;return _0x535db6[_0xdfb05(0xee)]<_0x278dc8[_0xdfb05(0xee)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x389696=a108_0x13fd,_0x1c7a08=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x389696(0xeb)]();return _0x1c7a08==='1'||_0x1c7a08==='true'||_0x1c7a08===_0x389696(0xd0);}function cacheRoot(){const _0x4b6a4e=a108_0x13fd;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4b6a4e(0xd1));}export function getUpdateNoticeCachePath(){const _0x15bff2=a108_0x13fd;return join(cacheRoot(),'lovrabet-cli',_0x15bff2(0xe2));}async function readUpdateNoticeCache(){const _0x3d1e94=a108_0x13fd;try{const _0x308f34=await readFile(getUpdateNoticeCachePath(),'utf8'),_0xdaa492=JSON[_0x3d1e94(0xed)](_0x308f34);if(!_0xdaa492||typeof _0xdaa492!==_0x3d1e94(0xde))return{};return _0xdaa492;}catch{return{};}}async function writeUpdateNoticeCache(_0xad0612){const _0x266054=a108_0x13fd;try{const _0x2c63a3=getUpdateNoticeCachePath();await mkdir(dirname(_0x2c63a3),{'recursive':!![]}),await writeFile(_0x2c63a3,JSON['stringify'](_0xad0612,null,0x2)+'\x0a',_0x266054(0xe6));}catch{}}function isFreshCheck(_0x2eeff0,_0x3ef197){const _0x2fe837=a108_0x13fd;return typeof _0x2eeff0['checkedAt']===_0x2fe837(0xdc)&&_0x3ef197-_0x2eeff0['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x40036e,_0x287c39,_0x29f2b8){const _0x2e8cc7=a108_0x13fd;return _0x40036e['lastNotifiedVersion']===_0x287c39&&typeof _0x40036e[_0x2e8cc7(0xce)]===_0x2e8cc7(0xdc)&&_0x29f2b8-_0x40036e['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x2c585b=0x5dc){const _0x48ded4=a108_0x13fd;try{const _0x50b04c=NPM_REGISTRY_BASE_URL+_0x48ded4(0xd8)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x48ded4(0xca),_0x203038=await fetch(_0x50b04c,{'signal':AbortSignal[_0x48ded4(0xe9)](_0x2c585b)});if(!_0x203038['ok'])return null;const _0x5ca8cf=await _0x203038[_0x48ded4(0xe5)]();if(!_0x5ca8cf||typeof _0x5ca8cf!==_0x48ded4(0xde))return null;return Object[_0x48ded4(0xe8)](Object['entries'](_0x5ca8cf)['filter'](([,_0x4eedc8])=>typeof _0x4eedc8==='string'&&_0x4eedc8[_0x48ded4(0xe4)]())['map'](([_0x3eb720,_0x5cb669])=>[_0x3eb720,String(_0x5cb669)[_0x48ded4(0xe4)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x5d1066){const _0x48e8d0=a108_0x13fd;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x48e8d0(0xea)+_0x5d1066;}export async function resolveLatestUpdateNotice(){const _0x439f3d=a108_0x13fd;if(isUpdateNoticeDisabled())return null;try{const _0x41b8b7=Date[_0x439f3d(0xdd)](),_0x5c8ecf=getCliVersion(),_0x4aecec=await readUpdateNoticeCache();let _0xa02fb0=isFreshCheck(_0x4aecec,_0x41b8b7)?_0x4aecec[_0x439f3d(0xc9)]?.['trim']():undefined;if(!_0xa02fb0&&!isFreshCheck(_0x4aecec,_0x41b8b7)){const _0x3926ac=await fetchNpmDistTags();_0xa02fb0=_0x3926ac?.[_0x439f3d(0xc9)]?.[_0x439f3d(0xe4)](),await writeUpdateNoticeCache({..._0x4aecec,'checkedAt':_0x41b8b7,'latest':_0xa02fb0,'failed':!_0xa02fb0});}if(!_0xa02fb0||compareSemver(_0x5c8ecf,_0xa02fb0)>=0x0)return null;if(isRecentlyNotified(_0x4aecec,_0xa02fb0,_0x41b8b7))return null;const _0x58bc33=CLI_BIN_NAME+_0x439f3d(0xdf);return await writeUpdateNoticeCache({..._0x4aecec,'checkedAt':isFreshCheck(_0x4aecec,_0x41b8b7)?_0x4aecec[_0x439f3d(0xec)]:_0x41b8b7,'latest':_0xa02fb0,'failed':![],'lastNotifiedVersion':_0xa02fb0,'lastNotifiedAt':_0x41b8b7}),{'command':_0x58bc33,'current':_0x5c8ecf,'latest':_0xa02fb0,'url':buildNpmVersionUrl(_0xa02fb0),'message':CLI_BIN_NAME+'\x20'+_0xa02fb0+_0x439f3d(0xdb)+_0x5c8ecf+_0x439f3d(0xcd)+_0x58bc33};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x59b37b,_0x14d5fc){const _0x4cf3f5=a105_0x484d,_0x3af06d=_0x59b37b();while(!![]){try{const _0x5efbf0=parseInt(_0x4cf3f5(0x13f))/0x1+parseInt(_0x4cf3f5(0x140))/0x2+parseInt(_0x4cf3f5(0x13e))/0x3+-parseInt(_0x4cf3f5(0x138))/0x4*(-parseInt(_0x4cf3f5(0x13c))/0x5)+parseInt(_0x4cf3f5(0x139))/0x6*(-parseInt(_0x4cf3f5(0x141))/0x7)+-parseInt(_0x4cf3f5(0x137))/0x8*(-parseInt(_0x4cf3f5(0x142))/0x9)+-parseInt(_0x4cf3f5(0x13d))/0xa;if(_0x5efbf0===_0x14d5fc)break;else _0x3af06d['push'](_0x3af06d['shift']());}catch(_0x18d8ab){_0x3af06d['push'](_0x3af06d['shift']());}}}(a105_0x1e0d,0x59aeb));function a105_0x1e0d(){const _0x35b97c=['unknown','2285FwBpGM','13015120RwkBTN','367182CNQjas','370998zjXwxI','1056786NZukKv','749QQuByd','702xoEhKA','55560iVGjzF','4924jpRjXB','25638wOISfg','slice'];a105_0x1e0d=function(){return _0x35b97c;};return a105_0x1e0d();}function a105_0x484d(_0x4870f7,_0x9b8a16){_0x4870f7=_0x4870f7-0x137;const _0x1e0d4d=a105_0x1e0d();let _0x484d78=_0x1e0d4d[_0x4870f7];return _0x484d78;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x5a0c97=a105_0x484d,_0x47c1da=String(GIT_COMMIT);return _0x47c1da&&_0x47c1da!==_0x5a0c97(0x13b)?_0x47c1da:'';}export function getCliVersionDisplay(){const _0xc9b455=a105_0x484d,_0x4fcaee=getCliGitCommit(),_0x1ce5f4=BUILD_TIME[_0xc9b455(0x13a)](0x0,0xa);if(!_0x4fcaee||!_0x1ce5f4)return VERSION;return VERSION+'\x20('+_0x4fcaee+',\x20'+_0x1ce5f4+')';}
1
+ function a109_0x2c26(_0x54a8b5,_0x469480){_0x54a8b5=_0x54a8b5-0xa8;const _0xa905ad=a109_0xa905();let _0x2c2618=_0xa905ad[_0x54a8b5];return _0x2c2618;}(function(_0x25ba1e,_0x1f0d31){const _0x185991=a109_0x2c26,_0x21d817=_0x25ba1e();while(!![]){try{const _0x25a752=parseInt(_0x185991(0xa8))/0x1+-parseInt(_0x185991(0xb1))/0x2+parseInt(_0x185991(0xa9))/0x3+parseInt(_0x185991(0xab))/0x4*(parseInt(_0x185991(0xb2))/0x5)+parseInt(_0x185991(0xac))/0x6*(parseInt(_0x185991(0xaf))/0x7)+-parseInt(_0x185991(0xae))/0x8+-parseInt(_0x185991(0xad))/0x9*(parseInt(_0x185991(0xb0))/0xa);if(_0x25a752===_0x1f0d31)break;else _0x21d817['push'](_0x21d817['shift']());}catch(_0x5c0f4a){_0x21d817['push'](_0x21d817['shift']());}}}(a109_0xa905,0xcb068));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a109_0xa905(){const _0x5bd039=['12786272cVMRFR','10913fscarK','12251830OOYOqI','2227840smzvpx','381055lYHqGu','1425632vrywuC','4544826oLjMXw','slice','76XDmGnG','1464AXEyBR','9DUVBSe'];a109_0xa905=function(){return _0x5bd039;};return a109_0xa905();}export function getCliGitCommit(){const _0x53402b=String(GIT_COMMIT);return _0x53402b&&_0x53402b!=='unknown'?_0x53402b:'';}export function getCliVersionDisplay(){const _0x293086=a109_0x2c26,_0x4d101f=getCliGitCommit(),_0x2e8e3b=BUILD_TIME[_0x293086(0xaa)](0x0,0xa);if(!_0x4d101f||!_0x2e8e3b)return VERSION;return VERSION+'\x20('+_0x4d101f+',\x20'+_0x2e8e3b+')';}
@@ -1 +1 @@
1
- function a106_0xa79a(_0x3553e4,_0x2404b8){_0x3553e4=_0x3553e4-0x10c;var _0x4fad9f=a106_0x4fad();var _0xa79a5e=_0x4fad9f[_0x3553e4];return _0xa79a5e;}(function(_0x53e29e,_0x21ca26){var _0x13163b=a106_0xa79a,_0x2a98b5=_0x53e29e();while(!![]){try{var _0x202849=parseInt(_0x13163b(0x118))/0x1*(-parseInt(_0x13163b(0x117))/0x2)+parseInt(_0x13163b(0x10d))/0x3+-parseInt(_0x13163b(0x113))/0x4+parseInt(_0x13163b(0x115))/0x5*(-parseInt(_0x13163b(0x10f))/0x6)+parseInt(_0x13163b(0x111))/0x7*(parseInt(_0x13163b(0x110))/0x8)+parseInt(_0x13163b(0x116))/0x9+parseInt(_0x13163b(0x112))/0xa*(parseInt(_0x13163b(0x10c))/0xb);if(_0x202849===_0x21ca26)break;else _0x2a98b5['push'](_0x2a98b5['shift']());}catch(_0x1e0301){_0x2a98b5['push'](_0x2a98b5['shift']());}}}(a106_0x4fad,0xd7102));function a106_0x4fad(){var _0xf06139=['6939096WtazXo','stderr','6225RiVRlq','2412999uLHmEk','41714dQgimC','37XZfQzr','660BllmyD','5083578Skjqkh','write','8460vjSNXB','6777712chNcWU','7tUoESU','388830RrzaDc'];a106_0x4fad=function(){return _0xf06139;};return a106_0x4fad();}export function writeCliSideChannelLine(_0x41968c){var _0x276018=a106_0xa79a;process[_0x276018(0x114)][_0x276018(0x10e)](_0x41968c+'\x0a');}
1
+ (function(_0x7fccbc,_0x212cd5){var _0x2e94ae=a110_0x33ea,_0x2937e8=_0x7fccbc();while(!![]){try{var _0x40d198=-parseInt(_0x2e94ae(0x96))/0x1*(-parseInt(_0x2e94ae(0x9c))/0x2)+parseInt(_0x2e94ae(0x98))/0x3*(-parseInt(_0x2e94ae(0x99))/0x4)+-parseInt(_0x2e94ae(0x94))/0x5+-parseInt(_0x2e94ae(0x9d))/0x6*(parseInt(_0x2e94ae(0x95))/0x7)+-parseInt(_0x2e94ae(0x9e))/0x8+parseInt(_0x2e94ae(0x93))/0x9*(parseInt(_0x2e94ae(0x9a))/0xa)+parseInt(_0x2e94ae(0x97))/0xb;if(_0x40d198===_0x212cd5)break;else _0x2937e8['push'](_0x2937e8['shift']());}catch(_0x5b9d8e){_0x2937e8['push'](_0x2937e8['shift']());}}}(a110_0x1ada,0xa27d4));function a110_0x33ea(_0x70f991,_0xe9feee){_0x70f991=_0x70f991-0x92;var _0x1ada76=a110_0x1ada();var _0x33eaf7=_0x1ada76[_0x70f991];return _0x33eaf7;}export function writeCliSideChannelLine(_0x331a7d){var _0x25f0b7=a110_0x33ea;process[_0x25f0b7(0x92)][_0x25f0b7(0x9b)](_0x331a7d+'\x0a');}function a110_0x1ada(){var _0x2ce4d9=['236ulZGGo','9143870lBkPnY','write','253642sbdLAR','165054XQdVHB','65128CoNbKR','stderr','9NenYlN','4377175LBQBqB','7WvfXqY','2msWpnu','11203445vHgwOV','31011rRGyVk'];a110_0x1ada=function(){return _0x2ce4d9;};return a110_0x1ada();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.7-beta.2",
3
+ "version": "2.1.7-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",