@lovrabet/lovrabet-cli 2.3.0-beta.2 → 2.3.0-beta.3
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
|
+
const a150_0x51608a=a150_0x4b00;(function(_0x11fa84,_0x4d687f){const _0x26fd88=a150_0x4b00,_0x9bf57b=_0x11fa84();while(!![]){try{const _0x5d3b08=parseInt(_0x26fd88(0x14d))/0x1+parseInt(_0x26fd88(0x156))/0x2*(-parseInt(_0x26fd88(0x153))/0x3)+-parseInt(_0x26fd88(0x146))/0x4*(parseInt(_0x26fd88(0x14e))/0x5)+-parseInt(_0x26fd88(0x141))/0x6+parseInt(_0x26fd88(0x159))/0x7+parseInt(_0x26fd88(0x13f))/0x8+parseInt(_0x26fd88(0x14a))/0x9*(-parseInt(_0x26fd88(0x158))/0xa);if(_0x5d3b08===_0x4d687f)break;else _0x9bf57b['push'](_0x9bf57b['shift']());}catch(_0x16ccba){_0x9bf57b['push'](_0x9bf57b['shift']());}}}(a150_0x3e60,0xb9b28));function a150_0x3e60(){const _0x407d6f=['734004KznSbi','not-recorded','message','1459544IhrBft','10fgAFkS','find','\x20records\x20\x22','version','lockFile','6BovlWK','number','join','692078huRBDl','kind','140VxFOLT','8412978YqfbnT','.skill-lock.json','utf8','\x20uses\x20unsupported\x20version\x20','\x20is\x20unreadable:\x20','absent','3695144IvfQEg','map','2193978qAZDwt','present','unusable','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','skills','326300CtLTbB','.agents','globalSkillsDirs','recorded'];a150_0x3e60=function(){return _0x407d6f;};return a150_0x3e60();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a150_0x51608a(0x147),a150_0x51608a(0x15a));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a150_0x51608a(0x145)),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a150_0x4b00(_0x16203f,_0x3832a9){_0x16203f=_0x16203f-0x13b;const _0x3e60ee=a150_0x3e60();let _0x4b0021=_0x3e60ee[_0x16203f];return _0x4b0021;}function readLockLookup(_0x1ec145,_0x332f65){const _0x3459cd=a150_0x51608a;if(!existsSync(_0x1ec145))return{'kind':_0x3459cd(0x14b)};let _0x2247b7;try{_0x2247b7=JSON['parse'](readFileSync(_0x1ec145,_0x3459cd(0x13b)));}catch(_0x48971f){return{'kind':_0x3459cd(0x143),'reason':_0x1ec145+_0x3459cd(0x13d)+_0x48971f[_0x3459cd(0x14c)]};}const _0x4ec166=_0x2247b7;if(typeof _0x4ec166?.[_0x3459cd(0x151)]!==_0x3459cd(0x154)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x4ec166['version']))return{'kind':_0x3459cd(0x143),'reason':_0x1ec145+_0x3459cd(0x13c)+String(_0x4ec166?.[_0x3459cd(0x151)])};if(!_0x4ec166['skills']||typeof _0x4ec166[_0x3459cd(0x145)]!=='object')return{'kind':_0x3459cd(0x143),'reason':_0x1ec145+'\x20has\x20no\x20skills\x20map'};return _0x4ec166[_0x3459cd(0x145)][_0x332f65]?{'kind':_0x3459cd(0x149)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x40bc99,_0x115d3b){const _0x4c96f0=a150_0x51608a,_0x18f658=_0x115d3b?.['home']??homedir(),_0x2724f4=_0x115d3b?.[_0x4c96f0(0x148)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4c96f0(0x140)](_0x566cb0=>join(_0x18f658,_0x566cb0)),_0x547ce1=_0x115d3b?.[_0x4c96f0(0x152)]??join(_0x18f658,SKILL_LOCK_RELATIVE_PATH),_0x2b178e=_0x2724f4['map'](_0xb4c85c=>join(_0xb4c85c,_0x40bc99,'SKILL.md')),_0x1b7876=_0x2b178e[_0x4c96f0(0x14f)](_0x398365=>existsSync(_0x398365));if(_0x1b7876)return{'state':_0x4c96f0(0x142),'path':_0x1b7876};const _0x5368f9=readLockLookup(_0x547ce1,_0x40bc99);if(_0x5368f9['kind']===_0x4c96f0(0x143))return{'state':'unverifiable','reason':_0x5368f9['reason']};if(_0x5368f9[_0x4c96f0(0x157)]==='recorded')return{'state':'unverifiable','reason':_0x547ce1+_0x4c96f0(0x150)+_0x40bc99+_0x4c96f0(0x144)+('('+_0x2b178e[_0x4c96f0(0x155)](',\x20')+')')};return{'state':_0x4c96f0(0x13e),'checked':_0x2b178e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a151_0xefbce2=a151_0x3166;(function(_0x561911,_0x57806a){const _0x521bc1=a151_0x3166,_0x532f8f=_0x561911();while(!![]){try{const _0x16d078=-parseInt(_0x521bc1(0x19e))/0x1+-parseInt(_0x521bc1(0x1a1))/0x2*(-parseInt(_0x521bc1(0x1a9))/0x3)+parseInt(_0x521bc1(0x1a2))/0x4*(-parseInt(_0x521bc1(0x1a0))/0x5)+-parseInt(_0x521bc1(0x1af))/0x6*(-parseInt(_0x521bc1(0x1b4))/0x7)+-parseInt(_0x521bc1(0x1ab))/0x8*(parseInt(_0x521bc1(0x1b6))/0x9)+-parseInt(_0x521bc1(0x1a8))/0xa*(-parseInt(_0x521bc1(0x1b3))/0xb)+-parseInt(_0x521bc1(0x1a6))/0xc*(-parseInt(_0x521bc1(0x1ae))/0xd);if(_0x16d078===_0x57806a)break;else _0x532f8f['push'](_0x532f8f['shift']());}catch(_0x1800ef){_0x532f8f['push'](_0x532f8f['shift']());}}}(a151_0x5b1f,0x80bf4));const REDACTED_ACCESS_KEY=a151_0xefbce2(0x1ad);function a151_0x3166(_0x4b5ec3,_0x3dd96a){_0x4b5ec3=_0x4b5ec3-0x19e;const _0x5b1f02=a151_0x5b1f();let _0x31665e=_0x5b1f02[_0x4b5ec3];return _0x31665e;}export function maskCliAccessKey(_0x17f824){const _0x5f0740=a151_0xefbce2;if(typeof _0x17f824!==_0x5f0740(0x1a4)||_0x17f824[_0x5f0740(0x1ac)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x17f824['slice'](0x0,0x8)+'*'['repeat'](_0x17f824[_0x5f0740(0x1ac)]-0x8);}export function redactCliConfigCredentials(_0x355b77){const _0x53d27a=a151_0xefbce2,_0x2df3dc={..._0x355b77};return Object[_0x53d27a(0x1a5)]['hasOwnProperty'][_0x53d27a(0x1b2)](_0x2df3dc,_0x53d27a(0x1b5))&&(_0x2df3dc['accessKey']=maskCliAccessKey(_0x2df3dc[_0x53d27a(0x1b5)])),_0x2df3dc[_0x53d27a(0x1b0)]&&typeof _0x2df3dc[_0x53d27a(0x1b0)]==='object'&&!Array[_0x53d27a(0x19f)](_0x2df3dc[_0x53d27a(0x1b0)])&&(_0x2df3dc[_0x53d27a(0x1b0)]=redactLegacyAppCredentials(_0x2df3dc['apps'])),_0x2df3dc;}export function redactCliConfigValue(_0x6c76ca,_0x2160f4){const _0xa70e6b=a151_0xefbce2;if(_0x6c76ca===_0xa70e6b(0x1b5)||/^apps\.[^.]+\.accessKey$/['test'](_0x6c76ca))return maskCliAccessKey(_0x2160f4);if(_0x6c76ca===_0xa70e6b(0x1b0)&&_0x2160f4&&typeof _0x2160f4===_0xa70e6b(0x1aa)&&!Array[_0xa70e6b(0x19f)](_0x2160f4))return redactLegacyAppCredentials(_0x2160f4);if(/^apps\.[^.]+$/[_0xa70e6b(0x1a7)](_0x6c76ca)&&_0x2160f4&&typeof _0x2160f4===_0xa70e6b(0x1aa)&&!Array[_0xa70e6b(0x19f)](_0x2160f4)){const _0x518d78=_0x2160f4;return Object[_0xa70e6b(0x1a5)]['hasOwnProperty'][_0xa70e6b(0x1b2)](_0x518d78,_0xa70e6b(0x1b5))?{..._0x518d78,'accessKey':maskCliAccessKey(_0x518d78[_0xa70e6b(0x1b5)])}:_0x2160f4;}return _0x2160f4;}function a151_0x5b1f(){const _0xf1923e=['accessKey','261iBqJbF','238456IAOCON','isArray','44125AKOJji','968858GHMvFR','404sZdUhN','fromEntries','string','prototype','1644wXnlwm','test','51410xEepnJ','3adUbKm','object','584ogBNaZ','length','<redacted>','6877DjOwyH','300ElJYvC','apps','entries','call','1474Wbklas','57883DOEYNa'];a151_0x5b1f=function(){return _0xf1923e;};return a151_0x5b1f();}function redactLegacyAppCredentials(_0x3cd6f1){const _0x2a1f87=a151_0xefbce2;return Object[_0x2a1f87(0x1a3)](Object[_0x2a1f87(0x1b1)](_0x3cd6f1)['map'](([_0x4ab658,_0x5168d7])=>{const _0x1a0247=_0x2a1f87;if(!_0x5168d7||typeof _0x5168d7!==_0x1a0247(0x1aa)||Array[_0x1a0247(0x19f)](_0x5168d7))return[_0x4ab658,_0x5168d7];const _0x170123={..._0x5168d7};return Object[_0x1a0247(0x1a5)]['hasOwnProperty'][_0x1a0247(0x1b2)](_0x170123,'accessKey')&&(_0x170123['accessKey']=maskCliAccessKey(_0x170123[_0x1a0247(0x1b5)])),[_0x4ab658,_0x170123];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x22c537,_0x7aff7a){const _0x16a5bb=a152_0x371e,_0x53d28c=_0x22c537();while(!![]){try{const _0x6763a7=parseInt(_0x16a5bb(0x81))/0x1+-parseInt(_0x16a5bb(0x7d))/0x2*(-parseInt(_0x16a5bb(0x7a))/0x3)+-parseInt(_0x16a5bb(0x7c))/0x4*(-parseInt(_0x16a5bb(0x78))/0x5)+-parseInt(_0x16a5bb(0x83))/0x6*(-parseInt(_0x16a5bb(0x80))/0x7)+parseInt(_0x16a5bb(0x82))/0x8*(parseInt(_0x16a5bb(0x7b))/0x9)+parseInt(_0x16a5bb(0x77))/0xa*(parseInt(_0x16a5bb(0x79))/0xb)+-parseInt(_0x16a5bb(0x7e))/0xc*(parseInt(_0x16a5bb(0x7f))/0xd);if(_0x6763a7===_0x7aff7a)break;else _0x53d28c['push'](_0x53d28c['shift']());}catch(_0x17c7d1){_0x53d28c['push'](_0x53d28c['shift']());}}}(a152_0x6502,0x1c658));function a152_0x6502(){const _0x553625=['1816260UrTFve','4705JMOWVo','11VqGSPh','39432NKExen','9nDXBcd','784WksYQh','16UzEdzp','48GDgXSB','1789047aHjxMx','14LgCKNo','73341pPeafE','363032fkUadC','230562fWvXsD'];a152_0x6502=function(){return _0x553625;};return a152_0x6502();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a152_0x371e(_0x493f7e,_0x238594){_0x493f7e=_0x493f7e-0x77;const _0x650226=a152_0x6502();let _0x371ee2=_0x650226[_0x493f7e];return _0x371ee2;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a153_0x11c4(){const _0x17e972=['6263747BPuMOV','filter','npm\x20install\x20-g\x20','upgradeMessage','Current\x20version:\x20','992984JuCdjY','minimumVersion','validation','2076762NpgPuE','4117100HZhhLi','32NkLdoF','belowMinimum','Minimum\x20supported:\x20','Upgrade\x20command:\x20','6234120fgVAIN','821700ZQtiaK','valid','stableVersion','minimumVersionMessage','join','latest','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','Recommended\x20stable:\x20','1589030jlkmlJ'];a153_0x11c4=function(){return _0x17e972;};return a153_0x11c4();}(function(_0x496a9a,_0x2788d9){const _0x3b9f8f=a153_0x3b91,_0x58b302=_0x496a9a();while(!![]){try{const _0x191945=parseInt(_0x3b9f8f(0x194))/0x1+-parseInt(_0x3b9f8f(0x18e))/0x2+-parseInt(_0x3b9f8f(0x197))/0x3+-parseInt(_0x3b9f8f(0x185))/0x4+-parseInt(_0x3b9f8f(0x198))/0x5+parseInt(_0x3b9f8f(0x186))/0x6+-parseInt(_0x3b9f8f(0x18f))/0x7*(-parseInt(_0x3b9f8f(0x181))/0x8);if(_0x191945===_0x2788d9)break;else _0x58b302['push'](_0x58b302['shift']());}catch(_0x3da5b3){_0x58b302['push'](_0x58b302['shift']());}}}(a153_0x11c4,0xcd333));import a153_0x37fb24 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';export function evaluateCliVersionPolicy(_0x4910e3,_0x466b2d){const _0x281da6=a153_0x3b91,_0x25d1f1=a153_0x37fb24[_0x281da6(0x187)](_0x4910e3)===_0x4910e3,_0x310706=_0x466b2d?.[_0x281da6(0x188)]??null,_0x13504d=_0x466b2d?.[_0x281da6(0x195)]??null,_0x424222=Boolean(_0x25d1f1&&_0x310706&&a153_0x37fb24['lt'](_0x4910e3,_0x310706)),_0x5ccb06=Boolean(_0x25d1f1&&_0x13504d&&a153_0x37fb24['lt'](_0x4910e3,_0x13504d));return{'currentVersion':_0x4910e3,'stableVersion':_0x310706,'minimumVersion':_0x13504d,'needsUpgrade':_0x424222||_0x5ccb06,'belowMinimum':_0x5ccb06,'upgradeMessage':_0x466b2d?.[_0x281da6(0x192)],'minimumVersionMessage':_0x466b2d?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}function a153_0x3b91(_0x3db445,_0x3460c7){_0x3db445=_0x3db445-0x181;const _0x11c46e=a153_0x11c4();let _0x3b913d=_0x11c46e[_0x3db445];return _0x3b913d;}export function getCliUpgradeCommand(_0x558608){const _0x5c6329=a153_0x3b91;return _0x5c6329(0x191)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x558608[_0x5c6329(0x188)]??_0x5c6329(0x18b));}export function assertCliVersionSupported(_0x2a813d){const _0x3aa036=a153_0x3b91;if(!_0x2a813d[_0x3aa036(0x182)])return;const _0x4b2a80=[_0x2a813d[_0x3aa036(0x189)],_0x3aa036(0x193)+_0x2a813d['currentVersion'],_0x3aa036(0x183)+_0x2a813d[_0x3aa036(0x195)],_0x3aa036(0x18d)+(_0x2a813d[_0x3aa036(0x188)]??'unavailable'),_0x3aa036(0x184)+getCliUpgradeCommand(_0x2a813d)][_0x3aa036(0x190)](Boolean)[_0x3aa036(0x18a)]('\x0a');throw CliErrors[_0x3aa036(0x196)](_0x3aa036(0x18c),_0x4b2a80);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ac711,_0x1a5c19){const _0x5242f8=a154_0x2eb9,_0x5eea00=_0x2ac711();while(!![]){try{const _0x135886=parseInt(_0x5242f8(0x10c))/0x1+parseInt(_0x5242f8(0x110))/0x2*(-parseInt(_0x5242f8(0x10e))/0x3)+parseInt(_0x5242f8(0x119))/0x4+-parseInt(_0x5242f8(0x10a))/0x5*(-parseInt(_0x5242f8(0x11d))/0x6)+parseInt(_0x5242f8(0x11a))/0x7*(-parseInt(_0x5242f8(0x109))/0x8)+-parseInt(_0x5242f8(0x116))/0x9+-parseInt(_0x5242f8(0x113))/0xa*(parseInt(_0x5242f8(0x10b))/0xb);if(_0x135886===_0x1a5c19)break;else _0x5eea00['push'](_0x5eea00['shift']());}catch(_0x3e2f80){_0x5eea00['push'](_0x5eea00['shift']());}}}(a154_0x20b8,0x584bf));import a154_0x7c0b99 from'semver';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(_0x4c164f){const _0x28f9eb=a154_0x2eb9;return typeof _0x4c164f===_0x28f9eb(0x115)&&_0x4c164f[_0x28f9eb(0x112)]()?_0x4c164f[_0x28f9eb(0x112)]():null;}function a154_0x20b8(){const _0x117d39=['trim','330LtSxTe','json','string','43605cHSmfh','latestVersion','valid','2724512YnPbyQ','4091066oLpIUd','timeout','cli','6XfIsFx','stableVersion','application/json','object','minVersion','8NaJoun','1909675WwtUHo','180202VMbsFh','685925wTLDQv','minimumVersion','193077obHQmh','now','8ktNLxu','minimumVersionMessage'];a154_0x20b8=function(){return _0x117d39;};return a154_0x20b8();}function pickStrictSemver(_0x1be2f1){const _0x317252=a154_0x2eb9,_0x130c4b=pickString(_0x1be2f1);return _0x130c4b&&a154_0x7c0b99[_0x317252(0x118)](_0x130c4b)===_0x130c4b?_0x130c4b:null;}export function normalizeCliVersionPolicy(_0x3591e3){const _0x582541=a154_0x2eb9;if(!_0x3591e3||typeof _0x3591e3!==_0x582541(0x120))return null;const _0x27c203=_0x3591e3,_0x32ebb7=_0x27c203[_0x582541(0x11c)]&&typeof _0x27c203['cli']==='object'?_0x27c203[_0x582541(0x11c)]:_0x27c203,_0x54052f=pickStrictSemver(_0x32ebb7[_0x582541(0x11e)]??_0x32ebb7[_0x582541(0x117)]??_0x32ebb7['recommendedVersion']),_0x49cc20=pickStrictSemver(_0x32ebb7[_0x582541(0x10d)]??_0x32ebb7[_0x582541(0x121)]);if(!_0x54052f&&!_0x49cc20)return null;if(_0x54052f&&_0x49cc20&&a154_0x7c0b99['gt'](_0x49cc20,_0x54052f))return null;return{'stableVersion':_0x54052f,'minimumVersion':_0x49cc20,'upgradeMessage':pickString(_0x32ebb7['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0x32ebb7[_0x582541(0x111)])??undefined};}function a154_0x2eb9(_0x1feef9,_0x19b756){_0x1feef9=_0x1feef9-0x109;const _0x20b87c=a154_0x20b8();let _0x2eb9e8=_0x20b87c[_0x1feef9];return _0x2eb9e8;}export async function fetchCliVersionPolicy(){const _0x51d482=a154_0x2eb9;try{const _0x46452b=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x51d482(0x11f)},'signal':AbortSignal[_0x51d482(0x11b)](FETCH_TIMEOUT_MS)});if(!_0x46452b['ok'])return null;return normalizeCliVersionPolicy(await _0x46452b[_0x51d482(0x114)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x2eb638=a154_0x2eb9,_0x220db=Date[_0x2eb638(0x10f)]();if(hasCachedPolicy){const _0x3dac13=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x220db-cachedAt<_0x3dac13)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x7d8b38=>{const _0x5a6215=_0x2eb638;return cachedPolicy=_0x7d8b38,cachedAt=Date[_0x5a6215(0x10f)](),hasCachedPolicy=!![],_0x7d8b38;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a155_0x437f18=a155_0x9f75;(function(_0x1de002,_0x58a31a){const _0x501c64=a155_0x9f75,_0x53ba99=_0x1de002();while(!![]){try{const _0x550b60=parseInt(_0x501c64(0x9d))/0x1*(parseInt(_0x501c64(0xcc))/0x2)+-parseInt(_0x501c64(0x9f))/0x3*(-parseInt(_0x501c64(0xc2))/0x4)+-parseInt(_0x501c64(0xc6))/0x5+parseInt(_0x501c64(0xa1))/0x6*(parseInt(_0x501c64(0xa7))/0x7)+parseInt(_0x501c64(0xa9))/0x8+parseInt(_0x501c64(0xaa))/0x9*(parseInt(_0x501c64(0xc8))/0xa)+parseInt(_0x501c64(0xa0))/0xb*(-parseInt(_0x501c64(0xba))/0xc);if(_0x550b60===_0x58a31a)break;else _0x53ba99['push'](_0x53ba99['shift']());}catch(_0x43ac30){_0x53ba99['push'](_0x53ba99['shift']());}}}(a155_0x5777,0x8e10e));import a155_0x18be3b from'winston';import a155_0x34d108 from'node:fs';function a155_0x5777(){const _0x3238b2=['25092ofaChI','split','success','now','printf','existsSync','info','readFileSync','16028QRToys','createLogger','timestamp','error','2589665wBYlnA','getWinstonInstance','10zkJyXs','Failed:\x20','toISOString','join','2408IWScjh','currentRawCommand','logFileName','writeFileSync','warn','parse','message','command','setRawCommand','combine','159qFNAkZ','errors','498JapgnG','11913qenEjo','4525596fuoXMI','dirname','stringify','rawCommand','map','initWinstonLogger','7CawqTK','mkdirSync','9123048syuIsd','5518287YMWjRe','logTask','green','details','transports','Failed\x20to\x20read\x20logs:','utf8','winstonLogger','logFilePath','readLogs','yellow','format','setLogPath','blue','filter','clear'];a155_0x5777=function(){return _0x3238b2;};return a155_0x5777();}import a155_0x5424c8 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a155_0x437f18(0xb1)];[a155_0x437f18(0xb2)]='';[a155_0x437f18(0xcd)]='';constructor(){}[a155_0x437f18(0x9b)](_0x419197){const _0x41dd54=a155_0x437f18;this[_0x41dd54(0xcd)]=_0x419197;}[a155_0x437f18(0xb6)](_0x3f03e2){const _0x411f48=a155_0x437f18;this[_0x411f48(0xb2)]=a155_0x5424c8[_0x411f48(0xcb)](_0x3f03e2,PRODUCT_CONFIG[_0x411f48(0xce)]),this[_0x411f48(0xb1)]&&this[_0x411f48(0xb1)][_0x411f48(0xb9)](),this['initWinstonLogger']();}[a155_0x437f18(0xa6)](){const _0x27eab7=a155_0x437f18,_0x3483eb=a155_0x5424c8[_0x27eab7(0xa2)](this[_0x27eab7(0xb2)]);!a155_0x34d108[_0x27eab7(0xbf)](_0x3483eb)&&a155_0x34d108[_0x27eab7(0xa8)](_0x3483eb,{'recursive':!![]});const _0x3e60e5=a155_0x18be3b[_0x27eab7(0xb5)][_0x27eab7(0x9c)](a155_0x18be3b[_0x27eab7(0xb5)][_0x27eab7(0xc4)](),a155_0x18be3b[_0x27eab7(0xb5)][_0x27eab7(0x9e)]({'stack':!![]}),a155_0x18be3b[_0x27eab7(0xb5)][_0x27eab7(0xbe)](_0x39923b=>{const _0x187468=_0x27eab7,_0x3bc06a={'timestamp':_0x39923b[_0x187468(0xc4)]||new Date()[_0x187468(0xca)](),'level':_0x39923b['level']||'info','command':_0x39923b[_0x187468(0xd3)]||'unknown','rawCommand':_0x39923b[_0x187468(0xa4)]||this[_0x187468(0xcd)]||undefined,'message':_0x39923b[_0x187468(0xd2)]||'','duration':_0x39923b['duration']||undefined,'details':_0x39923b[_0x187468(0xad)]||undefined};return JSON[_0x187468(0xa3)](_0x3bc06a);}));this[_0x27eab7(0xb1)]=a155_0x18be3b[_0x27eab7(0xc3)]({'level':_0x27eab7(0xc0),'format':_0x3e60e5,'transports':[new a155_0x18be3b[(_0x27eab7(0xae))]['File']({'filename':this['logFilePath'],'level':_0x27eab7(0xc0)})],'silent':![]}),a155_0x18be3b['addColors']({'success':_0x27eab7(0xac),'error':'red','warn':_0x27eab7(0xb4),'info':_0x27eab7(0xb7)});}[a155_0x437f18(0xc0)](_0x141a14,_0x18f58b,_0x6707a){const _0x357d9f=a155_0x437f18;if(!this[_0x357d9f(0xb2)]||!this[_0x357d9f(0xb1)])return;this[_0x357d9f(0xb1)][_0x357d9f(0xc0)](_0x18f58b,{'command':_0x141a14,'details':_0x6707a});}[a155_0x437f18(0xbc)](_0x4b7319,_0xada870,_0x4e98f6,_0x38a88d){const _0x5cbf8b=a155_0x437f18;if(!this[_0x5cbf8b(0xb2)]||!this[_0x5cbf8b(0xb1)])return;this[_0x5cbf8b(0xb1)]['log'](_0x5cbf8b(0xc0),_0xada870,{'level':'success','command':_0x4b7319,'duration':_0x4e98f6,'details':_0x38a88d});}[a155_0x437f18(0xc5)](_0xa10d30,_0x519f34,_0x892717){const _0x4f594a=a155_0x437f18;if(!this[_0x4f594a(0xb2)]||!this[_0x4f594a(0xb1)])return;this['winstonLogger'][_0x4f594a(0xc5)](_0x519f34,{'command':_0xa10d30,'details':_0x892717});}[a155_0x437f18(0xd0)](_0x165b85,_0x3a0939,_0x228cad){const _0x3adfd4=a155_0x437f18;if(!this[_0x3adfd4(0xb2)]||!this[_0x3adfd4(0xb1)])return;this[_0x3adfd4(0xb1)][_0x3adfd4(0xd0)](_0x3a0939,{'command':_0x165b85,'details':_0x228cad});}async[a155_0x437f18(0xab)](_0x2ff491,_0x26ca32,_0x33e754){const _0x2cc9d5=a155_0x437f18,_0x41d1cd=Date['now']();this[_0x2cc9d5(0xc0)](_0x2ff491,'Starting:\x20'+_0x26ca32);try{const _0x564edc=await _0x33e754(),_0x15208e=Date[_0x2cc9d5(0xbd)]()-_0x41d1cd;return this[_0x2cc9d5(0xbc)](_0x2ff491,'Completed:\x20'+_0x26ca32,_0x15208e),_0x564edc;}catch(_0x58d695){const _0x3f4dfe=Date['now']()-_0x41d1cd;this[_0x2cc9d5(0xc5)](_0x2ff491,_0x2cc9d5(0xc9)+_0x26ca32,{'error':_0x58d695 instanceof Error?_0x58d695[_0x2cc9d5(0xd2)]:String(_0x58d695),'duration':_0x3f4dfe});throw _0x58d695;}}[a155_0x437f18(0xb3)](){const _0x2a82af=a155_0x437f18;try{if(!a155_0x34d108[_0x2a82af(0xbf)](this[_0x2a82af(0xb2)]))return[];const _0x3a2a0a=a155_0x34d108[_0x2a82af(0xc1)](this[_0x2a82af(0xb2)],_0x2a82af(0xb0));return _0x3a2a0a[_0x2a82af(0xbb)](/\r?\n/)[_0x2a82af(0xb8)](_0x55ceae=>_0x55ceae['trim']())[_0x2a82af(0xa5)](_0x494253=>JSON[_0x2a82af(0xd1)](_0x494253));}catch(_0x1da8f5){return console[_0x2a82af(0xd0)](_0x2a82af(0xaf),_0x1da8f5),[];}}['clearLogs'](){const _0x5ae7d5=a155_0x437f18;try{a155_0x34d108[_0x5ae7d5(0xbf)](this[_0x5ae7d5(0xb2)])&&a155_0x34d108[_0x5ae7d5(0xcf)](this['logFilePath'],'',_0x5ae7d5(0xb0));}catch(_0x47297f){console[_0x5ae7d5(0xd0)]('Failed\x20to\x20clear\x20logs:',_0x47297f);}}[a155_0x437f18(0xc7)](){const _0x4342ca=a155_0x437f18;return this[_0x4342ca(0xb1)];}}function a155_0x9f75(_0x10bee3,_0x46e1ff){_0x10bee3=_0x10bee3-0x9b;const _0x5777b2=a155_0x5777();let _0x9f754b=_0x5777b2[_0x10bee3];return _0x9f754b;}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a156_0x3f2cf9=a156_0x3c00;(function(_0x14386b,_0x17f229){const _0x2c930b=a156_0x3c00,_0x4d2f81=_0x14386b();while(!![]){try{const _0x2952c2=-parseInt(_0x2c930b(0xe2))/0x1+-parseInt(_0x2c930b(0xe4))/0x2*(-parseInt(_0x2c930b(0xde))/0x3)+parseInt(_0x2c930b(0xd9))/0x4+-parseInt(_0x2c930b(0xd7))/0x5+-parseInt(_0x2c930b(0xe0))/0x6+parseInt(_0x2c930b(0xd6))/0x7*(parseInt(_0x2c930b(0xdc))/0x8)+-parseInt(_0x2c930b(0xe6))/0x9*(-parseInt(_0x2c930b(0xe5))/0xa);if(_0x2952c2===_0x17f229)break;else _0x4d2f81['push'](_0x4d2f81['shift']());}catch(_0x25b91a){_0x4d2f81['push'](_0x4d2f81['shift']());}}}(a156_0x48c4,0x85d1b));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a156_0x3f2cf9(0xda)]),MIN_SAFE_INTEGER=BigInt(Number[a156_0x3f2cf9(0xdf)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a156_0x3c00(_0x7cf4e0,_0x427fcc){_0x7cf4e0=_0x7cf4e0-0xd5;const _0x48c4ae=a156_0x48c4();let _0x3c005a=_0x48c4ae[_0x7cf4e0];return _0x3c005a;}function a156_0x48c4(){const _0x1b9788=['getOwnPropertyDescriptor','711JIrBxh','MIN_SAFE_INTEGER','743820vEnUHQ','text','250492ZxlGWN','includes','4822TEICWo','2671690aUBQfC','9wRWlJO','json','length','15967WvznlD','3636180htBeRo','defineProperty','516904kQTPgV','MAX_SAFE_INTEGER','exec','2392vVlQMj'];a156_0x48c4=function(){return _0x1b9788;};return a156_0x48c4();}function isUnsafeIntegerLiteral(_0x26bf2e){const _0x969a22=a156_0x3f2cf9;if(_0x26bf2e['includes']('.')||_0x26bf2e[_0x969a22(0xe3)]('e')||_0x26bf2e[_0x969a22(0xe3)]('E'))return![];const _0x71dd4=BigInt(_0x26bf2e);return _0x71dd4>MAX_SAFE_INTEGER||_0x71dd4<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x1be7e9){const _0x5d1150=a156_0x3f2cf9;let _0x1596d1='',_0x1f2d98=![],_0x25c991=![];for(let _0x46dd09=0x0;_0x46dd09<_0x1be7e9[_0x5d1150(0xd5)];){const _0xf25284=_0x1be7e9[_0x46dd09];if(_0x1f2d98){_0x1596d1+=_0xf25284,_0x46dd09+=0x1;if(_0x25c991)_0x25c991=![];else{if(_0xf25284==='\x5c')_0x25c991=!![];else _0xf25284==='\x22'&&(_0x1f2d98=![]);}continue;}if(_0xf25284==='\x22'){_0x1f2d98=!![],_0x1596d1+=_0xf25284,_0x46dd09+=0x1;continue;}if(_0xf25284==='-'||_0xf25284>='0'&&_0xf25284<='9'){const _0x561699=JSON_NUMBER_PATTERN[_0x5d1150(0xdb)](_0x1be7e9['slice'](_0x46dd09))?.[0x0];if(_0x561699){_0x1596d1+=isUnsafeIntegerLiteral(_0x561699)?'\x22'+_0x561699+'\x22':_0x561699,_0x46dd09+=_0x561699[_0x5d1150(0xd5)];continue;}}_0x1596d1+=_0xf25284,_0x46dd09+=0x1;}return _0x1596d1;}export function parseLosslessJson(_0x5c2cb4){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x5c2cb4));}export function installLosslessJsonResponseParser(){const _0x41ce49=a156_0x3f2cf9;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x41ce49(0xdd)](responseJsonPrototype,_0x41ce49(0xe7)),Object[_0x41ce49(0xd8)](responseJsonPrototype,_0x41ce49(0xe7),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x470fd3(){const _0x374575=_0x41ce49;return parseLosslessJson(await this[_0x374575(0xe1)]());}}),restoreResponseJsonParser=()=>{const _0x14a846=_0x41ce49;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x14a846(0xd8)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x14a846(0xe7)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b29d8,_0x56526b){const _0x3a7972=a157_0x1d1c,_0x441ed7=_0x2b29d8();while(!![]){try{const _0x5200c3=parseInt(_0x3a7972(0x147))/0x1+parseInt(_0x3a7972(0x14b))/0x2+parseInt(_0x3a7972(0x13d))/0x3+-parseInt(_0x3a7972(0x145))/0x4+parseInt(_0x3a7972(0x152))/0x5+parseInt(_0x3a7972(0x146))/0x6*(-parseInt(_0x3a7972(0x149))/0x7)+-parseInt(_0x3a7972(0x157))/0x8;if(_0x5200c3===_0x56526b)break;else _0x441ed7['push'](_0x441ed7['shift']());}catch(_0x25567a){_0x441ed7['push'](_0x441ed7['shift']());}}}(a157_0x4179,0x3e336));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';function a157_0x4179(){const _0x30b6d3=['\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','data\x20update\x20--params.','string','\x20records\x20per\x20call;\x20received\x20','validation','length','1049545klfTGk','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','test','data\x20update\x20can\x20update\x20at\x20most\x20','map','152680NCbMHX','514833FpokVl','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','items','id[','join','object','isSafeInteger','number','642812nJfjcA','18heWhCp','241585pPYqIu','Invalid\x20JSON\x20for\x20--params:\x20','964817tgqkiH','isArray','449900eJJIET'];a157_0x4179=function(){return _0x30b6d3;};return a157_0x4179();}export const MAX_DATA_UPDATE_IDS=0x3e8;function a157_0x1d1c(_0x5dc70b,_0x5df967){_0x5dc70b=_0x5dc70b-0x13d;const _0x41792b=a157_0x4179();let _0x1d1c31=_0x41792b[_0x5dc70b];return _0x1d1c31;}export function parseJsonParams(_0x4d918f){const _0x1740a6=a157_0x1d1c;if(!_0x4d918f)return undefined;try{return parseLosslessJson(_0x4d918f);}catch{throw CliErrors[_0x1740a6(0x150)](_0x1740a6(0x148)+_0x4d918f);}}export function parseJsonParamsValue(_0x491c73){const _0x1b8b63=a157_0x1d1c;if(!_0x491c73)return undefined;try{return parseLosslessJson(_0x491c73);}catch{throw CliErrors[_0x1b8b63(0x150)](_0x1b8b63(0x148)+_0x491c73);}}export function parseBatchCreateItemsFromParams(_0x411967){const _0x3d3d46=a157_0x1d1c;if(Array['isArray'](_0x411967))return _0x411967;if(_0x411967!==null&&_0x411967!==undefined&&typeof _0x411967==='object'&&Array['isArray'](_0x411967['items']))return _0x411967[_0x3d3d46(0x13f)];throw CliErrors[_0x3d3d46(0x150)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x3567f9,_0x4f2044){const _0x530291=a157_0x1d1c;if(typeof _0x3567f9===_0x530291(0x144)&&Number[_0x530291(0x143)](_0x3567f9)&&_0x3567f9>0x0)return _0x3567f9;if(typeof _0x3567f9===_0x530291(0x14e)){if(/^[1-9]\d*$/[_0x530291(0x154)](_0x3567f9))return _0x3567f9;}throw CliErrors[_0x530291(0x150)](_0x530291(0x14d)+_0x4f2044+_0x530291(0x14c));}export function parseUpdateIdsFromParams(_0x4c16fe){const _0x4d6b7c=a157_0x1d1c;if(_0x4c16fe===null||_0x4c16fe===undefined||typeof _0x4c16fe!==_0x4d6b7c(0x142)||Array[_0x4d6b7c(0x14a)](_0x4c16fe))throw CliErrors[_0x4d6b7c(0x150)](_0x4d6b7c(0x13e),_0x4d6b7c(0x153));const _0x4d891e=_0x4c16fe['id'];if(_0x4d891e===undefined||_0x4d891e===null)throw CliErrors['validation']('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x4d6b7c(0x153));const _0xef35f3=Array['isArray'](_0x4d891e)?_0x4d891e:[_0x4d891e];if(_0xef35f3['length']===0x0)throw CliErrors[_0x4d6b7c(0x150)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0xef35f3[_0x4d6b7c(0x151)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x4d6b7c(0x150)](_0x4d6b7c(0x155)+MAX_DATA_UPDATE_IDS+_0x4d6b7c(0x14f)+_0xef35f3['length']+'.');return _0xef35f3[_0x4d6b7c(0x156)]((_0x37f79e,_0x4818ce)=>parseDataUpdateId(_0x37f79e,Array[_0x4d6b7c(0x14a)](_0x4d891e)?_0x4d6b7c(0x140)+_0x4818ce+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x3ce4db,_0x48aa6b){const _0x134ef4=a157_0x1d1c;if(Array[_0x134ef4(0x14a)](_0x3ce4db['id'])&&_0x48aa6b['length']>0x1)return{..._0x3ce4db,'id':_0x48aa6b[_0x134ef4(0x141)](',')};return _0x3ce4db;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a158_0x4ec7e1=a158_0x2b91;function a158_0x2276(){const _0x390be1=['win32','28260040ikQtxb','8fbdSSP','.cmd','156wgfXcK','203465wvJlJU','platform','10005156hyqPhT','2575286KhEhID','6pmlKdN','248262adGzRk','172876PdGwAo','1817080KVIXwZ'];a158_0x2276=function(){return _0x390be1;};return a158_0x2276();}(function(_0x335649,_0x51b2fb){const _0x2b0058=a158_0x2b91,_0x16bff5=_0x335649();while(!![]){try{const _0x2ac4ef=parseInt(_0x2b0058(0xeb))/0x1+-parseInt(_0x2b0058(0xea))/0x2*(parseInt(_0x2b0058(0xe9))/0x3)+parseInt(_0x2b0058(0xec))/0x4+parseInt(_0x2b0058(0xf2))/0x5*(-parseInt(_0x2b0058(0xf1))/0x6)+-parseInt(_0x2b0058(0xf5))/0x7*(parseInt(_0x2b0058(0xef))/0x8)+-parseInt(_0x2b0058(0xf4))/0x9+parseInt(_0x2b0058(0xee))/0xa;if(_0x2ac4ef===_0x51b2fb)break;else _0x16bff5['push'](_0x16bff5['shift']());}catch(_0x3248d3){_0x16bff5['push'](_0x16bff5['shift']());}}}(a158_0x2276,0xa2e98));function a158_0x2b91(_0x7847d0,_0x21cf1e){_0x7847d0=_0x7847d0-0xe9;const _0x227604=a158_0x2276();let _0x2b915a=_0x227604[_0x7847d0];return _0x2b915a;}export const isWindows=process[a158_0x4ec7e1(0xf3)]===a158_0x4ec7e1(0xed);export function resolveNpmBin(_0x465a22){const _0x55e976=a158_0x4ec7e1;return isWindows?_0x465a22+_0x55e976(0xf0):_0x465a22;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33fe42,_0x42a440){const _0x176339=a159_0x4019,_0x154722=_0x33fe42();while(!![]){try{const _0x3c8896=parseInt(_0x176339(0x14e))/0x1+-parseInt(_0x176339(0x158))/0x2+parseInt(_0x176339(0x157))/0x3+-parseInt(_0x176339(0x156))/0x4*(parseInt(_0x176339(0x14d))/0x5)+-parseInt(_0x176339(0x154))/0x6*(parseInt(_0x176339(0x151))/0x7)+parseInt(_0x176339(0x160))/0x8+parseInt(_0x176339(0x163))/0x9;if(_0x3c8896===_0x42a440)break;else _0x154722['push'](_0x154722['shift']());}catch(_0x492c4a){_0x154722['push'](_0x154722['shift']());}}}(a159_0x5a26,0x8b3c6));import{mkdir,readFile,writeFile}from'node:fs/promises';function a159_0x5a26(){const _0x3d2b11=['lovrabet-cli','https://www.npmjs.com/package/','stableVersion','parse','yes','true','join','1300296NstFZp','lastNotifiedVersion','upgradeMessage','9301203evDXCv','currentVersion','number','utf8','\x20is\x20recommended,\x20current\x20','trim','toLowerCase','needsUpgrade','757805EYsePW','1076163PtkjVB','stringify','now','1200479BfMMgW','belowMinimum','lastNotifiedAt','24IXmNuM','.cache','20IcIsRX','1081806wYdYtu','1237332KBSJeZ'];a159_0x5a26=function(){return _0x3d2b11;};return a159_0x5a26();}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 _0x4e2e5f=a159_0x4019,_0x4c73f3=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x4e2e5f(0x14a)]()[_0x4e2e5f(0x14b)]();return _0x4c73f3==='1'||_0x4c73f3===_0x4e2e5f(0x15e)||_0x4c73f3===_0x4e2e5f(0x15d);}function cacheRoot(){const _0x4f08aa=a159_0x4019;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4f08aa(0x155));}export function getUpdateNoticeCachePath(){const _0x90b553=a159_0x4019;return join(cacheRoot(),_0x90b553(0x159),'update-check.json');}async function readUpdateNoticeCache(){const _0x5a3bb0=a159_0x4019;try{const _0x187cfb=await readFile(getUpdateNoticeCachePath(),_0x5a3bb0(0x166)),_0x103a68=JSON[_0x5a3bb0(0x15c)](_0x187cfb);if(!_0x103a68||typeof _0x103a68!=='object')return{};return _0x103a68;}catch{return{};}}async function writeUpdateNoticeCache(_0x4eb9a2){const _0x3e69ed=a159_0x4019;try{const _0x27d61a=getUpdateNoticeCachePath();await mkdir(dirname(_0x27d61a),{'recursive':!![]}),await writeFile(_0x27d61a,JSON[_0x3e69ed(0x14f)](_0x4eb9a2,null,0x2)+'\x0a',_0x3e69ed(0x166));}catch{}}function isRecentlyNotified(_0x560c9b,_0x2f6bc6,_0x2b979d){const _0x5e7022=a159_0x4019;return _0x560c9b[_0x5e7022(0x161)]===_0x2f6bc6&&typeof _0x560c9b[_0x5e7022(0x153)]===_0x5e7022(0x165)&&_0x2b979d-_0x560c9b['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}function a159_0x4019(_0x13717c,_0x329d8d){_0x13717c=_0x13717c-0x149;const _0x5a26cb=a159_0x5a26();let _0x401962=_0x5a26cb[_0x13717c];return _0x401962;}export function buildNpmVersionUrl(_0x17481d){const _0x432f37=a159_0x4019;return _0x432f37(0x15a)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x17481d;}export async function resolveLatestUpdateNotice(_0x4564f1){const _0x3c113b=a159_0x4019;if(isUpdateNoticeDisabled())return null;try{const _0x54718c=Date[_0x3c113b(0x150)](),_0x295417=_0x4564f1??await checkCliVersion(),_0x427e53=_0x295417[_0x3c113b(0x164)],_0x13de29=_0x295417[_0x3c113b(0x15b)],_0x589366=await readUpdateNoticeCache();if(!_0x13de29||!_0x295417[_0x3c113b(0x14c)]||_0x295417[_0x3c113b(0x152)])return null;if(isRecentlyNotified(_0x589366,_0x13de29,_0x54718c))return null;const _0x1a7626=getCliUpgradeCommand(_0x295417);return await writeUpdateNoticeCache({..._0x589366,'checkedAt':_0x54718c,'latest':_0x13de29,'failed':![],'lastNotifiedVersion':_0x13de29,'lastNotifiedAt':_0x54718c}),{'command':_0x1a7626,'current':_0x427e53,'latest':_0x13de29,'url':buildNpmVersionUrl(_0x13de29),'message':[_0x295417[_0x3c113b(0x162)],CLI_BIN_NAME+'\x20'+_0x13de29+_0x3c113b(0x149)+_0x427e53+',\x20run:\x20'+_0x1a7626]['filter'](Boolean)[_0x3c113b(0x15f)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a160_0x325d(){const _0x43f1be=['110407QqebrB','4400enTNvC','240211NmTVSe','1266vCiIKQ','4299520XeCAey','8484042MsESIj','10hTTdvi','144ecOdey','542916ftEBMW','31280vsyeLl','652569rYxzRS'];a160_0x325d=function(){return _0x43f1be;};return a160_0x325d();}(function(_0x39e44b,_0x33aacd){const _0x1cd891=a160_0x3722,_0x4daad1=_0x39e44b();while(!![]){try{const _0x501529=parseInt(_0x1cd891(0x160))/0x1*(-parseInt(_0x1cd891(0x159))/0x2)+-parseInt(_0x1cd891(0x15d))/0x3+-parseInt(_0x1cd891(0x162))/0x4+-parseInt(_0x1cd891(0x15c))/0x5*(parseInt(_0x1cd891(0x161))/0x6)+parseInt(_0x1cd891(0x158))/0x7+-parseInt(_0x1cd891(0x15a))/0x8*(parseInt(_0x1cd891(0x15b))/0x9)+-parseInt(_0x1cd891(0x15f))/0xa*(-parseInt(_0x1cd891(0x15e))/0xb);if(_0x501529===_0x33aacd)break;else _0x4daad1['push'](_0x4daad1['shift']());}catch(_0x3b4797){_0x4daad1['push'](_0x4daad1['shift']());}}}(a160_0x325d,0xb1f94));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a160_0x3722(_0x2e1b8d,_0x43ff41){_0x2e1b8d=_0x2e1b8d-0x158;const _0x325df1=a160_0x325d();let _0x3722c5=_0x325df1[_0x2e1b8d];return _0x3722c5;}export function getCliGitCommit(){const _0x49998c=String(GIT_COMMIT);return _0x49998c&&_0x49998c!=='unknown'?_0x49998c:'';}export function getCliVersionDisplay(){const _0x155cc6=getCliGitCommit(),_0x63ba0f=BUILD_TIME['slice'](0x0,0xa);if(!_0x155cc6||!_0x63ba0f)return VERSION;return VERSION+'\x20('+_0x155cc6+',\x20'+_0x63ba0f+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3db86c,_0x50cd97){var _0x16f24f=a161_0x5900,_0x52f5e3=_0x3db86c();while(!![]){try{var _0x253178=-parseInt(_0x16f24f(0xe7))/0x1+parseInt(_0x16f24f(0xe2))/0x2*(-parseInt(_0x16f24f(0xe5))/0x3)+parseInt(_0x16f24f(0xe0))/0x4+parseInt(_0x16f24f(0xe8))/0x5+-parseInt(_0x16f24f(0xe3))/0x6+parseInt(_0x16f24f(0xe4))/0x7+parseInt(_0x16f24f(0xe9))/0x8;if(_0x253178===_0x50cd97)break;else _0x52f5e3['push'](_0x52f5e3['shift']());}catch(_0x5dd8a9){_0x52f5e3['push'](_0x52f5e3['shift']());}}}(a161_0x5ca9,0x9fdd3));function a161_0x5ca9(){var _0x3c3928=['5941305McHjUm','2106120QuJWGT','3986592WhXksp','write','326354mbHZlI','7005090ybtuJP','7021035BGNwCx','6lgRXZy','stderr','1302507tfwCpt'];a161_0x5ca9=function(){return _0x3c3928;};return a161_0x5ca9();}function a161_0x5900(_0x41cfb3,_0x194526){_0x41cfb3=_0x41cfb3-0xe0;var _0x5ca994=a161_0x5ca9();var _0x590055=_0x5ca994[_0x41cfb3];return _0x590055;}export function writeCliSideChannelLine(_0x418015){var _0x3eb412=a161_0x5900;process[_0x3eb412(0xe6)][_0x3eb412(0xe1)](_0x418015+'\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.0-beta.
|
|
4
|
+
version: 2.3.0-beta.3
|
|
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-beta.
|
|
6
|
-
"skillVersion": "2.3.0-beta.
|
|
5
|
+
"packageVersion": "2.3.0-beta.3",
|
|
6
|
+
"skillVersion": "2.3.0-beta.3",
|
|
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": "0541f2c72deba8c22d25a2aaa379bfd2fc39f856b8a26c4e527b4e8ef5b035bd"
|
|
41
41
|
}
|