@lovrabet/lovrabet-cli 2.3.1-beta.3 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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.d.ts +3 -3
- 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.d.ts +0 -16
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.d.ts +30 -0
- package/lib/core/kb-search-client.js +1 -0
- 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.d.ts +2 -0
- 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/platform.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 +2 -2
- package/skills/lovrabet/references/lovrabet-config-commands.md +3 -1
- package/skills/lovrabet/references/lovrabet-config.md +2 -2
- package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a150_0x4a7c(){const _0x37191a=['validation_error','entries','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','length','code','map','7659264WHhJHg','name','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1980-01-01T00:00:00.000Z','508tIggKk','validation','1121000VOTlru','7468590tWiohf','5141375rDTDot','1664362UiCSIi','from','3279taAeFM','1432504CgbwaS','sort'];a150_0x4a7c=function(){return _0x37191a;};return a150_0x4a7c();}const a150_0x2ff45b=a150_0x954d;(function(_0x3cf152,_0x201d82){const _0x4d4737=a150_0x954d,_0xb7d275=_0x3cf152();while(!![]){try{const _0x43e4aa=parseInt(_0x4d4737(0x1f9))/0x1+parseInt(_0x4d4737(0x1f3))/0x2+parseInt(_0x4d4737(0x1f8))/0x3*(-parseInt(_0x4d4737(0x1f1))/0x4)+-parseInt(_0x4d4737(0x1f5))/0x5+-parseInt(_0x4d4737(0x1f4))/0x6+parseInt(_0x4d4737(0x1f6))/0x7+parseInt(_0x4d4737(0x1ed))/0x8;if(_0x43e4aa===_0x201d82)break;else _0xb7d275['push'](_0xb7d275['shift']());}catch(_0x51f515){_0xb7d275['push'](_0xb7d275['shift']());}}}(a150_0x4a7c,0xbd887));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a150_0x2ff45b(0x1f0));export function createDeterministicZipPackage(_0x280a6f){const _0x7e0751=a150_0x2ff45b,_0x27d544={};for(const _0x281784 of normalizeLocalFiles(_0x280a6f)){_0x27d544[_0x281784['path']]=fileContent(_0x281784);}return Buffer[_0x7e0751(0x1f7)](zipSync(_0x27d544,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x24f34b){const _0x39ed35=a150_0x2ff45b;if(_0x24f34b[_0x39ed35(0x1ea)]<0x16)throw CliErrors[_0x39ed35(0x1f2)](_0x39ed35(0x1ef));let _0x17aa8a;try{_0x17aa8a=unzipSync(_0x24f34b,{'filter'(_0x41e29e){const _0x166516=_0x39ed35,_0x5e6961=normalizeSkillRelativePath(_0x41e29e[_0x166516(0x1ee)]);if(_0x5e6961['endsWith']('/'))throw CliErrors[_0x166516(0x1f2)](_0x166516(0x1e9)+_0x5e6961);return!![];}});}catch(_0x3c487f){if(isRuntimeSkillValidationError(_0x3c487f))throw _0x3c487f;throw CliErrors['validation'](_0x39ed35(0x1ef));}return Object[_0x39ed35(0x1e8)](_0x17aa8a)[_0x39ed35(0x1ec)](([_0xc7cb47,_0x528416])=>({'path':normalizeSkillRelativePath(_0xc7cb47),'bytes':Buffer[_0x39ed35(0x1f7)](_0x528416)}))[_0x39ed35(0x1e6)](compareSkillFiles);}function a150_0x954d(_0xfda74a,_0x2277a0){_0xfda74a=_0xfda74a-0x1e6;const _0x4a7c9a=a150_0x4a7c();let _0x954dac=_0x4a7c9a[_0xfda74a];return _0x954dac;}function isRuntimeSkillValidationError(_0x551964){const _0x3b1e27=a150_0x2ff45b;return typeof _0x551964==='object'&&_0x551964!==null&&'code'in _0x551964&&_0x551964[_0x3b1e27(0x1eb)]===_0x3b1e27(0x1e7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x793ec9,_0x2044cd){const _0x5701c9=a151_0x4eb7,_0x471cf3=_0x793ec9();while(!![]){try{const _0x79550b=-parseInt(_0x5701c9(0x136))/0x1+parseInt(_0x5701c9(0x11f))/0x2+-parseInt(_0x5701c9(0x134))/0x3*(parseInt(_0x5701c9(0x12e))/0x4)+-parseInt(_0x5701c9(0x131))/0x5+-parseInt(_0x5701c9(0x123))/0x6*(-parseInt(_0x5701c9(0x13f))/0x7)+-parseInt(_0x5701c9(0x124))/0x8*(parseInt(_0x5701c9(0x116))/0x9)+parseInt(_0x5701c9(0x12c))/0xa;if(_0x79550b===_0x2044cd)break;else _0x471cf3['push'](_0x471cf3['shift']());}catch(_0x1ff423){_0x471cf3['push'](_0x471cf3['shift']());}}}(a151_0x3e31,0x9fd6d));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(_0xaa420c){const _0x312bc7=a151_0x4eb7,_0x2ec61b=normalizeLocalFiles(_0xaa420c);if(!_0x2ec61b[_0x312bc7(0x12d)](_0x479a19=>_0x479a19[_0x312bc7(0x11c)]===SKILL_FILE))throw CliErrors[_0x312bc7(0x120)](_0x312bc7(0x122)+SKILL_FILE+_0x312bc7(0x128));const _0x479d4f=localFilesToManifestFiles(_0x2ec61b),_0x3c8654=createDeterministicZipPackage(_0x2ec61b);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x479d4f),'zipSha256':bufferSha256(_0x3c8654),'zipSize':_0x3c8654['length'],'files':_0x479d4f},'packageBytes':_0x3c8654,'packageBase64':_0x3c8654[_0x312bc7(0x133)](_0x312bc7(0x118))};}export function verifyRuntimeSkillPackage(_0x141cbf,_0x3cb8ca){const _0x2428ea=a151_0x4eb7,_0x4e55d7=normalizePackageManifest(_0x141cbf,{'requireOssPath':![]});if(!_0x4e55d7)throw CliErrors[_0x2428ea(0x120)](_0x2428ea(0x141));return extractAndVerifyPackage(_0x4e55d7,_0x3cb8ca);}export function verifyRuntimeSkillBundle(_0x3ae6f2,_0x4c0d94){const _0x31b3c2=a151_0x4eb7,_0xf147f8=normalizePackageManifest(_0x3ae6f2,{'requireOssPath':![]});if(!_0xf147f8)throw CliErrors[_0x31b3c2(0x120)](_0x31b3c2(0x141));return extractAndVerifyPackageFiles(_0xf147f8,_0x4c0d94);}export function tryNormalizePackageManifest(_0x47327d){return normalizePackageManifest(_0x47327d,{'requireOssPath':![]});}function a151_0x3e31(){const _0x58854c=['treeSha256','length','Runtime\x20Skill\x20package\x20is\x20missing\x20','zipSha256','map','files','schemaVersion','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','7BFjHFi','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','trim','set','toLowerCase','263637femmHK','isArray','base64','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','zipSize','ossPath','path','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','object','2488336nloFwE','validation','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Missing\x20','438054FVpJeR','304BLgqJX','isSafeInteger','sha256','requireOssPath','\x20in\x20Skill\x20file\x20package.','bytes','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','get','20223320QPXaJN','some','2939740jnWQAk','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','size','1318000CqnbGX','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','toString','3sFxNCQ','has','573139DZQeWF'];a151_0x3e31=function(){return _0x58854c;};return a151_0x3e31();}export function requirePackageBytes(_0x4a3f2b,_0x1b9e84){const _0x59b38a=a151_0x4eb7;if(!_0x1b9e84||_0x1b9e84[_0x59b38a(0x138)]===0x0)throw CliErrors[_0x59b38a(0x120)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x4a3f2b);return _0x1b9e84;}export function extractDownloadedPackage(_0x531337){const _0x2c68ed=a151_0x4eb7,_0xc2e397=parseZipPackage(_0x531337)[_0x2c68ed(0x13b)](_0x595cd2=>({'path':_0x595cd2[_0x2c68ed(0x11c)],'bytes':_0x595cd2[_0x2c68ed(0x129)]}));if(!_0xc2e397[_0x2c68ed(0x12d)](_0x68afd7=>_0x68afd7[_0x2c68ed(0x11c)]===SKILL_FILE))throw CliErrors[_0x2c68ed(0x120)](_0x2c68ed(0x139)+SKILL_FILE+'.');return normalizeLocalFiles(_0xc2e397);}export function localFilesToManifestFiles(_0x227ef2){const _0x32a5e0=a151_0x4eb7;return normalizeLocalFiles(_0x227ef2)[_0x32a5e0(0x13b)](_0x59621c=>({'path':_0x59621c[_0x32a5e0(0x11c)],'sha256':fileHash(_0x59621c),'size':fileContent(_0x59621c)[_0x32a5e0(0x138)]}));}function normalizePackageManifest(_0x38a7a6,_0x2705d2){const _0x234c4b=a151_0x4eb7;if(!_0x38a7a6||typeof _0x38a7a6!==_0x234c4b(0x11e)||Array[_0x234c4b(0x117)](_0x38a7a6))return undefined;const _0x77310d=_0x38a7a6,_0x465b6b=typeof _0x77310d[_0x234c4b(0x11b)]==='string'?_0x77310d[_0x234c4b(0x11b)][_0x234c4b(0x142)]():undefined;if(_0x2705d2[_0x234c4b(0x127)]&&!_0x465b6b)return undefined;if(!Array[_0x234c4b(0x117)](_0x77310d['files'])||_0x77310d['files'][_0x234c4b(0x138)]===0x0)return undefined;if(!isSha256Hex(_0x77310d[_0x234c4b(0x137)]))throw CliErrors['validation'](_0x234c4b(0x140));if(!isSha256Hex(_0x77310d['zipSha256']))throw CliErrors['validation'](_0x234c4b(0x119));if(!Number[_0x234c4b(0x125)](_0x77310d[_0x234c4b(0x11a)])||_0x77310d[_0x234c4b(0x11a)]<0x0)throw CliErrors[_0x234c4b(0x120)](_0x234c4b(0x132));const _0x4bc351=normalizeManifestFiles(_0x77310d[_0x234c4b(0x13c)]);if(!_0x4bc351[_0x234c4b(0x12d)](_0x29c2d7=>_0x29c2d7[_0x234c4b(0x11c)]===SKILL_FILE))throw CliErrors[_0x234c4b(0x120)](_0x234c4b(0x12f)+SKILL_FILE+'.');const _0xebe21d=fileTreeHash(_0x4bc351);if(_0xebe21d!==_0x77310d['treeSha256'][_0x234c4b(0x115)]())throw CliErrors['validation'](_0x234c4b(0x13e));return{'schemaVersion':Number[_0x234c4b(0x125)](_0x77310d['schemaVersion'])?_0x77310d[_0x234c4b(0x13d)]:0x2,'ossPath':_0x465b6b,'treeSha256':_0xebe21d,'zipSha256':_0x77310d[_0x234c4b(0x13a)]['toLowerCase'](),'zipSize':_0x77310d[_0x234c4b(0x11a)],'files':_0x4bc351};}function a151_0x4eb7(_0x405217,_0x4ce977){_0x405217=_0x405217-0x115;const _0x3e310a=a151_0x3e31();let _0x4eb765=_0x3e310a[_0x405217];return _0x4eb765;}function extractAndVerifyPackage(_0x48a5da,_0x507120){const _0x5beb48=a151_0x4eb7,_0x801084=normalizePackageManifest(_0x48a5da,{'requireOssPath':![]});if(!_0x801084)throw CliErrors[_0x5beb48(0x120)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x507120[_0x5beb48(0x138)]!==_0x801084[_0x5beb48(0x11a)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x441c0a=bufferSha256(_0x507120);if(_0x441c0a!==_0x801084[_0x5beb48(0x13a)])throw CliErrors['validation'](_0x5beb48(0x121));return extractAndVerifyPackageFiles(_0x801084,_0x507120);}function extractAndVerifyPackageFiles(_0x5959f9,_0x11599c){const _0x49fb88=a151_0x4eb7,_0x1dbf99=parseZipPackage(_0x11599c);if(_0x1dbf99['length']!==_0x5959f9[_0x49fb88(0x13c)][_0x49fb88(0x138)])throw CliErrors[_0x49fb88(0x120)](_0x49fb88(0x11d));const _0x2de272=new Map();for(const _0xc6f8bf of _0x1dbf99){if(_0x2de272[_0x49fb88(0x135)](_0xc6f8bf[_0x49fb88(0x11c)]))throw CliErrors[_0x49fb88(0x120)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0xc6f8bf['path']);_0x2de272[_0x49fb88(0x143)](_0xc6f8bf[_0x49fb88(0x11c)],_0xc6f8bf);}const _0x22b0b0=[];for(const _0x2ba735 of _0x5959f9[_0x49fb88(0x13c)]){const _0x5ad5bb=_0x2de272[_0x49fb88(0x12b)](_0x2ba735['path']);if(!_0x5ad5bb)throw CliErrors[_0x49fb88(0x120)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x2ba735['path']);if(_0x5ad5bb[_0x49fb88(0x129)][_0x49fb88(0x138)]!==_0x2ba735[_0x49fb88(0x130)])throw CliErrors[_0x49fb88(0x120)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x2ba735['path']);const _0xc3d22d=bufferSha256(_0x5ad5bb[_0x49fb88(0x129)]);if(_0xc3d22d!==_0x2ba735[_0x49fb88(0x126)])throw CliErrors[_0x49fb88(0x120)](_0x49fb88(0x12a)+_0x2ba735[_0x49fb88(0x11c)]);_0x22b0b0['push']({'path':_0x2ba735[_0x49fb88(0x11c)],'bytes':_0x5ad5bb[_0x49fb88(0x129)]});}return normalizeLocalFiles(_0x22b0b0);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cda8e,_0x50905e){var _0x555de1=a152_0x1015,_0x371717=_0x4cda8e();while(!![]){try{var _0x17d8d6=parseInt(_0x555de1(0x126))/0x1+-parseInt(_0x555de1(0x129))/0x2*(parseInt(_0x555de1(0x12c))/0x3)+parseInt(_0x555de1(0x12e))/0x4*(parseInt(_0x555de1(0x127))/0x5)+-parseInt(_0x555de1(0x128))/0x6+-parseInt(_0x555de1(0x12b))/0x7+-parseInt(_0x555de1(0x12d))/0x8*(-parseInt(_0x555de1(0x124))/0x9)+-parseInt(_0x555de1(0x12a))/0xa*(parseInt(_0x555de1(0x125))/0xb);if(_0x17d8d6===_0x50905e)break;else _0x371717['push'](_0x371717['shift']());}catch(_0x32266f){_0x371717['push'](_0x371717['shift']());}}}(a152_0x26a6,0x1d634));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';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';function a152_0x1015(_0x5af0eb,_0x1912cc){_0x5af0eb=_0x5af0eb-0x124;var _0x26a661=a152_0x26a6();var _0x101582=_0x26a661[_0x5af0eb];return _0x101582;}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a152_0x26a6(){var _0x1488a0=['7045QQSifm','458100pAYYUj','116hOhaYa','10XFvjpu','1042979JieFzx','5289QTlwgA','26208zRhXik','628DTLPAz','306RNWIYc','62018KizGHk','121014lhPEfn'];a152_0x26a6=function(){return _0x1488a0;};return a152_0x26a6();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x3a3c3b=a153_0x118c;(function(_0x565019,_0x458e67){const _0x57d196=a153_0x118c,_0x59f850=_0x565019();while(!![]){try{const _0x32e296=-parseInt(_0x57d196(0x1a5))/0x1+-parseInt(_0x57d196(0x1a7))/0x2+-parseInt(_0x57d196(0x1c0))/0x3*(-parseInt(_0x57d196(0x1ba))/0x4)+-parseInt(_0x57d196(0x1b5))/0x5*(-parseInt(_0x57d196(0x1b9))/0x6)+parseInt(_0x57d196(0x1b6))/0x7*(parseInt(_0x57d196(0x1c3))/0x8)+parseInt(_0x57d196(0x1aa))/0x9+-parseInt(_0x57d196(0x1a3))/0xa;if(_0x32e296===_0x458e67)break;else _0x59f850['push'](_0x59f850['shift']());}catch(_0x56fa8e){_0x59f850['push'](_0x59f850['shift']());}}}(a153_0xc01d,0xe8994));import{existsSync,readFileSync}from'node:fs';function a153_0xc01d(){const _0x3bf1a8=['.skill-lock.json','7684504GckVib','23756680qjwpTO','\x20records\x20\x22','524306PItBFS','utf8','2184038ZjykSg','\x20is\x20unreadable:\x20','not-recorded','14533947NOzWcE','kind','.agents','reason','unverifiable','version','find','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','parse','includes','unusable','1277585gMokkv','7CDOPRW','map','skills','42RPojDO','1161304PItzvw','SKILL.md','message','present','\x20uses\x20unsupported\x20version\x20','join','6rqfSzB','.claude'];a153_0xc01d=function(){return _0x3bf1a8;};return a153_0xc01d();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a153_0x3a3c3b(0x1ac),a153_0x3a3c3b(0x1c2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a153_0x3a3c3b(0x1b8)),join(a153_0x3a3c3b(0x1c1),a153_0x3a3c3b(0x1b8))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x332505,_0x16f56f){const _0x340aca=a153_0x3a3c3b;if(!existsSync(_0x332505))return{'kind':'not-recorded'};let _0xed8faf;try{_0xed8faf=JSON[_0x340aca(0x1b2)](readFileSync(_0x332505,_0x340aca(0x1a6)));}catch(_0x9f969d){return{'kind':'unusable','reason':_0x332505+_0x340aca(0x1a8)+_0x9f969d[_0x340aca(0x1bc)]};}const _0x52119a=_0xed8faf;if(typeof _0x52119a?.[_0x340aca(0x1af)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x340aca(0x1b3)](_0x52119a['version']))return{'kind':_0x340aca(0x1b4),'reason':_0x332505+_0x340aca(0x1be)+String(_0x52119a?.['version'])};if(!_0x52119a[_0x340aca(0x1b8)]||typeof _0x52119a[_0x340aca(0x1b8)]!=='object')return{'kind':_0x340aca(0x1b4),'reason':_0x332505+'\x20has\x20no\x20skills\x20map'};return _0x52119a['skills'][_0x16f56f]?{'kind':'recorded'}:{'kind':_0x340aca(0x1a9)};}function a153_0x118c(_0x199b09,_0x4178e9){_0x199b09=_0x199b09-0x1a3;const _0xc01d98=a153_0xc01d();let _0x118c4d=_0xc01d98[_0x199b09];return _0x118c4d;}export function resolveInstalledSkill(_0x322a6b,_0x380613){const _0x173240=a153_0x3a3c3b,_0x499454=_0x380613?.['home']??homedir(),_0x2347d5=_0x380613?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x173240(0x1b7)](_0x37827c=>join(_0x499454,_0x37827c)),_0xdfbfb9=_0x380613?.['lockFile']??join(_0x499454,SKILL_LOCK_RELATIVE_PATH),_0x3fda11=_0x2347d5[_0x173240(0x1b7)](_0x56a049=>join(_0x56a049,_0x322a6b,_0x173240(0x1bb))),_0x5223e9=_0x3fda11[_0x173240(0x1b0)](_0x4681ff=>existsSync(_0x4681ff));if(_0x5223e9)return{'state':_0x173240(0x1bd),'path':_0x5223e9};const _0x3678d8=readLockLookup(_0xdfbfb9,_0x322a6b);if(_0x3678d8[_0x173240(0x1ab)]===_0x173240(0x1b4))return{'state':_0x173240(0x1ae),'reason':_0x3678d8[_0x173240(0x1ad)]};if(_0x3678d8[_0x173240(0x1ab)]==='recorded')return{'state':'unverifiable','reason':_0xdfbfb9+_0x173240(0x1a4)+_0x322a6b+_0x173240(0x1b1)+('('+_0x3fda11[_0x173240(0x1bf)](',\x20')+')')};return{'state':'absent','checked':_0x3fda11};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x3a94da=a154_0x5d50;function a154_0x5d50(_0x1a9208,_0x1f2191){_0x1a9208=_0x1a9208-0x159;const _0x4a6b7e=a154_0x4a6b();let _0x5d50d2=_0x4a6b7e[_0x1a9208];return _0x5d50d2;}function a154_0x4a6b(){const _0x4095e6=['accessKey','hasOwnProperty','3067113WAzzQm','apps','test','2729460HfoHpy','entries','length','isArray','prototype','slice','28685592bOKVeU','427568AUBTLD','string','2IIrcWY','object','538605yshMdu','28zwfKnk','<redacted>','call','repeat','2704617yTOBsv','1023455POXOwK'];a154_0x4a6b=function(){return _0x4095e6;};return a154_0x4a6b();}(function(_0x27b49f,_0x52990d){const _0x2ea1ee=a154_0x5d50,_0xc761de=_0x27b49f();while(!![]){try{const _0x15542f=parseInt(_0x2ea1ee(0x15c))/0x1*(-parseInt(_0x2ea1ee(0x16b))/0x2)+-parseInt(_0x2ea1ee(0x15b))/0x3+-parseInt(_0x2ea1ee(0x16e))/0x4*(parseInt(_0x2ea1ee(0x16d))/0x5)+-parseInt(_0x2ea1ee(0x162))/0x6+parseInt(_0x2ea1ee(0x15f))/0x7+parseInt(_0x2ea1ee(0x169))/0x8+parseInt(_0x2ea1ee(0x168))/0x9;if(_0x15542f===_0x52990d)break;else _0xc761de['push'](_0xc761de['shift']());}catch(_0x357ecc){_0xc761de['push'](_0xc761de['shift']());}}}(a154_0x4a6b,0x850ae));const REDACTED_ACCESS_KEY=a154_0x3a94da(0x16f);export function maskCliAccessKey(_0x77d419){const _0x4deaa4=a154_0x3a94da;if(typeof _0x77d419!==_0x4deaa4(0x16a)||_0x77d419[_0x4deaa4(0x164)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x77d419[_0x4deaa4(0x167)](0x0,0x8)+'*'[_0x4deaa4(0x15a)](_0x77d419[_0x4deaa4(0x164)]-0x8);}export function redactCliConfigCredentials(_0x1b1ec0){const _0x5c2f3d=a154_0x3a94da,_0x4c4b37={..._0x1b1ec0};return Object['prototype'][_0x5c2f3d(0x15e)][_0x5c2f3d(0x159)](_0x4c4b37,_0x5c2f3d(0x15d))&&(_0x4c4b37[_0x5c2f3d(0x15d)]=maskCliAccessKey(_0x4c4b37[_0x5c2f3d(0x15d)])),_0x4c4b37[_0x5c2f3d(0x160)]&&typeof _0x4c4b37['apps']===_0x5c2f3d(0x16c)&&!Array[_0x5c2f3d(0x165)](_0x4c4b37[_0x5c2f3d(0x160)])&&(_0x4c4b37[_0x5c2f3d(0x160)]=redactLegacyAppCredentials(_0x4c4b37[_0x5c2f3d(0x160)])),_0x4c4b37;}export function redactCliConfigValue(_0x4cd9e5,_0x38a04d){const _0x42572a=a154_0x3a94da;if(_0x4cd9e5===_0x42572a(0x15d)||/^apps\.[^.]+\.accessKey$/[_0x42572a(0x161)](_0x4cd9e5))return maskCliAccessKey(_0x38a04d);if(_0x4cd9e5===_0x42572a(0x160)&&_0x38a04d&&typeof _0x38a04d==='object'&&!Array[_0x42572a(0x165)](_0x38a04d))return redactLegacyAppCredentials(_0x38a04d);if(/^apps\.[^.]+$/[_0x42572a(0x161)](_0x4cd9e5)&&_0x38a04d&&typeof _0x38a04d==='object'&&!Array[_0x42572a(0x165)](_0x38a04d)){const _0x1b8b9d=_0x38a04d;return Object[_0x42572a(0x166)]['hasOwnProperty'][_0x42572a(0x159)](_0x1b8b9d,'accessKey')?{..._0x1b8b9d,'accessKey':maskCliAccessKey(_0x1b8b9d[_0x42572a(0x15d)])}:_0x38a04d;}return _0x38a04d;}function redactLegacyAppCredentials(_0x43b67c){const _0x9e1c1d=a154_0x3a94da;return Object['fromEntries'](Object[_0x9e1c1d(0x163)](_0x43b67c)['map'](([_0x50f1cb,_0x430ec2])=>{const _0x1198e8=_0x9e1c1d;if(!_0x430ec2||typeof _0x430ec2!==_0x1198e8(0x16c)||Array['isArray'](_0x430ec2))return[_0x50f1cb,_0x430ec2];const _0xa28843={..._0x430ec2};return Object[_0x1198e8(0x166)][_0x1198e8(0x15e)][_0x1198e8(0x159)](_0xa28843,_0x1198e8(0x15d))&&(_0xa28843['accessKey']=maskCliAccessKey(_0xa28843['accessKey'])),[_0x50f1cb,_0xa28843];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a155_0xe20a(){const _0x595671=['12LJBTZd','7983QTjoXf','17eloHHA','1511477Wamqwo','63RZZcHT','773576alWVhh','1307367YJhaaG','22778dscKLQ','110gyVESE','1898478WyFgAl','1423335KgrKzq'];a155_0xe20a=function(){return _0x595671;};return a155_0xe20a();}(function(_0x60fd47,_0x1748e1){const _0x9426f2=a155_0x4fc9,_0x5d7fee=_0x60fd47();while(!![]){try{const _0x15f7fa=parseInt(_0x9426f2(0x1e2))/0x1*(parseInt(_0x9426f2(0x1e7))/0x2)+parseInt(_0x9426f2(0x1e6))/0x3+parseInt(_0x9426f2(0x1e0))/0x4*(-parseInt(_0x9426f2(0x1df))/0x5)+-parseInt(_0x9426f2(0x1de))/0x6+parseInt(_0x9426f2(0x1e4))/0x7*(parseInt(_0x9426f2(0x1e5))/0x8)+parseInt(_0x9426f2(0x1e1))/0x9*(-parseInt(_0x9426f2(0x1e8))/0xa)+parseInt(_0x9426f2(0x1e3))/0xb;if(_0x15f7fa===_0x1748e1)break;else _0x5d7fee['push'](_0x5d7fee['shift']());}catch(_0x419f26){_0x5d7fee['push'](_0x5d7fee['shift']());}}}(a155_0xe20a,0x6f8cf));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a155_0x4fc9(_0x4ea822,_0x4ce180){_0x4ea822=_0x4ea822-0x1de;const _0xe20a97=a155_0xe20a();let _0x4fc964=_0xe20a97[_0x4ea822];return _0x4fc964;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a156_0x31f1(){const _0x43c036=['minimumVersion','npm\x20install\x20-g\x20','7508490LkDtJK','Upgrade\x20command:\x20','currentVersion','2570212xcdweI','join','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','belowMinimum','unavailable','upgradeMessage','30216BrNuOF','10cMMcCW','latest','757395pIrpSD','filter','stableVersion','18742194eUzutI','3fYtcIW','valid','35312OCwGvZ','693fpWtxz','Recommended\x20stable:\x20','Current\x20version:\x20','3962225WqtiMS'];a156_0x31f1=function(){return _0x43c036;};return a156_0x31f1();}(function(_0x51c12e,_0x4b164c){const _0x33f1a8=a156_0x7257,_0x4c4ddc=_0x51c12e();while(!![]){try{const _0x402442=-parseInt(_0x33f1a8(0xbe))/0x1+-parseInt(_0x33f1a8(0xbb))/0x2+parseInt(_0x33f1a8(0xc2))/0x3*(-parseInt(_0x33f1a8(0xb5))/0x4)+parseInt(_0x33f1a8(0xaf))/0x5+-parseInt(_0x33f1a8(0xb2))/0x6+parseInt(_0x33f1a8(0xc5))/0x7*(parseInt(_0x33f1a8(0xc4))/0x8)+-parseInt(_0x33f1a8(0xc1))/0x9*(-parseInt(_0x33f1a8(0xbc))/0xa);if(_0x402442===_0x4b164c)break;else _0x4c4ddc['push'](_0x4c4ddc['shift']());}catch(_0x4fa681){_0x4c4ddc['push'](_0x4c4ddc['shift']());}}}(a156_0x31f1,0x9d932));import a156_0xc36a9e 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 a156_0x7257(_0x12deae,_0x38bbb3){_0x12deae=_0x12deae-0xad;const _0x31f11b=a156_0x31f1();let _0x7257d3=_0x31f11b[_0x12deae];return _0x7257d3;}export function evaluateCliVersionPolicy(_0xf4507,_0x49951c){const _0x39fa2d=a156_0x7257,_0x389cc8=a156_0xc36a9e[_0x39fa2d(0xc3)](_0xf4507)===_0xf4507,_0x595719=_0x49951c?.[_0x39fa2d(0xc0)]??null,_0x30d713=_0x49951c?.[_0x39fa2d(0xb0)]??null,_0x4a0603=Boolean(_0x389cc8&&_0x595719&&a156_0xc36a9e['lt'](_0xf4507,_0x595719)),_0xb0bdf1=Boolean(_0x389cc8&&_0x30d713&&a156_0xc36a9e['lt'](_0xf4507,_0x30d713));return{'currentVersion':_0xf4507,'stableVersion':_0x595719,'minimumVersion':_0x30d713,'needsUpgrade':_0x4a0603||_0xb0bdf1,'belowMinimum':_0xb0bdf1,'upgradeMessage':_0x49951c?.[_0x39fa2d(0xba)],'minimumVersionMessage':_0x49951c?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x5cdd0b){const _0x46f2f7=a156_0x7257;return _0x46f2f7(0xb1)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x5cdd0b[_0x46f2f7(0xc0)]??_0x46f2f7(0xbd));}export function assertCliVersionSupported(_0x4c680c){const _0x16d2ab=a156_0x7257;if(!_0x4c680c[_0x16d2ab(0xb8)])return;const _0x99eefd=[_0x4c680c['minimumVersionMessage'],_0x16d2ab(0xae)+_0x4c680c[_0x16d2ab(0xb4)],'Minimum\x20supported:\x20'+_0x4c680c[_0x16d2ab(0xb0)],_0x16d2ab(0xad)+(_0x4c680c[_0x16d2ab(0xc0)]??_0x16d2ab(0xb9)),_0x16d2ab(0xb3)+getCliUpgradeCommand(_0x4c680c)][_0x16d2ab(0xbf)](Boolean)[_0x16d2ab(0xb6)]('\x0a');throw CliErrors['validation'](_0x16d2ab(0xb7),_0x99eefd);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a157_0x1ed5(){const _0x38e256=['latestVersion','1424632PSetOX','object','8348SZPKMD','string','2045FPVsXB','6mfYoRE','valid','stableVersion','finally','trim','cli','now','then','3067449bpSHHt','3659080SkoNTn','1059060bJotox','timeout','984130MgpLQH','330eGjDwU','299826IpmtCS','upgradeMessage','minVersion','recommendedVersion'];a157_0x1ed5=function(){return _0x38e256;};return a157_0x1ed5();}(function(_0x48fc08,_0x661b79){const _0x177232=a157_0x3cf4,_0xbfdf52=_0x48fc08();while(!![]){try{const _0x4510d1=-parseInt(_0x177232(0x127))/0x1+-parseInt(_0x177232(0x12e))/0x2+parseInt(_0x177232(0x13d))/0x3+-parseInt(_0x177232(0x130))/0x4*(-parseInt(_0x177232(0x132))/0x5)+-parseInt(_0x177232(0x133))/0x6*(parseInt(_0x177232(0x13b))/0x7)+parseInt(_0x177232(0x13c))/0x8+-parseInt(_0x177232(0x129))/0x9*(-parseInt(_0x177232(0x128))/0xa);if(_0x4510d1===_0x661b79)break;else _0xbfdf52['push'](_0xbfdf52['shift']());}catch(_0x4851f0){_0xbfdf52['push'](_0xbfdf52['shift']());}}}(a157_0x1ed5,0x997d9));import a157_0x20d751 from'semver';function a157_0x3cf4(_0xc406ba,_0x5e3778){_0xc406ba=_0xc406ba-0x126;const _0x1ed54d=a157_0x1ed5();let _0x3cf4f4=_0x1ed54d[_0xc406ba];return _0x3cf4f4;}import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x198127){const _0x4f14ea=a157_0x3cf4;return typeof _0x198127===_0x4f14ea(0x131)&&_0x198127['trim']()?_0x198127[_0x4f14ea(0x137)]():null;}function pickStrictSemver(_0x5ea50c){const _0x109bc2=a157_0x3cf4,_0x74f0=pickString(_0x5ea50c);return _0x74f0&&a157_0x20d751[_0x109bc2(0x134)](_0x74f0)===_0x74f0?_0x74f0:null;}export function normalizeCliVersionPolicy(_0x759ddf){const _0x28e771=a157_0x3cf4;if(!_0x759ddf||typeof _0x759ddf!==_0x28e771(0x12f))return null;const _0x570a8b=_0x759ddf,_0x3afbf2=_0x570a8b['cli']&&typeof _0x570a8b[_0x28e771(0x138)]===_0x28e771(0x12f)?_0x570a8b['cli']:_0x570a8b,_0x458b55=pickStrictSemver(_0x3afbf2[_0x28e771(0x135)]??_0x3afbf2[_0x28e771(0x12d)]??_0x3afbf2[_0x28e771(0x12c)]),_0x4d76e0=pickStrictSemver(_0x3afbf2['minimumVersion']??_0x3afbf2[_0x28e771(0x12b)]);if(!_0x458b55&&!_0x4d76e0)return null;if(_0x458b55&&_0x4d76e0&&a157_0x20d751['gt'](_0x4d76e0,_0x458b55))return null;return{'stableVersion':_0x458b55,'minimumVersion':_0x4d76e0,'upgradeMessage':pickString(_0x3afbf2[_0x28e771(0x12a)])??undefined,'minimumVersionMessage':pickString(_0x3afbf2['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0x5b6d55=a157_0x3cf4;try{const _0x3af3b4=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x5b6d55(0x126)](FETCH_TIMEOUT_MS)});if(!_0x3af3b4['ok'])return null;return normalizeCliVersionPolicy(await _0x3af3b4['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x2d9d33=a157_0x3cf4,_0x5c5e8a=Date[_0x2d9d33(0x139)]();if(hasCachedPolicy){const _0x26d8ea=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x5c5e8a-cachedAt<_0x26d8ea)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x2d9d33(0x13a)](_0x5a0f8f=>{const _0x538279=_0x2d9d33;return cachedPolicy=_0x5a0f8f,cachedAt=Date[_0x538279(0x139)](),hasCachedPolicy=!![],_0x5a0f8f;})[_0x2d9d33(0x136)](()=>{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 a158_0x4eada8=a158_0x58ec;(function(_0x1bd971,_0x1bdfcb){const _0xfc5b97=a158_0x58ec,_0x579aab=_0x1bd971();while(!![]){try{const _0x47291d=parseInt(_0xfc5b97(0xaa))/0x1*(-parseInt(_0xfc5b97(0xa2))/0x2)+parseInt(_0xfc5b97(0xa5))/0x3*(-parseInt(_0xfc5b97(0xb2))/0x4)+parseInt(_0xfc5b97(0xb5))/0x5*(parseInt(_0xfc5b97(0x98))/0x6)+parseInt(_0xfc5b97(0xab))/0x7+parseInt(_0xfc5b97(0xb6))/0x8+-parseInt(_0xfc5b97(0xc0))/0x9*(-parseInt(_0xfc5b97(0xba))/0xa)+parseInt(_0xfc5b97(0x9f))/0xb*(-parseInt(_0xfc5b97(0xa3))/0xc);if(_0x47291d===_0x1bdfcb)break;else _0x579aab['push'](_0x579aab['shift']());}catch(_0x3bdffc){_0x579aab['push'](_0x579aab['shift']());}}}(a158_0x448e,0x260d5));function a158_0x58ec(_0x49be7f,_0x1dce54){_0x49be7f=_0x49be7f-0x97;const _0x448eaf=a158_0x448e();let _0x58ecc7=_0x448eaf[_0x49be7f];return _0x58ecc7;}import a158_0x21357f from'winston';import a158_0x1aa233 from'node:fs';import a158_0x2a0364 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a158_0x448e(){const _0x4fb94b=['warn','message','initWinstonLogger','errors','yellow','blue','clear','details','log','green','printf','178932EKlMAF','filter','timestamp','logTask','join','parse','Completed:\x20','11sdnjVi','level','Failed\x20to\x20clear\x20logs:','94880lQprIl','5750952bikcaU','now','336RWmJxH','combine','command','info','transports','1TxEOhB','1497867kLpFxr','File','utf8','Starting:\x20','Failed:\x20','trim','existsSync','4036uAKbsL','unknown','logFilePath','30eokIVm','1532504BJFnnL','readLogs','clearLogs','currentRawCommand','10cQpgwO','readFileSync','duration','addColors','winstonLogger','error','1899711joJdoL','success','format','Failed\x20to\x20read\x20logs:','writeFileSync','mkdirSync','split','logFileName'];a158_0x448e=function(){return _0x4fb94b;};return a158_0x448e();}class Logger{[a158_0x4eada8(0xbe)];[a158_0x4eada8(0xb4)]='';['currentRawCommand']='';constructor(){}['setRawCommand'](_0x1e3a7f){const _0xd3e508=a158_0x4eada8;this[_0xd3e508(0xb9)]=_0x1e3a7f;}['setLogPath'](_0x132232){const _0x16237c=a158_0x4eada8;this[_0x16237c(0xb4)]=a158_0x2a0364[_0x16237c(0x9c)](_0x132232,PRODUCT_CONFIG[_0x16237c(0xc7)]),this[_0x16237c(0xbe)]&&this[_0x16237c(0xbe)][_0x16237c(0xce)](),this[_0x16237c(0xca)]();}[a158_0x4eada8(0xca)](){const _0x3f948a=a158_0x4eada8,_0x46d8e6=a158_0x2a0364['dirname'](this[_0x3f948a(0xb4)]);!a158_0x1aa233[_0x3f948a(0xb1)](_0x46d8e6)&&a158_0x1aa233[_0x3f948a(0xc5)](_0x46d8e6,{'recursive':!![]});const _0x35e07d=a158_0x21357f['format'][_0x3f948a(0xa6)](a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0x9a)](),a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0xcb)]({'stack':!![]}),a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0x97)](_0x290b0d=>{const _0x267319=_0x3f948a,_0x26b0f4={'timestamp':_0x290b0d[_0x267319(0x9a)]||new Date()['toISOString'](),'level':_0x290b0d[_0x267319(0xa0)]||_0x267319(0xa8),'command':_0x290b0d[_0x267319(0xa7)]||_0x267319(0xb3),'rawCommand':_0x290b0d['rawCommand']||this['currentRawCommand']||undefined,'message':_0x290b0d[_0x267319(0xc9)]||'','duration':_0x290b0d[_0x267319(0xbc)]||undefined,'details':_0x290b0d[_0x267319(0xcf)]||undefined};return JSON['stringify'](_0x26b0f4);}));this[_0x3f948a(0xbe)]=a158_0x21357f['createLogger']({'level':'info','format':_0x35e07d,'transports':[new a158_0x21357f[(_0x3f948a(0xa9))][(_0x3f948a(0xac))]({'filename':this[_0x3f948a(0xb4)],'level':_0x3f948a(0xa8)})],'silent':![]}),a158_0x21357f[_0x3f948a(0xbd)]({'success':_0x3f948a(0xd1),'error':'red','warn':_0x3f948a(0xcc),'info':_0x3f948a(0xcd)});}[a158_0x4eada8(0xa8)](_0x29424a,_0x2acc0e,_0x4b301e){const _0x5a6c88=a158_0x4eada8;if(!this['logFilePath']||!this[_0x5a6c88(0xbe)])return;this[_0x5a6c88(0xbe)][_0x5a6c88(0xa8)](_0x2acc0e,{'command':_0x29424a,'details':_0x4b301e});}['success'](_0x171615,_0xd41b59,_0x53a2cb,_0x1530d4){const _0x5bcebd=a158_0x4eada8;if(!this['logFilePath']||!this[_0x5bcebd(0xbe)])return;this['winstonLogger'][_0x5bcebd(0xd0)](_0x5bcebd(0xa8),_0xd41b59,{'level':_0x5bcebd(0xc1),'command':_0x171615,'duration':_0x53a2cb,'details':_0x1530d4});}['error'](_0x4561de,_0x1b6803,_0x42815){const _0xcabae=a158_0x4eada8;if(!this[_0xcabae(0xb4)]||!this[_0xcabae(0xbe)])return;this['winstonLogger'][_0xcabae(0xbf)](_0x1b6803,{'command':_0x4561de,'details':_0x42815});}[a158_0x4eada8(0xc8)](_0x38b278,_0x15e966,_0x51acbc){const _0x26fbe3=a158_0x4eada8;if(!this[_0x26fbe3(0xb4)]||!this[_0x26fbe3(0xbe)])return;this[_0x26fbe3(0xbe)][_0x26fbe3(0xc8)](_0x15e966,{'command':_0x38b278,'details':_0x51acbc});}async[a158_0x4eada8(0x9b)](_0x43e9de,_0x3baca0,_0xbfecb2){const _0x34350f=a158_0x4eada8,_0x379a0d=Date[_0x34350f(0xa4)]();this[_0x34350f(0xa8)](_0x43e9de,_0x34350f(0xae)+_0x3baca0);try{const _0x1d07d3=await _0xbfecb2(),_0x56e854=Date[_0x34350f(0xa4)]()-_0x379a0d;return this[_0x34350f(0xc1)](_0x43e9de,_0x34350f(0x9e)+_0x3baca0,_0x56e854),_0x1d07d3;}catch(_0x3f13ec){const _0x4d1b85=Date['now']()-_0x379a0d;this[_0x34350f(0xbf)](_0x43e9de,_0x34350f(0xaf)+_0x3baca0,{'error':_0x3f13ec instanceof Error?_0x3f13ec['message']:String(_0x3f13ec),'duration':_0x4d1b85});throw _0x3f13ec;}}[a158_0x4eada8(0xb7)](){const _0x15df57=a158_0x4eada8;try{if(!a158_0x1aa233[_0x15df57(0xb1)](this['logFilePath']))return[];const _0x183550=a158_0x1aa233[_0x15df57(0xbb)](this['logFilePath'],_0x15df57(0xad));return _0x183550[_0x15df57(0xc6)](/\r?\n/)[_0x15df57(0x99)](_0x10d3ef=>_0x10d3ef[_0x15df57(0xb0)]())['map'](_0x1cbd56=>JSON[_0x15df57(0x9d)](_0x1cbd56));}catch(_0x2ea0c0){return console['warn'](_0x15df57(0xc3),_0x2ea0c0),[];}}[a158_0x4eada8(0xb8)](){const _0x14edd8=a158_0x4eada8;try{a158_0x1aa233[_0x14edd8(0xb1)](this['logFilePath'])&&a158_0x1aa233[_0x14edd8(0xc4)](this[_0x14edd8(0xb4)],'',_0x14edd8(0xad));}catch(_0x16ef60){console[_0x14edd8(0xc8)](_0x14edd8(0xa1),_0x16ef60);}}['getWinstonInstance'](){const _0x5476fc=a158_0x4eada8;return this[_0x5476fc(0xbe)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a159_0x6870(_0x114042,_0x17e8e9){_0x114042=_0x114042-0xd8;const _0x572e2a=a159_0x572e();let _0x6870fa=_0x572e2a[_0x114042];return _0x6870fa;}const a159_0x48fc3d=a159_0x6870;(function(_0x4b096f,_0x5507f8){const _0x140d14=a159_0x6870,_0x506bef=_0x4b096f();while(!![]){try{const _0x5b279a=parseInt(_0x140d14(0xe5))/0x1+-parseInt(_0x140d14(0xea))/0x2*(parseInt(_0x140d14(0xe8))/0x3)+-parseInt(_0x140d14(0xe0))/0x4*(-parseInt(_0x140d14(0xd8))/0x5)+-parseInt(_0x140d14(0xe3))/0x6+parseInt(_0x140d14(0xe6))/0x7*(-parseInt(_0x140d14(0xdc))/0x8)+parseInt(_0x140d14(0xdd))/0x9+parseInt(_0x140d14(0xe4))/0xa;if(_0x5b279a===_0x5507f8)break;else _0x506bef['push'](_0x506bef['shift']());}catch(_0x37b501){_0x506bef['push'](_0x506bef['shift']());}}}(a159_0x572e,0x48b82));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a159_0x48fc3d(0xe7)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0xdbaa6){const _0x5ab329=a159_0x48fc3d;if(_0xdbaa6['includes']('.')||_0xdbaa6[_0x5ab329(0xde)]('e')||_0xdbaa6[_0x5ab329(0xde)]('E'))return![];const _0x48f7a7=BigInt(_0xdbaa6);return _0x48f7a7>MAX_SAFE_INTEGER||_0x48f7a7<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x5d2a34){const _0x536127=a159_0x48fc3d;let _0x570941='',_0x396041=![],_0x2fe24d=![];for(let _0x1bebd7=0x0;_0x1bebd7<_0x5d2a34[_0x536127(0xda)];){const _0x26a058=_0x5d2a34[_0x1bebd7];if(_0x396041){_0x570941+=_0x26a058,_0x1bebd7+=0x1;if(_0x2fe24d)_0x2fe24d=![];else{if(_0x26a058==='\x5c')_0x2fe24d=!![];else _0x26a058==='\x22'&&(_0x396041=![]);}continue;}if(_0x26a058==='\x22'){_0x396041=!![],_0x570941+=_0x26a058,_0x1bebd7+=0x1;continue;}if(_0x26a058==='-'||_0x26a058>='0'&&_0x26a058<='9'){const _0x138696=JSON_NUMBER_PATTERN[_0x536127(0xe2)](_0x5d2a34[_0x536127(0xdb)](_0x1bebd7))?.[0x0];if(_0x138696){_0x570941+=isUnsafeIntegerLiteral(_0x138696)?'\x22'+_0x138696+'\x22':_0x138696,_0x1bebd7+=_0x138696['length'];continue;}}_0x570941+=_0x26a058,_0x1bebd7+=0x1;}return _0x570941;}export function parseLosslessJson(_0x3433b0){const _0x557629=a159_0x48fc3d;return JSON[_0x557629(0xe1)](quoteUnsafeIntegerLiterals(_0x3433b0));}function a159_0x572e(){const _0x314577=['parse','exec','3285918XBTOcJ','5597520LIIqcw','246062zraVft','1627199klJfae','MIN_SAFE_INTEGER','44751DrUNMC','getOwnPropertyDescriptor','24WdsVua','prototype','undefined','text','4075ONDRml','json','length','slice','16jjmsSO','3086505gKRNQS','includes','defineProperty','1672zKrZjH'];a159_0x572e=function(){return _0x314577;};return a159_0x572e();}export function installLosslessJsonResponseParser(){const _0x1491fe=a159_0x48fc3d;if(typeof Response===_0x1491fe(0xec))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x1491fe(0xeb)],originalResponseJsonDescriptor=Object[_0x1491fe(0xe9)](responseJsonPrototype,_0x1491fe(0xd9)),Object[_0x1491fe(0xdf)](responseJsonPrototype,_0x1491fe(0xd9),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x278a1e(){const _0x1c4978=_0x1491fe;return parseLosslessJson(await this[_0x1c4978(0xed)]());}}),restoreResponseJsonParser=()=>{const _0x38a41a=_0x1491fe;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x38a41a(0xdf)](responseJsonPrototype,_0x38a41a(0xd9),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x552ca8,_0x40cec7){const _0x35a570=a160_0x3f58,_0x22ac02=_0x552ca8();while(!![]){try{const _0x362978=-parseInt(_0x35a570(0x15f))/0x1+parseInt(_0x35a570(0x158))/0x2+parseInt(_0x35a570(0x16c))/0x3*(-parseInt(_0x35a570(0x16e))/0x4)+parseInt(_0x35a570(0x15e))/0x5+-parseInt(_0x35a570(0x167))/0x6*(-parseInt(_0x35a570(0x165))/0x7)+-parseInt(_0x35a570(0x161))/0x8+parseInt(_0x35a570(0x164))/0x9*(parseInt(_0x35a570(0x168))/0xa);if(_0x362978===_0x40cec7)break;else _0x22ac02['push'](_0x22ac02['shift']());}catch(_0x10b6f3){_0x22ac02['push'](_0x22ac02['shift']());}}}(a160_0x10cc,0x8b560));import{CliErrors}from'../errors.js';function a160_0x3f58(_0x64ffa8,_0x5f599e){_0x64ffa8=_0x64ffa8-0x156;const _0x10cc30=a160_0x10cc();let _0x3f5896=_0x10cc30[_0x64ffa8];return _0x3f5896;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x20524e){const _0x2b4ff8=a160_0x3f58;if(!_0x20524e)return undefined;try{return parseLosslessJson(_0x20524e);}catch{throw CliErrors['validation'](_0x2b4ff8(0x166)+_0x20524e);}}function a160_0x10cc(){const _0x4b19c8=['data\x20update\x20can\x20update\x20at\x20most\x20','isArray','66RSUfjy','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','156652jXojKy','validation','items','object','data\x20update\x20--params.','1285120ZJtDus','length','number','map','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','join','4430735BBtDDC','749240qVerhQ','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','1913368fGswYC','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','isSafeInteger','9GwGwLe','423962eFTVGA','Invalid\x20JSON\x20for\x20--params:\x20','36RBmeOU','5286140uiQAhw','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.'];a160_0x10cc=function(){return _0x4b19c8;};return a160_0x10cc();}export function parseJsonParamsValue(_0x189074){const _0x478887=a160_0x3f58;if(!_0x189074)return undefined;try{return parseLosslessJson(_0x189074);}catch{throw CliErrors[_0x478887(0x16f)](_0x478887(0x166)+_0x189074);}}export function parseBatchCreateItemsFromParams(_0x4fa6d6){const _0x5b61d1=a160_0x3f58;if(Array[_0x5b61d1(0x16b)](_0x4fa6d6))return _0x4fa6d6;if(_0x4fa6d6!==null&&_0x4fa6d6!==undefined&&typeof _0x4fa6d6===_0x5b61d1(0x156)&&Array[_0x5b61d1(0x16b)](_0x4fa6d6[_0x5b61d1(0x170)]))return _0x4fa6d6[_0x5b61d1(0x170)];throw CliErrors[_0x5b61d1(0x16f)](_0x5b61d1(0x15c),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x2f167e,_0x2ed40a){const _0x58ae83=a160_0x3f58;if(typeof _0x2f167e===_0x58ae83(0x15a)&&Number[_0x58ae83(0x163)](_0x2f167e)&&_0x2f167e>0x0)return _0x2f167e;if(typeof _0x2f167e==='string'){if(/^[1-9]\d*$/['test'](_0x2f167e))return _0x2f167e;}throw CliErrors[_0x58ae83(0x16f)](_0x58ae83(0x157)+_0x2ed40a+_0x58ae83(0x162));}export function parseUpdateIdsFromParams(_0x1a69bc){const _0x42bb5f=a160_0x3f58;if(_0x1a69bc===null||_0x1a69bc===undefined||typeof _0x1a69bc!==_0x42bb5f(0x156)||Array[_0x42bb5f(0x16b)](_0x1a69bc))throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x16d),_0x42bb5f(0x160));const _0x21d011=_0x1a69bc['id'];if(_0x21d011===undefined||_0x21d011===null)throw CliErrors[_0x42bb5f(0x16f)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x42bb5f(0x160));const _0x508325=Array[_0x42bb5f(0x16b)](_0x21d011)?_0x21d011:[_0x21d011];if(_0x508325[_0x42bb5f(0x159)]===0x0)throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x169));if(_0x508325[_0x42bb5f(0x159)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x16a)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x508325[_0x42bb5f(0x159)]+'.');return _0x508325[_0x42bb5f(0x15b)]((_0x17067c,_0x52b63b)=>parseDataUpdateId(_0x17067c,Array[_0x42bb5f(0x16b)](_0x21d011)?'id['+_0x52b63b+']':'id'));}export function normalizeUpdateParamsForRuntime(_0xc4177e,_0x569fad){const _0x146940=a160_0x3f58;if(Array['isArray'](_0xc4177e['id'])&&_0x569fad['length']>0x1)return{..._0xc4177e,'id':_0x569fad[_0x146940(0x15d)](',')};return _0xc4177e;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a161_0x324350=a161_0x35b2;(function(_0x55da17,_0x5d4770){const _0x484e07=a161_0x35b2,_0x110bed=_0x55da17();while(!![]){try{const _0x5928eb=parseInt(_0x484e07(0x97))/0x1+parseInt(_0x484e07(0x9c))/0x2*(-parseInt(_0x484e07(0x9e))/0x3)+-parseInt(_0x484e07(0x9f))/0x4+-parseInt(_0x484e07(0x96))/0x5*(parseInt(_0x484e07(0x95))/0x6)+-parseInt(_0x484e07(0x9a))/0x7+parseInt(_0x484e07(0x94))/0x8*(-parseInt(_0x484e07(0x9b))/0x9)+parseInt(_0x484e07(0x99))/0xa;if(_0x5928eb===_0x5d4770)break;else _0x110bed['push'](_0x110bed['shift']());}catch(_0x3f8b66){_0x110bed['push'](_0x110bed['shift']());}}}(a161_0x3905,0x80fc4));export const isWindows=process['platform']===a161_0x324350(0x98);function a161_0x35b2(_0x3d8012,_0x1098e8){_0x3d8012=_0x3d8012-0x94;const _0x3905cf=a161_0x3905();let _0x35b205=_0x3905cf[_0x3d8012];return _0x35b205;}export function resolveNpmBin(_0x3699de){const _0x1eb8ac=a161_0x324350;return isWindows?_0x3699de+_0x1eb8ac(0x9d):_0x3699de;}function a161_0x3905(){const _0x3e3a3a=['10gMuhEV','714434deCwAj','win32','21043440skrvyQ','31899fxVHaK','1988982wnVmgL','100306bjTQjp','.cmd','15wUPohg','3359648IcZuQB','8llrQDg','2922666UBWOVX'];a161_0x3905=function(){return _0x3e3a3a;};return a161_0x3905();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2716e7,_0x2254aa){const _0x41d438=a162_0x3f0a,_0x5c069b=_0x2716e7();while(!![]){try{const _0x210748=parseInt(_0x41d438(0x89))/0x1+parseInt(_0x41d438(0x81))/0x2+parseInt(_0x41d438(0x8b))/0x3+parseInt(_0x41d438(0x8e))/0x4+-parseInt(_0x41d438(0x92))/0x5*(-parseInt(_0x41d438(0x8a))/0x6)+-parseInt(_0x41d438(0x7a))/0x7+parseInt(_0x41d438(0x8f))/0x8*(-parseInt(_0x41d438(0x83))/0x9);if(_0x210748===_0x2254aa)break;else _0x5c069b['push'](_0x5c069b['shift']());}catch(_0x7651c8){_0x5c069b['push'](_0x5c069b['shift']());}}}(a162_0x4170,0x27fe4));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 isUpdateNoticeDisabled(){const _0x509f7a=a162_0x3f0a,_0x1d8d09=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x509f7a(0x80)]()[_0x509f7a(0x95)]();return _0x1d8d09==='1'||_0x1d8d09===_0x509f7a(0x84)||_0x1d8d09===_0x509f7a(0x91);}function a162_0x3f0a(_0x3360db,_0x319653){_0x3360db=_0x3360db-0x7a;const _0x4170c6=a162_0x4170();let _0x3f0a61=_0x4170c6[_0x3360db];return _0x3f0a61;}function a162_0x4170(){const _0x4f6426=['56zYPmAY',',\x20run:\x20','yes','1206350YaLbBQ','stableVersion','https://www.npmjs.com/package/','toLowerCase','1718353tvPhkn','upgradeMessage','number','update-check.json','.cache','object','trim','69866rATqKN','lovrabet-cli','598077NEVjjd','true','currentVersion','lastNotifiedVersion','needsUpgrade','utf8','141151SyIVfS','6GVgwru','394662KVlZDr','lastNotifiedAt','\x20is\x20recommended,\x20current\x20','1302216VZfaPr'];a162_0x4170=function(){return _0x4f6426;};return a162_0x4170();}function cacheRoot(){const _0x202914=a162_0x3f0a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x202914(0x7e));}export function getUpdateNoticeCachePath(){const _0x2e00da=a162_0x3f0a;return join(cacheRoot(),_0x2e00da(0x82),_0x2e00da(0x7d));}async function readUpdateNoticeCache(){const _0x1d5af4=a162_0x3f0a;try{const _0x27d72a=await readFile(getUpdateNoticeCachePath(),_0x1d5af4(0x88)),_0x5d2e4e=JSON['parse'](_0x27d72a);if(!_0x5d2e4e||typeof _0x5d2e4e!==_0x1d5af4(0x7f))return{};return _0x5d2e4e;}catch{return{};}}async function writeUpdateNoticeCache(_0x492400){const _0x532f68=a162_0x3f0a;try{const _0x129f62=getUpdateNoticeCachePath();await mkdir(dirname(_0x129f62),{'recursive':!![]}),await writeFile(_0x129f62,JSON['stringify'](_0x492400,null,0x2)+'\x0a',_0x532f68(0x88));}catch{}}function isRecentlyNotified(_0x5b774a,_0x50e78b,_0x2d29b7){const _0x25cdd5=a162_0x3f0a;return _0x5b774a[_0x25cdd5(0x86)]===_0x50e78b&&typeof _0x5b774a[_0x25cdd5(0x8c)]===_0x25cdd5(0x7c)&&_0x2d29b7-_0x5b774a[_0x25cdd5(0x8c)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2b4c23){const _0x551a95=a162_0x3f0a;return _0x551a95(0x94)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x2b4c23;}export async function resolveLatestUpdateNotice(_0x3a1b86){const _0x1b2214=a162_0x3f0a;if(isUpdateNoticeDisabled())return null;try{const _0x4323a9=Date['now'](),_0x28deac=_0x3a1b86??await checkCliVersion(),_0x459db7=_0x28deac[_0x1b2214(0x85)],_0x2bc4dc=_0x28deac[_0x1b2214(0x93)],_0x588487=await readUpdateNoticeCache();if(!_0x2bc4dc||!_0x28deac[_0x1b2214(0x87)]||_0x28deac['belowMinimum'])return null;if(isRecentlyNotified(_0x588487,_0x2bc4dc,_0x4323a9))return null;const _0x5f447e=getCliUpgradeCommand(_0x28deac);return await writeUpdateNoticeCache({..._0x588487,'checkedAt':_0x4323a9,'latest':_0x2bc4dc,'failed':![],'lastNotifiedVersion':_0x2bc4dc,'lastNotifiedAt':_0x4323a9}),{'command':_0x5f447e,'current':_0x459db7,'latest':_0x2bc4dc,'url':buildNpmVersionUrl(_0x2bc4dc),'message':[_0x28deac[_0x1b2214(0x7b)],CLI_BIN_NAME+'\x20'+_0x2bc4dc+_0x1b2214(0x8d)+_0x459db7+_0x1b2214(0x90)+_0x5f447e]['filter'](Boolean)['join']('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44bc7e,_0x232f1f){const _0x4ad0e2=a163_0xe389,_0x4fb5c2=_0x44bc7e();while(!![]){try{const _0x5e4d02=parseInt(_0x4ad0e2(0x196))/0x1+parseInt(_0x4ad0e2(0x195))/0x2*(-parseInt(_0x4ad0e2(0x197))/0x3)+-parseInt(_0x4ad0e2(0x193))/0x4*(parseInt(_0x4ad0e2(0x198))/0x5)+parseInt(_0x4ad0e2(0x18e))/0x6*(-parseInt(_0x4ad0e2(0x199))/0x7)+-parseInt(_0x4ad0e2(0x18f))/0x8*(-parseInt(_0x4ad0e2(0x194))/0x9)+-parseInt(_0x4ad0e2(0x191))/0xa*(-parseInt(_0x4ad0e2(0x18d))/0xb)+-parseInt(_0x4ad0e2(0x18c))/0xc*(-parseInt(_0x4ad0e2(0x192))/0xd);if(_0x5e4d02===_0x232f1f)break;else _0x4fb5c2['push'](_0x4fb5c2['shift']());}catch(_0x50a6e3){_0x4fb5c2['push'](_0x4fb5c2['shift']());}}}(a163_0x5ce6,0x8d66e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x105617=String(GIT_COMMIT);return _0x105617&&_0x105617!=='unknown'?_0x105617:'';}function a163_0xe389(_0x14df9b,_0x5ba916){_0x14df9b=_0x14df9b-0x18c;const _0x5ce65e=a163_0x5ce6();let _0xe3891c=_0x5ce65e[_0x14df9b];return _0xe3891c;}export function getCliVersionDisplay(){const _0x1f7322=a163_0xe389,_0x2b57cf=getCliGitCommit(),_0x541e25=BUILD_TIME[_0x1f7322(0x190)](0x0,0xa);if(!_0x2b57cf||!_0x541e25)return VERSION;return VERSION+'\x20('+_0x2b57cf+',\x20'+_0x541e25+')';}function a163_0x5ce6(){const _0x84985c=['417012hvHhjE','10087946EnAvQr','637926ncEeZM','24456gmOmFS','slice','10RQicWJ','52gJbbnU','4TYdPjA','837BHXqLG','27108ioEdtw','487460maSUgp','114IwGfTa','1010060OLholg','35pAUWYJ'];a163_0x5ce6=function(){return _0x84985c;};return a163_0x5ce6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a164_0x2882(_0x259748,_0x4cd38e){_0x259748=_0x259748-0xdf;var _0x2132e6=a164_0x2132();var _0x2882a1=_0x2132e6[_0x259748];return _0x2882a1;}(function(_0x3dec5a,_0x3359b5){var _0x195202=a164_0x2882,_0x523473=_0x3dec5a();while(!![]){try{var _0x512bbc=parseInt(_0x195202(0xe3))/0x1*(-parseInt(_0x195202(0xea))/0x2)+-parseInt(_0x195202(0xec))/0x3*(parseInt(_0x195202(0xe2))/0x4)+parseInt(_0x195202(0xe0))/0x5+-parseInt(_0x195202(0xeb))/0x6+parseInt(_0x195202(0xe8))/0x7*(-parseInt(_0x195202(0xdf))/0x8)+parseInt(_0x195202(0xe1))/0x9*(parseInt(_0x195202(0xe5))/0xa)+-parseInt(_0x195202(0xe4))/0xb*(-parseInt(_0x195202(0xe9))/0xc);if(_0x512bbc===_0x3359b5)break;else _0x523473['push'](_0x523473['shift']());}catch(_0x851d64){_0x523473['push'](_0x523473['shift']());}}}(a164_0x2132,0x9c203));function a164_0x2132(){var _0x29bb44=['141jZEFdT','11pPrYvX','10QAexbR','stderr','write','35gekFLM','30925536eedEvH','6412bZwEdk','3493020szJfph','523293mNaOAS','1845752UIUAIX','3334050jhtiuu','959913GlsXEB','12UJBLrD'];a164_0x2132=function(){return _0x29bb44;};return a164_0x2132();}export function writeCliSideChannelLine(_0x318137){var _0x2b053e=a164_0x2882;process[_0x2b053e(0xe6)][_0x2b053e(0xe7)](_0x318137+'\x0a');}
|
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.1
|
|
4
|
+
version: 2.3.1
|
|
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、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
|
|
6
6
|
metadata:
|
|
7
7
|
requires:
|
|
@@ -331,7 +331,7 @@ Service Tree 未命中不是失败条件,也不代表业务能力不存在。
|
|
|
331
331
|
| **kb** | `detail` | 查看 personal 知识库正文与 RAG 状态 | read | AK |
|
|
332
332
|
| **kb** | `create` | 从本地文件创建 personal 知识库 | write | AK |
|
|
333
333
|
| **kb** | `update` | 从本地文件更新 personal 知识库 | write | AK |
|
|
334
|
-
| **kb** | `search` |
|
|
334
|
+
| **kb** | `search` | 检索可见公共、公司和个人知识 | read | AK |
|
|
335
335
|
| **schedule** | `validate` | 校验 UTC 定时任务,不创建计划 | read | AK |
|
|
336
336
|
| **schedule** | `create` | 创建周期或单次定时任务(需确认) | high-risk-write | AK |
|
|
337
337
|
| **schedule** | `list` | 分页查看当前应用的定时任务 | read | AK |
|
|
@@ -65,7 +65,9 @@ lovrabet config init --domain-config ./lovrabet-domains.json
|
|
|
65
65
|
|
|
66
66
|
新版企业清单会保存为带协议标识的 `routing` 对象,并整体优先于旧顶层 Domain;旧扁平配置继续保持既有回退行为。
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
进入旧扁平独立部署模式会删除全局 `region` 和旧 Domain 字段,再写入本次提供的 Domain。未提供的 Domain 仍按默认 `cn` 节点和当前 `env` 回退到 Lovrabet 公共服务。企业部署需要所有请求进入私有服务时,应完整提供五个 Domain;KB Service 下游地址由 Runtime Java 独立配置。
|
|
69
|
+
|
|
70
|
+
两种模式都保留 AccessKey、env、format、locale、应用绑定等其他全局配置。当前目录 `.lovrabet.json` 的旧扁平同名字段仍会覆盖全局旧扁平配置;初始化后用 `lovrabet doctor` 核对最终生效的国家/地区和五个 Domain。
|
|
69
71
|
|
|
70
72
|
## config list — 查看完整配置
|
|
71
73
|
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
| `apiDomain` | string | 节点内置值 | 平台 API HTTPS origin 覆盖 |
|
|
58
58
|
| `runtimeDomain` | string | 节点内置值 | 普通 Runtime HTTPS origin 覆盖 |
|
|
59
59
|
| `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
|
|
60
|
-
| `kbDomain` | string | 节点默认 |
|
|
60
|
+
| `kbDomain` | string | 节点默认 | Personal KB 管理与 `kb search` Runtime 网关 HTTPS origin 覆盖 |
|
|
61
61
|
|
|
62
|
-
五个 Domain 各自独立覆盖同名服务地址。没有显式配置时,CLI 按 `region` 使用内置节点:`cn` 对应中国大陆,`id` 对应 Indonesia,且 Indonesia 的最终服务地址统一使用 `*.lovrabet.id
|
|
62
|
+
五个 Domain 各自独立覆盖同名服务地址。没有显式配置时,CLI 按 `region` 和 `env` 使用内置节点:`cn` 对应中国大陆,`id` 对应 Indonesia,且 Indonesia 的最终服务地址统一使用 `*.lovrabet.id`。`development` 与 `daily` 共用非生产地址;KB Service 下游地址由 Runtime Java 配置管理。执行 `lovrabet doctor` 可查看当前实际生效的五个 Domain,无需理解内部地址层级。
|
|
63
63
|
|
|
64
64
|
`config init` 的完整模式切换、独立部署 JSON 和校验规则见 [配置管理](lovrabet-config-commands.md#config-init--初始化连接配置)。
|
|
65
65
|
|
|
@@ -10,7 +10,9 @@ lovrabet kb detail --id <id> --format compress
|
|
|
10
10
|
lovrabet kb search --query "订单审批" --topk 5 --format compress
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
`kb search`
|
|
13
|
+
`kb search` 只携带当前 AK,通过 `kbDomain` 调用固定 Runtime 搜索网关;Runtime 再按其 Java 环境配置访问 KB Service。返回范围是 `public/company/personal`,使用 `scope` 区分来源。
|
|
14
|
+
|
|
15
|
+
结构化输出固定为 `data: { schemaVersion:2, profile:"runtime", total, strategyFingerprint, timingsMs, hits }`。`--topk` 可选且必须是 1–50 的整数;命中完整保留 `documentId/revision/chunkId/scope/title/text/tags/rank/rawScore/finalScore/scoreKind` 的服务端顺序和值,不输出 legacy 别名。无命中是 `total:0/hits:[]` 的成功;字段、rank、score、timing、`no-store` 或 scope 漂移都会以脱敏错误失败。
|
|
14
16
|
|
|
15
17
|
## 业务执行中的 KB 消费
|
|
16
18
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.1
|
|
6
|
-
"skillVersion": "2.3.1
|
|
5
|
+
"packageVersion": "2.3.1",
|
|
6
|
+
"skillVersion": "2.3.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"references/lovrabet-user-account.md",
|
|
38
38
|
"references/lovrabet-workspace.md"
|
|
39
39
|
],
|
|
40
|
-
"digest": "
|
|
40
|
+
"digest": "d330bc66b207592115986ab7eb259be8104c53ea8908d4b1583f6f9e82fde931"
|
|
41
41
|
}
|