@lovrabet/lovrabet-cli 2.3.5 → 2.3.6-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/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.d.ts +10 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.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.d.ts +3 -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.d.ts +3 -0
- package/lib/services/dataset-import/image-bytes.js +1 -0
- package/lib/services/dataset-import/image-ooxml.d.ts +10 -0
- package/lib/services/dataset-import/image-ooxml.js +1 -0
- package/lib/services/dataset-import/image-runner.d.ts +48 -0
- package/lib/services/dataset-import/image-runner.js +1 -0
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.d.ts +10 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/services/dataset-import/types.d.ts +28 -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 +4 -1
- package/skills/lovrabet/SKILL.md +3 -1
- package/skills/lovrabet/references/lovrabet-excel-import.md +19 -0
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e7770,_0xc83427){const _0x6c192b=a168_0x5a11,_0x11fa3e=_0x1e7770();while(!![]){try{const _0x159f84=parseInt(_0x6c192b(0x167))/0x1+parseInt(_0x6c192b(0x166))/0x2+parseInt(_0x6c192b(0x163))/0x3*(-parseInt(_0x6c192b(0x15d))/0x4)+parseInt(_0x6c192b(0x158))/0x5+parseInt(_0x6c192b(0x15f))/0x6*(parseInt(_0x6c192b(0x15e))/0x7)+-parseInt(_0x6c192b(0x154))/0x8+-parseInt(_0x6c192b(0x165))/0x9;if(_0x159f84===_0xc83427)break;else _0x11fa3e['push'](_0x11fa3e['shift']());}catch(_0x7a311a){_0x11fa3e['push'](_0x11fa3e['shift']());}}}(a168_0x636e,0xbc1b3));function a168_0x5a11(_0x2d3f13,_0x1b2e54){_0x2d3f13=_0x2d3f13-0x153;const _0x636ec6=a168_0x636e();let _0x5a119e=_0x636ec6[_0x2d3f13];return _0x5a119e;}import a168_0x4babd9 from'semver';function a168_0x636e(){const _0x2d595b=['Minimum\x20supported:\x20','minimumVersionMessage','stableVersion','307032vReUGl','minimumVersion','Current\x20version:\x20','Recommended\x20stable:\x20','2843760rTXUuw','belowMinimum','latest','validation','Upgrade\x20command:\x20','65512OVeegl','168KxtrTs','74904bbZdKE','npm\x20install\x20-g\x20','unavailable','join','240ZNhzeB','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','2270961HLBrVX','2489618KLxyXj','258254AcGGvD','filter'];a168_0x636e=function(){return _0x2d595b;};return a168_0x636e();}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(_0x2704ac,_0x12c640){const _0xd8e85a=a168_0x5a11,_0x136bd0=a168_0x4babd9['valid'](_0x2704ac)===_0x2704ac,_0x294d0d=_0x12c640?.[_0xd8e85a(0x153)]??null,_0x572323=_0x12c640?.[_0xd8e85a(0x155)]??null,_0x51f55c=Boolean(_0x136bd0&&_0x294d0d&&a168_0x4babd9['lt'](_0x2704ac,_0x294d0d)),_0x4a3645=Boolean(_0x136bd0&&_0x572323&&a168_0x4babd9['lt'](_0x2704ac,_0x572323));return{'currentVersion':_0x2704ac,'stableVersion':_0x294d0d,'minimumVersion':_0x572323,'needsUpgrade':_0x51f55c||_0x4a3645,'belowMinimum':_0x4a3645,'upgradeMessage':_0x12c640?.['upgradeMessage'],'minimumVersionMessage':_0x12c640?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x1f9d06){const _0x34ea1a=a168_0x5a11;return _0x34ea1a(0x160)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x1f9d06['stableVersion']??_0x34ea1a(0x15a));}export function assertCliVersionSupported(_0x4bb20a){const _0x3514c3=a168_0x5a11;if(!_0x4bb20a[_0x3514c3(0x159)])return;const _0x5edbb2=[_0x4bb20a[_0x3514c3(0x16a)],_0x3514c3(0x156)+_0x4bb20a['currentVersion'],_0x3514c3(0x169)+_0x4bb20a[_0x3514c3(0x155)],_0x3514c3(0x157)+(_0x4bb20a[_0x3514c3(0x153)]??_0x3514c3(0x161)),_0x3514c3(0x15c)+getCliUpgradeCommand(_0x4bb20a)][_0x3514c3(0x168)](Boolean)[_0x3514c3(0x162)]('\x0a');throw CliErrors[_0x3514c3(0x15b)](_0x3514c3(0x164),_0x5edbb2);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a169_0xd677(){const _0x4f5081=['application/json','33165cjgxFQ','object','268925SzkiXf','string','json','420yqFbrw','2020152vGkHRr','latestVersion','3528172OdXtVM','minVersion','3992FAbxjP','valid','recommendedVersion','cli','then','5080565sjEMOE','upgradeMessage','trim','stableVersion','now','timeout','minimumVersion','714924UMPoKm','63954zRWjmV'];a169_0xd677=function(){return _0x4f5081;};return a169_0xd677();}(function(_0x3aacb1,_0x154e8e){const _0x33c303=a169_0x1252,_0x2c27cd=_0x3aacb1();while(!![]){try{const _0x14f92a=parseInt(_0x33c303(0x182))/0x1+parseInt(_0x33c303(0x186))/0x2+parseInt(_0x33c303(0x17d))/0x3+parseInt(_0x33c303(0x188))/0x4+-parseInt(_0x33c303(0x185))/0x5*(-parseInt(_0x33c303(0x17e))/0x6)+-parseInt(_0x33c303(0x176))/0x7+parseInt(_0x33c303(0x18a))/0x8*(-parseInt(_0x33c303(0x180))/0x9);if(_0x14f92a===_0x154e8e)break;else _0x2c27cd['push'](_0x2c27cd['shift']());}catch(_0x1b9dbb){_0x2c27cd['push'](_0x2c27cd['shift']());}}}(a169_0xd677,0xb23f2));import a169_0x164a28 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(_0x5afa2f){const _0x126379=a169_0x1252;return typeof _0x5afa2f===_0x126379(0x183)&&_0x5afa2f[_0x126379(0x178)]()?_0x5afa2f[_0x126379(0x178)]():null;}function pickStrictSemver(_0x594541){const _0x2ead22=a169_0x1252,_0x498825=pickString(_0x594541);return _0x498825&&a169_0x164a28[_0x2ead22(0x18b)](_0x498825)===_0x498825?_0x498825:null;}export function normalizeCliVersionPolicy(_0x226158){const _0x2d213f=a169_0x1252;if(!_0x226158||typeof _0x226158!==_0x2d213f(0x181))return null;const _0x3ddb87=_0x226158,_0x42f6f8=_0x3ddb87[_0x2d213f(0x18d)]&&typeof _0x3ddb87[_0x2d213f(0x18d)]===_0x2d213f(0x181)?_0x3ddb87[_0x2d213f(0x18d)]:_0x3ddb87,_0x191ecc=pickStrictSemver(_0x42f6f8[_0x2d213f(0x179)]??_0x42f6f8[_0x2d213f(0x187)]??_0x42f6f8[_0x2d213f(0x18c)]),_0x20f338=pickStrictSemver(_0x42f6f8[_0x2d213f(0x17c)]??_0x42f6f8[_0x2d213f(0x189)]);if(!_0x191ecc&&!_0x20f338)return null;if(_0x191ecc&&_0x20f338&&a169_0x164a28['gt'](_0x20f338,_0x191ecc))return null;return{'stableVersion':_0x191ecc,'minimumVersion':_0x20f338,'upgradeMessage':pickString(_0x42f6f8[_0x2d213f(0x177)])??undefined,'minimumVersionMessage':pickString(_0x42f6f8['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0xa116b8=a169_0x1252;try{const _0xc59030=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xa116b8(0x17f)},'signal':AbortSignal[_0xa116b8(0x17b)](FETCH_TIMEOUT_MS)});if(!_0xc59030['ok'])return null;return normalizeCliVersionPolicy(await _0xc59030[_0xa116b8(0x184)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;function a169_0x1252(_0x299861,_0x459453){_0x299861=_0x299861-0x176;const _0xd67713=a169_0xd677();let _0x1252b=_0xd67713[_0x299861];return _0x1252b;}export async function getCliVersionPolicy(){const _0x4eae7a=a169_0x1252,_0x488a63=Date[_0x4eae7a(0x17a)]();if(hasCachedPolicy){const _0x3f9a28=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x488a63-cachedAt<_0x3f9a28)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x4eae7a(0x18e)](_0x493d8b=>{return cachedPolicy=_0x493d8b,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x493d8b;})['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 a170_0x2ae7dd=a170_0x299f;(function(_0x2c13ad,_0x561a61){const _0x2d4b07=a170_0x299f,_0x425658=_0x2c13ad();while(!![]){try{const _0x5d8dd4=parseInt(_0x2d4b07(0x1aa))/0x1+-parseInt(_0x2d4b07(0x1cf))/0x2*(parseInt(_0x2d4b07(0x1c8))/0x3)+-parseInt(_0x2d4b07(0x1af))/0x4+parseInt(_0x2d4b07(0x1ca))/0x5+parseInt(_0x2d4b07(0x1d5))/0x6+-parseInt(_0x2d4b07(0x1a6))/0x7*(parseInt(_0x2d4b07(0x1a9))/0x8)+parseInt(_0x2d4b07(0x1c0))/0x9;if(_0x5d8dd4===_0x561a61)break;else _0x425658['push'](_0x425658['shift']());}catch(_0x4027fe){_0x425658['push'](_0x425658['shift']());}}}(a170_0x4257,0x3085b));import a170_0x2b4cc0 from'winston';function a170_0x4257(){const _0x1751a5=['errors','readLogs','trim','filter','643251yqLvke','dirname','1842115GMypWt','currentRawCommand','format','createLogger','combine','2GMSxrF','winstonLogger','clearLogs','File','success','duration','246348MjHjrg','error','command','transports','green','message','stringify','Failed\x20to\x20clear\x20logs:','rawCommand','210791TGjoyT','utf8','blue','96Uyyvkq','184126uAAupd','toISOString','unknown','parse','Failed\x20to\x20read\x20logs:','675368zWKXJv','timestamp','map','Failed:\x20','red','info','logFileName','split','getWinstonInstance','now','logTask','level','existsSync','logFilePath','details','Starting:\x20','writeFileSync','3147795VaESlH','warn','addColors','setRawCommand'];a170_0x4257=function(){return _0x1751a5;};return a170_0x4257();}import a170_0x166ab3 from'node:fs';import a170_0x292809 from'node:path';function a170_0x299f(_0x38f7ad,_0xc1154){_0x38f7ad=_0x38f7ad-0x1a6;const _0x425747=a170_0x4257();let _0x299f9c=_0x425747[_0x38f7ad];return _0x299f9c;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a170_0x2ae7dd(0x1bc)]='';[a170_0x2ae7dd(0x1cb)]='';constructor(){}[a170_0x2ae7dd(0x1c3)](_0x2af8be){const _0x3905c5=a170_0x2ae7dd;this[_0x3905c5(0x1cb)]=_0x2af8be;}['setLogPath'](_0xd97824){const _0x24dab2=a170_0x2ae7dd;this[_0x24dab2(0x1bc)]=a170_0x292809['join'](_0xd97824,PRODUCT_CONFIG[_0x24dab2(0x1b5)]),this[_0x24dab2(0x1d0)]&&this['winstonLogger']['clear'](),this['initWinstonLogger']();}['initWinstonLogger'](){const _0x2c26b3=a170_0x2ae7dd,_0x481af4=a170_0x292809[_0x2c26b3(0x1c9)](this[_0x2c26b3(0x1bc)]);!a170_0x166ab3['existsSync'](_0x481af4)&&a170_0x166ab3['mkdirSync'](_0x481af4,{'recursive':!![]});const _0x4e3ad0=a170_0x2b4cc0['format'][_0x2c26b3(0x1ce)](a170_0x2b4cc0[_0x2c26b3(0x1cc)][_0x2c26b3(0x1b0)](),a170_0x2b4cc0[_0x2c26b3(0x1cc)][_0x2c26b3(0x1c4)]({'stack':!![]}),a170_0x2b4cc0[_0x2c26b3(0x1cc)]['printf'](_0x299dd5=>{const _0x3df00c=_0x2c26b3,_0x159dfc={'timestamp':_0x299dd5['timestamp']||new Date()[_0x3df00c(0x1ab)](),'level':_0x299dd5[_0x3df00c(0x1ba)]||_0x3df00c(0x1b4),'command':_0x299dd5[_0x3df00c(0x1d7)]||_0x3df00c(0x1ac),'rawCommand':_0x299dd5[_0x3df00c(0x1dd)]||this[_0x3df00c(0x1cb)]||undefined,'message':_0x299dd5[_0x3df00c(0x1da)]||'','duration':_0x299dd5[_0x3df00c(0x1d4)]||undefined,'details':_0x299dd5[_0x3df00c(0x1bd)]||undefined};return JSON[_0x3df00c(0x1db)](_0x159dfc);}));this[_0x2c26b3(0x1d0)]=a170_0x2b4cc0[_0x2c26b3(0x1cd)]({'level':_0x2c26b3(0x1b4),'format':_0x4e3ad0,'transports':[new a170_0x2b4cc0[(_0x2c26b3(0x1d8))][(_0x2c26b3(0x1d2))]({'filename':this[_0x2c26b3(0x1bc)],'level':_0x2c26b3(0x1b4)})],'silent':![]}),a170_0x2b4cc0[_0x2c26b3(0x1c2)]({'success':_0x2c26b3(0x1d9),'error':_0x2c26b3(0x1b3),'warn':'yellow','info':_0x2c26b3(0x1a8)});}[a170_0x2ae7dd(0x1b4)](_0x4f51ae,_0x4be719,_0x3e634a){const _0x2ad862=a170_0x2ae7dd;if(!this[_0x2ad862(0x1bc)]||!this[_0x2ad862(0x1d0)])return;this['winstonLogger'][_0x2ad862(0x1b4)](_0x4be719,{'command':_0x4f51ae,'details':_0x3e634a});}[a170_0x2ae7dd(0x1d3)](_0x82735e,_0x5d7d75,_0x2c705f,_0x3612b8){const _0x65fcae=a170_0x2ae7dd;if(!this[_0x65fcae(0x1bc)]||!this[_0x65fcae(0x1d0)])return;this[_0x65fcae(0x1d0)]['log']('info',_0x5d7d75,{'level':'success','command':_0x82735e,'duration':_0x2c705f,'details':_0x3612b8});}[a170_0x2ae7dd(0x1d6)](_0x433260,_0x214ff6,_0x5d6184){const _0x35d29f=a170_0x2ae7dd;if(!this[_0x35d29f(0x1bc)]||!this[_0x35d29f(0x1d0)])return;this[_0x35d29f(0x1d0)][_0x35d29f(0x1d6)](_0x214ff6,{'command':_0x433260,'details':_0x5d6184});}[a170_0x2ae7dd(0x1c1)](_0x350d39,_0x397f50,_0x3da544){const _0x5ddf4b=a170_0x2ae7dd;if(!this[_0x5ddf4b(0x1bc)]||!this[_0x5ddf4b(0x1d0)])return;this['winstonLogger'][_0x5ddf4b(0x1c1)](_0x397f50,{'command':_0x350d39,'details':_0x3da544});}async[a170_0x2ae7dd(0x1b9)](_0x4430e7,_0x4dfb45,_0x30d5bc){const _0x3bc634=a170_0x2ae7dd,_0x3a4497=Date[_0x3bc634(0x1b8)]();this[_0x3bc634(0x1b4)](_0x4430e7,_0x3bc634(0x1be)+_0x4dfb45);try{const _0x59946d=await _0x30d5bc(),_0x16a6b3=Date[_0x3bc634(0x1b8)]()-_0x3a4497;return this[_0x3bc634(0x1d3)](_0x4430e7,'Completed:\x20'+_0x4dfb45,_0x16a6b3),_0x59946d;}catch(_0x3cf8d2){const _0x31e063=Date[_0x3bc634(0x1b8)]()-_0x3a4497;this[_0x3bc634(0x1d6)](_0x4430e7,_0x3bc634(0x1b2)+_0x4dfb45,{'error':_0x3cf8d2 instanceof Error?_0x3cf8d2[_0x3bc634(0x1da)]:String(_0x3cf8d2),'duration':_0x31e063});throw _0x3cf8d2;}}[a170_0x2ae7dd(0x1c5)](){const _0x2c358b=a170_0x2ae7dd;try{if(!a170_0x166ab3[_0x2c358b(0x1bb)](this['logFilePath']))return[];const _0x2939d0=a170_0x166ab3['readFileSync'](this['logFilePath'],_0x2c358b(0x1a7));return _0x2939d0[_0x2c358b(0x1b6)](/\r?\n/)[_0x2c358b(0x1c7)](_0x4e5513=>_0x4e5513[_0x2c358b(0x1c6)]())[_0x2c358b(0x1b1)](_0x1f16ae=>JSON[_0x2c358b(0x1ad)](_0x1f16ae));}catch(_0x520b1c){return console[_0x2c358b(0x1c1)](_0x2c358b(0x1ae),_0x520b1c),[];}}[a170_0x2ae7dd(0x1d1)](){const _0x5b1ab7=a170_0x2ae7dd;try{a170_0x166ab3[_0x5b1ab7(0x1bb)](this[_0x5b1ab7(0x1bc)])&&a170_0x166ab3[_0x5b1ab7(0x1bf)](this[_0x5b1ab7(0x1bc)],'',_0x5b1ab7(0x1a7));}catch(_0x3d11a8){console[_0x5b1ab7(0x1c1)](_0x5b1ab7(0x1dc),_0x3d11a8);}}[a170_0x2ae7dd(0x1b7)](){const _0x17a673=a170_0x2ae7dd;return this[_0x17a673(0x1d0)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a171_0x3a86cd=a171_0x4146;(function(_0x4ea84b,_0x39d9fa){const _0x40a731=a171_0x4146,_0x50affe=_0x4ea84b();while(!![]){try{const _0x2401cb=parseInt(_0x40a731(0x15c))/0x1*(parseInt(_0x40a731(0x149))/0x2)+parseInt(_0x40a731(0x152))/0x3*(parseInt(_0x40a731(0x154))/0x4)+-parseInt(_0x40a731(0x15d))/0x5+-parseInt(_0x40a731(0x148))/0x6*(parseInt(_0x40a731(0x14b))/0x7)+-parseInt(_0x40a731(0x14c))/0x8*(-parseInt(_0x40a731(0x159))/0x9)+parseInt(_0x40a731(0x15f))/0xa+parseInt(_0x40a731(0x14a))/0xb*(-parseInt(_0x40a731(0x151))/0xc);if(_0x2401cb===_0x39d9fa)break;else _0x50affe['push'](_0x50affe['shift']());}catch(_0x24ccf1){_0x50affe['push'](_0x50affe['shift']());}}}(a171_0x33d6,0xa4d5e));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a171_0x3a86cd(0x15e)]),MIN_SAFE_INTEGER=BigInt(Number[a171_0x3a86cd(0x15b)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x48c050){const _0x1aefe5=a171_0x3a86cd;if(_0x48c050[_0x1aefe5(0x150)]('.')||_0x48c050['includes']('e')||_0x48c050['includes']('E'))return![];const _0x8bc1db=BigInt(_0x48c050);return _0x8bc1db>MAX_SAFE_INTEGER||_0x8bc1db<MIN_SAFE_INTEGER;}function a171_0x4146(_0x2c6cfd,_0x2eee45){_0x2c6cfd=_0x2c6cfd-0x148;const _0x33d632=a171_0x33d6();let _0x4146d4=_0x33d632[_0x2c6cfd];return _0x4146d4;}function quoteUnsafeIntegerLiterals(_0x282d44){const _0x4368eb=a171_0x3a86cd;let _0x3802c0='',_0x3990b6=![],_0x1baacd=![];for(let _0x17674e=0x0;_0x17674e<_0x282d44[_0x4368eb(0x14f)];){const _0x3f088f=_0x282d44[_0x17674e];if(_0x3990b6){_0x3802c0+=_0x3f088f,_0x17674e+=0x1;if(_0x1baacd)_0x1baacd=![];else{if(_0x3f088f==='\x5c')_0x1baacd=!![];else _0x3f088f==='\x22'&&(_0x3990b6=![]);}continue;}if(_0x3f088f==='\x22'){_0x3990b6=!![],_0x3802c0+=_0x3f088f,_0x17674e+=0x1;continue;}if(_0x3f088f==='-'||_0x3f088f>='0'&&_0x3f088f<='9'){const _0x49fa4d=JSON_NUMBER_PATTERN[_0x4368eb(0x153)](_0x282d44[_0x4368eb(0x14d)](_0x17674e))?.[0x0];if(_0x49fa4d){_0x3802c0+=isUnsafeIntegerLiteral(_0x49fa4d)?'\x22'+_0x49fa4d+'\x22':_0x49fa4d,_0x17674e+=_0x49fa4d['length'];continue;}}_0x3802c0+=_0x3f088f,_0x17674e+=0x1;}return _0x3802c0;}function a171_0x33d6(){const _0x473c7b=['prototype','text','defineProperty','undefined','135YfMKxi','parse','MIN_SAFE_INTEGER','152639qLisNs','5900315efqhHB','MAX_SAFE_INTEGER','8198170jOgsny','677574AeIPlP','2cTYfzr','6706403NeGKxU','21nUcDhl','562168grTcPE','slice','json','length','includes','12HahHPG','41634CCcKox','exec','224rTHwUX'];a171_0x33d6=function(){return _0x473c7b;};return a171_0x33d6();}export function parseLosslessJson(_0x3fd3fb){const _0x47d94a=a171_0x3a86cd;return JSON[_0x47d94a(0x15a)](quoteUnsafeIntegerLiterals(_0x3fd3fb));}export function installLosslessJsonResponseParser(){const _0x5838b4=a171_0x3a86cd;if(typeof Response===_0x5838b4(0x158))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x5838b4(0x155)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x5838b4(0x14e)),Object['defineProperty'](responseJsonPrototype,_0x5838b4(0x14e),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x38efb8(){const _0x4e00f5=_0x5838b4;return parseLosslessJson(await this[_0x4e00f5(0x156)]());}}),restoreResponseJsonParser=()=>{const _0x39c0c3=_0x5838b4;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x39c0c3(0x157)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x39c0c3(0x14e)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x2ae841,_0x3a5f59){const _0x32a979=a172_0x211a,_0x1111ee=_0x2ae841();while(!![]){try{const _0x256f71=parseInt(_0x32a979(0xe3))/0x1+parseInt(_0x32a979(0xe9))/0x2+parseInt(_0x32a979(0xe8))/0x3+-parseInt(_0x32a979(0xd4))/0x4+parseInt(_0x32a979(0xdb))/0x5+parseInt(_0x32a979(0xd5))/0x6*(parseInt(_0x32a979(0xe5))/0x7)+-parseInt(_0x32a979(0xd1))/0x8*(parseInt(_0x32a979(0xd2))/0x9);if(_0x256f71===_0x3a5f59)break;else _0x1111ee['push'](_0x1111ee['shift']());}catch(_0x3f9fb8){_0x1111ee['push'](_0x1111ee['shift']());}}}(a172_0x44fa,0xb02d0));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;function a172_0x211a(_0x3f02e5,_0x36d7a1){_0x3f02e5=_0x3f02e5-0xce;const _0x44fa86=a172_0x44fa();let _0x211a6a=_0x44fa86[_0x3f02e5];return _0x211a6a;}function a172_0x44fa(){const _0x52c650=['batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','1411116mfCcGf','230728qRzmbz','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','3632pntfFT','39618dRHcjL','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','2872524KqoqMz','8356398GTxrZz','isArray','Invalid\x20JSON\x20for\x20--params:\x20','object','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','test','4465915gkHNYb','map','data\x20update\x20can\x20update\x20at\x20most\x20','validation','isSafeInteger','string','items','number','566603ERsBfG','\x20records\x20per\x20call;\x20received\x20','7PdoUVt','length'];a172_0x44fa=function(){return _0x52c650;};return a172_0x44fa();}export function parseJsonParams(_0x138635){const _0xaa72fa=a172_0x211a;if(!_0x138635)return undefined;try{return parseLosslessJson(_0x138635);}catch{throw CliErrors[_0xaa72fa(0xde)](_0xaa72fa(0xd7)+_0x138635);}}export function parseJsonParamsValue(_0x3b5330){const _0x2595b9=a172_0x211a;if(!_0x3b5330)return undefined;try{return parseLosslessJson(_0x3b5330);}catch{throw CliErrors[_0x2595b9(0xde)](_0x2595b9(0xd7)+_0x3b5330);}}export function parseBatchCreateItemsFromParams(_0x360788){const _0x39222b=a172_0x211a;if(Array[_0x39222b(0xd6)](_0x360788))return _0x360788;if(_0x360788!==null&&_0x360788!==undefined&&typeof _0x360788==='object'&&Array[_0x39222b(0xd6)](_0x360788[_0x39222b(0xe1)]))return _0x360788[_0x39222b(0xe1)];throw CliErrors[_0x39222b(0xde)](_0x39222b(0xe7),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x1c2761,_0x17e202){const _0x3279f2=a172_0x211a;if(typeof _0x1c2761===_0x3279f2(0xe2)&&Number[_0x3279f2(0xdf)](_0x1c2761)&&_0x1c2761>0x0)return _0x1c2761;if(typeof _0x1c2761===_0x3279f2(0xe0)){if(/^[1-9]\d*$/[_0x3279f2(0xda)](_0x1c2761))return _0x1c2761;}throw CliErrors[_0x3279f2(0xde)]('data\x20update\x20--params.'+_0x17e202+_0x3279f2(0xd9));}export function parseUpdateIdsFromParams(_0x5ac464){const _0xa1a89c=a172_0x211a;if(_0x5ac464===null||_0x5ac464===undefined||typeof _0x5ac464!==_0xa1a89c(0xd8)||Array[_0xa1a89c(0xd6)](_0x5ac464))throw CliErrors[_0xa1a89c(0xde)](_0xa1a89c(0xd0),_0xa1a89c(0xd3));const _0x3669ff=_0x5ac464['id'];if(_0x3669ff===undefined||_0x3669ff===null)throw CliErrors[_0xa1a89c(0xde)](_0xa1a89c(0xcf),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x3a05fd=Array[_0xa1a89c(0xd6)](_0x3669ff)?_0x3669ff:[_0x3669ff];if(_0x3a05fd[_0xa1a89c(0xe6)]===0x0)throw CliErrors[_0xa1a89c(0xde)](_0xa1a89c(0xce));if(_0x3a05fd[_0xa1a89c(0xe6)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0xa1a89c(0xde)](_0xa1a89c(0xdd)+MAX_DATA_UPDATE_IDS+_0xa1a89c(0xe4)+_0x3a05fd[_0xa1a89c(0xe6)]+'.');return _0x3a05fd[_0xa1a89c(0xdc)]((_0x3646d9,_0x4c0fc)=>parseDataUpdateId(_0x3646d9,Array[_0xa1a89c(0xd6)](_0x3669ff)?'id['+_0x4c0fc+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x444446,_0x761ce7){const _0x1504d0=a172_0x211a;if(Array[_0x1504d0(0xd6)](_0x444446['id'])&&_0x761ce7['length']>0x1)return{..._0x444446,'id':_0x761ce7['join'](',')};return _0x444446;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x204966,_0x18cb8b){const _0xba755a=a173_0x511d,_0x54ea51=_0x204966();while(!![]){try{const _0x4ed65c=parseInt(_0xba755a(0x93))/0x1+-parseInt(_0xba755a(0x95))/0x2+-parseInt(_0xba755a(0x8b))/0x3*(parseInt(_0xba755a(0x92))/0x4)+-parseInt(_0xba755a(0x90))/0x5*(parseInt(_0xba755a(0x96))/0x6)+-parseInt(_0xba755a(0x97))/0x7*(-parseInt(_0xba755a(0x8e))/0x8)+-parseInt(_0xba755a(0x99))/0x9*(-parseInt(_0xba755a(0x8c))/0xa)+-parseInt(_0xba755a(0x91))/0xb;if(_0x4ed65c===_0x18cb8b)break;else _0x54ea51['push'](_0x54ea51['shift']());}catch(_0x157084){_0x54ea51['push'](_0x54ea51['shift']());}}}(a173_0x840f,0xcb5aa));function a173_0x511d(_0x4dd821,_0x3c87da){_0x4dd821=_0x4dd821-0x8b;const _0x840f41=a173_0x840f();let _0x511d3e=_0x840f41[_0x4dd821];return _0x511d3e;}function a173_0x840f(){const _0x1ed390=['string','168EGSyCq','isSafeInteger','5615GaaGtL','5798716mLEkVY','40xniTmv','1502775BCGKqK','test','2695052enyKNr','6582PgJrvK','321027yuZZOl','number','123435WcyKFM','39288lKKLNi','1170VmADkL'];a173_0x840f=function(){return _0x1ed390;};return a173_0x840f();}export function normalizePositiveSafeInteger(_0x5203e2){const _0xb1e37b=a173_0x511d;if(typeof _0x5203e2===_0xb1e37b(0x98))return Number['isSafeInteger'](_0x5203e2)&&_0x5203e2>0x0?_0x5203e2:undefined;if(typeof _0x5203e2!==_0xb1e37b(0x8d)||!/^\d+$/[_0xb1e37b(0x94)](_0x5203e2))return undefined;const _0x57fbdd=Number(_0x5203e2);return Number[_0xb1e37b(0x8f)](_0x57fbdd)&&_0x57fbdd>0x0?_0x57fbdd:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a174_0x5307db=a174_0x2ccc;(function(_0xbe91c6,_0x13d873){const _0x1eaf84=a174_0x2ccc,_0x7d8261=_0xbe91c6();while(!![]){try{const _0x7edee=-parseInt(_0x1eaf84(0x15e))/0x1*(parseInt(_0x1eaf84(0x159))/0x2)+parseInt(_0x1eaf84(0x150))/0x3*(-parseInt(_0x1eaf84(0x156))/0x4)+-parseInt(_0x1eaf84(0x161))/0x5+-parseInt(_0x1eaf84(0x15f))/0x6*(-parseInt(_0x1eaf84(0x157))/0x7)+parseInt(_0x1eaf84(0x163))/0x8+-parseInt(_0x1eaf84(0x164))/0x9*(-parseInt(_0x1eaf84(0x15b))/0xa)+parseInt(_0x1eaf84(0x162))/0xb*(-parseInt(_0x1eaf84(0x154))/0xc);if(_0x7edee===_0x13d873)break;else _0x7d8261['push'](_0x7d8261['shift']());}catch(_0x5c2556){_0x7d8261['push'](_0x7d8261['shift']());}}}(a174_0x30d3,0xe783d));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([a174_0x5307db(0x155),a174_0x5307db(0x153)]),SENSITIVE_VALUE_KEYS=new Set([a174_0x5307db(0x155)]);export function isSensitiveKey(_0x5972e6){const _0x4b8a75=a174_0x5307db,_0x5c6ad5=_0x5972e6['replace'](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x4b8a75(0x158)](_0x5c6ad5);}function a174_0x2ccc(_0x5731d4,_0x24d425){_0x5731d4=_0x5731d4-0x150;const _0x30d37a=a174_0x30d3();let _0x2ccc0a=_0x30d37a[_0x5731d4];return _0x2ccc0a;}export function isSensitiveFlagName(_0x233986){const _0x267b36=a174_0x5307db,_0x329994=_0x233986[_0x267b36(0x151)](/_/g,'-')['toLowerCase']();return isSensitiveKey(_0x329994)||SENSITIVE_FLAG_NAMES['has'](_0x329994);}function a174_0x30d3(){const _0x6f8ae5=['255752BSPqiH','has','2010110UMKrUN','entries','object','9XXPpOV','66tNviSM','isArray','3304075uAiyFx','23969DAzwyR','7120440LhxUtO','63eVgZmx','4239cUPjVr','replace','push','variables','2532WkruMj','comment','716oKJebR','748076aBghYx','test'];a174_0x30d3=function(){return _0x6f8ae5;};return a174_0x30d3();}function redactVariableValues(_0x58f60a){const _0x390be1=a174_0x5307db;if(Array['isArray'](_0x58f60a))return _0x58f60a['map'](_0x2adbb2=>redactVariableValues(_0x2adbb2));if(_0x58f60a&&typeof _0x58f60a===_0x390be1(0x15d))return Object['fromEntries'](Object[_0x390be1(0x15c)](_0x58f60a)['map'](([_0x2093d4,_0x3bbbac])=>[_0x2093d4,redactVariableValues(_0x3bbbac)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x20d86d){const _0x261f6d=a174_0x5307db;if(Array[_0x261f6d(0x160)](_0x20d86d))return _0x20d86d['map'](_0x45df7f=>redactSensitiveValue(_0x45df7f));if(!_0x20d86d||typeof _0x20d86d!=='object')return _0x20d86d;const _0x4bfca9={};for(const [_0x23f567,_0x52d1b6]of Object[_0x261f6d(0x15c)](_0x20d86d)){const _0x5720ae=_0x23f567[_0x261f6d(0x151)](/_/g,'-')['toLowerCase']();_0x4bfca9[_0x23f567]=_0x5720ae==='variables'?redactVariableValues(_0x52d1b6):SENSITIVE_VALUE_KEYS[_0x261f6d(0x15a)](_0x5720ae)||isSensitiveKey(_0x23f567)?REDACTED_VALUE:redactSensitiveValue(_0x52d1b6);}return _0x4bfca9;}export function redactCommandArgv(_0x164c16){const _0x3dd936=a174_0x5307db,_0x213f50=[];let _0x2f1a0e=![];for(const _0x5a7574 of _0x164c16){if(_0x2f1a0e){_0x213f50[_0x3dd936(0x152)](REDACTED_VALUE),_0x2f1a0e=![];continue;}const _0x507e96=_0x5a7574['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x507e96||!isSensitiveFlagName(_0x507e96[0x1]??'')){_0x213f50[_0x3dd936(0x152)](_0x5a7574);continue;}_0x213f50[_0x3dd936(0x152)]('--'+_0x507e96[0x1]+(_0x507e96[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x507e96[0x2]===undefined&&(_0x2f1a0e=!![]);}return _0x213f50;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ef48e,_0x3339f3){const _0x3208d8=a175_0x1831,_0x5def02=_0x1ef48e();while(!![]){try{const _0x5a1417=-parseInt(_0x3208d8(0x19b))/0x1+parseInt(_0x3208d8(0x192))/0x2*(-parseInt(_0x3208d8(0x1a6))/0x3)+-parseInt(_0x3208d8(0x18c))/0x4+parseInt(_0x3208d8(0x18f))/0x5*(-parseInt(_0x3208d8(0x1a9))/0x6)+parseInt(_0x3208d8(0x19a))/0x7*(parseInt(_0x3208d8(0x1a2))/0x8)+-parseInt(_0x3208d8(0x19f))/0x9*(-parseInt(_0x3208d8(0x190))/0xa)+-parseInt(_0x3208d8(0x189))/0xb*(-parseInt(_0x3208d8(0x196))/0xc);if(_0x5a1417===_0x3339f3)break;else _0x5def02['push'](_0x5def02['shift']());}catch(_0xe29056){_0x5def02['push'](_0x5def02['shift']());}}}(a175_0x2fb0,0xc792a));import{mkdir,readFile,writeFile}from'node:fs/promises';function a175_0x2fb0(){const _0x14e76a=['upgradeMessage','78Lkyshj','utf8','trim','374NLTzcy','currentVersion','needsUpgrade','3144312OwsXnH','\x20is\x20recommended,\x20current\x20','https://www.npmjs.com/package/','290755aCXlNH','240170LtWpTa','.cache','6cxqGga','belowMinimum','now','join','979404wpEyhf',',\x20run:\x20','parse','update-check.json','7PDIJAn','1246861ZakqmO','true','lastNotifiedVersion','yes','423LSAIkA','filter','lovrabet-cli','29912Chajby','toLowerCase','/v/','object','301164LtmNsB','number'];a175_0x2fb0=function(){return _0x14e76a;};return a175_0x2fb0();}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 a175_0x1831(_0x5a56ac,_0x333880){_0x5a56ac=_0x5a56ac-0x189;const _0x2fb0bb=a175_0x2fb0();let _0x1831ca=_0x2fb0bb[_0x5a56ac];return _0x1831ca;}function isUpdateNoticeDisabled(){const _0x1b276c=a175_0x1831,_0x52677a=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x1b276c(0x1ab)]()[_0x1b276c(0x1a3)]();return _0x52677a==='1'||_0x52677a===_0x1b276c(0x19c)||_0x52677a===_0x1b276c(0x19e);}function cacheRoot(){const _0x539835=a175_0x1831;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x539835(0x191));}export function getUpdateNoticeCachePath(){const _0x2e1799=a175_0x1831;return join(cacheRoot(),_0x2e1799(0x1a1),_0x2e1799(0x199));}async function readUpdateNoticeCache(){const _0x397138=a175_0x1831;try{const _0x220a93=await readFile(getUpdateNoticeCachePath(),_0x397138(0x1aa)),_0x908a72=JSON[_0x397138(0x198)](_0x220a93);if(!_0x908a72||typeof _0x908a72!==_0x397138(0x1a5))return{};return _0x908a72;}catch{return{};}}async function writeUpdateNoticeCache(_0xc6f8b7){const _0xc4664=a175_0x1831;try{const _0x311c3c=getUpdateNoticeCachePath();await mkdir(dirname(_0x311c3c),{'recursive':!![]}),await writeFile(_0x311c3c,JSON['stringify'](_0xc6f8b7,null,0x2)+'\x0a',_0xc4664(0x1aa));}catch{}}function isRecentlyNotified(_0x326267,_0x66162a,_0x2e433e){const _0x12c9fe=a175_0x1831;return _0x326267[_0x12c9fe(0x19d)]===_0x66162a&&typeof _0x326267['lastNotifiedAt']===_0x12c9fe(0x1a7)&&_0x2e433e-_0x326267['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x382c95){const _0x5021e8=a175_0x1831;return _0x5021e8(0x18e)+LOVRABET_NPM_PACKAGE_NAME+_0x5021e8(0x1a4)+_0x382c95;}export async function resolveLatestUpdateNotice(_0x1e175e){const _0x1331bf=a175_0x1831;if(isUpdateNoticeDisabled())return null;try{const _0x1e110d=Date[_0x1331bf(0x194)](),_0xdac419=_0x1e175e??await checkCliVersion(),_0x214bdf=_0xdac419[_0x1331bf(0x18a)],_0x4ac507=_0xdac419['stableVersion'],_0x27d744=await readUpdateNoticeCache();if(!_0x4ac507||!_0xdac419[_0x1331bf(0x18b)]||_0xdac419[_0x1331bf(0x193)])return null;if(isRecentlyNotified(_0x27d744,_0x4ac507,_0x1e110d))return null;const _0x320a7d=getCliUpgradeCommand(_0xdac419);return await writeUpdateNoticeCache({..._0x27d744,'checkedAt':_0x1e110d,'latest':_0x4ac507,'failed':![],'lastNotifiedVersion':_0x4ac507,'lastNotifiedAt':_0x1e110d}),{'command':_0x320a7d,'current':_0x214bdf,'latest':_0x4ac507,'url':buildNpmVersionUrl(_0x4ac507),'message':[_0xdac419[_0x1331bf(0x1a8)],CLI_BIN_NAME+'\x20'+_0x4ac507+_0x1331bf(0x18d)+_0x214bdf+_0x1331bf(0x197)+_0x320a7d][_0x1331bf(0x1a0)](Boolean)[_0x1331bf(0x195)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d0e2b,_0x43d5e8){const _0xa0b302=a176_0x3ee1,_0x4f73df=_0x2d0e2b();while(!![]){try{const _0x5a4171=-parseInt(_0xa0b302(0x1ad))/0x1*(-parseInt(_0xa0b302(0x1af))/0x2)+parseInt(_0xa0b302(0x1b4))/0x3*(parseInt(_0xa0b302(0x1b0))/0x4)+-parseInt(_0xa0b302(0x1b1))/0x5*(parseInt(_0xa0b302(0x1b7))/0x6)+-parseInt(_0xa0b302(0x1b6))/0x7*(-parseInt(_0xa0b302(0x1ac))/0x8)+-parseInt(_0xa0b302(0x1b5))/0x9*(-parseInt(_0xa0b302(0x1b3))/0xa)+-parseInt(_0xa0b302(0x1b2))/0xb*(-parseInt(_0xa0b302(0x1ae))/0xc)+-parseInt(_0xa0b302(0x1b8))/0xd;if(_0x5a4171===_0x43d5e8)break;else _0x4f73df['push'](_0x4f73df['shift']());}catch(_0x4b2283){_0x4f73df['push'](_0x4f73df['shift']());}}}(a176_0x4be5,0xd8eff));function a176_0x3ee1(_0x4d63b7,_0x8c9c07){_0x4d63b7=_0x4d63b7-0x1ac;const _0x4be518=a176_0x4be5();let _0x3ee16e=_0x4be518[_0x4d63b7];return _0x3ee16e;}function a176_0x4be5(){const _0x54c792=['10319754RiEtFk','10241517sYvFlB','488sTlUKE','283391WjAGjL','360Hpysrk','2uLmqor','387796osXXDS','5zqmreK','520751SoArYF','690DgFkLQ','27kHhzpk','82665AMKbRT','21392kDeXkA'];a176_0x4be5=function(){return _0x54c792;};return a176_0x4be5();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x55e5c1=String(GIT_COMMIT);return _0x55e5c1&&_0x55e5c1!=='unknown'?_0x55e5c1:'';}export function getCliVersionDisplay(){const _0x46718f=getCliGitCommit(),_0x11b7fc=BUILD_TIME['slice'](0x0,0xa);if(!_0x46718f||!_0x11b7fc)return VERSION;return VERSION+'\x20('+_0x46718f+',\x20'+_0x11b7fc+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a177_0x5732(){var _0x4249ba=['2950277iEacPQ','948GZpxHP','5571AhOBQv','4451MfAgCq','131807cPVjra','1242EhIruC','1521176TohBrd','10MUDcQA','350795MlFRnI','2088KhGeCm','45hbezPp','write','stderr','134XMrsLw','14966xdkfJb'];a177_0x5732=function(){return _0x4249ba;};return a177_0x5732();}function a177_0x41f1(_0x12e1a7,_0x114398){_0x12e1a7=_0x12e1a7-0x198;var _0x573211=a177_0x5732();var _0x41f1f6=_0x573211[_0x12e1a7];return _0x41f1f6;}(function(_0x274b1b,_0x200949){var _0xad375d=a177_0x41f1,_0x6ecb20=_0x274b1b();while(!![]){try{var _0x2a7b28=parseInt(_0xad375d(0x1a6))/0x1*(-parseInt(_0xad375d(0x1a1))/0x2)+-parseInt(_0xad375d(0x1a5))/0x3*(-parseInt(_0xad375d(0x19d))/0x4)+-parseInt(_0xad375d(0x19c))/0x5+-parseInt(_0xad375d(0x199))/0x6*(-parseInt(_0xad375d(0x1a2))/0x7)+-parseInt(_0xad375d(0x19a))/0x8*(parseInt(_0xad375d(0x19e))/0x9)+-parseInt(_0xad375d(0x19b))/0xa*(parseInt(_0xad375d(0x1a3))/0xb)+parseInt(_0xad375d(0x1a4))/0xc*(parseInt(_0xad375d(0x198))/0xd);if(_0x2a7b28===_0x200949)break;else _0x6ecb20['push'](_0x6ecb20['shift']());}catch(_0x481ab3){_0x6ecb20['push'](_0x6ecb20['shift']());}}}(a177_0x5732,0x98baf));export function writeCliSideChannelLine(_0x51367c){var _0x5893c3=a177_0x41f1;process[_0x5893c3(0x1a0)][_0x5893c3(0x19f)](_0x51367c+'\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.6-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": [
|
|
@@ -94,9 +94,12 @@
|
|
|
94
94
|
"fs-extra": "^11.3.6",
|
|
95
95
|
"ink": "^6.2.3",
|
|
96
96
|
"ink-spinner": "^5.0.0",
|
|
97
|
+
"jpeg-js": "0.4.4",
|
|
97
98
|
"jsdom": "26.1.0",
|
|
98
99
|
"meow": "^13.2.0",
|
|
99
100
|
"mermaid": "11.16.0",
|
|
101
|
+
"omggif": "1.0.10",
|
|
102
|
+
"pngjs": "7.0.0",
|
|
100
103
|
"react": "^19.2.0",
|
|
101
104
|
"saxes": "6.0.0",
|
|
102
105
|
"semver": "^7.7.3",
|
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.
|
|
4
|
+
version: 2.3.6-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:
|
|
@@ -728,3 +728,5 @@ personal KB 使用文件型 create/update。更新前先 `kb detail` 查看正
|
|
|
728
728
|
| 知识库工作流 | [lovrabet-kb-workflow.md](references/lovrabet-kb-workflow.md) |
|
|
729
729
|
| 定时任务工作流 | [lovrabet-schedule-workflow.md](references/lovrabet-schedule-workflow.md) |
|
|
730
730
|
| 日志 | [lovrabet-logs.md](references/lovrabet-logs.md) |
|
|
731
|
+
|
|
732
|
+
METADATA 原生 Excel 图片导入支持浮动图片、Microsoft Excel 单元格 richData 和独立 WPS DISPIMG。图片列映射到 IMAGE 字段;先 `--dry-run` 核验服务端能力,恢复时保留主检查点与 `.rows.json`,详见[可恢复 Excel 导入](references/lovrabet-excel-import.md)。
|
|
@@ -29,3 +29,22 @@ lovrabet data import-excel --appcode <appCode> --code <datasetCode> --file ./rec
|
|
|
29
29
|
报告包含 `sourceRows`、`succeeded`、`unknown`、`conflicts`、`notAttempted`、批次耗时和输出路径。unknown 表示需恢复核对;内容冲突、已导入行不可见或契约/身份漂移时停止,不自动修复或换标记。重复恢复已完成导入会重新核对字段且不新增记录。
|
|
30
30
|
|
|
31
31
|
检查点与报告包含业务数据及恢复标识,保留私有权限,不外发真实 AK 或敏感业务值。该能力不放宽应用可访问性、创建权限或读取权限;非 Excel `batchCreate` 保持原有调用方式。
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# Native Excel image import into UPLOAD fields
|
|
35
|
+
|
|
36
|
+
For `METADATA` datasets, `lovrabet data import-excel` reads embedded PNG, JPEG and GIF pictures from floating DrawingML anchors, Microsoft Excel in-cell rich data, and standalone WPS `DISPIMG` formulas (including `_xlfn.` / `@` forms). The import stores the original embedded image bytes. Excel crop, rotation and filter effects are not rendered into the result. EXIF is not mapped to business fields; metadata already present in the original bytes is retained. Map the picture column header to the confirmed `UPLOAD` field code. Its business value is an ordered `{fileName,filePath}` array; for example, `{"UPLOAD_1":[{"fileName":"photo.png","filePath":"dataset-import/<scope>/<digest>.png"}]}`. Use the durable file path returned by upload. Digest, MIME type and byte size remain upload verification/checkpoint metadata. Pictures in one cell preserve their order; repeated identical bytes upload once per import. Picture-only rows are included. Hidden rows are included with a warning.
|
|
37
|
+
|
|
38
|
+
Existing `IMAGE` fields keep their legacy `{name,type,key,size}` value format and checkpoint compatibility. Do not change a dataset's field type or translate existing persisted rows automatically. The field protocol is bound to the source/schema/checkpoint; switching an original import from IMAGE to UPLOAD is not a resume operation.
|
|
39
|
+
|
|
40
|
+
Start with the existing import command and `--dry-run`. Dry-run validates the local workbook, mapping, image bytes, server capability and request size, then reports image occurrences, unique images and unique bytes. It does not upload images, create records, or write checkpoints/reports. A missing server image capability blocks an import containing pictures; scalar-only imports continue to use the existing import contract.
|
|
41
|
+
|
|
42
|
+
Inspect all validation errors before running the confirmed write. Each image must be no larger than 10 MiB and no larger than 40 million pixels. GIF cumulative frame canvas pixels must also fit that pixel limit. Unique images total at most 50 MiB per import, with at most 10,000 occurrences. Only the selected sheet and mapped UPLOAD or legacy IMAGE columns contribute uploads. Mixed scalar content and pictures in one mapped image cell, missing images, unsupported formulas, external images, ambiguous relationships, pictures spanning multiple business rows, and unmappable absolute anchors stop validation. UPLOAD support here is for embedded images, not arbitrary embedded documents or JSON/URL text in cells.
|
|
43
|
+
|
|
44
|
+
Image imports use a v3 main checkpoint at `--checkpoint` and a row checkpoint at `<checkpoint>.rows.json`. Keep both files together, plus the source workbook and mapping. The main checkpoint binds the actor, application, dataset, runtime domain, source, mapping, schema, image descriptors, batch settings and row strategy. Do not edit or replace checkpoint files. Keep the result report for reconciliation.
|
|
45
|
+
|
|
46
|
+
After an interruption, run the exact command with `--resume`. Resume queries the original image identity before deciding whether a pending upload may continue, then resumes the original row IDs/task markers. A completed image that becomes missing, corrupt or changed stops recovery; it is not automatically re-uploaded. Completed resumes re-read images and records without uploading or creating duplicates. If a row phase was already started but its row checkpoint is missing, stop and reconcile the original outcome before proceeding.
|
|
47
|
+
|
|
48
|
+
UPLOAD values are compared strictly: a changed fileName, filePath, array order or unexpected property stops recovery. Legacy IMAGE comparison ignores known empty server defaults for creator fields and geolocation, while preserving meaningful or unknown metadata differences. For an auto-ID image import previously marked as conflicted, `--resume` may recover only when the original generated row IDs are recorded and fresh readback confirms every original image, row ID and mapped field. All batches are checked before any remaining rows are written. Missing rows, different content, marker collisions, or conflicts without recorded IDs still stop recovery. Keep the original checkpoints; never clear a conflict by editing them or starting the same import with new markers. Scalar-only and fixed-ID conflict handling is unchanged.
|
|
49
|
+
|
|
50
|
+
WebP (including static and animated), SVG/EMF, remote URLs, arbitrary image formulas, shared image formulas, ATTACHMENT fields, and native DB_TABLE image import are unsupported. Animated PNG is also rejected. `DB_TABLE` continues to use its separately documented `batchCreate` workflow, without import checkpoints; do not automatically switch an image import to that route. Business fields never receive base64 data, formulas or temporary signed URLs.
|
|
@@ -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.6-beta.1",
|
|
6
|
+
"skillVersion": "2.3.6-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": "fce58c95a0f9fb29c4927c3df219b69548d6a06c668d0332d00bbf70e7e5fdd2"
|
|
44
44
|
}
|