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

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 (112) 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 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  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 -1
  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/service-order.js +1 -1
  87. package/lib/framework/types.js +1 -1
  88. package/lib/generated/build-info.js +1 -1
  89. package/lib/help.js +1 -1
  90. package/lib/skills/npx-skills-add.js +1 -1
  91. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  92. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  93. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  94. package/lib/skills/runtime-skill-sync/links.js +1 -1
  95. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  96. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  97. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  98. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  99. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  100. package/lib/skills/runtime-skill-sync/push.js +1 -1
  101. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  103. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  104. package/lib/skills/runtime-skill-sync.js +1 -1
  105. package/lib/utils/apply-jq-filter.js +1 -1
  106. package/lib/utils/logger.js +1 -1
  107. package/lib/utils/params.js +1 -1
  108. package/lib/utils/platform.js +1 -1
  109. package/lib/utils/update-notice.js +1 -1
  110. package/lib/utils/version.js +1 -1
  111. package/lib/utils/write-cli-side-channel.js +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4929fa,_0x482129){const _0x1208f3=a95_0x2aa1,_0x553aaa=_0x4929fa();while(!![]){try{const _0x209026=-parseInt(_0x1208f3(0x1ef))/0x1*(parseInt(_0x1208f3(0x1d6))/0x2)+-parseInt(_0x1208f3(0x1f6))/0x3+parseInt(_0x1208f3(0x1db))/0x4*(parseInt(_0x1208f3(0x1f7))/0x5)+parseInt(_0x1208f3(0x1df))/0x6+parseInt(_0x1208f3(0x1de))/0x7+-parseInt(_0x1208f3(0x1fb))/0x8*(-parseInt(_0x1208f3(0x1f2))/0x9)+-parseInt(_0x1208f3(0x1e8))/0xa*(-parseInt(_0x1208f3(0x1ea))/0xb);if(_0x209026===_0x482129)break;else _0x553aaa['push'](_0x553aaa['shift']());}catch(_0x19c7de){_0x553aaa['push'](_0x553aaa['shift']());}}}(a95_0x201c,0x7ea5c));import{readFileSync,readdirSync,realpathSync}from'node:fs';function a95_0x2aa1(_0xf672ad,_0x264b1e){_0xf672ad=_0xf672ad-0x1d4;const _0x201c80=a95_0x201c();let _0x2aa150=_0x201c80[_0xf672ad];return _0x2aa150;}function a95_0x201c(){const _0x43e794=['validation','2212392YONoGa','1308235wkebvC','values','bytes','from','6920UGlSpa','set','isFile','isDirectory','Skill\x20file\x20sha256\x20is\x20invalid:\x20','test','size','158972PRCNTd','startsWith','isSafeInteger','isSymbolicLink','utf8','8ccHpyC','has','Duplicate\x20Skill\x20file\x20path:\x20','1481935KyNMHW','969774zyVSNi','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','push','isArray','string','object','name','sort','10LYjzZK','Skill\x20file\x20size\x20is\x20invalid:\x20','3125551aGSlLq','content','toString','length','replace','2ZQDCzk','compare','path','2439rxcdWv','Skill\x20file\x20path\x20must\x20be\x20text.','includes'];a95_0x201c=function(){return _0x43e794;};return a95_0x201c();}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(_0x21adf9){const _0x32d7dc=a95_0x2aa1;return _0x21adf9[_0x32d7dc(0x1f9)]??Buffer[_0x32d7dc(0x1fa)](_0x21adf9[_0x32d7dc(0x1eb)]??'',_0x32d7dc(0x1da));}export function fileText(_0x3b88f4){const _0x4dac03=a95_0x2aa1;return fileContent(_0x3b88f4)[_0x4dac03(0x1ec)](_0x4dac03(0x1da));}export function normalizeLocalFiles(_0x2c5264){const _0x45dfd5=a95_0x2aa1;if(!Array[_0x45dfd5(0x1e3)](_0x2c5264)||_0x2c5264['length']===0x0)return[];const _0x1a73c4=new Map();for(const _0x59898d of _0x2c5264){if(!_0x59898d||typeof _0x59898d!=='object'||typeof _0x59898d[_0x45dfd5(0x1f1)]!==_0x45dfd5(0x1e4))throw CliErrors['validation'](_0x45dfd5(0x1f3));const _0x4bbb02=normalizeSkillRelativePath(_0x59898d['path']);if(_0x1a73c4[_0x45dfd5(0x1dc)](_0x4bbb02))throw CliErrors[_0x45dfd5(0x1f5)](_0x45dfd5(0x1dd)+_0x4bbb02);if(_0x59898d[_0x45dfd5(0x1f9)]!==undefined&&!Buffer['isBuffer'](_0x59898d[_0x45dfd5(0x1f9)]))throw CliErrors['validation'](_0x45dfd5(0x1e1)+_0x4bbb02);if(_0x59898d[_0x45dfd5(0x1f9)]===undefined&&typeof _0x59898d['content']!=='string')throw CliErrors[_0x45dfd5(0x1f5)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x4bbb02);const _0x2d07b0=fileContent(_0x59898d);_0x1a73c4[_0x45dfd5(0x1fc)](_0x4bbb02,{'path':_0x4bbb02,'bytes':_0x2d07b0});}return Array[_0x45dfd5(0x1fa)](_0x1a73c4[_0x45dfd5(0x1f8)]())[_0x45dfd5(0x1e7)](compareSkillFiles);}export function normalizeManifestFiles(_0x321b71){const _0x146365=a95_0x2aa1;if(!Array['isArray'](_0x321b71)||_0x321b71[_0x146365(0x1ed)]===0x0)return[];const _0x424cd7=new Map();for(const _0x3bc3c0 of _0x321b71){if(!_0x3bc3c0||typeof _0x3bc3c0!==_0x146365(0x1e5)||typeof _0x3bc3c0[_0x146365(0x1f1)]!==_0x146365(0x1e4))throw CliErrors[_0x146365(0x1f5)](_0x146365(0x1f3));const _0x1803ba=normalizeSkillRelativePath(_0x3bc3c0[_0x146365(0x1f1)]);if(_0x424cd7[_0x146365(0x1dc)](_0x1803ba))throw CliErrors[_0x146365(0x1f5)](_0x146365(0x1dd)+_0x1803ba);if(!isSha256Hex(_0x3bc3c0['sha256']))throw CliErrors['validation'](_0x146365(0x1ff)+_0x1803ba);if(!Number[_0x146365(0x1d8)](_0x3bc3c0[_0x146365(0x1d5)])||_0x3bc3c0[_0x146365(0x1d5)]<0x0)throw CliErrors['validation'](_0x146365(0x1e9)+_0x1803ba);_0x424cd7[_0x146365(0x1fc)](_0x1803ba,{'path':_0x1803ba,'sha256':_0x3bc3c0['sha256']['toLowerCase'](),'size':_0x3bc3c0[_0x146365(0x1d5)]});}return Array['from'](_0x424cd7[_0x146365(0x1f8)]())[_0x146365(0x1e7)](compareSkillFiles);}export function scanSkillDirectory(_0x1648ae){const _0x1670d1=realpathSync(_0x1648ae),_0xe8e19c=[];function _0x568f2c(_0x1e10af){const _0x2d755f=a95_0x2aa1,_0x28467b=readdirSync(_0x1e10af,{'withFileTypes':!![]})[_0x2d755f(0x1e7)]((_0x23b21a,_0xbf24bb)=>_0x23b21a[_0x2d755f(0x1e6)]['localeCompare'](_0xbf24bb['name']));for(const _0x2a8283 of _0x28467b){if(_0x2a8283[_0x2d755f(0x1fe)]()&&IGNORED_DIR_NAMES[_0x2d755f(0x1dc)](_0x2a8283[_0x2d755f(0x1e6)]))continue;if(IGNORED_FILE_NAMES[_0x2d755f(0x1dc)](_0x2a8283[_0x2d755f(0x1e6)]))continue;const _0x4fc9b8=resolve(_0x1e10af,_0x2a8283[_0x2d755f(0x1e6)]);if(_0x2a8283[_0x2d755f(0x1d9)]())throw CliErrors[_0x2d755f(0x1f5)](_0x2d755f(0x1e0)+_0x4fc9b8);const _0x10816b=toPosixPath(relative(_0x1670d1,_0x4fc9b8));if(_0x2a8283[_0x2d755f(0x1fe)]()){_0x568f2c(_0x4fc9b8);continue;}if(!_0x2a8283[_0x2d755f(0x1fd)]())continue;validateSkillRelativePath(_0x10816b);const _0x19a91e=readFileSync(_0x4fc9b8);_0xe8e19c[_0x2d755f(0x1e2)]({'path':_0x10816b,'bytes':_0x19a91e});}}return _0x568f2c(_0x1670d1),normalizeLocalFiles(_0xe8e19c);}export function compareSkillFiles(_0x129192,_0xe5d9ae){const _0x5cb5a2=a95_0x2aa1;if(_0x129192[_0x5cb5a2(0x1f1)]===SKILL_FILE)return _0xe5d9ae['path']===SKILL_FILE?0x0:-0x1;if(_0xe5d9ae[_0x5cb5a2(0x1f1)]===SKILL_FILE)return 0x1;return Buffer[_0x5cb5a2(0x1f0)](Buffer[_0x5cb5a2(0x1fa)](_0x129192[_0x5cb5a2(0x1f1)],'utf8'),Buffer['from'](_0xe5d9ae[_0x5cb5a2(0x1f1)],_0x5cb5a2(0x1da)));}export function normalizeSkillRelativePath(_0x4e708f){const _0x2c73d7=toPosixPath(_0x4e708f['trim']());return validateSkillRelativePath(_0x2c73d7),_0x2c73d7;}export function validateSkillRelativePath(_0x1898fc){const _0x2499a4=a95_0x2aa1;if(!_0x1898fc||_0x1898fc[_0x2499a4(0x1d7)]('/')||_0x1898fc[_0x2499a4(0x1f4)]('//'))throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x1898fc);for(const _0xbd8068 of _0x1898fc['split']('/')){if(!_0xbd8068||_0xbd8068==='.'||_0xbd8068==='..')throw CliErrors[_0x2499a4(0x1f5)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x1898fc);}}export function toPosixPath(_0x2d699c){const _0x22a77d=a95_0x2aa1;return _0x2d699c[_0x22a77d(0x1ee)](/\\/g,'/');}export function isSha256Hex(_0x332078){const _0x30008d=a95_0x2aa1;return typeof _0x332078===_0x30008d(0x1e4)&&/^[a-fA-F0-9]{64}$/[_0x30008d(0x1d4)](_0x332078);}
1
+ (function(_0x2b3ab1,_0x56f1de){const _0xee546=a95_0x1503,_0x1e6a5f=_0x2b3ab1();while(!![]){try{const _0xf8eb2f=-parseInt(_0xee546(0x11c))/0x1*(-parseInt(_0xee546(0x119))/0x2)+-parseInt(_0xee546(0x12a))/0x3+-parseInt(_0xee546(0x10d))/0x4+parseInt(_0xee546(0x128))/0x5+parseInt(_0xee546(0x121))/0x6*(parseInt(_0xee546(0x120))/0x7)+parseInt(_0xee546(0x122))/0x8*(-parseInt(_0xee546(0x115))/0x9)+parseInt(_0xee546(0x110))/0xa;if(_0xf8eb2f===_0x56f1de)break;else _0x1e6a5f['push'](_0x1e6a5f['shift']());}catch(_0x3535b2){_0x1e6a5f['push'](_0x1e6a5f['shift']());}}}(a95_0x1cd9,0x202f2));import{readFileSync,readdirSync,realpathSync}from'node:fs';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(_0x10263d){const _0x45a838=a95_0x1503;return _0x10263d['bytes']??Buffer['from'](_0x10263d[_0x45a838(0x127)]??'',_0x45a838(0x106));}export function fileText(_0x222cbe){const _0x28e309=a95_0x1503;return fileContent(_0x222cbe)['toString'](_0x28e309(0x106));}function a95_0x1503(_0x5af16b,_0x1458a0){_0x5af16b=_0x5af16b-0xff;const _0x1cd98b=a95_0x1cd9();let _0x1503c4=_0x1cd98b[_0x5af16b];return _0x1503c4;}export function normalizeLocalFiles(_0x14511d){const _0x51365e=a95_0x1503;if(!Array[_0x51365e(0x104)](_0x14511d)||_0x14511d[_0x51365e(0x11e)]===0x0)return[];const _0x2b179d=new Map();for(const _0x3a1bcb of _0x14511d){if(!_0x3a1bcb||typeof _0x3a1bcb!==_0x51365e(0x10b)||typeof _0x3a1bcb[_0x51365e(0x111)]!==_0x51365e(0x101))throw CliErrors[_0x51365e(0x124)](_0x51365e(0x11f));const _0x4c9cf7=normalizeSkillRelativePath(_0x3a1bcb[_0x51365e(0x111)]);if(_0x2b179d[_0x51365e(0x10e)](_0x4c9cf7))throw CliErrors[_0x51365e(0x124)](_0x51365e(0x108)+_0x4c9cf7);if(_0x3a1bcb[_0x51365e(0x114)]!==undefined&&!Buffer[_0x51365e(0x117)](_0x3a1bcb[_0x51365e(0x114)]))throw CliErrors[_0x51365e(0x124)](_0x51365e(0x112)+_0x4c9cf7);if(_0x3a1bcb[_0x51365e(0x114)]===undefined&&typeof _0x3a1bcb[_0x51365e(0x127)]!==_0x51365e(0x101))throw CliErrors[_0x51365e(0x124)](_0x51365e(0x11a)+_0x4c9cf7);const _0x4abe47=fileContent(_0x3a1bcb);_0x2b179d[_0x51365e(0x11d)](_0x4c9cf7,{'path':_0x4c9cf7,'bytes':_0x4abe47});}return Array[_0x51365e(0x125)](_0x2b179d[_0x51365e(0x10f)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x3f6d6d){const _0x48fccf=a95_0x1503;if(!Array[_0x48fccf(0x104)](_0x3f6d6d)||_0x3f6d6d[_0x48fccf(0x11e)]===0x0)return[];const _0x28e5d3=new Map();for(const _0x52c187 of _0x3f6d6d){if(!_0x52c187||typeof _0x52c187!==_0x48fccf(0x10b)||typeof _0x52c187[_0x48fccf(0x111)]!==_0x48fccf(0x101))throw CliErrors[_0x48fccf(0x124)](_0x48fccf(0x11f));const _0x11af1a=normalizeSkillRelativePath(_0x52c187[_0x48fccf(0x111)]);if(_0x28e5d3[_0x48fccf(0x10e)](_0x11af1a))throw CliErrors[_0x48fccf(0x124)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x11af1a);if(!isSha256Hex(_0x52c187[_0x48fccf(0x102)]))throw CliErrors[_0x48fccf(0x124)](_0x48fccf(0x107)+_0x11af1a);if(!Number['isSafeInteger'](_0x52c187['size'])||_0x52c187[_0x48fccf(0x116)]<0x0)throw CliErrors[_0x48fccf(0x124)](_0x48fccf(0xff)+_0x11af1a);_0x28e5d3['set'](_0x11af1a,{'path':_0x11af1a,'sha256':_0x52c187[_0x48fccf(0x102)][_0x48fccf(0x113)](),'size':_0x52c187[_0x48fccf(0x116)]});}return Array[_0x48fccf(0x125)](_0x28e5d3['values']())[_0x48fccf(0x103)](compareSkillFiles);}export function scanSkillDirectory(_0x1182ff){const _0x2c0b0f=realpathSync(_0x1182ff),_0x48459d=[];function _0x149e96(_0x1bd125){const _0x1cf245=a95_0x1503,_0x3f2bc1=readdirSync(_0x1bd125,{'withFileTypes':!![]})[_0x1cf245(0x103)]((_0x5e739f,_0x41c618)=>_0x5e739f['name']['localeCompare'](_0x41c618['name']));for(const _0x30b99c of _0x3f2bc1){if(_0x30b99c['isDirectory']()&&IGNORED_DIR_NAMES[_0x1cf245(0x10e)](_0x30b99c[_0x1cf245(0x118)]))continue;if(IGNORED_FILE_NAMES[_0x1cf245(0x10e)](_0x30b99c['name']))continue;const _0x33ecbb=resolve(_0x1bd125,_0x30b99c['name']);if(_0x30b99c['isSymbolicLink']())throw CliErrors['validation']('Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20'+_0x33ecbb);const _0x3b2200=toPosixPath(relative(_0x2c0b0f,_0x33ecbb));if(_0x30b99c[_0x1cf245(0x123)]()){_0x149e96(_0x33ecbb);continue;}if(!_0x30b99c[_0x1cf245(0x10c)]())continue;validateSkillRelativePath(_0x3b2200);const _0x42ecfe=readFileSync(_0x33ecbb);_0x48459d['push']({'path':_0x3b2200,'bytes':_0x42ecfe});}}return _0x149e96(_0x2c0b0f),normalizeLocalFiles(_0x48459d);}export function compareSkillFiles(_0x355d7c,_0x400215){const _0x263515=a95_0x1503;if(_0x355d7c[_0x263515(0x111)]===SKILL_FILE)return _0x400215['path']===SKILL_FILE?0x0:-0x1;if(_0x400215['path']===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x263515(0x125)](_0x355d7c[_0x263515(0x111)],'utf8'),Buffer['from'](_0x400215[_0x263515(0x111)],'utf8'));}export function normalizeSkillRelativePath(_0x2efb54){const _0x414b0d=a95_0x1503,_0x66583f=toPosixPath(_0x2efb54[_0x414b0d(0x10a)]());return validateSkillRelativePath(_0x66583f),_0x66583f;}function a95_0x1cd9(){const _0x1a6e8e=['bytes','135TGUkzh','size','isBuffer','name','2ZUbQSj','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','Unsafe\x20Skill\x20file\x20path:\x20','34268OyLjPk','set','length','Skill\x20file\x20path\x20must\x20be\x20text.','896007gaHgrI','6oMERPo','104824DubWSY','isDirectory','validation','from','replace','content','1075965ECXyGF','startsWith','163617TbYmth','Skill\x20file\x20size\x20is\x20invalid:\x20','split','string','sha256','sort','isArray','includes','utf8','Skill\x20file\x20sha256\x20is\x20invalid:\x20','Duplicate\x20Skill\x20file\x20path:\x20','test','trim','object','isFile','412748CGqiGK','has','values','1086350KdmqSt','path','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','toLowerCase'];a95_0x1cd9=function(){return _0x1a6e8e;};return a95_0x1cd9();}export function validateSkillRelativePath(_0x4bde3b){const _0x2f9de7=a95_0x1503;if(!_0x4bde3b||_0x4bde3b[_0x2f9de7(0x129)]('/')||_0x4bde3b[_0x2f9de7(0x105)]('//'))throw CliErrors[_0x2f9de7(0x124)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x4bde3b);for(const _0x4d8ee3 of _0x4bde3b[_0x2f9de7(0x100)]('/')){if(!_0x4d8ee3||_0x4d8ee3==='.'||_0x4d8ee3==='..')throw CliErrors[_0x2f9de7(0x124)](_0x2f9de7(0x11b)+_0x4bde3b);}}export function toPosixPath(_0x29410d){const _0x518ac7=a95_0x1503;return _0x29410d[_0x518ac7(0x126)](/\\/g,'/');}export function isSha256Hex(_0x5e547f){const _0x5ab3bc=a95_0x1503;return typeof _0x5e547f===_0x5ab3bc(0x101)&&/^[a-fA-F0-9]{64}$/[_0x5ab3bc(0x109)](_0x5e547f);}
@@ -1 +1 @@
1
- (function(_0x525f58,_0x223d05){const _0x1a40ae=a96_0x176f,_0x587744=_0x525f58();while(!![]){try{const _0x4218c1=parseInt(_0x1a40ae(0x114))/0x1+parseInt(_0x1a40ae(0x108))/0x2*(-parseInt(_0x1a40ae(0x105))/0x3)+parseInt(_0x1a40ae(0x115))/0x4*(-parseInt(_0x1a40ae(0x113))/0x5)+-parseInt(_0x1a40ae(0x11e))/0x6+-parseInt(_0x1a40ae(0x125))/0x7*(parseInt(_0x1a40ae(0x10b))/0x8)+parseInt(_0x1a40ae(0x112))/0x9+parseInt(_0x1a40ae(0xfd))/0xa;if(_0x4218c1===_0x223d05)break;else _0x587744['push'](_0x587744['shift']());}catch(_0x583393){_0x587744['push'](_0x587744['shift']());}}}(a96_0x5e65,0x3dc3e));function a96_0x5e65(){const _0x298566=['2885856WyLYde','entries','find','accessKey','---','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','paths','110537YhKiLb','9757690cLFwPL','skillName','path','has','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','replace','1161ASuAsy','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','stringify','2326DhFmWm','trim','description','88yWsKHk','validation','length','test','keys','isFile','force','3821922dOzEiw','446180wGrDiN','314265LgMMie','16FBAugr','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','packageBytes','map','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','env','fileHashes','contentHash','utf8'];a96_0x5e65=function(){return _0x298566;};return a96_0x5e65();}import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x53b389,_0x433a7d,_0x5bd3f3){const _0x294a35=a96_0x176f,_0x444191=requireSkillCode(_0x53b389),_0x596c22=requirePackageBytes(_0x444191,_0x5bd3f3[_0x294a35(0x117)]),_0x4b91ca=extractDownloadedPackage(_0x596c22),_0x129ed9=_0x4b91ca[_0x294a35(0x120)](_0x345ac9=>_0x345ac9[_0x294a35(0xff)]===SKILL_FILE);if(!_0x129ed9)throw CliErrors[_0x294a35(0x10c)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x444191);const _0x379bd8=withMaterializedSkillFrontmatter(_0x4b91ca,_0x53b389,_0x444191),_0x5e85e9=_0x379bd8[_0x294a35(0x120)](_0x1b61df=>_0x1b61df[_0x294a35(0xff)]===SKILL_FILE),_0x19b11e=fileText(_0x5e85e9),_0x1c93bc=getRuntimeSkillDir(_0x5bd3f3[_0x294a35(0x11a)],_0x5bd3f3[_0x294a35(0x121)],_0x5bd3f3['appCode'],_0x433a7d,_0x444191,_0x5bd3f3[_0x294a35(0x124)]),_0x793867=resolve(_0x1c93bc,SKILL_FILE),_0x393456=resolve(_0x1c93bc,METADATA_FILE),_0xb8c5ec=contentHash(_0x19b11e),_0xb09720=readMetadataIfPresent(_0x393456)?.[_0x294a35(0x11b)];ensurePulledFilesCanBeOverwritten(_0x1c93bc,_0x393456,_0x379bd8,_0x5bd3f3[_0x294a35(0x111)]===!![]),mkdirSync(_0x1c93bc,{'recursive':!![],'mode':0x1c0});const _0x2a03e8=existsSync(_0x793867)?readFileSync(_0x793867,_0x294a35(0x11d)):undefined;return materializeFiles(_0x1c93bc,_0x379bd8),removeStaleManagedFiles(_0x1c93bc,_0xb09720,_0x379bd8),writeJsonAtomic(_0x393456,buildMetadata(_0x53b389,_0x433a7d,_0x5bd3f3['appCode'],_0xb8c5ec,_0x5bd3f3['pulledAt'],_0x379bd8,_0x596c22)),{'skill':_0x53b389,'scope':_0x433a7d,'dir':_0x1c93bc,'skillMdPath':_0x793867,'metadataPath':_0x393456,'contentHash':_0xb8c5ec,'changed':_0x2a03e8!==_0x19b11e};}function withMaterializedSkillFrontmatter(_0x4deb75,_0x31d08a,_0x414bf0){return normalizeLocalFiles(_0x4deb75)['map'](_0x31ec09=>{const _0x31893d=a96_0x176f,_0x5ae006=fileText(_0x31ec09);if(_0x31ec09['path']!==SKILL_FILE||hasYamlFrontmatter(_0x5ae006))return _0x31ec09;return{'path':_0x31ec09[_0x31893d(0xff)],'content':prependSkillFrontmatter(_0x5ae006,{'name':_0x414bf0,'description':_0x31d08a['description']?.[_0x31893d(0x109)]()||_0x31d08a[_0x31893d(0xfe)]?.[_0x31893d(0x109)]()||_0x414bf0})};});}function hasYamlFrontmatter(_0x45b83d){const _0x2fed21=a96_0x176f;return/^\uFEFF?---\s*\r?\n/[_0x2fed21(0x10e)](_0x45b83d);}function prependSkillFrontmatter(_0x502465,_0x49a20d){const _0x23b14b=a96_0x176f,_0x127a1c=_0x502465[_0x23b14b(0x104)](/^\uFEFF/,'');return[_0x23b14b(0x122),'name:\x20'+yamlString(_0x49a20d['name']),'description:\x20'+yamlString(_0x49a20d[_0x23b14b(0x10a)]),_0x23b14b(0x122),'',_0x127a1c]['join']('\x0a');}function a96_0x176f(_0x4268a1,_0x230779){_0x4268a1=_0x4268a1-0xfd;const _0x5e6537=a96_0x5e65();let _0x176f9c=_0x5e6537[_0x4268a1];return _0x176f9c;}function yamlString(_0xb68569){const _0x1dfe5c=a96_0x176f;return JSON[_0x1dfe5c(0x107)](_0xb68569[_0x1dfe5c(0x104)](/\r/g,'')[_0x1dfe5c(0x109)]());}function ensurePulledFilesCanBeOverwritten(_0x2d2b8d,_0x14ce49,_0x4084ae,_0x32994e){const _0x2abfe=a96_0x176f;if(_0x32994e||!existsSync(_0x14ce49))return;const _0x214273=readMetadataIfPresent(_0x14ce49);if(!_0x214273)return;const _0x19c9d0=_0x214273['fileHashes']&&Object[_0x2abfe(0x10f)](_0x214273['fileHashes'])[_0x2abfe(0x10d)]>0x0?_0x214273['fileHashes']:undefined;if(_0x19c9d0)for(const [_0x2b0504,_0x708d40]of Object[_0x2abfe(0x11f)](_0x19c9d0)){const _0xf7c49a=resolveManagedFilePath(_0x2d2b8d,_0x2b0504);if(!existsSync(_0xf7c49a))throw CliErrors[_0x2abfe(0x10c)](_0x2abfe(0x119)+_0x2d2b8d,'Managed\x20file\x20was\x20removed\x20locally:\x20'+_0x2b0504);const _0xe1be69=lstatSync(_0xf7c49a);if(!_0xe1be69[_0x2abfe(0x110)]())throw CliErrors['validation'](_0x2abfe(0x119)+_0x2d2b8d,_0x2abfe(0x103)+_0x2b0504);const _0x5de082=bufferSha256(readFileSync(_0xf7c49a));if(_0x5de082!==_0x708d40)throw CliErrors['validation'](_0x2abfe(0x119)+_0x2d2b8d+'.\x20Changed\x20file:\x20'+_0x2b0504,_0x2abfe(0x116)+_0x2b0504);}else{const _0x4ba654=resolve(_0x2d2b8d,SKILL_FILE);if(existsSync(_0x4ba654)&&_0x214273[_0x2abfe(0x11c)]){const _0x39b14c=contentHash(readFileSync(_0x4ba654,_0x2abfe(0x11d)));if(_0x39b14c!==_0x214273[_0x2abfe(0x11c)])throw CliErrors['validation'](_0x2abfe(0x101)+_0x4ba654,_0x2abfe(0x102));}}for(const _0x4a9ec5 of normalizeLocalFiles(_0x4084ae)){if(_0x19c9d0?.[_0x4a9ec5['path']])continue;if(!_0x19c9d0&&_0x4a9ec5[_0x2abfe(0xff)]===SKILL_FILE)continue;const _0x1180cb=resolveManagedFilePath(_0x2d2b8d,_0x4a9ec5[_0x2abfe(0xff)]);if(!existsSync(_0x1180cb))continue;const _0x1def30=lstatSync(_0x1180cb);if(!_0x1def30[_0x2abfe(0x110)]())throw CliErrors[_0x2abfe(0x10c)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x2d2b8d,_0x2abfe(0x106)+_0x4a9ec5[_0x2abfe(0xff)]);const _0x148ee3=bufferSha256(readFileSync(_0x1180cb));if(_0x148ee3!==fileHash(_0x4a9ec5))throw CliErrors['validation'](_0x2abfe(0x119)+_0x2d2b8d,_0x2abfe(0x123)+_0x4a9ec5['path']);}}function materializeFiles(_0x42e103,_0x39aba6){for(const _0x352f32 of normalizeLocalFiles(_0x39aba6)){const _0x5d7401=resolveManagedFilePath(_0x42e103,_0x352f32['path']);mkdirSync(dirname(_0x5d7401),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x5d7401,fileContent(_0x352f32),0x180);}}function removeStaleManagedFiles(_0xfef365,_0x153825,_0x37a887){const _0x2cdb27=a96_0x176f;if(!_0x153825)return;const _0x5d49a7=new Set(normalizeLocalFiles(_0x37a887)[_0x2cdb27(0x118)](_0x1df719=>_0x1df719[_0x2cdb27(0xff)]));for(const _0x5a5fe7 of Object[_0x2cdb27(0x10f)](_0x153825)){if(_0x5d49a7[_0x2cdb27(0x100)](_0x5a5fe7))continue;const _0x1af1af=resolveManagedFilePath(_0xfef365,_0x5a5fe7);existsSync(_0x1af1af)&&lstatSync(_0x1af1af)[_0x2cdb27(0x110)]()&&rmSync(_0x1af1af,{'force':!![]});}}
1
+ (function(_0x520df1,_0x2e1d09){const _0x29a2ee=a96_0x5d22,_0x4fcc60=_0x520df1();while(!![]){try{const _0x11023b=parseInt(_0x29a2ee(0x13b))/0x1*(-parseInt(_0x29a2ee(0x136))/0x2)+-parseInt(_0x29a2ee(0x12f))/0x3+parseInt(_0x29a2ee(0x132))/0x4+parseInt(_0x29a2ee(0x142))/0x5+parseInt(_0x29a2ee(0x13d))/0x6+parseInt(_0x29a2ee(0x13f))/0x7+-parseInt(_0x29a2ee(0x149))/0x8;if(_0x11023b===_0x2e1d09)break;else _0x4fcc60['push'](_0x4fcc60['shift']());}catch(_0x4603ab){_0x4fcc60['push'](_0x4fcc60['shift']());}}}(a96_0xf70d,0x66f6f));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 a96_0x5d22(_0x2ec2e0,_0xc94770){_0x2ec2e0=_0x2ec2e0-0x129;const _0xf70d16=a96_0xf70d();let _0x5d2241=_0xf70d16[_0x2ec2e0];return _0x5d2241;}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';function a96_0xf70d(){const _0x56558c=['2923512znnofH','skillName','appCode','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','141562ouadym','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','env','has','contentHash','6JwPJCu','force','450240ydfEXL','.\x20Changed\x20file:\x20','3584742mUVdNI','join','description','3833930akMJMr','pulledAt','validation','test','stringify','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','keys','4694264DMwhJS','fileHashes','accessKey','utf8','isFile','paths','find','Runtime\x20Skill\x20package\x20is\x20missing\x20','length','entries','path','trim','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','---','1954794IbINvb','replace','name:\x20'];a96_0xf70d=function(){return _0x56558c;};return a96_0xf70d();}export function materializeRuntimeSkill(_0x25656e,_0x4bc213,_0x8902bb){const _0x50a7f2=a96_0x5d22,_0x438f5b=requireSkillCode(_0x25656e),_0xff87ac=requirePackageBytes(_0x438f5b,_0x8902bb['packageBytes']),_0x1e5bd5=extractDownloadedPackage(_0xff87ac),_0x6653f7=_0x1e5bd5[_0x50a7f2(0x14f)](_0x58f2ae=>_0x58f2ae[_0x50a7f2(0x12b)]===SKILL_FILE);if(!_0x6653f7)throw CliErrors[_0x50a7f2(0x144)](_0x50a7f2(0x150)+SKILL_FILE+':\x20'+_0x438f5b);const _0x536eda=withMaterializedSkillFrontmatter(_0x1e5bd5,_0x25656e,_0x438f5b),_0x1e6a15=_0x536eda[_0x50a7f2(0x14f)](_0x425dcc=>_0x425dcc[_0x50a7f2(0x12b)]===SKILL_FILE),_0x45c029=fileText(_0x1e6a15),_0x939961=getRuntimeSkillDir(_0x8902bb[_0x50a7f2(0x138)],_0x8902bb[_0x50a7f2(0x14b)],_0x8902bb[_0x50a7f2(0x134)],_0x4bc213,_0x438f5b,_0x8902bb[_0x50a7f2(0x14e)]),_0x48907d=resolve(_0x939961,SKILL_FILE),_0x4aab78=resolve(_0x939961,METADATA_FILE),_0x2fcec7=contentHash(_0x45c029),_0x880c5=readMetadataIfPresent(_0x4aab78)?.[_0x50a7f2(0x14a)];ensurePulledFilesCanBeOverwritten(_0x939961,_0x4aab78,_0x536eda,_0x8902bb[_0x50a7f2(0x13c)]===!![]),mkdirSync(_0x939961,{'recursive':!![],'mode':0x1c0});const _0x43afba=existsSync(_0x48907d)?readFileSync(_0x48907d,_0x50a7f2(0x14c)):undefined;return materializeFiles(_0x939961,_0x536eda),removeStaleManagedFiles(_0x939961,_0x880c5,_0x536eda),writeJsonAtomic(_0x4aab78,buildMetadata(_0x25656e,_0x4bc213,_0x8902bb['appCode'],_0x2fcec7,_0x8902bb[_0x50a7f2(0x143)],_0x536eda,_0xff87ac)),{'skill':_0x25656e,'scope':_0x4bc213,'dir':_0x939961,'skillMdPath':_0x48907d,'metadataPath':_0x4aab78,'contentHash':_0x2fcec7,'changed':_0x43afba!==_0x45c029};}function withMaterializedSkillFrontmatter(_0x548b1a,_0x1e4421,_0x1fb09d){return normalizeLocalFiles(_0x548b1a)['map'](_0x1ec4e2=>{const _0x4b8f4a=a96_0x5d22,_0x1522cd=fileText(_0x1ec4e2);if(_0x1ec4e2['path']!==SKILL_FILE||hasYamlFrontmatter(_0x1522cd))return _0x1ec4e2;return{'path':_0x1ec4e2['path'],'content':prependSkillFrontmatter(_0x1522cd,{'name':_0x1fb09d,'description':_0x1e4421[_0x4b8f4a(0x141)]?.[_0x4b8f4a(0x12c)]()||_0x1e4421[_0x4b8f4a(0x133)]?.[_0x4b8f4a(0x12c)]()||_0x1fb09d})};});}function hasYamlFrontmatter(_0x28a282){const _0x215eaf=a96_0x5d22;return/^\uFEFF?---\s*\r?\n/[_0x215eaf(0x145)](_0x28a282);}function prependSkillFrontmatter(_0x1ea7de,_0x4c35fc){const _0x5c7164=a96_0x5d22,_0x45cb36=_0x1ea7de[_0x5c7164(0x130)](/^\uFEFF/,'');return[_0x5c7164(0x12e),_0x5c7164(0x131)+yamlString(_0x4c35fc['name']),'description:\x20'+yamlString(_0x4c35fc[_0x5c7164(0x141)]),_0x5c7164(0x12e),'',_0x45cb36][_0x5c7164(0x140)]('\x0a');}function yamlString(_0x3fd198){const _0x49dc1b=a96_0x5d22;return JSON[_0x49dc1b(0x146)](_0x3fd198[_0x49dc1b(0x130)](/\r/g,'')[_0x49dc1b(0x12c)]());}function ensurePulledFilesCanBeOverwritten(_0x1e7fbf,_0x2a95e3,_0x24ab61,_0x249354){const _0x43dd51=a96_0x5d22;if(_0x249354||!existsSync(_0x2a95e3))return;const _0x37dac7=readMetadataIfPresent(_0x2a95e3);if(!_0x37dac7)return;const _0x3b1063=_0x37dac7[_0x43dd51(0x14a)]&&Object['keys'](_0x37dac7[_0x43dd51(0x14a)])[_0x43dd51(0x129)]>0x0?_0x37dac7['fileHashes']:undefined;if(_0x3b1063)for(const [_0x239340,_0x387281]of Object[_0x43dd51(0x12a)](_0x3b1063)){const _0x3ae8c5=resolveManagedFilePath(_0x1e7fbf,_0x239340);if(!existsSync(_0x3ae8c5))throw CliErrors[_0x43dd51(0x144)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x1e7fbf,'Managed\x20file\x20was\x20removed\x20locally:\x20'+_0x239340);const _0x4e82dd=lstatSync(_0x3ae8c5);if(!_0x4e82dd[_0x43dd51(0x14d)]())throw CliErrors[_0x43dd51(0x144)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x1e7fbf,'Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'+_0x239340);const _0x352c0a=bufferSha256(readFileSync(_0x3ae8c5));if(_0x352c0a!==_0x387281)throw CliErrors[_0x43dd51(0x144)](_0x43dd51(0x147)+_0x1e7fbf+_0x43dd51(0x13e)+_0x239340,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'+_0x239340);}else{const _0x275f30=resolve(_0x1e7fbf,SKILL_FILE);if(existsSync(_0x275f30)&&_0x37dac7[_0x43dd51(0x13a)]){const _0x1dd305=contentHash(readFileSync(_0x275f30,_0x43dd51(0x14c)));if(_0x1dd305!==_0x37dac7[_0x43dd51(0x13a)])throw CliErrors[_0x43dd51(0x144)](_0x43dd51(0x137)+_0x275f30,_0x43dd51(0x12d));}}for(const _0x3b9a04 of normalizeLocalFiles(_0x24ab61)){if(_0x3b1063?.[_0x3b9a04[_0x43dd51(0x12b)]])continue;if(!_0x3b1063&&_0x3b9a04[_0x43dd51(0x12b)]===SKILL_FILE)continue;const _0x27f43f=resolveManagedFilePath(_0x1e7fbf,_0x3b9a04[_0x43dd51(0x12b)]);if(!existsSync(_0x27f43f))continue;const _0x1aed71=lstatSync(_0x27f43f);if(!_0x1aed71['isFile']())throw CliErrors[_0x43dd51(0x144)](_0x43dd51(0x147)+_0x1e7fbf,'Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20'+_0x3b9a04[_0x43dd51(0x12b)]);const _0x528246=bufferSha256(readFileSync(_0x27f43f));if(_0x528246!==fileHash(_0x3b9a04))throw CliErrors[_0x43dd51(0x144)](_0x43dd51(0x147)+_0x1e7fbf,_0x43dd51(0x135)+_0x3b9a04[_0x43dd51(0x12b)]);}}function materializeFiles(_0x4f2c14,_0x539a1e){const _0x298e65=a96_0x5d22;for(const _0x5d7c2d of normalizeLocalFiles(_0x539a1e)){const _0x51ae17=resolveManagedFilePath(_0x4f2c14,_0x5d7c2d[_0x298e65(0x12b)]);mkdirSync(dirname(_0x51ae17),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x51ae17,fileContent(_0x5d7c2d),0x180);}}function removeStaleManagedFiles(_0x11fad8,_0x4143b6,_0x5f3d26){const _0x34a4cf=a96_0x5d22;if(!_0x4143b6)return;const _0x5bc1b8=new Set(normalizeLocalFiles(_0x5f3d26)['map'](_0xfcbec6=>_0xfcbec6[_0x34a4cf(0x12b)]));for(const _0x3817a2 of Object[_0x34a4cf(0x148)](_0x4143b6)){if(_0x5bc1b8[_0x34a4cf(0x139)](_0x3817a2))continue;const _0x13267d=resolveManagedFilePath(_0x11fad8,_0x3817a2);existsSync(_0x13267d)&&lstatSync(_0x13267d)['isFile']()&&rmSync(_0x13267d,{'force':!![]});}}
@@ -1 +1 @@
1
- (function(_0x2d0759,_0x42d335){const _0x5b3022=a97_0x60b7,_0x51c71d=_0x2d0759();while(!![]){try{const _0x3fb66e=parseInt(_0x5b3022(0x1dd))/0x1*(parseInt(_0x5b3022(0x1d8))/0x2)+parseInt(_0x5b3022(0x1cc))/0x3+parseInt(_0x5b3022(0x1d7))/0x4+parseInt(_0x5b3022(0x1e3))/0x5+parseInt(_0x5b3022(0x1d3))/0x6*(-parseInt(_0x5b3022(0x1c5))/0x7)+-parseInt(_0x5b3022(0x1c9))/0x8+parseInt(_0x5b3022(0x1d4))/0x9*(parseInt(_0x5b3022(0x1ca))/0xa);if(_0x3fb66e===_0x42d335)break;else _0x51c71d['push'](_0x51c71d['shift']());}catch(_0x18aa2e){_0x51c71d['push'](_0x51c71d['shift']());}}}(a97_0x5e53,0xddea4));function a97_0x5e53(){const _0x27301f=['map','20rOsEmJ','parse','status','manifest','Invalid\x20','Runtime\x20Skill\x20is\x20missing\x20skillCode.','675120cVTyef','version','files','ossPath','fromEntries','25907qtAOPS','readonly','path','forkedFromSkillId','14523624UjEwoy','10jfrFsl','skillName','4798155QxVtan','personal','string','validation','skillCode','utf8','trim','2322PAINwQ','203265AwUfeH','zipSize','length','4549720uJLvUG','126228tATZRj','toISOString','tags','isArray'];a97_0x5e53=function(){return _0x27301f;};return a97_0x5e53();}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(_0x124501,_0x88f068,_0x41bbf9,_0x50f3fa,_0x135de6,_0x346c47,_0xcbb930){const _0x1d2bf8=a97_0x60b7,_0x4bfde2=_0x346c47?normalizeLocalFiles(_0x346c47):[],_0x2729a2=!_0xcbb930&&_0x4bfde2[_0x1d2bf8(0x1d6)]>0x0?buildSkillPackage(_0x4bfde2):undefined,_0x3ace15=_0xcbb930?bufferSha256(_0xcbb930):_0x2729a2?.['manifest']['zipSha256'],_0x116914=_0xcbb930?.['length']??_0x2729a2?.[_0x1d2bf8(0x1e0)][_0x1d2bf8(0x1d5)],_0x314139=_0x4bfde2[_0x1d2bf8(0x1d6)]>0x0?Object[_0x1d2bf8(0x1c4)](_0x4bfde2[_0x1d2bf8(0x1dc)](_0x290d9a=>[_0x290d9a[_0x1d2bf8(0x1c7)],fileHash(_0x290d9a)])):undefined;return{'schemaVersion':_0x4bfde2[_0x1d2bf8(0x1d6)]>0x0?0x2:0x1,'id':_0x124501['id'],'appCode':_0x41bbf9,'skillCode':requireSkillCode(_0x124501),'skillName':_0x124501[_0x1d2bf8(0x1cb)],'description':_0x124501['description'],'scope':_0x88f068,'readonly':_0x88f068!==_0x1d2bf8(0x1cd)||_0x124501[_0x1d2bf8(0x1c6)]===!![],'tenantCode':_0x124501['tenantCode'],'userId':_0x124501['userId'],'version':_0x124501[_0x1d2bf8(0x1e4)],'status':_0x124501[_0x1d2bf8(0x1df)],'tags':Array[_0x1d2bf8(0x1db)](_0x124501[_0x1d2bf8(0x1da)])?_0x124501[_0x1d2bf8(0x1da)]:[],'hasUpstreamUpdate':_0x124501['hasUpstreamUpdate'],'forkedFromSkillId':_0x124501[_0x1d2bf8(0x1c8)],'forkedFromVersion':_0x124501['forkedFromVersion'],'sourceSessionId':_0x124501['sourceSessionId'],'contentHash':_0x50f3fa,'fileHashes':_0x314139,'treeHash':_0x4bfde2[_0x1d2bf8(0x1d6)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x4bfde2)):undefined,'ossPath':remoteManifestOssPath(_0x124501[_0x1d2bf8(0x1e5)]),'zipSha256':_0x3ace15,'zipSize':_0x116914,'files':_0x4bfde2[_0x1d2bf8(0x1d6)]>0x0?_0x4bfde2[_0x1d2bf8(0x1dc)](_0x1ae815=>({'path':_0x1ae815[_0x1d2bf8(0x1c7)],'hash':fileHash(_0x1ae815),'size':fileContent(_0x1ae815)[_0x1d2bf8(0x1d6)]})):undefined,'pulledAt':_0x135de6??new Date()[_0x1d2bf8(0x1d9)]()};}export function requireSkillCode(_0x1a8b0f){const _0x5bbb86=a97_0x60b7,_0x51e8ee=_0x1a8b0f[_0x5bbb86(0x1d0)]?.[_0x5bbb86(0x1d2)]();if(!_0x51e8ee)throw CliErrors['validation'](_0x5bbb86(0x1e2));return _0x51e8ee;}export function readMetadataIfPresent(_0x191422){const _0x56faec=a97_0x60b7;if(!existsSync(_0x191422))return undefined;try{const _0x5aab12=JSON[_0x56faec(0x1de)](readFileSync(_0x191422,_0x56faec(0x1d1)));return _0x5aab12;}catch{throw CliErrors[_0x56faec(0x1cf)](_0x56faec(0x1e1)+METADATA_FILE+':\x20'+_0x191422);}}function a97_0x60b7(_0x10aa1f,_0x3190b7){_0x10aa1f=_0x10aa1f-0x1c3;const _0x5e537f=a97_0x5e53();let _0x60b734=_0x5e537f[_0x10aa1f];return _0x60b734;}function remoteManifestOssPath(_0x3cd520){const _0x24cbe5=a97_0x60b7;if(!_0x3cd520||typeof _0x3cd520!=='object'||Array['isArray'](_0x3cd520))return undefined;const _0x32a4a0=_0x3cd520[_0x24cbe5(0x1c3)];return typeof _0x32a4a0===_0x24cbe5(0x1ce)&&_0x32a4a0[_0x24cbe5(0x1d2)]()?_0x32a4a0[_0x24cbe5(0x1d2)]():undefined;}
1
+ (function(_0x4887df,_0x3829db){const _0x3e4b0f=a97_0x3ee7,_0x15f479=_0x4887df();while(!![]){try{const _0x12690c=-parseInt(_0x3e4b0f(0x10a))/0x1*(-parseInt(_0x3e4b0f(0x10e))/0x2)+-parseInt(_0x3e4b0f(0xf4))/0x3*(parseInt(_0x3e4b0f(0xff))/0x4)+parseInt(_0x3e4b0f(0x109))/0x5*(parseInt(_0x3e4b0f(0xf2))/0x6)+-parseInt(_0x3e4b0f(0xf8))/0x7*(-parseInt(_0x3e4b0f(0xef))/0x8)+-parseInt(_0x3e4b0f(0xee))/0x9*(-parseInt(_0x3e4b0f(0xfe))/0xa)+-parseInt(_0x3e4b0f(0x105))/0xb*(parseInt(_0x3e4b0f(0xf9))/0xc)+parseInt(_0x3e4b0f(0xf1))/0xd;if(_0x12690c===_0x3829db)break;else _0x15f479['push'](_0x15f479['shift']());}catch(_0x5ed1fe){_0x15f479['push'](_0x15f479['shift']());}}}(a97_0x54f3,0xb2da6));function a97_0x3ee7(_0x2a6b8a,_0x10f311){_0x2a6b8a=_0x2a6b8a-0xee;const _0x54f3e7=a97_0x54f3();let _0x3ee741=_0x54f3e7[_0x2a6b8a];return _0x3ee741;}import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a97_0x54f3(){const _0x469a56=['28HellOS','24OyLtAI','trim','isArray','Invalid\x20','path','90kvmCbJ','45812uROgPx','hasUpstreamUpdate','readonly','zipSize','toISOString','validation','8023290sBBgHh','skillCode','userId','zipSha256','1985bbnPQi','101lDPdWt','sourceSessionId','string','map','3246XsOnyI','manifest','object','fromEntries','129672qcjGQG','2883640kuzpsN','length','10961873kIZEDB','1590CuSJHo','ossPath','129MZeHNN','tags','personal','forkedFromSkillId'];a97_0x54f3=function(){return _0x469a56;};return a97_0x54f3();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x32717f,_0x2d90bd,_0x438d33,_0x4ab090,_0x1ba33d,_0x1c6639,_0x176de7){const _0x1dc6d0=a97_0x3ee7,_0x414c99=_0x1c6639?normalizeLocalFiles(_0x1c6639):[],_0x3028bc=!_0x176de7&&_0x414c99[_0x1dc6d0(0xf0)]>0x0?buildSkillPackage(_0x414c99):undefined,_0x5575ed=_0x176de7?bufferSha256(_0x176de7):_0x3028bc?.[_0x1dc6d0(0x10f)][_0x1dc6d0(0x108)],_0x4bf52d=_0x176de7?.[_0x1dc6d0(0xf0)]??_0x3028bc?.[_0x1dc6d0(0x10f)][_0x1dc6d0(0x102)],_0xb282e6=_0x414c99['length']>0x0?Object[_0x1dc6d0(0x111)](_0x414c99['map'](_0x58dd89=>[_0x58dd89['path'],fileHash(_0x58dd89)])):undefined;return{'schemaVersion':_0x414c99[_0x1dc6d0(0xf0)]>0x0?0x2:0x1,'id':_0x32717f['id'],'appCode':_0x438d33,'skillCode':requireSkillCode(_0x32717f),'skillName':_0x32717f['skillName'],'description':_0x32717f['description'],'scope':_0x2d90bd,'readonly':_0x2d90bd!==_0x1dc6d0(0xf6)||_0x32717f[_0x1dc6d0(0x101)]===!![],'tenantCode':_0x32717f['tenantCode'],'userId':_0x32717f[_0x1dc6d0(0x107)],'version':_0x32717f['version'],'status':_0x32717f['status'],'tags':Array['isArray'](_0x32717f[_0x1dc6d0(0xf5)])?_0x32717f[_0x1dc6d0(0xf5)]:[],'hasUpstreamUpdate':_0x32717f[_0x1dc6d0(0x100)],'forkedFromSkillId':_0x32717f[_0x1dc6d0(0xf7)],'forkedFromVersion':_0x32717f['forkedFromVersion'],'sourceSessionId':_0x32717f[_0x1dc6d0(0x10b)],'contentHash':_0x4ab090,'fileHashes':_0xb282e6,'treeHash':_0x414c99[_0x1dc6d0(0xf0)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x414c99)):undefined,'ossPath':remoteManifestOssPath(_0x32717f['files']),'zipSha256':_0x5575ed,'zipSize':_0x4bf52d,'files':_0x414c99['length']>0x0?_0x414c99[_0x1dc6d0(0x10d)](_0x50b1ef=>({'path':_0x50b1ef[_0x1dc6d0(0xfd)],'hash':fileHash(_0x50b1ef),'size':fileContent(_0x50b1ef)[_0x1dc6d0(0xf0)]})):undefined,'pulledAt':_0x1ba33d??new Date()[_0x1dc6d0(0x103)]()};}export function requireSkillCode(_0x456f5c){const _0x3da0b0=a97_0x3ee7,_0x23747a=_0x456f5c[_0x3da0b0(0x106)]?.[_0x3da0b0(0xfa)]();if(!_0x23747a)throw CliErrors['validation']('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0x23747a;}export function readMetadataIfPresent(_0x494cc8){const _0x5e030d=a97_0x3ee7;if(!existsSync(_0x494cc8))return undefined;try{const _0x5d63e6=JSON['parse'](readFileSync(_0x494cc8,'utf8'));return _0x5d63e6;}catch{throw CliErrors[_0x5e030d(0x104)](_0x5e030d(0xfc)+METADATA_FILE+':\x20'+_0x494cc8);}}function remoteManifestOssPath(_0x5545d6){const _0x89e058=a97_0x3ee7;if(!_0x5545d6||typeof _0x5545d6!==_0x89e058(0x110)||Array[_0x89e058(0xfb)](_0x5545d6))return undefined;const _0x24e4aa=_0x5545d6[_0x89e058(0xf3)];return typeof _0x24e4aa===_0x89e058(0x10c)&&_0x24e4aa[_0x89e058(0xfa)]()?_0x24e4aa[_0x89e058(0xfa)]():undefined;}
@@ -1 +1 @@
1
- const a98_0x1aa3c6=a98_0xd897;(function(_0x213a68,_0x311d1a){const _0x30ef08=a98_0xd897,_0x3e654d=_0x213a68();while(!![]){try{const _0x2490c3=-parseInt(_0x30ef08(0x142))/0x1*(-parseInt(_0x30ef08(0x14b))/0x2)+parseInt(_0x30ef08(0x143))/0x3+-parseInt(_0x30ef08(0x134))/0x4*(-parseInt(_0x30ef08(0x148))/0x5)+-parseInt(_0x30ef08(0x136))/0x6+-parseInt(_0x30ef08(0x141))/0x7*(-parseInt(_0x30ef08(0x144))/0x8)+parseInt(_0x30ef08(0x14d))/0x9+-parseInt(_0x30ef08(0x135))/0xa*(parseInt(_0x30ef08(0x139))/0xb);if(_0x2490c3===_0x311d1a)break;else _0x3e654d['push'](_0x3e654d['shift']());}catch(_0xbcc697){_0x3e654d['push'](_0x3e654d['shift']());}}}(a98_0x425d,0x7202d));function a98_0xd897(_0x733044,_0x56d4da){_0x733044=_0x733044-0x134;const _0x425d6b=a98_0x425d();let _0xd897f5=_0x425d6b[_0x733044];return _0xd897f5;}import{homedir}from'node:os';import{resolve}from'node:path';function a98_0x425d(){const _0x2d5f4c=['5064456EjqYnA','CLAUDE_SKILL_ROOT','appCode','440HqOLKA','homeDirName','Unsafe\x20','agentsSkillsDir','path\x20segment','validation','.agents','.claude','91vSmjWX','592186awxzNa','2153169NksYyE','497296FolhXR','\x20for\x20local\x20path:\x20','skillCode','includes','35yxLLif','cache','skills','2fPMQOP','cacheRoot','3207807IXHiPT','SKILL_ROOT','36884Oerbar','306980IbIlJR'];a98_0x425d=function(){return _0x2d5f4c;};return a98_0x425d();}import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x1a2da0={}){const _0x476be8=a98_0xd897,_0x1f4c8a=_0x1a2da0['homeDir']??homedir(),_0x3f1ff8=resolve(_0x1f4c8a,PRODUCT_CONFIG['homeDirName'],_0x476be8(0x149)),_0x2be680=trimmedEnv(_0x476be8(0x14e)),_0x52c6e4=trimmedEnv(_0x476be8(0x137));return{'homeDir':_0x1f4c8a,'cacheRoot':_0x3f1ff8,'managedRoot':resolve(_0x1f4c8a,PRODUCT_CONFIG[_0x476be8(0x13a)]),'agentsSkillsDir':_0x1a2da0[_0x476be8(0x13c)]??_0x2be680??resolve(_0x1f4c8a,_0x476be8(0x13f),_0x476be8(0x14a)),'claudeSkillsDir':_0x1a2da0['claudeSkillsDir']??_0x52c6e4??resolve(_0x1f4c8a,_0x476be8(0x140),'skills')};}export function getRuntimeSkillCacheRoot(_0xb50a67,_0xea409c,_0x133074={}){const _0x2fafda=a98_0xd897,_0x15cd65=resolveSkillSyncPaths(_0x133074);return resolve(_0x15cd65[_0x2fafda(0x14c)],_0xb50a67,fingerprintAccessKey(_0xea409c),_0x2fafda(0x14a));}export function getRuntimeSkillDir(_0x38124c,_0x59307d,_0x415815,_0x565127,_0x46e055,_0x1190f1={}){const _0xdcab84=a98_0xd897;return resolve(getRuntimeSkillCacheRoot(_0x38124c,_0x59307d,_0x1190f1),safePathSegment(_0x415815,_0xdcab84(0x138)),_0x565127,safePathSegment(_0x46e055,_0xdcab84(0x146)));}export function safePathSegment(_0x4f971f,_0x1fc153=a98_0x1aa3c6(0x13d)){const _0xbab524=a98_0x1aa3c6;if(!_0x4f971f||_0x4f971f['includes']('/')||_0x4f971f[_0xbab524(0x147)]('\x5c')||_0x4f971f[_0xbab524(0x147)]('..'))throw CliErrors[_0xbab524(0x13e)](_0xbab524(0x13b)+_0x1fc153+_0xbab524(0x145)+_0x4f971f);return _0x4f971f;}function trimmedEnv(_0x3eb2b9){const _0x407f6=productEnv(_0x3eb2b9)?.['trim']();return _0x407f6?_0x407f6:undefined;}
1
+ const a98_0x40d8c3=a98_0x2e71;(function(_0x65c312,_0x231ccb){const _0x21e3be=a98_0x2e71,_0x5e803f=_0x65c312();while(!![]){try{const _0x51619e=parseInt(_0x21e3be(0x157))/0x1*(parseInt(_0x21e3be(0x163))/0x2)+-parseInt(_0x21e3be(0x152))/0x3*(parseInt(_0x21e3be(0x154))/0x4)+-parseInt(_0x21e3be(0x16a))/0x5+parseInt(_0x21e3be(0x15f))/0x6*(-parseInt(_0x21e3be(0x162))/0x7)+-parseInt(_0x21e3be(0x161))/0x8+-parseInt(_0x21e3be(0x155))/0x9*(-parseInt(_0x21e3be(0x15d))/0xa)+-parseInt(_0x21e3be(0x150))/0xb*(-parseInt(_0x21e3be(0x15a))/0xc);if(_0x51619e===_0x231ccb)break;else _0x5e803f['push'](_0x5e803f['shift']());}catch(_0x285206){_0x5e803f['push'](_0x5e803f['shift']());}}}(a98_0x5a09,0xbe990));function a98_0x2e71(_0x26bc10,_0xfd6d2b){_0x26bc10=_0x26bc10-0x150;const _0x5a09da=a98_0x5a09();let _0x2e7167=_0x5a09da[_0x26bc10];return _0x2e7167;}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(_0x28b4f2={}){const _0x341ebf=a98_0x2e71,_0x251cda=_0x28b4f2[_0x341ebf(0x15e)]??homedir(),_0x4e9cea=resolve(_0x251cda,PRODUCT_CONFIG[_0x341ebf(0x15b)],'cache'),_0x16ae1f=trimmedEnv(_0x341ebf(0x169)),_0x568ba7=trimmedEnv(_0x341ebf(0x167));return{'homeDir':_0x251cda,'cacheRoot':_0x4e9cea,'managedRoot':resolve(_0x251cda,PRODUCT_CONFIG[_0x341ebf(0x15b)]),'agentsSkillsDir':_0x28b4f2[_0x341ebf(0x153)]??_0x16ae1f??resolve(_0x251cda,_0x341ebf(0x164),_0x341ebf(0x168)),'claudeSkillsDir':_0x28b4f2[_0x341ebf(0x165)]??_0x568ba7??resolve(_0x251cda,_0x341ebf(0x166),_0x341ebf(0x168))};}export function getRuntimeSkillCacheRoot(_0x41bf96,_0x452fc9,_0x2bc86c={}){const _0x511c64=a98_0x2e71,_0x30023a=resolveSkillSyncPaths(_0x2bc86c);return resolve(_0x30023a['cacheRoot'],_0x41bf96,fingerprintAccessKey(_0x452fc9),_0x511c64(0x168));}export function getRuntimeSkillDir(_0x23f492,_0x500556,_0x188ee8,_0x1e689b,_0x15d977,_0x209cc1={}){const _0xfdf561=a98_0x2e71;return resolve(getRuntimeSkillCacheRoot(_0x23f492,_0x500556,_0x209cc1),safePathSegment(_0x188ee8,_0xfdf561(0x15c)),_0x1e689b,safePathSegment(_0x15d977,'skillCode'));}export function safePathSegment(_0x471cb4,_0x2d9be2=a98_0x40d8c3(0x159)){const _0x163929=a98_0x40d8c3;if(!_0x471cb4||_0x471cb4[_0x163929(0x151)]('/')||_0x471cb4[_0x163929(0x151)]('\x5c')||_0x471cb4[_0x163929(0x151)]('..'))throw CliErrors[_0x163929(0x160)]('Unsafe\x20'+_0x2d9be2+_0x163929(0x156)+_0x471cb4);return _0x471cb4;}function a98_0x5a09(){const _0x565b86=['agentsSkillsDir','372UQbsVj','81jdCyAG','\x20for\x20local\x20path:\x20','3722kPqnSR','trim','path\x20segment','2394816URQuEb','homeDirName','appCode','1140600wspZoK','homeDir','6sqRXTg','validation','3775520HIgyYv','1586599UpNtAA','758cWcBRH','.agents','claudeSkillsDir','.claude','CLAUDE_SKILL_ROOT','skills','SKILL_ROOT','3745490QUvJFt','11gJxjMc','includes','13173DZGCFp'];a98_0x5a09=function(){return _0x565b86;};return a98_0x5a09();}function trimmedEnv(_0x44cd7a){const _0x1e169d=a98_0x40d8c3,_0x220b96=productEnv(_0x44cd7a)?.[_0x1e169d(0x158)]();return _0x220b96?_0x220b96:undefined;}
@@ -1 +1 @@
1
- (function(_0x4d902f,_0x33887c){const _0xcb3cfd=a99_0x8897,_0x143f3a=_0x4d902f();while(!![]){try{const _0x1006a5=parseInt(_0xcb3cfd(0x139))/0x1*(parseInt(_0xcb3cfd(0x135))/0x2)+-parseInt(_0xcb3cfd(0x15a))/0x3+parseInt(_0xcb3cfd(0x15d))/0x4*(parseInt(_0xcb3cfd(0x13d))/0x5)+parseInt(_0xcb3cfd(0x15b))/0x6*(-parseInt(_0xcb3cfd(0x161))/0x7)+parseInt(_0xcb3cfd(0x159))/0x8+parseInt(_0xcb3cfd(0x141))/0x9*(-parseInt(_0xcb3cfd(0x160))/0xa)+parseInt(_0xcb3cfd(0x13a))/0xb*(parseInt(_0xcb3cfd(0x153))/0xc);if(_0x1006a5===_0x33887c)break;else _0x143f3a['push'](_0x143f3a['shift']());}catch(_0x272a7a){_0x143f3a['push'](_0x143f3a['shift']());}}}(a99_0x1fc7,0x731f7));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';function a99_0x8897(_0x106075,_0x3d5169){_0x106075=_0x106075-0x12b;const _0x1fc736=a99_0x1fc7();let _0x8897e=_0x1fc736[_0x106075];return _0x8897e;}export function resolvePushDirectoryIdentity(_0x3d3a34,_0x223cdd,_0x131ac2={}){const _0x5ddcaa=a99_0x8897,_0x38d026=resolvePushDirectoryRoot(_0x3d3a34),_0x43c743=readMetadataIfPresent(resolve(_0x38d026,METADATA_FILE));if(_0x43c743?.['appCode']&&_0x43c743[_0x5ddcaa(0x14d)]!==_0x223cdd&&!_0x131ac2[_0x5ddcaa(0x143)])throw CliErrors[_0x5ddcaa(0x158)](_0x5ddcaa(0x151)+_0x43c743['appCode']+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x223cdd+'\x22.');const _0x3303ad=_0x43c743?.[_0x5ddcaa(0x134)]?.['trim']()||deriveSkillCodeFromDirectory(_0x38d026,_0x223cdd);if(!_0x3303ad)throw CliErrors['validation']('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+METADATA_FILE+_0x5ddcaa(0x138));return{'dir':_0x38d026,'skillCode':_0x3303ad,'metadata':_0x43c743};}export function readPushDirectory(_0x33bb7c,_0x10e9aa,_0x38702e={}){const _0x4d1846=a99_0x8897,_0x14384d=resolvePushDirectoryIdentity(_0x33bb7c,_0x10e9aa,_0x38702e),_0x6e0f20=_0x14384d[_0x4d1846(0x131)],_0x43ca25=resolve(_0x6e0f20,SKILL_FILE);if(!existsSync(_0x43ca25)||!lstatSync(_0x43ca25)['isFile']())throw CliErrors[_0x4d1846(0x158)]('Missing\x20'+SKILL_FILE+':\x20'+_0x43ca25);const _0x1615c3=_0x14384d['metadata'],_0x46c018=_0x38702e[_0x4d1846(0x152)]??_0x4d1846(0x150);if(_0x1615c3?.[_0x4d1846(0x133)]==='builtin')throw CliErrors[_0x4d1846(0x158)](_0x4d1846(0x13c)+METADATA_FILE+_0x4d1846(0x12f)+_0x1615c3[_0x4d1846(0x133)]+'\x22.');if(_0x46c018===_0x4d1846(0x150)&&_0x1615c3?.['scope']&&_0x1615c3[_0x4d1846(0x133)]!=='personal')throw CliErrors[_0x4d1846(0x158)](_0x4d1846(0x14c)+METADATA_FILE+_0x4d1846(0x12f)+_0x1615c3[_0x4d1846(0x133)]+'\x22.',_0x4d1846(0x12b)+_0x6e0f20+_0x4d1846(0x132));const _0x1e7eff=scanSkillDirectory(_0x6e0f20),_0x46418b=buildSkillPackage(_0x1e7eff),_0xe77b89=readFileSync(_0x43ca25,_0x4d1846(0x13b)),_0x4a6f25=_0x14384d[_0x4d1846(0x134)];return{'skillCode':_0x4a6f25,'metadata':_0x1615c3,'input':{'skillCode':_0x4a6f25,'skillName':_0x1615c3?.[_0x4d1846(0x156)],'description':_0x1615c3?.[_0x4d1846(0x12d)],'content':_0xe77b89,'files':_0x46418b[_0x4d1846(0x15e)],'packageBase64':_0x46418b['packageBase64'],'tags':_0x1615c3?.[_0x4d1846(0x146)],'version':_0x1615c3?.[_0x4d1846(0x142)],'sourceSessionId':_0x1615c3?.[_0x4d1846(0x149)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x885b35,_0x2656b8,_0x1b343c,_0x83ae2d={}){const _0x569309=a99_0x8897,_0x2bdfb8=resolvePushDirectoryRoot(_0x885b35),_0x5d547a=readMetadataIfPresent(resolve(_0x2bdfb8,METADATA_FILE)),_0x25bd26=requireRemoteScope(_0x2656b8),_0x8506d1=readLocalSkillContent(_0x2bdfb8),_0x3d2a63={..._0x2656b8,'appCode':_0x2656b8[_0x569309(0x14d)]??_0x1b343c,'skillName':_0x2656b8[_0x569309(0x156)]??_0x5d547a?.['skillName'],'description':_0x2656b8[_0x569309(0x12d)]??_0x5d547a?.['description'],'tags':Array[_0x569309(0x14b)](_0x2656b8[_0x569309(0x146)])?_0x2656b8[_0x569309(0x146)]:_0x5d547a?.['tags'],'sourceSessionId':_0x2656b8[_0x569309(0x149)]??_0x5d547a?.[_0x569309(0x149)],'content':_0x2656b8[_0x569309(0x15c)]??_0x8506d1},_0x5cdc0d=buildMetadata(_0x3d2a63,_0x25bd26,_0x1b343c,contentHash(_0x8506d1),_0x83ae2d[_0x569309(0x14a)]);writeJsonAtomic(resolve(_0x2bdfb8,METADATA_FILE),_0x5cdc0d);}export function recordPushedRuntimeSkill(_0x13d0dc,_0x470e97,_0xafddc0,_0x22e734={}){const _0x168c17=a99_0x8897,_0x4ad704=resolvePushDirectoryRoot(_0x13d0dc),_0x5a29b3=scanSkillDirectory(_0x4ad704),_0x4a051=_0x5a29b3[_0x168c17(0x130)](_0x48fdfd=>_0x48fdfd[_0x168c17(0x148)]===SKILL_FILE),_0x4f9229=_0x4a051?fileText(_0x4a051):'',_0x449af2=tryNormalizePackageManifest(_0x470e97[_0x168c17(0x15f)]),_0x5732e5={..._0x470e97,'content':_0x470e97['content']??_0x4f9229,'files':_0x449af2},_0x1b18c4=_0x449af2?normalizeLocalFiles(_0x5a29b3)[_0x168c17(0x12c)](_0x5b433e=>_0x449af2['files'][_0x168c17(0x155)](_0x18aac4=>_0x18aac4[_0x168c17(0x148)]===_0x5b433e['path'])):undefined,_0x5eb8e3=buildMetadata(_0x5732e5,_0x22e734[_0x168c17(0x133)]??_0x168c17(0x150),_0xafddc0,contentHash(_0x5732e5['content']??''),_0x22e734[_0x168c17(0x12e)],_0x1b18c4);writeJsonAtomic(resolve(_0x4ad704,METADATA_FILE),_0x5eb8e3);}function a99_0x1fc7(){const _0x10276e=['skillCode','202718oOrlSS','isFile','builtin','\x20or\x20directory\x20name.','5rBBMTx','407187JqHAep','utf8','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','46705ljApPU','\x20has\x20unsupported\x20scope\x20\x22','(unknown)','company','431127rmFmXL','version','allowAppCodeRetarget','slice','Remote\x20Skill\x20','tags','unknown','path','sourceSessionId','refreshedAt','isArray','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','appCode','Skill\x20directory\x20not\x20found:\x20','isSymbolicLink','personal','Skill\x20metadata\x20appCode\x20\x22','targetScope','84PWlRds','length','some','skillName','isDirectory','validation','1047408VYYoKa','913269qbNnpD','18882bNUlBE','content','220COqtwn','manifest','files','120mtPKHj','133bSDhPU','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','filter','description','pushedAt','\x20has\x20scope=\x22','find','dir','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','scope'];a99_0x1fc7=function(){return _0x10276e;};return a99_0x1fc7();}export function deriveSkillCodeFromDirectory(_0x3bfc44,_0x594a1a){const _0x54dcee=a99_0x8897,_0x318cb5=basename(resolve(_0x3bfc44)),_0x18fb71=_0x594a1a+'--';return _0x318cb5['startsWith'](_0x18fb71)?_0x318cb5[_0x54dcee(0x144)](_0x18fb71[_0x54dcee(0x154)]):_0x318cb5;}function resolvePushDirectoryRoot(_0x5e7a10){const _0x37d1e1=a99_0x8897,_0x431098=resolve(_0x5e7a10);if(!existsSync(_0x431098))throw CliErrors['validation'](_0x37d1e1(0x14e)+_0x5e7a10);const _0x1ce922=lstatSync(_0x431098);if(_0x1ce922[_0x37d1e1(0x157)]())return _0x431098;if(_0x1ce922[_0x37d1e1(0x14f)]()){const _0x4c4409=realpathSync(_0x431098);if(lstatSync(_0x4c4409)['isDirectory']())return _0x4c4409;}throw CliErrors['validation'](_0x37d1e1(0x14e)+_0x5e7a10);}function requireRemoteScope(_0x4bf4fa){const _0x4947ba=a99_0x8897;if(_0x4bf4fa[_0x4947ba(0x133)]===_0x4947ba(0x150)||_0x4bf4fa[_0x4947ba(0x133)]===_0x4947ba(0x140)||_0x4bf4fa[_0x4947ba(0x133)]===_0x4947ba(0x137))return _0x4bf4fa[_0x4947ba(0x133)];throw CliErrors[_0x4947ba(0x158)](_0x4947ba(0x145)+(_0x4bf4fa[_0x4947ba(0x134)]||_0x4947ba(0x13f))+_0x4947ba(0x13e)+(_0x4bf4fa[_0x4947ba(0x133)]??_0x4947ba(0x147))+'\x22.');}function readLocalSkillContent(_0x299813){const _0xf3c6e8=a99_0x8897,_0x102c80=resolve(_0x299813,SKILL_FILE);return existsSync(_0x102c80)&&lstatSync(_0x102c80)[_0xf3c6e8(0x136)]()?readFileSync(_0x102c80,_0xf3c6e8(0x13b)):'';}
1
+ (function(_0x3205b9,_0x5e976a){const _0x4c08cc=a99_0x3644,_0x5dd1be=_0x3205b9();while(!![]){try{const _0x5b181c=-parseInt(_0x4c08cc(0xc8))/0x1+parseInt(_0x4c08cc(0xb1))/0x2*(-parseInt(_0x4c08cc(0x9b))/0x3)+-parseInt(_0x4c08cc(0xbb))/0x4+parseInt(_0x4c08cc(0xa2))/0x5*(parseInt(_0x4c08cc(0xc4))/0x6)+-parseInt(_0x4c08cc(0x9f))/0x7+-parseInt(_0x4c08cc(0xa9))/0x8+-parseInt(_0x4c08cc(0xa7))/0x9*(-parseInt(_0x4c08cc(0xb8))/0xa);if(_0x5b181c===_0x5e976a)break;else _0x5dd1be['push'](_0x5dd1be['shift']());}catch(_0xd96ce3){_0x5dd1be['push'](_0x5dd1be['shift']());}}}(a99_0x280a,0xa49e6));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 a99_0x3644(_0x406f5a,_0x4bd7da){_0x406f5a=_0x406f5a-0x9b;const _0x280af0=a99_0x280a();let _0x3644e2=_0x280af0[_0x406f5a];return _0x3644e2;}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(_0x1fc8a7,_0x2fd612,_0x539867={}){const _0x5ef64a=a99_0x3644,_0x17e9e4=resolvePushDirectoryRoot(_0x1fc8a7),_0x3c9572=readMetadataIfPresent(resolve(_0x17e9e4,METADATA_FILE));if(_0x3c9572?.[_0x5ef64a(0xbd)]&&_0x3c9572['appCode']!==_0x2fd612&&!_0x539867[_0x5ef64a(0x9c)])throw CliErrors[_0x5ef64a(0xcb)]('Skill\x20metadata\x20appCode\x20\x22'+_0x3c9572[_0x5ef64a(0xbd)]+_0x5ef64a(0xc6)+_0x2fd612+'\x22.');const _0x490e37=_0x3c9572?.[_0x5ef64a(0xc7)]?.['trim']()||deriveSkillCodeFromDirectory(_0x17e9e4,_0x2fd612);if(!_0x490e37)throw CliErrors[_0x5ef64a(0xcb)](_0x5ef64a(0xb2)+METADATA_FILE+_0x5ef64a(0xc0));return{'dir':_0x17e9e4,'skillCode':_0x490e37,'metadata':_0x3c9572};}export function readPushDirectory(_0xdbb200,_0xef726f,_0x4c2e67={}){const _0x8495ce=a99_0x3644,_0x5ddd50=resolvePushDirectoryIdentity(_0xdbb200,_0xef726f,_0x4c2e67),_0x1aee6=_0x5ddd50[_0x8495ce(0xc3)],_0x2caceb=resolve(_0x1aee6,SKILL_FILE);if(!existsSync(_0x2caceb)||!lstatSync(_0x2caceb)[_0x8495ce(0xc9)]())throw CliErrors[_0x8495ce(0xcb)](_0x8495ce(0xb3)+SKILL_FILE+':\x20'+_0x2caceb);const _0x45acd8=_0x5ddd50[_0x8495ce(0xa5)],_0x52a979=_0x4c2e67[_0x8495ce(0xa0)]??_0x8495ce(0xb5);if(_0x45acd8?.[_0x8495ce(0xad)]===_0x8495ce(0xb9))throw CliErrors[_0x8495ce(0xcb)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x8495ce(0x9d)+_0x45acd8[_0x8495ce(0xad)]+'\x22.');if(_0x52a979==='personal'&&_0x45acd8?.['scope']&&_0x45acd8[_0x8495ce(0xad)]!==_0x8495ce(0xb5))throw CliErrors[_0x8495ce(0xcb)](_0x8495ce(0xcf)+METADATA_FILE+_0x8495ce(0x9d)+_0x45acd8['scope']+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x1aee6+_0x8495ce(0xc2));const _0x1c20bc=scanSkillDirectory(_0x1aee6),_0x1e1182=buildSkillPackage(_0x1c20bc),_0x534fd3=readFileSync(_0x2caceb,_0x8495ce(0xac)),_0x11b6f3=_0x5ddd50[_0x8495ce(0xc7)];return{'skillCode':_0x11b6f3,'metadata':_0x45acd8,'input':{'skillCode':_0x11b6f3,'skillName':_0x45acd8?.[_0x8495ce(0xb0)],'description':_0x45acd8?.[_0x8495ce(0xaa)],'content':_0x534fd3,'files':_0x1e1182[_0x8495ce(0xcc)],'packageBase64':_0x1e1182[_0x8495ce(0xbf)],'tags':_0x45acd8?.['tags'],'version':_0x45acd8?.[_0x8495ce(0xbe)],'sourceSessionId':_0x45acd8?.[_0x8495ce(0xae)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x96914c,_0x1c22e9,_0x4e593c,_0x9a41f0={}){const _0x513ad3=a99_0x3644,_0x5349bd=resolvePushDirectoryRoot(_0x96914c),_0x2e9922=readMetadataIfPresent(resolve(_0x5349bd,METADATA_FILE)),_0x20b22b=requireRemoteScope(_0x1c22e9),_0x2a9b9f=readLocalSkillContent(_0x5349bd),_0x3ab6c3={..._0x1c22e9,'appCode':_0x1c22e9['appCode']??_0x4e593c,'skillName':_0x1c22e9['skillName']??_0x2e9922?.['skillName'],'description':_0x1c22e9[_0x513ad3(0xaa)]??_0x2e9922?.[_0x513ad3(0xaa)],'tags':Array[_0x513ad3(0xa8)](_0x1c22e9[_0x513ad3(0x9e)])?_0x1c22e9[_0x513ad3(0x9e)]:_0x2e9922?.[_0x513ad3(0x9e)],'sourceSessionId':_0x1c22e9[_0x513ad3(0xae)]??_0x2e9922?.[_0x513ad3(0xae)],'content':_0x1c22e9[_0x513ad3(0xc5)]??_0x2a9b9f},_0x2b97e0=buildMetadata(_0x3ab6c3,_0x20b22b,_0x4e593c,contentHash(_0x2a9b9f),_0x9a41f0[_0x513ad3(0xa3)]);writeJsonAtomic(resolve(_0x5349bd,METADATA_FILE),_0x2b97e0);}function a99_0x280a(){const _0x35edb3=['metadata','isDirectory','9oCmMoB','isArray','7080600STfyDA','description','\x20has\x20unsupported\x20scope\x20\x22','utf8','scope','sourceSessionId','files','skillName','89418XNgBGm','Unable\x20to\x20resolve\x20skillCode\x20from\x20','Missing\x20','unknown','personal','path','(unknown)','24643650tLFGcj','builtin','some','2125632jgDKWa','company','appCode','version','packageBase64','\x20or\x20directory\x20name.','isSymbolicLink','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','dir','4908ubdoSb','content','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','skillCode','273960nahYBL','isFile','length','validation','manifest','find','Skill\x20directory\x20not\x20found:\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','3KMQjww','allowAppCodeRetarget','\x20has\x20scope=\x22','tags','7931413MvwLbt','targetScope','filter','6590OyHgsx','refreshedAt','startsWith'];a99_0x280a=function(){return _0x35edb3;};return a99_0x280a();}export function recordPushedRuntimeSkill(_0x36d957,_0x24ca62,_0x4fb65a,_0x4399e6={}){const _0x2d9603=a99_0x3644,_0x16e587=resolvePushDirectoryRoot(_0x36d957),_0xeb185c=scanSkillDirectory(_0x16e587),_0x3ec5cf=_0xeb185c[_0x2d9603(0xcd)](_0x13ae86=>_0x13ae86[_0x2d9603(0xb6)]===SKILL_FILE),_0x1c2aa7=_0x3ec5cf?fileText(_0x3ec5cf):'',_0x1ace69=tryNormalizePackageManifest(_0x24ca62[_0x2d9603(0xaf)]),_0x35a156={..._0x24ca62,'content':_0x24ca62[_0x2d9603(0xc5)]??_0x1c2aa7,'files':_0x1ace69},_0x137903=_0x1ace69?normalizeLocalFiles(_0xeb185c)[_0x2d9603(0xa1)](_0x47f44d=>_0x1ace69[_0x2d9603(0xaf)][_0x2d9603(0xba)](_0x4e9e1e=>_0x4e9e1e[_0x2d9603(0xb6)]===_0x47f44d['path'])):undefined,_0x2905b0=buildMetadata(_0x35a156,_0x4399e6[_0x2d9603(0xad)]??'personal',_0x4fb65a,contentHash(_0x35a156[_0x2d9603(0xc5)]??''),_0x4399e6['pushedAt'],_0x137903);writeJsonAtomic(resolve(_0x16e587,METADATA_FILE),_0x2905b0);}export function deriveSkillCodeFromDirectory(_0x16fe08,_0xf5b2a4){const _0x22ab37=a99_0x3644,_0x317a13=basename(resolve(_0x16fe08)),_0x119975=_0xf5b2a4+'--';return _0x317a13[_0x22ab37(0xa4)](_0x119975)?_0x317a13['slice'](_0x119975[_0x22ab37(0xca)]):_0x317a13;}function resolvePushDirectoryRoot(_0x58031d){const _0x2f222a=a99_0x3644,_0x1779a7=resolve(_0x58031d);if(!existsSync(_0x1779a7))throw CliErrors[_0x2f222a(0xcb)](_0x2f222a(0xce)+_0x58031d);const _0x3cecc7=lstatSync(_0x1779a7);if(_0x3cecc7[_0x2f222a(0xa6)]())return _0x1779a7;if(_0x3cecc7[_0x2f222a(0xc1)]()){const _0x45450f=realpathSync(_0x1779a7);if(lstatSync(_0x45450f)[_0x2f222a(0xa6)]())return _0x45450f;}throw CliErrors[_0x2f222a(0xcb)]('Skill\x20directory\x20not\x20found:\x20'+_0x58031d);}function requireRemoteScope(_0x10bf53){const _0x44e18a=a99_0x3644;if(_0x10bf53['scope']===_0x44e18a(0xb5)||_0x10bf53[_0x44e18a(0xad)]===_0x44e18a(0xbc)||_0x10bf53[_0x44e18a(0xad)]===_0x44e18a(0xb9))return _0x10bf53[_0x44e18a(0xad)];throw CliErrors[_0x44e18a(0xcb)]('Remote\x20Skill\x20'+(_0x10bf53[_0x44e18a(0xc7)]||_0x44e18a(0xb7))+_0x44e18a(0xab)+(_0x10bf53['scope']??_0x44e18a(0xb4))+'\x22.');}function readLocalSkillContent(_0x2b9c89){const _0xf3ade4=a99_0x3644,_0x191b50=resolve(_0x2b9c89,SKILL_FILE);return existsSync(_0x191b50)&&lstatSync(_0x191b50)[_0xf3ade4(0xc9)]()?readFileSync(_0x191b50,_0xf3ade4(0xac)):'';}
@@ -1 +1 @@
1
- (function(_0xbf7420,_0x2758da){const _0x3e5a1b=a100_0x195f,_0x135a93=_0xbf7420();while(!![]){try{const _0x164d23=parseInt(_0x3e5a1b(0xcf))/0x1+parseInt(_0x3e5a1b(0xc5))/0x2*(parseInt(_0x3e5a1b(0xc9))/0x3)+parseInt(_0x3e5a1b(0xd0))/0x4*(parseInt(_0x3e5a1b(0xcd))/0x5)+-parseInt(_0x3e5a1b(0xd2))/0x6*(parseInt(_0x3e5a1b(0xc4))/0x7)+parseInt(_0x3e5a1b(0xcc))/0x8*(parseInt(_0x3e5a1b(0xca))/0x9)+parseInt(_0x3e5a1b(0xd4))/0xa+parseInt(_0x3e5a1b(0xc7))/0xb*(-parseInt(_0x3e5a1b(0xd5))/0xc);if(_0x164d23===_0x2758da)break;else _0x135a93['push'](_0x135a93['shift']());}catch(_0x321fc6){_0x135a93['push'](_0x135a93['shift']());}}}(a100_0x2c4c,0xa725f));import{CliErrors}from'../../errors.js';function a100_0x2c4c(){const _0x1dca9e=['896244wLppsT','personal','762NjABDQ','length','13137120WcYhDy','15091176iNqbeT','validation','3983NrrUvc','34ulEbgX','builtin','22EhDual','company','70998NOvQsn','2070HynYkZ','push','21136zSQVKB','5ntoXST','Unsupported\x20runtime\x20Skill\x20scope:\x20','724343bYyqUV'];a100_0x2c4c=function(){return _0x1dca9e;};return a100_0x2c4c();}function a100_0x195f(_0x43e6a4,_0x288de3){_0x43e6a4=_0x43e6a4-0xc4;const _0x2c4c23=a100_0x2c4c();let _0x195f07=_0x2c4c23[_0x43e6a4];return _0x195f07;}export function normalizeRuntimeSkillScopes(_0x2c6cb8){const _0x4e8da8=a100_0x195f,_0x52bf92=_0x2c6cb8&&_0x2c6cb8[_0x4e8da8(0xd3)]>0x0?_0x2c6cb8:[_0x4e8da8(0xd1),_0x4e8da8(0xc8),_0x4e8da8(0xc6)],_0x5c960d=[];for(const _0x510bf1 of _0x52bf92){if(!isRuntimeSkillScope(_0x510bf1))throw CliErrors[_0x4e8da8(0xd6)](_0x4e8da8(0xce)+_0x510bf1);!_0x5c960d['includes'](_0x510bf1)&&_0x5c960d[_0x4e8da8(0xcb)](_0x510bf1);}return _0x5c960d;}export function isRuntimeSkillScope(_0x5d1ecc){const _0x2dc6ef=a100_0x195f;return _0x5d1ecc==='personal'||_0x5d1ecc==='company'||_0x5d1ecc===_0x2dc6ef(0xc6);}
1
+ function a100_0xa849(){const _0x5de5b5=['208UKrgpY','validation','Unsupported\x20runtime\x20Skill\x20scope:\x20','612639YWjrwu','385057lWrPGA','company','1824685nMrPoI','51268AuPrhR','9dRIRoa','includes','length','2119190mBIIUL','push','4TqNwgO','594540iuVcUl','10369931cbhwfM','personal','builtin','4mbGzoF'];a100_0xa849=function(){return _0x5de5b5;};return a100_0xa849();}(function(_0x3fe6cd,_0x4ebf83){const _0x3e074b=a100_0x3287,_0x452011=_0x3fe6cd();while(!![]){try{const _0x500923=-parseInt(_0x3e074b(0x142))/0x1+parseInt(_0x3e074b(0x13d))/0x2*(-parseInt(_0x3e074b(0x141))/0x3)+parseInt(_0x3e074b(0x138))/0x4*(parseInt(_0x3e074b(0x144))/0x5)+parseInt(_0x3e074b(0x139))/0x6+-parseInt(_0x3e074b(0x145))/0x7*(parseInt(_0x3e074b(0x13e))/0x8)+parseInt(_0x3e074b(0x133))/0x9*(-parseInt(_0x3e074b(0x136))/0xa)+parseInt(_0x3e074b(0x13a))/0xb;if(_0x500923===_0x4ebf83)break;else _0x452011['push'](_0x452011['shift']());}catch(_0x1ce7ec){_0x452011['push'](_0x452011['shift']());}}}(a100_0xa849,0x337ea));function a100_0x3287(_0x4193f1,_0xb1aee7){_0x4193f1=_0x4193f1-0x133;const _0xa849fc=a100_0xa849();let _0x3287de=_0xa849fc[_0x4193f1];return _0x3287de;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x25c22a){const _0x55548b=a100_0x3287,_0x450b60=_0x25c22a&&_0x25c22a[_0x55548b(0x135)]>0x0?_0x25c22a:['personal',_0x55548b(0x143),_0x55548b(0x13c)],_0x1e28a4=[];for(const _0x3d64c9 of _0x450b60){if(!isRuntimeSkillScope(_0x3d64c9))throw CliErrors[_0x55548b(0x13f)](_0x55548b(0x140)+_0x3d64c9);!_0x1e28a4[_0x55548b(0x134)](_0x3d64c9)&&_0x1e28a4[_0x55548b(0x137)](_0x3d64c9);}return _0x1e28a4;}export function isRuntimeSkillScope(_0x4134c9){const _0x58f4f2=a100_0x3287;return _0x4134c9===_0x58f4f2(0x13b)||_0x4134c9===_0x58f4f2(0x143)||_0x4134c9==='builtin';}
@@ -1 +1 @@
1
- const a102_0x152eda=a102_0x17a4;(function(_0x193088,_0x35f466){const _0x16674b=a102_0x17a4,_0x16f9ab=_0x193088();while(!![]){try{const _0x33f4f6=-parseInt(_0x16674b(0x91))/0x1+parseInt(_0x16674b(0x84))/0x2*(-parseInt(_0x16674b(0x85))/0x3)+-parseInt(_0x16674b(0x8a))/0x4+parseInt(_0x16674b(0x88))/0x5*(parseInt(_0x16674b(0x95))/0x6)+parseInt(_0x16674b(0x83))/0x7*(-parseInt(_0x16674b(0x8b))/0x8)+-parseInt(_0x16674b(0x8f))/0x9*(-parseInt(_0x16674b(0x89))/0xa)+parseInt(_0x16674b(0x80))/0xb;if(_0x33f4f6===_0x35f466)break;else _0x16f9ab['push'](_0x16f9ab['shift']());}catch(_0x467160){_0x16f9ab['push'](_0x16f9ab['shift']());}}}(a102_0x1ee6,0x2c1bb));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a102_0x152eda(0x8e));function a102_0x17a4(_0x1f83ce,_0x1fc3dd){_0x1f83ce=_0x1f83ce-0x7f;const _0x1ee6c5=a102_0x1ee6();let _0x17a4f3=_0x1ee6c5[_0x1f83ce];return _0x17a4f3;}export function createDeterministicZipPackage(_0x2faea4){const _0x176aa2=a102_0x152eda,_0x1e31cb={};for(const _0x5a9b42 of normalizeLocalFiles(_0x2faea4)){_0x1e31cb[_0x5a9b42[_0x176aa2(0x86)]]=fileContent(_0x5a9b42);}return Buffer['from'](zipSync(_0x1e31cb,{'level':0x0,'mtime':ZIP_MTIME}));}function a102_0x1ee6(){const _0x1fa1f1=['path','map','844765urPwFV','410YKWhCS','1262416qPmbOg','10792mATchC','validation_error','endsWith','1980-01-01T00:00:00.000Z','29925pmhhzq','length','338737Zxnvbg','code','name','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','6SsYZIx','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','entries','from','sort','8855363XKZAUu','validation','object','189SHmWeS','32jJYmLE','44790EMDcLd'];a102_0x1ee6=function(){return _0x1fa1f1;};return a102_0x1ee6();}export function parseZipPackage(_0x4b3836){const _0x1ce922=a102_0x152eda;if(_0x4b3836[_0x1ce922(0x90)]<0x16)throw CliErrors['validation'](_0x1ce922(0x94));let _0x1c8216;try{_0x1c8216=unzipSync(_0x4b3836,{'filter'(_0x340a7a){const _0xe9a760=_0x1ce922,_0x3b8ce7=normalizeSkillRelativePath(_0x340a7a[_0xe9a760(0x93)]);if(_0x3b8ce7[_0xe9a760(0x8d)]('/'))throw CliErrors['validation'](_0xe9a760(0x96)+_0x3b8ce7);return!![];}});}catch(_0x592443){if(isRuntimeSkillValidationError(_0x592443))throw _0x592443;throw CliErrors[_0x1ce922(0x81)](_0x1ce922(0x94));}return Object[_0x1ce922(0x97)](_0x1c8216)[_0x1ce922(0x87)](([_0x5186d3,_0x437184])=>({'path':normalizeSkillRelativePath(_0x5186d3),'bytes':Buffer[_0x1ce922(0x98)](_0x437184)}))[_0x1ce922(0x7f)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3960e8){const _0x44c2c7=a102_0x152eda;return typeof _0x3960e8===_0x44c2c7(0x82)&&_0x3960e8!==null&&'code'in _0x3960e8&&_0x3960e8[_0x44c2c7(0x92)]===_0x44c2c7(0x8c);}
1
+ const a102_0x553462=a102_0x4803;(function(_0x2dfd99,_0x505279){const _0x10303b=a102_0x4803,_0x2146f5=_0x2dfd99();while(!![]){try{const _0x871c7c=-parseInt(_0x10303b(0xb0))/0x1*(parseInt(_0x10303b(0x9c))/0x2)+parseInt(_0x10303b(0xb1))/0x3*(-parseInt(_0x10303b(0x9a))/0x4)+parseInt(_0x10303b(0xa5))/0x5*(-parseInt(_0x10303b(0x9b))/0x6)+-parseInt(_0x10303b(0xa9))/0x7*(parseInt(_0x10303b(0xa2))/0x8)+-parseInt(_0x10303b(0xa1))/0x9*(parseInt(_0x10303b(0xa3))/0xa)+-parseInt(_0x10303b(0xac))/0xb+parseInt(_0x10303b(0xad))/0xc;if(_0x871c7c===_0x505279)break;else _0x2146f5['push'](_0x2146f5['shift']());}catch(_0x45db5d){_0x2146f5['push'](_0x2146f5['shift']());}}}(a102_0x3617,0xdc883));function a102_0x4803(_0x4996bc,_0x224bc5){_0x4996bc=_0x4996bc-0x9a;const _0x36176e=a102_0x3617();let _0x48034e=_0x36176e[_0x4996bc];return _0x48034e;}import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a102_0x3617(){const _0x57dce3=['14504hTMHvC','1748496izFwKd','611980HNPjHr','entries','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','path','endsWith','9382626nzeaCr','5429296nNCMCP','10brKfuI','validation','25aGislM','sort','from','1980-01-01T00:00:00.000Z','14sJxTnu','code','map','16362478CQrNsF','88782756atCYCm','name','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1vzIxmE','699MOyHMv'];a102_0x3617=function(){return _0x57dce3;};return a102_0x3617();}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a102_0x553462(0xa8));export function createDeterministicZipPackage(_0x2a498e){const _0x14e5a7=a102_0x553462,_0x5dd3c6={};for(const _0x1b640b of normalizeLocalFiles(_0x2a498e)){_0x5dd3c6[_0x1b640b[_0x14e5a7(0x9f)]]=fileContent(_0x1b640b);}return Buffer[_0x14e5a7(0xa7)](zipSync(_0x5dd3c6,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x397ec3){const _0x45688e=a102_0x553462;if(_0x397ec3['length']<0x16)throw CliErrors[_0x45688e(0xa4)](_0x45688e(0x9e));let _0xb6bcbf;try{_0xb6bcbf=unzipSync(_0x397ec3,{'filter'(_0x485730){const _0x5a43b5=_0x45688e,_0x50a5d5=normalizeSkillRelativePath(_0x485730[_0x5a43b5(0xae)]);if(_0x50a5d5[_0x5a43b5(0xa0)]('/'))throw CliErrors['validation'](_0x5a43b5(0xaf)+_0x50a5d5);return!![];}});}catch(_0x24e3ec){if(isRuntimeSkillValidationError(_0x24e3ec))throw _0x24e3ec;throw CliErrors[_0x45688e(0xa4)](_0x45688e(0x9e));}return Object[_0x45688e(0x9d)](_0xb6bcbf)[_0x45688e(0xab)](([_0x2bc060,_0x5a206e])=>({'path':normalizeSkillRelativePath(_0x2bc060),'bytes':Buffer['from'](_0x5a206e)}))[_0x45688e(0xa6)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x443019){const _0x4c063c=a102_0x553462;return typeof _0x443019==='object'&&_0x443019!==null&&'code'in _0x443019&&_0x443019[_0x4c063c(0xaa)]==='validation_error';}
@@ -1 +1 @@
1
- (function(_0x4a7a34,_0x164c89){const _0x351a51=a103_0x250b,_0x16c94c=_0x4a7a34();while(!![]){try{const _0x1329a0=-parseInt(_0x351a51(0x148))/0x1+parseInt(_0x351a51(0x138))/0x2*(-parseInt(_0x351a51(0x150))/0x3)+-parseInt(_0x351a51(0x132))/0x4*(-parseInt(_0x351a51(0x140))/0x5)+parseInt(_0x351a51(0x151))/0x6*(-parseInt(_0x351a51(0x13b))/0x7)+-parseInt(_0x351a51(0x15b))/0x8*(parseInt(_0x351a51(0x13c))/0x9)+parseInt(_0x351a51(0x152))/0xa+parseInt(_0x351a51(0x13f))/0xb*(parseInt(_0x351a51(0x149))/0xc);if(_0x1329a0===_0x164c89)break;else _0x16c94c['push'](_0x16c94c['shift']());}catch(_0x1746f0){_0x16c94c['push'](_0x16c94c['shift']());}}}(a103_0x1bf2,0x23566));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a103_0x250b(_0x495af8,_0x59d7ba){_0x495af8=_0x495af8-0x130;const _0x1bf2d6=a103_0x1bf2();let _0x250b27=_0x1bf2d6[_0x495af8];return _0x250b27;}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x18786f){const _0x46dc4c=a103_0x250b,_0x148c49=normalizeLocalFiles(_0x18786f);if(!_0x148c49[_0x46dc4c(0x133)](_0x173671=>_0x173671[_0x46dc4c(0x155)]===SKILL_FILE))throw CliErrors['validation']('Missing\x20'+SKILL_FILE+_0x46dc4c(0x137));const _0x769c54=localFilesToManifestFiles(_0x148c49),_0x4d1f56=createDeterministicZipPackage(_0x148c49);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x769c54),'zipSha256':bufferSha256(_0x4d1f56),'zipSize':_0x4d1f56[_0x46dc4c(0x14e)],'files':_0x769c54},'packageBytes':_0x4d1f56,'packageBase64':_0x4d1f56[_0x46dc4c(0x13a)](_0x46dc4c(0x143))};}export function verifyRuntimeSkillPackage(_0x4c32f3,_0x35f88c){const _0x150ab2=a103_0x250b,_0x55ec93=normalizePackageManifest(_0x4c32f3,{'requireOssPath':![]});if(!_0x55ec93)throw CliErrors[_0x150ab2(0x139)](_0x150ab2(0x145));return extractAndVerifyPackage(_0x55ec93,_0x35f88c);}export function verifyRuntimeSkillBundle(_0x53a964,_0x3c4b11){const _0x542a83=a103_0x250b,_0x12d059=normalizePackageManifest(_0x53a964,{'requireOssPath':![]});if(!_0x12d059)throw CliErrors[_0x542a83(0x139)](_0x542a83(0x145));return extractAndVerifyPackageFiles(_0x12d059,_0x3c4b11);}export function tryNormalizePackageManifest(_0x3ae0d2){return normalizePackageManifest(_0x3ae0d2,{'requireOssPath':![]});}export function requirePackageBytes(_0x346780,_0x687dbb){const _0x55c5ac=a103_0x250b;if(!_0x687dbb||_0x687dbb[_0x55c5ac(0x14e)]===0x0)throw CliErrors[_0x55c5ac(0x139)](_0x55c5ac(0x146)+_0x346780);return _0x687dbb;}export function extractDownloadedPackage(_0x1808e2){const _0x3e0ac1=a103_0x250b,_0x1d270a=parseZipPackage(_0x1808e2)['map'](_0xb3e5f2=>({'path':_0xb3e5f2[_0x3e0ac1(0x155)],'bytes':_0xb3e5f2[_0x3e0ac1(0x14f)]}));if(!_0x1d270a[_0x3e0ac1(0x133)](_0x4f409c=>_0x4f409c['path']===SKILL_FILE))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+'.');return normalizeLocalFiles(_0x1d270a);}export function localFilesToManifestFiles(_0x38aa53){const _0x2a2c55=a103_0x250b;return normalizeLocalFiles(_0x38aa53)['map'](_0x1677c3=>({'path':_0x1677c3['path'],'sha256':fileHash(_0x1677c3),'size':fileContent(_0x1677c3)[_0x2a2c55(0x14e)]}));}function normalizePackageManifest(_0x2ba673,_0x428146){const _0xefd0a9=a103_0x250b;if(!_0x2ba673||typeof _0x2ba673!==_0xefd0a9(0x15c)||Array['isArray'](_0x2ba673))return undefined;const _0x1a8e3c=_0x2ba673,_0x1a7851=typeof _0x1a8e3c[_0xefd0a9(0x142)]==='string'?_0x1a8e3c[_0xefd0a9(0x142)]['trim']():undefined;if(_0x428146[_0xefd0a9(0x130)]&&!_0x1a7851)return undefined;if(!Array['isArray'](_0x1a8e3c[_0xefd0a9(0x14b)])||_0x1a8e3c[_0xefd0a9(0x14b)][_0xefd0a9(0x14e)]===0x0)return undefined;if(!isSha256Hex(_0x1a8e3c['treeSha256']))throw CliErrors[_0xefd0a9(0x139)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x1a8e3c['zipSha256']))throw CliErrors[_0xefd0a9(0x139)](_0xefd0a9(0x134));if(!Number['isSafeInteger'](_0x1a8e3c[_0xefd0a9(0x14d)])||_0x1a8e3c[_0xefd0a9(0x14d)]<0x0)throw CliErrors[_0xefd0a9(0x139)](_0xefd0a9(0x153));const _0x43f73d=normalizeManifestFiles(_0x1a8e3c[_0xefd0a9(0x14b)]);if(!_0x43f73d['some'](_0x1cfd1c=>_0x1cfd1c[_0xefd0a9(0x155)]===SKILL_FILE))throw CliErrors[_0xefd0a9(0x139)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x321f57=fileTreeHash(_0x43f73d);if(_0x321f57!==_0x1a8e3c['treeSha256'][_0xefd0a9(0x147)]())throw CliErrors[_0xefd0a9(0x139)](_0xefd0a9(0x14a));return{'schemaVersion':Number[_0xefd0a9(0x154)](_0x1a8e3c[_0xefd0a9(0x135)])?_0x1a8e3c[_0xefd0a9(0x135)]:0x2,'ossPath':_0x1a7851,'treeSha256':_0x321f57,'zipSha256':_0x1a8e3c['zipSha256']['toLowerCase'](),'zipSize':_0x1a8e3c[_0xefd0a9(0x14d)],'files':_0x43f73d};}function a103_0x1bf2(){const _0x3d78fc=['60aWcDwc','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','files','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','zipSize','length','bytes','172428aplAdK','4974PkeMAP','1224910WZwVwS','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','isSafeInteger','path','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','push','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','sha256','zipSha256','424pCSHoF','object','requireOssPath','size','8hzTVaQ','some','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','schemaVersion','Duplicate\x20Skill\x20package\x20entry:\x20','\x20in\x20Skill\x20file\x20package.','6EAyHgN','validation','toString','49DjdDoF','2529ECMDpU','has','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','496474hShLXh','179710tQjQpx','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','ossPath','base64','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','toLowerCase','82179UtuCft'];a103_0x1bf2=function(){return _0x3d78fc;};return a103_0x1bf2();}function extractAndVerifyPackage(_0x3e5e7d,_0x27bd87){const _0x20fcd5=a103_0x250b,_0x5575b4=normalizePackageManifest(_0x3e5e7d,{'requireOssPath':![]});if(!_0x5575b4)throw CliErrors[_0x20fcd5(0x139)](_0x20fcd5(0x145));if(_0x27bd87[_0x20fcd5(0x14e)]!==_0x5575b4[_0x20fcd5(0x14d)])throw CliErrors[_0x20fcd5(0x139)](_0x20fcd5(0x144));const _0x454e8b=bufferSha256(_0x27bd87);if(_0x454e8b!==_0x5575b4[_0x20fcd5(0x15a)])throw CliErrors[_0x20fcd5(0x139)](_0x20fcd5(0x141));return extractAndVerifyPackageFiles(_0x5575b4,_0x27bd87);}function extractAndVerifyPackageFiles(_0x371462,_0x305ba4){const _0x231c49=a103_0x250b,_0x4464c7=parseZipPackage(_0x305ba4);if(_0x4464c7['length']!==_0x371462[_0x231c49(0x14b)][_0x231c49(0x14e)])throw CliErrors['validation'](_0x231c49(0x14c));const _0x503b2a=new Map();for(const _0x16c92c of _0x4464c7){if(_0x503b2a[_0x231c49(0x13d)](_0x16c92c[_0x231c49(0x155)]))throw CliErrors[_0x231c49(0x139)](_0x231c49(0x136)+_0x16c92c[_0x231c49(0x155)]);_0x503b2a['set'](_0x16c92c[_0x231c49(0x155)],_0x16c92c);}const _0x376d07=[];for(const _0x50df5a of _0x371462[_0x231c49(0x14b)]){const _0x28d9c9=_0x503b2a['get'](_0x50df5a[_0x231c49(0x155)]);if(!_0x28d9c9)throw CliErrors['validation'](_0x231c49(0x156)+_0x50df5a[_0x231c49(0x155)]);if(_0x28d9c9[_0x231c49(0x14f)][_0x231c49(0x14e)]!==_0x50df5a[_0x231c49(0x131)])throw CliErrors[_0x231c49(0x139)](_0x231c49(0x13e)+_0x50df5a[_0x231c49(0x155)]);const _0x583080=bufferSha256(_0x28d9c9['bytes']);if(_0x583080!==_0x50df5a[_0x231c49(0x159)])throw CliErrors[_0x231c49(0x139)](_0x231c49(0x158)+_0x50df5a[_0x231c49(0x155)]);_0x376d07[_0x231c49(0x157)]({'path':_0x50df5a['path'],'bytes':_0x28d9c9[_0x231c49(0x14f)]});}return normalizeLocalFiles(_0x376d07);}
1
+ (function(_0x11b97e,_0x29e4dc){const _0x3dcca0=a103_0x3bf6,_0x233d5d=_0x11b97e();while(!![]){try{const _0x360ecf=-parseInt(_0x3dcca0(0x7c))/0x1+-parseInt(_0x3dcca0(0x98))/0x2*(parseInt(_0x3dcca0(0x73))/0x3)+-parseInt(_0x3dcca0(0x8f))/0x4+-parseInt(_0x3dcca0(0x7e))/0x5*(parseInt(_0x3dcca0(0x87))/0x6)+parseInt(_0x3dcca0(0x76))/0x7*(parseInt(_0x3dcca0(0x96))/0x8)+-parseInt(_0x3dcca0(0x79))/0x9*(-parseInt(_0x3dcca0(0x86))/0xa)+parseInt(_0x3dcca0(0x92))/0xb*(parseInt(_0x3dcca0(0x82))/0xc);if(_0x360ecf===_0x29e4dc)break;else _0x233d5d['push'](_0x233d5d['shift']());}catch(_0x3f8c62){_0x233d5d['push'](_0x233d5d['shift']());}}}(a103_0x149b,0xaa10c));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x3e3e04){const _0x44f07c=a103_0x3bf6,_0x3a48b0=normalizeLocalFiles(_0x3e3e04);if(!_0x3a48b0[_0x44f07c(0x95)](_0x467d25=>_0x467d25[_0x44f07c(0x8b)]===SKILL_FILE))throw CliErrors[_0x44f07c(0x70)](_0x44f07c(0x88)+SKILL_FILE+_0x44f07c(0x6e));const _0xa9a475=localFilesToManifestFiles(_0x3a48b0),_0x1d2420=createDeterministicZipPackage(_0x3a48b0);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0xa9a475),'zipSha256':bufferSha256(_0x1d2420),'zipSize':_0x1d2420[_0x44f07c(0x97)],'files':_0xa9a475},'packageBytes':_0x1d2420,'packageBase64':_0x1d2420[_0x44f07c(0x7a)](_0x44f07c(0x90))};}export function verifyRuntimeSkillPackage(_0x4600b5,_0x22096b){const _0x5d09a5=a103_0x3bf6,_0xdd8863=normalizePackageManifest(_0x4600b5,{'requireOssPath':![]});if(!_0xdd8863)throw CliErrors[_0x5d09a5(0x70)](_0x5d09a5(0x7f));return extractAndVerifyPackage(_0xdd8863,_0x22096b);}function a103_0x3bf6(_0x5d5b19,_0x2e612e){_0x5d5b19=_0x5d5b19-0x6c;const _0x149bbf=a103_0x149b();let _0x3bf6e6=_0x149bbf[_0x5d5b19];return _0x3bf6e6;}export function verifyRuntimeSkillBundle(_0x53accd,_0x407991){const _0x2a096e=a103_0x3bf6,_0x384215=normalizePackageManifest(_0x53accd,{'requireOssPath':![]});if(!_0x384215)throw CliErrors[_0x2a096e(0x70)](_0x2a096e(0x7f));return extractAndVerifyPackageFiles(_0x384215,_0x407991);}export function tryNormalizePackageManifest(_0x5994b0){return normalizePackageManifest(_0x5994b0,{'requireOssPath':![]});}export function requirePackageBytes(_0x2123a2,_0x301157){const _0xf40a6e=a103_0x3bf6;if(!_0x301157||_0x301157[_0xf40a6e(0x97)]===0x0)throw CliErrors[_0xf40a6e(0x70)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x2123a2);return _0x301157;}export function extractDownloadedPackage(_0x5f35ae){const _0x53e5d3=a103_0x3bf6,_0x46a92a=parseZipPackage(_0x5f35ae)[_0x53e5d3(0x8a)](_0x5dc152=>({'path':_0x5dc152[_0x53e5d3(0x8b)],'bytes':_0x5dc152[_0x53e5d3(0x93)]}));if(!_0x46a92a['some'](_0x54fee0=>_0x54fee0['path']===SKILL_FILE))throw CliErrors[_0x53e5d3(0x70)](_0x53e5d3(0x83)+SKILL_FILE+'.');return normalizeLocalFiles(_0x46a92a);}function a103_0x149b(){const _0x4d5699=['393390AtrUYh','get','260azFmND','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','treeSha256','isSafeInteger','660456SBPUZJ','Runtime\x20Skill\x20package\x20is\x20missing\x20','sha256','string','1210aSfKiB','95130NyZSuP','Missing\x20','trim','map','path','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','3260228xHnAER','base64','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','352hUVbnN','bytes','schemaVersion','some','8twYEQg','length','14CppOLp','set','requireOssPath','zipSize','Duplicate\x20Skill\x20package\x20entry:\x20','\x20in\x20Skill\x20file\x20package.','isArray','validation','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','ossPath','315303JWvUvI','files','has','8286649KzpDPT','push','zipSha256','38691FXUVwi','toString','toLowerCase'];a103_0x149b=function(){return _0x4d5699;};return a103_0x149b();}export function localFilesToManifestFiles(_0x1a886d){const _0x8e69f1=a103_0x3bf6;return normalizeLocalFiles(_0x1a886d)[_0x8e69f1(0x8a)](_0x225015=>({'path':_0x225015['path'],'sha256':fileHash(_0x225015),'size':fileContent(_0x225015)[_0x8e69f1(0x97)]}));}function normalizePackageManifest(_0x3d4e64,_0x4a70d8){const _0x2218a4=a103_0x3bf6;if(!_0x3d4e64||typeof _0x3d4e64!=='object'||Array[_0x2218a4(0x6f)](_0x3d4e64))return undefined;const _0x1940f4=_0x3d4e64,_0x4728d1=typeof _0x1940f4[_0x2218a4(0x72)]===_0x2218a4(0x85)?_0x1940f4[_0x2218a4(0x72)][_0x2218a4(0x89)]():undefined;if(_0x4a70d8[_0x2218a4(0x9a)]&&!_0x4728d1)return undefined;if(!Array[_0x2218a4(0x6f)](_0x1940f4[_0x2218a4(0x74)])||_0x1940f4[_0x2218a4(0x74)][_0x2218a4(0x97)]===0x0)return undefined;if(!isSha256Hex(_0x1940f4[_0x2218a4(0x80)]))throw CliErrors[_0x2218a4(0x70)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x1940f4[_0x2218a4(0x78)]))throw CliErrors[_0x2218a4(0x70)](_0x2218a4(0x71));if(!Number['isSafeInteger'](_0x1940f4[_0x2218a4(0x6c)])||_0x1940f4[_0x2218a4(0x6c)]<0x0)throw CliErrors[_0x2218a4(0x70)](_0x2218a4(0x8e));const _0x2337dc=normalizeManifestFiles(_0x1940f4[_0x2218a4(0x74)]);if(!_0x2337dc['some'](_0x1ed8a7=>_0x1ed8a7[_0x2218a4(0x8b)]===SKILL_FILE))throw CliErrors[_0x2218a4(0x70)](_0x2218a4(0x8c)+SKILL_FILE+'.');const _0x25a920=fileTreeHash(_0x2337dc);if(_0x25a920!==_0x1940f4[_0x2218a4(0x80)][_0x2218a4(0x7b)]())throw CliErrors[_0x2218a4(0x70)](_0x2218a4(0x8d));return{'schemaVersion':Number[_0x2218a4(0x81)](_0x1940f4[_0x2218a4(0x94)])?_0x1940f4[_0x2218a4(0x94)]:0x2,'ossPath':_0x4728d1,'treeSha256':_0x25a920,'zipSha256':_0x1940f4['zipSha256'][_0x2218a4(0x7b)](),'zipSize':_0x1940f4['zipSize'],'files':_0x2337dc};}function extractAndVerifyPackage(_0x2ea617,_0x4b7a14){const _0x5e4b5f=a103_0x3bf6,_0x31a188=normalizePackageManifest(_0x2ea617,{'requireOssPath':![]});if(!_0x31a188)throw CliErrors[_0x5e4b5f(0x70)](_0x5e4b5f(0x7f));if(_0x4b7a14[_0x5e4b5f(0x97)]!==_0x31a188[_0x5e4b5f(0x6c)])throw CliErrors[_0x5e4b5f(0x70)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x461979=bufferSha256(_0x4b7a14);if(_0x461979!==_0x31a188[_0x5e4b5f(0x78)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x31a188,_0x4b7a14);}function extractAndVerifyPackageFiles(_0x1c82cc,_0x38a747){const _0x3a8bdc=a103_0x3bf6,_0x419fc4=parseZipPackage(_0x38a747);if(_0x419fc4['length']!==_0x1c82cc['files'][_0x3a8bdc(0x97)])throw CliErrors[_0x3a8bdc(0x70)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x3f77e5=new Map();for(const _0x58a51f of _0x419fc4){if(_0x3f77e5[_0x3a8bdc(0x75)](_0x58a51f['path']))throw CliErrors['validation'](_0x3a8bdc(0x6d)+_0x58a51f[_0x3a8bdc(0x8b)]);_0x3f77e5[_0x3a8bdc(0x99)](_0x58a51f['path'],_0x58a51f);}const _0x2fb132=[];for(const _0x1a6ba4 of _0x1c82cc[_0x3a8bdc(0x74)]){const _0x43db0c=_0x3f77e5[_0x3a8bdc(0x7d)](_0x1a6ba4['path']);if(!_0x43db0c)throw CliErrors['validation'](_0x3a8bdc(0x91)+_0x1a6ba4[_0x3a8bdc(0x8b)]);if(_0x43db0c[_0x3a8bdc(0x93)][_0x3a8bdc(0x97)]!==_0x1a6ba4['size'])throw CliErrors[_0x3a8bdc(0x70)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x1a6ba4[_0x3a8bdc(0x8b)]);const _0x8af72c=bufferSha256(_0x43db0c[_0x3a8bdc(0x93)]);if(_0x8af72c!==_0x1a6ba4[_0x3a8bdc(0x84)])throw CliErrors[_0x3a8bdc(0x70)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x1a6ba4[_0x3a8bdc(0x8b)]);_0x2fb132[_0x3a8bdc(0x77)]({'path':_0x1a6ba4['path'],'bytes':_0x43db0c[_0x3a8bdc(0x93)]});}return normalizeLocalFiles(_0x2fb132);}
@@ -1 +1 @@
1
- (function(_0x476818,_0x4ef735){var _0x19e656=a104_0x4ea4,_0x160fa7=_0x476818();while(!![]){try{var _0x2327d8=parseInt(_0x19e656(0x116))/0x1+parseInt(_0x19e656(0x114))/0x2+parseInt(_0x19e656(0x117))/0x3*(-parseInt(_0x19e656(0x119))/0x4)+-parseInt(_0x19e656(0x113))/0x5*(-parseInt(_0x19e656(0x112))/0x6)+parseInt(_0x19e656(0x118))/0x7*(parseInt(_0x19e656(0x115))/0x8)+parseInt(_0x19e656(0x11b))/0x9+-parseInt(_0x19e656(0x11a))/0xa;if(_0x2327d8===_0x4ef735)break;else _0x160fa7['push'](_0x160fa7['shift']());}catch(_0x340fd2){_0x160fa7['push'](_0x160fa7['shift']());}}}(a104_0x579f,0x80261));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 a104_0x4ea4(_0x4bb613,_0x440726){_0x4bb613=_0x4bb613-0x112;var _0x579f4d=a104_0x579f();var _0x4ea40b=_0x579f4d[_0x4bb613];return _0x4ea40b;}function a104_0x579f(){var _0x5d7efd=['16893780egBSZI','4020543vFdEhs','366YWzUxP','11695QfntLz','2015828TbyVMF','191976yHMwfk','354197CBrksf','21159GTPtaT','161VidwNj','164KlidNc'];a104_0x579f=function(){return _0x5d7efd;};return a104_0x579f();}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(_0x29506d,_0x2e1cfd){var _0x1c27c1=a104_0x2278,_0x459ca9=_0x29506d();while(!![]){try{var _0x288d74=parseInt(_0x1c27c1(0x144))/0x1*(-parseInt(_0x1c27c1(0x147))/0x2)+-parseInt(_0x1c27c1(0x140))/0x3*(parseInt(_0x1c27c1(0x148))/0x4)+-parseInt(_0x1c27c1(0x145))/0x5+parseInt(_0x1c27c1(0x146))/0x6+-parseInt(_0x1c27c1(0x142))/0x7*(parseInt(_0x1c27c1(0x13e))/0x8)+parseInt(_0x1c27c1(0x141))/0x9+parseInt(_0x1c27c1(0x13f))/0xa*(parseInt(_0x1c27c1(0x143))/0xb);if(_0x288d74===_0x2e1cfd)break;else _0x459ca9['push'](_0x459ca9['shift']());}catch(_0x3fdf8c){_0x459ca9['push'](_0x459ca9['shift']());}}}(a104_0x3039,0xa72d6));function a104_0x3039(){var _0x11f62f=['6895812tLVNZY','2JprjJr','1052YUVZGn','15608DFVIGZ','3783930DkBnAa','8304zRldrJ','4604067ouJKXp','2443MRIubU','77xLllfC','1100789sXYLTA','5575930RIdeXE'];a104_0x3039=function(){return _0x11f62f;};return a104_0x3039();}export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a104_0x2278(_0x41ba01,_0x336da0){_0x41ba01=_0x41ba01-0x13e;var _0x3039d3=a104_0x3039();var _0x2278bd=_0x3039d3[_0x41ba01];return _0x2278bd;}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 +1 @@
1
- function a105_0x20b0(){const _0x372f1f=['55218zgUKtU','2033402PetWCl','87uifDfD','4380368EOCujS','1601126jKQbru','6GcXuoX','3275825rvqdaC','25978023zvpfNL','7075860axhwEg'];a105_0x20b0=function(){return _0x372f1f;};return a105_0x20b0();}(function(_0x334b97,_0x329366){const _0x3e6446=a105_0x2c17,_0x2c70a3=_0x334b97();while(!![]){try{const _0xf184b4=parseInt(_0x3e6446(0x194))/0x1+parseInt(_0x3e6446(0x199))/0x2*(parseInt(_0x3e6446(0x192))/0x3)+parseInt(_0x3e6446(0x198))/0x4+-parseInt(_0x3e6446(0x196))/0x5*(parseInt(_0x3e6446(0x195))/0x6)+-parseInt(_0x3e6446(0x19a))/0x7+parseInt(_0x3e6446(0x193))/0x8+-parseInt(_0x3e6446(0x197))/0x9;if(_0xf184b4===_0x329366)break;else _0x2c70a3['push'](_0x2c70a3['shift']());}catch(_0x566917){_0x2c70a3['push'](_0x2c70a3['shift']());}}}(a105_0x20b0,0xd85b8));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a105_0x2c17(_0x54653d,_0x3a9ae1){_0x54653d=_0x54653d-0x192;const _0x20b0ed=a105_0x20b0();let _0x2c174a=_0x20b0ed[_0x54653d];return _0x2c174a;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a105_0x74ca(){const _0x7a6382=['333254NgcGou','578277ulnsUb','2395045IUEzrK','7082614aXilSo','3JoVVkG','976812hEFbzG','5264360yJbTkp','460nsKRBJ','770433TTKkvO','16KjItle'];a105_0x74ca=function(){return _0x7a6382;};return a105_0x74ca();}(function(_0x231c6b,_0x54c6e2){const _0x58dccd=a105_0x3be8,_0x28cdf9=_0x231c6b();while(!![]){try{const _0x57593f=parseInt(_0x58dccd(0x1d3))/0x1*(parseInt(_0x58dccd(0x1cf))/0x2)+-parseInt(_0x58dccd(0x1cd))/0x3*(-parseInt(_0x58dccd(0x1ce))/0x4)+parseInt(_0x58dccd(0x1d1))/0x5+-parseInt(_0x58dccd(0x1ca))/0x6+parseInt(_0x58dccd(0x1d2))/0x7+parseInt(_0x58dccd(0x1cb))/0x8+parseInt(_0x58dccd(0x1d0))/0x9*(-parseInt(_0x58dccd(0x1cc))/0xa);if(_0x57593f===_0x54c6e2)break;else _0x28cdf9['push'](_0x28cdf9['shift']());}catch(_0x2548df){_0x28cdf9['push'](_0x28cdf9['shift']());}}}(a105_0x74ca,0x881e5));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a105_0x3be8(_0x1b567d,_0x2954f4){_0x1b567d=_0x1b567d-0x1ca;const _0x74ca38=a105_0x74ca();let _0x3be80f=_0x74ca38[_0x1b567d];return _0x3be80f;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a106_0x3a5a0a=a106_0x3752;(function(_0x52f898,_0x5c1114){const _0x17e73c=a106_0x3752,_0x29d755=_0x52f898();while(!![]){try{const _0x58e0ce=-parseInt(_0x17e73c(0xe0))/0x1+-parseInt(_0x17e73c(0xb1))/0x2*(-parseInt(_0x17e73c(0xae))/0x3)+parseInt(_0x17e73c(0xc0))/0x4+parseInt(_0x17e73c(0xcc))/0x5+parseInt(_0x17e73c(0xe1))/0x6*(-parseInt(_0x17e73c(0xad))/0x7)+-parseInt(_0x17e73c(0xdb))/0x8*(parseInt(_0x17e73c(0xd2))/0x9)+-parseInt(_0x17e73c(0xc3))/0xa*(-parseInt(_0x17e73c(0xd6))/0xb);if(_0x58e0ce===_0x5c1114)break;else _0x29d755['push'](_0x29d755['shift']());}catch(_0x201cc0){_0x29d755['push'](_0x29d755['shift']());}}}(a106_0x38dd,0x77aa4));import a106_0x1f36f7 from'winston';import a106_0x1a4441 from'node:fs';function a106_0x38dd(){const _0xc6b978=['printf','136OjhDiv','info','clear','error','now','913812sYBLnZ','12fywzVk','createLogger','details','map','readFileSync','logFilePath','combine','green','Failed:\x20','2275784EEQFav','54261HLgbVd','command','level','24HmlbWR','transports','log','success','setRawCommand','File','Starting:\x20','red','utf8','join','logTask','readLogs','existsSync','yellow','currentRawCommand','1872776XHanng','getWinstonInstance','setLogPath','900kpOmMq','format','winstonLogger','warn','Failed\x20to\x20read\x20logs:','Failed\x20to\x20clear\x20logs:','parse','initWinstonLogger','clearLogs','2430765aZOwwu','toISOString','Completed:\x20','stringify','trim','rawCommand','251109BASBGF','unknown','timestamp','logFileName','165869BUdBXw','filter','writeFileSync','errors'];a106_0x38dd=function(){return _0xc6b978;};return a106_0x38dd();}function a106_0x3752(_0x47f0ea,_0x2b41bd){_0x47f0ea=_0x47f0ea-0xa9;const _0x38dd99=a106_0x38dd();let _0x37521c=_0x38dd99[_0x47f0ea];return _0x37521c;}import a106_0x5a120a from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a106_0x3a5a0a(0xc5)];[a106_0x3a5a0a(0xa9)]='';[a106_0x3a5a0a(0xbf)]='';constructor(){}[a106_0x3a5a0a(0xb5)](_0x5061ae){const _0x236071=a106_0x3a5a0a;this[_0x236071(0xbf)]=_0x5061ae;}[a106_0x3a5a0a(0xc2)](_0x5cd8e5){const _0x457b41=a106_0x3a5a0a;this['logFilePath']=a106_0x5a120a[_0x457b41(0xba)](_0x5cd8e5,PRODUCT_CONFIG[_0x457b41(0xd5)]),this[_0x457b41(0xc5)]&&this[_0x457b41(0xc5)][_0x457b41(0xdd)](),this[_0x457b41(0xca)]();}['initWinstonLogger'](){const _0x40bf6a=a106_0x3a5a0a,_0x578ccb=a106_0x5a120a['dirname'](this['logFilePath']);!a106_0x1a4441[_0x40bf6a(0xbd)](_0x578ccb)&&a106_0x1a4441['mkdirSync'](_0x578ccb,{'recursive':!![]});const _0x3bbc9b=a106_0x1f36f7['format'][_0x40bf6a(0xaa)](a106_0x1f36f7[_0x40bf6a(0xc4)][_0x40bf6a(0xd4)](),a106_0x1f36f7[_0x40bf6a(0xc4)][_0x40bf6a(0xd9)]({'stack':!![]}),a106_0x1f36f7[_0x40bf6a(0xc4)][_0x40bf6a(0xda)](_0x5a4afc=>{const _0x902d4d=_0x40bf6a,_0x4b8492={'timestamp':_0x5a4afc[_0x902d4d(0xd4)]||new Date()[_0x902d4d(0xcd)](),'level':_0x5a4afc[_0x902d4d(0xb0)]||'info','command':_0x5a4afc[_0x902d4d(0xaf)]||_0x902d4d(0xd3),'rawCommand':_0x5a4afc[_0x902d4d(0xd1)]||this[_0x902d4d(0xbf)]||undefined,'message':_0x5a4afc['message']||'','duration':_0x5a4afc['duration']||undefined,'details':_0x5a4afc[_0x902d4d(0xe3)]||undefined};return JSON[_0x902d4d(0xcf)](_0x4b8492);}));this[_0x40bf6a(0xc5)]=a106_0x1f36f7[_0x40bf6a(0xe2)]({'level':_0x40bf6a(0xdc),'format':_0x3bbc9b,'transports':[new a106_0x1f36f7[(_0x40bf6a(0xb2))][(_0x40bf6a(0xb6))]({'filename':this[_0x40bf6a(0xa9)],'level':_0x40bf6a(0xdc)})],'silent':![]}),a106_0x1f36f7['addColors']({'success':_0x40bf6a(0xab),'error':_0x40bf6a(0xb8),'warn':_0x40bf6a(0xbe),'info':'blue'});}[a106_0x3a5a0a(0xdc)](_0x2b81ff,_0x1f1ed7,_0x41079b){const _0x3dbbeb=a106_0x3a5a0a;if(!this[_0x3dbbeb(0xa9)]||!this[_0x3dbbeb(0xc5)])return;this[_0x3dbbeb(0xc5)]['info'](_0x1f1ed7,{'command':_0x2b81ff,'details':_0x41079b});}[a106_0x3a5a0a(0xb4)](_0x2810af,_0x56ae94,_0x11b0a3,_0x5ce0ae){const _0x199309=a106_0x3a5a0a;if(!this[_0x199309(0xa9)]||!this['winstonLogger'])return;this[_0x199309(0xc5)][_0x199309(0xb3)](_0x199309(0xdc),_0x56ae94,{'level':_0x199309(0xb4),'command':_0x2810af,'duration':_0x11b0a3,'details':_0x5ce0ae});}[a106_0x3a5a0a(0xde)](_0x2b756e,_0x20b398,_0x1a6592){const _0x579dbd=a106_0x3a5a0a;if(!this[_0x579dbd(0xa9)]||!this[_0x579dbd(0xc5)])return;this[_0x579dbd(0xc5)][_0x579dbd(0xde)](_0x20b398,{'command':_0x2b756e,'details':_0x1a6592});}[a106_0x3a5a0a(0xc6)](_0x20eb30,_0x5a27f3,_0x55d52b){const _0x1f9ea9=a106_0x3a5a0a;if(!this[_0x1f9ea9(0xa9)]||!this[_0x1f9ea9(0xc5)])return;this[_0x1f9ea9(0xc5)][_0x1f9ea9(0xc6)](_0x5a27f3,{'command':_0x20eb30,'details':_0x55d52b});}async[a106_0x3a5a0a(0xbb)](_0x26877e,_0x1ca266,_0xa04d3e){const _0x4c9714=a106_0x3a5a0a,_0x2db18d=Date[_0x4c9714(0xdf)]();this[_0x4c9714(0xdc)](_0x26877e,_0x4c9714(0xb7)+_0x1ca266);try{const _0x77473a=await _0xa04d3e(),_0x51cf8d=Date[_0x4c9714(0xdf)]()-_0x2db18d;return this[_0x4c9714(0xb4)](_0x26877e,_0x4c9714(0xce)+_0x1ca266,_0x51cf8d),_0x77473a;}catch(_0x2aae39){const _0x764226=Date['now']()-_0x2db18d;this[_0x4c9714(0xde)](_0x26877e,_0x4c9714(0xac)+_0x1ca266,{'error':_0x2aae39 instanceof Error?_0x2aae39['message']:String(_0x2aae39),'duration':_0x764226});throw _0x2aae39;}}[a106_0x3a5a0a(0xbc)](){const _0x4048a0=a106_0x3a5a0a;try{if(!a106_0x1a4441[_0x4048a0(0xbd)](this[_0x4048a0(0xa9)]))return[];const _0x42c7e3=a106_0x1a4441[_0x4048a0(0xe5)](this[_0x4048a0(0xa9)],_0x4048a0(0xb9));return _0x42c7e3['split'](/\r?\n/)[_0x4048a0(0xd7)](_0x2112b0=>_0x2112b0[_0x4048a0(0xd0)]())[_0x4048a0(0xe4)](_0x3627ce=>JSON[_0x4048a0(0xc9)](_0x3627ce));}catch(_0x49f3bd){return console[_0x4048a0(0xc6)](_0x4048a0(0xc7),_0x49f3bd),[];}}[a106_0x3a5a0a(0xcb)](){const _0x3eed8d=a106_0x3a5a0a;try{a106_0x1a4441[_0x3eed8d(0xbd)](this[_0x3eed8d(0xa9)])&&a106_0x1a4441[_0x3eed8d(0xd8)](this[_0x3eed8d(0xa9)],'',_0x3eed8d(0xb9));}catch(_0x2f2bc2){console['warn'](_0x3eed8d(0xc8),_0x2f2bc2);}}[a106_0x3a5a0a(0xc1)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a106_0x6f0108=a106_0x3e24;function a106_0x3e24(_0x378e4f,_0x26a9fa){_0x378e4f=_0x378e4f-0x103;const _0x222979=a106_0x2229();let _0x3e240a=_0x222979[_0x378e4f];return _0x3e240a;}(function(_0x49bb79,_0x3a2ca9){const _0x264edc=a106_0x3e24,_0xea9059=_0x49bb79();while(!![]){try{const _0x6d30dc=-parseInt(_0x264edc(0x105))/0x1+parseInt(_0x264edc(0x125))/0x2*(-parseInt(_0x264edc(0x108))/0x3)+-parseInt(_0x264edc(0x136))/0x4+-parseInt(_0x264edc(0x131))/0x5*(parseInt(_0x264edc(0x124))/0x6)+-parseInt(_0x264edc(0x11a))/0x7*(parseInt(_0x264edc(0x120))/0x8)+parseInt(_0x264edc(0x121))/0x9*(parseInt(_0x264edc(0x12a))/0xa)+parseInt(_0x264edc(0x12b))/0xb;if(_0x6d30dc===_0x3a2ca9)break;else _0xea9059['push'](_0xea9059['shift']());}catch(_0x21f05e){_0xea9059['push'](_0xea9059['shift']());}}}(a106_0x2229,0xb7831));import a106_0x10d270 from'winston';import a106_0xf5c341 from'node:fs';import a106_0x5e0c7a from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a106_0x2229(){const _0x3da76b=['filter','warn','split','clear','15232LvVljf','mkdirSync','getWinstonInstance','readLogs','timestamp','map','184evEmaW','9SaUtkd','logFilePath','printf','503310edWpWK','2835354JWnIOZ','transports','Completed:\x20','utf8','toISOString','7023470SDnbAm','48821014aSRJMF','currentRawCommand','rawCommand','existsSync','duration','log','15REJCDy','error','parse','info','format','5512760uIoHHr','logTask','message','Failed\x20to\x20read\x20logs:','clearLogs','1291386PsnszL','Failed:\x20','green','3LuofNS','setRawCommand','trim','command','success','createLogger','winstonLogger','level','details','stringify','yellow','addColors','now','setLogPath'];a106_0x2229=function(){return _0x3da76b;};return a106_0x2229();}class Logger{[a106_0x6f0108(0x10e)];[a106_0x6f0108(0x122)]='';[a106_0x6f0108(0x12c)]='';constructor(){}[a106_0x6f0108(0x109)](_0x2fb34c){const _0xc8fda3=a106_0x6f0108;this[_0xc8fda3(0x12c)]=_0x2fb34c;}[a106_0x6f0108(0x115)](_0x4c83cb){const _0x27a56d=a106_0x6f0108;this[_0x27a56d(0x122)]=a106_0x5e0c7a['join'](_0x4c83cb,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x27a56d(0x10e)][_0x27a56d(0x119)](),this['initWinstonLogger']();}['initWinstonLogger'](){const _0x266b35=a106_0x6f0108,_0x3ff253=a106_0x5e0c7a['dirname'](this[_0x266b35(0x122)]);!a106_0xf5c341[_0x266b35(0x12e)](_0x3ff253)&&a106_0xf5c341[_0x266b35(0x11b)](_0x3ff253,{'recursive':!![]});const _0x2f6cb6=a106_0x10d270[_0x266b35(0x135)]['combine'](a106_0x10d270[_0x266b35(0x135)][_0x266b35(0x11e)](),a106_0x10d270['format']['errors']({'stack':!![]}),a106_0x10d270[_0x266b35(0x135)][_0x266b35(0x123)](_0x401ea0=>{const _0x506e35=_0x266b35,_0x1758f8={'timestamp':_0x401ea0[_0x506e35(0x11e)]||new Date()[_0x506e35(0x129)](),'level':_0x401ea0[_0x506e35(0x10f)]||'info','command':_0x401ea0[_0x506e35(0x10b)]||'unknown','rawCommand':_0x401ea0[_0x506e35(0x12d)]||this[_0x506e35(0x12c)]||undefined,'message':_0x401ea0[_0x506e35(0x138)]||'','duration':_0x401ea0[_0x506e35(0x12f)]||undefined,'details':_0x401ea0[_0x506e35(0x110)]||undefined};return JSON[_0x506e35(0x111)](_0x1758f8);}));this[_0x266b35(0x10e)]=a106_0x10d270[_0x266b35(0x10d)]({'level':_0x266b35(0x134),'format':_0x2f6cb6,'transports':[new a106_0x10d270[(_0x266b35(0x126))]['File']({'filename':this['logFilePath'],'level':_0x266b35(0x134)})],'silent':![]}),a106_0x10d270[_0x266b35(0x113)]({'success':_0x266b35(0x107),'error':'red','warn':_0x266b35(0x112),'info':'blue'});}[a106_0x6f0108(0x134)](_0x38b21f,_0x34619e,_0x591e67){const _0x319edc=a106_0x6f0108;if(!this[_0x319edc(0x122)]||!this[_0x319edc(0x10e)])return;this[_0x319edc(0x10e)][_0x319edc(0x134)](_0x34619e,{'command':_0x38b21f,'details':_0x591e67});}[a106_0x6f0108(0x10c)](_0x2ea9f9,_0x4ee39f,_0x3543a9,_0x2ad3db){const _0x1fbfd2=a106_0x6f0108;if(!this[_0x1fbfd2(0x122)]||!this[_0x1fbfd2(0x10e)])return;this[_0x1fbfd2(0x10e)][_0x1fbfd2(0x130)](_0x1fbfd2(0x134),_0x4ee39f,{'level':_0x1fbfd2(0x10c),'command':_0x2ea9f9,'duration':_0x3543a9,'details':_0x2ad3db});}[a106_0x6f0108(0x132)](_0x218327,_0x2eda96,_0x1fb63f){const _0x6f4b30=a106_0x6f0108;if(!this['logFilePath']||!this[_0x6f4b30(0x10e)])return;this[_0x6f4b30(0x10e)][_0x6f4b30(0x132)](_0x2eda96,{'command':_0x218327,'details':_0x1fb63f});}[a106_0x6f0108(0x117)](_0x85870c,_0x536e58,_0x235b72){const _0x2c267c=a106_0x6f0108;if(!this[_0x2c267c(0x122)]||!this[_0x2c267c(0x10e)])return;this[_0x2c267c(0x10e)][_0x2c267c(0x117)](_0x536e58,{'command':_0x85870c,'details':_0x235b72});}async[a106_0x6f0108(0x137)](_0x4058f4,_0x69484,_0x3a4321){const _0x4025b1=a106_0x6f0108,_0x173cd8=Date[_0x4025b1(0x114)]();this[_0x4025b1(0x134)](_0x4058f4,'Starting:\x20'+_0x69484);try{const _0x3836c7=await _0x3a4321(),_0x536bac=Date[_0x4025b1(0x114)]()-_0x173cd8;return this[_0x4025b1(0x10c)](_0x4058f4,_0x4025b1(0x127)+_0x69484,_0x536bac),_0x3836c7;}catch(_0x3188ab){const _0x1ff629=Date[_0x4025b1(0x114)]()-_0x173cd8;this['error'](_0x4058f4,_0x4025b1(0x106)+_0x69484,{'error':_0x3188ab instanceof Error?_0x3188ab[_0x4025b1(0x138)]:String(_0x3188ab),'duration':_0x1ff629});throw _0x3188ab;}}[a106_0x6f0108(0x11d)](){const _0x1e8a97=a106_0x6f0108;try{if(!a106_0xf5c341[_0x1e8a97(0x12e)](this[_0x1e8a97(0x122)]))return[];const _0x174c32=a106_0xf5c341['readFileSync'](this[_0x1e8a97(0x122)],_0x1e8a97(0x128));return _0x174c32[_0x1e8a97(0x118)](/\r?\n/)[_0x1e8a97(0x116)](_0x7b6ed7=>_0x7b6ed7[_0x1e8a97(0x10a)]())[_0x1e8a97(0x11f)](_0xf264a1=>JSON[_0x1e8a97(0x133)](_0xf264a1));}catch(_0x2dae7b){return console[_0x1e8a97(0x117)](_0x1e8a97(0x103),_0x2dae7b),[];}}[a106_0x6f0108(0x104)](){const _0x3e1527=a106_0x6f0108;try{a106_0xf5c341['existsSync'](this['logFilePath'])&&a106_0xf5c341['writeFileSync'](this[_0x3e1527(0x122)],'','utf8');}catch(_0x98b73c){console[_0x3e1527(0x117)]('Failed\x20to\x20clear\x20logs:',_0x98b73c);}}[a106_0x6f0108(0x11c)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x349a02,_0x31db67){var _0x45de26=a107_0xe67f,_0x3d42ae=_0x349a02();while(!![]){try{var _0xe6b093=-parseInt(_0x45de26(0x103))/0x1*(parseInt(_0x45de26(0x100))/0x2)+parseInt(_0x45de26(0xfd))/0x3*(parseInt(_0x45de26(0x105))/0x4)+-parseInt(_0x45de26(0x106))/0x5*(parseInt(_0x45de26(0xfc))/0x6)+-parseInt(_0x45de26(0xf6))/0x7+-parseInt(_0x45de26(0xfa))/0x8+parseInt(_0x45de26(0x101))/0x9+-parseInt(_0x45de26(0xf7))/0xa*(-parseInt(_0x45de26(0xfe))/0xb);if(_0xe6b093===_0x31db67)break;else _0x3d42ae['push'](_0x3d42ae['shift']());}catch(_0xd766e1){_0x3d42ae['push'](_0x3d42ae['shift']());}}}(a107_0x1f94,0x71e3a));import{CliErrors}from'../errors.js';export function parseJsonParams(_0xb7b4f3){var _0x580f51=a107_0xe67f;if(!_0xb7b4f3)return undefined;try{return JSON[_0x580f51(0xfb)](_0xb7b4f3);}catch{throw CliErrors[_0x580f51(0x102)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0xb7b4f3);}}export function parseJsonParamsValue(_0x14a1e5){var _0xb04654=a107_0xe67f;if(!_0x14a1e5)return undefined;try{return JSON[_0xb04654(0xfb)](_0x14a1e5);}catch{throw CliErrors[_0xb04654(0x102)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x14a1e5);}}function a107_0xe67f(_0x53703b,_0x39f111){_0x53703b=_0x53703b-0xf6;var _0x1f94fc=a107_0x1f94();var _0xe67f3f=_0x1f94fc[_0x53703b];return _0xe67f3f;}function a107_0x1f94(){var _0x2037a4=['5NJxIOQ','5326426ptOkyl','19820590WyrjXv','isArray','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','5544864dZBZOF','parse','2962026fDJrPk','57429JgcjZR','11RVCAvV','object','60980bokbLf','7622523abfVLy','validation','18lFESuv','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','28HsGlsd'];a107_0x1f94=function(){return _0x2037a4;};return a107_0x1f94();}export function parseBatchCreateItemsFromParams(_0x8a1e11){var _0x257b06=a107_0xe67f;if(Array['isArray'](_0x8a1e11))return _0x8a1e11;if(_0x8a1e11!==null&&_0x8a1e11!==undefined&&typeof _0x8a1e11===_0x257b06(0xff)&&Array[_0x257b06(0xf8)](_0x8a1e11['items']))return _0x8a1e11['items'];throw CliErrors[_0x257b06(0x102)](_0x257b06(0x104),_0x257b06(0xf9));}
1
+ (function(_0x14e897,_0x597478){var _0x27e5d5=a107_0x9878,_0x536c52=_0x14e897();while(!![]){try{var _0x450ca0=parseInt(_0x27e5d5(0xf1))/0x1+-parseInt(_0x27e5d5(0xec))/0x2*(parseInt(_0x27e5d5(0xeb))/0x3)+parseInt(_0x27e5d5(0xfb))/0x4*(-parseInt(_0x27e5d5(0xf9))/0x5)+parseInt(_0x27e5d5(0xf8))/0x6*(-parseInt(_0x27e5d5(0xf2))/0x7)+parseInt(_0x27e5d5(0xf6))/0x8+-parseInt(_0x27e5d5(0xf5))/0x9*(-parseInt(_0x27e5d5(0xf0))/0xa)+parseInt(_0x27e5d5(0xee))/0xb;if(_0x450ca0===_0x597478)break;else _0x536c52['push'](_0x536c52['shift']());}catch(_0x37b64b){_0x536c52['push'](_0x536c52['shift']());}}}(a107_0x2d47,0x28d78));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x712c5d){var _0x202b69=a107_0x9878;if(!_0x712c5d)return undefined;try{return JSON['parse'](_0x712c5d);}catch{throw CliErrors[_0x202b69(0xfa)](_0x202b69(0xf3)+_0x712c5d);}}function a107_0x9878(_0x1f7904,_0x4c5d30){_0x1f7904=_0x1f7904-0xeb;var _0x2d47c0=a107_0x2d47();var _0x98783b=_0x2d47c0[_0x1f7904];return _0x98783b;}export function parseJsonParamsValue(_0x1f4835){var _0x8f2880=a107_0x9878;if(!_0x1f4835)return undefined;try{return JSON[_0x8f2880(0xef)](_0x1f4835);}catch{throw CliErrors[_0x8f2880(0xfa)](_0x8f2880(0xf3)+_0x1f4835);}}export function parseBatchCreateItemsFromParams(_0x16b450){var _0x19b24b=a107_0x9878;if(Array[_0x19b24b(0xf7)](_0x16b450))return _0x16b450;if(_0x16b450!==null&&_0x16b450!==undefined&&typeof _0x16b450===_0x19b24b(0xf4)&&Array[_0x19b24b(0xf7)](_0x16b450['items']))return _0x16b450[_0x19b24b(0xed)];throw CliErrors[_0x19b24b(0xfa)](_0x19b24b(0xfc),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function a107_0x2d47(){var _0x5e07d2=['parse','1311010VemvpY','124720soLdDW','2303FfCcUU','Invalid\x20JSON\x20for\x20--params:\x20','object','9vjDnuX','48544IPpJnK','isArray','978oIDSsO','140jxCAwh','validation','45636zFdLzs','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','228747CapWuL','2OHiprF','items','3901997tOKdnF'];a107_0x2d47=function(){return _0x5e07d2;};return a107_0x2d47();}
@@ -1 +1 @@
1
- function a108_0x41ad(_0x696f43,_0x24a44e){_0x696f43=_0x696f43-0x101;const _0x4fc3b1=a108_0x4fc3();let _0x41ad51=_0x4fc3b1[_0x696f43];return _0x41ad51;}const a108_0x58d6f4=a108_0x41ad;(function(_0x4d53b5,_0x6f5d4b){const _0x504b54=a108_0x41ad,_0x29e2aa=_0x4d53b5();while(!![]){try{const _0x406b0b=-parseInt(_0x504b54(0x103))/0x1+-parseInt(_0x504b54(0x104))/0x2+parseInt(_0x504b54(0x102))/0x3*(parseInt(_0x504b54(0x10c))/0x4)+-parseInt(_0x504b54(0x109))/0x5*(-parseInt(_0x504b54(0x101))/0x6)+parseInt(_0x504b54(0x10d))/0x7+-parseInt(_0x504b54(0x107))/0x8*(-parseInt(_0x504b54(0x10a))/0x9)+-parseInt(_0x504b54(0x10b))/0xa;if(_0x406b0b===_0x6f5d4b)break;else _0x29e2aa['push'](_0x29e2aa['shift']());}catch(_0x31de0c){_0x29e2aa['push'](_0x29e2aa['shift']());}}}(a108_0x4fc3,0xef18d));export const isWindows=process[a108_0x58d6f4(0x106)]===a108_0x58d6f4(0x108);export function resolveNpmBin(_0x1ed013){const _0x3ea0f5=a108_0x58d6f4;return isWindows?_0x1ed013+_0x3ea0f5(0x105):_0x1ed013;}function a108_0x4fc3(){const _0x11e0c2=['2268570QnAiCu','.cmd','platform','2455984jRssSH','win32','925055kkEHvO','27srUKMm','7253340hTqpyK','3436lGczeU','12675285KtshtX','6iYsLwg','183DRpinF','130199xGwjsM'];a108_0x4fc3=function(){return _0x11e0c2;};return a108_0x4fc3();}
1
+ const a108_0x3524bb=a108_0x2eed;function a108_0x2eed(_0xfc9417,_0x35c3a1){_0xfc9417=_0xfc9417-0x190;const _0x3edd18=a108_0x3edd();let _0x2eed61=_0x3edd18[_0xfc9417];return _0x2eed61;}(function(_0x32e675,_0xdbb58e){const _0x5aece1=a108_0x2eed,_0xb5a37d=_0x32e675();while(!![]){try{const _0x222e05=-parseInt(_0x5aece1(0x190))/0x1+parseInt(_0x5aece1(0x199))/0x2+-parseInt(_0x5aece1(0x193))/0x3+parseInt(_0x5aece1(0x19a))/0x4*(-parseInt(_0x5aece1(0x191))/0x5)+-parseInt(_0x5aece1(0x197))/0x6+parseInt(_0x5aece1(0x196))/0x7+parseInt(_0x5aece1(0x198))/0x8;if(_0x222e05===_0xdbb58e)break;else _0xb5a37d['push'](_0xb5a37d['shift']());}catch(_0xb8a830){_0xb5a37d['push'](_0xb5a37d['shift']());}}}(a108_0x3edd,0x3f5b0));function a108_0x3edd(){const _0x3cc079=['56dryOmu','504035zdIkqZ','134455NOLRhs','platform','399549yrvrIz','.cmd','win32','1344770tBibnd','2445858fJPQxa','9411784chSlJJ','624512FAxtlt'];a108_0x3edd=function(){return _0x3cc079;};return a108_0x3edd();}export const isWindows=process[a108_0x3524bb(0x192)]===a108_0x3524bb(0x195);export function resolveNpmBin(_0x374f40){const _0x3621ef=a108_0x3524bb;return isWindows?_0x374f40+_0x3621ef(0x194):_0x374f40;}
@@ -1 +1 @@
1
- (function(_0x3cca07,_0x342a39){const _0x3443e9=a109_0x30e6,_0x516f76=_0x3cca07();while(!![]){try{const _0x128e43=-parseInt(_0x3443e9(0x16d))/0x1*(parseInt(_0x3443e9(0x15d))/0x2)+-parseInt(_0x3443e9(0x168))/0x3*(parseInt(_0x3443e9(0x14e))/0x4)+parseInt(_0x3443e9(0x153))/0x5*(parseInt(_0x3443e9(0x164))/0x6)+-parseInt(_0x3443e9(0x15c))/0x7*(parseInt(_0x3443e9(0x154))/0x8)+parseInt(_0x3443e9(0x167))/0x9*(parseInt(_0x3443e9(0x173))/0xa)+parseInt(_0x3443e9(0x163))/0xb+parseInt(_0x3443e9(0x14f))/0xc*(parseInt(_0x3443e9(0x157))/0xd);if(_0x128e43===_0x342a39)break;else _0x516f76['push'](_0x516f76['shift']());}catch(_0x32a716){_0x516f76['push'](_0x516f76['shift']());}}}(a109_0x3b86,0x28347));function a109_0x30e6(_0x27e8cd,_0x528146){_0x27e8cd=_0x27e8cd-0x14e;const _0x3b8673=a109_0x3b86();let _0x30e6c2=_0x3b8673[_0x27e8cd];return _0x30e6c2;}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';function a109_0x3b86(){const _0x327b31=['major','patch','minor','140540VyBLMX','string','lastNotifiedVersion','update-check.json','52BlyxEY','24oVOUZW','filter','lastNotifiedAt','trim','10rImWiw','832ZUMWHy','latest','true','1806493HBrBbv','/-/package/','Invalid\x20semver','map','https://www.npmjs.com/package/','5642uxSWUv','552242DWInlC','\x20available,\x20current\x20','object','checkedAt','timeout','number','1785366qZdnxE','479070jWZqQL',',\x20run:\x20','lovrabet-cli','135YjoFRH','66024JSJUNZ','stringify','utf8','match','prerelease','1qXIFff','.cache','\x20update'];a109_0x3b86=function(){return _0x327b31;};return a109_0x3b86();}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(_0x46d35b){const _0x428d7b=a109_0x30e6,_0x142e63=_0x46d35b[_0x428d7b(0x152)]()[_0x428d7b(0x16b)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x142e63)return null;return{'major':Number(_0x142e63[0x1]),'minor':Number(_0x142e63[0x2]),'patch':Number(_0x142e63[0x3]),'prerelease':_0x142e63[0x4]};}function compareSemver(_0x2acd9d,_0x3fb5bd){const _0x4c41fa=a109_0x30e6,_0x32c5a2=parseSemver(_0x2acd9d),_0x2ae937=parseSemver(_0x3fb5bd);if(!_0x32c5a2||!_0x2ae937)throw new Error(_0x4c41fa(0x159));for(const _0x375c53 of[_0x4c41fa(0x170),_0x4c41fa(0x172),_0x4c41fa(0x171)]){if(_0x32c5a2[_0x375c53]<_0x2ae937[_0x375c53])return-0x1;if(_0x32c5a2[_0x375c53]>_0x2ae937[_0x375c53])return 0x1;}if(!_0x32c5a2[_0x4c41fa(0x16c)]&&!_0x2ae937[_0x4c41fa(0x16c)])return 0x0;if(!_0x32c5a2[_0x4c41fa(0x16c)])return 0x1;if(!_0x2ae937[_0x4c41fa(0x16c)])return-0x1;if(_0x32c5a2['prerelease']===_0x2ae937[_0x4c41fa(0x16c)])return 0x0;return _0x32c5a2[_0x4c41fa(0x16c)]<_0x2ae937[_0x4c41fa(0x16c)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x44771e=a109_0x30e6,_0x3d5327=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x44771e(0x152)]()['toLowerCase']();return _0x3d5327==='1'||_0x3d5327===_0x44771e(0x156)||_0x3d5327==='yes';}function cacheRoot(){const _0x44bb11=a109_0x30e6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x44bb11(0x16e));}export function getUpdateNoticeCachePath(){const _0x17a212=a109_0x30e6;return join(cacheRoot(),_0x17a212(0x166),_0x17a212(0x176));}async function readUpdateNoticeCache(){const _0x36ff7f=a109_0x30e6;try{const _0x3d0fce=await readFile(getUpdateNoticeCachePath(),_0x36ff7f(0x16a)),_0x43ba33=JSON['parse'](_0x3d0fce);if(!_0x43ba33||typeof _0x43ba33!==_0x36ff7f(0x15f))return{};return _0x43ba33;}catch{return{};}}async function writeUpdateNoticeCache(_0x4ecd11){const _0xd89ef8=a109_0x30e6;try{const _0x228189=getUpdateNoticeCachePath();await mkdir(dirname(_0x228189),{'recursive':!![]}),await writeFile(_0x228189,JSON[_0xd89ef8(0x169)](_0x4ecd11,null,0x2)+'\x0a',_0xd89ef8(0x16a));}catch{}}function isFreshCheck(_0x1cfbbd,_0x35fddc){const _0x33a7de=a109_0x30e6;return typeof _0x1cfbbd[_0x33a7de(0x160)]===_0x33a7de(0x162)&&_0x35fddc-_0x1cfbbd[_0x33a7de(0x160)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1bd2d8,_0x5d1ddd,_0x18add6){const _0x18d80f=a109_0x30e6;return _0x1bd2d8[_0x18d80f(0x175)]===_0x5d1ddd&&typeof _0x1bd2d8[_0x18d80f(0x151)]===_0x18d80f(0x162)&&_0x18add6-_0x1bd2d8[_0x18d80f(0x151)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x4a02eb=0x5dc){const _0x2d8c3a=a109_0x30e6;try{const _0x17bce6=NPM_REGISTRY_BASE_URL+_0x2d8c3a(0x158)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x385cd7=await fetch(_0x17bce6,{'signal':AbortSignal[_0x2d8c3a(0x161)](_0x4a02eb)});if(!_0x385cd7['ok'])return null;const _0x52a28f=await _0x385cd7['json']();if(!_0x52a28f||typeof _0x52a28f!=='object')return null;return Object['fromEntries'](Object['entries'](_0x52a28f)[_0x2d8c3a(0x150)](([,_0x26d488])=>typeof _0x26d488===_0x2d8c3a(0x174)&&_0x26d488[_0x2d8c3a(0x152)]())[_0x2d8c3a(0x15a)](([_0x1e6e6b,_0x5f4f45])=>[_0x1e6e6b,String(_0x5f4f45)[_0x2d8c3a(0x152)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0xcdeeec){const _0x1a75cf=a109_0x30e6;return _0x1a75cf(0x15b)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0xcdeeec;}export async function resolveLatestUpdateNotice(){const _0x533360=a109_0x30e6;if(isUpdateNoticeDisabled())return null;try{const _0x50b95b=Date['now'](),_0x1b3089=getCliVersion(),_0x24c693=await readUpdateNoticeCache();let _0xc73401=isFreshCheck(_0x24c693,_0x50b95b)?_0x24c693[_0x533360(0x155)]?.['trim']():undefined;if(!_0xc73401&&!isFreshCheck(_0x24c693,_0x50b95b)){const _0xfe8981=await fetchNpmDistTags();_0xc73401=_0xfe8981?.[_0x533360(0x155)]?.[_0x533360(0x152)](),await writeUpdateNoticeCache({..._0x24c693,'checkedAt':_0x50b95b,'latest':_0xc73401,'failed':!_0xc73401});}if(!_0xc73401||compareSemver(_0x1b3089,_0xc73401)>=0x0)return null;if(isRecentlyNotified(_0x24c693,_0xc73401,_0x50b95b))return null;const _0x140de6=CLI_BIN_NAME+_0x533360(0x16f);return await writeUpdateNoticeCache({..._0x24c693,'checkedAt':isFreshCheck(_0x24c693,_0x50b95b)?_0x24c693[_0x533360(0x160)]:_0x50b95b,'latest':_0xc73401,'failed':![],'lastNotifiedVersion':_0xc73401,'lastNotifiedAt':_0x50b95b}),{'command':_0x140de6,'current':_0x1b3089,'latest':_0xc73401,'url':buildNpmVersionUrl(_0xc73401),'message':CLI_BIN_NAME+'\x20'+_0xc73401+_0x533360(0x15e)+_0x1b3089+_0x533360(0x165)+_0x140de6};}catch{return null;}}
1
+ function a109_0x17ec(_0x315ac2,_0x267b53){_0x315ac2=_0x315ac2-0x11c;const _0x4cecb9=a109_0x4cec();let _0x17ec9d=_0x4cecb9[_0x315ac2];return _0x17ec9d;}(function(_0x3e6cba,_0x5d8abe){const _0x289547=a109_0x17ec,_0x230cfa=_0x3e6cba();while(!![]){try{const _0x55d306=parseInt(_0x289547(0x131))/0x1+parseInt(_0x289547(0x11d))/0x2+-parseInt(_0x289547(0x12a))/0x3+-parseInt(_0x289547(0x128))/0x4*(parseInt(_0x289547(0x13b))/0x5)+parseInt(_0x289547(0x11c))/0x6+parseInt(_0x289547(0x134))/0x7+parseInt(_0x289547(0x121))/0x8;if(_0x55d306===_0x5d8abe)break;else _0x230cfa['push'](_0x230cfa['shift']());}catch(_0x21ca58){_0x230cfa['push'](_0x230cfa['shift']());}}}(a109_0x4cec,0xbaf9e));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x18c1d3){const _0x35948c=a109_0x17ec,_0x52bc56=_0x18c1d3[_0x35948c(0x129)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x52bc56)return null;return{'major':Number(_0x52bc56[0x1]),'minor':Number(_0x52bc56[0x2]),'patch':Number(_0x52bc56[0x3]),'prerelease':_0x52bc56[0x4]};}function compareSemver(_0x23860e,_0x4220ae){const _0x47cda5=a109_0x17ec,_0x473f3f=parseSemver(_0x23860e),_0x47ef49=parseSemver(_0x4220ae);if(!_0x473f3f||!_0x47ef49)throw new Error(_0x47cda5(0x124));for(const _0xb4ec3f of[_0x47cda5(0x130),'minor',_0x47cda5(0x13c)]){if(_0x473f3f[_0xb4ec3f]<_0x47ef49[_0xb4ec3f])return-0x1;if(_0x473f3f[_0xb4ec3f]>_0x47ef49[_0xb4ec3f])return 0x1;}if(!_0x473f3f[_0x47cda5(0x132)]&&!_0x47ef49[_0x47cda5(0x132)])return 0x0;if(!_0x473f3f['prerelease'])return 0x1;if(!_0x47ef49[_0x47cda5(0x132)])return-0x1;if(_0x473f3f['prerelease']===_0x47ef49[_0x47cda5(0x132)])return 0x0;return _0x473f3f['prerelease']<_0x47ef49['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x4dfea5=a109_0x17ec,_0x51b7a7=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x4dfea5(0x129)]()['toLowerCase']();return _0x51b7a7==='1'||_0x51b7a7==='true'||_0x51b7a7===_0x4dfea5(0x138);}function cacheRoot(){const _0x2842a1=a109_0x17ec;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2842a1(0x133));}export function getUpdateNoticeCachePath(){const _0x44ee04=a109_0x17ec;return join(cacheRoot(),'lovrabet-cli',_0x44ee04(0x12d));}async function readUpdateNoticeCache(){const _0x3cd245=a109_0x17ec;try{const _0x100d93=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x36e148=JSON[_0x3cd245(0x122)](_0x100d93);if(!_0x36e148||typeof _0x36e148!==_0x3cd245(0x12b))return{};return _0x36e148;}catch{return{};}}async function writeUpdateNoticeCache(_0x2c1a0a){const _0x4222a7=a109_0x17ec;try{const _0xf2cb93=getUpdateNoticeCachePath();await mkdir(dirname(_0xf2cb93),{'recursive':!![]}),await writeFile(_0xf2cb93,JSON[_0x4222a7(0x126)](_0x2c1a0a,null,0x2)+'\x0a',_0x4222a7(0x13a));}catch{}}function a109_0x4cec(){const _0x17fb3b=['/dist-tags','lastNotifiedVersion','yes','\x20update','utf8','245EAFOlb','patch','entries','1625772IzQvtC','1747390OPUTEa','checkedAt','string','/v/','3628112gchIGr','parse','number','Invalid\x20semver','now','stringify','filter','85276YvIlVq','trim','1514871FWRWBQ','object','lastNotifiedAt','update-check.json','latest','https://www.npmjs.com/package/','major','490731WhUJny','prerelease','.cache','1585780TPumqE','timeout'];a109_0x4cec=function(){return _0x17fb3b;};return a109_0x4cec();}function isFreshCheck(_0x1ad498,_0x2e3261){const _0x5201ab=a109_0x17ec;return typeof _0x1ad498['checkedAt']===_0x5201ab(0x123)&&_0x2e3261-_0x1ad498[_0x5201ab(0x11e)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4550e6,_0x29694a,_0x55b882){const _0x3e46c3=a109_0x17ec;return _0x4550e6[_0x3e46c3(0x137)]===_0x29694a&&typeof _0x4550e6[_0x3e46c3(0x12c)]===_0x3e46c3(0x123)&&_0x55b882-_0x4550e6[_0x3e46c3(0x12c)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x32b476=0x5dc){const _0x2be0b6=a109_0x17ec;try{const _0x1e7a35=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2be0b6(0x136),_0xbfa0b1=await fetch(_0x1e7a35,{'signal':AbortSignal[_0x2be0b6(0x135)](_0x32b476)});if(!_0xbfa0b1['ok'])return null;const _0x1f7a94=await _0xbfa0b1['json']();if(!_0x1f7a94||typeof _0x1f7a94!==_0x2be0b6(0x12b))return null;return Object['fromEntries'](Object[_0x2be0b6(0x13d)](_0x1f7a94)[_0x2be0b6(0x127)](([,_0x1f62de])=>typeof _0x1f62de===_0x2be0b6(0x11f)&&_0x1f62de[_0x2be0b6(0x129)]())['map'](([_0x49e62a,_0x405bb5])=>[_0x49e62a,String(_0x405bb5)[_0x2be0b6(0x129)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x46fbc6){const _0xddd05b=a109_0x17ec;return _0xddd05b(0x12f)+LOVRABET_NPM_PACKAGE_NAME+_0xddd05b(0x120)+_0x46fbc6;}export async function resolveLatestUpdateNotice(){const _0xca34e4=a109_0x17ec;if(isUpdateNoticeDisabled())return null;try{const _0x136984=Date[_0xca34e4(0x125)](),_0x598e21=getCliVersion(),_0x400849=await readUpdateNoticeCache();let _0x56b752=isFreshCheck(_0x400849,_0x136984)?_0x400849[_0xca34e4(0x12e)]?.[_0xca34e4(0x129)]():undefined;if(!_0x56b752&&!isFreshCheck(_0x400849,_0x136984)){const _0x438c45=await fetchNpmDistTags();_0x56b752=_0x438c45?.[_0xca34e4(0x12e)]?.[_0xca34e4(0x129)](),await writeUpdateNoticeCache({..._0x400849,'checkedAt':_0x136984,'latest':_0x56b752,'failed':!_0x56b752});}if(!_0x56b752||compareSemver(_0x598e21,_0x56b752)>=0x0)return null;if(isRecentlyNotified(_0x400849,_0x56b752,_0x136984))return null;const _0x3fc829=CLI_BIN_NAME+_0xca34e4(0x139);return await writeUpdateNoticeCache({..._0x400849,'checkedAt':isFreshCheck(_0x400849,_0x136984)?_0x400849[_0xca34e4(0x11e)]:_0x136984,'latest':_0x56b752,'failed':![],'lastNotifiedVersion':_0x56b752,'lastNotifiedAt':_0x136984}),{'command':_0x3fc829,'current':_0x598e21,'latest':_0x56b752,'url':buildNpmVersionUrl(_0x56b752),'message':CLI_BIN_NAME+'\x20'+_0x56b752+'\x20available,\x20current\x20'+_0x598e21+',\x20run:\x20'+_0x3fc829};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x2cdc49,_0x32534a){const _0x555d56=a110_0x112d,_0x79deb3=_0x2cdc49();while(!![]){try{const _0x5d37af=parseInt(_0x555d56(0x196))/0x1+-parseInt(_0x555d56(0x192))/0x2*(-parseInt(_0x555d56(0x19a))/0x3)+parseInt(_0x555d56(0x194))/0x4+parseInt(_0x555d56(0x197))/0x5+parseInt(_0x555d56(0x193))/0x6+-parseInt(_0x555d56(0x198))/0x7+-parseInt(_0x555d56(0x195))/0x8;if(_0x5d37af===_0x32534a)break;else _0x79deb3['push'](_0x79deb3['shift']());}catch(_0x3194dc){_0x79deb3['push'](_0x79deb3['shift']());}}}(a110_0x3cc5,0x4c837));function a110_0x3cc5(){const _0x194c84=['7411352qgENhZ','345375dRqIZQ','2024120tXAAOe','3428075eanCdK','unknown','17805TPQCSh','slice','40amYqQR','1830822AtdIQc','2222028PSfZpT'];a110_0x3cc5=function(){return _0x194c84;};return a110_0x3cc5();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a110_0x112d(_0x1e5b09,_0x4561da){_0x1e5b09=_0x1e5b09-0x191;const _0x3cc5c9=a110_0x3cc5();let _0x112d38=_0x3cc5c9[_0x1e5b09];return _0x112d38;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x252d5c=a110_0x112d,_0x273b35=String(GIT_COMMIT);return _0x273b35&&_0x273b35!==_0x252d5c(0x199)?_0x273b35:'';}export function getCliVersionDisplay(){const _0x206d5d=a110_0x112d,_0x11a90a=getCliGitCommit(),_0x3aab17=BUILD_TIME[_0x206d5d(0x191)](0x0,0xa);if(!_0x11a90a||!_0x3aab17)return VERSION;return VERSION+'\x20('+_0x11a90a+',\x20'+_0x3aab17+')';}
1
+ function a110_0x2f91(){const _0x35d2e7=['90vzJLgN','86994GBMJJI','5ugoiOk','2179076ztSrvo','13111fddSmj','319984Qjjkch','unknown','23702239sBkmwf','1500AfjrGc','2WlOIex','503571qMAZfH','835000MytvNg'];a110_0x2f91=function(){return _0x35d2e7;};return a110_0x2f91();}(function(_0x15d885,_0xf43f11){const _0x252a62=a110_0x34a9,_0x17a77c=_0x15d885();while(!![]){try{const _0x45edda=parseInt(_0x252a62(0x11b))/0x1*(-parseInt(_0x252a62(0x126))/0x2)+parseInt(_0x252a62(0x11e))/0x3+parseInt(_0x252a62(0x120))/0x4*(-parseInt(_0x252a62(0x11f))/0x5)+parseInt(_0x252a62(0x125))/0x6*(-parseInt(_0x252a62(0x121))/0x7)+parseInt(_0x252a62(0x122))/0x8*(-parseInt(_0x252a62(0x11d))/0x9)+parseInt(_0x252a62(0x11c))/0xa+parseInt(_0x252a62(0x124))/0xb;if(_0x45edda===_0xf43f11)break;else _0x17a77c['push'](_0x17a77c['shift']());}catch(_0x26a6c1){_0x17a77c['push'](_0x17a77c['shift']());}}}(a110_0x2f91,0x559d5));function a110_0x34a9(_0x4e6ceb,_0x4b04bc){_0x4e6ceb=_0x4e6ceb-0x11b;const _0x2f9124=a110_0x2f91();let _0x34a9dc=_0x2f9124[_0x4e6ceb];return _0x34a9dc;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4d8af8=a110_0x34a9,_0x1abf54=String(GIT_COMMIT);return _0x1abf54&&_0x1abf54!==_0x4d8af8(0x123)?_0x1abf54:'';}export function getCliVersionDisplay(){const _0x442fa3=getCliGitCommit(),_0x21e4ce=BUILD_TIME['slice'](0x0,0xa);if(!_0x442fa3||!_0x21e4ce)return VERSION;return VERSION+'\x20('+_0x442fa3+',\x20'+_0x21e4ce+')';}
@@ -1 +1 @@
1
- function a111_0x427d(){var _0x4102b1=['9333456QKNvvF','153013vVjsfK','9psQqpn','1203366yJqTcm','39NTvZqo','stderr','78366fjGDxX','222pANQYo','8904970gEUTZe','write','4080650obMwVp','2692152qibHaP'];a111_0x427d=function(){return _0x4102b1;};return a111_0x427d();}function a111_0x1143(_0x28b6ad,_0x31baf6){_0x28b6ad=_0x28b6ad-0x1e1;var _0x427d47=a111_0x427d();var _0x114384=_0x427d47[_0x28b6ad];return _0x114384;}(function(_0x542c3a,_0x4ee9df){var _0x3c0afd=a111_0x1143,_0x4a0b35=_0x542c3a();while(!![]){try{var _0x58222c=parseInt(_0x3c0afd(0x1e4))/0x1+parseInt(_0x3c0afd(0x1e7))/0x2*(parseInt(_0x3c0afd(0x1e5))/0x3)+-parseInt(_0x3c0afd(0x1ec))/0x4+parseInt(_0x3c0afd(0x1eb))/0x5+parseInt(_0x3c0afd(0x1e8))/0x6*(parseInt(_0x3c0afd(0x1e2))/0x7)+-parseInt(_0x3c0afd(0x1e1))/0x8+parseInt(_0x3c0afd(0x1e3))/0x9*(-parseInt(_0x3c0afd(0x1e9))/0xa);if(_0x58222c===_0x4ee9df)break;else _0x4a0b35['push'](_0x4a0b35['shift']());}catch(_0x513aec){_0x4a0b35['push'](_0x4a0b35['shift']());}}}(a111_0x427d,0x944d1));export function writeCliSideChannelLine(_0x162369){var _0x41123c=a111_0x1143;process[_0x41123c(0x1e6)][_0x41123c(0x1ea)](_0x162369+'\x0a');}
1
+ (function(_0x34f707,_0x25582a){var _0xf67f79=a111_0x113a,_0x2a18c3=_0x34f707();while(!![]){try{var _0x294511=parseInt(_0xf67f79(0x14f))/0x1*(parseInt(_0xf67f79(0x14b))/0x2)+-parseInt(_0xf67f79(0x148))/0x3+-parseInt(_0xf67f79(0x147))/0x4+-parseInt(_0xf67f79(0x14e))/0x5*(-parseInt(_0xf67f79(0x149))/0x6)+parseInt(_0xf67f79(0x14a))/0x7+-parseInt(_0xf67f79(0x14c))/0x8*(-parseInt(_0xf67f79(0x14d))/0x9)+-parseInt(_0xf67f79(0x151))/0xa*(parseInt(_0xf67f79(0x150))/0xb);if(_0x294511===_0x25582a)break;else _0x2a18c3['push'](_0x2a18c3['shift']());}catch(_0x2a00e7){_0x2a18c3['push'](_0x2a18c3['shift']());}}}(a111_0x5dcd,0x65274));function a111_0x5dcd(){var _0xe76097=['4077350JYwrzQ','write','stderr','3178972CzqXPN','478674kOHHyg','6URqAHC','4789554lEnKmC','801166XhlySW','2622344KkmcGL','18rHOcyS','179845yjpRyW','1eVhmoB','11QijAYS'];a111_0x5dcd=function(){return _0xe76097;};return a111_0x5dcd();}function a111_0x113a(_0x215920,_0x4a9b5){_0x215920=_0x215920-0x145;var _0x5dcdd9=a111_0x5dcd();var _0x113aef=_0x5dcdd9[_0x215920];return _0x113aef;}export function writeCliSideChannelLine(_0x17c451){var _0x3e0864=a111_0x113a;process[_0x3e0864(0x146)][_0x3e0864(0x145)](_0x17c451+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.7-beta.5",
3
+ "version": "2.1.7",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",