@lovrabet/lovrabet-cli 2.3.7-beta.1 → 2.3.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/skills/lovrabet/SKILL.md +2 -2
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7cf387,_0x3f19fa){const _0x3b9c12=a169_0x47b3,_0x27012a=_0x7cf387();while(!![]){try{const _0x53d5a4=parseInt(_0x3b9c12(0xfc))/0x1*(-parseInt(_0x3b9c12(0xee))/0x2)+parseInt(_0x3b9c12(0xf5))/0x3*(-parseInt(_0x3b9c12(0xf1))/0x4)+parseInt(_0x3b9c12(0xfe))/0x5*(-parseInt(_0x3b9c12(0x100))/0x6)+parseInt(_0x3b9c12(0xf2))/0x7*(-parseInt(_0x3b9c12(0xf0))/0x8)+parseInt(_0x3b9c12(0xf3))/0x9+-parseInt(_0x3b9c12(0x102))/0xa+parseInt(_0x3b9c12(0xef))/0xb*(parseInt(_0x3b9c12(0xf6))/0xc);if(_0x53d5a4===_0x3f19fa)break;else _0x27012a['push'](_0x27012a['shift']());}catch(_0x2fcdd7){_0x27012a['push'](_0x27012a['shift']());}}}(a169_0x4ec6,0x4ba13));import a169_0x5baf11 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(_0xbaf32,_0x2bcb5c){const _0x292a8d=a169_0x47b3,_0x11bf35=a169_0x5baf11[_0x292a8d(0xfa)](_0xbaf32)===_0xbaf32,_0x1695f2=_0x2bcb5c?.[_0x292a8d(0x103)]??null,_0x4da68a=_0x2bcb5c?.['minimumVersion']??null,_0x38966b=Boolean(_0x11bf35&&_0x1695f2&&a169_0x5baf11['lt'](_0xbaf32,_0x1695f2)),_0x5bcbab=Boolean(_0x11bf35&&_0x4da68a&&a169_0x5baf11['lt'](_0xbaf32,_0x4da68a));return{'currentVersion':_0xbaf32,'stableVersion':_0x1695f2,'minimumVersion':_0x4da68a,'needsUpgrade':_0x38966b||_0x5bcbab,'belowMinimum':_0x5bcbab,'upgradeMessage':_0x2bcb5c?.[_0x292a8d(0xf4)],'minimumVersionMessage':_0x2bcb5c?.[_0x292a8d(0xf8)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}function a169_0x47b3(_0x42f67d,_0x571ba8){_0x42f67d=_0x42f67d-0xed;const _0x4ec631=a169_0x4ec6();let _0x47b3ff=_0x4ec631[_0x42f67d];return _0x47b3ff;}export function getCliUpgradeCommand(_0x57d11b){const _0x1b141a=a169_0x47b3;return _0x1b141a(0xf7)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x57d11b[_0x1b141a(0x103)]??_0x1b141a(0x101));}export function assertCliVersionSupported(_0x386269){const _0xa548a8=a169_0x47b3;if(!_0x386269['belowMinimum'])return;const _0x4afdef=[_0x386269[_0xa548a8(0xf8)],_0xa548a8(0xfb)+_0x386269[_0xa548a8(0xf9)],'Minimum\x20supported:\x20'+_0x386269['minimumVersion'],'Recommended\x20stable:\x20'+(_0x386269[_0xa548a8(0x103)]??_0xa548a8(0xed)),_0xa548a8(0xfd)+getCliUpgradeCommand(_0x386269)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0xa548a8(0xff)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x4afdef);}function a169_0x4ec6(){const _0x2dbdb0=['Upgrade\x20command:\x20','5365uuMOVL','validation','1212YefbtH','latest','2239830YcNmxk','stableVersion','unavailable','10zrzqMh','110JKgHTL','685736DqgpEZ','12ApxVYJ','7zueOkm','948582uLNtXu','upgradeMessage','277998vYEePc','1554684wGaDLA','npm\x20install\x20-g\x20','minimumVersionMessage','currentVersion','valid','Current\x20version:\x20','57349LOmyTb'];a169_0x4ec6=function(){return _0x2dbdb0;};return a169_0x4ec6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37b966,_0x2aeda4){const _0x3994b9=a170_0x35ab,_0x14758b=_0x37b966();while(!![]){try{const _0x812cb=parseInt(_0x3994b9(0xc0))/0x1*(-parseInt(_0x3994b9(0xc6))/0x2)+parseInt(_0x3994b9(0xb1))/0x3*(parseInt(_0x3994b9(0xbc))/0x4)+-parseInt(_0x3994b9(0xc5))/0x5+parseInt(_0x3994b9(0xb4))/0x6*(parseInt(_0x3994b9(0xc3))/0x7)+parseInt(_0x3994b9(0xc7))/0x8*(parseInt(_0x3994b9(0xb8))/0x9)+-parseInt(_0x3994b9(0xbb))/0xa+-parseInt(_0x3994b9(0xb6))/0xb*(parseInt(_0x3994b9(0xc1))/0xc);if(_0x812cb===_0x2aeda4)break;else _0x14758b['push'](_0x14758b['shift']());}catch(_0x10149b){_0x14758b['push'](_0x14758b['shift']());}}}(a170_0x54d8,0x2964f));import a170_0x46281c 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(_0x53f00d){const _0x4ace65=a170_0x35ab;return typeof _0x53f00d==='string'&&_0x53f00d[_0x4ace65(0xb7)]()?_0x53f00d[_0x4ace65(0xb7)]():null;}function pickStrictSemver(_0x4cb13d){const _0x441804=a170_0x35ab,_0x31bfc5=pickString(_0x4cb13d);return _0x31bfc5&&a170_0x46281c[_0x441804(0xb2)](_0x31bfc5)===_0x31bfc5?_0x31bfc5:null;}export function normalizeCliVersionPolicy(_0x1a99c5){const _0x406a25=a170_0x35ab;if(!_0x1a99c5||typeof _0x1a99c5!==_0x406a25(0xc4))return null;const _0x3275b3=_0x1a99c5,_0xa30e24=_0x3275b3['cli']&&typeof _0x3275b3[_0x406a25(0xbd)]===_0x406a25(0xc4)?_0x3275b3[_0x406a25(0xbd)]:_0x3275b3,_0x2b66ae=pickStrictSemver(_0xa30e24[_0x406a25(0xbe)]??_0xa30e24['latestVersion']??_0xa30e24[_0x406a25(0xb0)]),_0x3ebad2=pickStrictSemver(_0xa30e24[_0x406a25(0xc2)]??_0xa30e24[_0x406a25(0xbf)]);if(!_0x2b66ae&&!_0x3ebad2)return null;if(_0x2b66ae&&_0x3ebad2&&a170_0x46281c['gt'](_0x3ebad2,_0x2b66ae))return null;return{'stableVersion':_0x2b66ae,'minimumVersion':_0x3ebad2,'upgradeMessage':pickString(_0xa30e24['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0xa30e24['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0x4ca75b=a170_0x35ab;try{const _0x261c6f=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4ca75b(0xb5)},'signal':AbortSignal[_0x4ca75b(0xb3)](FETCH_TIMEOUT_MS)});if(!_0x261c6f['ok'])return null;return normalizeCliVersionPolicy(await _0x261c6f[_0x4ca75b(0xaf)]());}catch{return null;}}function a170_0x35ab(_0x307e0e,_0x6266be){_0x307e0e=_0x307e0e-0xaf;const _0x54d8fe=a170_0x54d8();let _0x35ab90=_0x54d8fe[_0x307e0e];return _0x35ab90;}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x18dc3a=a170_0x35ab,_0x115ca2=Date[_0x18dc3a(0xba)]();if(hasCachedPolicy){const _0x590b22=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x115ca2-cachedAt<_0x590b22)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x18dc3a(0xb9)](_0x1f92dc=>{const _0x387539=_0x18dc3a;return cachedPolicy=_0x1f92dc,cachedAt=Date[_0x387539(0xba)](),hasCachedPolicy=!![],_0x1f92dc;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}function a170_0x54d8(){const _0x5ad18f=['trim','1060830RabmuD','then','now','544980BWGXGW','446412XJbdOf','cli','stableVersion','minVersion','496xqyFoS','325344LkmajD','minimumVersion','21IdAWaS','object','1124295akyimQ','454VRXinP','16BJSrQA','json','recommendedVersion','6vWFmWT','valid','timeout','422004umUMmu','application/json','44SyNWkf'];a170_0x54d8=function(){return _0x5ad18f;};return a170_0x54d8();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a171_0x3b1aef=a171_0x50bf;(function(_0x2cd2b7,_0x59b632){const _0x28b269=a171_0x50bf,_0x4dbd0e=_0x2cd2b7();while(!![]){try{const _0x346b04=-parseInt(_0x28b269(0x1f4))/0x1+-parseInt(_0x28b269(0x1e2))/0x2+parseInt(_0x28b269(0x1df))/0x3+parseInt(_0x28b269(0x1fb))/0x4*(parseInt(_0x28b269(0x1f2))/0x5)+parseInt(_0x28b269(0x1ec))/0x6*(-parseInt(_0x28b269(0x1f9))/0x7)+-parseInt(_0x28b269(0x201))/0x8*(parseInt(_0x28b269(0x203))/0x9)+parseInt(_0x28b269(0x206))/0xa*(parseInt(_0x28b269(0x207))/0xb);if(_0x346b04===_0x59b632)break;else _0x4dbd0e['push'](_0x4dbd0e['shift']());}catch(_0x3f2d87){_0x4dbd0e['push'](_0x4dbd0e['shift']());}}}(a171_0x17e1,0x9a102));import a171_0x285263 from'winston';import a171_0x31f244 from'node:fs';function a171_0x17e1(){const _0x349507=['setRawCommand','dirname','toISOString','logTask','readFileSync','transports','initWinstonLogger','logFilePath','553854qcRNvu','mkdirSync','currentRawCommand','231410nYXptO','format','parse','stringify','getWinstonInstance','message','green','join','blue','createLogger','762MVzYVM','success','winstonLogger','now','writeFileSync','printf','5KRBuJt','log','692670CMGPdY','Failed:\x20','rawCommand','addColors','utf8','62573vvFyGk','existsSync','2872732lULGDb','combine','error','info','Failed\x20to\x20read\x20logs:','errors','190360HgbbdF','split','333QqJMDn','clear','yellow','911530OMhNpF','308AatVTp','Starting:\x20','timestamp','command','warn'];a171_0x17e1=function(){return _0x349507;};return a171_0x17e1();}import a171_0x3e340c from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a171_0x50bf(_0xe7f365,_0x33254f){_0xe7f365=_0xe7f365-0x1d7;const _0x17e1e4=a171_0x17e1();let _0x50bf6=_0x17e1e4[_0xe7f365];return _0x50bf6;}class Logger{[a171_0x3b1aef(0x1ee)];[a171_0x3b1aef(0x1de)]='';['currentRawCommand']='';constructor(){}[a171_0x3b1aef(0x1d7)](_0x1e6aa9){const _0x8f9e80=a171_0x3b1aef;this[_0x8f9e80(0x1e1)]=_0x1e6aa9;}['setLogPath'](_0x389700){const _0x5b3ef1=a171_0x3b1aef;this[_0x5b3ef1(0x1de)]=a171_0x3e340c[_0x5b3ef1(0x1e9)](_0x389700,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x5b3ef1(0x1ee)][_0x5b3ef1(0x204)](),this[_0x5b3ef1(0x1dd)]();}[a171_0x3b1aef(0x1dd)](){const _0x5c9e50=a171_0x3b1aef,_0x69d72d=a171_0x3e340c[_0x5c9e50(0x1d8)](this[_0x5c9e50(0x1de)]);!a171_0x31f244[_0x5c9e50(0x1fa)](_0x69d72d)&&a171_0x31f244[_0x5c9e50(0x1e0)](_0x69d72d,{'recursive':!![]});const _0x14bbbe=a171_0x285263[_0x5c9e50(0x1e3)][_0x5c9e50(0x1fc)](a171_0x285263[_0x5c9e50(0x1e3)][_0x5c9e50(0x209)](),a171_0x285263[_0x5c9e50(0x1e3)][_0x5c9e50(0x200)]({'stack':!![]}),a171_0x285263[_0x5c9e50(0x1e3)][_0x5c9e50(0x1f1)](_0xc93aa1=>{const _0x298992=_0x5c9e50,_0xdda907={'timestamp':_0xc93aa1[_0x298992(0x209)]||new Date()[_0x298992(0x1d9)](),'level':_0xc93aa1['level']||_0x298992(0x1fe),'command':_0xc93aa1[_0x298992(0x20a)]||'unknown','rawCommand':_0xc93aa1[_0x298992(0x1f6)]||this[_0x298992(0x1e1)]||undefined,'message':_0xc93aa1[_0x298992(0x1e7)]||'','duration':_0xc93aa1['duration']||undefined,'details':_0xc93aa1['details']||undefined};return JSON[_0x298992(0x1e5)](_0xdda907);}));this[_0x5c9e50(0x1ee)]=a171_0x285263[_0x5c9e50(0x1eb)]({'level':_0x5c9e50(0x1fe),'format':_0x14bbbe,'transports':[new a171_0x285263[(_0x5c9e50(0x1dc))]['File']({'filename':this[_0x5c9e50(0x1de)],'level':_0x5c9e50(0x1fe)})],'silent':![]}),a171_0x285263[_0x5c9e50(0x1f7)]({'success':_0x5c9e50(0x1e8),'error':'red','warn':_0x5c9e50(0x205),'info':_0x5c9e50(0x1ea)});}['info'](_0x146b16,_0x27243d,_0x1f4482){const _0x1beff1=a171_0x3b1aef;if(!this[_0x1beff1(0x1de)]||!this[_0x1beff1(0x1ee)])return;this['winstonLogger'][_0x1beff1(0x1fe)](_0x27243d,{'command':_0x146b16,'details':_0x1f4482});}[a171_0x3b1aef(0x1ed)](_0xf88c9b,_0x42b386,_0x2ea515,_0x3e218e){const _0x31b699=a171_0x3b1aef;if(!this[_0x31b699(0x1de)]||!this[_0x31b699(0x1ee)])return;this['winstonLogger'][_0x31b699(0x1f3)]('info',_0x42b386,{'level':_0x31b699(0x1ed),'command':_0xf88c9b,'duration':_0x2ea515,'details':_0x3e218e});}[a171_0x3b1aef(0x1fd)](_0x521636,_0x32660d,_0xe46cc7){const _0x4d9ac7=a171_0x3b1aef;if(!this['logFilePath']||!this[_0x4d9ac7(0x1ee)])return;this[_0x4d9ac7(0x1ee)][_0x4d9ac7(0x1fd)](_0x32660d,{'command':_0x521636,'details':_0xe46cc7});}[a171_0x3b1aef(0x20b)](_0xe45b32,_0x4ccffc,_0x5eef70){const _0x5c7fa8=a171_0x3b1aef;if(!this['logFilePath']||!this[_0x5c7fa8(0x1ee)])return;this[_0x5c7fa8(0x1ee)][_0x5c7fa8(0x20b)](_0x4ccffc,{'command':_0xe45b32,'details':_0x5eef70});}async[a171_0x3b1aef(0x1da)](_0x330e43,_0xcd2fca,_0x252c95){const _0x26f05b=a171_0x3b1aef,_0x5d2189=Date[_0x26f05b(0x1ef)]();this['info'](_0x330e43,_0x26f05b(0x208)+_0xcd2fca);try{const _0x255177=await _0x252c95(),_0x548365=Date[_0x26f05b(0x1ef)]()-_0x5d2189;return this['success'](_0x330e43,'Completed:\x20'+_0xcd2fca,_0x548365),_0x255177;}catch(_0x2f60e1){const _0x2fcd6f=Date[_0x26f05b(0x1ef)]()-_0x5d2189;this[_0x26f05b(0x1fd)](_0x330e43,_0x26f05b(0x1f5)+_0xcd2fca,{'error':_0x2f60e1 instanceof Error?_0x2f60e1['message']:String(_0x2f60e1),'duration':_0x2fcd6f});throw _0x2f60e1;}}['readLogs'](){const _0xebdd30=a171_0x3b1aef;try{if(!a171_0x31f244[_0xebdd30(0x1fa)](this['logFilePath']))return[];const _0x24e6d8=a171_0x31f244[_0xebdd30(0x1db)](this[_0xebdd30(0x1de)],_0xebdd30(0x1f8));return _0x24e6d8[_0xebdd30(0x202)](/\r?\n/)['filter'](_0x4a1e3c=>_0x4a1e3c['trim']())['map'](_0x51829d=>JSON[_0xebdd30(0x1e4)](_0x51829d));}catch(_0xab3e03){return console[_0xebdd30(0x20b)](_0xebdd30(0x1ff),_0xab3e03),[];}}['clearLogs'](){const _0x134c1a=a171_0x3b1aef;try{a171_0x31f244[_0x134c1a(0x1fa)](this[_0x134c1a(0x1de)])&&a171_0x31f244[_0x134c1a(0x1f0)](this[_0x134c1a(0x1de)],'',_0x134c1a(0x1f8));}catch(_0x5dad63){console[_0x134c1a(0x20b)]('Failed\x20to\x20clear\x20logs:',_0x5dad63);}}[a171_0x3b1aef(0x1e6)](){const _0x3f9c31=a171_0x3b1aef;return this[_0x3f9c31(0x1ee)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a172_0x1d58ed=a172_0x2da5;(function(_0xb8ec16,_0x4c95d6){const _0x2c973a=a172_0x2da5,_0x24abed=_0xb8ec16();while(!![]){try{const _0x31a9e3=-parseInt(_0x2c973a(0xf9))/0x1*(-parseInt(_0x2c973a(0xf6))/0x2)+-parseInt(_0x2c973a(0xef))/0x3*(parseInt(_0x2c973a(0xe7))/0x4)+parseInt(_0x2c973a(0xee))/0x5*(parseInt(_0x2c973a(0xfd))/0x6)+parseInt(_0x2c973a(0xf3))/0x7+parseInt(_0x2c973a(0xf7))/0x8+parseInt(_0x2c973a(0xfb))/0x9*(-parseInt(_0x2c973a(0xe8))/0xa)+-parseInt(_0x2c973a(0xf1))/0xb*(parseInt(_0x2c973a(0xe9))/0xc);if(_0x31a9e3===_0x4c95d6)break;else _0x24abed['push'](_0x24abed['shift']());}catch(_0x5b36e4){_0x24abed['push'](_0x24abed['shift']());}}}(a172_0x1200,0xae8f6));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x1d58ed(0xf8)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x1d58ed(0xf5)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x376bc9){const _0x20802a=a172_0x1d58ed;if(_0x376bc9[_0x20802a(0xeb)]('.')||_0x376bc9[_0x20802a(0xeb)]('e')||_0x376bc9['includes']('E'))return![];const _0x12f382=BigInt(_0x376bc9);return _0x12f382>MAX_SAFE_INTEGER||_0x12f382<MIN_SAFE_INTEGER;}function a172_0x1200(){const _0x405c80=['defineProperty','102OqiGIU','8lBYNte','20QjohhQ','348kizQdg','length','includes','parse','prototype','45905fIOBep','65127bWInCy','slice','928433JyIlhO','json','4418519brRllt','exec','MIN_SAFE_INTEGER','118xNZanr','10778856hZkjgb','MAX_SAFE_INTEGER','18806oPCkdn','getOwnPropertyDescriptor','171459hmKHEx'];a172_0x1200=function(){return _0x405c80;};return a172_0x1200();}function quoteUnsafeIntegerLiterals(_0x1efe40){const _0x1d4252=a172_0x1d58ed;let _0x16ac05='',_0x393e81=![],_0x228761=![];for(let _0x2db81e=0x0;_0x2db81e<_0x1efe40[_0x1d4252(0xea)];){const _0x472fe0=_0x1efe40[_0x2db81e];if(_0x393e81){_0x16ac05+=_0x472fe0,_0x2db81e+=0x1;if(_0x228761)_0x228761=![];else{if(_0x472fe0==='\x5c')_0x228761=!![];else _0x472fe0==='\x22'&&(_0x393e81=![]);}continue;}if(_0x472fe0==='\x22'){_0x393e81=!![],_0x16ac05+=_0x472fe0,_0x2db81e+=0x1;continue;}if(_0x472fe0==='-'||_0x472fe0>='0'&&_0x472fe0<='9'){const _0x511788=JSON_NUMBER_PATTERN[_0x1d4252(0xf4)](_0x1efe40[_0x1d4252(0xf0)](_0x2db81e))?.[0x0];if(_0x511788){_0x16ac05+=isUnsafeIntegerLiteral(_0x511788)?'\x22'+_0x511788+'\x22':_0x511788,_0x2db81e+=_0x511788[_0x1d4252(0xea)];continue;}}_0x16ac05+=_0x472fe0,_0x2db81e+=0x1;}return _0x16ac05;}function a172_0x2da5(_0x3818ca,_0x36d38e){_0x3818ca=_0x3818ca-0xe7;const _0x120046=a172_0x1200();let _0x2da5ef=_0x120046[_0x3818ca];return _0x2da5ef;}export function parseLosslessJson(_0x305112){const _0x301c09=a172_0x1d58ed;return JSON[_0x301c09(0xec)](quoteUnsafeIntegerLiterals(_0x305112));}export function installLosslessJsonResponseParser(){const _0x241670=a172_0x1d58ed;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x241670(0xed)],originalResponseJsonDescriptor=Object[_0x241670(0xfa)](responseJsonPrototype,'json'),Object[_0x241670(0xfc)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x26aaf6(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x59af09=_0x241670;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x59af09(0xfc)](responseJsonPrototype,_0x59af09(0xf2),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x59af09(0xf2)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a173_0x2945(){const _0x445491=['map','3960AnJDhq','id[','object','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','828nmeSvr','124090BoLddJ','number','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','length','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','492VKjdhS','369789DDerDW','1264848dtzbcz','8mrZYZR','347djjXVs','isSafeInteger','items','1722lhUPeC','4232952yJyumQ','validation','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','Invalid\x20JSON\x20for\x20--params:\x20','121WJUqwe','11105rKerXJ','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','isArray'];a173_0x2945=function(){return _0x445491;};return a173_0x2945();}(function(_0x504dce,_0x44a4e6){const _0x25db31=a173_0x2511,_0x2f2784=_0x504dce();while(!![]){try{const _0x466fce=parseInt(_0x25db31(0x181))/0x1*(parseInt(_0x25db31(0x176))/0x2)+-parseInt(_0x25db31(0x17e))/0x3+parseInt(_0x25db31(0x17d))/0x4*(-parseInt(_0x25db31(0x16e))/0x5)+-parseInt(_0x25db31(0x172))/0x6*(parseInt(_0x25db31(0x184))/0x7)+parseInt(_0x25db31(0x180))/0x8*(parseInt(_0x25db31(0x185))/0x9)+-parseInt(_0x25db31(0x177))/0xa*(-parseInt(_0x25db31(0x16d))/0xb)+parseInt(_0x25db31(0x17f))/0xc;if(_0x466fce===_0x44a4e6)break;else _0x2f2784['push'](_0x2f2784['shift']());}catch(_0x3ab436){_0x2f2784['push'](_0x2f2784['shift']());}}}(a173_0x2945,0x4887b));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x4588bf){const _0x133648=a173_0x2511;if(!_0x4588bf)return undefined;try{return parseLosslessJson(_0x4588bf);}catch{throw CliErrors[_0x133648(0x186)](_0x133648(0x16c)+_0x4588bf);}}export function parseJsonParamsValue(_0x3c938e){const _0x29a217=a173_0x2511;if(!_0x3c938e)return undefined;try{return parseLosslessJson(_0x3c938e);}catch{throw CliErrors[_0x29a217(0x186)](_0x29a217(0x16c)+_0x3c938e);}}export function parseBatchCreateItemsFromParams(_0x521bac){const _0x137671=a173_0x2511;if(Array[_0x137671(0x170)](_0x521bac))return _0x521bac;if(_0x521bac!==null&&_0x521bac!==undefined&&typeof _0x521bac===_0x137671(0x174)&&Array[_0x137671(0x170)](_0x521bac[_0x137671(0x183)]))return _0x521bac[_0x137671(0x183)];throw CliErrors[_0x137671(0x186)](_0x137671(0x175),_0x137671(0x17a));}function parseDataUpdateId(_0x1e66c1,_0x408234){const _0x4ea373=a173_0x2511;if(typeof _0x1e66c1===_0x4ea373(0x178)&&Number[_0x4ea373(0x182)](_0x1e66c1)&&_0x1e66c1>0x0)return _0x1e66c1;if(typeof _0x1e66c1==='string'){if(/^[1-9]\d*$/['test'](_0x1e66c1))return _0x1e66c1;}throw CliErrors['validation']('data\x20update\x20--params.'+_0x408234+_0x4ea373(0x17c));}function a173_0x2511(_0x5b787d,_0x10b541){_0x5b787d=_0x5b787d-0x16c;const _0x294574=a173_0x2945();let _0x25113d=_0x294574[_0x5b787d];return _0x25113d;}export function parseUpdateIdsFromParams(_0x5adc1d){const _0x2b8cf2=a173_0x2511;if(_0x5adc1d===null||_0x5adc1d===undefined||typeof _0x5adc1d!==_0x2b8cf2(0x174)||Array[_0x2b8cf2(0x170)](_0x5adc1d))throw CliErrors[_0x2b8cf2(0x186)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x2b8cf2(0x187));const _0x5bb22a=_0x5adc1d['id'];if(_0x5bb22a===undefined||_0x5bb22a===null)throw CliErrors['validation'](_0x2b8cf2(0x179),_0x2b8cf2(0x187));const _0xd1e791=Array[_0x2b8cf2(0x170)](_0x5bb22a)?_0x5bb22a:[_0x5bb22a];if(_0xd1e791['length']===0x0)throw CliErrors[_0x2b8cf2(0x186)](_0x2b8cf2(0x16f));if(_0xd1e791[_0x2b8cf2(0x17b)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x2b8cf2(0x186)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0xd1e791[_0x2b8cf2(0x17b)]+'.');return _0xd1e791[_0x2b8cf2(0x171)]((_0x3e981f,_0x34c44a)=>parseDataUpdateId(_0x3e981f,Array[_0x2b8cf2(0x170)](_0x5bb22a)?_0x2b8cf2(0x173)+_0x34c44a+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x43a48b,_0x472fc9){const _0x2724da=a173_0x2511;if(Array[_0x2724da(0x170)](_0x43a48b['id'])&&_0x472fc9[_0x2724da(0x17b)]>0x1)return{..._0x43a48b,'id':_0x472fc9['join'](',')};return _0x43a48b;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a174_0x267f(_0x7f142b,_0x3ccfbe){_0x7f142b=_0x7f142b-0xf5;const _0x2da60e=a174_0x2da6();let _0x267f07=_0x2da60e[_0x7f142b];return _0x267f07;}(function(_0x10860e,_0x4a5af3){const _0x11eba0=a174_0x267f,_0xbac10a=_0x10860e();while(!![]){try{const _0x42413f=parseInt(_0x11eba0(0x100))/0x1*(-parseInt(_0x11eba0(0xfe))/0x2)+parseInt(_0x11eba0(0x101))/0x3+-parseInt(_0x11eba0(0xff))/0x4*(-parseInt(_0x11eba0(0xf8))/0x5)+parseInt(_0x11eba0(0x102))/0x6*(parseInt(_0x11eba0(0xf6))/0x7)+-parseInt(_0x11eba0(0xfd))/0x8+parseInt(_0x11eba0(0xf9))/0x9+-parseInt(_0x11eba0(0xfc))/0xa*(parseInt(_0x11eba0(0xf5))/0xb);if(_0x42413f===_0x4a5af3)break;else _0xbac10a['push'](_0xbac10a['shift']());}catch(_0x59b75f){_0xbac10a['push'](_0xbac10a['shift']());}}}(a174_0x2da6,0xb6837));function a174_0x2da6(){const _0x3f90df=['string','100gNVpMW','2511873WxALAN','number','isSafeInteger','10AIeTqy','6276544gtPbWw','4114ClWyXk','261572qjxVze','119vCvZme','1946652QfprbX','90264gfeFfo','21100013FNPiec','679tkOLgY'];a174_0x2da6=function(){return _0x3f90df;};return a174_0x2da6();}export function normalizePositiveSafeInteger(_0x794542){const _0x258bf2=a174_0x267f;if(typeof _0x794542===_0x258bf2(0xfa))return Number[_0x258bf2(0xfb)](_0x794542)&&_0x794542>0x0?_0x794542:undefined;if(typeof _0x794542!==_0x258bf2(0xf7)||!/^\d+$/['test'](_0x794542))return undefined;const _0x835b7b=Number(_0x794542);return Number[_0x258bf2(0xfb)](_0x835b7b)&&_0x835b7b>0x0?_0x835b7b:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x77057=a175_0x32f9;function a175_0x32f9(_0x2d7114,_0x1e16e0){_0x2d7114=_0x2d7114-0x1ad;const _0x52959b=a175_0x5295();let _0x32f99e=_0x52959b[_0x2d7114];return _0x32f99e;}(function(_0x17a915,_0x250d0){const _0x3bd5a2=a175_0x32f9,_0x34da26=_0x17a915();while(!![]){try{const _0x22e644=-parseInt(_0x3bd5a2(0x1b3))/0x1+-parseInt(_0x3bd5a2(0x1bb))/0x2+-parseInt(_0x3bd5a2(0x1c0))/0x3*(-parseInt(_0x3bd5a2(0x1ad))/0x4)+-parseInt(_0x3bd5a2(0x1b6))/0x5*(parseInt(_0x3bd5a2(0x1b2))/0x6)+-parseInt(_0x3bd5a2(0x1c2))/0x7+parseInt(_0x3bd5a2(0x1be))/0x8+parseInt(_0x3bd5a2(0x1b8))/0x9*(parseInt(_0x3bd5a2(0x1b7))/0xa);if(_0x22e644===_0x250d0)break;else _0x34da26['push'](_0x34da26['shift']());}catch(_0xa33a5a){_0x34da26['push'](_0x34da26['shift']());}}}(a175_0x5295,0x50ada));const REDACTED_VALUE=a175_0x77057(0x1af),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a175_0x77057(0x1c1),a175_0x77057(0x1b1)]),SENSITIVE_VALUE_KEYS=new Set([a175_0x77057(0x1c1)]);export function isSensitiveKey(_0x33ab59){const _0x43b44b=a175_0x77057,_0x7ae133=_0x33ab59[_0x43b44b(0x1bf)](/_/g,'-')[_0x43b44b(0x1b4)]();return SENSITIVE_KEY_PATTERN[_0x43b44b(0x1ae)](_0x7ae133);}export function isSensitiveFlagName(_0x4fbece){const _0x193a0c=a175_0x77057,_0xb7b7a1=_0x4fbece[_0x193a0c(0x1bf)](/_/g,'-')[_0x193a0c(0x1b4)]();return isSensitiveKey(_0xb7b7a1)||SENSITIVE_FLAG_NAMES['has'](_0xb7b7a1);}function redactVariableValues(_0x294963){const _0x546019=a175_0x77057;if(Array[_0x546019(0x1bc)](_0x294963))return _0x294963['map'](_0x30b6f1=>redactVariableValues(_0x30b6f1));if(_0x294963&&typeof _0x294963===_0x546019(0x1b0))return Object['fromEntries'](Object[_0x546019(0x1ba)](_0x294963)[_0x546019(0x1b5)](([_0x883114,_0x1354a4])=>[_0x883114,redactVariableValues(_0x1354a4)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x35676a){const _0xb9367b=a175_0x77057;if(Array[_0xb9367b(0x1bc)](_0x35676a))return _0x35676a[_0xb9367b(0x1b5)](_0x341b19=>redactSensitiveValue(_0x341b19));if(!_0x35676a||typeof _0x35676a!==_0xb9367b(0x1b0))return _0x35676a;const _0x31baa9={};for(const [_0x3fe96b,_0x2c5b66]of Object[_0xb9367b(0x1ba)](_0x35676a)){const _0xb61e76=_0x3fe96b[_0xb9367b(0x1bf)](/_/g,'-')[_0xb9367b(0x1b4)]();_0x31baa9[_0x3fe96b]=_0xb61e76===_0xb9367b(0x1b1)?redactVariableValues(_0x2c5b66):SENSITIVE_VALUE_KEYS['has'](_0xb61e76)||isSensitiveKey(_0x3fe96b)?REDACTED_VALUE:redactSensitiveValue(_0x2c5b66);}return _0x31baa9;}function a175_0x5295(){const _0x494801=['50YKFUet','2710vxvuzI','37593JgWObg','match','entries','1312268loKzPT','isArray','push','523672emUcpX','replace','1959189uzbXot','comment','1616552jJVsgX','4PKEVzH','test','[REDACTED]','object','variables','171786NfmrqI','346651lYdANN','toLowerCase','map'];a175_0x5295=function(){return _0x494801;};return a175_0x5295();}export function redactCommandArgv(_0x5b8309){const _0x3f663f=a175_0x77057,_0x3684f3=[];let _0x3bbc88=![];for(const _0x951b82 of _0x5b8309){if(_0x3bbc88){_0x3684f3[_0x3f663f(0x1bd)](REDACTED_VALUE),_0x3bbc88=![];continue;}const _0x3e0662=_0x951b82[_0x3f663f(0x1b9)](/^--([^=]+)(?:=(.*))?$/);if(!_0x3e0662||!isSensitiveFlagName(_0x3e0662[0x1]??'')){_0x3684f3[_0x3f663f(0x1bd)](_0x951b82);continue;}_0x3684f3[_0x3f663f(0x1bd)]('--'+_0x3e0662[0x1]+(_0x3e0662[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x3e0662[0x2]===undefined&&(_0x3bbc88=!![]);}return _0x3684f3;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42c2d8,_0x3bb072){const _0x55584b=a176_0x5596,_0x354b0b=_0x42c2d8();while(!![]){try{const _0x5930d0=-parseInt(_0x55584b(0x1df))/0x1+parseInt(_0x55584b(0x1e8))/0x2+-parseInt(_0x55584b(0x1d3))/0x3*(-parseInt(_0x55584b(0x1da))/0x4)+parseInt(_0x55584b(0x1d8))/0x5+-parseInt(_0x55584b(0x1e7))/0x6*(parseInt(_0x55584b(0x1e2))/0x7)+parseInt(_0x55584b(0x1d7))/0x8*(parseInt(_0x55584b(0x1e6))/0x9)+-parseInt(_0x55584b(0x1d4))/0xa;if(_0x5930d0===_0x3bb072)break;else _0x354b0b['push'](_0x354b0b['shift']());}catch(_0x5ed400){_0x354b0b['push'](_0x354b0b['shift']());}}}(a176_0x564c,0xa04e3));function a176_0x5596(_0x5403a6,_0x383193){_0x5403a6=_0x5403a6-0x1cf;const _0x564cef=a176_0x564c();let _0x559670=_0x564cef[_0x5403a6];return _0x559670;}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 a176_0x564c(){const _0x3f4db5=['object','currentVersion','utf8','join','70914GKzucQ','16119600IMUYTr','.cache','yes','176LFHkTB','4512085YXebVr','stableVersion','212WsioZU','update-check.json',',\x20run:\x20','belowMinimum','toLowerCase','1085819uCPWFT','number','lastNotifiedAt','20755WSpUcE','filter','needsUpgrade','upgradeMessage','463041eCIlom','498ofMlah','626752cxJFia','trim'];a176_0x564c=function(){return _0x3f4db5;};return a176_0x564c();}function isUpdateNoticeDisabled(){const _0x318c75=a176_0x5596,_0x2fb824=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x318c75(0x1e9)]()[_0x318c75(0x1de)]();return _0x2fb824==='1'||_0x2fb824==='true'||_0x2fb824===_0x318c75(0x1d6);}function cacheRoot(){const _0x174b0e=a176_0x5596;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x174b0e(0x1d5));}export function getUpdateNoticeCachePath(){const _0x534422=a176_0x5596;return join(cacheRoot(),'lovrabet-cli',_0x534422(0x1db));}async function readUpdateNoticeCache(){const _0x154497=a176_0x5596;try{const _0x11336a=await readFile(getUpdateNoticeCachePath(),_0x154497(0x1d1)),_0x379a2e=JSON['parse'](_0x11336a);if(!_0x379a2e||typeof _0x379a2e!==_0x154497(0x1cf))return{};return _0x379a2e;}catch{return{};}}async function writeUpdateNoticeCache(_0x3f71a8){const _0x341849=a176_0x5596;try{const _0x153519=getUpdateNoticeCachePath();await mkdir(dirname(_0x153519),{'recursive':!![]}),await writeFile(_0x153519,JSON['stringify'](_0x3f71a8,null,0x2)+'\x0a',_0x341849(0x1d1));}catch{}}function isRecentlyNotified(_0x520789,_0x29a70d,_0x1d55b6){const _0x263ac9=a176_0x5596;return _0x520789['lastNotifiedVersion']===_0x29a70d&&typeof _0x520789[_0x263ac9(0x1e1)]===_0x263ac9(0x1e0)&&_0x1d55b6-_0x520789[_0x263ac9(0x1e1)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x819e51){return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x819e51;}export async function resolveLatestUpdateNotice(_0x1de7b5){const _0x2c5e2d=a176_0x5596;if(isUpdateNoticeDisabled())return null;try{const _0x3af539=Date['now'](),_0x282ca7=_0x1de7b5??await checkCliVersion(),_0x266afa=_0x282ca7[_0x2c5e2d(0x1d0)],_0x28563d=_0x282ca7[_0x2c5e2d(0x1d9)],_0x259b27=await readUpdateNoticeCache();if(!_0x28563d||!_0x282ca7[_0x2c5e2d(0x1e4)]||_0x282ca7[_0x2c5e2d(0x1dd)])return null;if(isRecentlyNotified(_0x259b27,_0x28563d,_0x3af539))return null;const _0x466907=getCliUpgradeCommand(_0x282ca7);return await writeUpdateNoticeCache({..._0x259b27,'checkedAt':_0x3af539,'latest':_0x28563d,'failed':![],'lastNotifiedVersion':_0x28563d,'lastNotifiedAt':_0x3af539}),{'command':_0x466907,'current':_0x266afa,'latest':_0x28563d,'url':buildNpmVersionUrl(_0x28563d),'message':[_0x282ca7[_0x2c5e2d(0x1e5)],CLI_BIN_NAME+'\x20'+_0x28563d+'\x20is\x20recommended,\x20current\x20'+_0x266afa+_0x2c5e2d(0x1dc)+_0x466907][_0x2c5e2d(0x1e3)](Boolean)[_0x2c5e2d(0x1d2)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50cd58,_0x273d3b){const _0x9074f0=a177_0x25fb,_0x52238f=_0x50cd58();while(!![]){try{const _0x16db86=parseInt(_0x9074f0(0x81))/0x1+-parseInt(_0x9074f0(0x78))/0x2+parseInt(_0x9074f0(0x7a))/0x3*(-parseInt(_0x9074f0(0x77))/0x4)+-parseInt(_0x9074f0(0x80))/0x5*(-parseInt(_0x9074f0(0x7c))/0x6)+parseInt(_0x9074f0(0x7f))/0x7+-parseInt(_0x9074f0(0x79))/0x8*(-parseInt(_0x9074f0(0x7e))/0x9)+-parseInt(_0x9074f0(0x7b))/0xa*(parseInt(_0x9074f0(0x7d))/0xb);if(_0x16db86===_0x273d3b)break;else _0x52238f['push'](_0x52238f['shift']());}catch(_0x4298b2){_0x52238f['push'](_0x52238f['shift']());}}}(a177_0x359d,0x49f56));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4f8cd9=a177_0x25fb,_0x3836b7=String(GIT_COMMIT);return _0x3836b7&&_0x3836b7!==_0x4f8cd9(0x75)?_0x3836b7:'';}export function getCliVersionDisplay(){const _0xf12398=a177_0x25fb,_0x376890=getCliGitCommit(),_0x23f04c=BUILD_TIME[_0xf12398(0x76)](0x0,0xa);if(!_0x376890||!_0x23f04c)return VERSION;return VERSION+'\x20('+_0x376890+',\x20'+_0x23f04c+')';}function a177_0x25fb(_0x2db7ce,_0x43b4f6){_0x2db7ce=_0x2db7ce-0x75;const _0x359d1a=a177_0x359d();let _0x25fbc8=_0x359d1a[_0x2db7ce];return _0x25fbc8;}function a177_0x359d(){const _0x195493=['slice','1249004hPQijj','35390kLuwSz','687704rfaOeu','3enSICY','585910cwHpUs','48olYmWs','11QuWaDl','45lmrjXq','412230GnzigS','92030JUGCcP','55518QZZaog','unknown'];a177_0x359d=function(){return _0x195493;};return a177_0x359d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a178_0xfed7(){var _0x25c5b0=['2739213CCamUT','write','5192zNDBfd','2699300bkiscB','59imwBDV','268648PAMRLu','55QaoSIh','5613849qkncof','stderr','882287GYxFci','12DMrNHr','10ZhOmFd','6461200ZSwpeA'];a178_0xfed7=function(){return _0x25c5b0;};return a178_0xfed7();}function a178_0x5804(_0x4a9295,_0x318314){_0x4a9295=_0x4a9295-0xa7;var _0xfed75=a178_0xfed7();var _0x580422=_0xfed75[_0x4a9295];return _0x580422;}(function(_0xbbca7d,_0x20bf40){var _0x4cc548=a178_0x5804,_0x1bd467=_0xbbca7d();while(!![]){try{var _0x5776fb=-parseInt(_0x4cc548(0xab))/0x1*(parseInt(_0x4cc548(0xa9))/0x2)+-parseInt(_0x4cc548(0xa7))/0x3+parseInt(_0x4cc548(0xac))/0x4*(-parseInt(_0x4cc548(0xb2))/0x5)+-parseInt(_0x4cc548(0xb1))/0x6*(-parseInt(_0x4cc548(0xb0))/0x7)+parseInt(_0x4cc548(0xb3))/0x8+-parseInt(_0x4cc548(0xae))/0x9+-parseInt(_0x4cc548(0xaa))/0xa*(-parseInt(_0x4cc548(0xad))/0xb);if(_0x5776fb===_0x20bf40)break;else _0x1bd467['push'](_0x1bd467['shift']());}catch(_0x40926d){_0x1bd467['push'](_0x1bd467['shift']());}}}(a178_0xfed7,0x8ed66));export function writeCliSideChannelLine(_0x12eb7a){var _0x45b055=a178_0x5804;process[_0x45b055(0xaf)][_0x45b055(0xa8)](_0x12eb7a+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8-beta.1",
|
|
4
4
|
"description": "Runtime CLI for Lovrabet apps, datasets, SQL, Backend Function, skills, and AI agent workflows.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
37
|
+
"node": ">=24.0.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.8-beta.1
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、可恢复 Excel 导入、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、Excel 导入、data import-excel、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
|
|
6
6
|
metadata:
|
|
7
7
|
requires:
|
|
8
8
|
bins: ["lovrabet"]
|
|
9
|
-
node: ">=
|
|
9
|
+
node: ">=24.0.0"
|
|
10
10
|
cliHelp: "lovrabet --help"
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.
|
|
6
|
-
"skillVersion": "2.3.
|
|
5
|
+
"packageVersion": "2.3.8-beta.1",
|
|
6
|
+
"skillVersion": "2.3.8-beta.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"references/lovrabet-user-account.md",
|
|
41
41
|
"references/lovrabet-workspace.md"
|
|
42
42
|
],
|
|
43
|
-
"digest": "
|
|
43
|
+
"digest": "eff5dad531db2b3a864dc67dead9c562ffa390920882329225c3303bc87aa13a"
|
|
44
44
|
}
|