@lovrabet/lovrabet-cli 2.3.8-beta.3 → 2.3.8-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/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-sdk-errors.d.ts +3 -0
- package/lib/core/kb-sdk-errors.js +1 -0
- package/lib/core/kb-search-client.d.ts +3 -21
- 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/runtime-user-id.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 +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x314f94,_0x53faec){const _0x17d422=a170_0xc851,_0x29d38f=_0x314f94();while(!![]){try{const _0x4b187e=-parseInt(_0x17d422(0x90))/0x1*(-parseInt(_0x17d422(0x93))/0x2)+parseInt(_0x17d422(0x8d))/0x3+-parseInt(_0x17d422(0x8b))/0x4*(-parseInt(_0x17d422(0x8f))/0x5)+parseInt(_0x17d422(0x98))/0x6+-parseInt(_0x17d422(0x88))/0x7+parseInt(_0x17d422(0x96))/0x8+-parseInt(_0x17d422(0x87))/0x9;if(_0x4b187e===_0x53faec)break;else _0x29d38f['push'](_0x29d38f['shift']());}catch(_0x88524b){_0x29d38f['push'](_0x29d38f['shift']());}}}(a170_0xb535,0x42e2d));function a170_0xc851(_0x275a85,_0x1030e6){_0x275a85=_0x275a85-0x85;const _0xb53513=a170_0xb535();let _0xc851a9=_0xb53513[_0x275a85];return _0xc851a9;}import a170_0x3054dc 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(_0x4cf36f,_0x39cd20){const _0x5095b0=a170_0xc851,_0x133684=a170_0x3054dc[_0x5095b0(0x85)](_0x4cf36f)===_0x4cf36f,_0x48526f=_0x39cd20?.[_0x5095b0(0x8c)]??null,_0xd39c40=_0x39cd20?.[_0x5095b0(0x86)]??null,_0x241750=Boolean(_0x133684&&_0x48526f&&a170_0x3054dc['lt'](_0x4cf36f,_0x48526f)),_0x4b79a8=Boolean(_0x133684&&_0xd39c40&&a170_0x3054dc['lt'](_0x4cf36f,_0xd39c40));return{'currentVersion':_0x4cf36f,'stableVersion':_0x48526f,'minimumVersion':_0xd39c40,'needsUpgrade':_0x241750||_0x4b79a8,'belowMinimum':_0x4b79a8,'upgradeMessage':_0x39cd20?.['upgradeMessage'],'minimumVersionMessage':_0x39cd20?.[_0x5095b0(0x95)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x1949b1){const _0x4267cd=a170_0xc851;return'npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x1949b1[_0x4267cd(0x8c)]??'latest');}function a170_0xb535(){const _0xdda2c5=['7330077bAaEol','839328WEskDw','filter','unavailable','4ZjGPOC','stableVersion','147858jdhIPH','Upgrade\x20command:\x20','1449995JqUclV','193643xuejFk','Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','4yIBJrc','Current\x20version:\x20','minimumVersionMessage','55656ZXxdLP','Minimum\x20supported:\x20','2848764ELBUQY','belowMinimum','valid','minimumVersion'];a170_0xb535=function(){return _0xdda2c5;};return a170_0xb535();}export function assertCliVersionSupported(_0x526b16){const _0x5c06bc=a170_0xc851;if(!_0x526b16[_0x5c06bc(0x99)])return;const _0x5370a1=[_0x526b16['minimumVersionMessage'],_0x5c06bc(0x94)+_0x526b16['currentVersion'],_0x5c06bc(0x97)+_0x526b16[_0x5c06bc(0x86)],_0x5c06bc(0x91)+(_0x526b16[_0x5c06bc(0x8c)]??_0x5c06bc(0x8a)),_0x5c06bc(0x8e)+getCliUpgradeCommand(_0x526b16)][_0x5c06bc(0x89)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x5c06bc(0x92),_0x5370a1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x58450a,_0x3e5e9a){const _0x297c8b=a171_0xe1e7,_0x1b1388=_0x58450a();while(!![]){try{const _0xd44ac6=parseInt(_0x297c8b(0x6e))/0x1*(parseInt(_0x297c8b(0x6b))/0x2)+parseInt(_0x297c8b(0x66))/0x3+parseInt(_0x297c8b(0x6c))/0x4*(parseInt(_0x297c8b(0x67))/0x5)+-parseInt(_0x297c8b(0x6f))/0x6+parseInt(_0x297c8b(0x70))/0x7*(parseInt(_0x297c8b(0x7e))/0x8)+parseInt(_0x297c8b(0x69))/0x9*(-parseInt(_0x297c8b(0x68))/0xa)+-parseInt(_0x297c8b(0x65))/0xb*(-parseInt(_0x297c8b(0x6d))/0xc);if(_0xd44ac6===_0x3e5e9a)break;else _0x1b1388['push'](_0x1b1388['shift']());}catch(_0x39e65f){_0x1b1388['push'](_0x1b1388['shift']());}}}(a171_0x7e6b,0x59a11));import a171_0x143947 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 a171_0x7e6b(){const _0x285b8d=['383018sGzJer','84052HUrzrm','7874796yGNwjJ','1FHJwWC','3128478ivsPTh','3150WbBenb','finally','recommendedVersion','minimumVersion','object','latestVersion','valid','json','then','upgradeMessage','cli','timeout','trim','minVersion','7464nUSmsd','now','11qkibqm','615696epQjlU','5jNMQTq','6053030SysRms','9lzRwlF','stableVersion'];a171_0x7e6b=function(){return _0x285b8d;};return a171_0x7e6b();}function pickString(_0x1e9e8d){const _0x2642e3=a171_0xe1e7;return typeof _0x1e9e8d==='string'&&_0x1e9e8d['trim']()?_0x1e9e8d[_0x2642e3(0x7c)]():null;}function pickStrictSemver(_0x582334){const _0x5b0e07=a171_0xe1e7,_0x17534e=pickString(_0x582334);return _0x17534e&&a171_0x143947[_0x5b0e07(0x76)](_0x17534e)===_0x17534e?_0x17534e:null;}export function normalizeCliVersionPolicy(_0x497e89){const _0x286b38=a171_0xe1e7;if(!_0x497e89||typeof _0x497e89!==_0x286b38(0x74))return null;const _0x4eb388=_0x497e89,_0x2f12d2=_0x4eb388[_0x286b38(0x7a)]&&typeof _0x4eb388[_0x286b38(0x7a)]==='object'?_0x4eb388[_0x286b38(0x7a)]:_0x4eb388,_0x4e41e1=pickStrictSemver(_0x2f12d2[_0x286b38(0x6a)]??_0x2f12d2[_0x286b38(0x75)]??_0x2f12d2[_0x286b38(0x72)]),_0x53d8be=pickStrictSemver(_0x2f12d2[_0x286b38(0x73)]??_0x2f12d2[_0x286b38(0x7d)]);if(!_0x4e41e1&&!_0x53d8be)return null;if(_0x4e41e1&&_0x53d8be&&a171_0x143947['gt'](_0x53d8be,_0x4e41e1))return null;return{'stableVersion':_0x4e41e1,'minimumVersion':_0x53d8be,'upgradeMessage':pickString(_0x2f12d2[_0x286b38(0x79)])??undefined,'minimumVersionMessage':pickString(_0x2f12d2['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0x4caaa3=a171_0xe1e7;try{const _0x35c73a=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x4caaa3(0x7b)](FETCH_TIMEOUT_MS)});if(!_0x35c73a['ok'])return null;return normalizeCliVersionPolicy(await _0x35c73a[_0x4caaa3(0x77)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;function a171_0xe1e7(_0x250beb,_0x5b1d46){_0x250beb=_0x250beb-0x64;const _0x7e6b4c=a171_0x7e6b();let _0xe1e740=_0x7e6b4c[_0x250beb];return _0xe1e740;}export async function getCliVersionPolicy(){const _0x10fe02=a171_0xe1e7,_0x36f2da=Date[_0x10fe02(0x64)]();if(hasCachedPolicy){const _0x52b911=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x36f2da-cachedAt<_0x52b911)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x10fe02(0x78)](_0x372686=>{const _0x40ca6e=_0x10fe02;return cachedPolicy=_0x372686,cachedAt=Date[_0x40ca6e(0x64)](),hasCachedPolicy=!![],_0x372686;})[_0x10fe02(0x71)](()=>{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 a172_0x36b569=a172_0x17ce;function a172_0x17ce(_0xd101ba,_0x636113){_0xd101ba=_0xd101ba-0x150;const _0xaee47e=a172_0xaee4();let _0x17ce82=_0xaee47e[_0xd101ba];return _0x17ce82;}(function(_0x35c927,_0x236482){const _0x25bdce=a172_0x17ce,_0x308ab6=_0x35c927();while(!![]){try{const _0x3fbc18=-parseInt(_0x25bdce(0x16f))/0x1+-parseInt(_0x25bdce(0x17e))/0x2+-parseInt(_0x25bdce(0x169))/0x3+-parseInt(_0x25bdce(0x180))/0x4*(-parseInt(_0x25bdce(0x172))/0x5)+-parseInt(_0x25bdce(0x17a))/0x6+parseInt(_0x25bdce(0x156))/0x7*(-parseInt(_0x25bdce(0x179))/0x8)+-parseInt(_0x25bdce(0x16c))/0x9*(-parseInt(_0x25bdce(0x17f))/0xa);if(_0x3fbc18===_0x236482)break;else _0x308ab6['push'](_0x308ab6['shift']());}catch(_0x4dfc37){_0x308ab6['push'](_0x308ab6['shift']());}}}(a172_0xaee4,0x9274b));import a172_0x2d0256 from'winston';import a172_0x5423ec from'node:fs';function a172_0xaee4(){const _0x53818d=['logFileName','duration','trim','readFileSync','success','setRawCommand','blue','stringify','rawCommand','winstonLogger','unknown','readLogs','map','red','now','combine','1831233BVjwKz','format','warn','45aTrBCy','Failed\x20to\x20clear\x20logs:','error','12708VHuXRU','dirname','timestamp','87370VkQnZS','currentRawCommand','level','join','mkdirSync','logTask','Starting:\x20','142768kfKFFe','5521440UUEBEz','existsSync','initWinstonLogger','yellow','2187442mPppsm','5556370VYooJk','248ATvDkm','details','info','addColors','setLogPath','toISOString','message','utf8','logFilePath','File','createLogger','errors','245LXYnlI','writeFileSync','Completed:\x20'];a172_0xaee4=function(){return _0x53818d;};return a172_0xaee4();}import a172_0x151857 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a172_0x36b569(0x162)];[a172_0x36b569(0x152)]='';['currentRawCommand']='';constructor(){}[a172_0x36b569(0x15e)](_0xd47782){this['currentRawCommand']=_0xd47782;}[a172_0x36b569(0x184)](_0x51ad8e){const _0x5947c5=a172_0x36b569;this[_0x5947c5(0x152)]=a172_0x151857[_0x5947c5(0x175)](_0x51ad8e,PRODUCT_CONFIG[_0x5947c5(0x159)]),this['winstonLogger']&&this[_0x5947c5(0x162)]['clear'](),this[_0x5947c5(0x17c)]();}[a172_0x36b569(0x17c)](){const _0x11ae76=a172_0x36b569,_0x33e4f9=a172_0x151857[_0x11ae76(0x170)](this[_0x11ae76(0x152)]);!a172_0x5423ec[_0x11ae76(0x17b)](_0x33e4f9)&&a172_0x5423ec[_0x11ae76(0x176)](_0x33e4f9,{'recursive':!![]});const _0x51b288=a172_0x2d0256[_0x11ae76(0x16a)][_0x11ae76(0x168)](a172_0x2d0256['format']['timestamp'](),a172_0x2d0256[_0x11ae76(0x16a)][_0x11ae76(0x155)]({'stack':!![]}),a172_0x2d0256[_0x11ae76(0x16a)]['printf'](_0x11da54=>{const _0x38c5cf=_0x11ae76,_0xac30f3={'timestamp':_0x11da54[_0x38c5cf(0x171)]||new Date()[_0x38c5cf(0x185)](),'level':_0x11da54[_0x38c5cf(0x174)]||_0x38c5cf(0x182),'command':_0x11da54['command']||_0x38c5cf(0x163),'rawCommand':_0x11da54[_0x38c5cf(0x161)]||this[_0x38c5cf(0x173)]||undefined,'message':_0x11da54['message']||'','duration':_0x11da54[_0x38c5cf(0x15a)]||undefined,'details':_0x11da54[_0x38c5cf(0x181)]||undefined};return JSON[_0x38c5cf(0x160)](_0xac30f3);}));this['winstonLogger']=a172_0x2d0256[_0x11ae76(0x154)]({'level':'info','format':_0x51b288,'transports':[new a172_0x2d0256['transports'][(_0x11ae76(0x153))]({'filename':this[_0x11ae76(0x152)],'level':_0x11ae76(0x182)})],'silent':![]}),a172_0x2d0256[_0x11ae76(0x183)]({'success':'green','error':_0x11ae76(0x166),'warn':_0x11ae76(0x17d),'info':_0x11ae76(0x15f)});}['info'](_0x581fbe,_0x39ccf9,_0xbe266d){const _0x492429=a172_0x36b569;if(!this[_0x492429(0x152)]||!this[_0x492429(0x162)])return;this[_0x492429(0x162)][_0x492429(0x182)](_0x39ccf9,{'command':_0x581fbe,'details':_0xbe266d});}[a172_0x36b569(0x15d)](_0x4bd5ca,_0x446b5d,_0x2c6f8b,_0x227161){const _0x2b0bb3=a172_0x36b569;if(!this[_0x2b0bb3(0x152)]||!this['winstonLogger'])return;this['winstonLogger']['log'](_0x2b0bb3(0x182),_0x446b5d,{'level':_0x2b0bb3(0x15d),'command':_0x4bd5ca,'duration':_0x2c6f8b,'details':_0x227161});}[a172_0x36b569(0x16e)](_0x1e48b2,_0x10f9a0,_0xce4fc6){const _0x3ca53f=a172_0x36b569;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x3ca53f(0x162)][_0x3ca53f(0x16e)](_0x10f9a0,{'command':_0x1e48b2,'details':_0xce4fc6});}[a172_0x36b569(0x16b)](_0x5244d8,_0x4f83dd,_0x51e420){const _0x291267=a172_0x36b569;if(!this[_0x291267(0x152)]||!this['winstonLogger'])return;this['winstonLogger'][_0x291267(0x16b)](_0x4f83dd,{'command':_0x5244d8,'details':_0x51e420});}async[a172_0x36b569(0x177)](_0x465fba,_0x132593,_0x29be08){const _0x4c9365=a172_0x36b569,_0x3a3e0a=Date['now']();this[_0x4c9365(0x182)](_0x465fba,_0x4c9365(0x178)+_0x132593);try{const _0x5399ed=await _0x29be08(),_0x3d9a95=Date[_0x4c9365(0x167)]()-_0x3a3e0a;return this[_0x4c9365(0x15d)](_0x465fba,_0x4c9365(0x158)+_0x132593,_0x3d9a95),_0x5399ed;}catch(_0xa206d0){const _0x1df199=Date[_0x4c9365(0x167)]()-_0x3a3e0a;this[_0x4c9365(0x16e)](_0x465fba,'Failed:\x20'+_0x132593,{'error':_0xa206d0 instanceof Error?_0xa206d0[_0x4c9365(0x150)]:String(_0xa206d0),'duration':_0x1df199});throw _0xa206d0;}}[a172_0x36b569(0x164)](){const _0x1237b0=a172_0x36b569;try{if(!a172_0x5423ec['existsSync'](this['logFilePath']))return[];const _0x528459=a172_0x5423ec[_0x1237b0(0x15c)](this[_0x1237b0(0x152)],_0x1237b0(0x151));return _0x528459['split'](/\r?\n/)['filter'](_0x2e2144=>_0x2e2144[_0x1237b0(0x15b)]())[_0x1237b0(0x165)](_0xa24a84=>JSON['parse'](_0xa24a84));}catch(_0x9281da){return console[_0x1237b0(0x16b)]('Failed\x20to\x20read\x20logs:',_0x9281da),[];}}['clearLogs'](){const _0x42471d=a172_0x36b569;try{a172_0x5423ec[_0x42471d(0x17b)](this[_0x42471d(0x152)])&&a172_0x5423ec[_0x42471d(0x157)](this[_0x42471d(0x152)],'','utf8');}catch(_0x52b6be){console[_0x42471d(0x16b)](_0x42471d(0x16d),_0x52b6be);}}['getWinstonInstance'](){const _0x3eac93=a172_0x36b569;return this[_0x3eac93(0x162)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a173_0x5cf6c7=a173_0x516c;(function(_0x5894af,_0x5d7e0b){const _0x1706c7=a173_0x516c,_0x209941=_0x5894af();while(!![]){try{const _0x467417=-parseInt(_0x1706c7(0x82))/0x1*(-parseInt(_0x1706c7(0x80))/0x2)+-parseInt(_0x1706c7(0x83))/0x3+parseInt(_0x1706c7(0x78))/0x4*(parseInt(_0x1706c7(0x89))/0x5)+parseInt(_0x1706c7(0x87))/0x6+-parseInt(_0x1706c7(0x86))/0x7*(parseInt(_0x1706c7(0x7a))/0x8)+-parseInt(_0x1706c7(0x85))/0x9*(-parseInt(_0x1706c7(0x84))/0xa)+-parseInt(_0x1706c7(0x8b))/0xb;if(_0x467417===_0x5d7e0b)break;else _0x209941['push'](_0x209941['shift']());}catch(_0x404978){_0x209941['push'](_0x209941['shift']());}}}(a173_0xf64b,0x6adcf));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a173_0x5cf6c7(0x7e)]),MIN_SAFE_INTEGER=BigInt(Number[a173_0x5cf6c7(0x7d)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x292fc4){const _0x4cbc93=a173_0x5cf6c7;if(_0x292fc4[_0x4cbc93(0x88)]('.')||_0x292fc4['includes']('e')||_0x292fc4[_0x4cbc93(0x88)]('E'))return![];const _0x50ad1f=BigInt(_0x292fc4);return _0x50ad1f>MAX_SAFE_INTEGER||_0x50ad1f<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x1b36ff){const _0x34a1e9=a173_0x5cf6c7;let _0x33e420='',_0x87538c=![],_0x26702c=![];for(let _0x345a4d=0x0;_0x345a4d<_0x1b36ff['length'];){const _0x5329e6=_0x1b36ff[_0x345a4d];if(_0x87538c){_0x33e420+=_0x5329e6,_0x345a4d+=0x1;if(_0x26702c)_0x26702c=![];else{if(_0x5329e6==='\x5c')_0x26702c=!![];else _0x5329e6==='\x22'&&(_0x87538c=![]);}continue;}if(_0x5329e6==='\x22'){_0x87538c=!![],_0x33e420+=_0x5329e6,_0x345a4d+=0x1;continue;}if(_0x5329e6==='-'||_0x5329e6>='0'&&_0x5329e6<='9'){const _0x1637c0=JSON_NUMBER_PATTERN[_0x34a1e9(0x7c)](_0x1b36ff['slice'](_0x345a4d))?.[0x0];if(_0x1637c0){_0x33e420+=isUnsafeIntegerLiteral(_0x1637c0)?'\x22'+_0x1637c0+'\x22':_0x1637c0,_0x345a4d+=_0x1637c0['length'];continue;}}_0x33e420+=_0x5329e6,_0x345a4d+=0x1;}return _0x33e420;}export function parseLosslessJson(_0x59e254){const _0x473dee=a173_0x5cf6c7;return JSON[_0x473dee(0x79)](quoteUnsafeIntegerLiterals(_0x59e254));}export function installLosslessJsonResponseParser(){const _0x36db5d=a173_0x5cf6c7;if(typeof Response===_0x36db5d(0x81))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x36db5d(0x7b)],originalResponseJsonDescriptor=Object[_0x36db5d(0x7f)](responseJsonPrototype,_0x36db5d(0x8c)),Object['defineProperty'](responseJsonPrototype,_0x36db5d(0x8c),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x28ae08(){const _0x45afe8=_0x36db5d;return parseLosslessJson(await this[_0x45afe8(0x77)]());}}),restoreResponseJsonParser=()=>{const _0x4e9f41=_0x36db5d;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x4e9f41(0x8a)](responseJsonPrototype,_0x4e9f41(0x8c),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x4e9f41(0x8c)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a173_0x516c(_0x3341ab,_0x288db2){_0x3341ab=_0x3341ab-0x77;const _0xf64b8d=a173_0xf64b();let _0x516cd2=_0xf64b8d[_0x3341ab];return _0x516cd2;}function a173_0xf64b(){const _0x483631=['MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','getOwnPropertyDescriptor','1580026MvzwvJ','undefined','1afRPIh','1421550IOUpfn','80fdbaXj','370683gApjTC','44086BEZNZJ','211512rjGLnx','includes','3198210rPlyUi','defineProperty','2367794JnEDiB','json','text','4CIMKyT','parse','848hpMsfz','prototype','exec'];a173_0xf64b=function(){return _0x483631;};return a173_0xf64b();}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49b2e0,_0x1e0273){const _0x12d0b0=a174_0x14bd,_0xf4eecc=_0x49b2e0();while(!![]){try{const _0x551756=-parseInt(_0x12d0b0(0x167))/0x1+-parseInt(_0x12d0b0(0x158))/0x2*(parseInt(_0x12d0b0(0x15d))/0x3)+parseInt(_0x12d0b0(0x16b))/0x4*(parseInt(_0x12d0b0(0x169))/0x5)+parseInt(_0x12d0b0(0x174))/0x6+parseInt(_0x12d0b0(0x159))/0x7+parseInt(_0x12d0b0(0x168))/0x8*(-parseInt(_0x12d0b0(0x15b))/0x9)+parseInt(_0x12d0b0(0x161))/0xa;if(_0x551756===_0x1e0273)break;else _0xf4eecc['push'](_0xf4eecc['shift']());}catch(_0xb564d6){_0xf4eecc['push'](_0xf4eecc['shift']());}}}(a174_0x43fe,0xeb401));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x29f124){const _0x2fa422=a174_0x14bd;if(!_0x29f124)return undefined;try{return parseLosslessJson(_0x29f124);}catch{throw CliErrors['validation'](_0x2fa422(0x163)+_0x29f124);}}function a174_0x14bd(_0xf15d94,_0x32fc62){_0xf15d94=_0xf15d94-0x156;const _0x43fee6=a174_0x43fe();let _0x14bdaa=_0x43fee6[_0xf15d94];return _0x14bdaa;}export function parseJsonParamsValue(_0x3ed833){const _0x1ae4fa=a174_0x14bd;if(!_0x3ed833)return undefined;try{return parseLosslessJson(_0x3ed833);}catch{throw CliErrors[_0x1ae4fa(0x170)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3ed833);}}export function parseBatchCreateItemsFromParams(_0x42569d){const _0x222e38=a174_0x14bd;if(Array[_0x222e38(0x16d)](_0x42569d))return _0x42569d;if(_0x42569d!==null&&_0x42569d!==undefined&&typeof _0x42569d===_0x222e38(0x160)&&Array[_0x222e38(0x16d)](_0x42569d[_0x222e38(0x162)]))return _0x42569d[_0x222e38(0x162)];throw CliErrors['validation'](_0x222e38(0x173),_0x222e38(0x16c));}function a174_0x43fe(){const _0x175b28=['7386694mbnAuz','\x20records\x20per\x20call;\x20received\x20','18bvvFcV','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','1911IZvGTX','join','number','object','43382280iVGvNY','items','Invalid\x20JSON\x20for\x20--params:\x20','string','test','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','1856820XRYbEf','7397176EBkMiT','892660DtDUhz','id[','4BnMBGW','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','isArray','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','validation','data\x20update\x20--params.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','4756524eHZZVR','isSafeInteger','map','length','5322Utclcj'];a174_0x43fe=function(){return _0x175b28;};return a174_0x43fe();}function parseDataUpdateId(_0x2f8206,_0x28a036){const _0x457bfd=a174_0x14bd;if(typeof _0x2f8206===_0x457bfd(0x15f)&&Number[_0x457bfd(0x175)](_0x2f8206)&&_0x2f8206>0x0)return _0x2f8206;if(typeof _0x2f8206===_0x457bfd(0x164)){if(/^[1-9]\d*$/[_0x457bfd(0x165)](_0x2f8206))return _0x2f8206;}throw CliErrors[_0x457bfd(0x170)](_0x457bfd(0x171)+_0x28a036+_0x457bfd(0x172));}export function parseUpdateIdsFromParams(_0x2795a4){const _0x192af2=a174_0x14bd;if(_0x2795a4===null||_0x2795a4===undefined||typeof _0x2795a4!==_0x192af2(0x160)||Array[_0x192af2(0x16d)](_0x2795a4))throw CliErrors[_0x192af2(0x170)](_0x192af2(0x16f),_0x192af2(0x15c));const _0x471caa=_0x2795a4['id'];if(_0x471caa===undefined||_0x471caa===null)throw CliErrors[_0x192af2(0x170)](_0x192af2(0x16e),_0x192af2(0x15c));const _0xcede79=Array[_0x192af2(0x16d)](_0x471caa)?_0x471caa:[_0x471caa];if(_0xcede79['length']===0x0)throw CliErrors[_0x192af2(0x170)](_0x192af2(0x166));if(_0xcede79['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x192af2(0x170)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x192af2(0x15a)+_0xcede79[_0x192af2(0x157)]+'.');return _0xcede79[_0x192af2(0x156)]((_0x3bb87f,_0x1a95bd)=>parseDataUpdateId(_0x3bb87f,Array[_0x192af2(0x16d)](_0x471caa)?_0x192af2(0x16a)+_0x1a95bd+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x225177,_0x452637){const _0x1c21fc=a174_0x14bd;if(Array[_0x1c21fc(0x16d)](_0x225177['id'])&&_0x452637[_0x1c21fc(0x157)]>0x1)return{..._0x225177,'id':_0x452637[_0x1c21fc(0x15e)](',')};return _0x225177;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45b2ee,_0x427613){const _0x42c884=a175_0x3cbb,_0x38e883=_0x45b2ee();while(!![]){try{const _0x4c2a05=-parseInt(_0x42c884(0xdb))/0x1+parseInt(_0x42c884(0xdf))/0x2*(-parseInt(_0x42c884(0xe1))/0x3)+-parseInt(_0x42c884(0xd9))/0x4*(-parseInt(_0x42c884(0xdd))/0x5)+parseInt(_0x42c884(0xe4))/0x6*(parseInt(_0x42c884(0xe5))/0x7)+parseInt(_0x42c884(0xdc))/0x8*(-parseInt(_0x42c884(0xd8))/0x9)+-parseInt(_0x42c884(0xda))/0xa+parseInt(_0x42c884(0xe2))/0xb;if(_0x4c2a05===_0x427613)break;else _0x38e883['push'](_0x38e883['shift']());}catch(_0x318b44){_0x38e883['push'](_0x38e883['shift']());}}}(a175_0x71d3,0x7315a));function a175_0x3cbb(_0x55f9b8,_0x372c56){_0x55f9b8=_0x55f9b8-0xd8;const _0x71d333=a175_0x71d3();let _0x3cbbd4=_0x71d333[_0x55f9b8];return _0x3cbbd4;}export function normalizePositiveSafeInteger(_0x41cf6f){const _0x321f14=a175_0x3cbb;if(typeof _0x41cf6f==='number')return Number['isSafeInteger'](_0x41cf6f)&&_0x41cf6f>0x0?_0x41cf6f:undefined;if(typeof _0x41cf6f!==_0x321f14(0xde)||!/^\d+$/[_0x321f14(0xe0)](_0x41cf6f))return undefined;const _0x2308a9=Number(_0x41cf6f);return Number[_0x321f14(0xe3)](_0x2308a9)&&_0x2308a9>0x0?_0x2308a9:undefined;}function a175_0x71d3(){const _0x521aa6=['33859IOxuqP','1629gUUtKj','14508jltiTh','9123980GhTVyg','536067bNZFYY','35544LCyzjs','810egwnea','string','2riYgYJ','test','539457idwoqK','15156911HaGBmX','isSafeInteger','1164IaXIaO'];a175_0x71d3=function(){return _0x521aa6;};return a175_0x71d3();}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x2f6466=a176_0x42d2;function a176_0x3341(){const _0x297f56=['10xPiAwb','5003801riYzkG','1959456sqyUNe','push','entries','map','4010517HdDCXr','2nTaEaE','match','test','8xKeeDt','comment','18XObgtc','609276mUVcLi','7206174EhLHGU','isArray','1021183CNTdFl','12yklodL','7573800YgprfM','replace','toLowerCase','has','object'];a176_0x3341=function(){return _0x297f56;};return a176_0x3341();}(function(_0x7b052c,_0x185a2f){const _0x15e630=a176_0x42d2,_0x236816=_0x7b052c();while(!![]){try{const _0x26b2cb=parseInt(_0x15e630(0x1e5))/0x1*(-parseInt(_0x15e630(0x1f3))/0x2)+parseInt(_0x15e630(0x1e6))/0x3*(parseInt(_0x15e630(0x1f9))/0x4)+-parseInt(_0x15e630(0x1e7))/0x5+parseInt(_0x15e630(0x1f8))/0x6*(parseInt(_0x15e630(0x1f2))/0x7)+parseInt(_0x15e630(0x1f6))/0x8*(parseInt(_0x15e630(0x1fa))/0x9)+-parseInt(_0x15e630(0x1ec))/0xa*(-parseInt(_0x15e630(0x1ed))/0xb)+-parseInt(_0x15e630(0x1ee))/0xc;if(_0x26b2cb===_0x185a2f)break;else _0x236816['push'](_0x236816['shift']());}catch(_0x4d4224){_0x236816['push'](_0x236816['shift']());}}}(a176_0x3341,0xd7ebf));const REDACTED_VALUE='[REDACTED]',SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a176_0x2f6466(0x1f7),'variables']),SENSITIVE_VALUE_KEYS=new Set([a176_0x2f6466(0x1f7)]);export function isSensitiveKey(_0x29b8cd){const _0x6f6b2b=a176_0x2f6466,_0x523ce4=_0x29b8cd[_0x6f6b2b(0x1e8)](/_/g,'-')[_0x6f6b2b(0x1e9)]();return SENSITIVE_KEY_PATTERN[_0x6f6b2b(0x1f5)](_0x523ce4);}export function isSensitiveFlagName(_0xd471c8){const _0x59639b=a176_0x2f6466,_0x37d61d=_0xd471c8[_0x59639b(0x1e8)](/_/g,'-')[_0x59639b(0x1e9)]();return isSensitiveKey(_0x37d61d)||SENSITIVE_FLAG_NAMES['has'](_0x37d61d);}function redactVariableValues(_0x331fcc){const _0x51adcd=a176_0x2f6466;if(Array[_0x51adcd(0x1fb)](_0x331fcc))return _0x331fcc[_0x51adcd(0x1f1)](_0x3da5e1=>redactVariableValues(_0x3da5e1));if(_0x331fcc&&typeof _0x331fcc===_0x51adcd(0x1eb))return Object['fromEntries'](Object[_0x51adcd(0x1f0)](_0x331fcc)[_0x51adcd(0x1f1)](([_0x11b53a,_0x5a34ce])=>[_0x11b53a,redactVariableValues(_0x5a34ce)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x54e40a){const _0x3d4899=a176_0x2f6466;if(Array[_0x3d4899(0x1fb)](_0x54e40a))return _0x54e40a[_0x3d4899(0x1f1)](_0xa187ed=>redactSensitiveValue(_0xa187ed));if(!_0x54e40a||typeof _0x54e40a!==_0x3d4899(0x1eb))return _0x54e40a;const _0x31a556={};for(const [_0x13b752,_0x1746d4]of Object['entries'](_0x54e40a)){const _0x583a23=_0x13b752[_0x3d4899(0x1e8)](/_/g,'-')['toLowerCase']();_0x31a556[_0x13b752]=_0x583a23==='variables'?redactVariableValues(_0x1746d4):SENSITIVE_VALUE_KEYS[_0x3d4899(0x1ea)](_0x583a23)||isSensitiveKey(_0x13b752)?REDACTED_VALUE:redactSensitiveValue(_0x1746d4);}return _0x31a556;}export function redactCommandArgv(_0x1998f4){const _0x31211f=a176_0x2f6466,_0x2709e0=[];let _0x259401=![];for(const _0x4a1974 of _0x1998f4){if(_0x259401){_0x2709e0[_0x31211f(0x1ef)](REDACTED_VALUE),_0x259401=![];continue;}const _0xfe4c42=_0x4a1974[_0x31211f(0x1f4)](/^--([^=]+)(?:=(.*))?$/);if(!_0xfe4c42||!isSensitiveFlagName(_0xfe4c42[0x1]??'')){_0x2709e0[_0x31211f(0x1ef)](_0x4a1974);continue;}_0x2709e0[_0x31211f(0x1ef)]('--'+_0xfe4c42[0x1]+(_0xfe4c42[0x2]===undefined?'':'='+REDACTED_VALUE)),_0xfe4c42[0x2]===undefined&&(_0x259401=!![]);}return _0x2709e0;}function a176_0x42d2(_0x1b73bf,_0x25c67c){_0x1b73bf=_0x1b73bf-0x1e5;const _0x334109=a176_0x3341();let _0x42d28a=_0x334109[_0x1b73bf];return _0x42d28a;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a177_0x4693(_0x3aee41,_0x1a80a2){_0x3aee41=_0x3aee41-0x125;const _0x4192e0=a177_0x4192();let _0x4693c7=_0x4192e0[_0x3aee41];return _0x4693c7;}(function(_0xb7170,_0x486d3f){const _0x1143a1=a177_0x4693,_0x4723d1=_0xb7170();while(!![]){try{const _0x1f42d0=-parseInt(_0x1143a1(0x130))/0x1+-parseInt(_0x1143a1(0x12f))/0x2+-parseInt(_0x1143a1(0x129))/0x3+-parseInt(_0x1143a1(0x125))/0x4*(-parseInt(_0x1143a1(0x12b))/0x5)+parseInt(_0x1143a1(0x12e))/0x6+parseInt(_0x1143a1(0x12c))/0x7*(parseInt(_0x1143a1(0x128))/0x8)+parseInt(_0x1143a1(0x126))/0x9*(parseInt(_0x1143a1(0x12d))/0xa);if(_0x1f42d0===_0x486d3f)break;else _0x4723d1['push'](_0x4723d1['shift']());}catch(_0x271f64){_0x4723d1['push'](_0x4723d1['shift']());}}}(a177_0x4192,0x26b20));function a177_0x4192(){const _0x535aa4=['9BBBiQR','test','315064YYklUN','42771jQaOZY','string','31505PneUcl','7miWduM','2003090sGaRpk','1432758YUNzlz','378566UUbYzL','236168HJJAwm','number','isSafeInteger','76KWreFo'];a177_0x4192=function(){return _0x535aa4;};return a177_0x4192();}export function normalizeRuntimeUserId(_0x34cea2){const _0x1ed71e=a177_0x4693;if(typeof _0x34cea2===_0x1ed71e(0x131))return Number[_0x1ed71e(0x132)](_0x34cea2)&&_0x34cea2>0x0?String(_0x34cea2):undefined;if(typeof _0x34cea2!==_0x1ed71e(0x12a)||!/^\d+$/[_0x1ed71e(0x127)](_0x34cea2))return undefined;const _0x7abcaf=_0x34cea2['replace'](/^0+/,'');return _0x7abcaf||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b3db8,_0xe858f2){const _0x4d38b3=a178_0x40ae,_0x30f436=_0x1b3db8();while(!![]){try{const _0x4fdae8=parseInt(_0x4d38b3(0x148))/0x1+-parseInt(_0x4d38b3(0x133))/0x2*(parseInt(_0x4d38b3(0x141))/0x3)+-parseInt(_0x4d38b3(0x144))/0x4*(-parseInt(_0x4d38b3(0x142))/0x5)+-parseInt(_0x4d38b3(0x13a))/0x6*(parseInt(_0x4d38b3(0x146))/0x7)+-parseInt(_0x4d38b3(0x136))/0x8*(-parseInt(_0x4d38b3(0x147))/0x9)+-parseInt(_0x4d38b3(0x139))/0xa+parseInt(_0x4d38b3(0x12e))/0xb*(parseInt(_0x4d38b3(0x13d))/0xc);if(_0x4fdae8===_0xe858f2)break;else _0x30f436['push'](_0x30f436['shift']());}catch(_0x5b2e32){_0x30f436['push'](_0x30f436['shift']());}}}(a178_0x329d,0xce78e));import{mkdir,readFile,writeFile}from'node:fs/promises';function a178_0x40ae(_0x5f587e,_0x5e0da9){_0x5f587e=_0x5f587e-0x12d;const _0x329d43=a178_0x329d();let _0x40aef3=_0x329d43[_0x5f587e];return _0x40aef3;}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 _0x1e5d1f=a178_0x40ae,_0x4f34b=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x1e5d1f(0x135)]()['toLowerCase']();return _0x4f34b==='1'||_0x4f34b===_0x1e5d1f(0x13b)||_0x4f34b===_0x1e5d1f(0x143);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}function a178_0x329d(){const _0x391cec=['number','418ypzqRr','stableVersion','currentVersion','object','belowMinimum','297580DuYTYq','\x20is\x20recommended,\x20current\x20','trim','1215352ynWHRb',',\x20run:\x20','lastNotifiedAt','8989880diFkRg','1518koDngL','true','parse','911352PXXHLA','needsUpgrade','/v/','filter','30hRIdpu','1370Waefnk','yes','3728tQbJth','stringify','33551hjBzWJ','63oWCtVB','240478FiDLYN','now'];a178_0x329d=function(){return _0x391cec;};return a178_0x329d();}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'lovrabet-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x3020ab=a178_0x40ae;try{const _0x38ef19=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x4db27b=JSON[_0x3020ab(0x13c)](_0x38ef19);if(!_0x4db27b||typeof _0x4db27b!==_0x3020ab(0x131))return{};return _0x4db27b;}catch{return{};}}async function writeUpdateNoticeCache(_0x5e1236){const _0x26adfa=a178_0x40ae;try{const _0x57ca0b=getUpdateNoticeCachePath();await mkdir(dirname(_0x57ca0b),{'recursive':!![]}),await writeFile(_0x57ca0b,JSON[_0x26adfa(0x145)](_0x5e1236,null,0x2)+'\x0a','utf8');}catch{}}function isRecentlyNotified(_0x2750b7,_0x5672bc,_0xe3bc7d){const _0xea4f93=a178_0x40ae;return _0x2750b7['lastNotifiedVersion']===_0x5672bc&&typeof _0x2750b7['lastNotifiedAt']===_0xea4f93(0x12d)&&_0xe3bc7d-_0x2750b7[_0xea4f93(0x138)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x12cb03){const _0x12d37c=a178_0x40ae;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x12d37c(0x13f)+_0x12cb03;}export async function resolveLatestUpdateNotice(_0x56341c){const _0x1780ae=a178_0x40ae;if(isUpdateNoticeDisabled())return null;try{const _0x273f73=Date[_0x1780ae(0x149)](),_0x379d47=_0x56341c??await checkCliVersion(),_0x3a5606=_0x379d47[_0x1780ae(0x130)],_0x2bbe91=_0x379d47[_0x1780ae(0x12f)],_0x24ba9b=await readUpdateNoticeCache();if(!_0x2bbe91||!_0x379d47[_0x1780ae(0x13e)]||_0x379d47[_0x1780ae(0x132)])return null;if(isRecentlyNotified(_0x24ba9b,_0x2bbe91,_0x273f73))return null;const _0x83c3f4=getCliUpgradeCommand(_0x379d47);return await writeUpdateNoticeCache({..._0x24ba9b,'checkedAt':_0x273f73,'latest':_0x2bbe91,'failed':![],'lastNotifiedVersion':_0x2bbe91,'lastNotifiedAt':_0x273f73}),{'command':_0x83c3f4,'current':_0x3a5606,'latest':_0x2bbe91,'url':buildNpmVersionUrl(_0x2bbe91),'message':[_0x379d47['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x2bbe91+_0x1780ae(0x134)+_0x3a5606+_0x1780ae(0x137)+_0x83c3f4][_0x1780ae(0x140)](Boolean)['join']('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a179_0x528b(_0x37de92,_0x4957af){_0x37de92=_0x37de92-0xdb;const _0x37ad59=a179_0x37ad();let _0x528b95=_0x37ad59[_0x37de92];return _0x528b95;}(function(_0x3e1aef,_0x56382f){const _0xc2a818=a179_0x528b,_0x525610=_0x3e1aef();while(!![]){try{const _0xeb266b=parseInt(_0xc2a818(0xdc))/0x1+-parseInt(_0xc2a818(0xe4))/0x2*(parseInt(_0xc2a818(0xe1))/0x3)+parseInt(_0xc2a818(0xe5))/0x4*(-parseInt(_0xc2a818(0xde))/0x5)+-parseInt(_0xc2a818(0xdb))/0x6+-parseInt(_0xc2a818(0xe0))/0x7+parseInt(_0xc2a818(0xdf))/0x8+parseInt(_0xc2a818(0xe3))/0x9;if(_0xeb266b===_0x56382f)break;else _0x525610['push'](_0x525610['shift']());}catch(_0x166ca1){_0x525610['push'](_0x525610['shift']());}}}(a179_0x37ad,0x60ee1));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x211e1c=a179_0x528b,_0x8997cc=String(GIT_COMMIT);return _0x8997cc&&_0x8997cc!==_0x211e1c(0xdd)?_0x8997cc:'';}function a179_0x37ad(){const _0xd4920=['2829912umiyLL','697601vtZhqV','unknown','475fHrWep','5655224crDHTn','4848291HcSHsL','96oloZQp','slice','8846622hwVkrC','19882JEDxrT','21392ZoPWtZ'];a179_0x37ad=function(){return _0xd4920;};return a179_0x37ad();}export function getCliVersionDisplay(){const _0x489698=a179_0x528b,_0x31fd7f=getCliGitCommit(),_0x2d30b8=BUILD_TIME[_0x489698(0xe2)](0x0,0xa);if(!_0x31fd7f||!_0x2d30b8)return VERSION;return VERSION+'\x20('+_0x31fd7f+',\x20'+_0x2d30b8+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a180_0x1883(){var _0x56ac9b=['116yqAIDV','7DkXczn','74472iyzVls','6392970aEWpst','3037850RoDycy','212984cLJArQ','12ivFPzz','stderr','234586DScCUA','370lCvdhr','write','52602wbcdbw','3189210uEzKqh'];a180_0x1883=function(){return _0x56ac9b;};return a180_0x1883();}function a180_0x457d(_0x413a8e,_0x2178d3){_0x413a8e=_0x413a8e-0x130;var _0x188389=a180_0x1883();var _0x457d5e=_0x188389[_0x413a8e];return _0x457d5e;}(function(_0x2744c2,_0x1b4986){var _0x7e9ece=a180_0x457d,_0x36afa3=_0x2744c2();while(!![]){try{var _0x2fc400=parseInt(_0x7e9ece(0x132))/0x1*(-parseInt(_0x7e9ece(0x136))/0x2)+-parseInt(_0x7e9ece(0x13b))/0x3*(-parseInt(_0x7e9ece(0x130))/0x4)+-parseInt(_0x7e9ece(0x134))/0x5+parseInt(_0x7e9ece(0x13c))/0x6*(-parseInt(_0x7e9ece(0x131))/0x7)+parseInt(_0x7e9ece(0x135))/0x8+parseInt(_0x7e9ece(0x133))/0x9+parseInt(_0x7e9ece(0x139))/0xa*(parseInt(_0x7e9ece(0x138))/0xb);if(_0x2fc400===_0x1b4986)break;else _0x36afa3['push'](_0x36afa3['shift']());}catch(_0x453721){_0x36afa3['push'](_0x36afa3['shift']());}}}(a180_0x1883,0x6d834));export function writeCliSideChannelLine(_0x5109e1){var _0x1320fd=a180_0x457d;process[_0x1320fd(0x137)][_0x1320fd(0x13a)](_0x5109e1+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
-
"version": "2.3.8-beta.
|
|
3
|
+
"version": "2.3.8-beta.4",
|
|
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": [
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@inquirer/prompts": "^8.6.0",
|
|
88
88
|
"@lovrabet/cli-framework": "1.0.5",
|
|
89
|
-
"@lovrabet/sdk": "1.6.1-beta.
|
|
89
|
+
"@lovrabet/sdk": "1.6.1-beta.5",
|
|
90
90
|
"chalk": "^5.6.2",
|
|
91
91
|
"exceljs": "4.4.0",
|
|
92
92
|
"execa": "^9.6.0",
|
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.8-beta.
|
|
4
|
+
version: 2.3.8-beta.4
|
|
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:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.8-beta.
|
|
6
|
-
"skillVersion": "2.3.8-beta.
|
|
5
|
+
"packageVersion": "2.3.8-beta.4",
|
|
6
|
+
"skillVersion": "2.3.8-beta.4",
|
|
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": "14c5bdf9be78b9ddcab0585e96880cc0e9fc2827bbc364d90b006209c2aa4310"
|
|
44
44
|
}
|