@lovrabet/lovrabet-cli 2.1.11 → 2.1.12-beta.1

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 (119) 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/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/rate-limit.js +1 -1
  87. package/lib/framework/response.js +1 -1
  88. package/lib/framework/runner-confirmation.js +1 -1
  89. package/lib/framework/runner-error.js +1 -1
  90. package/lib/framework/runner.js +1 -1
  91. package/lib/framework/schema-export.js +1 -1
  92. package/lib/framework/service-order.js +1 -1
  93. package/lib/framework/types.js +1 -1
  94. package/lib/generated/build-info.js +1 -1
  95. package/lib/help.js +1 -1
  96. package/lib/skills/npx-skills-add.js +1 -1
  97. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  98. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  99. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  100. package/lib/skills/runtime-skill-sync/links.js +1 -1
  101. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  102. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  103. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  104. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  105. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  106. package/lib/skills/runtime-skill-sync/push.js +1 -1
  107. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  110. package/lib/skills/runtime-skill-sync.js +1 -1
  111. package/lib/utils/apply-jq-filter.js +1 -1
  112. package/lib/utils/logger.js +1 -1
  113. package/lib/utils/lossless-json.js +1 -1
  114. package/lib/utils/params.js +1 -1
  115. package/lib/utils/platform.js +1 -1
  116. package/lib/utils/update-notice.js +1 -1
  117. package/lib/utils/version.js +1 -1
  118. package/lib/utils/write-cli-side-channel.js +1 -1
  119. package/package.json +1 -1
@@ -1 +1 @@
1
- function a108_0x2fbc(_0x310722,_0x535207){_0x310722=_0x310722-0x1ed;const _0x438999=a108_0x4389();let _0x2fbc43=_0x438999[_0x310722];return _0x2fbc43;}const a108_0x52c580=a108_0x2fbc;(function(_0x3fc789,_0x48fcb2){const _0x3c669d=a108_0x2fbc,_0x4a7588=_0x3fc789();while(!![]){try{const _0x517d05=parseInt(_0x3c669d(0x1f9))/0x1*(parseInt(_0x3c669d(0x1f5))/0x2)+parseInt(_0x3c669d(0x1ed))/0x3+parseInt(_0x3c669d(0x1fa))/0x4+parseInt(_0x3c669d(0x1f2))/0x5+parseInt(_0x3c669d(0x1f8))/0x6+-parseInt(_0x3c669d(0x1ee))/0x7*(-parseInt(_0x3c669d(0x1f6))/0x8)+-parseInt(_0x3c669d(0x1f7))/0x9;if(_0x517d05===_0x48fcb2)break;else _0x4a7588['push'](_0x4a7588['shift']());}catch(_0x1c2699){_0x4a7588['push'](_0x4a7588['shift']());}}}(a108_0x4389,0x80489));import{unzipSync,zipSync}from'fflate';function a108_0x4389(){const _0x7752a5=['Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','path','1980-01-01T00:00:00.000Z','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','sort','371301qyjHMb','5529083BiZpMc','validation_error','code','endsWith','3765310tYnadW','name','validation','45076FtCFDp','8yznZhJ','15130548sEFBsp','2166840uinAKM','7ufyLLd','84068rpXkWT','from','entries'];a108_0x4389=function(){return _0x7752a5;};return a108_0x4389();}import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a108_0x52c580(0x1ff));export function createDeterministicZipPackage(_0x38edbd){const _0x5c7302=a108_0x52c580,_0x566c1c={};for(const _0x5b7e69 of normalizeLocalFiles(_0x38edbd)){_0x566c1c[_0x5b7e69[_0x5c7302(0x1fe)]]=fileContent(_0x5b7e69);}return Buffer[_0x5c7302(0x1fb)](zipSync(_0x566c1c,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x48b821){const _0x15ce12=a108_0x52c580;if(_0x48b821['length']<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x1e1a58;try{_0x1e1a58=unzipSync(_0x48b821,{'filter'(_0x269ae3){const _0x802340=a108_0x2fbc,_0x1414f1=normalizeSkillRelativePath(_0x269ae3[_0x802340(0x1f3)]);if(_0x1414f1[_0x802340(0x1f1)]('/'))throw CliErrors[_0x802340(0x1f4)](_0x802340(0x200)+_0x1414f1);return!![];}});}catch(_0x3183f8){if(isRuntimeSkillValidationError(_0x3183f8))throw _0x3183f8;throw CliErrors[_0x15ce12(0x1f4)](_0x15ce12(0x1fd));}return Object[_0x15ce12(0x1fc)](_0x1e1a58)['map'](([_0x378862,_0x2e3619])=>({'path':normalizeSkillRelativePath(_0x378862),'bytes':Buffer[_0x15ce12(0x1fb)](_0x2e3619)}))[_0x15ce12(0x201)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x515eb0){const _0x5a7660=a108_0x52c580;return typeof _0x515eb0==='object'&&_0x515eb0!==null&&_0x5a7660(0x1f0)in _0x515eb0&&_0x515eb0[_0x5a7660(0x1f0)]===_0x5a7660(0x1ef);}
1
+ function a108_0x531a(){const _0x2b8f1d=['name','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','496084SHOpPK','length','1980-01-01T00:00:00.000Z','endsWith','235478QahtlV','object','328nfsRqV','415pdlMvu','27OGhGIV','1424687ZhLnWU','36rJYWjq','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','code','9333506NnMSKu','13614EmhNpx','validation_error','11260ZNfNpk','176127oJlXdX','validation','5nIcfoR','from','1809xVXIrO','map'];a108_0x531a=function(){return _0x2b8f1d;};return a108_0x531a();}const a108_0x52284f=a108_0x5a79;function a108_0x5a79(_0x4b29ef,_0xcf199e){_0x4b29ef=_0x4b29ef-0xa5;const _0x531ade=a108_0x531a();let _0x5a79ae=_0x531ade[_0x4b29ef];return _0x5a79ae;}(function(_0x8b14,_0x217b37){const _0x46c1eb=a108_0x5a79,_0x32cf56=_0x8b14();while(!![]){try{const _0x90d53a=-parseInt(_0x46c1eb(0xb5))/0x1*(parseInt(_0x46c1eb(0xa6))/0x2)+parseInt(_0x46c1eb(0xaa))/0x3*(-parseInt(_0x46c1eb(0xbb))/0x4)+parseInt(_0x46c1eb(0xa9))/0x5*(parseInt(_0x46c1eb(0xb0))/0x6)+parseInt(_0x46c1eb(0xb3))/0x7*(parseInt(_0x46c1eb(0xa8))/0x8)+-parseInt(_0x46c1eb(0xb7))/0x9*(-parseInt(_0x46c1eb(0xb2))/0xa)+-parseInt(_0x46c1eb(0xab))/0xb*(-parseInt(_0x46c1eb(0xac))/0xc)+parseInt(_0x46c1eb(0xaf))/0xd;if(_0x90d53a===_0x217b37)break;else _0x32cf56['push'](_0x32cf56['shift']());}catch(_0xf881aa){_0x32cf56['push'](_0x32cf56['shift']());}}}(a108_0x531a,0xcf00b));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a108_0x52284f(0xbd));export function createDeterministicZipPackage(_0x2a3e78){const _0x59c358={};for(const _0x56c6a5 of normalizeLocalFiles(_0x2a3e78)){_0x59c358[_0x56c6a5['path']]=fileContent(_0x56c6a5);}return Buffer['from'](zipSync(_0x59c358,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x2aeb09){const _0x50be65=a108_0x52284f;if(_0x2aeb09[_0x50be65(0xbc)]<0x16)throw CliErrors[_0x50be65(0xb4)](_0x50be65(0xba));let _0x3e4e21;try{_0x3e4e21=unzipSync(_0x2aeb09,{'filter'(_0x5c248d){const _0x501b43=_0x50be65,_0x24f1a1=normalizeSkillRelativePath(_0x5c248d[_0x501b43(0xb9)]);if(_0x24f1a1[_0x501b43(0xa5)]('/'))throw CliErrors[_0x501b43(0xb4)](_0x501b43(0xad)+_0x24f1a1);return!![];}});}catch(_0x538472){if(isRuntimeSkillValidationError(_0x538472))throw _0x538472;throw CliErrors[_0x50be65(0xb4)](_0x50be65(0xba));}return Object['entries'](_0x3e4e21)[_0x50be65(0xb8)](([_0x5dbc76,_0x30e3f0])=>({'path':normalizeSkillRelativePath(_0x5dbc76),'bytes':Buffer[_0x50be65(0xb6)](_0x30e3f0)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x23329b){const _0x4b1d9b=a108_0x52284f;return typeof _0x23329b===_0x4b1d9b(0xa7)&&_0x23329b!==null&&_0x4b1d9b(0xae)in _0x23329b&&_0x23329b[_0x4b1d9b(0xae)]===_0x4b1d9b(0xb1);}
@@ -1 +1 @@
1
- (function(_0x3700f8,_0x4099d3){const _0x49d373=a109_0x1cbc,_0x5fd215=_0x3700f8();while(!![]){try{const _0xfbb098=parseInt(_0x49d373(0xf2))/0x1*(parseInt(_0x49d373(0x11d))/0x2)+parseInt(_0x49d373(0x118))/0x3+-parseInt(_0x49d373(0x10e))/0x4*(parseInt(_0x49d373(0xfb))/0x5)+parseInt(_0x49d373(0x10d))/0x6*(parseInt(_0x49d373(0x119))/0x7)+-parseInt(_0x49d373(0x104))/0x8*(parseInt(_0x49d373(0x108))/0x9)+-parseInt(_0x49d373(0x10a))/0xa*(parseInt(_0x49d373(0xf4))/0xb)+parseInt(_0x49d373(0xf9))/0xc*(-parseInt(_0x49d373(0x11a))/0xd);if(_0xfbb098===_0x4099d3)break;else _0x5fd215['push'](_0x5fd215['shift']());}catch(_0x4e2ca5){_0x5fd215['push'](_0x5fd215['shift']());}}}(a109_0x2fbf,0x9e25a));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';function a109_0x2fbf(){const _0x4020fb=['files','object','trim','schemaVersion','isArray','length','ossPath','string','2831730gmtsed','147QOsBDb','39oPSkOP','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','isSafeInteger','6770sFfNYB','push','262dckpOC','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','143WKKuWh','requireOssPath','bytes','map','Runtime\x20Skill\x20package\x20is\x20missing\x20','736176rFJIsi','sha256','1330570cvOTnM','treeSha256','zipSize','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','zipSha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','validation','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','get','856ZdfWXp','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','some','65133owikyM','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','484300PpexIv','toLowerCase','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','191742BBWHMt','4WCLMva','path'];a109_0x2fbf=function(){return _0x4020fb;};return a109_0x2fbf();}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x1ce72b){const _0x100934=a109_0x1cbc,_0x30c56f=normalizeLocalFiles(_0x1ce72b);if(!_0x30c56f[_0x100934(0x107)](_0x585d51=>_0x585d51[_0x100934(0x10f)]===SKILL_FILE))throw CliErrors[_0x100934(0x101)]('Missing\x20'+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x2b0266=localFilesToManifestFiles(_0x30c56f),_0x57c00f=createDeterministicZipPackage(_0x30c56f);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x2b0266),'zipSha256':bufferSha256(_0x57c00f),'zipSize':_0x57c00f[_0x100934(0x115)],'files':_0x2b0266},'packageBytes':_0x57c00f,'packageBase64':_0x57c00f['toString']('base64')};}export function verifyRuntimeSkillPackage(_0x4dc138,_0x4d1f29){const _0x2723eb=a109_0x1cbc,_0x3958fb=normalizePackageManifest(_0x4dc138,{'requireOssPath':![]});if(!_0x3958fb)throw CliErrors['validation'](_0x2723eb(0x106));return extractAndVerifyPackage(_0x3958fb,_0x4d1f29);}export function verifyRuntimeSkillBundle(_0x53f07b,_0x5663c1){const _0x54ea9e=a109_0x1cbc,_0x40211a=normalizePackageManifest(_0x53f07b,{'requireOssPath':![]});if(!_0x40211a)throw CliErrors[_0x54ea9e(0x101)](_0x54ea9e(0x106));return extractAndVerifyPackageFiles(_0x40211a,_0x5663c1);}export function tryNormalizePackageManifest(_0x3b8ffe){return normalizePackageManifest(_0x3b8ffe,{'requireOssPath':![]});}function a109_0x1cbc(_0x52ba14,_0x41ed21){_0x52ba14=_0x52ba14-0xf1;const _0x2fbf8e=a109_0x2fbf();let _0x1cbc3a=_0x2fbf8e[_0x52ba14];return _0x1cbc3a;}export function requirePackageBytes(_0x11dafe,_0x325b30){const _0x73ab9a=a109_0x1cbc;if(!_0x325b30||_0x325b30[_0x73ab9a(0x115)]===0x0)throw CliErrors[_0x73ab9a(0x101)](_0x73ab9a(0xf3)+_0x11dafe);return _0x325b30;}export function extractDownloadedPackage(_0x19c244){const _0x1d78ff=a109_0x1cbc,_0x2e7537=parseZipPackage(_0x19c244)['map'](_0x585a96=>({'path':_0x585a96[_0x1d78ff(0x10f)],'bytes':_0x585a96[_0x1d78ff(0xf6)]}));if(!_0x2e7537['some'](_0x314b5a=>_0x314b5a[_0x1d78ff(0x10f)]===SKILL_FILE))throw CliErrors['validation'](_0x1d78ff(0xf8)+SKILL_FILE+'.');return normalizeLocalFiles(_0x2e7537);}export function localFilesToManifestFiles(_0x50482f){const _0x1b8621=a109_0x1cbc;return normalizeLocalFiles(_0x50482f)[_0x1b8621(0xf7)](_0x4d0e4a=>({'path':_0x4d0e4a[_0x1b8621(0x10f)],'sha256':fileHash(_0x4d0e4a),'size':fileContent(_0x4d0e4a)[_0x1b8621(0x115)]}));}function normalizePackageManifest(_0x45be1b,_0x287851){const _0x22c0b4=a109_0x1cbc;if(!_0x45be1b||typeof _0x45be1b!==_0x22c0b4(0x111)||Array[_0x22c0b4(0x114)](_0x45be1b))return undefined;const _0xc3228=_0x45be1b,_0x536013=typeof _0xc3228[_0x22c0b4(0x116)]===_0x22c0b4(0x117)?_0xc3228[_0x22c0b4(0x116)][_0x22c0b4(0x112)]():undefined;if(_0x287851[_0x22c0b4(0xf5)]&&!_0x536013)return undefined;if(!Array['isArray'](_0xc3228[_0x22c0b4(0x110)])||_0xc3228[_0x22c0b4(0x110)]['length']===0x0)return undefined;if(!isSha256Hex(_0xc3228[_0x22c0b4(0xfc)]))throw CliErrors['validation'](_0x22c0b4(0x11b));if(!isSha256Hex(_0xc3228[_0x22c0b4(0xff)]))throw CliErrors[_0x22c0b4(0x101)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x22c0b4(0x11c)](_0xc3228[_0x22c0b4(0xfd)])||_0xc3228[_0x22c0b4(0xfd)]<0x0)throw CliErrors['validation'](_0x22c0b4(0x10c));const _0x4a3bd9=normalizeManifestFiles(_0xc3228[_0x22c0b4(0x110)]);if(!_0x4a3bd9[_0x22c0b4(0x107)](_0x4f78b1=>_0x4f78b1['path']===SKILL_FILE))throw CliErrors[_0x22c0b4(0x101)](_0x22c0b4(0x109)+SKILL_FILE+'.');const _0xd7a241=fileTreeHash(_0x4a3bd9);if(_0xd7a241!==_0xc3228[_0x22c0b4(0xfc)][_0x22c0b4(0x10b)]())throw CliErrors[_0x22c0b4(0x101)](_0x22c0b4(0x102));return{'schemaVersion':Number[_0x22c0b4(0x11c)](_0xc3228[_0x22c0b4(0x113)])?_0xc3228[_0x22c0b4(0x113)]:0x2,'ossPath':_0x536013,'treeSha256':_0xd7a241,'zipSha256':_0xc3228['zipSha256']['toLowerCase'](),'zipSize':_0xc3228['zipSize'],'files':_0x4a3bd9};}function extractAndVerifyPackage(_0x8ff12d,_0x263a3){const _0x2e21cd=a109_0x1cbc,_0xa1dda4=normalizePackageManifest(_0x8ff12d,{'requireOssPath':![]});if(!_0xa1dda4)throw CliErrors[_0x2e21cd(0x101)](_0x2e21cd(0x106));if(_0x263a3[_0x2e21cd(0x115)]!==_0xa1dda4[_0x2e21cd(0xfd)])throw CliErrors[_0x2e21cd(0x101)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x9cf241=bufferSha256(_0x263a3);if(_0x9cf241!==_0xa1dda4[_0x2e21cd(0xff)])throw CliErrors[_0x2e21cd(0x101)](_0x2e21cd(0x105));return extractAndVerifyPackageFiles(_0xa1dda4,_0x263a3);}function extractAndVerifyPackageFiles(_0x5f2b31,_0x461a57){const _0x42ef08=a109_0x1cbc,_0x31f46f=parseZipPackage(_0x461a57);if(_0x31f46f[_0x42ef08(0x115)]!==_0x5f2b31[_0x42ef08(0x110)][_0x42ef08(0x115)])throw CliErrors[_0x42ef08(0x101)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x196dfb=new Map();for(const _0x142501 of _0x31f46f){if(_0x196dfb['has'](_0x142501['path']))throw CliErrors[_0x42ef08(0x101)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x142501[_0x42ef08(0x10f)]);_0x196dfb['set'](_0x142501[_0x42ef08(0x10f)],_0x142501);}const _0x11eed9=[];for(const _0x25d202 of _0x5f2b31[_0x42ef08(0x110)]){const _0x3b0969=_0x196dfb[_0x42ef08(0x103)](_0x25d202[_0x42ef08(0x10f)]);if(!_0x3b0969)throw CliErrors[_0x42ef08(0x101)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x25d202[_0x42ef08(0x10f)]);if(_0x3b0969[_0x42ef08(0xf6)][_0x42ef08(0x115)]!==_0x25d202['size'])throw CliErrors[_0x42ef08(0x101)](_0x42ef08(0xfe)+_0x25d202['path']);const _0x241c11=bufferSha256(_0x3b0969[_0x42ef08(0xf6)]);if(_0x241c11!==_0x25d202[_0x42ef08(0xfa)])throw CliErrors[_0x42ef08(0x101)](_0x42ef08(0x100)+_0x25d202['path']);_0x11eed9[_0x42ef08(0xf1)]({'path':_0x25d202[_0x42ef08(0x10f)],'bytes':_0x3b0969[_0x42ef08(0xf6)]});}return normalizeLocalFiles(_0x11eed9);}
1
+ (function(_0x5ab866,_0x4575c1){const _0x4fabf6=a109_0x1a28,_0x340190=_0x5ab866();while(!![]){try{const _0x49a8b6=-parseInt(_0x4fabf6(0x116))/0x1*(parseInt(_0x4fabf6(0x10f))/0x2)+parseInt(_0x4fabf6(0x132))/0x3*(-parseInt(_0x4fabf6(0x12e))/0x4)+parseInt(_0x4fabf6(0x134))/0x5+parseInt(_0x4fabf6(0x12b))/0x6+parseInt(_0x4fabf6(0x12a))/0x7*(-parseInt(_0x4fabf6(0x137))/0x8)+-parseInt(_0x4fabf6(0x138))/0x9+parseInt(_0x4fabf6(0x11a))/0xa*(parseInt(_0x4fabf6(0x130))/0xb);if(_0x49a8b6===_0x4575c1)break;else _0x340190['push'](_0x340190['shift']());}catch(_0x28ed34){_0x340190['push'](_0x340190['shift']());}}}(a109_0x589f,0x6a0cc));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(_0x4a219b){const _0x263ba0=a109_0x1a28,_0x52a49a=normalizeLocalFiles(_0x4a219b);if(!_0x52a49a['some'](_0x2780cc=>_0x2780cc['path']===SKILL_FILE))throw CliErrors[_0x263ba0(0x123)](_0x263ba0(0x136)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x58c68f=localFilesToManifestFiles(_0x52a49a),_0x2b6319=createDeterministicZipPackage(_0x52a49a);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x58c68f),'zipSha256':bufferSha256(_0x2b6319),'zipSize':_0x2b6319[_0x263ba0(0x11d)],'files':_0x58c68f},'packageBytes':_0x2b6319,'packageBase64':_0x2b6319['toString'](_0x263ba0(0x125))};}export function verifyRuntimeSkillPackage(_0x45bed7,_0x2f6d94){const _0x298035=a109_0x1a28,_0x4f5f9=normalizePackageManifest(_0x45bed7,{'requireOssPath':![]});if(!_0x4f5f9)throw CliErrors[_0x298035(0x123)](_0x298035(0x121));return extractAndVerifyPackage(_0x4f5f9,_0x2f6d94);}export function verifyRuntimeSkillBundle(_0x3da7cf,_0x59f7b2){const _0x2d671f=a109_0x1a28,_0x15d5d1=normalizePackageManifest(_0x3da7cf,{'requireOssPath':![]});if(!_0x15d5d1)throw CliErrors[_0x2d671f(0x123)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x15d5d1,_0x59f7b2);}function a109_0x1a28(_0x15d332,_0x5f1057){_0x15d332=_0x15d332-0x10e;const _0x589f78=a109_0x589f();let _0x1a2828=_0x589f78[_0x15d332];return _0x1a2828;}export function tryNormalizePackageManifest(_0x231f8a){return normalizePackageManifest(_0x231f8a,{'requireOssPath':![]});}export function requirePackageBytes(_0x3ad43c,_0x5ca28f){const _0x130a41=a109_0x1a28;if(!_0x5ca28f||_0x5ca28f[_0x130a41(0x11d)]===0x0)throw CliErrors[_0x130a41(0x123)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x3ad43c);return _0x5ca28f;}export function extractDownloadedPackage(_0x58d74e){const _0x4a2302=a109_0x1a28,_0x17ff10=parseZipPackage(_0x58d74e)[_0x4a2302(0x139)](_0x3e81d4=>({'path':_0x3e81d4['path'],'bytes':_0x3e81d4[_0x4a2302(0x124)]}));if(!_0x17ff10['some'](_0x5c4917=>_0x5c4917[_0x4a2302(0x111)]===SKILL_FILE))throw CliErrors[_0x4a2302(0x123)](_0x4a2302(0x11c)+SKILL_FILE+'.');return normalizeLocalFiles(_0x17ff10);}export function localFilesToManifestFiles(_0x230731){const _0x120984=a109_0x1a28;return normalizeLocalFiles(_0x230731)[_0x120984(0x139)](_0x1ee253=>({'path':_0x1ee253[_0x120984(0x111)],'sha256':fileHash(_0x1ee253),'size':fileContent(_0x1ee253)[_0x120984(0x11d)]}));}function normalizePackageManifest(_0x2a67b1,_0x174a2d){const _0xb590df=a109_0x1a28;if(!_0x2a67b1||typeof _0x2a67b1!=='object'||Array['isArray'](_0x2a67b1))return undefined;const _0x4c987d=_0x2a67b1,_0x5afb18=typeof _0x4c987d[_0xb590df(0x128)]==='string'?_0x4c987d[_0xb590df(0x128)][_0xb590df(0x119)]():undefined;if(_0x174a2d[_0xb590df(0x117)]&&!_0x5afb18)return undefined;if(!Array[_0xb590df(0x133)](_0x4c987d['files'])||_0x4c987d['files'][_0xb590df(0x11d)]===0x0)return undefined;if(!isSha256Hex(_0x4c987d[_0xb590df(0x131)]))throw CliErrors[_0xb590df(0x123)](_0xb590df(0x11b));if(!isSha256Hex(_0x4c987d['zipSha256']))throw CliErrors[_0xb590df(0x123)](_0xb590df(0x135));if(!Number[_0xb590df(0x120)](_0x4c987d[_0xb590df(0x12f)])||_0x4c987d[_0xb590df(0x12f)]<0x0)throw CliErrors[_0xb590df(0x123)](_0xb590df(0x12d));const _0x43a3ce=normalizeManifestFiles(_0x4c987d[_0xb590df(0x11e)]);if(!_0x43a3ce[_0xb590df(0x126)](_0x3f1a0d=>_0x3f1a0d[_0xb590df(0x111)]===SKILL_FILE))throw CliErrors[_0xb590df(0x123)](_0xb590df(0x122)+SKILL_FILE+'.');const _0x2a10f1=fileTreeHash(_0x43a3ce);if(_0x2a10f1!==_0x4c987d['treeSha256'][_0xb590df(0x10e)]())throw CliErrors[_0xb590df(0x123)](_0xb590df(0x11f));return{'schemaVersion':Number[_0xb590df(0x120)](_0x4c987d[_0xb590df(0x13c)])?_0x4c987d[_0xb590df(0x13c)]:0x2,'ossPath':_0x5afb18,'treeSha256':_0x2a10f1,'zipSha256':_0x4c987d['zipSha256'][_0xb590df(0x10e)](),'zipSize':_0x4c987d[_0xb590df(0x12f)],'files':_0x43a3ce};}function a109_0x589f(){const _0x5f0452=['2505474MkmDej','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','201944VHiVrO','zipSize','19470NIoGeM','treeSha256','27yuMfUa','isArray','238145orGjwj','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Missing\x20','2643536WVEzTx','3559626pfEelF','map','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','schemaVersion','toLowerCase','73954Rzohcz','get','path','zipSha256','push','Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','4YMJiBE','requireOssPath','set','trim','7330tfxFsj','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20is\x20missing\x20','length','files','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','isSafeInteger','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','validation','bytes','base64','some','sha256','ossPath','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','7JNkmAV'];a109_0x589f=function(){return _0x5f0452;};return a109_0x589f();}function extractAndVerifyPackage(_0xc8ddd7,_0x1e0f11){const _0x215b82=a109_0x1a28,_0x1af001=normalizePackageManifest(_0xc8ddd7,{'requireOssPath':![]});if(!_0x1af001)throw CliErrors[_0x215b82(0x123)](_0x215b82(0x121));if(_0x1e0f11[_0x215b82(0x11d)]!==_0x1af001[_0x215b82(0x12f)])throw CliErrors[_0x215b82(0x123)](_0x215b82(0x13a));const _0x345f72=bufferSha256(_0x1e0f11);if(_0x345f72!==_0x1af001[_0x215b82(0x112)])throw CliErrors['validation'](_0x215b82(0x115));return extractAndVerifyPackageFiles(_0x1af001,_0x1e0f11);}function extractAndVerifyPackageFiles(_0x261569,_0x5327c3){const _0x3272b1=a109_0x1a28,_0x236360=parseZipPackage(_0x5327c3);if(_0x236360[_0x3272b1(0x11d)]!==_0x261569['files'][_0x3272b1(0x11d)])throw CliErrors[_0x3272b1(0x123)](_0x3272b1(0x13b));const _0x829b93=new Map();for(const _0x2e8ad3 of _0x236360){if(_0x829b93['has'](_0x2e8ad3[_0x3272b1(0x111)]))throw CliErrors[_0x3272b1(0x123)](_0x3272b1(0x114)+_0x2e8ad3['path']);_0x829b93[_0x3272b1(0x118)](_0x2e8ad3[_0x3272b1(0x111)],_0x2e8ad3);}const _0x4b7bf2=[];for(const _0x463d77 of _0x261569[_0x3272b1(0x11e)]){const _0x53975f=_0x829b93[_0x3272b1(0x110)](_0x463d77[_0x3272b1(0x111)]);if(!_0x53975f)throw CliErrors[_0x3272b1(0x123)](_0x3272b1(0x12c)+_0x463d77[_0x3272b1(0x111)]);if(_0x53975f[_0x3272b1(0x124)][_0x3272b1(0x11d)]!==_0x463d77['size'])throw CliErrors[_0x3272b1(0x123)](_0x3272b1(0x129)+_0x463d77['path']);const _0x5d58dd=bufferSha256(_0x53975f[_0x3272b1(0x124)]);if(_0x5d58dd!==_0x463d77[_0x3272b1(0x127)])throw CliErrors[_0x3272b1(0x123)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x463d77[_0x3272b1(0x111)]);_0x4b7bf2[_0x3272b1(0x113)]({'path':_0x463d77['path'],'bytes':_0x53975f[_0x3272b1(0x124)]});}return normalizeLocalFiles(_0x4b7bf2);}
@@ -1 +1 @@
1
- (function(_0x1b83e4,_0x3b94a7){var _0x958649=a110_0x2788,_0x9479d4=_0x1b83e4();while(!![]){try{var _0x13e0fb=-parseInt(_0x958649(0x1a0))/0x1+parseInt(_0x958649(0x199))/0x2*(parseInt(_0x958649(0x19b))/0x3)+parseInt(_0x958649(0x19e))/0x4+parseInt(_0x958649(0x198))/0x5*(-parseInt(_0x958649(0x19a))/0x6)+parseInt(_0x958649(0x19f))/0x7+-parseInt(_0x958649(0x19d))/0x8*(-parseInt(_0x958649(0x19c))/0x9)+parseInt(_0x958649(0x197))/0xa*(-parseInt(_0x958649(0x1a1))/0xb);if(_0x13e0fb===_0x3b94a7)break;else _0x9479d4['push'](_0x9479d4['shift']());}catch(_0x51dee2){_0x9479d4['push'](_0x9479d4['shift']());}}}(a110_0x5e27,0x9423d));function a110_0x5e27(){var _0x7fda78=['6220487DRlPRC','502956ABlQIf','22vJEQYE','6948420kgGrIz','234640YqFKIf','5198DOSXzW','132zIwRyj','1191ELezTt','450yqHpwr','183688NZaqqZ','1853372eCXfSe'];a110_0x5e27=function(){return _0x7fda78;};return a110_0x5e27();}function a110_0x2788(_0x6773c6,_0xcc8fc4){_0x6773c6=_0x6773c6-0x197;var _0x5e270b=a110_0x5e27();var _0x2788e6=_0x5e270b[_0x6773c6];return _0x2788e6;}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';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}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(_0x2d8056,_0x2eb1cd){var _0x42da3c=a110_0x102c,_0x1fdd7d=_0x2d8056();while(!![]){try{var _0x1b18ae=parseInt(_0x42da3c(0x177))/0x1*(parseInt(_0x42da3c(0x17c))/0x2)+parseInt(_0x42da3c(0x176))/0x3+-parseInt(_0x42da3c(0x17f))/0x4*(parseInt(_0x42da3c(0x17a))/0x5)+parseInt(_0x42da3c(0x17d))/0x6*(-parseInt(_0x42da3c(0x180))/0x7)+-parseInt(_0x42da3c(0x17b))/0x8*(parseInt(_0x42da3c(0x179))/0x9)+parseInt(_0x42da3c(0x17e))/0xa+parseInt(_0x42da3c(0x175))/0xb*(parseInt(_0x42da3c(0x178))/0xc);if(_0x1b18ae===_0x2eb1cd)break;else _0x1fdd7d['push'](_0x1fdd7d['shift']());}catch(_0x1cd462){_0x1fdd7d['push'](_0x1fdd7d['shift']());}}}(a110_0x21b6,0x73642));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';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a110_0x102c(_0x567471,_0x3c236c){_0x567471=_0x567471-0x175;var _0x21b675=a110_0x21b6();var _0x102cbe=_0x21b675[_0x567471];return _0x102cbe;}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a110_0x21b6(){var _0x1dc930=['4557630oFTsyI','4VnXYdp','319851vSUFJz','99vqgJfO','138480aPqQhe','475312kePjIc','1124016lQUonh','834615rqANNO','1933515vBMfql','8WWkjcm','2FmjfwV','114SqHkOP'];a110_0x21b6=function(){return _0x1dc930;};return a110_0x21b6();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- function a111_0x4e03(){const _0x617ed6=['7536296urzmmH','2772504opvOVY','1136385uMkfeo','3253228rWsNsw','5jIniVd','7813645bKDKgq','609190Yssxpl','18UyDBPj','6357336ejfFbk'];a111_0x4e03=function(){return _0x617ed6;};return a111_0x4e03();}(function(_0x4c9b6e,_0x3e2a27){const _0x4e48c4=a111_0x3783,_0x31c3cf=_0x4c9b6e();while(!![]){try{const _0x3e554f=-parseInt(_0x4e48c4(0x86))/0x1+parseInt(_0x4e48c4(0x81))/0x2+parseInt(_0x4e48c4(0x85))/0x3+-parseInt(_0x4e48c4(0x87))/0x4*(-parseInt(_0x4e48c4(0x7f))/0x5)+-parseInt(_0x4e48c4(0x83))/0x6+-parseInt(_0x4e48c4(0x80))/0x7+-parseInt(_0x4e48c4(0x84))/0x8*(-parseInt(_0x4e48c4(0x82))/0x9);if(_0x3e554f===_0x3e2a27)break;else _0x31c3cf['push'](_0x31c3cf['shift']());}catch(_0x40e3e8){_0x31c3cf['push'](_0x31c3cf['shift']());}}}(a111_0x4e03,0x95e50));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a111_0x3783(_0x214643,_0x5dc0b5){_0x214643=_0x214643-0x7f;const _0x4e03ea=a111_0x4e03();let _0x3783bf=_0x4e03ea[_0x214643];return _0x3783bf;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x29e958,_0x29093f){const _0x5af330=a111_0x575f,_0x3bd8b7=_0x29e958();while(!![]){try{const _0x1c1d5d=parseInt(_0x5af330(0x16b))/0x1*(-parseInt(_0x5af330(0x165))/0x2)+-parseInt(_0x5af330(0x169))/0x3*(-parseInt(_0x5af330(0x164))/0x4)+parseInt(_0x5af330(0x168))/0x5+-parseInt(_0x5af330(0x166))/0x6+parseInt(_0x5af330(0x16a))/0x7+parseInt(_0x5af330(0x16e))/0x8*(parseInt(_0x5af330(0x167))/0x9)+-parseInt(_0x5af330(0x16c))/0xa*(parseInt(_0x5af330(0x16d))/0xb);if(_0x1c1d5d===_0x29093f)break;else _0x3bd8b7['push'](_0x3bd8b7['shift']());}catch(_0x4af840){_0x3bd8b7['push'](_0x3bd8b7['shift']());}}}(a111_0x1d0b,0x93702));function a111_0x1d0b(){const _0x195b71=['557532LpakpM','54yPgJPl','3677335fJisTv','3JCXxns','5229903iRJclV','1nFYhnj','631860znfwHY','154QYgvje','91808zwdLDP','585712oClKpU','232896YTApuh'];a111_0x1d0b=function(){return _0x195b71;};return a111_0x1d0b();}function a111_0x575f(_0x369120,_0x107765){_0x369120=_0x369120-0x164;const _0x1d0b1a=a111_0x1d0b();let _0x575ffa=_0x1d0b1a[_0x369120];return _0x575ffa;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a112_0x5d8cf8=a112_0x3951;(function(_0x1dc812,_0x595a9b){const _0x2504c6=a112_0x3951,_0x5ad101=_0x1dc812();while(!![]){try{const _0x566456=parseInt(_0x2504c6(0x1f0))/0x1*(parseInt(_0x2504c6(0x1d6))/0x2)+parseInt(_0x2504c6(0x1ce))/0x3*(parseInt(_0x2504c6(0x1f9))/0x4)+parseInt(_0x2504c6(0x1d0))/0x5*(-parseInt(_0x2504c6(0x1cf))/0x6)+parseInt(_0x2504c6(0x204))/0x7*(parseInt(_0x2504c6(0x1d9))/0x8)+-parseInt(_0x2504c6(0x1df))/0x9*(-parseInt(_0x2504c6(0x1ee))/0xa)+-parseInt(_0x2504c6(0x1da))/0xb+parseInt(_0x2504c6(0x1cb))/0xc;if(_0x566456===_0x595a9b)break;else _0x5ad101['push'](_0x5ad101['shift']());}catch(_0x175873){_0x5ad101['push'](_0x5ad101['shift']());}}}(a112_0x16b3,0xc3a46));function a112_0x3951(_0x4732ca,_0x45470d){_0x4732ca=_0x4732ca-0x1cb;const _0x16b3e7=a112_0x16b3();let _0x3951e9=_0x16b3e7[_0x4732ca];return _0x3951e9;}import a112_0x2e1fdc from'winston';import a112_0x22a61c from'node:fs';import a112_0xd294fa from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a112_0x16b3(){const _0x2dc873=['logTask','setRawCommand','12dYcqgN','394866odPtoS','95gsBHRq','timestamp','join','message','error','initWinstonLogger','317698zDHRNK','warn','details','120cSSXBT','12035243MjHTRM','log','yellow','Failed:\x20','transports','1282410YQEFQD','map','toISOString','duration','readFileSync','winstonLogger','parse','Failed\x20to\x20clear\x20logs:','currentRawCommand','rawCommand','filter','blue','info','logFilePath','File','20ONtzWw','readLogs','7Efwwmx','unknown','utf8','Failed\x20to\x20read\x20logs:','red','errors','green','setLogPath','success','935932CXpgnq','command','printf','trim','split','level','logFileName','addColors','format','now','combine','45983ljsSYf','8573784nRCZvY'];a112_0x16b3=function(){return _0x2dc873;};return a112_0x16b3();}class Logger{[a112_0x5d8cf8(0x1e4)];[a112_0x5d8cf8(0x1ec)]='';['currentRawCommand']='';constructor(){}[a112_0x5d8cf8(0x1cd)](_0x54202b){const _0x313b8f=a112_0x5d8cf8;this[_0x313b8f(0x1e7)]=_0x54202b;}[a112_0x5d8cf8(0x1f7)](_0x2df687){const _0x293cc6=a112_0x5d8cf8;this['logFilePath']=a112_0xd294fa[_0x293cc6(0x1d2)](_0x2df687,PRODUCT_CONFIG[_0x293cc6(0x1ff)]),this['winstonLogger']&&this[_0x293cc6(0x1e4)]['clear'](),this['initWinstonLogger']();}[a112_0x5d8cf8(0x1d5)](){const _0x10d965=a112_0x5d8cf8,_0x2f62f3=a112_0xd294fa['dirname'](this[_0x10d965(0x1ec)]);!a112_0x22a61c['existsSync'](_0x2f62f3)&&a112_0x22a61c['mkdirSync'](_0x2f62f3,{'recursive':!![]});const _0x3098ba=a112_0x2e1fdc[_0x10d965(0x201)][_0x10d965(0x203)](a112_0x2e1fdc['format'][_0x10d965(0x1d1)](),a112_0x2e1fdc[_0x10d965(0x201)][_0x10d965(0x1f5)]({'stack':!![]}),a112_0x2e1fdc[_0x10d965(0x201)][_0x10d965(0x1fb)](_0x3fc7fe=>{const _0x194dc1=_0x10d965,_0x5ec1b9={'timestamp':_0x3fc7fe[_0x194dc1(0x1d1)]||new Date()[_0x194dc1(0x1e1)](),'level':_0x3fc7fe[_0x194dc1(0x1fe)]||_0x194dc1(0x1eb),'command':_0x3fc7fe[_0x194dc1(0x1fa)]||_0x194dc1(0x1f1),'rawCommand':_0x3fc7fe[_0x194dc1(0x1e8)]||this[_0x194dc1(0x1e7)]||undefined,'message':_0x3fc7fe[_0x194dc1(0x1d3)]||'','duration':_0x3fc7fe[_0x194dc1(0x1e2)]||undefined,'details':_0x3fc7fe[_0x194dc1(0x1d8)]||undefined};return JSON['stringify'](_0x5ec1b9);}));this[_0x10d965(0x1e4)]=a112_0x2e1fdc['createLogger']({'level':'info','format':_0x3098ba,'transports':[new a112_0x2e1fdc[(_0x10d965(0x1de))][(_0x10d965(0x1ed))]({'filename':this[_0x10d965(0x1ec)],'level':'info'})],'silent':![]}),a112_0x2e1fdc[_0x10d965(0x200)]({'success':_0x10d965(0x1f6),'error':_0x10d965(0x1f4),'warn':_0x10d965(0x1dc),'info':_0x10d965(0x1ea)});}[a112_0x5d8cf8(0x1eb)](_0x28de1d,_0x21cfbe,_0x34f5f6){const _0x296187=a112_0x5d8cf8;if(!this[_0x296187(0x1ec)]||!this[_0x296187(0x1e4)])return;this[_0x296187(0x1e4)]['info'](_0x21cfbe,{'command':_0x28de1d,'details':_0x34f5f6});}[a112_0x5d8cf8(0x1f8)](_0x55abe7,_0xd1cb81,_0x2c2237,_0x4a47a0){const _0x50e2cd=a112_0x5d8cf8;if(!this[_0x50e2cd(0x1ec)]||!this[_0x50e2cd(0x1e4)])return;this[_0x50e2cd(0x1e4)][_0x50e2cd(0x1db)]('info',_0xd1cb81,{'level':_0x50e2cd(0x1f8),'command':_0x55abe7,'duration':_0x2c2237,'details':_0x4a47a0});}[a112_0x5d8cf8(0x1d4)](_0x2d5492,_0xe7ea2a,_0x331aed){const _0x35bce6=a112_0x5d8cf8;if(!this[_0x35bce6(0x1ec)]||!this[_0x35bce6(0x1e4)])return;this[_0x35bce6(0x1e4)][_0x35bce6(0x1d4)](_0xe7ea2a,{'command':_0x2d5492,'details':_0x331aed});}[a112_0x5d8cf8(0x1d7)](_0x7ca95,_0x4e108c,_0x2ec5fc){const _0x18d933=a112_0x5d8cf8;if(!this[_0x18d933(0x1ec)]||!this[_0x18d933(0x1e4)])return;this[_0x18d933(0x1e4)][_0x18d933(0x1d7)](_0x4e108c,{'command':_0x7ca95,'details':_0x2ec5fc});}async[a112_0x5d8cf8(0x1cc)](_0x1be41f,_0x548922,_0x2d4cb7){const _0x135299=a112_0x5d8cf8,_0x4fc79b=Date[_0x135299(0x202)]();this[_0x135299(0x1eb)](_0x1be41f,'Starting:\x20'+_0x548922);try{const _0x93d5b7=await _0x2d4cb7(),_0x551b5a=Date[_0x135299(0x202)]()-_0x4fc79b;return this[_0x135299(0x1f8)](_0x1be41f,'Completed:\x20'+_0x548922,_0x551b5a),_0x93d5b7;}catch(_0x2b879e){const _0x2f7bc0=Date[_0x135299(0x202)]()-_0x4fc79b;this[_0x135299(0x1d4)](_0x1be41f,_0x135299(0x1dd)+_0x548922,{'error':_0x2b879e instanceof Error?_0x2b879e[_0x135299(0x1d3)]:String(_0x2b879e),'duration':_0x2f7bc0});throw _0x2b879e;}}[a112_0x5d8cf8(0x1ef)](){const _0x23312b=a112_0x5d8cf8;try{if(!a112_0x22a61c['existsSync'](this[_0x23312b(0x1ec)]))return[];const _0x4fcb33=a112_0x22a61c[_0x23312b(0x1e3)](this['logFilePath'],_0x23312b(0x1f2));return _0x4fcb33[_0x23312b(0x1fd)](/\r?\n/)[_0x23312b(0x1e9)](_0x18864b=>_0x18864b[_0x23312b(0x1fc)]())[_0x23312b(0x1e0)](_0x4b2527=>JSON[_0x23312b(0x1e5)](_0x4b2527));}catch(_0x2ee246){return console[_0x23312b(0x1d7)](_0x23312b(0x1f3),_0x2ee246),[];}}['clearLogs'](){const _0x19fb13=a112_0x5d8cf8;try{a112_0x22a61c['existsSync'](this[_0x19fb13(0x1ec)])&&a112_0x22a61c['writeFileSync'](this['logFilePath'],'',_0x19fb13(0x1f2));}catch(_0x2994af){console['warn'](_0x19fb13(0x1e6),_0x2994af);}}['getWinstonInstance'](){const _0x4a6698=a112_0x5d8cf8;return this[_0x4a6698(0x1e4)];}}export const logger=new Logger();
1
+ const a112_0x54c6f9=a112_0x3bc1;(function(_0x3a202a,_0x5c531f){const _0x10322e=a112_0x3bc1,_0x450f79=_0x3a202a();while(!![]){try{const _0x37c331=-parseInt(_0x10322e(0xe9))/0x1*(parseInt(_0x10322e(0xea))/0x2)+-parseInt(_0x10322e(0xfe))/0x3*(parseInt(_0x10322e(0x10a))/0x4)+parseInt(_0x10322e(0x101))/0x5+-parseInt(_0x10322e(0xeb))/0x6*(-parseInt(_0x10322e(0xf7))/0x7)+parseInt(_0x10322e(0x102))/0x8+-parseInt(_0x10322e(0x103))/0x9+parseInt(_0x10322e(0xf5))/0xa;if(_0x37c331===_0x5c531f)break;else _0x450f79['push'](_0x450f79['shift']());}catch(_0x4233aa){_0x450f79['push'](_0x450f79['shift']());}}}(a112_0x19fa,0xbcd19));import a112_0x3070f7 from'winston';import a112_0x1aa785 from'node:fs';function a112_0x19fa(){const _0xba5093=['filter','details','red','1107714pOqGRg','setRawCommand','initWinstonLogger','355315TJPclV','1017976KBIGwD','1147149pepBtk','currentRawCommand','File','mkdirSync','timestamp','Failed\x20to\x20clear\x20logs:','trim','16ZtQySK','stringify','now','unknown','createLogger','log','winstonLogger','existsSync','logFilePath','format','error','map','Failed:\x20','success','command','level','blue','utf8','printf','logFileName','writeFileSync','Completed:\x20','info','Starting:\x20','939VVDVLh','2218rnryjd','342ZKuDXS','combine','clear','green','yellow','addColors','setLogPath','Failed\x20to\x20read\x20logs:','split','duration','20149060fdTaag','clearLogs','148099zVUfcP','warn','readFileSync','errors'];a112_0x19fa=function(){return _0xba5093;};return a112_0x19fa();}import a112_0xd22994 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a112_0x54c6f9(0x110)];[a112_0x54c6f9(0x112)]='';[a112_0x54c6f9(0x104)]='';constructor(){}[a112_0x54c6f9(0xff)](_0x4b477a){const _0x3a1ba3=a112_0x54c6f9;this[_0x3a1ba3(0x104)]=_0x4b477a;}[a112_0x54c6f9(0xf1)](_0x1683cc){const _0x1b8c96=a112_0x54c6f9;this[_0x1b8c96(0x112)]=a112_0xd22994['join'](_0x1683cc,PRODUCT_CONFIG[_0x1b8c96(0xe4)]),this[_0x1b8c96(0x110)]&&this['winstonLogger'][_0x1b8c96(0xed)](),this[_0x1b8c96(0x100)]();}[a112_0x54c6f9(0x100)](){const _0x31516d=a112_0x54c6f9,_0x56367b=a112_0xd22994['dirname'](this[_0x31516d(0x112)]);!a112_0x1aa785['existsSync'](_0x56367b)&&a112_0x1aa785[_0x31516d(0x106)](_0x56367b,{'recursive':!![]});const _0x274049=a112_0x3070f7[_0x31516d(0x113)][_0x31516d(0xec)](a112_0x3070f7[_0x31516d(0x113)]['timestamp'](),a112_0x3070f7[_0x31516d(0x113)][_0x31516d(0xfa)]({'stack':!![]}),a112_0x3070f7['format'][_0x31516d(0xe3)](_0x939835=>{const _0x30def6=_0x31516d,_0x537332={'timestamp':_0x939835[_0x30def6(0x107)]||new Date()['toISOString'](),'level':_0x939835[_0x30def6(0xe0)]||_0x30def6(0xe7),'command':_0x939835[_0x30def6(0xdf)]||_0x30def6(0x10d),'rawCommand':_0x939835['rawCommand']||this['currentRawCommand']||undefined,'message':_0x939835['message']||'','duration':_0x939835[_0x30def6(0xf4)]||undefined,'details':_0x939835[_0x30def6(0xfc)]||undefined};return JSON[_0x30def6(0x10b)](_0x537332);}));this[_0x31516d(0x110)]=a112_0x3070f7[_0x31516d(0x10e)]({'level':_0x31516d(0xe7),'format':_0x274049,'transports':[new a112_0x3070f7['transports'][(_0x31516d(0x105))]({'filename':this['logFilePath'],'level':_0x31516d(0xe7)})],'silent':![]}),a112_0x3070f7[_0x31516d(0xf0)]({'success':_0x31516d(0xee),'error':_0x31516d(0xfd),'warn':_0x31516d(0xef),'info':_0x31516d(0xe1)});}[a112_0x54c6f9(0xe7)](_0x1fb637,_0x3f74fd,_0x5921d7){const _0x4600e9=a112_0x54c6f9;if(!this[_0x4600e9(0x112)]||!this[_0x4600e9(0x110)])return;this[_0x4600e9(0x110)][_0x4600e9(0xe7)](_0x3f74fd,{'command':_0x1fb637,'details':_0x5921d7});}[a112_0x54c6f9(0xde)](_0x5a522e,_0x417526,_0x9ce7c7,_0x212eaf){const _0x6b6a45=a112_0x54c6f9;if(!this[_0x6b6a45(0x112)]||!this[_0x6b6a45(0x110)])return;this['winstonLogger'][_0x6b6a45(0x10f)]('info',_0x417526,{'level':'success','command':_0x5a522e,'duration':_0x9ce7c7,'details':_0x212eaf});}[a112_0x54c6f9(0x114)](_0x2e16ef,_0x5d9743,_0x1d4900){const _0x317971=a112_0x54c6f9;if(!this[_0x317971(0x112)]||!this['winstonLogger'])return;this[_0x317971(0x110)][_0x317971(0x114)](_0x5d9743,{'command':_0x2e16ef,'details':_0x1d4900});}['warn'](_0x5324f9,_0x1e7fc3,_0x19a72c){const _0x50aefe=a112_0x54c6f9;if(!this[_0x50aefe(0x112)]||!this[_0x50aefe(0x110)])return;this[_0x50aefe(0x110)][_0x50aefe(0xf8)](_0x1e7fc3,{'command':_0x5324f9,'details':_0x19a72c});}async['logTask'](_0x304547,_0xb5830,_0x31f5c4){const _0x184998=a112_0x54c6f9,_0x390419=Date[_0x184998(0x10c)]();this[_0x184998(0xe7)](_0x304547,_0x184998(0xe8)+_0xb5830);try{const _0x2e5b19=await _0x31f5c4(),_0xf2b888=Date[_0x184998(0x10c)]()-_0x390419;return this[_0x184998(0xde)](_0x304547,_0x184998(0xe6)+_0xb5830,_0xf2b888),_0x2e5b19;}catch(_0x13d5ce){const _0x3ede08=Date[_0x184998(0x10c)]()-_0x390419;this[_0x184998(0x114)](_0x304547,_0x184998(0xdd)+_0xb5830,{'error':_0x13d5ce instanceof Error?_0x13d5ce['message']:String(_0x13d5ce),'duration':_0x3ede08});throw _0x13d5ce;}}['readLogs'](){const _0x5cc5ac=a112_0x54c6f9;try{if(!a112_0x1aa785[_0x5cc5ac(0x111)](this[_0x5cc5ac(0x112)]))return[];const _0x2853d9=a112_0x1aa785[_0x5cc5ac(0xf9)](this[_0x5cc5ac(0x112)],_0x5cc5ac(0xe2));return _0x2853d9[_0x5cc5ac(0xf3)](/\r?\n/)[_0x5cc5ac(0xfb)](_0x559f44=>_0x559f44[_0x5cc5ac(0x109)]())[_0x5cc5ac(0xdc)](_0x5bc376=>JSON['parse'](_0x5bc376));}catch(_0x2b3344){return console['warn'](_0x5cc5ac(0xf2),_0x2b3344),[];}}[a112_0x54c6f9(0xf6)](){const _0x1bf321=a112_0x54c6f9;try{a112_0x1aa785[_0x1bf321(0x111)](this[_0x1bf321(0x112)])&&a112_0x1aa785[_0x1bf321(0xe5)](this[_0x1bf321(0x112)],'',_0x1bf321(0xe2));}catch(_0x22313f){console[_0x1bf321(0xf8)](_0x1bf321(0x108),_0x22313f);}}['getWinstonInstance'](){const _0x495032=a112_0x54c6f9;return this[_0x495032(0x110)];}}function a112_0x3bc1(_0x5d111d,_0x2d8a94){_0x5d111d=_0x5d111d-0xdc;const _0x19fa23=a112_0x19fa();let _0x3bc14a=_0x19fa23[_0x5d111d];return _0x3bc14a;}export const logger=new Logger();
@@ -1 +1 @@
1
- const a113_0x1c9d7b=a113_0x26c9;function a113_0x3236(){const _0x5511af=['parse','prototype','includes','186973aMqhHI','736vdgYfc','12999kVcEao','exec','1150710totdNS','slice','length','MAX_SAFE_INTEGER','25683fQhDjy','3632436xCjVEq','text','json','getOwnPropertyDescriptor','647646XEhDQZ','14453220KsFzof','2gRLNjj','defineProperty','388AHIDLk'];a113_0x3236=function(){return _0x5511af;};return a113_0x3236();}(function(_0x5e525e,_0x4683eb){const _0x486e10=a113_0x26c9,_0x5be319=_0x5e525e();while(!![]){try{const _0x29dc6d=-parseInt(_0x486e10(0x169))/0x1*(parseInt(_0x486e10(0x163))/0x2)+parseInt(_0x486e10(0x16b))/0x3*(-parseInt(_0x486e10(0x165))/0x4)+parseInt(_0x486e10(0x16d))/0x5+-parseInt(_0x486e10(0x161))/0x6+parseInt(_0x486e10(0x15c))/0x7*(-parseInt(_0x486e10(0x16a))/0x8)+-parseInt(_0x486e10(0x15d))/0x9+parseInt(_0x486e10(0x162))/0xa;if(_0x29dc6d===_0x4683eb)break;else _0x5be319['push'](_0x5be319['shift']());}catch(_0x55956f){_0x5be319['push'](_0x5be319['shift']());}}}(a113_0x3236,0x357d9));function a113_0x26c9(_0xe6cd94,_0x39b6ee){_0xe6cd94=_0xe6cd94-0x15a;const _0x323612=a113_0x3236();let _0x26c972=_0x323612[_0xe6cd94];return _0x26c972;}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a113_0x1c9d7b(0x15b)]),MIN_SAFE_INTEGER=BigInt(Number['MIN_SAFE_INTEGER']);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x31410e){const _0x2b564e=a113_0x1c9d7b;if(_0x31410e[_0x2b564e(0x168)]('.')||_0x31410e[_0x2b564e(0x168)]('e')||_0x31410e['includes']('E'))return![];const _0x1816b0=BigInt(_0x31410e);return _0x1816b0>MAX_SAFE_INTEGER||_0x1816b0<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0xc3cde0){const _0x4e13c3=a113_0x1c9d7b;let _0x26ea30='',_0x27561b=![],_0x395eb2=![];for(let _0x35dced=0x0;_0x35dced<_0xc3cde0[_0x4e13c3(0x15a)];){const _0x2bf3f5=_0xc3cde0[_0x35dced];if(_0x27561b){_0x26ea30+=_0x2bf3f5,_0x35dced+=0x1;if(_0x395eb2)_0x395eb2=![];else{if(_0x2bf3f5==='\x5c')_0x395eb2=!![];else _0x2bf3f5==='\x22'&&(_0x27561b=![]);}continue;}if(_0x2bf3f5==='\x22'){_0x27561b=!![],_0x26ea30+=_0x2bf3f5,_0x35dced+=0x1;continue;}if(_0x2bf3f5==='-'||_0x2bf3f5>='0'&&_0x2bf3f5<='9'){const _0xede7ac=JSON_NUMBER_PATTERN[_0x4e13c3(0x16c)](_0xc3cde0[_0x4e13c3(0x16e)](_0x35dced))?.[0x0];if(_0xede7ac){_0x26ea30+=isUnsafeIntegerLiteral(_0xede7ac)?'\x22'+_0xede7ac+'\x22':_0xede7ac,_0x35dced+=_0xede7ac[_0x4e13c3(0x15a)];continue;}}_0x26ea30+=_0x2bf3f5,_0x35dced+=0x1;}return _0x26ea30;}export function parseLosslessJson(_0x1266c8){const _0x13773d=a113_0x1c9d7b;return JSON[_0x13773d(0x166)](quoteUnsafeIntegerLiterals(_0x1266c8));}export function installLosslessJsonResponseParser(){const _0x4ca693=a113_0x1c9d7b;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x4ca693(0x167)],originalResponseJsonDescriptor=Object[_0x4ca693(0x160)](responseJsonPrototype,_0x4ca693(0x15f)),Object[_0x4ca693(0x164)](responseJsonPrototype,_0x4ca693(0x15f),{'configurable':!![],'enumerable':![],'value':async function _0x53c2c2(){const _0x1f18b4=_0x4ca693;return parseLosslessJson(await this[_0x1f18b4(0x15e)]());},'writable':!![]}),restoreResponseJsonParser=()=>{const _0xca6e0a=_0x4ca693;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0xca6e0a(0x164)](responseJsonPrototype,_0xca6e0a(0x15f),originalResponseJsonDescriptor):delete responseJsonPrototype[_0xca6e0a(0x15f)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a113_0x4ea638=a113_0x211c;function a113_0x3baf(){const _0x2c748d=['json','405ljckSO','4386732kSMIQR','text','2626014jifvSq','exec','558588kDdTKR','16favMYc','undefined','447460JcTUXF','330130QfxiTL','11OlNEPt','8324UfnLAB','parse','MIN_SAFE_INTEGER','1OXTGQC','length','includes','slice','36221292lVVFgW','2965dkbdGd'];a113_0x3baf=function(){return _0x2c748d;};return a113_0x3baf();}(function(_0x34ed4c,_0x4accbd){const _0x522a7c=a113_0x211c,_0x52550b=_0x34ed4c();while(!![]){try{const _0x232aa7=parseInt(_0x522a7c(0x134))/0x1*(parseInt(_0x522a7c(0x143))/0x2)+-parseInt(_0x522a7c(0x13e))/0x3+parseInt(_0x522a7c(0x131))/0x4*(parseInt(_0x522a7c(0x139))/0x5)+-parseInt(_0x522a7c(0x140))/0x6+-parseInt(_0x522a7c(0x13c))/0x7*(parseInt(_0x522a7c(0x141))/0x8)+-parseInt(_0x522a7c(0x13b))/0x9*(parseInt(_0x522a7c(0x144))/0xa)+parseInt(_0x522a7c(0x130))/0xb*(parseInt(_0x522a7c(0x138))/0xc);if(_0x232aa7===_0x4accbd)break;else _0x52550b['push'](_0x52550b['shift']());}catch(_0x539eeb){_0x52550b['push'](_0x52550b['shift']());}}}(a113_0x3baf,0xbbb3f));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a113_0x4ea638(0x133)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x50c48f){const _0x3488f7=a113_0x4ea638;if(_0x50c48f['includes']('.')||_0x50c48f[_0x3488f7(0x136)]('e')||_0x50c48f[_0x3488f7(0x136)]('E'))return![];const _0x51fe31=BigInt(_0x50c48f);return _0x51fe31>MAX_SAFE_INTEGER||_0x51fe31<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x38160b){const _0x506b86=a113_0x4ea638;let _0x2c72a5='',_0x3d6be3=![],_0x503d4a=![];for(let _0x4726f8=0x0;_0x4726f8<_0x38160b['length'];){const _0x54dc40=_0x38160b[_0x4726f8];if(_0x3d6be3){_0x2c72a5+=_0x54dc40,_0x4726f8+=0x1;if(_0x503d4a)_0x503d4a=![];else{if(_0x54dc40==='\x5c')_0x503d4a=!![];else _0x54dc40==='\x22'&&(_0x3d6be3=![]);}continue;}if(_0x54dc40==='\x22'){_0x3d6be3=!![],_0x2c72a5+=_0x54dc40,_0x4726f8+=0x1;continue;}if(_0x54dc40==='-'||_0x54dc40>='0'&&_0x54dc40<='9'){const _0x128d0b=JSON_NUMBER_PATTERN[_0x506b86(0x13f)](_0x38160b[_0x506b86(0x137)](_0x4726f8))?.[0x0];if(_0x128d0b){_0x2c72a5+=isUnsafeIntegerLiteral(_0x128d0b)?'\x22'+_0x128d0b+'\x22':_0x128d0b,_0x4726f8+=_0x128d0b[_0x506b86(0x135)];continue;}}_0x2c72a5+=_0x54dc40,_0x4726f8+=0x1;}return _0x2c72a5;}export function parseLosslessJson(_0xa1b23c){const _0x56efa1=a113_0x4ea638;return JSON[_0x56efa1(0x132)](quoteUnsafeIntegerLiterals(_0xa1b23c));}export function installLosslessJsonResponseParser(){const _0x3e9208=a113_0x4ea638;if(typeof Response===_0x3e9208(0x142))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x3e9208(0x13a)),Object['defineProperty'](responseJsonPrototype,_0x3e9208(0x13a),{'configurable':!![],'enumerable':![],'value':async function _0x1a2ed6(){const _0x3302ee=_0x3e9208;return parseLosslessJson(await this[_0x3302ee(0x13d)]());},'writable':!![]}),restoreResponseJsonParser=()=>{const _0x3c46e9=_0x3e9208;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x3c46e9(0x13a),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x3c46e9(0x13a)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a113_0x211c(_0x32990f,_0x18fddc){_0x32990f=_0x32990f-0x130;const _0x3baf02=a113_0x3baf();let _0x211c72=_0x3baf02[_0x32990f];return _0x211c72;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x24b080,_0x55f136){const _0x2bf05b=a114_0x4086,_0x3fb133=_0x24b080();while(!![]){try{const _0x2b9c52=parseInt(_0x2bf05b(0x1ee))/0x1*(parseInt(_0x2bf05b(0x1da))/0x2)+parseInt(_0x2bf05b(0x1ec))/0x3*(parseInt(_0x2bf05b(0x1ed))/0x4)+parseInt(_0x2bf05b(0x1e0))/0x5+-parseInt(_0x2bf05b(0x1ef))/0x6+parseInt(_0x2bf05b(0x1d8))/0x7+parseInt(_0x2bf05b(0x1df))/0x8*(parseInt(_0x2bf05b(0x1e4))/0x9)+-parseInt(_0x2bf05b(0x1e7))/0xa*(parseInt(_0x2bf05b(0x1d5))/0xb);if(_0x2b9c52===_0x55f136)break;else _0x3fb133['push'](_0x3fb133['shift']());}catch(_0x2af01c){_0x3fb133['push'](_0x3fb133['shift']());}}}(a114_0x1cc8,0x93627));import{CliErrors}from'../errors.js';function a114_0x4086(_0x36e9ff,_0x4f5103){_0x36e9ff=_0x36e9ff-0x1d4;const _0x1cc8fb=a114_0x1cc8();let _0x408635=_0x1cc8fb[_0x36e9ff];return _0x408635;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x5408da){const _0x59221f=a114_0x4086;if(!_0x5408da)return undefined;try{return parseLosslessJson(_0x5408da);}catch{throw CliErrors[_0x59221f(0x1dd)](_0x59221f(0x1e6)+_0x5408da);}}export function parseJsonParamsValue(_0x5e6e38){const _0x43dc08=a114_0x4086;if(!_0x5e6e38)return undefined;try{return parseLosslessJson(_0x5e6e38);}catch{throw CliErrors[_0x43dc08(0x1dd)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5e6e38);}}export function parseBatchCreateItemsFromParams(_0x843019){const _0x128afe=a114_0x4086;if(Array[_0x128afe(0x1eb)](_0x843019))return _0x843019;if(_0x843019!==null&&_0x843019!==undefined&&typeof _0x843019===_0x128afe(0x1ea)&&Array[_0x128afe(0x1eb)](_0x843019['items']))return _0x843019[_0x128afe(0x1d6)];throw CliErrors[_0x128afe(0x1dd)](_0x128afe(0x1d4),_0x128afe(0x1e3));}function parseDataUpdateId(_0x586635,_0x16f6ec){const _0x5a98e9=a114_0x4086;if(typeof _0x586635==='number'&&Number['isSafeInteger'](_0x586635)&&_0x586635>0x0)return _0x586635;if(typeof _0x586635==='string'){if(/^[1-9]\d*$/[_0x5a98e9(0x1e8)](_0x586635))return _0x586635;}throw CliErrors[_0x5a98e9(0x1dd)](_0x5a98e9(0x1e9)+_0x16f6ec+_0x5a98e9(0x1e2));}function a114_0x1cc8(){const _0x4418f1=['1123048NbSCqy','33638vitmwa','4268412jWCrFv','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','481404ymOvuY','items','id[','7771043DqNpyI','join','64rwLxwO','data\x20update\x20can\x20update\x20at\x20most\x20','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','validation','length','679088FLhJAZ','4038620gGGYhz','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','117SGvUpD','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','Invalid\x20JSON\x20for\x20--params:\x20','700UIpCnU','test','data\x20update\x20--params.','object','isArray','3mEbAEw'];a114_0x1cc8=function(){return _0x4418f1;};return a114_0x1cc8();}export function parseUpdateIdsFromParams(_0x16852d){const _0x3e044f=a114_0x4086;if(_0x16852d===null||_0x16852d===undefined||typeof _0x16852d!==_0x3e044f(0x1ea)||Array['isArray'](_0x16852d))throw CliErrors['validation']('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x3e044f(0x1e5));const _0x48b9aa=_0x16852d['id'];if(_0x48b9aa===undefined||_0x48b9aa===null)throw CliErrors[_0x3e044f(0x1dd)](_0x3e044f(0x1dc),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x41fea6=Array['isArray'](_0x48b9aa)?_0x48b9aa:[_0x48b9aa];if(_0x41fea6[_0x3e044f(0x1de)]===0x0)throw CliErrors[_0x3e044f(0x1dd)](_0x3e044f(0x1e1));if(_0x41fea6[_0x3e044f(0x1de)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x3e044f(0x1dd)](_0x3e044f(0x1db)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x41fea6['length']+'.');return _0x41fea6['map']((_0x388d3d,_0x13e177)=>parseDataUpdateId(_0x388d3d,Array['isArray'](_0x48b9aa)?_0x3e044f(0x1d7)+_0x13e177+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x1e3a76,_0x550146){const _0x2ccdeb=a114_0x4086;if(Array['isArray'](_0x1e3a76['id'])&&_0x550146[_0x2ccdeb(0x1de)]>0x1)return{..._0x1e3a76,'id':_0x550146[_0x2ccdeb(0x1d9)](',')};return _0x1e3a76;}
1
+ (function(_0x3f2422,_0x3906ec){const _0x1dd56d=a114_0x4c98,_0x34fc01=_0x3f2422();while(!![]){try{const _0x23fa06=-parseInt(_0x1dd56d(0x142))/0x1*(parseInt(_0x1dd56d(0x150))/0x2)+-parseInt(_0x1dd56d(0x143))/0x3*(parseInt(_0x1dd56d(0x14b))/0x4)+parseInt(_0x1dd56d(0x146))/0x5+parseInt(_0x1dd56d(0x151))/0x6+parseInt(_0x1dd56d(0x149))/0x7+-parseInt(_0x1dd56d(0x13c))/0x8*(-parseInt(_0x1dd56d(0x13e))/0x9)+-parseInt(_0x1dd56d(0x141))/0xa;if(_0x23fa06===_0x3906ec)break;else _0x34fc01['push'](_0x34fc01['shift']());}catch(_0x46f53c){_0x34fc01['push'](_0x34fc01['shift']());}}}(a114_0x572a,0xe775c));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';function a114_0x4c98(_0x4b6b08,_0x13801c){_0x4b6b08=_0x4b6b08-0x13a;const _0x572a1b=a114_0x572a();let _0x4c98d1=_0x572a1b[_0x4b6b08];return _0x4c98d1;}export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x493713){const _0x4022bd=a114_0x4c98;if(!_0x493713)return undefined;try{return parseLosslessJson(_0x493713);}catch{throw CliErrors['validation'](_0x4022bd(0x14f)+_0x493713);}}export function parseJsonParamsValue(_0x3efebd){const _0x357bc4=a114_0x4c98;if(!_0x3efebd)return undefined;try{return parseLosslessJson(_0x3efebd);}catch{throw CliErrors[_0x357bc4(0x155)](_0x357bc4(0x14f)+_0x3efebd);}}export function parseBatchCreateItemsFromParams(_0x45a37e){const _0x40ec80=a114_0x4c98;if(Array['isArray'](_0x45a37e))return _0x45a37e;if(_0x45a37e!==null&&_0x45a37e!==undefined&&typeof _0x45a37e===_0x40ec80(0x13b)&&Array[_0x40ec80(0x145)](_0x45a37e[_0x40ec80(0x14c)]))return _0x45a37e[_0x40ec80(0x14c)];throw CliErrors['validation']('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x40ec80(0x14d));}function parseDataUpdateId(_0x22d8d7,_0x490ee4){const _0xfe37d6=a114_0x4c98;if(typeof _0x22d8d7===_0xfe37d6(0x13a)&&Number[_0xfe37d6(0x147)](_0x22d8d7)&&_0x22d8d7>0x0)return _0x22d8d7;if(typeof _0x22d8d7==='string'){if(/^[1-9]\d*$/[_0xfe37d6(0x140)](_0x22d8d7))return _0x22d8d7;}throw CliErrors['validation']('data\x20update\x20--params.'+_0x490ee4+_0xfe37d6(0x154));}export function parseUpdateIdsFromParams(_0x57781a){const _0x3eb497=a114_0x4c98;if(_0x57781a===null||_0x57781a===undefined||typeof _0x57781a!==_0x3eb497(0x13b)||Array[_0x3eb497(0x145)](_0x57781a))throw CliErrors[_0x3eb497(0x155)](_0x3eb497(0x14a),_0x3eb497(0x156));const _0x19ebbc=_0x57781a['id'];if(_0x19ebbc===undefined||_0x19ebbc===null)throw CliErrors['validation'](_0x3eb497(0x13d),_0x3eb497(0x156));const _0x674097=Array[_0x3eb497(0x145)](_0x19ebbc)?_0x19ebbc:[_0x19ebbc];if(_0x674097[_0x3eb497(0x13f)]===0x0)throw CliErrors[_0x3eb497(0x155)](_0x3eb497(0x14e));if(_0x674097[_0x3eb497(0x13f)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x3eb497(0x155)](_0x3eb497(0x144)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x674097['length']+'.');return _0x674097[_0x3eb497(0x153)]((_0x31ac15,_0x36e4c3)=>parseDataUpdateId(_0x31ac15,Array['isArray'](_0x19ebbc)?_0x3eb497(0x148)+_0x36e4c3+']':'id'));}function a114_0x572a(){const _0x4f665f=['validation','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','number','object','40wPgQNH','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','2567259XVFDCN','length','test','30729790gAsHlG','272515TkKtqa','116988ZhVWPm','data\x20update\x20can\x20update\x20at\x20most\x20','isArray','7986265fcouna','isSafeInteger','id[','10347911bhjHdC','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','180ULRJcs','items','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','Invalid\x20JSON\x20for\x20--params:\x20','2ZKWQAE','9279558IKplfy','join','map','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.'];a114_0x572a=function(){return _0x4f665f;};return a114_0x572a();}export function normalizeUpdateParamsForRuntime(_0x5231cd,_0x24bbd5){const _0x137887=a114_0x4c98;if(Array['isArray'](_0x5231cd['id'])&&_0x24bbd5[_0x137887(0x13f)]>0x1)return{..._0x5231cd,'id':_0x24bbd5[_0x137887(0x152)](',')};return _0x5231cd;}
@@ -1 +1 @@
1
- function a115_0x54f1(_0x4c44d8,_0x36d0ca){_0x4c44d8=_0x4c44d8-0x1ad;const _0x41cafe=a115_0x41ca();let _0x54f1d6=_0x41cafe[_0x4c44d8];return _0x54f1d6;}const a115_0x69b6b8=a115_0x54f1;(function(_0x26eaa7,_0x54f3d7){const _0x517012=a115_0x54f1,_0x487c8c=_0x26eaa7();while(!![]){try{const _0x444b7e=-parseInt(_0x517012(0x1b3))/0x1*(parseInt(_0x517012(0x1b4))/0x2)+-parseInt(_0x517012(0x1b9))/0x3*(-parseInt(_0x517012(0x1b2))/0x4)+parseInt(_0x517012(0x1b7))/0x5+-parseInt(_0x517012(0x1b8))/0x6+parseInt(_0x517012(0x1b0))/0x7*(-parseInt(_0x517012(0x1b5))/0x8)+parseInt(_0x517012(0x1af))/0x9+parseInt(_0x517012(0x1b6))/0xa;if(_0x444b7e===_0x54f3d7)break;else _0x487c8c['push'](_0x487c8c['shift']());}catch(_0x194781){_0x487c8c['push'](_0x487c8c['shift']());}}}(a115_0x41ca,0xdca0b));function a115_0x41ca(){const _0x39d2be=['win32','platform','6526161SUsqVj','2107puSSrx','.cmd','4kXHwha','1MXtakn','958610QHGZUJ','27672CafAaB','13109840VoSJkT','7540885SxTRwO','7410024OwUnze','344607eDvOOw'];a115_0x41ca=function(){return _0x39d2be;};return a115_0x41ca();}export const isWindows=process[a115_0x69b6b8(0x1ae)]===a115_0x69b6b8(0x1ad);export function resolveNpmBin(_0x33cbad){const _0x59e549=a115_0x69b6b8;return isWindows?_0x33cbad+_0x59e549(0x1b1):_0x33cbad;}
1
+ function a115_0x27bd(){const _0x5fc36b=['8ZqQQBA','3168260QxUARp','5221884VkUsXx','265832QgJwVZ','win32','.cmd','552198xQZKaD','1112930PWaCso','8892674UnNfMa','2093502qtmSiH'];a115_0x27bd=function(){return _0x5fc36b;};return a115_0x27bd();}const a115_0x14c590=a115_0x31be;(function(_0x79c0ba,_0xc90244){const _0x10374d=a115_0x31be,_0x42d12e=_0x79c0ba();while(!![]){try{const _0x511da6=-parseInt(_0x10374d(0xe4))/0x1+parseInt(_0x10374d(0xeb))/0x2+parseInt(_0x10374d(0xe7))/0x3+parseInt(_0x10374d(0xe9))/0x4+-parseInt(_0x10374d(0xe5))/0x5+parseInt(_0x10374d(0xea))/0x6+-parseInt(_0x10374d(0xe6))/0x7*(parseInt(_0x10374d(0xe8))/0x8);if(_0x511da6===_0xc90244)break;else _0x42d12e['push'](_0x42d12e['shift']());}catch(_0x37476f){_0x42d12e['push'](_0x42d12e['shift']());}}}(a115_0x27bd,0x6d5db));export const isWindows=process['platform']===a115_0x14c590(0xec);function a115_0x31be(_0x2f10ad,_0x13cc86){_0x2f10ad=_0x2f10ad-0xe3;const _0x27bd35=a115_0x27bd();let _0x31be4d=_0x27bd35[_0x2f10ad];return _0x31be4d;}export function resolveNpmBin(_0x2735c6){const _0x26058b=a115_0x14c590;return isWindows?_0x2735c6+_0x26058b(0xe3):_0x2735c6;}
@@ -1 +1 @@
1
- (function(_0xe20fee,_0x2042e4){const _0x11f35b=a116_0x38f5,_0x11d122=_0xe20fee();while(!![]){try{const _0x505522=-parseInt(_0x11f35b(0xb1))/0x1+-parseInt(_0x11f35b(0xc8))/0x2+parseInt(_0x11f35b(0xc0))/0x3*(parseInt(_0x11f35b(0xb9))/0x4)+-parseInt(_0x11f35b(0xc7))/0x5+parseInt(_0x11f35b(0xb7))/0x6*(-parseInt(_0x11f35b(0xc5))/0x7)+-parseInt(_0x11f35b(0xc9))/0x8+parseInt(_0x11f35b(0xcb))/0x9;if(_0x505522===_0x2042e4)break;else _0x11d122['push'](_0x11d122['shift']());}catch(_0x367b1b){_0x11d122['push'](_0x11d122['shift']());}}}(a116_0xc616,0x6a544));import{mkdir,readFile,writeFile}from'node:fs/promises';function a116_0xc616(){const _0x497894=['/dist-tags','/-/package/',',\x20run:\x20','lastNotifiedVersion','filter','440278XnbvrX','number','patch','utf8','.cache','latest','12cQXuFA','toLowerCase','176FPwjpM','\x20update','true','/v/','Invalid\x20semver','entries','timeout','41118IsNjFA','stringify','object','prerelease','\x20available,\x20current\x20','942508hWrJxF','trim','1448145vbHHJR','1019304kKFbeN','2033856zOPOHw','checkedAt','14359851sZkwpn','match','update-check.json','yes'];a116_0xc616=function(){return _0x497894;};return a116_0xc616();}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(_0x595747){const _0x3fef50=a116_0x38f5,_0x5811b1=_0x595747[_0x3fef50(0xc6)]()[_0x3fef50(0xcc)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x5811b1)return null;return{'major':Number(_0x5811b1[0x1]),'minor':Number(_0x5811b1[0x2]),'patch':Number(_0x5811b1[0x3]),'prerelease':_0x5811b1[0x4]};}function compareSemver(_0x584953,_0x5b23e9){const _0x50acd4=a116_0x38f5,_0x1cfe05=parseSemver(_0x584953),_0x155eab=parseSemver(_0x5b23e9);if(!_0x1cfe05||!_0x155eab)throw new Error(_0x50acd4(0xbd));for(const _0x1bf678 of['major','minor',_0x50acd4(0xb3)]){if(_0x1cfe05[_0x1bf678]<_0x155eab[_0x1bf678])return-0x1;if(_0x1cfe05[_0x1bf678]>_0x155eab[_0x1bf678])return 0x1;}if(!_0x1cfe05[_0x50acd4(0xc3)]&&!_0x155eab[_0x50acd4(0xc3)])return 0x0;if(!_0x1cfe05[_0x50acd4(0xc3)])return 0x1;if(!_0x155eab[_0x50acd4(0xc3)])return-0x1;if(_0x1cfe05[_0x50acd4(0xc3)]===_0x155eab[_0x50acd4(0xc3)])return 0x0;return _0x1cfe05[_0x50acd4(0xc3)]<_0x155eab[_0x50acd4(0xc3)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0xd665d7=a116_0x38f5,_0xf1de4e=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0xd665d7(0xc6)]()[_0xd665d7(0xb8)]();return _0xf1de4e==='1'||_0xf1de4e===_0xd665d7(0xbb)||_0xf1de4e===_0xd665d7(0xce);}function a116_0x38f5(_0x332d99,_0x3168be){_0x332d99=_0x332d99-0xaf;const _0xc61664=a116_0xc616();let _0x38f59e=_0xc61664[_0x332d99];return _0x38f59e;}function cacheRoot(){const _0x174a97=a116_0x38f5;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x174a97(0xb5));}export function getUpdateNoticeCachePath(){const _0x4505a4=a116_0x38f5;return join(cacheRoot(),'lovrabet-cli',_0x4505a4(0xcd));}async function readUpdateNoticeCache(){const _0x491dce=a116_0x38f5;try{const _0x30bd52=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x12b11a=JSON['parse'](_0x30bd52);if(!_0x12b11a||typeof _0x12b11a!==_0x491dce(0xc2))return{};return _0x12b11a;}catch{return{};}}async function writeUpdateNoticeCache(_0x2a0576){const _0x3e5609=a116_0x38f5;try{const _0x4ad5c6=getUpdateNoticeCachePath();await mkdir(dirname(_0x4ad5c6),{'recursive':!![]}),await writeFile(_0x4ad5c6,JSON[_0x3e5609(0xc1)](_0x2a0576,null,0x2)+'\x0a',_0x3e5609(0xb4));}catch{}}function isFreshCheck(_0x2dafa6,_0x76fa49){const _0x234499=a116_0x38f5;return typeof _0x2dafa6[_0x234499(0xca)]===_0x234499(0xb2)&&_0x76fa49-_0x2dafa6[_0x234499(0xca)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x522cf4,_0x26be68,_0x2e94ed){const _0x1e7b90=a116_0x38f5;return _0x522cf4[_0x1e7b90(0xaf)]===_0x26be68&&typeof _0x522cf4['lastNotifiedAt']===_0x1e7b90(0xb2)&&_0x2e94ed-_0x522cf4['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x189c93=0x5dc){const _0x1cb431=a116_0x38f5;try{const _0x392a5d=NPM_REGISTRY_BASE_URL+_0x1cb431(0xd0)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1cb431(0xcf),_0x3b84e2=await fetch(_0x392a5d,{'signal':AbortSignal[_0x1cb431(0xbf)](_0x189c93)});if(!_0x3b84e2['ok'])return null;const _0x424b66=await _0x3b84e2['json']();if(!_0x424b66||typeof _0x424b66!==_0x1cb431(0xc2))return null;return Object['fromEntries'](Object[_0x1cb431(0xbe)](_0x424b66)[_0x1cb431(0xb0)](([,_0x2e6191])=>typeof _0x2e6191==='string'&&_0x2e6191[_0x1cb431(0xc6)]())['map'](([_0xa52301,_0x1e2141])=>[_0xa52301,String(_0x1e2141)[_0x1cb431(0xc6)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x402915){const _0x5e5b04=a116_0x38f5;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x5e5b04(0xbc)+_0x402915;}export async function resolveLatestUpdateNotice(){const _0x31b928=a116_0x38f5;if(isUpdateNoticeDisabled())return null;try{const _0x1bb153=Date['now'](),_0xa912ee=getCliVersion(),_0x57c385=await readUpdateNoticeCache();let _0x481ddc=isFreshCheck(_0x57c385,_0x1bb153)?_0x57c385[_0x31b928(0xb6)]?.[_0x31b928(0xc6)]():undefined;if(!_0x481ddc&&!isFreshCheck(_0x57c385,_0x1bb153)){const _0x33429a=await fetchNpmDistTags();_0x481ddc=_0x33429a?.['latest']?.[_0x31b928(0xc6)](),await writeUpdateNoticeCache({..._0x57c385,'checkedAt':_0x1bb153,'latest':_0x481ddc,'failed':!_0x481ddc});}if(!_0x481ddc||compareSemver(_0xa912ee,_0x481ddc)>=0x0)return null;if(isRecentlyNotified(_0x57c385,_0x481ddc,_0x1bb153))return null;const _0x481fb4=CLI_BIN_NAME+_0x31b928(0xba);return await writeUpdateNoticeCache({..._0x57c385,'checkedAt':isFreshCheck(_0x57c385,_0x1bb153)?_0x57c385[_0x31b928(0xca)]:_0x1bb153,'latest':_0x481ddc,'failed':![],'lastNotifiedVersion':_0x481ddc,'lastNotifiedAt':_0x1bb153}),{'command':_0x481fb4,'current':_0xa912ee,'latest':_0x481ddc,'url':buildNpmVersionUrl(_0x481ddc),'message':CLI_BIN_NAME+'\x20'+_0x481ddc+_0x31b928(0xc4)+_0xa912ee+_0x31b928(0xd1)+_0x481fb4};}catch{return null;}}
1
+ (function(_0x3d557d,_0x4b4af4){const _0x34d220=a116_0x4375,_0x32049b=_0x3d557d();while(!![]){try{const _0x3e65f3=parseInt(_0x34d220(0xcb))/0x1+-parseInt(_0x34d220(0xc8))/0x2+parseInt(_0x34d220(0xb3))/0x3+-parseInt(_0x34d220(0xb9))/0x4*(parseInt(_0x34d220(0xcd))/0x5)+-parseInt(_0x34d220(0xcf))/0x6*(parseInt(_0x34d220(0xbe))/0x7)+-parseInt(_0x34d220(0xb4))/0x8*(parseInt(_0x34d220(0xc3))/0x9)+-parseInt(_0x34d220(0xc9))/0xa*(-parseInt(_0x34d220(0xcc))/0xb);if(_0x3e65f3===_0x4b4af4)break;else _0x32049b['push'](_0x32049b['shift']());}catch(_0x197849){_0x32049b['push'](_0x32049b['shift']());}}}(a116_0xdf15,0xcf088));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 a116_0x4375(_0x1d5685,_0x3d76d9){_0x1d5685=_0x1d5685-0xae;const _0xdf156=a116_0xdf15();let _0x4375b7=_0xdf156[_0x1d5685];return _0x4375b7;}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(_0x46908a){const _0x4313f9=a116_0x4375,_0x503ecb=_0x46908a['trim']()[_0x4313f9(0xb8)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x503ecb)return null;return{'major':Number(_0x503ecb[0x1]),'minor':Number(_0x503ecb[0x2]),'patch':Number(_0x503ecb[0x3]),'prerelease':_0x503ecb[0x4]};}function compareSemver(_0x3dcffd,_0x46f65e){const _0x1d7a81=a116_0x4375,_0x40c5ec=parseSemver(_0x3dcffd),_0x2eaea7=parseSemver(_0x46f65e);if(!_0x40c5ec||!_0x2eaea7)throw new Error(_0x1d7a81(0xbf));for(const _0x170724 of[_0x1d7a81(0xbb),_0x1d7a81(0xd1),_0x1d7a81(0xbd)]){if(_0x40c5ec[_0x170724]<_0x2eaea7[_0x170724])return-0x1;if(_0x40c5ec[_0x170724]>_0x2eaea7[_0x170724])return 0x1;}if(!_0x40c5ec[_0x1d7a81(0xd2)]&&!_0x2eaea7[_0x1d7a81(0xd2)])return 0x0;if(!_0x40c5ec['prerelease'])return 0x1;if(!_0x2eaea7['prerelease'])return-0x1;if(_0x40c5ec[_0x1d7a81(0xd2)]===_0x2eaea7[_0x1d7a81(0xd2)])return 0x0;return _0x40c5ec[_0x1d7a81(0xd2)]<_0x2eaea7['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0xdfdff4=a116_0x4375,_0x2c1ced=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0xdfdff4(0xaf)]()[_0xdfdff4(0xca)]();return _0x2c1ced==='1'||_0x2c1ced==='true'||_0x2c1ced===_0xdfdff4(0xc1);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x460fdf=a116_0x4375;return join(cacheRoot(),'lovrabet-cli',_0x460fdf(0xc2));}async function readUpdateNoticeCache(){const _0x2f0918=a116_0x4375;try{const _0x3c981e=await readFile(getUpdateNoticeCachePath(),_0x2f0918(0xc6)),_0x5956c5=JSON['parse'](_0x3c981e);if(!_0x5956c5||typeof _0x5956c5!==_0x2f0918(0xbc))return{};return _0x5956c5;}catch{return{};}}async function writeUpdateNoticeCache(_0x1173a0){const _0x35c9c7=a116_0x4375;try{const _0x253bb8=getUpdateNoticeCachePath();await mkdir(dirname(_0x253bb8),{'recursive':!![]}),await writeFile(_0x253bb8,JSON['stringify'](_0x1173a0,null,0x2)+'\x0a',_0x35c9c7(0xc6));}catch{}}function isFreshCheck(_0x1b91e3,_0x35acbc){const _0x4142d9=a116_0x4375;return typeof _0x1b91e3[_0x4142d9(0xc0)]===_0x4142d9(0xae)&&_0x35acbc-_0x1b91e3[_0x4142d9(0xc0)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1bcdf0,_0x327da0,_0x4bcad0){const _0xf10820=a116_0x4375;return _0x1bcdf0[_0xf10820(0xd3)]===_0x327da0&&typeof _0x1bcdf0[_0xf10820(0xc4)]===_0xf10820(0xae)&&_0x4bcad0-_0x1bcdf0['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}function a116_0xdf15(){const _0x2e828a=['77Rvadzw','Invalid\x20semver','checkedAt','yes','update-check.json','863658hQtcmH','lastNotifiedAt','/v/','utf8','map','314054EaqyFc','1186180lYfCfW','toLowerCase','1499666hNNWGK','44qyxezc','5jxcfLh','latest','433182gCFqSi','timeout','minor','prerelease','lastNotifiedVersion','number','trim','/-/package/','entries','fromEntries','2206413OeXUpa','48ChUsYG','json','\x20available,\x20current\x20','https://www.npmjs.com/package/','match','1338540kZFhLo','/dist-tags','major','object','patch'];a116_0xdf15=function(){return _0x2e828a;};return a116_0xdf15();}async function fetchNpmDistTags(_0x3d9c43=0x5dc){const _0x2dcb08=a116_0x4375;try{const _0x192f8c=NPM_REGISTRY_BASE_URL+_0x2dcb08(0xb0)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2dcb08(0xba),_0x1560c6=await fetch(_0x192f8c,{'signal':AbortSignal[_0x2dcb08(0xd0)](_0x3d9c43)});if(!_0x1560c6['ok'])return null;const _0x3623ea=await _0x1560c6[_0x2dcb08(0xb5)]();if(!_0x3623ea||typeof _0x3623ea!==_0x2dcb08(0xbc))return null;return Object[_0x2dcb08(0xb2)](Object[_0x2dcb08(0xb1)](_0x3623ea)['filter'](([,_0x935c2b])=>typeof _0x935c2b==='string'&&_0x935c2b[_0x2dcb08(0xaf)]())[_0x2dcb08(0xc7)](([_0x13e6af,_0x45bf39])=>[_0x13e6af,String(_0x45bf39)[_0x2dcb08(0xaf)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x70134){const _0x3515e7=a116_0x4375;return _0x3515e7(0xb7)+LOVRABET_NPM_PACKAGE_NAME+_0x3515e7(0xc5)+_0x70134;}export async function resolveLatestUpdateNotice(){const _0x262353=a116_0x4375;if(isUpdateNoticeDisabled())return null;try{const _0x580183=Date['now'](),_0x2f12d3=getCliVersion(),_0x30e92f=await readUpdateNoticeCache();let _0x3a91d6=isFreshCheck(_0x30e92f,_0x580183)?_0x30e92f[_0x262353(0xce)]?.['trim']():undefined;if(!_0x3a91d6&&!isFreshCheck(_0x30e92f,_0x580183)){const _0xfcac99=await fetchNpmDistTags();_0x3a91d6=_0xfcac99?.[_0x262353(0xce)]?.[_0x262353(0xaf)](),await writeUpdateNoticeCache({..._0x30e92f,'checkedAt':_0x580183,'latest':_0x3a91d6,'failed':!_0x3a91d6});}if(!_0x3a91d6||compareSemver(_0x2f12d3,_0x3a91d6)>=0x0)return null;if(isRecentlyNotified(_0x30e92f,_0x3a91d6,_0x580183))return null;const _0x17c614=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x30e92f,'checkedAt':isFreshCheck(_0x30e92f,_0x580183)?_0x30e92f[_0x262353(0xc0)]:_0x580183,'latest':_0x3a91d6,'failed':![],'lastNotifiedVersion':_0x3a91d6,'lastNotifiedAt':_0x580183}),{'command':_0x17c614,'current':_0x2f12d3,'latest':_0x3a91d6,'url':buildNpmVersionUrl(_0x3a91d6),'message':CLI_BIN_NAME+'\x20'+_0x3a91d6+_0x262353(0xb6)+_0x2f12d3+',\x20run:\x20'+_0x17c614};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0xe57584,_0x2ac567){const _0x43eef4=a117_0x13ab,_0x248c2e=_0xe57584();while(!![]){try{const _0x1cce21=parseInt(_0x43eef4(0xa3))/0x1+-parseInt(_0x43eef4(0xa1))/0x2*(-parseInt(_0x43eef4(0x99))/0x3)+parseInt(_0x43eef4(0x9b))/0x4*(parseInt(_0x43eef4(0x9e))/0x5)+parseInt(_0x43eef4(0xa0))/0x6+parseInt(_0x43eef4(0xa2))/0x7+parseInt(_0x43eef4(0x9d))/0x8+-parseInt(_0x43eef4(0x9c))/0x9;if(_0x1cce21===_0x2ac567)break;else _0x248c2e['push'](_0x248c2e['shift']());}catch(_0x30e25f){_0x248c2e['push'](_0x248c2e['shift']());}}}(a117_0x25d0,0x8f892));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a117_0x25d0(){const _0x428ff3=['4635844SrkNyZ','41477058JCmgpJ','5446568hVONIi','5XKlSvy','unknown','5015106ROomMV','934CfoKjS','4119640mFMFDS','1030554URerFt','5793EFrrcQ','slice'];a117_0x25d0=function(){return _0x428ff3;};return a117_0x25d0();}function a117_0x13ab(_0x477409,_0x4bdc7a){_0x477409=_0x477409-0x99;const _0x25d051=a117_0x25d0();let _0x13aba0=_0x25d051[_0x477409];return _0x13aba0;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x132fb9=a117_0x13ab,_0x5837c8=String(GIT_COMMIT);return _0x5837c8&&_0x5837c8!==_0x132fb9(0x9f)?_0x5837c8:'';}export function getCliVersionDisplay(){const _0x23a86b=a117_0x13ab,_0x3b3846=getCliGitCommit(),_0x331501=BUILD_TIME[_0x23a86b(0x9a)](0x0,0xa);if(!_0x3b3846||!_0x331501)return VERSION;return VERSION+'\x20('+_0x3b3846+',\x20'+_0x331501+')';}
1
+ (function(_0xbce80b,_0x53ba1b){const _0x1d9024=a117_0x3307,_0x1b08f1=_0xbce80b();while(!![]){try{const _0x4d9279=-parseInt(_0x1d9024(0x97))/0x1+-parseInt(_0x1d9024(0x99))/0x2*(parseInt(_0x1d9024(0x9a))/0x3)+parseInt(_0x1d9024(0x9e))/0x4*(-parseInt(_0x1d9024(0x98))/0x5)+-parseInt(_0x1d9024(0x9c))/0x6+parseInt(_0x1d9024(0x9d))/0x7*(parseInt(_0x1d9024(0x9b))/0x8)+-parseInt(_0x1d9024(0x95))/0x9+parseInt(_0x1d9024(0x96))/0xa;if(_0x4d9279===_0x53ba1b)break;else _0x1b08f1['push'](_0x1b08f1['shift']());}catch(_0x3a7a3){_0x1b08f1['push'](_0x1b08f1['shift']());}}}(a117_0x107d,0xf1391));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a117_0x3307(_0x5ec4d4,_0xafc90){_0x5ec4d4=_0x5ec4d4-0x93;const _0x107dad=a117_0x107d();let _0x3307d8=_0x107dad[_0x5ec4d4];return _0x3307d8;}export function getCliGitCommit(){const _0x28e0a3=a117_0x3307,_0x16e0e1=String(GIT_COMMIT);return _0x16e0e1&&_0x16e0e1!==_0x28e0a3(0x94)?_0x16e0e1:'';}function a117_0x107d(){const _0x1493eb=['21fqGjlf','1361944wCojcM','2548320orQkdB','35iPqnyS','1250336hJmrif','slice','unknown','10999476ZGsqrd','54201570nnRazP','1652822cwHOgM','5Qbftqg','477438eVTcPV'];a117_0x107d=function(){return _0x1493eb;};return a117_0x107d();}export function getCliVersionDisplay(){const _0x290e13=a117_0x3307,_0x3ed185=getCliGitCommit(),_0x5cf4ea=BUILD_TIME[_0x290e13(0x93)](0x0,0xa);if(!_0x3ed185||!_0x5cf4ea)return VERSION;return VERSION+'\x20('+_0x3ed185+',\x20'+_0x5cf4ea+')';}
@@ -1 +1 @@
1
- (function(_0x256c74,_0x7c08f6){var _0xa9e847=a118_0x2849,_0x259d2e=_0x256c74();while(!![]){try{var _0x4c4e60=-parseInt(_0xa9e847(0xc8))/0x1*(parseInt(_0xa9e847(0xca))/0x2)+-parseInt(_0xa9e847(0xce))/0x3*(parseInt(_0xa9e847(0xcb))/0x4)+-parseInt(_0xa9e847(0xcd))/0x5*(-parseInt(_0xa9e847(0xc9))/0x6)+parseInt(_0xa9e847(0xc6))/0x7*(-parseInt(_0xa9e847(0xcf))/0x8)+parseInt(_0xa9e847(0xc5))/0x9+-parseInt(_0xa9e847(0xc7))/0xa+-parseInt(_0xa9e847(0xd0))/0xb*(-parseInt(_0xa9e847(0xcc))/0xc);if(_0x4c4e60===_0x7c08f6)break;else _0x259d2e['push'](_0x259d2e['shift']());}catch(_0x325407){_0x259d2e['push'](_0x259d2e['shift']());}}}(a118_0x2e03,0x8bff0));export function writeCliSideChannelLine(_0xfeb819){process['stderr']['write'](_0xfeb819+'\x0a');}function a118_0x2849(_0x179621,_0x1c8755){_0x179621=_0x179621-0xc5;var _0x2e03f1=a118_0x2e03();var _0x284979=_0x2e03f1[_0x179621];return _0x284979;}function a118_0x2e03(){var _0x1fd40a=['42775WTSQkV','24VAOtQK','8cllaqc','77raVlUz','9549432marxQh','3511907UrLqMU','3632170CHGGpX','458572olgeZB','480SoVFoZ','4mhwGcE','455188loaZcr','2606424tfriKx'];a118_0x2e03=function(){return _0x1fd40a;};return a118_0x2e03();}
1
+ function a118_0xe53e(){var _0x328ac2=['2962842mDnoxT','4193478UwhkWe','177640okTSlD','175ckzwAD','stderr','88uRFzwY','12GUGUlc','76215PjNQEm','1945755rhwqaj','67903KyqxtK','2690190DLmsMD','write'];a118_0xe53e=function(){return _0x328ac2;};return a118_0xe53e();}function a118_0x20a8(_0x44ca94,_0x4f93c3){_0x44ca94=_0x44ca94-0x7a;var _0xe53e7e=a118_0xe53e();var _0x20a8af=_0xe53e7e[_0x44ca94];return _0x20a8af;}(function(_0x2a8e26,_0x4f3274){var _0x278e68=a118_0x20a8,_0x526cf8=_0x2a8e26();while(!![]){try{var _0x457b85=-parseInt(_0x278e68(0x80))/0x1*(parseInt(_0x278e68(0x7d))/0x2)+-parseInt(_0x278e68(0x7e))/0x3*(-parseInt(_0x278e68(0x7c))/0x4)+parseInt(_0x278e68(0x7f))/0x5+parseInt(_0x278e68(0x83))/0x6+-parseInt(_0x278e68(0x7a))/0x7*(parseInt(_0x278e68(0x85))/0x8)+-parseInt(_0x278e68(0x84))/0x9+parseInt(_0x278e68(0x81))/0xa;if(_0x457b85===_0x4f3274)break;else _0x526cf8['push'](_0x526cf8['shift']());}catch(_0x2db62b){_0x526cf8['push'](_0x526cf8['shift']());}}}(a118_0xe53e,0x44f22));export function writeCliSideChannelLine(_0x53e84f){var _0x5ad7fd=a118_0x20a8;process[_0x5ad7fd(0x7b)][_0x5ad7fd(0x82)](_0x53e84f+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.11",
3
+ "version": "2.1.12-beta.1",
4
4
  "description": "Runtime CLI for Lovrabet apps, datasets, SQL, BFF, skills, and AI agent workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [