@lovrabet/lovrabet-cli 2.1.11-beta.2 → 2.1.11

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 -0
  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(_0x3337ad,_0x12813d){const _0x5e7c78=a106_0xec37,_0x223bfc=_0x3337ad();while(!![]){try{const _0x335c5c=-parseInt(_0x5e7c78(0x92))/0x1+parseInt(_0x5e7c78(0x8d))/0x2+parseInt(_0x5e7c78(0x90))/0x3+parseInt(_0x5e7c78(0x8e))/0x4*(-parseInt(_0x5e7c78(0x9b))/0x5)+parseInt(_0x5e7c78(0x91))/0x6+parseInt(_0x5e7c78(0x94))/0x7+-parseInt(_0x5e7c78(0x8f))/0x8*(parseInt(_0x5e7c78(0x99))/0x9);if(_0x335c5c===_0x12813d)break;else _0x223bfc['push'](_0x223bfc['shift']());}catch(_0x372628){_0x223bfc['push'](_0x223bfc['shift']());}}}(a106_0x266c,0xce567));function a106_0x266c(){const _0x1af916=['217456vZLqmz','builtin','10496633JXcSQz','includes','push','personal','company','9wWklNA','Unsupported\x20runtime\x20Skill\x20scope:\x20','6185wnubtx','46142UoxqnO','3372gHTyhj','9482608peOvSP','2616438eLtEXj','5375976qyIMvX'];a106_0x266c=function(){return _0x1af916;};return a106_0x266c();}import{CliErrors}from'../../errors.js';function a106_0xec37(_0xc308ad,_0x4a3406){_0xc308ad=_0xc308ad-0x8d;const _0x266c33=a106_0x266c();let _0xec3764=_0x266c33[_0xc308ad];return _0xec3764;}export function normalizeRuntimeSkillScopes(_0x3ef124){const _0x437107=a106_0xec37,_0x3589bd=_0x3ef124&&_0x3ef124['length']>0x0?_0x3ef124:[_0x437107(0x97),'company',_0x437107(0x93)],_0x37b67d=[];for(const _0x51628f of _0x3589bd){if(!isRuntimeSkillScope(_0x51628f))throw CliErrors['validation'](_0x437107(0x9a)+_0x51628f);!_0x37b67d[_0x437107(0x95)](_0x51628f)&&_0x37b67d[_0x437107(0x96)](_0x51628f);}return _0x37b67d;}export function isRuntimeSkillScope(_0x19b5d0){const _0x3edec5=a106_0xec37;return _0x19b5d0==='personal'||_0x19b5d0===_0x3edec5(0x98)||_0x19b5d0===_0x3edec5(0x93);}
1
+ (function(_0x122f43,_0x7b9a7a){const _0x547c26=a106_0xd8b1,_0x2b89bc=_0x122f43();while(!![]){try{const _0x4d869e=-parseInt(_0x547c26(0x1e5))/0x1*(parseInt(_0x547c26(0x1dd))/0x2)+parseInt(_0x547c26(0x1e8))/0x3*(parseInt(_0x547c26(0x1e9))/0x4)+parseInt(_0x547c26(0x1e4))/0x5*(-parseInt(_0x547c26(0x1e1))/0x6)+-parseInt(_0x547c26(0x1de))/0x7*(parseInt(_0x547c26(0x1e0))/0x8)+-parseInt(_0x547c26(0x1e3))/0x9*(parseInt(_0x547c26(0x1d7))/0xa)+parseInt(_0x547c26(0x1df))/0xb+-parseInt(_0x547c26(0x1da))/0xc*(-parseInt(_0x547c26(0x1e7))/0xd);if(_0x4d869e===_0x7b9a7a)break;else _0x2b89bc['push'](_0x2b89bc['shift']());}catch(_0xfdf613){_0x2b89bc['push'](_0x2b89bc['shift']());}}}(a106_0x7afa,0x8c0a7));import{CliErrors}from'../../errors.js';function a106_0xd8b1(_0x396fb9,_0x4beb1a){_0x396fb9=_0x396fb9-0x1d6;const _0x7afa99=a106_0x7afa();let _0xd8b19c=_0x7afa99[_0x396fb9];return _0xd8b19c;}export function normalizeRuntimeSkillScopes(_0x342e2d){const _0x4f4332=a106_0xd8b1,_0x5b3d45=_0x342e2d&&_0x342e2d[_0x4f4332(0x1e2)]>0x0?_0x342e2d:['personal',_0x4f4332(0x1db),_0x4f4332(0x1d6)],_0x566334=[];for(const _0x53c942 of _0x5b3d45){if(!isRuntimeSkillScope(_0x53c942))throw CliErrors[_0x4f4332(0x1d8)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x53c942);!_0x566334[_0x4f4332(0x1e6)](_0x53c942)&&_0x566334[_0x4f4332(0x1dc)](_0x53c942);}return _0x566334;}function a106_0x7afa(){const _0x342c1e=['23075HcMAmH','3rwyIuK','4532908UyYeqS','builtin','154250AujAzf','validation','personal','10740uIRCLg','company','push','64oXbeVU','4278218PrBpHs','2194742vlMLmF','8uozRFF','4350246ASRRsf','length','576BYoynS','5EKSqYS','761jYwKgp','includes'];a106_0x7afa=function(){return _0x342c1e;};return a106_0x7afa();}export function isRuntimeSkillScope(_0x50f2f2){const _0x56cf62=a106_0xd8b1;return _0x50f2f2===_0x56cf62(0x1d9)||_0x50f2f2==='company'||_0x50f2f2==='builtin';}
@@ -1 +1 @@
1
- const a108_0x5bfecf=a108_0x2482;(function(_0x24949c,_0xd9cc13){const _0xf7dce9=a108_0x2482,_0x499c8f=_0x24949c();while(!![]){try{const _0xb31dde=-parseInt(_0xf7dce9(0xff))/0x1*(-parseInt(_0xf7dce9(0x102))/0x2)+parseInt(_0xf7dce9(0x10e))/0x3*(parseInt(_0xf7dce9(0x101))/0x4)+-parseInt(_0xf7dce9(0x100))/0x5+-parseInt(_0xf7dce9(0x10d))/0x6*(-parseInt(_0xf7dce9(0x109))/0x7)+parseInt(_0xf7dce9(0x105))/0x8+parseInt(_0xf7dce9(0x111))/0x9*(-parseInt(_0xf7dce9(0x106))/0xa)+-parseInt(_0xf7dce9(0x104))/0xb;if(_0xb31dde===_0xd9cc13)break;else _0x499c8f['push'](_0x499c8f['shift']());}catch(_0x4d3659){_0x499c8f['push'](_0x499c8f['shift']());}}}(a108_0x2dbb,0x29939));function a108_0x2482(_0x2ee08a,_0x5e38f6){_0x2ee08a=_0x2ee08a-0xfb;const _0x2dbbec=a108_0x2dbb();let _0x24820a=_0x2dbbec[_0x2ee08a];return _0x24820a;}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_0x5bfecf(0x10c));export function createDeterministicZipPackage(_0x225093){const _0x3fa343=a108_0x5bfecf,_0x8b4bf8={};for(const _0x217362 of normalizeLocalFiles(_0x225093)){_0x8b4bf8[_0x217362['path']]=fileContent(_0x217362);}return Buffer[_0x3fa343(0xfe)](zipSync(_0x8b4bf8,{'level':0x0,'mtime':ZIP_MTIME}));}function a108_0x2dbb(){const _0x57c7ae=['sort','1089571ocigBt','object','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1980-01-01T00:00:00.000Z','6AtcXDi','2904FkHqYc','code','entries','1640502fVbKXd','validation_error','name','length','from','15cJMBSl','908865PBOIue','492SpgCVn','360yInwHs','map','855833etFVlu','2677872sCobeJ','10YtIuPn','validation'];a108_0x2dbb=function(){return _0x57c7ae;};return a108_0x2dbb();}export function parseZipPackage(_0x334a6e){const _0x1893f2=a108_0x5bfecf;if(_0x334a6e[_0x1893f2(0xfd)]<0x16)throw CliErrors[_0x1893f2(0x107)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x4d5c0d;try{_0x4d5c0d=unzipSync(_0x334a6e,{'filter'(_0x429417){const _0x28b551=_0x1893f2,_0x3197e7=normalizeSkillRelativePath(_0x429417[_0x28b551(0xfc)]);if(_0x3197e7['endsWith']('/'))throw CliErrors[_0x28b551(0x107)](_0x28b551(0x10b)+_0x3197e7);return!![];}});}catch(_0x1cec15){if(isRuntimeSkillValidationError(_0x1cec15))throw _0x1cec15;throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x1893f2(0x110)](_0x4d5c0d)[_0x1893f2(0x103)](([_0x25ffd0,_0x385ac7])=>({'path':normalizeSkillRelativePath(_0x25ffd0),'bytes':Buffer['from'](_0x385ac7)}))[_0x1893f2(0x108)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x416706){const _0x3c2f7e=a108_0x5bfecf;return typeof _0x416706===_0x3c2f7e(0x10a)&&_0x416706!==null&&_0x3c2f7e(0x10f)in _0x416706&&_0x416706[_0x3c2f7e(0x10f)]===_0x3c2f7e(0xfb);}
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 +1 @@
1
- (function(_0x5f3094,_0x5dbd08){const _0x524fda=a109_0x17b2,_0x58ddb0=_0x5f3094();while(!![]){try{const _0x5d88db=parseInt(_0x524fda(0xba))/0x1*(-parseInt(_0x524fda(0xb6))/0x2)+-parseInt(_0x524fda(0xd8))/0x3+-parseInt(_0x524fda(0xcc))/0x4+parseInt(_0x524fda(0xbe))/0x5+parseInt(_0x524fda(0xca))/0x6*(parseInt(_0x524fda(0xb8))/0x7)+parseInt(_0x524fda(0xd6))/0x8+-parseInt(_0x524fda(0xe0))/0x9*(-parseInt(_0x524fda(0xd0))/0xa);if(_0x5d88db===_0x5dbd08)break;else _0x58ddb0['push'](_0x58ddb0['shift']());}catch(_0x619b57){_0x58ddb0['push'](_0x58ddb0['shift']());}}}(a109_0x1d45,0xbecd6));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(_0x36bd3e){const _0x3d1f31=a109_0x17b2,_0x31b028=normalizeLocalFiles(_0x36bd3e);if(!_0x31b028['some'](_0x56da2a=>_0x56da2a[_0x3d1f31(0xdd)]===SKILL_FILE))throw CliErrors[_0x3d1f31(0xb7)](_0x3d1f31(0xc2)+SKILL_FILE+_0x3d1f31(0xc9));const _0x45be0a=localFilesToManifestFiles(_0x31b028),_0x5f39d3=createDeterministicZipPackage(_0x31b028);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x45be0a),'zipSha256':bufferSha256(_0x5f39d3),'zipSize':_0x5f39d3[_0x3d1f31(0xc3)],'files':_0x45be0a},'packageBytes':_0x5f39d3,'packageBase64':_0x5f39d3[_0x3d1f31(0xda)]('base64')};}export function verifyRuntimeSkillPackage(_0x47acf7,_0x21cc9b){const _0xa1a0d3=a109_0x17b2,_0x5d586f=normalizePackageManifest(_0x47acf7,{'requireOssPath':![]});if(!_0x5d586f)throw CliErrors[_0xa1a0d3(0xb7)](_0xa1a0d3(0xc7));return extractAndVerifyPackage(_0x5d586f,_0x21cc9b);}function a109_0x1d45(){const _0x4f2eed=['Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20','path','zipSize','zipSha256','1845765azyKJX','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','schemaVersion','2CENKJN','validation','7648424HQcUIi','some','1020619DOByjh','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','ossPath','string','1962730SngzaV','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','isArray','treeSha256','Missing\x20','length','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','set','isSafeInteger','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','toLowerCase','\x20in\x20Skill\x20file\x20package.','6nObIat','size','798164ShNuBj','get','map','sha256','10yoHGBR','push','requireOssPath','bytes','files','object','2622144iFWNSJ','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','49035IWaosJ','Runtime\x20Skill\x20package\x20size\x20mismatch.','toString'];a109_0x1d45=function(){return _0x4f2eed;};return a109_0x1d45();}export function verifyRuntimeSkillBundle(_0x1a87cd,_0x9616a8){const _0x44dba8=a109_0x17b2,_0x8081bf=normalizePackageManifest(_0x1a87cd,{'requireOssPath':![]});if(!_0x8081bf)throw CliErrors['validation'](_0x44dba8(0xc7));return extractAndVerifyPackageFiles(_0x8081bf,_0x9616a8);}export function tryNormalizePackageManifest(_0x6fa2bb){return normalizePackageManifest(_0x6fa2bb,{'requireOssPath':![]});}export function requirePackageBytes(_0x572e49,_0xd9a5a5){const _0x5caff5=a109_0x17b2;if(!_0xd9a5a5||_0xd9a5a5[_0x5caff5(0xc3)]===0x0)throw CliErrors[_0x5caff5(0xb7)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x572e49);return _0xd9a5a5;}export function extractDownloadedPackage(_0x1348d1){const _0x34da18=a109_0x17b2,_0x166b43=parseZipPackage(_0x1348d1)['map'](_0x331d7e=>({'path':_0x331d7e[_0x34da18(0xdd)],'bytes':_0x331d7e[_0x34da18(0xd3)]}));if(!_0x166b43[_0x34da18(0xb9)](_0x215ad5=>_0x215ad5[_0x34da18(0xdd)]===SKILL_FILE))throw CliErrors['validation'](_0x34da18(0xdc)+SKILL_FILE+'.');return normalizeLocalFiles(_0x166b43);}export function localFilesToManifestFiles(_0x48ac1e){const _0x2a397a=a109_0x17b2;return normalizeLocalFiles(_0x48ac1e)[_0x2a397a(0xce)](_0x40ec22=>({'path':_0x40ec22[_0x2a397a(0xdd)],'sha256':fileHash(_0x40ec22),'size':fileContent(_0x40ec22)[_0x2a397a(0xc3)]}));}function normalizePackageManifest(_0x5f3aef,_0x2470fe){const _0x3b48bd=a109_0x17b2;if(!_0x5f3aef||typeof _0x5f3aef!==_0x3b48bd(0xd5)||Array['isArray'](_0x5f3aef))return undefined;const _0x4923dd=_0x5f3aef,_0x135bbe=typeof _0x4923dd[_0x3b48bd(0xbc)]===_0x3b48bd(0xbd)?_0x4923dd[_0x3b48bd(0xbc)]['trim']():undefined;if(_0x2470fe[_0x3b48bd(0xd2)]&&!_0x135bbe)return undefined;if(!Array[_0x3b48bd(0xc0)](_0x4923dd[_0x3b48bd(0xd4)])||_0x4923dd[_0x3b48bd(0xd4)][_0x3b48bd(0xc3)]===0x0)return undefined;if(!isSha256Hex(_0x4923dd[_0x3b48bd(0xc1)]))throw CliErrors[_0x3b48bd(0xb7)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x4923dd['zipSha256']))throw CliErrors[_0x3b48bd(0xb7)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x3b48bd(0xc6)](_0x4923dd[_0x3b48bd(0xde)])||_0x4923dd['zipSize']<0x0)throw CliErrors[_0x3b48bd(0xb7)](_0x3b48bd(0xbf));const _0x377c45=normalizeManifestFiles(_0x4923dd[_0x3b48bd(0xd4)]);if(!_0x377c45[_0x3b48bd(0xb9)](_0x406fd6=>_0x406fd6[_0x3b48bd(0xdd)]===SKILL_FILE))throw CliErrors[_0x3b48bd(0xb7)](_0x3b48bd(0xd7)+SKILL_FILE+'.');const _0x314a71=fileTreeHash(_0x377c45);if(_0x314a71!==_0x4923dd[_0x3b48bd(0xc1)]['toLowerCase']())throw CliErrors[_0x3b48bd(0xb7)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x3b48bd(0xc6)](_0x4923dd[_0x3b48bd(0xb5)])?_0x4923dd[_0x3b48bd(0xb5)]:0x2,'ossPath':_0x135bbe,'treeSha256':_0x314a71,'zipSha256':_0x4923dd[_0x3b48bd(0xdf)][_0x3b48bd(0xc8)](),'zipSize':_0x4923dd[_0x3b48bd(0xde)],'files':_0x377c45};}function extractAndVerifyPackage(_0x583eda,_0x141f0c){const _0x62067=a109_0x17b2,_0x1317ca=normalizePackageManifest(_0x583eda,{'requireOssPath':![]});if(!_0x1317ca)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x141f0c[_0x62067(0xc3)]!==_0x1317ca['zipSize'])throw CliErrors['validation'](_0x62067(0xd9));const _0x1f7661=bufferSha256(_0x141f0c);if(_0x1f7661!==_0x1317ca['zipSha256'])throw CliErrors[_0x62067(0xb7)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x1317ca,_0x141f0c);}function a109_0x17b2(_0x589a6e,_0x1f9bb7){_0x589a6e=_0x589a6e-0xb5;const _0x1d4559=a109_0x1d45();let _0x17b277=_0x1d4559[_0x589a6e];return _0x17b277;}function extractAndVerifyPackageFiles(_0x19ef95,_0x29b3e7){const _0x4802d0=a109_0x17b2,_0x1eeb53=parseZipPackage(_0x29b3e7);if(_0x1eeb53[_0x4802d0(0xc3)]!==_0x19ef95[_0x4802d0(0xd4)][_0x4802d0(0xc3)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x343679=new Map();for(const _0xa8a7e0 of _0x1eeb53){if(_0x343679['has'](_0xa8a7e0[_0x4802d0(0xdd)]))throw CliErrors[_0x4802d0(0xb7)](_0x4802d0(0xdb)+_0xa8a7e0[_0x4802d0(0xdd)]);_0x343679[_0x4802d0(0xc5)](_0xa8a7e0[_0x4802d0(0xdd)],_0xa8a7e0);}const _0x2738ce=[];for(const _0x2c80ef of _0x19ef95[_0x4802d0(0xd4)]){const _0x474df6=_0x343679[_0x4802d0(0xcd)](_0x2c80ef[_0x4802d0(0xdd)]);if(!_0x474df6)throw CliErrors['validation'](_0x4802d0(0xbb)+_0x2c80ef[_0x4802d0(0xdd)]);if(_0x474df6[_0x4802d0(0xd3)][_0x4802d0(0xc3)]!==_0x2c80ef[_0x4802d0(0xcb)])throw CliErrors['validation'](_0x4802d0(0xc4)+_0x2c80ef[_0x4802d0(0xdd)]);const _0x13915a=bufferSha256(_0x474df6[_0x4802d0(0xd3)]);if(_0x13915a!==_0x2c80ef[_0x4802d0(0xcf)])throw CliErrors[_0x4802d0(0xb7)](_0x4802d0(0xe1)+_0x2c80ef[_0x4802d0(0xdd)]);_0x2738ce[_0x4802d0(0xd1)]({'path':_0x2c80ef[_0x4802d0(0xdd)],'bytes':_0x474df6[_0x4802d0(0xd3)]});}return normalizeLocalFiles(_0x2738ce);}
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 +1 @@
1
- (function(_0x49b8a7,_0x4f0856){var _0x56ed94=a110_0x1af2,_0x6c0e8a=_0x49b8a7();while(!![]){try{var _0x498fe1=parseInt(_0x56ed94(0x145))/0x1+parseInt(_0x56ed94(0x143))/0x2+parseInt(_0x56ed94(0x142))/0x3*(parseInt(_0x56ed94(0x144))/0x4)+parseInt(_0x56ed94(0x146))/0x5+parseInt(_0x56ed94(0x13d))/0x6+parseInt(_0x56ed94(0x13e))/0x7*(-parseInt(_0x56ed94(0x141))/0x8)+-parseInt(_0x56ed94(0x13f))/0x9*(parseInt(_0x56ed94(0x140))/0xa);if(_0x498fe1===_0x4f0856)break;else _0x6c0e8a['push'](_0x6c0e8a['shift']());}catch(_0x360ca2){_0x6c0e8a['push'](_0x6c0e8a['shift']());}}}(a110_0x51f5,0x2c41f));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 a110_0x51f5(){var _0x312f7d=['413290vSKJir','1939002YWsTiH','1077083SuSDPZ','45kXUeqL','1194550DqItLD','16IhtvhY','76323ychzNa','472556fJWHkn','56jsJgzg','88015QIJOgM'];a110_0x51f5=function(){return _0x312f7d;};return a110_0x51f5();}export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a110_0x1af2(_0x2c5209,_0x4ebf5d){_0x2c5209=_0x2c5209-0x13d;var _0x51f5a2=a110_0x51f5();var _0x1af21f=_0x51f5a2[_0x2c5209];return _0x1af21f;}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(_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 +1 @@
1
- (function(_0x3d2162,_0x1437b8){const _0x3e5712=a111_0x5aac,_0x4e0870=_0x3d2162();while(!![]){try{const _0x2b1e17=parseInt(_0x3e5712(0x150))/0x1+-parseInt(_0x3e5712(0x152))/0x2*(parseInt(_0x3e5712(0x156))/0x3)+-parseInt(_0x3e5712(0x151))/0x4+parseInt(_0x3e5712(0x153))/0x5*(parseInt(_0x3e5712(0x159))/0x6)+parseInt(_0x3e5712(0x157))/0x7+-parseInt(_0x3e5712(0x155))/0x8*(parseInt(_0x3e5712(0x158))/0x9)+parseInt(_0x3e5712(0x154))/0xa*(parseInt(_0x3e5712(0x15a))/0xb);if(_0x2b1e17===_0x1437b8)break;else _0x4e0870['push'](_0x4e0870['shift']());}catch(_0x4ea351){_0x4e0870['push'](_0x4e0870['shift']());}}}(a111_0x102e,0x25989));function a111_0x5aac(_0x3f5f93,_0x436477){_0x3f5f93=_0x3f5f93-0x150;const _0x102e75=a111_0x102e();let _0x5aac93=_0x102e75[_0x3f5f93];return _0x5aac93;}function a111_0x102e(){const _0x1da4ad=['33831xwqPpz','1744925ENnxon','9emqKbh','3222HgcPCs','22vdicEk','2565hvbRXg','417016aCApBI','48WQKVFc','2380JYGTPe','1342910ECubUC','1977112kfHaxn'];a111_0x102e=function(){return _0x1da4ad;};return a111_0x102e();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
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 +1 @@
1
- const a112_0x2adce3=a112_0x4d7c;(function(_0xf32b8c,_0x4f3530){const _0x11ce6e=a112_0x4d7c,_0x1876a9=_0xf32b8c();while(!![]){try{const _0x21f109=-parseInt(_0x11ce6e(0x1ea))/0x1+-parseInt(_0x11ce6e(0x1c3))/0x2+parseInt(_0x11ce6e(0x1dc))/0x3*(parseInt(_0x11ce6e(0x1c1))/0x4)+parseInt(_0x11ce6e(0x1e0))/0x5+-parseInt(_0x11ce6e(0x1ce))/0x6+-parseInt(_0x11ce6e(0x1db))/0x7+parseInt(_0x11ce6e(0x1c0))/0x8;if(_0x21f109===_0x4f3530)break;else _0x1876a9['push'](_0x1876a9['shift']());}catch(_0x2db3ee){_0x1876a9['push'](_0x1876a9['shift']());}}}(a112_0x3dcf,0x20063));import a112_0x192bfd from'winston';function a112_0x3dcf(){const _0x2138f1=['warn','currentRawCommand','Failed\x20to\x20read\x20logs:','Starting:\x20','trim','unknown','initWinstonLogger','1201980lBEyiY','combine','createLogger','stringify','readFileSync','success','winstonLogger','writeFileSync','addColors','Failed\x20to\x20clear\x20logs:','level','map','toISOString','1281833HYHGts','6xydDvd','log','format','now','491650oWGEfg','rawCommand','utf8','timestamp','dirname','blue','readLogs','details','info','message','201767FcBJKY','duration','join','logFilePath','File','4784768HNwSXT','512476jIKbNg','existsSync','472554gwkeLl','setRawCommand','error','clear'];a112_0x3dcf=function(){return _0x2138f1;};return a112_0x3dcf();}import a112_0x355594 from'node:fs';import a112_0x45198e from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a112_0x4d7c(_0x38302a,_0x2dc761){_0x38302a=_0x38302a-0x1bf;const _0x3dcf95=a112_0x3dcf();let _0x4d7ccc=_0x3dcf95[_0x38302a];return _0x4d7ccc;}class Logger{[a112_0x2adce3(0x1d4)];[a112_0x2adce3(0x1ed)]='';[a112_0x2adce3(0x1c8)]='';constructor(){}[a112_0x2adce3(0x1c4)](_0x18cb1e){const _0x1025fb=a112_0x2adce3;this[_0x1025fb(0x1c8)]=_0x18cb1e;}['setLogPath'](_0x3e35bb){const _0x430866=a112_0x2adce3;this[_0x430866(0x1ed)]=a112_0x45198e[_0x430866(0x1ec)](_0x3e35bb,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x430866(0x1d4)][_0x430866(0x1c6)](),this[_0x430866(0x1cd)]();}[a112_0x2adce3(0x1cd)](){const _0x3d98c0=a112_0x2adce3,_0x576f5e=a112_0x45198e[_0x3d98c0(0x1e4)](this[_0x3d98c0(0x1ed)]);!a112_0x355594['existsSync'](_0x576f5e)&&a112_0x355594['mkdirSync'](_0x576f5e,{'recursive':!![]});const _0xe2c6ec=a112_0x192bfd[_0x3d98c0(0x1de)][_0x3d98c0(0x1cf)](a112_0x192bfd['format'][_0x3d98c0(0x1e3)](),a112_0x192bfd[_0x3d98c0(0x1de)]['errors']({'stack':!![]}),a112_0x192bfd[_0x3d98c0(0x1de)]['printf'](_0xe10c18=>{const _0x1808f7=_0x3d98c0,_0x2535e9={'timestamp':_0xe10c18[_0x1808f7(0x1e3)]||new Date()[_0x1808f7(0x1da)](),'level':_0xe10c18[_0x1808f7(0x1d8)]||'info','command':_0xe10c18['command']||_0x1808f7(0x1cc),'rawCommand':_0xe10c18[_0x1808f7(0x1e1)]||this['currentRawCommand']||undefined,'message':_0xe10c18[_0x1808f7(0x1e9)]||'','duration':_0xe10c18[_0x1808f7(0x1eb)]||undefined,'details':_0xe10c18[_0x1808f7(0x1e7)]||undefined};return JSON[_0x1808f7(0x1d1)](_0x2535e9);}));this['winstonLogger']=a112_0x192bfd[_0x3d98c0(0x1d0)]({'level':_0x3d98c0(0x1e8),'format':_0xe2c6ec,'transports':[new a112_0x192bfd['transports'][(_0x3d98c0(0x1bf))]({'filename':this[_0x3d98c0(0x1ed)],'level':_0x3d98c0(0x1e8)})],'silent':![]}),a112_0x192bfd[_0x3d98c0(0x1d6)]({'success':'green','error':'red','warn':'yellow','info':_0x3d98c0(0x1e5)});}['info'](_0x22b5c5,_0x3f6e5d,_0x565071){const _0xf0a72f=a112_0x2adce3;if(!this[_0xf0a72f(0x1ed)]||!this[_0xf0a72f(0x1d4)])return;this[_0xf0a72f(0x1d4)][_0xf0a72f(0x1e8)](_0x3f6e5d,{'command':_0x22b5c5,'details':_0x565071});}[a112_0x2adce3(0x1d3)](_0xb993ee,_0x47e60b,_0x4c7918,_0x28a5ec){const _0x3ba5d2=a112_0x2adce3;if(!this['logFilePath']||!this[_0x3ba5d2(0x1d4)])return;this[_0x3ba5d2(0x1d4)][_0x3ba5d2(0x1dd)](_0x3ba5d2(0x1e8),_0x47e60b,{'level':_0x3ba5d2(0x1d3),'command':_0xb993ee,'duration':_0x4c7918,'details':_0x28a5ec});}[a112_0x2adce3(0x1c5)](_0x4b8902,_0x2cad39,_0xc62d76){const _0x376079=a112_0x2adce3;if(!this['logFilePath']||!this[_0x376079(0x1d4)])return;this[_0x376079(0x1d4)]['error'](_0x2cad39,{'command':_0x4b8902,'details':_0xc62d76});}['warn'](_0x237422,_0x354cea,_0x38e503){const _0x2d2726=a112_0x2adce3;if(!this[_0x2d2726(0x1ed)]||!this['winstonLogger'])return;this[_0x2d2726(0x1d4)][_0x2d2726(0x1c7)](_0x354cea,{'command':_0x237422,'details':_0x38e503});}async['logTask'](_0x3d9c46,_0x196b25,_0x5181ed){const _0x2a7a52=a112_0x2adce3,_0x503a49=Date[_0x2a7a52(0x1df)]();this[_0x2a7a52(0x1e8)](_0x3d9c46,_0x2a7a52(0x1ca)+_0x196b25);try{const _0x26b4ba=await _0x5181ed(),_0x1badf0=Date[_0x2a7a52(0x1df)]()-_0x503a49;return this['success'](_0x3d9c46,'Completed:\x20'+_0x196b25,_0x1badf0),_0x26b4ba;}catch(_0x1da75e){const _0x51edcd=Date[_0x2a7a52(0x1df)]()-_0x503a49;this[_0x2a7a52(0x1c5)](_0x3d9c46,'Failed:\x20'+_0x196b25,{'error':_0x1da75e instanceof Error?_0x1da75e[_0x2a7a52(0x1e9)]:String(_0x1da75e),'duration':_0x51edcd});throw _0x1da75e;}}[a112_0x2adce3(0x1e6)](){const _0x5c49c9=a112_0x2adce3;try{if(!a112_0x355594[_0x5c49c9(0x1c2)](this[_0x5c49c9(0x1ed)]))return[];const _0x258fb2=a112_0x355594[_0x5c49c9(0x1d2)](this['logFilePath'],_0x5c49c9(0x1e2));return _0x258fb2['split'](/\r?\n/)['filter'](_0x2d48d5=>_0x2d48d5[_0x5c49c9(0x1cb)]())[_0x5c49c9(0x1d9)](_0x3d6231=>JSON['parse'](_0x3d6231));}catch(_0x5de471){return console[_0x5c49c9(0x1c7)](_0x5c49c9(0x1c9),_0x5de471),[];}}['clearLogs'](){const _0x4f5f35=a112_0x2adce3;try{a112_0x355594['existsSync'](this['logFilePath'])&&a112_0x355594[_0x4f5f35(0x1d5)](this[_0x4f5f35(0x1ed)],'',_0x4f5f35(0x1e2));}catch(_0xa0188c){console[_0x4f5f35(0x1c7)](_0x4f5f35(0x1d7),_0xa0188c);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
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();
@@ -0,0 +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 +1 @@
1
- (function(_0x32d425,_0x473d7b){const _0x53d90e=a113_0x4f32,_0x3f3c6e=_0x32d425();while(!![]){try{const _0x3b7cb5=parseInt(_0x53d90e(0xe7))/0x1+parseInt(_0x53d90e(0xf1))/0x2*(-parseInt(_0x53d90e(0xec))/0x3)+-parseInt(_0x53d90e(0xf0))/0x4*(-parseInt(_0x53d90e(0xee))/0x5)+parseInt(_0x53d90e(0xe1))/0x6+parseInt(_0x53d90e(0xeb))/0x7+parseInt(_0x53d90e(0xe5))/0x8+-parseInt(_0x53d90e(0xf3))/0x9;if(_0x3b7cb5===_0x473d7b)break;else _0x3f3c6e['push'](_0x3f3c6e['shift']());}catch(_0x3135aa){_0x3f3c6e['push'](_0x3f3c6e['shift']());}}}(a113_0x5c45,0x806ba));import{CliErrors}from'../errors.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x10502b){const _0x4b27da=a113_0x4f32;if(!_0x10502b)return undefined;try{return JSON[_0x4b27da(0xea)](_0x10502b);}catch{throw CliErrors[_0x4b27da(0xe4)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x10502b);}}export function parseJsonParamsValue(_0x1d5a84){const _0x52367e=a113_0x4f32;if(!_0x1d5a84)return undefined;try{return JSON['parse'](_0x1d5a84);}catch{throw CliErrors[_0x52367e(0xe4)](_0x52367e(0xf8)+_0x1d5a84);}}function a113_0x4f32(_0x254481,_0x53f368){_0x254481=_0x254481-0xe1;const _0x5c4531=a113_0x5c45();let _0x4f320b=_0x5c4531[_0x254481];return _0x4f320b;}function a113_0x5c45(){const _0x3b7569=['validation','1611408emRyfa','length','634658fVujWJ','map','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','parse','4522546mDvrNf','210eCyQCR','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','158605iWzVxq','\x20records\x20per\x20call;\x20received\x20','4ZTUsYQ','1582mwgrdT','items','15584292dANsDU','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','object','isSafeInteger','Invalid\x20JSON\x20for\x20--params:\x20','4794510jMZGsh','join','isArray'];a113_0x5c45=function(){return _0x3b7569;};return a113_0x5c45();}export function parseBatchCreateItemsFromParams(_0x46d048){const _0x39b28d=a113_0x4f32;if(Array[_0x39b28d(0xe3)](_0x46d048))return _0x46d048;if(_0x46d048!==null&&_0x46d048!==undefined&&typeof _0x46d048==='object'&&Array[_0x39b28d(0xe3)](_0x46d048[_0x39b28d(0xf2)]))return _0x46d048[_0x39b28d(0xf2)];throw CliErrors[_0x39b28d(0xe4)](_0x39b28d(0xf5),_0x39b28d(0xe9));}function parseDataUpdateId(_0x374d4c,_0x53ae95){const _0x3f7a29=a113_0x4f32;if(typeof _0x374d4c==='number'&&Number[_0x3f7a29(0xf7)](_0x374d4c)&&_0x374d4c>0x0)return _0x374d4c;if(typeof _0x374d4c==='string'){if(/^[1-9]\d*$/['test'](_0x374d4c))return _0x374d4c;}throw CliErrors['validation']('data\x20update\x20--params.'+_0x53ae95+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x540ef9){const _0x199627=a113_0x4f32;if(_0x540ef9===null||_0x540ef9===undefined||typeof _0x540ef9!==_0x199627(0xf6)||Array['isArray'](_0x540ef9))throw CliErrors[_0x199627(0xe4)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x199627(0xed));const _0x5345ea=_0x540ef9['id'];if(_0x5345ea===undefined||_0x5345ea===null)throw CliErrors[_0x199627(0xe4)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x199627(0xed));const _0x27a7c2=Array[_0x199627(0xe3)](_0x5345ea)?_0x5345ea:[_0x5345ea];if(_0x27a7c2[_0x199627(0xe6)]===0x0)throw CliErrors[_0x199627(0xe4)](_0x199627(0xf4));if(_0x27a7c2[_0x199627(0xe6)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x199627(0xe4)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x199627(0xef)+_0x27a7c2[_0x199627(0xe6)]+'.');return _0x27a7c2[_0x199627(0xe8)]((_0x22aeb1,_0x2ac262)=>parseDataUpdateId(_0x22aeb1,Array[_0x199627(0xe3)](_0x5345ea)?'id['+_0x2ac262+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x3cfc61,_0x51c0b1){const _0x4597f9=a113_0x4f32;if(Array['isArray'](_0x3cfc61['id'])&&_0x51c0b1['length']>0x1)return{..._0x3cfc61,'id':_0x51c0b1[_0x4597f9(0xe2)](',')};return _0x3cfc61;}
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 +1 @@
1
- const a114_0x216c37=a114_0xe129;function a114_0x4928(){const _0x3087c6=['.cmd','18WKjGQV','468txAphZ','265160bXlERb','618505NznbIw','13434830fwsnQW','99483HHkCxD','win32','7104078nyEXlv','40OZijbM','18gnNcGe','2ECqvfj','36531VEPSGe','570283SZbBiI'];a114_0x4928=function(){return _0x3087c6;};return a114_0x4928();}function a114_0xe129(_0x1c1744,_0x40c4ec){_0x1c1744=_0x1c1744-0x19a;const _0x492818=a114_0x4928();let _0xe1299b=_0x492818[_0x1c1744];return _0xe1299b;}(function(_0x32c12d,_0x2b00d0){const _0x4b6823=a114_0xe129,_0x18226c=_0x32c12d();while(!![]){try{const _0x463c9c=parseInt(_0x4b6823(0x1a0))/0x1*(-parseInt(_0x4b6823(0x1a5))/0x2)+parseInt(_0x4b6823(0x19b))/0x3*(parseInt(_0x4b6823(0x19d))/0x4)+-parseInt(_0x4b6823(0x19e))/0x5*(-parseInt(_0x4b6823(0x1a4))/0x6)+-parseInt(_0x4b6823(0x1a7))/0x7*(parseInt(_0x4b6823(0x1a3))/0x8)+-parseInt(_0x4b6823(0x1a2))/0x9+parseInt(_0x4b6823(0x19f))/0xa+parseInt(_0x4b6823(0x1a6))/0xb*(-parseInt(_0x4b6823(0x19c))/0xc);if(_0x463c9c===_0x2b00d0)break;else _0x18226c['push'](_0x18226c['shift']());}catch(_0x37dfdf){_0x18226c['push'](_0x18226c['shift']());}}}(a114_0x4928,0xa7a2d));export const isWindows=process['platform']===a114_0x216c37(0x1a1);export function resolveNpmBin(_0x144453){const _0x5c5872=a114_0x216c37;return isWindows?_0x144453+_0x5c5872(0x19a):_0x144453;}
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 +1 @@
1
- (function(_0x7ccf6f,_0x275de8){const _0x698dcc=a115_0xaccb,_0x4cf5df=_0x7ccf6f();while(!![]){try{const _0x5027a0=parseInt(_0x698dcc(0x96))/0x1+-parseInt(_0x698dcc(0x93))/0x2*(-parseInt(_0x698dcc(0x87))/0x3)+-parseInt(_0x698dcc(0x79))/0x4*(parseInt(_0x698dcc(0x92))/0x5)+parseInt(_0x698dcc(0x8e))/0x6*(-parseInt(_0x698dcc(0x99))/0x7)+parseInt(_0x698dcc(0x84))/0x8+parseInt(_0x698dcc(0x91))/0x9*(-parseInt(_0x698dcc(0x85))/0xa)+parseInt(_0x698dcc(0x90))/0xb;if(_0x5027a0===_0x275de8)break;else _0x4cf5df['push'](_0x4cf5df['shift']());}catch(_0x2b808e){_0x4cf5df['push'](_0x4cf5df['shift']());}}}(a115_0x18fb,0xcdb7a));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(_0x20cd70){const _0xe41201=a115_0xaccb,_0xbe783a=_0x20cd70['trim']()[_0xe41201(0x7a)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xbe783a)return null;return{'major':Number(_0xbe783a[0x1]),'minor':Number(_0xbe783a[0x2]),'patch':Number(_0xbe783a[0x3]),'prerelease':_0xbe783a[0x4]};}function compareSemver(_0x4092c3,_0x582f30){const _0x548015=a115_0xaccb,_0x5a454f=parseSemver(_0x4092c3),_0x1527bd=parseSemver(_0x582f30);if(!_0x5a454f||!_0x1527bd)throw new Error(_0x548015(0x8c));for(const _0x4417cc of[_0x548015(0x98),_0x548015(0x7c),'patch']){if(_0x5a454f[_0x4417cc]<_0x1527bd[_0x4417cc])return-0x1;if(_0x5a454f[_0x4417cc]>_0x1527bd[_0x4417cc])return 0x1;}if(!_0x5a454f[_0x548015(0x8b)]&&!_0x1527bd[_0x548015(0x8b)])return 0x0;if(!_0x5a454f['prerelease'])return 0x1;if(!_0x1527bd[_0x548015(0x8b)])return-0x1;if(_0x5a454f[_0x548015(0x8b)]===_0x1527bd['prerelease'])return 0x0;return _0x5a454f[_0x548015(0x8b)]<_0x1527bd[_0x548015(0x8b)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x286712=a115_0xaccb,_0x422b4c=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x286712(0x7b)]()[_0x286712(0x7f)]();return _0x422b4c==='1'||_0x422b4c===_0x286712(0x88)||_0x422b4c==='yes';}function a115_0xaccb(_0xd40462,_0x1b2498){_0xd40462=_0xd40462-0x77;const _0x18fbd4=a115_0x18fb();let _0xaccbed=_0x18fbd4[_0xd40462];return _0xaccbed;}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x102eef=a115_0xaccb;return join(cacheRoot(),'lovrabet-cli',_0x102eef(0x8d));}async function readUpdateNoticeCache(){const _0x17fe8c=a115_0xaccb;try{const _0x4e9f31=await readFile(getUpdateNoticeCachePath(),_0x17fe8c(0x97)),_0xabb4de=JSON[_0x17fe8c(0x9a)](_0x4e9f31);if(!_0xabb4de||typeof _0xabb4de!=='object')return{};return _0xabb4de;}catch{return{};}}async function writeUpdateNoticeCache(_0x5bc16c){try{const _0x4f4932=getUpdateNoticeCachePath();await mkdir(dirname(_0x4f4932),{'recursive':!![]}),await writeFile(_0x4f4932,JSON['stringify'](_0x5bc16c,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x147348,_0x2b0a38){const _0x881704=a115_0xaccb;return typeof _0x147348[_0x881704(0x89)]===_0x881704(0x7d)&&_0x2b0a38-_0x147348[_0x881704(0x89)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3f23e6,_0x348807,_0x365814){const _0x523947=a115_0xaccb;return _0x3f23e6[_0x523947(0x7e)]===_0x348807&&typeof _0x3f23e6['lastNotifiedAt']===_0x523947(0x7d)&&_0x365814-_0x3f23e6[_0x523947(0x95)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x2373d7=0x5dc){const _0x41e51a=a115_0xaccb;try{const _0x3db117=NPM_REGISTRY_BASE_URL+_0x41e51a(0x9d)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x41e51a(0x82),_0x5722dc=await fetch(_0x3db117,{'signal':AbortSignal['timeout'](_0x2373d7)});if(!_0x5722dc['ok'])return null;const _0x3eccf0=await _0x5722dc[_0x41e51a(0x8a)]();if(!_0x3eccf0||typeof _0x3eccf0!==_0x41e51a(0x80))return null;return Object[_0x41e51a(0x83)](Object[_0x41e51a(0x8f)](_0x3eccf0)['filter'](([,_0x8743e3])=>typeof _0x8743e3==='string'&&_0x8743e3[_0x41e51a(0x7b)]())['map'](([_0x387ddc,_0x15dc2a])=>[_0x387ddc,String(_0x15dc2a)[_0x41e51a(0x7b)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x3c4b9b){const _0x366eda=a115_0xaccb;return _0x366eda(0x94)+LOVRABET_NPM_PACKAGE_NAME+_0x366eda(0x77)+_0x3c4b9b;}function a115_0x18fb(){const _0x50fb75=['759tcPURF','true','checkedAt','json','prerelease','Invalid\x20semver','update-check.json','2964474YmeFoY','entries','8316572IfwfJr','12978261miWSVv','35ISACnm','12646MoMNxI','https://www.npmjs.com/package/','lastNotifiedAt','446110idbhnC','utf8','major','7CbOvqZ','parse','\x20available,\x20current\x20','latest','/-/package/','/v/','\x20update','225628cVXnPf','match','trim','minor','number','lastNotifiedVersion','toLowerCase','object','now','/dist-tags','fromEntries','2973552IInChb','10leeEOF',',\x20run:\x20'];a115_0x18fb=function(){return _0x50fb75;};return a115_0x18fb();}export async function resolveLatestUpdateNotice(){const _0x5f136e=a115_0xaccb;if(isUpdateNoticeDisabled())return null;try{const _0x25c0cb=Date[_0x5f136e(0x81)](),_0x54a6fb=getCliVersion(),_0x445931=await readUpdateNoticeCache();let _0x58b037=isFreshCheck(_0x445931,_0x25c0cb)?_0x445931[_0x5f136e(0x9c)]?.['trim']():undefined;if(!_0x58b037&&!isFreshCheck(_0x445931,_0x25c0cb)){const _0x5112da=await fetchNpmDistTags();_0x58b037=_0x5112da?.[_0x5f136e(0x9c)]?.['trim'](),await writeUpdateNoticeCache({..._0x445931,'checkedAt':_0x25c0cb,'latest':_0x58b037,'failed':!_0x58b037});}if(!_0x58b037||compareSemver(_0x54a6fb,_0x58b037)>=0x0)return null;if(isRecentlyNotified(_0x445931,_0x58b037,_0x25c0cb))return null;const _0x1ab98b=CLI_BIN_NAME+_0x5f136e(0x78);return await writeUpdateNoticeCache({..._0x445931,'checkedAt':isFreshCheck(_0x445931,_0x25c0cb)?_0x445931['checkedAt']:_0x25c0cb,'latest':_0x58b037,'failed':![],'lastNotifiedVersion':_0x58b037,'lastNotifiedAt':_0x25c0cb}),{'command':_0x1ab98b,'current':_0x54a6fb,'latest':_0x58b037,'url':buildNpmVersionUrl(_0x58b037),'message':CLI_BIN_NAME+'\x20'+_0x58b037+_0x5f136e(0x9b)+_0x54a6fb+_0x5f136e(0x86)+_0x1ab98b};}catch{return null;}}
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 +1 @@
1
- (function(_0x50fc57,_0x59fb06){const _0x116cf6=a116_0x2273,_0x243a4b=_0x50fc57();while(!![]){try{const _0x401623=-parseInt(_0x116cf6(0x193))/0x1*(parseInt(_0x116cf6(0x199))/0x2)+parseInt(_0x116cf6(0x19a))/0x3*(parseInt(_0x116cf6(0x19b))/0x4)+-parseInt(_0x116cf6(0x191))/0x5*(-parseInt(_0x116cf6(0x18f))/0x6)+parseInt(_0x116cf6(0x194))/0x7+parseInt(_0x116cf6(0x190))/0x8+parseInt(_0x116cf6(0x196))/0x9*(parseInt(_0x116cf6(0x192))/0xa)+-parseInt(_0x116cf6(0x198))/0xb;if(_0x401623===_0x59fb06)break;else _0x243a4b['push'](_0x243a4b['shift']());}catch(_0x55dc51){_0x243a4b['push'](_0x243a4b['shift']());}}}(a116_0x576f,0x22c1c));function a116_0x576f(){const _0x35b8e3=['1499778hxBjzh','slice','80478oYWPNU','unknown','2029808YepBbe','56MjDqiu','6bRUYIu','320548FhFbkk','90LnIFKW','429888WQWCyP','2870zMmhor','170RzJjlN','9357ZDRVgW'];a116_0x576f=function(){return _0x35b8e3;};return a116_0x576f();}function a116_0x2273(_0x170a97,_0x2f7964){_0x170a97=_0x170a97-0x18f;const _0x576f5c=a116_0x576f();let _0x227338=_0x576f5c[_0x170a97];return _0x227338;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x1cd62b=a116_0x2273,_0x7d291=String(GIT_COMMIT);return _0x7d291&&_0x7d291!==_0x1cd62b(0x197)?_0x7d291:'';}export function getCliVersionDisplay(){const _0x393268=a116_0x2273,_0x2a3db0=getCliGitCommit(),_0x9753e7=BUILD_TIME[_0x393268(0x195)](0x0,0xa);if(!_0x2a3db0||!_0x9753e7)return VERSION;return VERSION+'\x20('+_0x2a3db0+',\x20'+_0x9753e7+')';}
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 +1 @@
1
- (function(_0x52211e,_0x1e2dda){var _0x366d96=a117_0x2ba9,_0xf9a43=_0x52211e();while(!![]){try{var _0x170b3f=parseInt(_0x366d96(0x1c6))/0x1+-parseInt(_0x366d96(0x1c7))/0x2*(-parseInt(_0x366d96(0x1cc))/0x3)+parseInt(_0x366d96(0x1c2))/0x4*(parseInt(_0x366d96(0x1c5))/0x5)+-parseInt(_0x366d96(0x1cd))/0x6*(parseInt(_0x366d96(0x1c9))/0x7)+parseInt(_0x366d96(0x1ca))/0x8+parseInt(_0x366d96(0x1c3))/0x9+-parseInt(_0x366d96(0x1c8))/0xa*(parseInt(_0x366d96(0x1c1))/0xb);if(_0x170b3f===_0x1e2dda)break;else _0xf9a43['push'](_0xf9a43['shift']());}catch(_0x343857){_0xf9a43['push'](_0xf9a43['shift']());}}}(a117_0x1fef,0x91502));function a117_0x1fef(){var _0x1ee93b=['stderr','1742810hEVdKU','563394khlSNc','587042PPDPWw','17084980mmKCEv','7BjVBSC','3594128dsNklw','write','3PbKqZu','5139294mBPOXr','11XUCVIE','8pAkRGI','10412496WelPbQ'];a117_0x1fef=function(){return _0x1ee93b;};return a117_0x1fef();}function a117_0x2ba9(_0x485604,_0x4bf05b){_0x485604=_0x485604-0x1c1;var _0x1fef4a=a117_0x1fef();var _0x2ba9ac=_0x1fef4a[_0x485604];return _0x2ba9ac;}export function writeCliSideChannelLine(_0xa5f8c2){var _0x5c6dc9=a117_0x2ba9;process[_0x5c6dc9(0x1c4)][_0x5c6dc9(0x1cb)](_0xa5f8c2+'\x0a');}
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.11-beta.2",
3
+ "version": "2.1.11",
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": [