@lovrabet/lovrabet-cli 2.3.4-beta.2 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x144923,_0x4ad88a){const _0x25e62f=a149_0x5170,_0x3da734=_0x144923();while(!![]){try{const _0xd06809=-parseInt(_0x25e62f(0x1cb))/0x1+parseInt(_0x25e62f(0x1c3))/0x2+-parseInt(_0x25e62f(0x1cf))/0x3+-parseInt(_0x25e62f(0x1ca))/0x4+-parseInt(_0x25e62f(0x1c9))/0x5+parseInt(_0x25e62f(0x1d0))/0x6+parseInt(_0x25e62f(0x1cd))/0x7;if(_0xd06809===_0x4ad88a)break;else _0x3da734['push'](_0x3da734['shift']());}catch(_0x56d5e0){_0x3da734['push'](_0x3da734['shift']());}}}(a149_0x3feb,0xe3271));import{CliErrors}from'../../errors.js';function a149_0x5170(_0x38fbac,_0x507164){_0x38fbac=_0x38fbac-0x1c3;const _0x3febd2=a149_0x3feb();let _0x517091=_0x3febd2[_0x38fbac];return _0x517091;}function a149_0x3feb(){const _0x53a667=['543828TFSePg','2985808RlHgWD','validation','includes','push','builtin','personal','9425OagsqJ','573044zJxFBg','991759NPTCQJ','length','7666092yXDwxL','company','1834128MSXWwf'];a149_0x3feb=function(){return _0x53a667;};return a149_0x3feb();}export function normalizeRuntimeSkillScopes(_0x23cd7f){const _0x5bd787=a149_0x5170,_0x1d688b=_0x23cd7f&&_0x23cd7f[_0x5bd787(0x1cc)]>0x0?_0x23cd7f:[_0x5bd787(0x1c8),_0x5bd787(0x1ce),_0x5bd787(0x1c7)],_0x268fdd=[];for(const _0x1d0e93 of _0x1d688b){if(!isRuntimeSkillScope(_0x1d0e93))throw CliErrors[_0x5bd787(0x1c4)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x1d0e93);!_0x268fdd[_0x5bd787(0x1c5)](_0x1d0e93)&&_0x268fdd[_0x5bd787(0x1c6)](_0x1d0e93);}return _0x268fdd;}export function isRuntimeSkillScope(_0x277a8d){const _0x596ae8=a149_0x5170;return _0x277a8d===_0x596ae8(0x1c8)||_0x277a8d===_0x596ae8(0x1ce)||_0x277a8d===_0x596ae8(0x1c7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a151_0x143eb5=a151_0x363f;(function(_0x1ad54e,_0x203c72){const _0x931023=a151_0x363f,_0x3850c6=_0x1ad54e();while(!![]){try{const _0x5307e0=parseInt(_0x931023(0x1da))/0x1*(-parseInt(_0x931023(0x1e8))/0x2)+-parseInt(_0x931023(0x1e1))/0x3+parseInt(_0x931023(0x1e4))/0x4*(-parseInt(_0x931023(0x1e7))/0x5)+-parseInt(_0x931023(0x1df))/0x6+-parseInt(_0x931023(0x1e5))/0x7*(parseInt(_0x931023(0x1e9))/0x8)+parseInt(_0x931023(0x1d6))/0x9+parseInt(_0x931023(0x1e0))/0xa;if(_0x5307e0===_0x203c72)break;else _0x3850c6['push'](_0x3850c6['shift']());}catch(_0x308a04){_0x3850c6['push'](_0x3850c6['shift']());}}}(a151_0x1bb7,0xb9be2));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a151_0x1bb7(){const _0x5a3dc1=['276DtTKrN','99752YxsvAm','endsWith','5423526MFlkNW','length','validation_error','1980-01-01T00:00:00.000Z','5585CujUoi','map','from','object','sort','11454KwVfnQ','20815270YOewjI','215370kMIKSN','validation','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','4tlkGBn','294hPoEDU','path','2776060pZWWlo'];a151_0x1bb7=function(){return _0x5a3dc1;};return a151_0x1bb7();}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a151_0x143eb5(0x1d9));export function createDeterministicZipPackage(_0x243178){const _0x50b4f8=a151_0x143eb5,_0xda121e={};for(const _0x294d83 of normalizeLocalFiles(_0x243178)){_0xda121e[_0x294d83[_0x50b4f8(0x1e6)]]=fileContent(_0x294d83);}return Buffer[_0x50b4f8(0x1dc)](zipSync(_0xda121e,{'level':0x0,'mtime':ZIP_MTIME}));}function a151_0x363f(_0x255d7c,_0x156146){_0x255d7c=_0x255d7c-0x1d5;const _0x1bb7fb=a151_0x1bb7();let _0x363f80=_0x1bb7fb[_0x255d7c];return _0x363f80;}export function parseZipPackage(_0xa1db86){const _0x575faa=a151_0x143eb5;if(_0xa1db86[_0x575faa(0x1d7)]<0x16)throw CliErrors[_0x575faa(0x1e2)](_0x575faa(0x1e3));let _0x24f826;try{_0x24f826=unzipSync(_0xa1db86,{'filter'(_0x21f8b7){const _0x1c5fd3=_0x575faa,_0x2467ad=normalizeSkillRelativePath(_0x21f8b7['name']);if(_0x2467ad[_0x1c5fd3(0x1d5)]('/'))throw CliErrors[_0x1c5fd3(0x1e2)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x2467ad);return!![];}});}catch(_0x3d7301){if(isRuntimeSkillValidationError(_0x3d7301))throw _0x3d7301;throw CliErrors[_0x575faa(0x1e2)](_0x575faa(0x1e3));}return Object['entries'](_0x24f826)[_0x575faa(0x1db)](([_0x2f6145,_0x4dec06])=>({'path':normalizeSkillRelativePath(_0x2f6145),'bytes':Buffer[_0x575faa(0x1dc)](_0x4dec06)}))[_0x575faa(0x1de)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x5488dd){const _0x1473ac=a151_0x143eb5;return typeof _0x5488dd===_0x1473ac(0x1dd)&&_0x5488dd!==null&&'code'in _0x5488dd&&_0x5488dd['code']===_0x1473ac(0x1d8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36bf9c,_0x58297b){const _0x44a811=a152_0x3a1c,_0x5b869a=_0x36bf9c();while(!![]){try{const _0x59e2a5=-parseInt(_0x44a811(0x189))/0x1+parseInt(_0x44a811(0x171))/0x2+parseInt(_0x44a811(0x16f))/0x3+parseInt(_0x44a811(0x178))/0x4+parseInt(_0x44a811(0x184))/0x5+-parseInt(_0x44a811(0x194))/0x6*(-parseInt(_0x44a811(0x175))/0x7)+parseInt(_0x44a811(0x188))/0x8*(-parseInt(_0x44a811(0x197))/0x9);if(_0x59e2a5===_0x58297b)break;else _0x5b869a['push'](_0x5b869a['shift']());}catch(_0x50f630){_0x5b869a['push'](_0x5b869a['shift']());}}}(a152_0x45fb,0x635a6));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 a152_0x3a1c(_0x378d94,_0x29f798){_0x378d94=_0x378d94-0x16f;const _0x45fb5e=a152_0x45fb();let _0x3a1ce6=_0x45fb5e[_0x378d94];return _0x3a1ce6;}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x1356ec){const _0x3b3211=a152_0x3a1c,_0x47c65e=normalizeLocalFiles(_0x1356ec);if(!_0x47c65e[_0x3b3211(0x17f)](_0x54e3e8=>_0x54e3e8['path']===SKILL_FILE))throw CliErrors[_0x3b3211(0x17b)](_0x3b3211(0x17e)+SKILL_FILE+_0x3b3211(0x199));const _0x3d1f6f=localFilesToManifestFiles(_0x47c65e),_0x171135=createDeterministicZipPackage(_0x47c65e);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x3d1f6f),'zipSha256':bufferSha256(_0x171135),'zipSize':_0x171135['length'],'files':_0x3d1f6f},'packageBytes':_0x171135,'packageBase64':_0x171135[_0x3b3211(0x195)]('base64')};}export function verifyRuntimeSkillPackage(_0x397acb,_0x1940d3){const _0x2d8e4d=a152_0x3a1c,_0x396b18=normalizePackageManifest(_0x397acb,{'requireOssPath':![]});if(!_0x396b18)throw CliErrors[_0x2d8e4d(0x17b)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x396b18,_0x1940d3);}export function verifyRuntimeSkillBundle(_0x60bc3b,_0x22709d){const _0x1ff210=normalizePackageManifest(_0x60bc3b,{'requireOssPath':![]});if(!_0x1ff210)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x1ff210,_0x22709d);}export function tryNormalizePackageManifest(_0x5c3e8d){return normalizePackageManifest(_0x5c3e8d,{'requireOssPath':![]});}export function requirePackageBytes(_0xb0b92b,_0x47b2a2){const _0x4067b2=a152_0x3a1c;if(!_0x47b2a2||_0x47b2a2['length']===0x0)throw CliErrors[_0x4067b2(0x17b)](_0x4067b2(0x19d)+_0xb0b92b);return _0x47b2a2;}export function extractDownloadedPackage(_0x2efeae){const _0x32c46c=a152_0x3a1c,_0x2c96f1=parseZipPackage(_0x2efeae)[_0x32c46c(0x18f)](_0x2540f4=>({'path':_0x2540f4[_0x32c46c(0x182)],'bytes':_0x2540f4[_0x32c46c(0x183)]}));if(!_0x2c96f1['some'](_0x1e4bc1=>_0x1e4bc1[_0x32c46c(0x182)]===SKILL_FILE))throw CliErrors['validation'](_0x32c46c(0x180)+SKILL_FILE+'.');return normalizeLocalFiles(_0x2c96f1);}export function localFilesToManifestFiles(_0x2189bd){const _0x553485=a152_0x3a1c;return normalizeLocalFiles(_0x2189bd)[_0x553485(0x18f)](_0x2fea53=>({'path':_0x2fea53[_0x553485(0x182)],'sha256':fileHash(_0x2fea53),'size':fileContent(_0x2fea53)[_0x553485(0x19c)]}));}function a152_0x45fb(){const _0x3b986b=['get','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','validation','size','trim','Missing\x20','some','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','path','bytes','658590AHxfJZ','object','zipSha256','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','152wfGPVm','422831SSWory','sha256','requireOssPath','push','isArray','Runtime\x20Skill\x20package\x20size\x20mismatch.','map','files','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','treeSha256','6PuApkU','toString','schemaVersion','338895tjoNom','Duplicate\x20Skill\x20package\x20entry:\x20','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','string','length','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','192900kEbzVx','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','1420622TgRdYy','zipSize','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','1033613rEswan','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','toLowerCase','1964952ODgCll'];a152_0x45fb=function(){return _0x3b986b;};return a152_0x45fb();}function normalizePackageManifest(_0x3ea821,_0x55c5ed){const _0x36a097=a152_0x3a1c;if(!_0x3ea821||typeof _0x3ea821!==_0x36a097(0x185)||Array[_0x36a097(0x18d)](_0x3ea821))return undefined;const _0x53f169=_0x3ea821,_0x5cbf10=typeof _0x53f169['ossPath']===_0x36a097(0x19b)?_0x53f169['ossPath'][_0x36a097(0x17d)]():undefined;if(_0x55c5ed[_0x36a097(0x18b)]&&!_0x5cbf10)return undefined;if(!Array[_0x36a097(0x18d)](_0x53f169['files'])||_0x53f169['files'][_0x36a097(0x19c)]===0x0)return undefined;if(!isSha256Hex(_0x53f169[_0x36a097(0x193)]))throw CliErrors['validation'](_0x36a097(0x187));if(!isSha256Hex(_0x53f169[_0x36a097(0x186)]))throw CliErrors[_0x36a097(0x17b)](_0x36a097(0x181));if(!Number['isSafeInteger'](_0x53f169[_0x36a097(0x172)])||_0x53f169[_0x36a097(0x172)]<0x0)throw CliErrors[_0x36a097(0x17b)](_0x36a097(0x191));const _0x4905eb=normalizeManifestFiles(_0x53f169[_0x36a097(0x190)]);if(!_0x4905eb[_0x36a097(0x17f)](_0x4872cd=>_0x4872cd[_0x36a097(0x182)]===SKILL_FILE))throw CliErrors[_0x36a097(0x17b)](_0x36a097(0x19a)+SKILL_FILE+'.');const _0xcad3b4=fileTreeHash(_0x4905eb);if(_0xcad3b4!==_0x53f169[_0x36a097(0x193)][_0x36a097(0x177)]())throw CliErrors[_0x36a097(0x17b)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0x53f169[_0x36a097(0x196)])?_0x53f169['schemaVersion']:0x2,'ossPath':_0x5cbf10,'treeSha256':_0xcad3b4,'zipSha256':_0x53f169['zipSha256'][_0x36a097(0x177)](),'zipSize':_0x53f169[_0x36a097(0x172)],'files':_0x4905eb};}function extractAndVerifyPackage(_0x447250,_0x19b17c){const _0xfa6d60=a152_0x3a1c,_0xc810db=normalizePackageManifest(_0x447250,{'requireOssPath':![]});if(!_0xc810db)throw CliErrors[_0xfa6d60(0x17b)](_0xfa6d60(0x192));if(_0x19b17c[_0xfa6d60(0x19c)]!==_0xc810db['zipSize'])throw CliErrors[_0xfa6d60(0x17b)](_0xfa6d60(0x18e));const _0x33e79c=bufferSha256(_0x19b17c);if(_0x33e79c!==_0xc810db['zipSha256'])throw CliErrors[_0xfa6d60(0x17b)](_0xfa6d60(0x17a));return extractAndVerifyPackageFiles(_0xc810db,_0x19b17c);}function extractAndVerifyPackageFiles(_0x14e457,_0x46677c){const _0x33d791=a152_0x3a1c,_0x108f93=parseZipPackage(_0x46677c);if(_0x108f93[_0x33d791(0x19c)]!==_0x14e457['files'][_0x33d791(0x19c)])throw CliErrors[_0x33d791(0x17b)](_0x33d791(0x176));const _0x96c8c=new Map();for(const _0x26572e of _0x108f93){if(_0x96c8c['has'](_0x26572e[_0x33d791(0x182)]))throw CliErrors[_0x33d791(0x17b)](_0x33d791(0x198)+_0x26572e['path']);_0x96c8c['set'](_0x26572e[_0x33d791(0x182)],_0x26572e);}const _0x30f42f=[];for(const _0x5525c8 of _0x14e457['files']){const _0x72a0fa=_0x96c8c[_0x33d791(0x179)](_0x5525c8['path']);if(!_0x72a0fa)throw CliErrors[_0x33d791(0x17b)](_0x33d791(0x170)+_0x5525c8[_0x33d791(0x182)]);if(_0x72a0fa[_0x33d791(0x183)]['length']!==_0x5525c8[_0x33d791(0x17c)])throw CliErrors[_0x33d791(0x17b)](_0x33d791(0x173)+_0x5525c8[_0x33d791(0x182)]);const _0x21d687=bufferSha256(_0x72a0fa[_0x33d791(0x183)]);if(_0x21d687!==_0x5525c8[_0x33d791(0x18a)])throw CliErrors[_0x33d791(0x17b)](_0x33d791(0x174)+_0x5525c8[_0x33d791(0x182)]);_0x30f42f[_0x33d791(0x18c)]({'path':_0x5525c8[_0x33d791(0x182)],'bytes':_0x72a0fa[_0x33d791(0x183)]});}return normalizeLocalFiles(_0x30f42f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5232cc,_0x5930c5){var _0xbbb465=a153_0x19bd,_0x26afec=_0x5232cc();while(!![]){try{var _0x99c0e1=parseInt(_0xbbb465(0xd4))/0x1+-parseInt(_0xbbb465(0xd1))/0x2*(parseInt(_0xbbb465(0xd5))/0x3)+-parseInt(_0xbbb465(0xd7))/0x4*(parseInt(_0xbbb465(0xd2))/0x5)+-parseInt(_0xbbb465(0xd6))/0x6*(-parseInt(_0xbbb465(0xd8))/0x7)+parseInt(_0xbbb465(0xd0))/0x8+parseInt(_0xbbb465(0xd3))/0x9+parseInt(_0xbbb465(0xda))/0xa*(-parseInt(_0xbbb465(0xd9))/0xb);if(_0x99c0e1===_0x5930c5)break;else _0x26afec['push'](_0x26afec['shift']());}catch(_0x183ecf){_0x26afec['push'](_0x26afec['shift']());}}}(a153_0x593e,0xd893a));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';function a153_0x593e(){var _0x515fb4=['10oiYbuw','576448AqKPbq','4XgPyJq','60430VTtQjE','6338592AXlRke','1732857RrCqIn','1189080BfBDTk','6imOkmH','344kWqZUg','4777563PQodwo','5197456sbQbAB'];a153_0x593e=function(){return _0x515fb4;};return a153_0x593e();}export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}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';function a153_0x19bd(_0x3b5558,_0x413693){_0x3b5558=_0x3b5558-0xd0;var _0x593ed6=a153_0x593e();var _0x19bd73=_0x593ed6[_0x3b5558];return _0x19bd73;}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x317ff8=a154_0x44aa;(function(_0x17e972,_0x172b21){const _0x183b1a=a154_0x44aa,_0x4082ff=_0x17e972();while(!![]){try{const _0x1fb08b=-parseInt(_0x183b1a(0x155))/0x1*(-parseInt(_0x183b1a(0x156))/0x2)+-parseInt(_0x183b1a(0x143))/0x3+-parseInt(_0x183b1a(0x158))/0x4+parseInt(_0x183b1a(0x148))/0x5+-parseInt(_0x183b1a(0x14a))/0x6*(-parseInt(_0x183b1a(0x152))/0x7)+parseInt(_0x183b1a(0x14e))/0x8*(parseInt(_0x183b1a(0x139))/0x9)+-parseInt(_0x183b1a(0x154))/0xa;if(_0x1fb08b===_0x172b21)break;else _0x4082ff['push'](_0x4082ff['shift']());}catch(_0x1f120a){_0x4082ff['push'](_0x4082ff['shift']());}}}(a154_0x1721,0x24229));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a154_0x317ff8(0x153),a154_0x317ff8(0x159));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a154_0x317ff8(0x153),'skills'),join(a154_0x317ff8(0x146),a154_0x317ff8(0x141))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a154_0x44aa(_0x34f3e1,_0x317351){_0x34f3e1=_0x34f3e1-0x138;const _0x172129=a154_0x1721();let _0x44aa04=_0x172129[_0x34f3e1];return _0x44aa04;}function a154_0x1721(){const _0x24e92d=['lockFile','globalSkillsDirs','map','absent','parse','unverifiable','skills','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','115590VyQCms','number','reason','.claude','\x20uses\x20unsupported\x20version\x20','1258875xokHQq','home','1403646kywSPU','SKILL.md','utf8','message','64tBhxCI','object','present','not-recorded','7YHLjKk','.agents','5522240RdSTBT','22969sPGoOb','18MDGKGW','includes','584104muzsbV','.skill-lock.json','\x20records\x20\x22','unusable','version','\x20has\x20no\x20skills\x20map','kind','216396CRKbgX','recorded'];a154_0x1721=function(){return _0x24e92d;};return a154_0x1721();}function readLockLookup(_0xcab5b9,_0xa338e8){const _0x3e04c6=a154_0x317ff8;if(!existsSync(_0xcab5b9))return{'kind':'not-recorded'};let _0x342002;try{_0x342002=JSON[_0x3e04c6(0x13f)](readFileSync(_0xcab5b9,_0x3e04c6(0x14c)));}catch(_0x15567c){return{'kind':'unusable','reason':_0xcab5b9+'\x20is\x20unreadable:\x20'+_0x15567c[_0x3e04c6(0x14d)]};}const _0x42a940=_0x342002;if(typeof _0x42a940?.[_0x3e04c6(0x15c)]!==_0x3e04c6(0x144)||!SUPPORTED_LOCK_VERSIONS[_0x3e04c6(0x157)](_0x42a940[_0x3e04c6(0x15c)]))return{'kind':_0x3e04c6(0x15b),'reason':_0xcab5b9+_0x3e04c6(0x147)+String(_0x42a940?.[_0x3e04c6(0x15c)])};if(!_0x42a940['skills']||typeof _0x42a940[_0x3e04c6(0x141)]!==_0x3e04c6(0x14f))return{'kind':_0x3e04c6(0x15b),'reason':_0xcab5b9+_0x3e04c6(0x15d)};return _0x42a940[_0x3e04c6(0x141)][_0xa338e8]?{'kind':'recorded'}:{'kind':_0x3e04c6(0x151)};}export function resolveInstalledSkill(_0x55567a,_0x38a741){const _0x407c26=a154_0x317ff8,_0x335161=_0x38a741?.[_0x407c26(0x149)]??homedir(),_0xcfb1cd=_0x38a741?.[_0x407c26(0x13c)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x4c7be5=>join(_0x335161,_0x4c7be5)),_0x2b658c=_0x38a741?.[_0x407c26(0x13b)]??join(_0x335161,SKILL_LOCK_RELATIVE_PATH),_0x49f058=_0xcfb1cd[_0x407c26(0x13d)](_0x59beaf=>join(_0x59beaf,_0x55567a,_0x407c26(0x14b))),_0x21584d=_0x49f058['find'](_0x6832b1=>existsSync(_0x6832b1));if(_0x21584d)return{'state':_0x407c26(0x150),'path':_0x21584d};const _0x6e6a0c=readLockLookup(_0x2b658c,_0x55567a);if(_0x6e6a0c[_0x407c26(0x138)]===_0x407c26(0x15b))return{'state':_0x407c26(0x140),'reason':_0x6e6a0c[_0x407c26(0x145)]};if(_0x6e6a0c[_0x407c26(0x138)]===_0x407c26(0x13a))return{'state':_0x407c26(0x140),'reason':_0x2b658c+_0x407c26(0x15a)+_0x55567a+_0x407c26(0x142)+('('+_0x49f058['join'](',\x20')+')')};return{'state':_0x407c26(0x13e),'checked':_0x49f058};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a155_0x36b2a0=a155_0x1495;(function(_0x69324c,_0x14330c){const _0x161083=a155_0x1495,_0x39e412=_0x69324c();while(!![]){try{const _0x9d39e7=parseInt(_0x161083(0x1dc))/0x1+parseInt(_0x161083(0x1d2))/0x2+parseInt(_0x161083(0x1d4))/0x3*(parseInt(_0x161083(0x1de))/0x4)+-parseInt(_0x161083(0x1cf))/0x5*(-parseInt(_0x161083(0x1da))/0x6)+parseInt(_0x161083(0x1c8))/0x7*(parseInt(_0x161083(0x1d6))/0x8)+parseInt(_0x161083(0x1e1))/0x9+-parseInt(_0x161083(0x1d5))/0xa;if(_0x9d39e7===_0x14330c)break;else _0x39e412['push'](_0x39e412['shift']());}catch(_0x5bd7cb){_0x39e412['push'](_0x39e412['shift']());}}}(a155_0x539f,0x457a4));const REDACTED_ACCESS_KEY=a155_0x36b2a0(0x1d9);export function maskCliAccessKey(_0x20dcb4){const _0x4d2e34=a155_0x36b2a0;if(typeof _0x20dcb4!==_0x4d2e34(0x1ce)||_0x20dcb4['length']<=0x8)return REDACTED_ACCESS_KEY;return''+_0x20dcb4[_0x4d2e34(0x1ca)](0x0,0x8)+'*'[_0x4d2e34(0x1db)](_0x20dcb4[_0x4d2e34(0x1d1)]-0x8);}function a155_0x1495(_0x538658,_0x19f8fa){_0x538658=_0x538658-0x1c8;const _0x539f44=a155_0x539f();let _0x1495e9=_0x539f44[_0x538658];return _0x1495e9;}export function redactCliConfigCredentials(_0x30076b){const _0x44efc1=a155_0x36b2a0,_0x3072b6={..._0x30076b};return Object[_0x44efc1(0x1e0)][_0x44efc1(0x1df)]['call'](_0x3072b6,'accessKey')&&(_0x3072b6[_0x44efc1(0x1d8)]=maskCliAccessKey(_0x3072b6[_0x44efc1(0x1d8)])),_0x3072b6['apps']&&typeof _0x3072b6[_0x44efc1(0x1cd)]===_0x44efc1(0x1cb)&&!Array['isArray'](_0x3072b6[_0x44efc1(0x1cd)])&&(_0x3072b6['apps']=redactLegacyAppCredentials(_0x3072b6['apps'])),_0x3072b6;}export function redactCliConfigValue(_0x55e8e1,_0x2de258){const _0x1281ed=a155_0x36b2a0;if(_0x55e8e1===_0x1281ed(0x1d8)||/^apps\.[^.]+\.accessKey$/[_0x1281ed(0x1dd)](_0x55e8e1))return maskCliAccessKey(_0x2de258);if(_0x55e8e1==='apps'&&_0x2de258&&typeof _0x2de258===_0x1281ed(0x1cb)&&!Array[_0x1281ed(0x1c9)](_0x2de258))return redactLegacyAppCredentials(_0x2de258);if(/^apps\.[^.]+$/[_0x1281ed(0x1dd)](_0x55e8e1)&&_0x2de258&&typeof _0x2de258===_0x1281ed(0x1cb)&&!Array[_0x1281ed(0x1c9)](_0x2de258)){const _0x19c688=_0x2de258;return Object['prototype']['hasOwnProperty'][_0x1281ed(0x1d3)](_0x19c688,_0x1281ed(0x1d8))?{..._0x19c688,'accessKey':maskCliAccessKey(_0x19c688[_0x1281ed(0x1d8)])}:_0x2de258;}return _0x2de258;}function a155_0x539f(){const _0x2d8025=['isArray','slice','object','entries','apps','string','65TduwpT','map','length','427876bOnFrL','call','476001ECyoxw','21175590fhjTSB','16880wDmXcj','fromEntries','accessKey','<redacted>','177774DkDjpO','repeat','497817nlGFhJ','test','12ziesde','hasOwnProperty','prototype','4671324pVzAuH','1029RawNnx'];a155_0x539f=function(){return _0x2d8025;};return a155_0x539f();}function redactLegacyAppCredentials(_0x47ef63){const _0x3d922e=a155_0x36b2a0;return Object[_0x3d922e(0x1d7)](Object[_0x3d922e(0x1cc)](_0x47ef63)[_0x3d922e(0x1d0)](([_0x3f0812,_0x4ac143])=>{const _0x131f5d=_0x3d922e;if(!_0x4ac143||typeof _0x4ac143!==_0x131f5d(0x1cb)||Array[_0x131f5d(0x1c9)](_0x4ac143))return[_0x3f0812,_0x4ac143];const _0xa95801={..._0x4ac143};return Object[_0x131f5d(0x1e0)]['hasOwnProperty'][_0x131f5d(0x1d3)](_0xa95801,_0x131f5d(0x1d8))&&(_0xa95801[_0x131f5d(0x1d8)]=maskCliAccessKey(_0xa95801['accessKey'])),[_0x3f0812,_0xa95801];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5709e9,_0x5902db){const _0x419d75=a156_0x1129,_0x297045=_0x5709e9();while(!![]){try{const _0x51bde2=-parseInt(_0x419d75(0x1f0))/0x1+parseInt(_0x419d75(0x1ea))/0x2*(parseInt(_0x419d75(0x1eb))/0x3)+parseInt(_0x419d75(0x1ed))/0x4+parseInt(_0x419d75(0x1ef))/0x5*(parseInt(_0x419d75(0x1e6))/0x6)+-parseInt(_0x419d75(0x1e8))/0x7*(-parseInt(_0x419d75(0x1e5))/0x8)+-parseInt(_0x419d75(0x1e9))/0x9*(-parseInt(_0x419d75(0x1ee))/0xa)+parseInt(_0x419d75(0x1ec))/0xb*(-parseInt(_0x419d75(0x1e7))/0xc);if(_0x51bde2===_0x5902db)break;else _0x297045['push'](_0x297045['shift']());}catch(_0x31ef1b){_0x297045['push'](_0x297045['shift']());}}}(a156_0x3685,0xf320f));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a156_0x1129(_0x13d7a8,_0x5c6c77){_0x13d7a8=_0x13d7a8-0x1e5;const _0x36853f=a156_0x3685();let _0x112994=_0x36853f[_0x13d7a8];return _0x112994;}function a156_0x3685(){const _0x2c413b=['175Pywjcf','1258676OMceLC','324952XQxlTM','207558uIYdJJ','23542284MOXLhy','287tIrCEr','4539690jIiQlx','2UfKRDF','1127526HCdrwP','11QCAzmP','1840008RiKZLU','10aDweHy'];a156_0x3685=function(){return _0x2c413b;};return a156_0x3685();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x435afe,_0x42f87b){const _0x2ad965=a157_0x5ab7,_0x11abe6=_0x435afe();while(!![]){try{const _0x4c93de=-parseInt(_0x2ad965(0x16b))/0x1*(parseInt(_0x2ad965(0x178))/0x2)+parseInt(_0x2ad965(0x16c))/0x3+parseInt(_0x2ad965(0x173))/0x4+-parseInt(_0x2ad965(0x172))/0x5*(parseInt(_0x2ad965(0x179))/0x6)+-parseInt(_0x2ad965(0x171))/0x7+-parseInt(_0x2ad965(0x170))/0x8+parseInt(_0x2ad965(0x169))/0x9;if(_0x4c93de===_0x42f87b)break;else _0x11abe6['push'](_0x11abe6['shift']());}catch(_0x19b3b9){_0x11abe6['push'](_0x11abe6['shift']());}}}(a157_0x4e09,0x42e32));import a157_0x570d74 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';function a157_0x5ab7(_0x2d02b9,_0x138219){_0x2d02b9=_0x2d02b9-0x167;const _0x4e09d8=a157_0x4e09();let _0x5ab708=_0x4e09d8[_0x2d02b9];return _0x5ab708;}export function evaluateCliVersionPolicy(_0x4810f3,_0x453a44){const _0x26b730=a157_0x5ab7,_0x3aaa0a=a157_0x570d74['valid'](_0x4810f3)===_0x4810f3,_0x74394f=_0x453a44?.[_0x26b730(0x167)]??null,_0x45e7ab=_0x453a44?.[_0x26b730(0x16f)]??null,_0x378733=Boolean(_0x3aaa0a&&_0x74394f&&a157_0x570d74['lt'](_0x4810f3,_0x74394f)),_0x42c1b6=Boolean(_0x3aaa0a&&_0x45e7ab&&a157_0x570d74['lt'](_0x4810f3,_0x45e7ab));return{'currentVersion':_0x4810f3,'stableVersion':_0x74394f,'minimumVersion':_0x45e7ab,'needsUpgrade':_0x378733||_0x42c1b6,'belowMinimum':_0x42c1b6,'upgradeMessage':_0x453a44?.['upgradeMessage'],'minimumVersionMessage':_0x453a44?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}function a157_0x4e09(){const _0x5a3283=['filter','minimumVersionMessage','13670yHARpG','103662hYGMSn','currentVersion','latest','Current\x20version:\x20','stableVersion','belowMinimum','6440328UQYhsj','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','46FcyneJ','779481LwcEul','Recommended\x20stable:\x20','Minimum\x20supported:\x20','minimumVersion','3858112okjBtC','126721SInpzX','20MxwnRP','729744gkIRhB','unavailable','Upgrade\x20command:\x20'];a157_0x4e09=function(){return _0x5a3283;};return a157_0x4e09();}export function getCliUpgradeCommand(_0x3feb5a){const _0x18a51a=a157_0x5ab7;return'npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x3feb5a[_0x18a51a(0x167)]??_0x18a51a(0x17b));}export function assertCliVersionSupported(_0x3209b4){const _0x46b322=a157_0x5ab7;if(!_0x3209b4[_0x46b322(0x168)])return;const _0xc6be05=[_0x3209b4[_0x46b322(0x177)],_0x46b322(0x17c)+_0x3209b4[_0x46b322(0x17a)],_0x46b322(0x16e)+_0x3209b4[_0x46b322(0x16f)],_0x46b322(0x16d)+(_0x3209b4[_0x46b322(0x167)]??_0x46b322(0x174)),_0x46b322(0x175)+getCliUpgradeCommand(_0x3209b4)][_0x46b322(0x176)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x46b322(0x16a),_0xc6be05);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a158_0x2a22(){const _0x39b9e2=['stableVersion','minimumVersionMessage','now','upgradeMessage','7hjvCoA','trim','finally','object','35009piLcrk','4181622pWXIQX','latestVersion','18502184yGyPdo','timeout','valid','cli','1598848aWhwyy','recommendedVersion','442892XpTxWI','json','1848755ZCnWxx','19089ZsInSe'];a158_0x2a22=function(){return _0x39b9e2;};return a158_0x2a22();}(function(_0x133c1a,_0x3e194e){const _0x206ce2=a158_0x5d4f,_0x2dbede=_0x133c1a();while(!![]){try{const _0x24e07b=parseInt(_0x206ce2(0x146))/0x1+-parseInt(_0x206ce2(0x14f))/0x2+-parseInt(_0x206ce2(0x13d))/0x3+-parseInt(_0x206ce2(0x14d))/0x4+-parseInt(_0x206ce2(0x151))/0x5+-parseInt(_0x206ce2(0x147))/0x6+parseInt(_0x206ce2(0x142))/0x7*(parseInt(_0x206ce2(0x149))/0x8);if(_0x24e07b===_0x3e194e)break;else _0x2dbede['push'](_0x2dbede['shift']());}catch(_0x1752bc){_0x2dbede['push'](_0x2dbede['shift']());}}}(a158_0x2a22,0x9f905));import a158_0x1b654d from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';function a158_0x5d4f(_0x57c202,_0x84e7d8){_0x57c202=_0x57c202-0x13d;const _0x2a2252=a158_0x2a22();let _0x5d4fd8=_0x2a2252[_0x57c202];return _0x5d4fd8;}const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x2fac29){const _0x47b818=a158_0x5d4f;return typeof _0x2fac29==='string'&&_0x2fac29[_0x47b818(0x143)]()?_0x2fac29[_0x47b818(0x143)]():null;}function pickStrictSemver(_0x30bdf5){const _0x2bdb03=a158_0x5d4f,_0xf2ebfc=pickString(_0x30bdf5);return _0xf2ebfc&&a158_0x1b654d[_0x2bdb03(0x14b)](_0xf2ebfc)===_0xf2ebfc?_0xf2ebfc:null;}export function normalizeCliVersionPolicy(_0x33412e){const _0x11b4f7=a158_0x5d4f;if(!_0x33412e||typeof _0x33412e!==_0x11b4f7(0x145))return null;const _0x425d6f=_0x33412e,_0x1b0b0e=_0x425d6f[_0x11b4f7(0x14c)]&&typeof _0x425d6f[_0x11b4f7(0x14c)]===_0x11b4f7(0x145)?_0x425d6f[_0x11b4f7(0x14c)]:_0x425d6f,_0x5cfff9=pickStrictSemver(_0x1b0b0e[_0x11b4f7(0x13e)]??_0x1b0b0e[_0x11b4f7(0x148)]??_0x1b0b0e[_0x11b4f7(0x14e)]),_0x3290e2=pickStrictSemver(_0x1b0b0e['minimumVersion']??_0x1b0b0e['minVersion']);if(!_0x5cfff9&&!_0x3290e2)return null;if(_0x5cfff9&&_0x3290e2&&a158_0x1b654d['gt'](_0x3290e2,_0x5cfff9))return null;return{'stableVersion':_0x5cfff9,'minimumVersion':_0x3290e2,'upgradeMessage':pickString(_0x1b0b0e[_0x11b4f7(0x141)])??undefined,'minimumVersionMessage':pickString(_0x1b0b0e[_0x11b4f7(0x13f)])??undefined};}export async function fetchCliVersionPolicy(){const _0x2de67f=a158_0x5d4f;try{const _0x359c51=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x2de67f(0x14a)](FETCH_TIMEOUT_MS)});if(!_0x359c51['ok'])return null;return normalizeCliVersionPolicy(await _0x359c51[_0x2de67f(0x150)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x20786a=a158_0x5d4f,_0x3c4299=Date[_0x20786a(0x140)]();if(hasCachedPolicy){const _0x434b3b=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x3c4299-cachedAt<_0x434b3b)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x374533=>{const _0x5a7145=_0x20786a;return cachedPolicy=_0x374533,cachedAt=Date[_0x5a7145(0x140)](),hasCachedPolicy=!![],_0x374533;})[_0x20786a(0x144)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a159_0x47f1b4=a159_0x3ed2;function a159_0x3098(){const _0x27cff7=['blue','winstonLogger','details','File','timestamp','clearLogs','success','23070120qHdDfZ','writeFileSync','807416gABVLQ','utf8','format','message','parse','6221156wtBqYz','warn','105bZnsHU','Failed\x20to\x20read\x20logs:','readFileSync','unknown','dirname','1970vkzalI','existsSync','yellow','213nEWYIl','addColors','logFileName','Completed:\x20','error','duration','green','4602774SPdwTA','Failed\x20to\x20clear\x20logs:','createLogger','red','join','info','setLogPath','initWinstonLogger','10709118KttLFV','toISOString','Failed:\x20','rawCommand','setRawCommand','19716todIIH','transports','errors','log','logFilePath','combine','level','currentRawCommand','clear','trim','map','2694LOZyPe','now','printf'];a159_0x3098=function(){return _0x27cff7;};return a159_0x3098();}(function(_0x516d5e,_0x33c10b){const _0x4ec9f=a159_0x3ed2,_0x56e30e=_0x516d5e();while(!![]){try{const _0x17fe55=parseInt(_0x4ec9f(0x107))/0x1*(parseInt(_0x4ec9f(0xec))/0x2)+-parseInt(_0x4ec9f(0x10e))/0x3+parseInt(_0x4ec9f(0xfd))/0x4+parseInt(_0x4ec9f(0x104))/0x5*(-parseInt(_0x4ec9f(0x11b))/0x6)+-parseInt(_0x4ec9f(0xff))/0x7*(parseInt(_0x4ec9f(0xf8))/0x8)+parseInt(_0x4ec9f(0x116))/0x9+parseInt(_0x4ec9f(0xf6))/0xa;if(_0x17fe55===_0x33c10b)break;else _0x56e30e['push'](_0x56e30e['shift']());}catch(_0x133eb0){_0x56e30e['push'](_0x56e30e['shift']());}}}(a159_0x3098,0xf33ab));import a159_0x2382bf from'winston';import a159_0x8a5713 from'node:fs';import a159_0x1fa9f2 from'node:path';function a159_0x3ed2(_0x56de45,_0x25dbc4){_0x56de45=_0x56de45-0xe2;const _0x309818=a159_0x3098();let _0x3ed2d5=_0x309818[_0x56de45];return _0x3ed2d5;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a159_0x47f1b4(0xf0)];[a159_0x47f1b4(0xe5)]='';[a159_0x47f1b4(0xe8)]='';constructor(){}[a159_0x47f1b4(0x11a)](_0x1d458c){const _0x324c55=a159_0x47f1b4;this[_0x324c55(0xe8)]=_0x1d458c;}[a159_0x47f1b4(0x114)](_0x279200){const _0x5ab11b=a159_0x47f1b4;this['logFilePath']=a159_0x1fa9f2[_0x5ab11b(0x112)](_0x279200,PRODUCT_CONFIG[_0x5ab11b(0x109)]),this['winstonLogger']&&this['winstonLogger'][_0x5ab11b(0xe9)](),this['initWinstonLogger']();}[a159_0x47f1b4(0x115)](){const _0x23547f=a159_0x47f1b4,_0x317dfc=a159_0x1fa9f2[_0x23547f(0x103)](this[_0x23547f(0xe5)]);!a159_0x8a5713[_0x23547f(0x105)](_0x317dfc)&&a159_0x8a5713['mkdirSync'](_0x317dfc,{'recursive':!![]});const _0x276d49=a159_0x2382bf[_0x23547f(0xfa)][_0x23547f(0xe6)](a159_0x2382bf[_0x23547f(0xfa)][_0x23547f(0xf3)](),a159_0x2382bf[_0x23547f(0xfa)][_0x23547f(0xe3)]({'stack':!![]}),a159_0x2382bf[_0x23547f(0xfa)][_0x23547f(0xee)](_0x21fa22=>{const _0x3f6abd=_0x23547f,_0x39817c={'timestamp':_0x21fa22['timestamp']||new Date()[_0x3f6abd(0x117)](),'level':_0x21fa22[_0x3f6abd(0xe7)]||'info','command':_0x21fa22['command']||_0x3f6abd(0x102),'rawCommand':_0x21fa22[_0x3f6abd(0x119)]||this['currentRawCommand']||undefined,'message':_0x21fa22[_0x3f6abd(0xfb)]||'','duration':_0x21fa22[_0x3f6abd(0x10c)]||undefined,'details':_0x21fa22[_0x3f6abd(0xf1)]||undefined};return JSON['stringify'](_0x39817c);}));this['winstonLogger']=a159_0x2382bf[_0x23547f(0x110)]({'level':_0x23547f(0x113),'format':_0x276d49,'transports':[new a159_0x2382bf[(_0x23547f(0xe2))][(_0x23547f(0xf2))]({'filename':this[_0x23547f(0xe5)],'level':_0x23547f(0x113)})],'silent':![]}),a159_0x2382bf[_0x23547f(0x108)]({'success':_0x23547f(0x10d),'error':_0x23547f(0x111),'warn':_0x23547f(0x106),'info':_0x23547f(0xef)});}[a159_0x47f1b4(0x113)](_0x5ea2bd,_0x16ed4b,_0x423d56){const _0x46a6f1=a159_0x47f1b4;if(!this['logFilePath']||!this[_0x46a6f1(0xf0)])return;this[_0x46a6f1(0xf0)]['info'](_0x16ed4b,{'command':_0x5ea2bd,'details':_0x423d56});}['success'](_0xcf0480,_0xf69705,_0x34c484,_0x24bdbc){const _0x1faeab=a159_0x47f1b4;if(!this[_0x1faeab(0xe5)]||!this[_0x1faeab(0xf0)])return;this[_0x1faeab(0xf0)][_0x1faeab(0xe4)](_0x1faeab(0x113),_0xf69705,{'level':'success','command':_0xcf0480,'duration':_0x34c484,'details':_0x24bdbc});}[a159_0x47f1b4(0x10b)](_0x12c528,_0x45c85d,_0x985dec){const _0x5f533f=a159_0x47f1b4;if(!this[_0x5f533f(0xe5)]||!this['winstonLogger'])return;this[_0x5f533f(0xf0)][_0x5f533f(0x10b)](_0x45c85d,{'command':_0x12c528,'details':_0x985dec});}['warn'](_0x5d7274,_0x277aa4,_0x38d91f){const _0x548e9c=a159_0x47f1b4;if(!this[_0x548e9c(0xe5)]||!this[_0x548e9c(0xf0)])return;this['winstonLogger'][_0x548e9c(0xfe)](_0x277aa4,{'command':_0x5d7274,'details':_0x38d91f});}async['logTask'](_0x45388d,_0x330f65,_0x5b976f){const _0x4ca164=a159_0x47f1b4,_0x233bd2=Date['now']();this[_0x4ca164(0x113)](_0x45388d,'Starting:\x20'+_0x330f65);try{const _0x4b8b35=await _0x5b976f(),_0x27af92=Date[_0x4ca164(0xed)]()-_0x233bd2;return this[_0x4ca164(0xf5)](_0x45388d,_0x4ca164(0x10a)+_0x330f65,_0x27af92),_0x4b8b35;}catch(_0x6af974){const _0x450990=Date[_0x4ca164(0xed)]()-_0x233bd2;this[_0x4ca164(0x10b)](_0x45388d,_0x4ca164(0x118)+_0x330f65,{'error':_0x6af974 instanceof Error?_0x6af974[_0x4ca164(0xfb)]:String(_0x6af974),'duration':_0x450990});throw _0x6af974;}}['readLogs'](){const _0x38276c=a159_0x47f1b4;try{if(!a159_0x8a5713[_0x38276c(0x105)](this['logFilePath']))return[];const _0x2ddccf=a159_0x8a5713[_0x38276c(0x101)](this[_0x38276c(0xe5)],_0x38276c(0xf9));return _0x2ddccf['split'](/\r?\n/)['filter'](_0x162b7c=>_0x162b7c[_0x38276c(0xea)]())[_0x38276c(0xeb)](_0x2fd447=>JSON[_0x38276c(0xfc)](_0x2fd447));}catch(_0x5b617e){return console[_0x38276c(0xfe)](_0x38276c(0x100),_0x5b617e),[];}}[a159_0x47f1b4(0xf4)](){const _0x4bc3e5=a159_0x47f1b4;try{a159_0x8a5713[_0x4bc3e5(0x105)](this[_0x4bc3e5(0xe5)])&&a159_0x8a5713[_0x4bc3e5(0xf7)](this[_0x4bc3e5(0xe5)],'',_0x4bc3e5(0xf9));}catch(_0x2de205){console['warn'](_0x4bc3e5(0x10f),_0x2de205);}}['getWinstonInstance'](){const _0x54b01b=a159_0x47f1b4;return this[_0x54b01b(0xf0)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a160_0x1a77(_0x3b8581,_0x688358){_0x3b8581=_0x3b8581-0x13b;const _0x5e4a59=a160_0x5e4a();let _0x1a774a=_0x5e4a59[_0x3b8581];return _0x1a774a;}const a160_0x536b9d=a160_0x1a77;(function(_0x1c65a1,_0x230a4b){const _0x2322fc=a160_0x1a77,_0x568296=_0x1c65a1();while(!![]){try{const _0x10577f=-parseInt(_0x2322fc(0x14e))/0x1*(-parseInt(_0x2322fc(0x150))/0x2)+parseInt(_0x2322fc(0x141))/0x3*(-parseInt(_0x2322fc(0x14b))/0x4)+-parseInt(_0x2322fc(0x140))/0x5*(parseInt(_0x2322fc(0x13e))/0x6)+parseInt(_0x2322fc(0x143))/0x7*(parseInt(_0x2322fc(0x14a))/0x8)+parseInt(_0x2322fc(0x13d))/0x9+-parseInt(_0x2322fc(0x142))/0xa*(parseInt(_0x2322fc(0x14f))/0xb)+parseInt(_0x2322fc(0x153))/0xc*(parseInt(_0x2322fc(0x13c))/0xd);if(_0x10577f===_0x230a4b)break;else _0x568296['push'](_0x568296['shift']());}catch(_0x18b8bb){_0x568296['push'](_0x568296['shift']());}}}(a160_0x5e4a,0xee093));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a160_0x536b9d(0x149)]),MIN_SAFE_INTEGER=BigInt(Number[a160_0x536b9d(0x146)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a160_0x5e4a(){const _0x50c148=['56140SGsWeW','slice','text','MIN_SAFE_INTEGER','defineProperty','includes','MAX_SAFE_INTEGER','864JABTFU','6014996pFGjYn','getOwnPropertyDescriptor','length','169iIgmix','3610783PJSfah','9582WFvxRR','exec','parse','1920NDgFvI','undefined','87490WtgFbS','7401618CvLRbo','84ylSqqy','json','39835lVDMZJ','3HcrZWH','30BOKYFN'];a160_0x5e4a=function(){return _0x50c148;};return a160_0x5e4a();}function isUnsafeIntegerLiteral(_0xa009c5){const _0x5254b9=a160_0x536b9d;if(_0xa009c5['includes']('.')||_0xa009c5[_0x5254b9(0x148)]('e')||_0xa009c5[_0x5254b9(0x148)]('E'))return![];const _0xb0ad39=BigInt(_0xa009c5);return _0xb0ad39>MAX_SAFE_INTEGER||_0xb0ad39<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x4f893f){const _0x123070=a160_0x536b9d;let _0xf2a67e='',_0x524616=![],_0x471be1=![];for(let _0x7ac950=0x0;_0x7ac950<_0x4f893f['length'];){const _0x380798=_0x4f893f[_0x7ac950];if(_0x524616){_0xf2a67e+=_0x380798,_0x7ac950+=0x1;if(_0x471be1)_0x471be1=![];else{if(_0x380798==='\x5c')_0x471be1=!![];else _0x380798==='\x22'&&(_0x524616=![]);}continue;}if(_0x380798==='\x22'){_0x524616=!![],_0xf2a67e+=_0x380798,_0x7ac950+=0x1;continue;}if(_0x380798==='-'||_0x380798>='0'&&_0x380798<='9'){const _0x277130=JSON_NUMBER_PATTERN[_0x123070(0x151)](_0x4f893f[_0x123070(0x144)](_0x7ac950))?.[0x0];if(_0x277130){_0xf2a67e+=isUnsafeIntegerLiteral(_0x277130)?'\x22'+_0x277130+'\x22':_0x277130,_0x7ac950+=_0x277130[_0x123070(0x14d)];continue;}}_0xf2a67e+=_0x380798,_0x7ac950+=0x1;}return _0xf2a67e;}export function parseLosslessJson(_0x2b16c9){const _0x21861d=a160_0x536b9d;return JSON[_0x21861d(0x152)](quoteUnsafeIntegerLiterals(_0x2b16c9));}export function installLosslessJsonResponseParser(){const _0xd0e845=a160_0x536b9d;if(typeof Response===_0xd0e845(0x13b))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0xd0e845(0x14c)](responseJsonPrototype,_0xd0e845(0x13f)),Object[_0xd0e845(0x147)](responseJsonPrototype,_0xd0e845(0x13f),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x135a20(){const _0x295c22=_0xd0e845;return parseLosslessJson(await this[_0x295c22(0x145)]());}}),restoreResponseJsonParser=()=>{const _0x18e712=_0xd0e845;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x18e712(0x13f)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x185973,_0x2b5367){const _0x27b403=a161_0x58c7,_0x58b959=_0x185973();while(!![]){try{const _0xc75dfd=parseInt(_0x27b403(0xb5))/0x1+-parseInt(_0x27b403(0xb4))/0x2*(parseInt(_0x27b403(0xc8))/0x3)+parseInt(_0x27b403(0xc7))/0x4+-parseInt(_0x27b403(0xbf))/0x5*(parseInt(_0x27b403(0xb9))/0x6)+parseInt(_0x27b403(0xad))/0x7+parseInt(_0x27b403(0xb1))/0x8*(parseInt(_0x27b403(0xbc))/0x9)+parseInt(_0x27b403(0xc2))/0xa;if(_0xc75dfd===_0x2b5367)break;else _0x58b959['push'](_0x58b959['shift']());}catch(_0xc5f255){_0x58b959['push'](_0x58b959['shift']());}}}(a161_0x29d3,0x7c78f));import{CliErrors}from'../errors.js';function a161_0x58c7(_0x4aeb1c,_0x43adc7){_0x4aeb1c=_0x4aeb1c-0xad;const _0x29d34c=a161_0x29d3();let _0x58c751=_0x29d34c[_0x4aeb1c];return _0x58c751;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x20e85d){const _0x25c8fe=a161_0x58c7;if(!_0x20e85d)return undefined;try{return parseLosslessJson(_0x20e85d);}catch{throw CliErrors[_0x25c8fe(0xbb)](_0x25c8fe(0xbd)+_0x20e85d);}}export function parseJsonParamsValue(_0xec70aa){const _0x5280d0=a161_0x58c7;if(!_0xec70aa)return undefined;try{return parseLosslessJson(_0xec70aa);}catch{throw CliErrors[_0x5280d0(0xbb)](_0x5280d0(0xbd)+_0xec70aa);}}export function parseBatchCreateItemsFromParams(_0x59af1b){const _0x5ae362=a161_0x58c7;if(Array[_0x5ae362(0xaf)](_0x59af1b))return _0x59af1b;if(_0x59af1b!==null&&_0x59af1b!==undefined&&typeof _0x59af1b===_0x5ae362(0xbe)&&Array[_0x5ae362(0xaf)](_0x59af1b[_0x5ae362(0xca)]))return _0x59af1b[_0x5ae362(0xca)];throw CliErrors[_0x5ae362(0xbb)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x5ae362(0xb7));}function parseDataUpdateId(_0x37a064,_0x14a17a){const _0x9600fd=a161_0x58c7;if(typeof _0x37a064===_0x9600fd(0xb3)&&Number[_0x9600fd(0xb2)](_0x37a064)&&_0x37a064>0x0)return _0x37a064;if(typeof _0x37a064===_0x9600fd(0xb8)){if(/^[1-9]\d*$/[_0x9600fd(0xc4)](_0x37a064))return _0x37a064;}throw CliErrors[_0x9600fd(0xbb)](_0x9600fd(0xba)+_0x14a17a+_0x9600fd(0xc0));}function a161_0x29d3(){const _0xac03a5=['962650aWOCDv','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','length','6708150SDMSol','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','test','data\x20update\x20can\x20update\x20at\x20most\x20','join','1475812iNeVoO','18804UwfggS','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','items','1471589rPBNxt','id[','isArray','\x20records\x20per\x20call;\x20received\x20','2368056kCaaZE','isSafeInteger','number','222nMBmMw','44645GJUeNY','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','string','12qwYZCJ','data\x20update\x20--params.','validation','9wFVORm','Invalid\x20JSON\x20for\x20--params:\x20','object'];a161_0x29d3=function(){return _0xac03a5;};return a161_0x29d3();}export function parseUpdateIdsFromParams(_0x5de0fa){const _0x480482=a161_0x58c7;if(_0x5de0fa===null||_0x5de0fa===undefined||typeof _0x5de0fa!==_0x480482(0xbe)||Array[_0x480482(0xaf)](_0x5de0fa))throw CliErrors[_0x480482(0xbb)](_0x480482(0xb6),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x4a7449=_0x5de0fa['id'];if(_0x4a7449===undefined||_0x4a7449===null)throw CliErrors[_0x480482(0xbb)](_0x480482(0xc9),_0x480482(0xc3));const _0x3142bd=Array['isArray'](_0x4a7449)?_0x4a7449:[_0x4a7449];if(_0x3142bd[_0x480482(0xc1)]===0x0)throw CliErrors[_0x480482(0xbb)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x3142bd['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x480482(0xbb)](_0x480482(0xc5)+MAX_DATA_UPDATE_IDS+_0x480482(0xb0)+_0x3142bd['length']+'.');return _0x3142bd['map']((_0x402af0,_0x7cb52b)=>parseDataUpdateId(_0x402af0,Array[_0x480482(0xaf)](_0x4a7449)?_0x480482(0xae)+_0x7cb52b+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x3f191b,_0x4b7b88){const _0x437a8a=a161_0x58c7;if(Array[_0x437a8a(0xaf)](_0x3f191b['id'])&&_0x4b7b88[_0x437a8a(0xc1)]>0x1)return{..._0x3f191b,'id':_0x4b7b88[_0x437a8a(0xc6)](',')};return _0x3f191b;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a162_0x2e1d(){const _0x434455=['string','16601032hXflSS','number','470508ZOKoyf','1555568wqXjxQ','isSafeInteger','1521018dgDPuN','1705311rwHTCQ','1235048NttPNb','2350710YCqZku'];a162_0x2e1d=function(){return _0x434455;};return a162_0x2e1d();}function a162_0x16c3(_0x28d1e9,_0x20dd37){_0x28d1e9=_0x28d1e9-0x14f;const _0x2e1d56=a162_0x2e1d();let _0x16c31b=_0x2e1d56[_0x28d1e9];return _0x16c31b;}(function(_0x44632,_0x84a36a){const _0x1b3d40=a162_0x16c3,_0x419917=_0x44632();while(!![]){try{const _0x141a1c=parseInt(_0x1b3d40(0x151))/0x1+parseInt(_0x1b3d40(0x156))/0x2+parseInt(_0x1b3d40(0x150))/0x3+parseInt(_0x1b3d40(0x157))/0x4+parseInt(_0x1b3d40(0x152))/0x5+parseInt(_0x1b3d40(0x14f))/0x6+-parseInt(_0x1b3d40(0x154))/0x7;if(_0x141a1c===_0x84a36a)break;else _0x419917['push'](_0x419917['shift']());}catch(_0x33f2a7){_0x419917['push'](_0x419917['shift']());}}}(a162_0x2e1d,0xbe5b4));export function normalizePositiveSafeInteger(_0x43b630){const _0x8db2f8=a162_0x16c3;if(typeof _0x43b630===_0x8db2f8(0x155))return Number[_0x8db2f8(0x158)](_0x43b630)&&_0x43b630>0x0?_0x43b630:undefined;if(typeof _0x43b630!==_0x8db2f8(0x153)||!/^\d+$/['test'](_0x43b630))return undefined;const _0x374036=Number(_0x43b630);return Number['isSafeInteger'](_0x374036)&&_0x374036>0x0?_0x374036:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x4a5acd=a163_0x5fa6;(function(_0x679cc1,_0x1f2b99){const _0x11be34=a163_0x5fa6,_0x3c24da=_0x679cc1();while(!![]){try{const _0x42f105=-parseInt(_0x11be34(0x16d))/0x1*(-parseInt(_0x11be34(0x17d))/0x2)+-parseInt(_0x11be34(0x17c))/0x3+-parseInt(_0x11be34(0x179))/0x4*(parseInt(_0x11be34(0x16c))/0x5)+parseInt(_0x11be34(0x172))/0x6*(-parseInt(_0x11be34(0x17a))/0x7)+-parseInt(_0x11be34(0x16e))/0x8*(parseInt(_0x11be34(0x16a))/0x9)+-parseInt(_0x11be34(0x177))/0xa*(-parseInt(_0x11be34(0x173))/0xb)+parseInt(_0x11be34(0x168))/0xc;if(_0x42f105===_0x1f2b99)break;else _0x3c24da['push'](_0x3c24da['shift']());}catch(_0x32ceab){_0x3c24da['push'](_0x3c24da['shift']());}}}(a163_0xbb80,0xbcaab));const REDACTED_VALUE='[REDACTED]',SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a163_0x4a5acd(0x16f),'variables']),SENSITIVE_VALUE_KEYS=new Set([a163_0x4a5acd(0x16f)]);function a163_0x5fa6(_0x430ed3,_0x458006){_0x430ed3=_0x430ed3-0x167;const _0xbb800c=a163_0xbb80();let _0x5fa60a=_0xbb800c[_0x430ed3];return _0x5fa60a;}export function isSensitiveKey(_0xba64ec){const _0x9b1a04=a163_0x4a5acd,_0x4fc4c2=_0xba64ec[_0x9b1a04(0x170)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x9b1a04(0x175)](_0x4fc4c2);}function a163_0xbb80(){const _0x216070=['object','1914621sreZBa','208612jBNWcu','isArray','toLowerCase','has','47635752TPuMTm','fromEntries','8026245YTpkwG','match','51335syhKAU','3kEKanx','8pbnkpN','comment','replace','map','846oLIgDb','11UhfDUC','variables','test','entries','3291950mzCQOh','push','528KinUEZ','47348cmnlPO'];a163_0xbb80=function(){return _0x216070;};return a163_0xbb80();}export function isSensitiveFlagName(_0x1bf7b3){const _0x34c38f=a163_0x4a5acd,_0x5da491=_0x1bf7b3[_0x34c38f(0x170)](/_/g,'-')[_0x34c38f(0x17f)]();return isSensitiveKey(_0x5da491)||SENSITIVE_FLAG_NAMES[_0x34c38f(0x167)](_0x5da491);}function redactVariableValues(_0xd88771){const _0x512328=a163_0x4a5acd;if(Array[_0x512328(0x17e)](_0xd88771))return _0xd88771[_0x512328(0x171)](_0x1b25b5=>redactVariableValues(_0x1b25b5));if(_0xd88771&&typeof _0xd88771===_0x512328(0x17b))return Object[_0x512328(0x169)](Object['entries'](_0xd88771)[_0x512328(0x171)](([_0x35a2b8,_0x369077])=>[_0x35a2b8,redactVariableValues(_0x369077)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x4c72fb){const _0xfad833=a163_0x4a5acd;if(Array[_0xfad833(0x17e)](_0x4c72fb))return _0x4c72fb[_0xfad833(0x171)](_0x42aaac=>redactSensitiveValue(_0x42aaac));if(!_0x4c72fb||typeof _0x4c72fb!==_0xfad833(0x17b))return _0x4c72fb;const _0x4ee778={};for(const [_0x124d57,_0x48f666]of Object[_0xfad833(0x176)](_0x4c72fb)){const _0x7f4ba3=_0x124d57[_0xfad833(0x170)](/_/g,'-')[_0xfad833(0x17f)]();_0x4ee778[_0x124d57]=_0x7f4ba3===_0xfad833(0x174)?redactVariableValues(_0x48f666):SENSITIVE_VALUE_KEYS[_0xfad833(0x167)](_0x7f4ba3)||isSensitiveKey(_0x124d57)?REDACTED_VALUE:redactSensitiveValue(_0x48f666);}return _0x4ee778;}export function redactCommandArgv(_0x5eb1e2){const _0x30772c=a163_0x4a5acd,_0x5e1538=[];let _0x58f5ab=![];for(const _0x5309b4 of _0x5eb1e2){if(_0x58f5ab){_0x5e1538[_0x30772c(0x178)](REDACTED_VALUE),_0x58f5ab=![];continue;}const _0xd8f643=_0x5309b4[_0x30772c(0x16b)](/^--([^=]+)(?:=(.*))?$/);if(!_0xd8f643||!isSensitiveFlagName(_0xd8f643[0x1]??'')){_0x5e1538[_0x30772c(0x178)](_0x5309b4);continue;}_0x5e1538['push']('--'+_0xd8f643[0x1]+(_0xd8f643[0x2]===undefined?'':'='+REDACTED_VALUE)),_0xd8f643[0x2]===undefined&&(_0x58f5ab=!![]);}return _0x5e1538;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a164_0x30e1(){const _0x2f7fd3=['lastNotifiedAt','upgradeMessage','81vixpsf','893354tjgNwV','lastNotifiedVersion','lovrabet-cli','https://www.npmjs.com/package/','number','184840iCDwwk','now','utf8','88UqeFUu','parse','toLowerCase','belowMinimum','\x20is\x20recommended,\x20current\x20','update-check.json','123677IzHLwR','8IbzitW','filter','520925ZMisKt','41682zLIZTy','yes','60699REZmrj','currentVersion','.cache','stableVersion','427VWEgnd',',\x20run:\x20','762940CaWukg'];a164_0x30e1=function(){return _0x2f7fd3;};return a164_0x30e1();}(function(_0xb431f8,_0xd4bb10){const _0x56e5d4=a164_0xadc3,_0x2eee14=_0xb431f8();while(!![]){try{const _0x3619ae=-parseInt(_0x56e5d4(0x1ea))/0x1+parseInt(_0x56e5d4(0x1fa))/0x2+-parseInt(_0x56e5d4(0x1f0))/0x3*(-parseInt(_0x56e5d4(0x1eb))/0x4)+-parseInt(_0x56e5d4(0x1ed))/0x5+-parseInt(_0x56e5d4(0x1ee))/0x6*(parseInt(_0x56e5d4(0x1f4))/0x7)+-parseInt(_0x56e5d4(0x1ff))/0x8*(parseInt(_0x56e5d4(0x1f9))/0x9)+-parseInt(_0x56e5d4(0x1f6))/0xa*(-parseInt(_0x56e5d4(0x202))/0xb);if(_0x3619ae===_0xd4bb10)break;else _0x2eee14['push'](_0x2eee14['shift']());}catch(_0x39604a){_0x2eee14['push'](_0x2eee14['shift']());}}}(a164_0x30e1,0x3a161));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a164_0xadc3(_0x2e17b2,_0x36a956){_0x2e17b2=_0x2e17b2-0x1e6;const _0x30e1d1=a164_0x30e1();let _0xadc34a=_0x30e1d1[_0x2e17b2];return _0xadc34a;}function isUpdateNoticeDisabled(){const _0x293a86=a164_0xadc3,_0x51c304=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x293a86(0x1e6)]();return _0x51c304==='1'||_0x51c304==='true'||_0x51c304===_0x293a86(0x1ef);}function cacheRoot(){const _0x417dad=a164_0xadc3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x417dad(0x1f2));}export function getUpdateNoticeCachePath(){const _0x39e67c=a164_0xadc3;return join(cacheRoot(),_0x39e67c(0x1fc),_0x39e67c(0x1e9));}async function readUpdateNoticeCache(){const _0x2857dd=a164_0xadc3;try{const _0x598ffd=await readFile(getUpdateNoticeCachePath(),_0x2857dd(0x201)),_0x6f73f=JSON[_0x2857dd(0x203)](_0x598ffd);if(!_0x6f73f||typeof _0x6f73f!=='object')return{};return _0x6f73f;}catch{return{};}}async function writeUpdateNoticeCache(_0x4876cd){const _0x120ac0=a164_0xadc3;try{const _0x4ebfad=getUpdateNoticeCachePath();await mkdir(dirname(_0x4ebfad),{'recursive':!![]}),await writeFile(_0x4ebfad,JSON['stringify'](_0x4876cd,null,0x2)+'\x0a',_0x120ac0(0x201));}catch{}}function isRecentlyNotified(_0x4a2b31,_0x1bd679,_0x510c86){const _0x24a717=a164_0xadc3;return _0x4a2b31[_0x24a717(0x1fb)]===_0x1bd679&&typeof _0x4a2b31['lastNotifiedAt']===_0x24a717(0x1fe)&&_0x510c86-_0x4a2b31[_0x24a717(0x1f7)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x163223){const _0x55bfda=a164_0xadc3;return _0x55bfda(0x1fd)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x163223;}export async function resolveLatestUpdateNotice(_0x454903){const _0x435814=a164_0xadc3;if(isUpdateNoticeDisabled())return null;try{const _0x44ec59=Date[_0x435814(0x200)](),_0x4f8031=_0x454903??await checkCliVersion(),_0x424bf3=_0x4f8031[_0x435814(0x1f1)],_0x5cd8e7=_0x4f8031[_0x435814(0x1f3)],_0x3090e4=await readUpdateNoticeCache();if(!_0x5cd8e7||!_0x4f8031['needsUpgrade']||_0x4f8031[_0x435814(0x1e7)])return null;if(isRecentlyNotified(_0x3090e4,_0x5cd8e7,_0x44ec59))return null;const _0x35b53a=getCliUpgradeCommand(_0x4f8031);return await writeUpdateNoticeCache({..._0x3090e4,'checkedAt':_0x44ec59,'latest':_0x5cd8e7,'failed':![],'lastNotifiedVersion':_0x5cd8e7,'lastNotifiedAt':_0x44ec59}),{'command':_0x35b53a,'current':_0x424bf3,'latest':_0x5cd8e7,'url':buildNpmVersionUrl(_0x5cd8e7),'message':[_0x4f8031[_0x435814(0x1f8)],CLI_BIN_NAME+'\x20'+_0x5cd8e7+_0x435814(0x1e8)+_0x424bf3+_0x435814(0x1f5)+_0x35b53a][_0x435814(0x1ec)](Boolean)['join']('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1e6af6,_0x308ca4){const _0x3843d9=a165_0xdce9,_0x5d4752=_0x1e6af6();while(!![]){try{const _0x4d187d=parseInt(_0x3843d9(0x101))/0x1*(-parseInt(_0x3843d9(0x10a))/0x2)+parseInt(_0x3843d9(0x10c))/0x3*(-parseInt(_0x3843d9(0x104))/0x4)+-parseInt(_0x3843d9(0x107))/0x5*(-parseInt(_0x3843d9(0x102))/0x6)+-parseInt(_0x3843d9(0x10d))/0x7*(parseInt(_0x3843d9(0x106))/0x8)+parseInt(_0x3843d9(0x105))/0x9+parseInt(_0x3843d9(0x10b))/0xa*(-parseInt(_0x3843d9(0x103))/0xb)+-parseInt(_0x3843d9(0x108))/0xc*(-parseInt(_0x3843d9(0x10e))/0xd);if(_0x4d187d===_0x308ca4)break;else _0x5d4752['push'](_0x5d4752['shift']());}catch(_0xace285){_0x5d4752['push'](_0x5d4752['shift']());}}}(a165_0x481a,0x9b597));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a165_0x481a(){const _0xca2b8d=['120882ZJJnLk','582593kOnsKC','759904fuMNoS','4041009iwPGFG','8jPBxoS','125UucfRU','16482696ZpDSIh','slice','327202BhobTI','70JlweBO','12dQxLEH','5513403cMHLDt','26xUQvUO','7DkwHcH'];a165_0x481a=function(){return _0xca2b8d;};return a165_0x481a();}export function getCliGitCommit(){const _0x566349=String(GIT_COMMIT);return _0x566349&&_0x566349!=='unknown'?_0x566349:'';}function a165_0xdce9(_0xf8bf72,_0x1a9664){_0xf8bf72=_0xf8bf72-0x101;const _0x481aaf=a165_0x481a();let _0xdce9d1=_0x481aaf[_0xf8bf72];return _0xdce9d1;}export function getCliVersionDisplay(){const _0x9b279d=a165_0xdce9,_0x49d841=getCliGitCommit(),_0x1082cb=BUILD_TIME[_0x9b279d(0x109)](0x0,0xa);if(!_0x49d841||!_0x1082cb)return VERSION;return VERSION+'\x20('+_0x49d841+',\x20'+_0x1082cb+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21f923,_0xe4798c){var _0xbf78be=a166_0x1d2a,_0x30d6e6=_0x21f923();while(!![]){try{var _0x1f607e=-parseInt(_0xbf78be(0x152))/0x1+parseInt(_0xbf78be(0x154))/0x2+-parseInt(_0xbf78be(0x158))/0x3+-parseInt(_0xbf78be(0x159))/0x4*(parseInt(_0xbf78be(0x155))/0x5)+-parseInt(_0xbf78be(0x151))/0x6*(parseInt(_0xbf78be(0x150))/0x7)+-parseInt(_0xbf78be(0x156))/0x8+-parseInt(_0xbf78be(0x153))/0x9*(-parseInt(_0xbf78be(0x157))/0xa);if(_0x1f607e===_0xe4798c)break;else _0x30d6e6['push'](_0x30d6e6['shift']());}catch(_0x176b55){_0x30d6e6['push'](_0x30d6e6['shift']());}}}(a166_0x200e,0xbbe7c));export function writeCliSideChannelLine(_0x29c5c4){process['stderr']['write'](_0x29c5c4+'\x0a');}function a166_0x1d2a(_0xf23009,_0x292716){_0xf23009=_0xf23009-0x150;var _0x200ea9=a166_0x200e();var _0x1d2af1=_0x200ea9[_0xf23009];return _0x1d2af1;}function a166_0x200e(){var _0x172d19=['990fbKWTR','2678793sGYmSl','4SpugBO','7689801RfqBGy','6wZpbyf','1061035wmuBID','299097mPOhVB','2975992gNovnK','3975885uNZZYl','1285736saGjJy'];a166_0x200e=function(){return _0x172d19;};return a166_0x200e();}
|
package/package.json
CHANGED
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.3.4
|
|
4
|
+
version: 2.3.4
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、审批待办与任务办理、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
|
|
6
6
|
metadata:
|
|
7
7
|
requires:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.4
|
|
6
|
-
"skillVersion": "2.3.4
|
|
5
|
+
"packageVersion": "2.3.4",
|
|
6
|
+
"skillVersion": "2.3.4",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"references/lovrabet-user-account.md",
|
|
39
39
|
"references/lovrabet-workspace.md"
|
|
40
40
|
],
|
|
41
|
-
"digest": "
|
|
41
|
+
"digest": "af5de9689f3abfc637223b4cb08dc45e1465a45a3feec512af0ffa2e78572de5"
|
|
42
42
|
}
|