@lovrabet/lovrabet-cli 2.3.6-beta.3 → 2.3.6
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-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2bbf3e,_0x3d1c63){const _0x5a6074=a169_0x5000,_0x4d1c5d=_0x2bbf3e();while(!![]){try{const _0x7c648d=parseInt(_0x5a6074(0xdc))/0x1*(parseInt(_0x5a6074(0xd4))/0x2)+-parseInt(_0x5a6074(0xdd))/0x3+-parseInt(_0x5a6074(0xe0))/0x4*(parseInt(_0x5a6074(0xcc))/0x5)+-parseInt(_0x5a6074(0xdf))/0x6+parseInt(_0x5a6074(0xcf))/0x7*(parseInt(_0x5a6074(0xcd))/0x8)+-parseInt(_0x5a6074(0xcb))/0x9+parseInt(_0x5a6074(0xd6))/0xa*(parseInt(_0x5a6074(0xd3))/0xb);if(_0x7c648d===_0x3d1c63)break;else _0x4d1c5d['push'](_0x4d1c5d['shift']());}catch(_0x1f1b0a){_0x4d1c5d['push'](_0x4d1c5d['shift']());}}}(a169_0x4132,0x68123));function a169_0x4132(){const _0x55f243=['upgradeMessage','31dqYkLk','1151118CEbBrn','unavailable','21498OlLiBZ','52EUDhnP','Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','latest','belowMinimum','filter','2552265CSGNUw','133640XVgVvd','21392AGaeVg','currentVersion','2219QjYDbF','minimumVersion','Minimum\x20supported:\x20','stableVersion','44coQhDj','13122loKkIN','join','983910ENMYch','minimumVersionMessage','Current\x20version:\x20','npm\x20install\x20-g\x20','valid'];a169_0x4132=function(){return _0x55f243;};return a169_0x4132();}import a169_0x218c50 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';function a169_0x5000(_0x493293,_0x46ebde){_0x493293=_0x493293-0xc6;const _0x4132bb=a169_0x4132();let _0x50004f=_0x4132bb[_0x493293];return _0x50004f;}export function evaluateCliVersionPolicy(_0x44e6a1,_0x1fa705){const _0x175cc4=a169_0x5000,_0x2dd881=a169_0x218c50[_0x175cc4(0xda)](_0x44e6a1)===_0x44e6a1,_0x207da5=_0x1fa705?.['stableVersion']??null,_0x265a36=_0x1fa705?.[_0x175cc4(0xd0)]??null,_0x1f7f13=Boolean(_0x2dd881&&_0x207da5&&a169_0x218c50['lt'](_0x44e6a1,_0x207da5)),_0x431195=Boolean(_0x2dd881&&_0x265a36&&a169_0x218c50['lt'](_0x44e6a1,_0x265a36));return{'currentVersion':_0x44e6a1,'stableVersion':_0x207da5,'minimumVersion':_0x265a36,'needsUpgrade':_0x1f7f13||_0x431195,'belowMinimum':_0x431195,'upgradeMessage':_0x1fa705?.[_0x175cc4(0xdb)],'minimumVersionMessage':_0x1fa705?.[_0x175cc4(0xd7)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x403b5b){const _0x384957=a169_0x5000;return _0x384957(0xd9)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x403b5b['stableVersion']??_0x384957(0xc8));}export function assertCliVersionSupported(_0x4b7e6a){const _0xde50f0=a169_0x5000;if(!_0x4b7e6a[_0xde50f0(0xc9)])return;const _0x1f380c=[_0x4b7e6a[_0xde50f0(0xd7)],_0xde50f0(0xd8)+_0x4b7e6a[_0xde50f0(0xce)],_0xde50f0(0xd1)+_0x4b7e6a[_0xde50f0(0xd0)],_0xde50f0(0xc6)+(_0x4b7e6a[_0xde50f0(0xd2)]??_0xde50f0(0xde)),'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x4b7e6a)][_0xde50f0(0xca)](Boolean)[_0xde50f0(0xd5)]('\x0a');throw CliErrors['validation'](_0xde50f0(0xc7),_0x1f380c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4543c2,_0x134589){const _0x4df335=a170_0x26c7,_0x5dee83=_0x4543c2();while(!![]){try{const _0x11327d=-parseInt(_0x4df335(0x10f))/0x1+-parseInt(_0x4df335(0x111))/0x2*(parseInt(_0x4df335(0x116))/0x3)+parseInt(_0x4df335(0x10c))/0x4*(-parseInt(_0x4df335(0x11e))/0x5)+parseInt(_0x4df335(0x109))/0x6*(-parseInt(_0x4df335(0x110))/0x7)+-parseInt(_0x4df335(0x11b))/0x8+parseInt(_0x4df335(0x10a))/0x9+parseInt(_0x4df335(0x113))/0xa*(parseInt(_0x4df335(0x11a))/0xb);if(_0x11327d===_0x134589)break;else _0x5dee83['push'](_0x5dee83['shift']());}catch(_0x29fe6c){_0x5dee83['push'](_0x5dee83['shift']());}}}(a170_0x28e7,0x71db1));function a170_0x26c7(_0x3167e8,_0x1f8884){_0x3167e8=_0x3167e8-0x109;const _0x28e7aa=a170_0x28e7();let _0x26c7f1=_0x28e7aa[_0x3167e8];return _0x26c7f1;}import a170_0x5b7e39 from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';function a170_0x28e7(){const _0x4dc768=['540XFgTab','cli','minimumVersion','timeout','11jUKhMs','5931336saniDU','minVersion','latestVersion','378220rRiEYK','73614qPRFNT','1419111vvLKTm','trim','8HflSOC','finally','application/json','4748XnWuLJ','350gEXeBN','5932fOcQoh','upgradeMessage','23534570Btotbh','json','object'];a170_0x28e7=function(){return _0x4dc768;};return a170_0x28e7();}const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x5c780e){const _0x588bee=a170_0x26c7;return typeof _0x5c780e==='string'&&_0x5c780e[_0x588bee(0x10b)]()?_0x5c780e[_0x588bee(0x10b)]():null;}function pickStrictSemver(_0x56e6bc){const _0x2cb375=pickString(_0x56e6bc);return _0x2cb375&&a170_0x5b7e39['valid'](_0x2cb375)===_0x2cb375?_0x2cb375:null;}export function normalizeCliVersionPolicy(_0xc9aac8){const _0x5b44cb=a170_0x26c7;if(!_0xc9aac8||typeof _0xc9aac8!=='object')return null;const _0x3c3384=_0xc9aac8,_0xb89871=_0x3c3384[_0x5b44cb(0x117)]&&typeof _0x3c3384[_0x5b44cb(0x117)]===_0x5b44cb(0x115)?_0x3c3384[_0x5b44cb(0x117)]:_0x3c3384,_0x2f4e97=pickStrictSemver(_0xb89871['stableVersion']??_0xb89871[_0x5b44cb(0x11d)]??_0xb89871['recommendedVersion']),_0x3e2f80=pickStrictSemver(_0xb89871[_0x5b44cb(0x118)]??_0xb89871[_0x5b44cb(0x11c)]);if(!_0x2f4e97&&!_0x3e2f80)return null;if(_0x2f4e97&&_0x3e2f80&&a170_0x5b7e39['gt'](_0x3e2f80,_0x2f4e97))return null;return{'stableVersion':_0x2f4e97,'minimumVersion':_0x3e2f80,'upgradeMessage':pickString(_0xb89871[_0x5b44cb(0x112)])??undefined,'minimumVersionMessage':pickString(_0xb89871['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0xe35157=a170_0x26c7;try{const _0x3cb96c=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xe35157(0x10e)},'signal':AbortSignal[_0xe35157(0x119)](FETCH_TIMEOUT_MS)});if(!_0x3cb96c['ok'])return null;return normalizeCliVersionPolicy(await _0x3cb96c[_0xe35157(0x114)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x1c27cd=a170_0x26c7,_0x5323c6=Date['now']();if(hasCachedPolicy){const _0x972f47=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x5323c6-cachedAt<_0x972f47)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x4a59e3=>{return cachedPolicy=_0x4a59e3,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x4a59e3;})[_0x1c27cd(0x10d)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a171_0x59231e=a171_0x30ad;(function(_0x18a91b,_0x5c43ff){const _0x5f12a1=a171_0x30ad,_0x4a6700=_0x18a91b();while(!![]){try{const _0x1c6724=parseInt(_0x5f12a1(0x136))/0x1+-parseInt(_0x5f12a1(0x13d))/0x2+-parseInt(_0x5f12a1(0x12c))/0x3*(-parseInt(_0x5f12a1(0x13c))/0x4)+-parseInt(_0x5f12a1(0x12f))/0x5*(-parseInt(_0x5f12a1(0x123))/0x6)+parseInt(_0x5f12a1(0x10d))/0x7*(parseInt(_0x5f12a1(0x119))/0x8)+parseInt(_0x5f12a1(0x139))/0x9*(parseInt(_0x5f12a1(0x121))/0xa)+parseInt(_0x5f12a1(0x134))/0xb*(-parseInt(_0x5f12a1(0x109))/0xc);if(_0x1c6724===_0x5c43ff)break;else _0x4a6700['push'](_0x4a6700['shift']());}catch(_0x412f21){_0x4a6700['push'](_0x4a6700['shift']());}}}(a171_0x3acd,0x19f5a));import a171_0x15f3fc from'winston';import a171_0x500326 from'node:fs';import a171_0xfbd222 from'node:path';function a171_0x3acd(){const _0x17267c=['utf8','currentRawCommand','log','2189sqXDtp','existsSync','177391HtEaRa','errors','createLogger','283266OyKkUa','logFilePath','success','159116rckwjq','228164jNvHAd','Failed:\x20','combine','red','17196YSuCVY','split','details','unknown','569513QBADwR','yellow','warn','dirname','format','Completed:\x20','readFileSync','error','addColors','writeFileSync','stringify','printf','8FALSnl','join','clearLogs','logTask','readLogs','info','winstonLogger','setRawCommand','10YKsYmH','now','24690VjPuzv','toISOString','timestamp','transports','setLogPath','message','trim','duration','initWinstonLogger','15ElLpgB','Failed\x20to\x20read\x20logs:','level','20jYZjYB','File'];a171_0x3acd=function(){return _0x17267c;};return a171_0x3acd();}function a171_0x30ad(_0x1e6a82,_0x342926){_0x1e6a82=_0x1e6a82-0x109;const _0x3acd1b=a171_0x3acd();let _0x30ad23=_0x3acd1b[_0x1e6a82];return _0x30ad23;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a171_0x59231e(0x11f)];[a171_0x59231e(0x13a)]='';[a171_0x59231e(0x132)]='';constructor(){}[a171_0x59231e(0x120)](_0x3fd095){const _0x317784=a171_0x59231e;this[_0x317784(0x132)]=_0x3fd095;}[a171_0x59231e(0x127)](_0x3558ed){const _0x99f3fc=a171_0x59231e;this[_0x99f3fc(0x13a)]=a171_0xfbd222[_0x99f3fc(0x11a)](_0x3558ed,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this['winstonLogger']['clear'](),this[_0x99f3fc(0x12b)]();}[a171_0x59231e(0x12b)](){const _0x5ed8a4=a171_0x59231e,_0x367597=a171_0xfbd222[_0x5ed8a4(0x110)](this[_0x5ed8a4(0x13a)]);!a171_0x500326['existsSync'](_0x367597)&&a171_0x500326['mkdirSync'](_0x367597,{'recursive':!![]});const _0x5aa62a=a171_0x15f3fc[_0x5ed8a4(0x111)][_0x5ed8a4(0x13f)](a171_0x15f3fc['format'][_0x5ed8a4(0x125)](),a171_0x15f3fc[_0x5ed8a4(0x111)][_0x5ed8a4(0x137)]({'stack':!![]}),a171_0x15f3fc[_0x5ed8a4(0x111)][_0x5ed8a4(0x118)](_0x3d732b=>{const _0x14f95e=_0x5ed8a4,_0x132ed0={'timestamp':_0x3d732b[_0x14f95e(0x125)]||new Date()[_0x14f95e(0x124)](),'level':_0x3d732b[_0x14f95e(0x12e)]||_0x14f95e(0x11e),'command':_0x3d732b['command']||_0x14f95e(0x10c),'rawCommand':_0x3d732b['rawCommand']||this[_0x14f95e(0x132)]||undefined,'message':_0x3d732b[_0x14f95e(0x128)]||'','duration':_0x3d732b[_0x14f95e(0x12a)]||undefined,'details':_0x3d732b[_0x14f95e(0x10b)]||undefined};return JSON[_0x14f95e(0x117)](_0x132ed0);}));this['winstonLogger']=a171_0x15f3fc[_0x5ed8a4(0x138)]({'level':_0x5ed8a4(0x11e),'format':_0x5aa62a,'transports':[new a171_0x15f3fc[(_0x5ed8a4(0x126))][(_0x5ed8a4(0x130))]({'filename':this[_0x5ed8a4(0x13a)],'level':'info'})],'silent':![]}),a171_0x15f3fc[_0x5ed8a4(0x115)]({'success':'green','error':_0x5ed8a4(0x140),'warn':_0x5ed8a4(0x10e),'info':'blue'});}[a171_0x59231e(0x11e)](_0x45b9ba,_0x290736,_0x543a3f){const _0x4fd89b=a171_0x59231e;if(!this[_0x4fd89b(0x13a)]||!this[_0x4fd89b(0x11f)])return;this['winstonLogger'][_0x4fd89b(0x11e)](_0x290736,{'command':_0x45b9ba,'details':_0x543a3f});}[a171_0x59231e(0x13b)](_0x5dd33f,_0x32e730,_0x2a207e,_0x3d295c){const _0x1ef0e9=a171_0x59231e;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x1ef0e9(0x11f)][_0x1ef0e9(0x133)](_0x1ef0e9(0x11e),_0x32e730,{'level':'success','command':_0x5dd33f,'duration':_0x2a207e,'details':_0x3d295c});}[a171_0x59231e(0x114)](_0x5b8d43,_0x7af897,_0x12667d){const _0x17672d=a171_0x59231e;if(!this[_0x17672d(0x13a)]||!this[_0x17672d(0x11f)])return;this['winstonLogger'][_0x17672d(0x114)](_0x7af897,{'command':_0x5b8d43,'details':_0x12667d});}[a171_0x59231e(0x10f)](_0x5682ce,_0x5addac,_0x16c43f){const _0x58010f=a171_0x59231e;if(!this[_0x58010f(0x13a)]||!this['winstonLogger'])return;this[_0x58010f(0x11f)][_0x58010f(0x10f)](_0x5addac,{'command':_0x5682ce,'details':_0x16c43f});}async[a171_0x59231e(0x11c)](_0x23f3c0,_0x87aceb,_0x2d124f){const _0x2947a8=a171_0x59231e,_0xa7ca5f=Date[_0x2947a8(0x122)]();this['info'](_0x23f3c0,'Starting:\x20'+_0x87aceb);try{const _0x4d3a9d=await _0x2d124f(),_0x4fbf97=Date['now']()-_0xa7ca5f;return this[_0x2947a8(0x13b)](_0x23f3c0,_0x2947a8(0x112)+_0x87aceb,_0x4fbf97),_0x4d3a9d;}catch(_0x3f98f3){const _0x37bf18=Date[_0x2947a8(0x122)]()-_0xa7ca5f;this[_0x2947a8(0x114)](_0x23f3c0,_0x2947a8(0x13e)+_0x87aceb,{'error':_0x3f98f3 instanceof Error?_0x3f98f3[_0x2947a8(0x128)]:String(_0x3f98f3),'duration':_0x37bf18});throw _0x3f98f3;}}[a171_0x59231e(0x11d)](){const _0x485dba=a171_0x59231e;try{if(!a171_0x500326[_0x485dba(0x135)](this[_0x485dba(0x13a)]))return[];const _0x308679=a171_0x500326[_0x485dba(0x113)](this[_0x485dba(0x13a)],_0x485dba(0x131));return _0x308679[_0x485dba(0x10a)](/\r?\n/)['filter'](_0x3bc8c7=>_0x3bc8c7[_0x485dba(0x129)]())['map'](_0x25987a=>JSON['parse'](_0x25987a));}catch(_0x6791f3){return console[_0x485dba(0x10f)](_0x485dba(0x12d),_0x6791f3),[];}}[a171_0x59231e(0x11b)](){const _0x2a4c9f=a171_0x59231e;try{a171_0x500326[_0x2a4c9f(0x135)](this[_0x2a4c9f(0x13a)])&&a171_0x500326[_0x2a4c9f(0x116)](this['logFilePath'],'',_0x2a4c9f(0x131));}catch(_0x5059aa){console[_0x2a4c9f(0x10f)]('Failed\x20to\x20clear\x20logs:',_0x5059aa);}}['getWinstonInstance'](){const _0x3d3441=a171_0x59231e;return this[_0x3d3441(0x11f)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a172_0x4688e4=a172_0x1caa;function a172_0x1caa(_0x2a8942,_0x43dba0){_0x2a8942=_0x2a8942-0x1b5;const _0x51516b=a172_0x5151();let _0x1caa5f=_0x51516b[_0x2a8942];return _0x1caa5f;}(function(_0x605528,_0x347b26){const _0x459274=a172_0x1caa,_0x2e6092=_0x605528();while(!![]){try{const _0x2d4b3a=-parseInt(_0x459274(0x1bb))/0x1+parseInt(_0x459274(0x1c3))/0x2*(-parseInt(_0x459274(0x1b6))/0x3)+parseInt(_0x459274(0x1b9))/0x4*(parseInt(_0x459274(0x1c8))/0x5)+parseInt(_0x459274(0x1c2))/0x6+-parseInt(_0x459274(0x1bd))/0x7+-parseInt(_0x459274(0x1bf))/0x8+parseInt(_0x459274(0x1c9))/0x9;if(_0x2d4b3a===_0x347b26)break;else _0x2e6092['push'](_0x2e6092['shift']());}catch(_0x32d492){_0x2e6092['push'](_0x2e6092['shift']());}}}(a172_0x5151,0xec924));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x4688e4(0x1ba)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x4688e4(0x1b8)]);function a172_0x5151(){const _0x1c38cb=['slice','6tLrcLv','length','MIN_SAFE_INTEGER','44imFgnO','MAX_SAFE_INTEGER','1035338leZnBL','text','241836lhUptZ','defineProperty','8005672SeTRpn','includes','json','11484672sXhcaL','945696HxyTlS','undefined','prototype','exec','getOwnPropertyDescriptor','811345rABkcg','2575944ROtDFm'];a172_0x5151=function(){return _0x1c38cb;};return a172_0x5151();}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x26fdb2){const _0xc89abb=a172_0x4688e4;if(_0x26fdb2['includes']('.')||_0x26fdb2[_0xc89abb(0x1c0)]('e')||_0x26fdb2[_0xc89abb(0x1c0)]('E'))return![];const _0xc28d29=BigInt(_0x26fdb2);return _0xc28d29>MAX_SAFE_INTEGER||_0xc28d29<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x5d4828){const _0x1e5232=a172_0x4688e4;let _0x3fb8da='',_0x37b497=![],_0x47f63e=![];for(let _0x4d9611=0x0;_0x4d9611<_0x5d4828['length'];){const _0x124218=_0x5d4828[_0x4d9611];if(_0x37b497){_0x3fb8da+=_0x124218,_0x4d9611+=0x1;if(_0x47f63e)_0x47f63e=![];else{if(_0x124218==='\x5c')_0x47f63e=!![];else _0x124218==='\x22'&&(_0x37b497=![]);}continue;}if(_0x124218==='\x22'){_0x37b497=!![],_0x3fb8da+=_0x124218,_0x4d9611+=0x1;continue;}if(_0x124218==='-'||_0x124218>='0'&&_0x124218<='9'){const _0x3cb791=JSON_NUMBER_PATTERN[_0x1e5232(0x1c6)](_0x5d4828[_0x1e5232(0x1b5)](_0x4d9611))?.[0x0];if(_0x3cb791){_0x3fb8da+=isUnsafeIntegerLiteral(_0x3cb791)?'\x22'+_0x3cb791+'\x22':_0x3cb791,_0x4d9611+=_0x3cb791[_0x1e5232(0x1b7)];continue;}}_0x3fb8da+=_0x124218,_0x4d9611+=0x1;}return _0x3fb8da;}export function parseLosslessJson(_0x362ffb){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x362ffb));}export function installLosslessJsonResponseParser(){const _0x217b4c=a172_0x4688e4;if(typeof Response===_0x217b4c(0x1c4))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x217b4c(0x1c5)],originalResponseJsonDescriptor=Object[_0x217b4c(0x1c7)](responseJsonPrototype,_0x217b4c(0x1c1)),Object['defineProperty'](responseJsonPrototype,_0x217b4c(0x1c1),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x10e4a3(){const _0x5259af=_0x217b4c;return parseLosslessJson(await this[_0x5259af(0x1bc)]());}}),restoreResponseJsonParser=()=>{const _0x49a64e=_0x217b4c;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x49a64e(0x1be)](responseJsonPrototype,_0x49a64e(0x1c1),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x49a64e(0x1c1)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2abf5b,_0x792f39){const _0x261312=a173_0x1a02,_0x467aca=_0x2abf5b();while(!![]){try{const _0x11ec9b=-parseInt(_0x261312(0x1a5))/0x1*(parseInt(_0x261312(0x1b1))/0x2)+-parseInt(_0x261312(0x1b3))/0x3+-parseInt(_0x261312(0x1ae))/0x4*(-parseInt(_0x261312(0x1b7))/0x5)+-parseInt(_0x261312(0x19f))/0x6*(-parseInt(_0x261312(0x1ac))/0x7)+parseInt(_0x261312(0x1a4))/0x8+parseInt(_0x261312(0x1b8))/0x9+parseInt(_0x261312(0x1bb))/0xa;if(_0x11ec9b===_0x792f39)break;else _0x467aca['push'](_0x467aca['shift']());}catch(_0x3ea25c){_0x467aca['push'](_0x467aca['shift']());}}}(a173_0x1850,0xb88c0));import{CliErrors}from'../errors.js';function a173_0x1a02(_0x30315c,_0x58bf1a){_0x30315c=_0x30315c-0x19f;const _0x1850ee=a173_0x1850();let _0x1a0240=_0x1850ee[_0x30315c];return _0x1a0240;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x2bfcb2){const _0x2320bc=a173_0x1a02;if(!_0x2bfcb2)return undefined;try{return parseLosslessJson(_0x2bfcb2);}catch{throw CliErrors['validation'](_0x2320bc(0x1a2)+_0x2bfcb2);}}export function parseJsonParamsValue(_0x4edb90){const _0x3b2f1c=a173_0x1a02;if(!_0x4edb90)return undefined;try{return parseLosslessJson(_0x4edb90);}catch{throw CliErrors['validation'](_0x3b2f1c(0x1a2)+_0x4edb90);}}function a173_0x1850(){const _0x32eb20=['580614PzecBv','items','validation','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','25vSaQXG','5809221GlFtiQ','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','test','323630DAPEuJ','77754hQgOrm','isSafeInteger','length','Invalid\x20JSON\x20for\x20--params:\x20','join','4305576ySHnBg','1ByvZZz','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','string','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','id[','map','data\x20update\x20--params.','28QpHUXd','number','482956iHRjyk','isArray','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','1844236PFMFKR','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}'];a173_0x1850=function(){return _0x32eb20;};return a173_0x1850();}export function parseBatchCreateItemsFromParams(_0x4d7e58){const _0x4491ce=a173_0x1a02;if(Array['isArray'](_0x4d7e58))return _0x4d7e58;if(_0x4d7e58!==null&&_0x4d7e58!==undefined&&typeof _0x4d7e58==='object'&&Array[_0x4491ce(0x1af)](_0x4d7e58[_0x4491ce(0x1b4)]))return _0x4d7e58[_0x4491ce(0x1b4)];throw CliErrors[_0x4491ce(0x1b5)](_0x4491ce(0x1b2),_0x4491ce(0x1a6));}function parseDataUpdateId(_0xca12c4,_0xb97236){const _0x10e47c=a173_0x1a02;if(typeof _0xca12c4===_0x10e47c(0x1ad)&&Number[_0x10e47c(0x1a0)](_0xca12c4)&&_0xca12c4>0x0)return _0xca12c4;if(typeof _0xca12c4===_0x10e47c(0x1a7)){if(/^[1-9]\d*$/[_0x10e47c(0x1ba)](_0xca12c4))return _0xca12c4;}throw CliErrors[_0x10e47c(0x1b5)](_0x10e47c(0x1ab)+_0xb97236+_0x10e47c(0x1b0));}export function parseUpdateIdsFromParams(_0x33b7b0){const _0x1582fb=a173_0x1a02;if(_0x33b7b0===null||_0x33b7b0===undefined||typeof _0x33b7b0!=='object'||Array[_0x1582fb(0x1af)](_0x33b7b0))throw CliErrors[_0x1582fb(0x1b5)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x1582fb(0x1b9));const _0x41b682=_0x33b7b0['id'];if(_0x41b682===undefined||_0x41b682===null)throw CliErrors[_0x1582fb(0x1b5)](_0x1582fb(0x1a8),_0x1582fb(0x1b9));const _0xd5f109=Array[_0x1582fb(0x1af)](_0x41b682)?_0x41b682:[_0x41b682];if(_0xd5f109[_0x1582fb(0x1a1)]===0x0)throw CliErrors[_0x1582fb(0x1b5)](_0x1582fb(0x1b6));if(_0xd5f109[_0x1582fb(0x1a1)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x1582fb(0x1b5)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0xd5f109['length']+'.');return _0xd5f109[_0x1582fb(0x1aa)]((_0x74f92e,_0x2489f7)=>parseDataUpdateId(_0x74f92e,Array[_0x1582fb(0x1af)](_0x41b682)?_0x1582fb(0x1a9)+_0x2489f7+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x93d08c,_0x23f0ed){const _0x2228e1=a173_0x1a02;if(Array[_0x2228e1(0x1af)](_0x93d08c['id'])&&_0x23f0ed[_0x2228e1(0x1a1)]>0x1)return{..._0x93d08c,'id':_0x23f0ed[_0x2228e1(0x1a3)](',')};return _0x93d08c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x39c8cf,_0x1c5a64){const _0x3dfdde=a174_0x5546,_0x5dd074=_0x39c8cf();while(!![]){try{const _0x3d3e2b=parseInt(_0x3dfdde(0x1b1))/0x1+parseInt(_0x3dfdde(0x1ad))/0x2+parseInt(_0x3dfdde(0x1ae))/0x3*(-parseInt(_0x3dfdde(0x1b2))/0x4)+parseInt(_0x3dfdde(0x1a8))/0x5*(parseInt(_0x3dfdde(0x1a9))/0x6)+-parseInt(_0x3dfdde(0x1ab))/0x7*(parseInt(_0x3dfdde(0x1b5))/0x8)+parseInt(_0x3dfdde(0x1b0))/0x9*(-parseInt(_0x3dfdde(0x1ac))/0xa)+-parseInt(_0x3dfdde(0x1b4))/0xb*(-parseInt(_0x3dfdde(0x1af))/0xc);if(_0x3d3e2b===_0x1c5a64)break;else _0x5dd074['push'](_0x5dd074['shift']());}catch(_0x34bb45){_0x5dd074['push'](_0x5dd074['shift']());}}}(a174_0x44d5,0xd51d8));function a174_0x5546(_0x543de0,_0x39d66e){_0x543de0=_0x543de0-0x1a7;const _0x44d507=a174_0x44d5();let _0x554627=_0x44d507[_0x543de0];return _0x554627;}function a174_0x44d5(){const _0x3a8b22=['6SYOsyt','isSafeInteger','41951hwkAZi','140IwVpCV','2807278mXChbT','1371uYIhiV','302856FByLfL','636147XEKqxi','1492044tamQdD','13284YRmcim','test','319BvRrWT','1320TKwZOY','number','3707195wovHZj'];a174_0x44d5=function(){return _0x3a8b22;};return a174_0x44d5();}export function normalizePositiveSafeInteger(_0x409e4d){const _0x434110=a174_0x5546;if(typeof _0x409e4d===_0x434110(0x1a7))return Number[_0x434110(0x1aa)](_0x409e4d)&&_0x409e4d>0x0?_0x409e4d:undefined;if(typeof _0x409e4d!=='string'||!/^\d+$/[_0x434110(0x1b3)](_0x409e4d))return undefined;const _0x2db743=Number(_0x409e4d);return Number['isSafeInteger'](_0x2db743)&&_0x2db743>0x0?_0x2db743:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a175_0x1523(_0x5b0bd6,_0x47ee98){_0x5b0bd6=_0x5b0bd6-0x1b6;const _0x31f4b4=a175_0x31f4();let _0x152399=_0x31f4b4[_0x5b0bd6];return _0x152399;}const a175_0x377600=a175_0x1523;(function(_0x5ad66a,_0x1661fe){const _0x44cc22=a175_0x1523,_0x2163a1=_0x5ad66a();while(!![]){try{const _0x2397ba=-parseInt(_0x44cc22(0x1c5))/0x1*(parseInt(_0x44cc22(0x1bf))/0x2)+-parseInt(_0x44cc22(0x1bc))/0x3+parseInt(_0x44cc22(0x1bb))/0x4+parseInt(_0x44cc22(0x1ca))/0x5*(parseInt(_0x44cc22(0x1c3))/0x6)+parseInt(_0x44cc22(0x1c7))/0x7*(parseInt(_0x44cc22(0x1c0))/0x8)+parseInt(_0x44cc22(0x1c4))/0x9+-parseInt(_0x44cc22(0x1cb))/0xa*(parseInt(_0x44cc22(0x1ba))/0xb);if(_0x2397ba===_0x1661fe)break;else _0x2163a1['push'](_0x2163a1['shift']());}catch(_0x6d6c69){_0x2163a1['push'](_0x2163a1['shift']());}}}(a175_0x31f4,0x701de));const REDACTED_VALUE=a175_0x377600(0x1c2),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set(['comment',a175_0x377600(0x1c8)]),SENSITIVE_VALUE_KEYS=new Set([a175_0x377600(0x1b6)]);export function isSensitiveKey(_0x286878){const _0x11e12b=a175_0x377600,_0x418898=_0x286878['replace'](/_/g,'-')[_0x11e12b(0x1c6)]();return SENSITIVE_KEY_PATTERN['test'](_0x418898);}export function isSensitiveFlagName(_0x2c837f){const _0x4b7dcb=a175_0x377600,_0x3e8a5c=_0x2c837f['replace'](/_/g,'-')[_0x4b7dcb(0x1c6)]();return isSensitiveKey(_0x3e8a5c)||SENSITIVE_FLAG_NAMES[_0x4b7dcb(0x1be)](_0x3e8a5c);}function redactVariableValues(_0x35a333){const _0x11b83b=a175_0x377600;if(Array[_0x11b83b(0x1c9)](_0x35a333))return _0x35a333[_0x11b83b(0x1b7)](_0x1e39f0=>redactVariableValues(_0x1e39f0));if(_0x35a333&&typeof _0x35a333===_0x11b83b(0x1b8))return Object[_0x11b83b(0x1bd)](Object['entries'](_0x35a333)[_0x11b83b(0x1b7)](([_0x2294d5,_0x2caac1])=>[_0x2294d5,redactVariableValues(_0x2caac1)]));return REDACTED_VALUE;}function a175_0x31f4(){const _0xa4a07d=['replace','4554231lICKJw','1038292JLFmZD','499791gRyddI','fromEntries','has','6242bTAxTJ','28104jkyqGb','push','[REDACTED]','977610ODKbBK','3853710XqSxkE','25OrcPSk','toLowerCase','1533eURGlb','variables','isArray','15OAFtYf','30ojGVmT','comment','map','object'];a175_0x31f4=function(){return _0xa4a07d;};return a175_0x31f4();}export function redactSensitiveValue(_0x50eb4b){const _0x2d619b=a175_0x377600;if(Array[_0x2d619b(0x1c9)](_0x50eb4b))return _0x50eb4b['map'](_0x233e3e=>redactSensitiveValue(_0x233e3e));if(!_0x50eb4b||typeof _0x50eb4b!=='object')return _0x50eb4b;const _0x457310={};for(const [_0x1e1bcc,_0x30e168]of Object['entries'](_0x50eb4b)){const _0x1aadf7=_0x1e1bcc[_0x2d619b(0x1b9)](/_/g,'-')[_0x2d619b(0x1c6)]();_0x457310[_0x1e1bcc]=_0x1aadf7==='variables'?redactVariableValues(_0x30e168):SENSITIVE_VALUE_KEYS[_0x2d619b(0x1be)](_0x1aadf7)||isSensitiveKey(_0x1e1bcc)?REDACTED_VALUE:redactSensitiveValue(_0x30e168);}return _0x457310;}export function redactCommandArgv(_0x2e008d){const _0xf40878=a175_0x377600,_0x3da429=[];let _0xcf4ad2=![];for(const _0x595ae9 of _0x2e008d){if(_0xcf4ad2){_0x3da429[_0xf40878(0x1c1)](REDACTED_VALUE),_0xcf4ad2=![];continue;}const _0x16317c=_0x595ae9['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x16317c||!isSensitiveFlagName(_0x16317c[0x1]??'')){_0x3da429['push'](_0x595ae9);continue;}_0x3da429[_0xf40878(0x1c1)]('--'+_0x16317c[0x1]+(_0x16317c[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x16317c[0x2]===undefined&&(_0xcf4ad2=!![]);}return _0x3da429;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cb6eb,_0x51f654){const _0x420a53=a176_0x1607,_0x1de8b9=_0x4cb6eb();while(!![]){try{const _0x20e677=-parseInt(_0x420a53(0x86))/0x1*(parseInt(_0x420a53(0x77))/0x2)+-parseInt(_0x420a53(0x84))/0x3*(parseInt(_0x420a53(0x6f))/0x4)+parseInt(_0x420a53(0x71))/0x5*(parseInt(_0x420a53(0x78))/0x6)+-parseInt(_0x420a53(0x74))/0x7*(parseInt(_0x420a53(0x73))/0x8)+-parseInt(_0x420a53(0x79))/0x9+parseInt(_0x420a53(0x7d))/0xa*(-parseInt(_0x420a53(0x7e))/0xb)+-parseInt(_0x420a53(0x88))/0xc*(-parseInt(_0x420a53(0x80))/0xd);if(_0x20e677===_0x51f654)break;else _0x1de8b9['push'](_0x1de8b9['shift']());}catch(_0x3f6a85){_0x1de8b9['push'](_0x1de8b9['shift']());}}}(a176_0xbc5e,0x4b1da));import{mkdir,readFile,writeFile}from'node:fs/promises';function a176_0xbc5e(){const _0x4c8789=['1433610ixRfMi','33uGQmdQ','upgradeMessage','97214RGCxzn','toLowerCase','parse','number','27WijWKc','true','1139oefePs','stableVersion','3144KaLZYf','lastNotifiedAt','lovrabet-cli','object','filter',',\x20run:\x20','yes','193796wdDHVf','update-check.json','1277860bpiCFH','stringify','2270408SjtJSz','7RMbtVI','/v/','trim','974NLvmdu','6DnIKWx','1822644ZWvOXX','utf8','needsUpgrade','\x20is\x20recommended,\x20current\x20'];a176_0xbc5e=function(){return _0x4c8789;};return a176_0xbc5e();}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 _0x48d998=a176_0x1607,_0x170f02=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x48d998(0x76)]()[_0x48d998(0x81)]();return _0x170f02==='1'||_0x170f02===_0x48d998(0x85)||_0x170f02===_0x48d998(0x6e);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0xc5d785=a176_0x1607;return join(cacheRoot(),_0xc5d785(0x8a),_0xc5d785(0x70));}async function readUpdateNoticeCache(){const _0xf366e8=a176_0x1607;try{const _0x1d207d=await readFile(getUpdateNoticeCachePath(),_0xf366e8(0x7a)),_0x55f688=JSON[_0xf366e8(0x82)](_0x1d207d);if(!_0x55f688||typeof _0x55f688!==_0xf366e8(0x8b))return{};return _0x55f688;}catch{return{};}}async function writeUpdateNoticeCache(_0x44c170){const _0xf0d2ef=a176_0x1607;try{const _0x1ac274=getUpdateNoticeCachePath();await mkdir(dirname(_0x1ac274),{'recursive':!![]}),await writeFile(_0x1ac274,JSON[_0xf0d2ef(0x72)](_0x44c170,null,0x2)+'\x0a','utf8');}catch{}}function a176_0x1607(_0x4c3162,_0x4df72a){_0x4c3162=_0x4c3162-0x6d;const _0xbc5ef0=a176_0xbc5e();let _0x16074f=_0xbc5ef0[_0x4c3162];return _0x16074f;}function isRecentlyNotified(_0x2e8229,_0x17c54b,_0x4cb973){const _0x18f7a3=a176_0x1607;return _0x2e8229['lastNotifiedVersion']===_0x17c54b&&typeof _0x2e8229['lastNotifiedAt']===_0x18f7a3(0x83)&&_0x4cb973-_0x2e8229[_0x18f7a3(0x89)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1eed6c){const _0x49fdd4=a176_0x1607;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x49fdd4(0x75)+_0x1eed6c;}export async function resolveLatestUpdateNotice(_0x4aa7c9){const _0x5391d0=a176_0x1607;if(isUpdateNoticeDisabled())return null;try{const _0x52b8b6=Date['now'](),_0x5c79c2=_0x4aa7c9??await checkCliVersion(),_0x30198d=_0x5c79c2['currentVersion'],_0x1b5d5=_0x5c79c2[_0x5391d0(0x87)],_0x39d2b1=await readUpdateNoticeCache();if(!_0x1b5d5||!_0x5c79c2[_0x5391d0(0x7b)]||_0x5c79c2['belowMinimum'])return null;if(isRecentlyNotified(_0x39d2b1,_0x1b5d5,_0x52b8b6))return null;const _0x25f7c0=getCliUpgradeCommand(_0x5c79c2);return await writeUpdateNoticeCache({..._0x39d2b1,'checkedAt':_0x52b8b6,'latest':_0x1b5d5,'failed':![],'lastNotifiedVersion':_0x1b5d5,'lastNotifiedAt':_0x52b8b6}),{'command':_0x25f7c0,'current':_0x30198d,'latest':_0x1b5d5,'url':buildNpmVersionUrl(_0x1b5d5),'message':[_0x5c79c2[_0x5391d0(0x7f)],CLI_BIN_NAME+'\x20'+_0x1b5d5+_0x5391d0(0x7c)+_0x30198d+_0x5391d0(0x6d)+_0x25f7c0][_0x5391d0(0x8c)](Boolean)['join']('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5aaf9b,_0x1d5ff0){const _0x11d319=a177_0x18e2,_0x2b79a8=_0x5aaf9b();while(!![]){try{const _0x64f00d=-parseInt(_0x11d319(0xbd))/0x1*(parseInt(_0x11d319(0xc5))/0x2)+parseInt(_0x11d319(0xc6))/0x3*(parseInt(_0x11d319(0xc2))/0x4)+parseInt(_0x11d319(0xc0))/0x5+parseInt(_0x11d319(0xbf))/0x6+parseInt(_0x11d319(0xbe))/0x7*(-parseInt(_0x11d319(0xbc))/0x8)+parseInt(_0x11d319(0xc1))/0x9+-parseInt(_0x11d319(0xc4))/0xa;if(_0x64f00d===_0x1d5ff0)break;else _0x2b79a8['push'](_0x2b79a8['shift']());}catch(_0x4bc617){_0x2b79a8['push'](_0x2b79a8['shift']());}}}(a177_0x4467,0x3d05b));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a177_0x4467(){const _0x106369=['slice','1388040lYcIvE','642042PNYTAz','3417sATVSe','2090368fLVTvw','1TVjgcH','7HrtDFW','1957884moOGnv','348345vShIKF','819090Uwkjnn','1700CyCKkQ'];a177_0x4467=function(){return _0x106369;};return a177_0x4467();}export function getCliGitCommit(){const _0x1c105a=String(GIT_COMMIT);return _0x1c105a&&_0x1c105a!=='unknown'?_0x1c105a:'';}function a177_0x18e2(_0x365e42,_0x5ab3ff){_0x365e42=_0x365e42-0xbc;const _0x446731=a177_0x4467();let _0x18e2ca=_0x446731[_0x365e42];return _0x18e2ca;}export function getCliVersionDisplay(){const _0x2ef47b=a177_0x18e2,_0x594c04=getCliGitCommit(),_0x5ac5cd=BUILD_TIME[_0x2ef47b(0xc3)](0x0,0xa);if(!_0x594c04||!_0x5ac5cd)return VERSION;return VERSION+'\x20('+_0x594c04+',\x20'+_0x5ac5cd+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a178_0xa87f(_0x5ea1f7,_0x45eca3){_0x5ea1f7=_0x5ea1f7-0x70;var _0x37a8f3=a178_0x37a8();var _0xa87f23=_0x37a8f3[_0x5ea1f7];return _0xa87f23;}(function(_0x30c83f,_0x33b4a6){var _0x3ed979=a178_0xa87f,_0x354882=_0x30c83f();while(!![]){try{var _0x1de96e=parseInt(_0x3ed979(0x77))/0x1+parseInt(_0x3ed979(0x71))/0x2+-parseInt(_0x3ed979(0x72))/0x3+-parseInt(_0x3ed979(0x75))/0x4+-parseInt(_0x3ed979(0x76))/0x5+-parseInt(_0x3ed979(0x74))/0x6+parseInt(_0x3ed979(0x70))/0x7;if(_0x1de96e===_0x33b4a6)break;else _0x354882['push'](_0x354882['shift']());}catch(_0x2bc290){_0x354882['push'](_0x354882['shift']());}}}(a178_0x37a8,0xe0c80));export function writeCliSideChannelLine(_0x5c195f){var _0x5d47f4=a178_0xa87f;process[_0x5d47f4(0x73)]['write'](_0x5c195f+'\x0a');}function a178_0x37a8(){var _0x26e757=['3230305dDtUMc','103248mfyyCG','22918406lDwVsv','1676072DyIajT','5272689zpBVeI','stderr','54456BUwbMR','3527752SVgjcz'];a178_0x37a8=function(){return _0x26e757;};return a178_0x37a8();}
|
package/package.json
CHANGED
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.3.6
|
|
4
|
+
version: 2.3.6
|
|
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.6
|
|
6
|
-
"skillVersion": "2.3.6
|
|
5
|
+
"packageVersion": "2.3.6",
|
|
6
|
+
"skillVersion": "2.3.6",
|
|
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": "749e4bbd932c13056bf38f970ecea4208ce6aecac03470bddc2edcc8e0a3c6cf"
|
|
44
44
|
}
|