@lovrabet/lovrabet-cli 2.3.0-beta.6 → 2.3.0
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.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/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/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 +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a150_0x2b86(_0x2ba025,_0x6eed7d){_0x2ba025=_0x2ba025-0x19e;const _0x8f267e=a150_0x8f26();let _0x2b86e2=_0x8f267e[_0x2ba025];return _0x2b86e2;}const a150_0xaf92c7=a150_0x2b86;(function(_0x527efd,_0xa3ec4c){const _0x8f8188=a150_0x2b86,_0x274e1c=_0x527efd();while(!![]){try{const _0x16f6f0=parseInt(_0x8f8188(0x1ac))/0x1+-parseInt(_0x8f8188(0x1ae))/0x2+parseInt(_0x8f8188(0x19f))/0x3*(parseInt(_0x8f8188(0x1a7))/0x4)+parseInt(_0x8f8188(0x1b4))/0x5+-parseInt(_0x8f8188(0x1a8))/0x6*(-parseInt(_0x8f8188(0x1be))/0x7)+-parseInt(_0x8f8188(0x1a0))/0x8+-parseInt(_0x8f8188(0x1a1))/0x9;if(_0x16f6f0===_0xa3ec4c)break;else _0x274e1c['push'](_0x274e1c['shift']());}catch(_0x3b51c7){_0x274e1c['push'](_0x274e1c['shift']());}}}(a150_0x8f26,0x613f2));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a150_0x8f26(){const _0x4108a5=['object','63496LDoZsO','6TqkWxn','\x20uses\x20unsupported\x20version\x20','.agents','unverifiable','565969nzZQRL','not-recorded','388926zSXAMp','number','message','\x20is\x20unreadable:\x20','skills','.claude','149535dIXgaf','recorded','reason','present','parse','unusable','absent','.skill-lock.json','includes','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','2441866xhkyRi','find','kind','\x20records\x20\x22','home','69wAaSsb','1069000KRQsKc','5250654StUzwK','lockFile','utf8','version','map'];a150_0x8f26=function(){return _0x4108a5;};return a150_0x8f26();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a150_0xaf92c7(0x1aa),a150_0xaf92c7(0x1bb));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a150_0xaf92c7(0x1aa),'skills'),join(a150_0xaf92c7(0x1b3),a150_0xaf92c7(0x1b2))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x5ad599,_0x35d2b8){const _0x1c6e13=a150_0xaf92c7;if(!existsSync(_0x5ad599))return{'kind':_0x1c6e13(0x1ad)};let _0x4040a6;try{_0x4040a6=JSON[_0x1c6e13(0x1b8)](readFileSync(_0x5ad599,_0x1c6e13(0x1a3)));}catch(_0x5457c9){return{'kind':_0x1c6e13(0x1b9),'reason':_0x5ad599+_0x1c6e13(0x1b1)+_0x5457c9[_0x1c6e13(0x1b0)]};}const _0x340d3c=_0x4040a6;if(typeof _0x340d3c?.[_0x1c6e13(0x1a4)]!==_0x1c6e13(0x1af)||!SUPPORTED_LOCK_VERSIONS[_0x1c6e13(0x1bc)](_0x340d3c[_0x1c6e13(0x1a4)]))return{'kind':'unusable','reason':_0x5ad599+_0x1c6e13(0x1a9)+String(_0x340d3c?.['version'])};if(!_0x340d3c[_0x1c6e13(0x1b2)]||typeof _0x340d3c[_0x1c6e13(0x1b2)]!==_0x1c6e13(0x1a6))return{'kind':_0x1c6e13(0x1b9),'reason':_0x5ad599+'\x20has\x20no\x20skills\x20map'};return _0x340d3c[_0x1c6e13(0x1b2)][_0x35d2b8]?{'kind':_0x1c6e13(0x1b5)}:{'kind':_0x1c6e13(0x1ad)};}export function resolveInstalledSkill(_0x5c5402,_0x2df505){const _0x2ce168=a150_0xaf92c7,_0x317221=_0x2df505?.[_0x2ce168(0x19e)]??homedir(),_0x1ddce1=_0x2df505?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x2ce168(0x1a5)](_0x5716a9=>join(_0x317221,_0x5716a9)),_0x14e7e2=_0x2df505?.[_0x2ce168(0x1a2)]??join(_0x317221,SKILL_LOCK_RELATIVE_PATH),_0x444059=_0x1ddce1['map'](_0x2fabd2=>join(_0x2fabd2,_0x5c5402,'SKILL.md')),_0x280805=_0x444059[_0x2ce168(0x1bf)](_0xc03a45=>existsSync(_0xc03a45));if(_0x280805)return{'state':_0x2ce168(0x1b7),'path':_0x280805};const _0xd3f472=readLockLookup(_0x14e7e2,_0x5c5402);if(_0xd3f472['kind']==='unusable')return{'state':_0x2ce168(0x1ab),'reason':_0xd3f472[_0x2ce168(0x1b6)]};if(_0xd3f472[_0x2ce168(0x1c0)]===_0x2ce168(0x1b5))return{'state':_0x2ce168(0x1ab),'reason':_0x14e7e2+_0x2ce168(0x1c1)+_0x5c5402+_0x2ce168(0x1bd)+('('+_0x444059['join'](',\x20')+')')};return{'state':_0x2ce168(0x1ba),'checked':_0x444059};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a151_0x3df3(){const _0x5784db=['4193829hxIHfY','object','66EtpJNN','test','prototype','12513464nkeSge','repeat','9099937krrBwp','map','hasOwnProperty','apps','accessKey','call','isArray','453795mCfzqQ','slice','26225DSmKFU','60EJnEsa','5250688sPaxkL','7584777XNIzzg','length'];a151_0x3df3=function(){return _0x5784db;};return a151_0x3df3();}(function(_0x86d0bc,_0x2fa138){const _0x565501=a151_0x301a,_0x33b5b0=_0x86d0bc();while(!![]){try{const _0x43b496=parseInt(_0x565501(0x19c))/0x1*(-parseInt(_0x565501(0x19d))/0x2)+parseInt(_0x565501(0x1a1))/0x3+-parseInt(_0x565501(0x19e))/0x4+parseInt(_0x565501(0x19a))/0x5*(parseInt(_0x565501(0x1a3))/0x6)+parseInt(_0x565501(0x1a8))/0x7+-parseInt(_0x565501(0x1a6))/0x8+parseInt(_0x565501(0x19f))/0x9;if(_0x43b496===_0x2fa138)break;else _0x33b5b0['push'](_0x33b5b0['shift']());}catch(_0x1aab45){_0x33b5b0['push'](_0x33b5b0['shift']());}}}(a151_0x3df3,0xd5ba7));const REDACTED_ACCESS_KEY='<redacted>';function a151_0x301a(_0x30db30,_0x215160){_0x30db30=_0x30db30-0x195;const _0x3df346=a151_0x3df3();let _0x301a7d=_0x3df346[_0x30db30];return _0x301a7d;}export function maskCliAccessKey(_0x1f717f){const _0x1d51ec=a151_0x301a;if(typeof _0x1f717f!=='string'||_0x1f717f[_0x1d51ec(0x1a0)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x1f717f[_0x1d51ec(0x19b)](0x0,0x8)+'*'[_0x1d51ec(0x1a7)](_0x1f717f['length']-0x8);}export function redactCliConfigCredentials(_0x1bf3af){const _0x3c8e65=a151_0x301a,_0x56ac93={..._0x1bf3af};return Object[_0x3c8e65(0x1a5)][_0x3c8e65(0x195)][_0x3c8e65(0x198)](_0x56ac93,'accessKey')&&(_0x56ac93[_0x3c8e65(0x197)]=maskCliAccessKey(_0x56ac93['accessKey'])),_0x56ac93[_0x3c8e65(0x196)]&&typeof _0x56ac93[_0x3c8e65(0x196)]==='object'&&!Array[_0x3c8e65(0x199)](_0x56ac93[_0x3c8e65(0x196)])&&(_0x56ac93[_0x3c8e65(0x196)]=redactLegacyAppCredentials(_0x56ac93['apps'])),_0x56ac93;}export function redactCliConfigValue(_0xee96be,_0x42f120){const _0x30c92b=a151_0x301a;if(_0xee96be==='accessKey'||/^apps\.[^.]+\.accessKey$/[_0x30c92b(0x1a4)](_0xee96be))return maskCliAccessKey(_0x42f120);if(_0xee96be===_0x30c92b(0x196)&&_0x42f120&&typeof _0x42f120==='object'&&!Array[_0x30c92b(0x199)](_0x42f120))return redactLegacyAppCredentials(_0x42f120);if(/^apps\.[^.]+$/[_0x30c92b(0x1a4)](_0xee96be)&&_0x42f120&&typeof _0x42f120==='object'&&!Array['isArray'](_0x42f120)){const _0x5127ef=_0x42f120;return Object[_0x30c92b(0x1a5)]['hasOwnProperty']['call'](_0x5127ef,_0x30c92b(0x197))?{..._0x5127ef,'accessKey':maskCliAccessKey(_0x5127ef[_0x30c92b(0x197)])}:_0x42f120;}return _0x42f120;}function redactLegacyAppCredentials(_0x307f8c){const _0x31087f=a151_0x301a;return Object['fromEntries'](Object['entries'](_0x307f8c)[_0x31087f(0x1a9)](([_0x6fd02f,_0x1fbe2b])=>{const _0x2b5548=_0x31087f;if(!_0x1fbe2b||typeof _0x1fbe2b!==_0x2b5548(0x1a2)||Array[_0x2b5548(0x199)](_0x1fbe2b))return[_0x6fd02f,_0x1fbe2b];const _0x27e02c={..._0x1fbe2b};return Object[_0x2b5548(0x1a5)][_0x2b5548(0x195)][_0x2b5548(0x198)](_0x27e02c,_0x2b5548(0x197))&&(_0x27e02c['accessKey']=maskCliAccessKey(_0x27e02c[_0x2b5548(0x197)])),[_0x6fd02f,_0x27e02c];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd5c205,_0x44412b){const _0x44c544=a152_0x4202,_0x273b62=_0xd5c205();while(!![]){try{const _0x5b5609=-parseInt(_0x44c544(0xd6))/0x1*(parseInt(_0x44c544(0xd5))/0x2)+-parseInt(_0x44c544(0xdd))/0x3+-parseInt(_0x44c544(0xda))/0x4+-parseInt(_0x44c544(0xdc))/0x5+-parseInt(_0x44c544(0xde))/0x6*(-parseInt(_0x44c544(0xd7))/0x7)+-parseInt(_0x44c544(0xdb))/0x8*(parseInt(_0x44c544(0xd8))/0x9)+-parseInt(_0x44c544(0xd9))/0xa*(-parseInt(_0x44c544(0xdf))/0xb);if(_0x5b5609===_0x44412b)break;else _0x273b62['push'](_0x273b62['shift']());}catch(_0x7db6f7){_0x273b62['push'](_0x273b62['shift']());}}}(a152_0x2d2f,0xf19be));function a152_0x2d2f(){const _0x4fcb27=['10558042ZGixZu','116342JWkTbX','2vJwFgM','7KEhqoR','9AXSfra','70zRCrim','6876120bHvjuY','13150064UJQYqQ','9260230eCNGRM','4342986DwHGVx','6298284xfbjYJ'];a152_0x2d2f=function(){return _0x4fcb27;};return a152_0x2d2f();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a152_0x4202(_0x5db4b6,_0x386348){_0x5db4b6=_0x5db4b6-0xd5;const _0x2d2fae=a152_0x2d2f();let _0x4202a5=_0x2d2fae[_0x5db4b6];return _0x4202a5;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21af4b,_0x53aded){const _0x4957a6=a153_0x310a,_0x3a6449=_0x21af4b();while(!![]){try{const _0x58d86b=-parseInt(_0x4957a6(0x12a))/0x1+-parseInt(_0x4957a6(0x131))/0x2+parseInt(_0x4957a6(0x13a))/0x3*(-parseInt(_0x4957a6(0x133))/0x4)+parseInt(_0x4957a6(0x132))/0x5+parseInt(_0x4957a6(0x138))/0x6+parseInt(_0x4957a6(0x13f))/0x7*(parseInt(_0x4957a6(0x13e))/0x8)+parseInt(_0x4957a6(0x13d))/0x9*(parseInt(_0x4957a6(0x140))/0xa);if(_0x58d86b===_0x53aded)break;else _0x3a6449['push'](_0x3a6449['shift']());}catch(_0x1fa3ef){_0x3a6449['push'](_0x3a6449['shift']());}}}(a153_0x1eb5,0x35d2c));import a153_0x48550f from'semver';function a153_0x310a(_0x4fca6c,_0x2f4fc3){_0x4fca6c=_0x4fca6c-0x127;const _0x1eb568=a153_0x1eb5();let _0x310a44=_0x1eb568[_0x4fca6c];return _0x310a44;}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';export function evaluateCliVersionPolicy(_0x5b6504,_0x4307cc){const _0x255dbe=a153_0x310a,_0x31910c=a153_0x48550f['valid'](_0x5b6504)===_0x5b6504,_0x57298f=_0x4307cc?.[_0x255dbe(0x13b)]??null,_0xaff846=_0x4307cc?.['minimumVersion']??null,_0x578e09=Boolean(_0x31910c&&_0x57298f&&a153_0x48550f['lt'](_0x5b6504,_0x57298f)),_0x41b92a=Boolean(_0x31910c&&_0xaff846&&a153_0x48550f['lt'](_0x5b6504,_0xaff846));return{'currentVersion':_0x5b6504,'stableVersion':_0x57298f,'minimumVersion':_0xaff846,'needsUpgrade':_0x578e09||_0x41b92a,'belowMinimum':_0x41b92a,'upgradeMessage':_0x4307cc?.[_0x255dbe(0x139)],'minimumVersionMessage':_0x4307cc?.[_0x255dbe(0x12f)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x2f9683){const _0x39c5cc=a153_0x310a;return _0x39c5cc(0x127)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x2f9683[_0x39c5cc(0x13b)]??_0x39c5cc(0x129));}export function assertCliVersionSupported(_0x3cc7a0){const _0x1072d1=a153_0x310a;if(!_0x3cc7a0[_0x1072d1(0x136)])return;const _0x4218ae=[_0x3cc7a0[_0x1072d1(0x12f)],_0x1072d1(0x135)+_0x3cc7a0[_0x1072d1(0x12c)],_0x1072d1(0x12e)+_0x3cc7a0[_0x1072d1(0x12b)],_0x1072d1(0x134)+(_0x3cc7a0[_0x1072d1(0x13b)]??_0x1072d1(0x13c)),_0x1072d1(0x12d)+getCliUpgradeCommand(_0x3cc7a0)][_0x1072d1(0x137)](Boolean)[_0x1072d1(0x130)]('\x0a');throw CliErrors['validation'](_0x1072d1(0x128),_0x4218ae);}function a153_0x1eb5(){const _0x570634=['minimumVersionMessage','join','701204ZtdSbo','1253620BYsBPz','12xmlCWz','Recommended\x20stable:\x20','Current\x20version:\x20','belowMinimum','filter','1632000aZFAQC','upgradeMessage','186387rLyGDe','stableVersion','unavailable','1791GNZHIq','1738504UMseSO','14kJIYYc','11810vzWGEJ','npm\x20install\x20-g\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','latest','434920unfhyn','minimumVersion','currentVersion','Upgrade\x20command:\x20','Minimum\x20supported:\x20'];a153_0x1eb5=function(){return _0x570634;};return a153_0x1eb5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d5817,_0x5cef44){const _0x551859=a154_0xb5ad,_0x5ace3c=_0x5d5817();while(!![]){try{const _0x3f2cf6=parseInt(_0x551859(0x11f))/0x1+parseInt(_0x551859(0x116))/0x2*(-parseInt(_0x551859(0x120))/0x3)+parseInt(_0x551859(0x11b))/0x4+-parseInt(_0x551859(0x115))/0x5+parseInt(_0x551859(0x118))/0x6+parseInt(_0x551859(0x119))/0x7*(parseInt(_0x551859(0x11d))/0x8)+-parseInt(_0x551859(0x11e))/0x9;if(_0x3f2cf6===_0x5cef44)break;else _0x5ace3c['push'](_0x5ace3c['shift']());}catch(_0x4f5785){_0x5ace3c['push'](_0x5ace3c['shift']());}}}(a154_0xf318,0xec88d));import a154_0x33698d from'semver';function a154_0xb5ad(_0x1ae2ed,_0x2d36b2){_0x1ae2ed=_0x1ae2ed-0x10f;const _0xf318d0=a154_0xf318();let _0xb5ad5=_0xf318d0[_0x1ae2ed];return _0xb5ad5;}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(_0x2b07cf){const _0x5c8041=a154_0xb5ad;return typeof _0x2b07cf===_0x5c8041(0x10f)&&_0x2b07cf['trim']()?_0x2b07cf['trim']():null;}function pickStrictSemver(_0x1ac4ac){const _0x5a9b19=pickString(_0x1ac4ac);return _0x5a9b19&&a154_0x33698d['valid'](_0x5a9b19)===_0x5a9b19?_0x5a9b19:null;}export function normalizeCliVersionPolicy(_0x2c650c){const _0x37147a=a154_0xb5ad;if(!_0x2c650c||typeof _0x2c650c!==_0x37147a(0x113))return null;const _0x104ebe=_0x2c650c,_0x2f1b16=_0x104ebe[_0x37147a(0x114)]&&typeof _0x104ebe[_0x37147a(0x114)]==='object'?_0x104ebe['cli']:_0x104ebe,_0x20396f=pickStrictSemver(_0x2f1b16[_0x37147a(0x11a)]??_0x2f1b16['latestVersion']??_0x2f1b16[_0x37147a(0x110)]),_0xd1b361=pickStrictSemver(_0x2f1b16[_0x37147a(0x121)]??_0x2f1b16[_0x37147a(0x111)]);if(!_0x20396f&&!_0xd1b361)return null;if(_0x20396f&&_0xd1b361&&a154_0x33698d['gt'](_0xd1b361,_0x20396f))return null;return{'stableVersion':_0x20396f,'minimumVersion':_0xd1b361,'upgradeMessage':pickString(_0x2f1b16['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0x2f1b16[_0x37147a(0x112)])??undefined};}export async function fetchCliVersionPolicy(){const _0x39fce4=a154_0xb5ad;try{const _0x1d103f=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x39fce4(0x117)},'signal':AbortSignal['timeout'](FETCH_TIMEOUT_MS)});if(!_0x1d103f['ok'])return null;return normalizeCliVersionPolicy(await _0x1d103f['json']());}catch{return null;}}function a154_0xf318(){const _0x24e099=['340748dbjjKo','application/json','4150362jQamtG','2437337MQrNfH','stableVersion','3024676GOOZBE','finally','32rcMvmH','16296120dikxgP','123540NsEPHF','3SMPYuL','minimumVersion','now','string','recommendedVersion','minVersion','minimumVersionMessage','object','cli','71505ZVYVFS'];a154_0xf318=function(){return _0x24e099;};return a154_0xf318();}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x274f12=a154_0xb5ad,_0x471f02=Date['now']();if(hasCachedPolicy){const _0x569249=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x471f02-cachedAt<_0x569249)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x15266c=>{const _0x5c2bde=a154_0xb5ad;return cachedPolicy=_0x15266c,cachedAt=Date[_0x5c2bde(0x122)](),hasCachedPolicy=!![],_0x15266c;})[_0x274f12(0x11c)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a155_0xab53fc=a155_0x3624;(function(_0x436503,_0x196934){const _0x25f7ad=a155_0x3624,_0x269d5e=_0x436503();while(!![]){try{const _0x2e8a98=-parseInt(_0x25f7ad(0xa9))/0x1*(-parseInt(_0x25f7ad(0xba))/0x2)+-parseInt(_0x25f7ad(0xc3))/0x3+-parseInt(_0x25f7ad(0xb4))/0x4+-parseInt(_0x25f7ad(0xd8))/0x5*(-parseInt(_0x25f7ad(0xd1))/0x6)+-parseInt(_0x25f7ad(0xbb))/0x7+-parseInt(_0x25f7ad(0xab))/0x8+parseInt(_0x25f7ad(0xb5))/0x9;if(_0x2e8a98===_0x196934)break;else _0x269d5e['push'](_0x269d5e['shift']());}catch(_0xdfa2e1){_0x269d5e['push'](_0x269d5e['shift']());}}}(a155_0x4b3e,0x2a1ac));import a155_0x14bacc from'winston';import a155_0x174792 from'node:fs';import a155_0x2c058d from'node:path';function a155_0x3624(_0xcfeb44,_0x448b23){_0xcfeb44=_0xcfeb44-0xa2;const _0x4b3eb3=a155_0x4b3e();let _0x3624b9=_0x4b3eb3[_0xcfeb44];return _0x3624b9;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a155_0xab53fc(0xc0)];['logFilePath']='';['currentRawCommand']='';constructor(){}[a155_0xab53fc(0xc6)](_0x1385d8){this['currentRawCommand']=_0x1385d8;}['setLogPath'](_0x26e328){const _0x416642=a155_0xab53fc;this['logFilePath']=a155_0x2c058d[_0x416642(0xd2)](_0x26e328,PRODUCT_CONFIG[_0x416642(0xbe)]),this['winstonLogger']&&this[_0x416642(0xc0)]['clear'](),this[_0x416642(0xb9)]();}[a155_0xab53fc(0xb9)](){const _0x471c69=a155_0xab53fc,_0x33a88e=a155_0x2c058d[_0x471c69(0xb6)](this[_0x471c69(0xd0)]);!a155_0x174792[_0x471c69(0xc2)](_0x33a88e)&&a155_0x174792[_0x471c69(0xc7)](_0x33a88e,{'recursive':!![]});const _0x12f6d0=a155_0x14bacc[_0x471c69(0xaf)][_0x471c69(0xd5)](a155_0x14bacc[_0x471c69(0xaf)][_0x471c69(0xc5)](),a155_0x14bacc['format'][_0x471c69(0xd3)]({'stack':!![]}),a155_0x14bacc[_0x471c69(0xaf)][_0x471c69(0xac)](_0x73a965=>{const _0x260ab3=_0x471c69,_0x3b7b6a={'timestamp':_0x73a965['timestamp']||new Date()[_0x260ab3(0xcc)](),'level':_0x73a965[_0x260ab3(0xc4)]||_0x260ab3(0xa2),'command':_0x73a965[_0x260ab3(0xcd)]||_0x260ab3(0xa5),'rawCommand':_0x73a965[_0x260ab3(0xb1)]||this[_0x260ab3(0xb7)]||undefined,'message':_0x73a965[_0x260ab3(0xbc)]||'','duration':_0x73a965[_0x260ab3(0xa4)]||undefined,'details':_0x73a965[_0x260ab3(0xc9)]||undefined};return JSON[_0x260ab3(0xb8)](_0x3b7b6a);}));this[_0x471c69(0xc0)]=a155_0x14bacc[_0x471c69(0xb2)]({'level':_0x471c69(0xa2),'format':_0x12f6d0,'transports':[new a155_0x14bacc[(_0x471c69(0xce))][(_0x471c69(0xad))]({'filename':this[_0x471c69(0xd0)],'level':_0x471c69(0xa2)})],'silent':![]}),a155_0x14bacc['addColors']({'success':_0x471c69(0xcb),'error':_0x471c69(0xbf),'warn':_0x471c69(0xd7),'info':_0x471c69(0xb0)});}[a155_0xab53fc(0xa2)](_0x4306fc,_0x414a43,_0x3474e0){const _0x1d4b8e=a155_0xab53fc;if(!this[_0x1d4b8e(0xd0)]||!this[_0x1d4b8e(0xc0)])return;this[_0x1d4b8e(0xc0)][_0x1d4b8e(0xa2)](_0x414a43,{'command':_0x4306fc,'details':_0x3474e0});}[a155_0xab53fc(0xa6)](_0x53058f,_0x1a2fd6,_0x797f76,_0x342616){const _0x2c500a=a155_0xab53fc;if(!this[_0x2c500a(0xd0)]||!this['winstonLogger'])return;this[_0x2c500a(0xc0)][_0x2c500a(0xa7)](_0x2c500a(0xa2),_0x1a2fd6,{'level':_0x2c500a(0xa6),'command':_0x53058f,'duration':_0x797f76,'details':_0x342616});}[a155_0xab53fc(0xca)](_0x22a58,_0x38ea14,_0x55a469){const _0x5c82de=a155_0xab53fc;if(!this[_0x5c82de(0xd0)]||!this['winstonLogger'])return;this[_0x5c82de(0xc0)][_0x5c82de(0xca)](_0x38ea14,{'command':_0x22a58,'details':_0x55a469});}[a155_0xab53fc(0xd6)](_0xe9fbf9,_0x45f1ba,_0x59c76a){const _0x4a1c87=a155_0xab53fc;if(!this[_0x4a1c87(0xd0)]||!this['winstonLogger'])return;this['winstonLogger'][_0x4a1c87(0xd6)](_0x45f1ba,{'command':_0xe9fbf9,'details':_0x59c76a});}async['logTask'](_0x300a93,_0xdadf10,_0xabb64c){const _0x44d246=a155_0xab53fc,_0x4042f9=Date[_0x44d246(0xc8)]();this['info'](_0x300a93,_0x44d246(0xd9)+_0xdadf10);try{const _0x2ce4c8=await _0xabb64c(),_0x3d752e=Date[_0x44d246(0xc8)]()-_0x4042f9;return this['success'](_0x300a93,'Completed:\x20'+_0xdadf10,_0x3d752e),_0x2ce4c8;}catch(_0x2d0c03){const _0x4e45e5=Date[_0x44d246(0xc8)]()-_0x4042f9;this[_0x44d246(0xca)](_0x300a93,_0x44d246(0xb3)+_0xdadf10,{'error':_0x2d0c03 instanceof Error?_0x2d0c03[_0x44d246(0xbc)]:String(_0x2d0c03),'duration':_0x4e45e5});throw _0x2d0c03;}}[a155_0xab53fc(0xa3)](){const _0x18b75e=a155_0xab53fc;try{if(!a155_0x174792[_0x18b75e(0xc2)](this['logFilePath']))return[];const _0x28cd72=a155_0x174792[_0x18b75e(0xd4)](this[_0x18b75e(0xd0)],_0x18b75e(0xaa));return _0x28cd72['split'](/\r?\n/)[_0x18b75e(0xc1)](_0x1b764b=>_0x1b764b[_0x18b75e(0xa8)]())['map'](_0x2fdafe=>JSON[_0x18b75e(0xcf)](_0x2fdafe));}catch(_0x2274eb){return console[_0x18b75e(0xd6)]('Failed\x20to\x20read\x20logs:',_0x2274eb),[];}}['clearLogs'](){const _0x1fc3d3=a155_0xab53fc;try{a155_0x174792[_0x1fc3d3(0xc2)](this[_0x1fc3d3(0xd0)])&&a155_0x174792[_0x1fc3d3(0xbd)](this[_0x1fc3d3(0xd0)],'',_0x1fc3d3(0xaa));}catch(_0x2a5596){console[_0x1fc3d3(0xd6)]('Failed\x20to\x20clear\x20logs:',_0x2a5596);}}[a155_0xab53fc(0xae)](){const _0x50f730=a155_0xab53fc;return this[_0x50f730(0xc0)];}}function a155_0x4b3e(){const _0x2ab7f6=['readLogs','duration','unknown','success','log','trim','17CeMbJs','utf8','318328sGQnjr','printf','File','getWinstonInstance','format','blue','rawCommand','createLogger','Failed:\x20','429296xFEaXF','4716522zfBGHg','dirname','currentRawCommand','stringify','initWinstonLogger','23786cJBCPO','2137499WACwEx','message','writeFileSync','logFileName','red','winstonLogger','filter','existsSync','913899MmHxWE','level','timestamp','setRawCommand','mkdirSync','now','details','error','green','toISOString','command','transports','parse','logFilePath','12JlnXmx','join','errors','readFileSync','combine','warn','yellow','508315Rljcgd','Starting:\x20','info'];a155_0x4b3e=function(){return _0x2ab7f6;};return a155_0x4b3e();}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a156_0x12f3c3=a156_0x1f47;function a156_0x210a(){const _0x2a135e=['includes','defineProperty','3466445zTFeYT','18xKtsqJ','2425908TxUfjP','MIN_SAFE_INTEGER','undefined','length','slice','parse','33010nPzLjA','1vmMJgG','exec','160688XiKClU','prototype','1056392XRjPVy','json','2007248UecoJs','21iZbxeB','9196HfIFHT','443946ZCQopc'];a156_0x210a=function(){return _0x2a135e;};return a156_0x210a();}function a156_0x1f47(_0x53acbc,_0x56a7b2){_0x53acbc=_0x53acbc-0x77;const _0x210a1e=a156_0x210a();let _0x1f47aa=_0x210a1e[_0x53acbc];return _0x1f47aa;}(function(_0x2d6686,_0x5604aa){const _0x5e0f3d=a156_0x1f47,_0x203a29=_0x2d6686();while(!![]){try{const _0x45270f=parseInt(_0x5e0f3d(0x89))/0x1*(-parseInt(_0x5e0f3d(0x78))/0x2)+-parseInt(_0x5e0f3d(0x82))/0x3+-parseInt(_0x5e0f3d(0x8b))/0x4+-parseInt(_0x5e0f3d(0x80))/0x5+-parseInt(_0x5e0f3d(0x7d))/0x6*(-parseInt(_0x5e0f3d(0x7b))/0x7)+-parseInt(_0x5e0f3d(0x7a))/0x8*(parseInt(_0x5e0f3d(0x81))/0x9)+-parseInt(_0x5e0f3d(0x88))/0xa*(-parseInt(_0x5e0f3d(0x7c))/0xb);if(_0x45270f===_0x5604aa)break;else _0x203a29['push'](_0x203a29['shift']());}catch(_0x3e613d){_0x203a29['push'](_0x203a29['shift']());}}}(a156_0x210a,0x63fa0));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a156_0x12f3c3(0x83)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x37d66b){const _0xcd433=a156_0x12f3c3;if(_0x37d66b[_0xcd433(0x7e)]('.')||_0x37d66b[_0xcd433(0x7e)]('e')||_0x37d66b[_0xcd433(0x7e)]('E'))return![];const _0x1fe72a=BigInt(_0x37d66b);return _0x1fe72a>MAX_SAFE_INTEGER||_0x1fe72a<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x11010f){const _0x2dbe35=a156_0x12f3c3;let _0x101f34='',_0x2b15ad=![],_0x286a82=![];for(let _0x946395=0x0;_0x946395<_0x11010f['length'];){const _0x3f93f9=_0x11010f[_0x946395];if(_0x2b15ad){_0x101f34+=_0x3f93f9,_0x946395+=0x1;if(_0x286a82)_0x286a82=![];else{if(_0x3f93f9==='\x5c')_0x286a82=!![];else _0x3f93f9==='\x22'&&(_0x2b15ad=![]);}continue;}if(_0x3f93f9==='\x22'){_0x2b15ad=!![],_0x101f34+=_0x3f93f9,_0x946395+=0x1;continue;}if(_0x3f93f9==='-'||_0x3f93f9>='0'&&_0x3f93f9<='9'){const _0x34a421=JSON_NUMBER_PATTERN[_0x2dbe35(0x8a)](_0x11010f[_0x2dbe35(0x86)](_0x946395))?.[0x0];if(_0x34a421){_0x101f34+=isUnsafeIntegerLiteral(_0x34a421)?'\x22'+_0x34a421+'\x22':_0x34a421,_0x946395+=_0x34a421[_0x2dbe35(0x85)];continue;}}_0x101f34+=_0x3f93f9,_0x946395+=0x1;}return _0x101f34;}export function parseLosslessJson(_0x2a836c){const _0x356469=a156_0x12f3c3;return JSON[_0x356469(0x87)](quoteUnsafeIntegerLiterals(_0x2a836c));}export function installLosslessJsonResponseParser(){const _0x95094f=a156_0x12f3c3;if(typeof Response===_0x95094f(0x84))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x95094f(0x77)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,'json'),Object['defineProperty'](responseJsonPrototype,_0x95094f(0x79),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x31b31e(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x5a614b=_0x95094f;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x5a614b(0x7f)](responseJsonPrototype,'json',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(_0x1c9bca,_0x381e3f){const _0x250d39=a157_0x5bce,_0x4487ef=_0x1c9bca();while(!![]){try{const _0x552888=parseInt(_0x250d39(0x15b))/0x1+parseInt(_0x250d39(0x162))/0x2*(-parseInt(_0x250d39(0x14c))/0x3)+parseInt(_0x250d39(0x147))/0x4*(-parseInt(_0x250d39(0x156))/0x5)+-parseInt(_0x250d39(0x15c))/0x6*(parseInt(_0x250d39(0x14f))/0x7)+-parseInt(_0x250d39(0x14b))/0x8*(-parseInt(_0x250d39(0x159))/0x9)+parseInt(_0x250d39(0x15e))/0xa+parseInt(_0x250d39(0x15d))/0xb*(-parseInt(_0x250d39(0x157))/0xc);if(_0x552888===_0x381e3f)break;else _0x4487ef['push'](_0x4487ef['shift']());}catch(_0x46be3f){_0x4487ef['push'](_0x4487ef['shift']());}}}(a157_0x520c,0x3c660));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x55e4af){const _0xe50a29=a157_0x5bce;if(!_0x55e4af)return undefined;try{return parseLosslessJson(_0x55e4af);}catch{throw CliErrors[_0xe50a29(0x14d)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x55e4af);}}export function parseJsonParamsValue(_0x1cc0f1){const _0x5ba3ff=a157_0x5bce;if(!_0x1cc0f1)return undefined;try{return parseLosslessJson(_0x1cc0f1);}catch{throw CliErrors[_0x5ba3ff(0x14d)](_0x5ba3ff(0x150)+_0x1cc0f1);}}export function parseBatchCreateItemsFromParams(_0x2f48d5){const _0x1a6ac0=a157_0x5bce;if(Array['isArray'](_0x2f48d5))return _0x2f48d5;if(_0x2f48d5!==null&&_0x2f48d5!==undefined&&typeof _0x2f48d5===_0x1a6ac0(0x160)&&Array[_0x1a6ac0(0x15a)](_0x2f48d5['items']))return _0x2f48d5[_0x1a6ac0(0x161)];throw CliErrors['validation'](_0x1a6ac0(0x155),_0x1a6ac0(0x14e));}function a157_0x5bce(_0x2b8b70,_0xfd38a3){_0x2b8b70=_0x2b8b70-0x144;const _0x520c27=a157_0x520c();let _0x5bcee2=_0x520c27[_0x2b8b70];return _0x5bcee2;}function a157_0x520c(){const _0x2fcfe9=['1128663FenoxY','validation','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','7nafbMC','Invalid\x20JSON\x20for\x20--params:\x20','\x20records\x20per\x20call;\x20received\x20','id[','string','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','10fMxddd','259032TJVeDL','length','1960947CHgppK','isArray','268635nSiUtw','88554NwTVbE','99pUxqXM','4396530kkyRNJ','isSafeInteger','object','items','2tVlswm','test','join','data\x20update\x20can\x20update\x20at\x20most\x20','622816rHJxpE','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','map','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','16hJDYYp'];a157_0x520c=function(){return _0x2fcfe9;};return a157_0x520c();}function parseDataUpdateId(_0x2a1bb0,_0x340e17){const _0x2a2f34=a157_0x5bce;if(typeof _0x2a1bb0==='number'&&Number[_0x2a2f34(0x15f)](_0x2a1bb0)&&_0x2a1bb0>0x0)return _0x2a1bb0;if(typeof _0x2a1bb0===_0x2a2f34(0x153)){if(/^[1-9]\d*$/[_0x2a2f34(0x144)](_0x2a1bb0))return _0x2a1bb0;}throw CliErrors[_0x2a2f34(0x14d)]('data\x20update\x20--params.'+_0x340e17+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x4fe3d5){const _0x2d3646=a157_0x5bce;if(_0x4fe3d5===null||_0x4fe3d5===undefined||typeof _0x4fe3d5!==_0x2d3646(0x160)||Array[_0x2d3646(0x15a)](_0x4fe3d5))throw CliErrors[_0x2d3646(0x14d)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x2d3646(0x148));const _0x4b8abb=_0x4fe3d5['id'];if(_0x4b8abb===undefined||_0x4b8abb===null)throw CliErrors[_0x2d3646(0x14d)](_0x2d3646(0x14a),_0x2d3646(0x148));const _0x2e669b=Array[_0x2d3646(0x15a)](_0x4b8abb)?_0x4b8abb:[_0x4b8abb];if(_0x2e669b['length']===0x0)throw CliErrors[_0x2d3646(0x14d)](_0x2d3646(0x154));if(_0x2e669b['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x2d3646(0x14d)](_0x2d3646(0x146)+MAX_DATA_UPDATE_IDS+_0x2d3646(0x151)+_0x2e669b['length']+'.');return _0x2e669b[_0x2d3646(0x149)]((_0x41b7d3,_0x300ca9)=>parseDataUpdateId(_0x41b7d3,Array[_0x2d3646(0x15a)](_0x4b8abb)?_0x2d3646(0x152)+_0x300ca9+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x486c2b,_0x26a2f1){const _0x5cb89e=a157_0x5bce;if(Array[_0x5cb89e(0x15a)](_0x486c2b['id'])&&_0x26a2f1[_0x5cb89e(0x158)]>0x1)return{..._0x486c2b,'id':_0x26a2f1[_0x5cb89e(0x145)](',')};return _0x486c2b;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x51a0cd=a158_0x1424;(function(_0x24dba1,_0x273e8a){const _0x4305a6=a158_0x1424,_0x3f919e=_0x24dba1();while(!![]){try{const _0x2716ca=-parseInt(_0x4305a6(0x1ed))/0x1+-parseInt(_0x4305a6(0x1e8))/0x2+parseInt(_0x4305a6(0x1f2))/0x3*(-parseInt(_0x4305a6(0x1ec))/0x4)+-parseInt(_0x4305a6(0x1f1))/0x5*(parseInt(_0x4305a6(0x1f0))/0x6)+-parseInt(_0x4305a6(0x1f3))/0x7*(parseInt(_0x4305a6(0x1ef))/0x8)+parseInt(_0x4305a6(0x1eb))/0x9+parseInt(_0x4305a6(0x1ea))/0xa;if(_0x2716ca===_0x273e8a)break;else _0x3f919e['push'](_0x3f919e['shift']());}catch(_0x68e8fb){_0x3f919e['push'](_0x3f919e['shift']());}}}(a158_0x1eda,0x3b18f));function a158_0x1eda(){const _0x4f9b65=['181906ktoaHZ','win32','14816ZTFimb','744lqlFDh','8345erGZDK','879gADbHq','1204GIICtb','560520ggteVb','platform','8427020ysmUGq','4224240GOikNO','1124vuDMio'];a158_0x1eda=function(){return _0x4f9b65;};return a158_0x1eda();}function a158_0x1424(_0x3a471c,_0x1c2dcc){_0x3a471c=_0x3a471c-0x1e8;const _0x1eda09=a158_0x1eda();let _0x1424ce=_0x1eda09[_0x3a471c];return _0x1424ce;}export const isWindows=process[a158_0x51a0cd(0x1e9)]===a158_0x51a0cd(0x1ee);export function resolveNpmBin(_0x238f6a){return isWindows?_0x238f6a+'.cmd':_0x238f6a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x915850,_0x43d934){const _0x25b761=a159_0x46f6,_0x3cb3ab=_0x915850();while(!![]){try{const _0x40617d=parseInt(_0x25b761(0xe7))/0x1*(-parseInt(_0x25b761(0xd3))/0x2)+parseInt(_0x25b761(0xde))/0x3*(-parseInt(_0x25b761(0xd4))/0x4)+-parseInt(_0x25b761(0xdb))/0x5*(-parseInt(_0x25b761(0xdc))/0x6)+-parseInt(_0x25b761(0xeb))/0x7+-parseInt(_0x25b761(0xd5))/0x8*(parseInt(_0x25b761(0xe3))/0x9)+parseInt(_0x25b761(0xe8))/0xa*(parseInt(_0x25b761(0xd6))/0xb)+parseInt(_0x25b761(0xee))/0xc;if(_0x40617d===_0x43d934)break;else _0x3cb3ab['push'](_0x3cb3ab['shift']());}catch(_0xada21a){_0x3cb3ab['push'](_0x3cb3ab['shift']());}}}(a159_0x23e1,0x94090));function a159_0x46f6(_0x20a1ae,_0x2912ab){_0x20a1ae=_0x20a1ae-0xd3;const _0x23e1f8=a159_0x23e1();let _0x46f69a=_0x23e1f8[_0x20a1ae];return _0x46f69a;}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 a159_0x23e1(){const _0x4f0491=['5155003MXVjpg','belowMinimum','stableVersion','41833608pjcYrc','276GHLvLt','76tTRLuh','14736CyPZlw','22uNGDiJ','.cache','number','filter','https://www.npmjs.com/package/','1195630gAcPGp','18VhVbZZ','stringify','166233NMjzbH','true','upgradeMessage','parse',',\x20run:\x20','4311jUOawo','utf8','join','trim','8617jEOTVg','1317710jgOyad','\x20is\x20recommended,\x20current\x20','lovrabet-cli'];a159_0x23e1=function(){return _0x4f0491;};return a159_0x23e1();}function isUpdateNoticeDisabled(){const _0x833967=a159_0x46f6,_0x1064fa=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x833967(0xe6)]()['toLowerCase']();return _0x1064fa==='1'||_0x1064fa===_0x833967(0xdf)||_0x1064fa==='yes';}function cacheRoot(){const _0x4c5670=a159_0x46f6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4c5670(0xd7));}export function getUpdateNoticeCachePath(){const _0x532a03=a159_0x46f6;return join(cacheRoot(),_0x532a03(0xea),'update-check.json');}async function readUpdateNoticeCache(){const _0x55c11f=a159_0x46f6;try{const _0x35622d=await readFile(getUpdateNoticeCachePath(),'utf8'),_0xef13e2=JSON[_0x55c11f(0xe1)](_0x35622d);if(!_0xef13e2||typeof _0xef13e2!=='object')return{};return _0xef13e2;}catch{return{};}}async function writeUpdateNoticeCache(_0x2e9334){const _0x13205b=a159_0x46f6;try{const _0x5a5cf6=getUpdateNoticeCachePath();await mkdir(dirname(_0x5a5cf6),{'recursive':!![]}),await writeFile(_0x5a5cf6,JSON[_0x13205b(0xdd)](_0x2e9334,null,0x2)+'\x0a',_0x13205b(0xe4));}catch{}}function isRecentlyNotified(_0x32f6bc,_0x2c8669,_0x3a85a7){const _0xe20cda=a159_0x46f6;return _0x32f6bc['lastNotifiedVersion']===_0x2c8669&&typeof _0x32f6bc['lastNotifiedAt']===_0xe20cda(0xd8)&&_0x3a85a7-_0x32f6bc['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5e2898){const _0x18f482=a159_0x46f6;return _0x18f482(0xda)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x5e2898;}export async function resolveLatestUpdateNotice(_0x1b0efd){const _0x48ef3f=a159_0x46f6;if(isUpdateNoticeDisabled())return null;try{const _0x2817d4=Date['now'](),_0x217f70=_0x1b0efd??await checkCliVersion(),_0x114645=_0x217f70['currentVersion'],_0x1e321d=_0x217f70[_0x48ef3f(0xed)],_0x4d529a=await readUpdateNoticeCache();if(!_0x1e321d||!_0x217f70['needsUpgrade']||_0x217f70[_0x48ef3f(0xec)])return null;if(isRecentlyNotified(_0x4d529a,_0x1e321d,_0x2817d4))return null;const _0x152bca=getCliUpgradeCommand(_0x217f70);return await writeUpdateNoticeCache({..._0x4d529a,'checkedAt':_0x2817d4,'latest':_0x1e321d,'failed':![],'lastNotifiedVersion':_0x1e321d,'lastNotifiedAt':_0x2817d4}),{'command':_0x152bca,'current':_0x114645,'latest':_0x1e321d,'url':buildNpmVersionUrl(_0x1e321d),'message':[_0x217f70[_0x48ef3f(0xe0)],CLI_BIN_NAME+'\x20'+_0x1e321d+_0x48ef3f(0xe9)+_0x114645+_0x48ef3f(0xe2)+_0x152bca][_0x48ef3f(0xd9)](Boolean)[_0x48ef3f(0xe5)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x120b1e,_0x46f70c){const _0x4e701d=a160_0x23e8,_0x41cd48=_0x120b1e();while(!![]){try{const _0x381516=parseInt(_0x4e701d(0x168))/0x1+parseInt(_0x4e701d(0x160))/0x2*(parseInt(_0x4e701d(0x163))/0x3)+-parseInt(_0x4e701d(0x15c))/0x4*(parseInt(_0x4e701d(0x15f))/0x5)+parseInt(_0x4e701d(0x15e))/0x6*(parseInt(_0x4e701d(0x165))/0x7)+parseInt(_0x4e701d(0x162))/0x8+parseInt(_0x4e701d(0x164))/0x9*(parseInt(_0x4e701d(0x161))/0xa)+-parseInt(_0x4e701d(0x167))/0xb*(parseInt(_0x4e701d(0x15d))/0xc);if(_0x381516===_0x46f70c)break;else _0x41cd48['push'](_0x41cd48['shift']());}catch(_0x167921){_0x41cd48['push'](_0x41cd48['shift']());}}}(a160_0x110d,0x6ecee));function a160_0x110d(){const _0x5de4c3=['647501iGRTCm','4STnhuu','372vYifER','1574094PANRfO','4513945hrWStC','192686EAZZOv','4010JvZVDe','3954024Pdhwvb','15fbbZGW','17649tYxXbJ','14MscOtk','unknown','559889KYXUPq'];a160_0x110d=function(){return _0x5de4c3;};return a160_0x110d();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a160_0x23e8(_0xa838b1,_0x5ad70b){_0xa838b1=_0xa838b1-0x15c;const _0x110d24=a160_0x110d();let _0x23e805=_0x110d24[_0xa838b1];return _0x23e805;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4de677=a160_0x23e8,_0x650428=String(GIT_COMMIT);return _0x650428&&_0x650428!==_0x4de677(0x166)?_0x650428:'';}export function getCliVersionDisplay(){const _0xf6d082=getCliGitCommit(),_0x59f0b3=BUILD_TIME['slice'](0x0,0xa);if(!_0xf6d082||!_0x59f0b3)return VERSION;return VERSION+'\x20('+_0xf6d082+',\x20'+_0x59f0b3+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a161_0x26a9(_0x2c6692,_0x2b8d23){_0x2c6692=_0x2c6692-0x149;var _0x3bac0e=a161_0x3bac();var _0x26a9d8=_0x3bac0e[_0x2c6692];return _0x26a9d8;}(function(_0x3dad13,_0x1aa702){var _0x3e2c97=a161_0x26a9,_0x5d1596=_0x3dad13();while(!![]){try{var _0x53395a=-parseInt(_0x3e2c97(0x155))/0x1*(-parseInt(_0x3e2c97(0x14d))/0x2)+-parseInt(_0x3e2c97(0x156))/0x3*(parseInt(_0x3e2c97(0x14e))/0x4)+parseInt(_0x3e2c97(0x151))/0x5*(-parseInt(_0x3e2c97(0x14b))/0x6)+-parseInt(_0x3e2c97(0x154))/0x7*(-parseInt(_0x3e2c97(0x153))/0x8)+-parseInt(_0x3e2c97(0x149))/0x9*(-parseInt(_0x3e2c97(0x14a))/0xa)+parseInt(_0x3e2c97(0x14f))/0xb+-parseInt(_0x3e2c97(0x150))/0xc;if(_0x53395a===_0x1aa702)break;else _0x5d1596['push'](_0x5d1596['shift']());}catch(_0x357fc5){_0x5d1596['push'](_0x5d1596['shift']());}}}(a161_0x3bac,0x91f42));export function writeCliSideChannelLine(_0x1b9394){var _0x8daec=a161_0x26a9;process[_0x8daec(0x14c)][_0x8daec(0x152)](_0x1b9394+'\x0a');}function a161_0x3bac(){var _0x2b4eb8=['2tauTLO','13924YgpbQZ','4420196zBEEmG','9783276LhBkKB','1620995SNitkO','write','184mrMfmR','217077ZFKolV','637283Alvvai','366EdoKYe','6604263vzjFdA','10uGdcHs','12ukbUqP','stderr'];a161_0x3bac=function(){return _0x2b4eb8;};return a161_0x3bac();}
|
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.0
|
|
4
|
+
version: 2.3.0
|
|
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:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.0
|
|
6
|
-
"skillVersion": "2.3.0
|
|
5
|
+
"packageVersion": "2.3.0",
|
|
6
|
+
"skillVersion": "2.3.0",
|
|
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": "57b322807ef4391c7c78fb618e4fd4946bf126c7abe30dca85cf67402d0241b6"
|
|
41
41
|
}
|