@lovrabet/lovrabet-cli 2.2.6-beta.1 → 2.2.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/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/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/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/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a149_0x5a0375=a149_0x560a;(function(_0x563711,_0x363620){const _0x4cdfc5=a149_0x560a,_0x1f32d3=_0x563711();while(!![]){try{const _0x1590d5=parseInt(_0x4cdfc5(0x164))/0x1*(-parseInt(_0x4cdfc5(0x17c))/0x2)+parseInt(_0x4cdfc5(0x15c))/0x3+parseInt(_0x4cdfc5(0x163))/0x4*(-parseInt(_0x4cdfc5(0x16b))/0x5)+-parseInt(_0x4cdfc5(0x17b))/0x6+parseInt(_0x4cdfc5(0x17a))/0x7+parseInt(_0x4cdfc5(0x183))/0x8+-parseInt(_0x4cdfc5(0x184))/0x9;if(_0x1590d5===_0x363620)break;else _0x1f32d3['push'](_0x1f32d3['shift']());}catch(_0x3237a0){_0x1f32d3['push'](_0x1f32d3['shift']());}}}(a149_0x36e8,0x23b27));function a149_0x560a(_0x2e4464,_0x3ee5e7){_0x2e4464=_0x2e4464-0x151;const _0x36e80a=a149_0x36e8();let _0x560ad1=_0x36e80a[_0x2e4464];return _0x560ad1;}function a149_0x36e8(){const _0x5b1b7f=['winstonLogger','readFileSync','toISOString','1013243zhipTB','307230ooiAzC','46qNlYtQ','clearLogs','setRawCommand','readLogs','map','blue','green','2022264VfhTOB','1549251KVSGMP','existsSync','level','join','parse','transports','info','message','utf8','currentRawCommand','warn','Failed\x20to\x20clear\x20logs:','799011MQpkRU','command','filter','addColors','clear','Completed:\x20','error','496KxPYXS','7642fEPrAA','red','combine','createLogger','initWinstonLogger','logFilePath','dirname','4780GyQfRW','timestamp','mkdirSync','yellow','getWinstonInstance','File','format','setLogPath','stringify','now','success','unknown'];a149_0x36e8=function(){return _0x5b1b7f;};return a149_0x36e8();}import a149_0x28ffb6 from'winston';import a149_0x219fd1 from'node:fs';import a149_0x3bb46c from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a149_0x5a0375(0x177)];[a149_0x5a0375(0x169)]='';[a149_0x5a0375(0x159)]='';constructor(){}[a149_0x5a0375(0x17e)](_0x45b123){this['currentRawCommand']=_0x45b123;}[a149_0x5a0375(0x172)](_0x5513d9){const _0x459174=a149_0x5a0375;this['logFilePath']=a149_0x3bb46c[_0x459174(0x153)](_0x5513d9,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x459174(0x177)][_0x459174(0x160)](),this[_0x459174(0x168)]();}[a149_0x5a0375(0x168)](){const _0x45b950=a149_0x5a0375,_0x55866f=a149_0x3bb46c[_0x45b950(0x16a)](this[_0x45b950(0x169)]);!a149_0x219fd1[_0x45b950(0x151)](_0x55866f)&&a149_0x219fd1[_0x45b950(0x16d)](_0x55866f,{'recursive':!![]});const _0x168934=a149_0x28ffb6[_0x45b950(0x171)][_0x45b950(0x166)](a149_0x28ffb6[_0x45b950(0x171)][_0x45b950(0x16c)](),a149_0x28ffb6[_0x45b950(0x171)]['errors']({'stack':!![]}),a149_0x28ffb6[_0x45b950(0x171)]['printf'](_0x1c8635=>{const _0x4293d0=_0x45b950,_0x1009a1={'timestamp':_0x1c8635[_0x4293d0(0x16c)]||new Date()[_0x4293d0(0x179)](),'level':_0x1c8635[_0x4293d0(0x152)]||'info','command':_0x1c8635[_0x4293d0(0x15d)]||_0x4293d0(0x176),'rawCommand':_0x1c8635['rawCommand']||this[_0x4293d0(0x159)]||undefined,'message':_0x1c8635[_0x4293d0(0x157)]||'','duration':_0x1c8635['duration']||undefined,'details':_0x1c8635['details']||undefined};return JSON[_0x4293d0(0x173)](_0x1009a1);}));this[_0x45b950(0x177)]=a149_0x28ffb6[_0x45b950(0x167)]({'level':_0x45b950(0x156),'format':_0x168934,'transports':[new a149_0x28ffb6[(_0x45b950(0x155))][(_0x45b950(0x170))]({'filename':this[_0x45b950(0x169)],'level':_0x45b950(0x156)})],'silent':![]}),a149_0x28ffb6[_0x45b950(0x15f)]({'success':_0x45b950(0x182),'error':_0x45b950(0x165),'warn':_0x45b950(0x16e),'info':_0x45b950(0x181)});}[a149_0x5a0375(0x156)](_0x495592,_0x5ab7eb,_0x325c4e){const _0x5700d8=a149_0x5a0375;if(!this[_0x5700d8(0x169)]||!this[_0x5700d8(0x177)])return;this[_0x5700d8(0x177)][_0x5700d8(0x156)](_0x5ab7eb,{'command':_0x495592,'details':_0x325c4e});}[a149_0x5a0375(0x175)](_0x4fd6d7,_0x4e9b0c,_0x32d97f,_0x4ff0dc){const _0x4cde7a=a149_0x5a0375;if(!this[_0x4cde7a(0x169)]||!this[_0x4cde7a(0x177)])return;this[_0x4cde7a(0x177)]['log']('info',_0x4e9b0c,{'level':_0x4cde7a(0x175),'command':_0x4fd6d7,'duration':_0x32d97f,'details':_0x4ff0dc});}[a149_0x5a0375(0x162)](_0x234388,_0x43239c,_0x299190){const _0x44c752=a149_0x5a0375;if(!this[_0x44c752(0x169)]||!this[_0x44c752(0x177)])return;this[_0x44c752(0x177)][_0x44c752(0x162)](_0x43239c,{'command':_0x234388,'details':_0x299190});}[a149_0x5a0375(0x15a)](_0x49fa6a,_0x5ac487,_0x501539){const _0x5e21d6=a149_0x5a0375;if(!this[_0x5e21d6(0x169)]||!this[_0x5e21d6(0x177)])return;this[_0x5e21d6(0x177)][_0x5e21d6(0x15a)](_0x5ac487,{'command':_0x49fa6a,'details':_0x501539});}async['logTask'](_0x6bceaf,_0x18540f,_0x8604a6){const _0x3a1cb3=a149_0x5a0375,_0x4bbb13=Date['now']();this[_0x3a1cb3(0x156)](_0x6bceaf,'Starting:\x20'+_0x18540f);try{const _0x5601a6=await _0x8604a6(),_0x56b028=Date[_0x3a1cb3(0x174)]()-_0x4bbb13;return this['success'](_0x6bceaf,_0x3a1cb3(0x161)+_0x18540f,_0x56b028),_0x5601a6;}catch(_0x36781d){const _0x4efe01=Date[_0x3a1cb3(0x174)]()-_0x4bbb13;this[_0x3a1cb3(0x162)](_0x6bceaf,'Failed:\x20'+_0x18540f,{'error':_0x36781d instanceof Error?_0x36781d[_0x3a1cb3(0x157)]:String(_0x36781d),'duration':_0x4efe01});throw _0x36781d;}}[a149_0x5a0375(0x17f)](){const _0x108dab=a149_0x5a0375;try{if(!a149_0x219fd1[_0x108dab(0x151)](this[_0x108dab(0x169)]))return[];const _0xde76a9=a149_0x219fd1[_0x108dab(0x178)](this[_0x108dab(0x169)],_0x108dab(0x158));return _0xde76a9['split'](/\r?\n/)[_0x108dab(0x15e)](_0x1abd44=>_0x1abd44['trim']())[_0x108dab(0x180)](_0x4ddd24=>JSON[_0x108dab(0x154)](_0x4ddd24));}catch(_0x177fdf){return console[_0x108dab(0x15a)]('Failed\x20to\x20read\x20logs:',_0x177fdf),[];}}[a149_0x5a0375(0x17d)](){const _0x3fabce=a149_0x5a0375;try{a149_0x219fd1[_0x3fabce(0x151)](this[_0x3fabce(0x169)])&&a149_0x219fd1['writeFileSync'](this[_0x3fabce(0x169)],'','utf8');}catch(_0x37ba37){console[_0x3fabce(0x15a)](_0x3fabce(0x15b),_0x37ba37);}}[a149_0x5a0375(0x16f)](){const _0x5a14c0=a149_0x5a0375;return this[_0x5a14c0(0x177)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x1e5751=a150_0x4e4d;(function(_0x448c6c,_0x107f26){const _0x134d4d=a150_0x4e4d,_0x3f4a5c=_0x448c6c();while(!![]){try{const _0x3715da=parseInt(_0x134d4d(0x13e))/0x1+parseInt(_0x134d4d(0x143))/0x2+parseInt(_0x134d4d(0x137))/0x3*(parseInt(_0x134d4d(0x13a))/0x4)+parseInt(_0x134d4d(0x142))/0x5*(-parseInt(_0x134d4d(0x138))/0x6)+-parseInt(_0x134d4d(0x133))/0x7+parseInt(_0x134d4d(0x13f))/0x8+parseInt(_0x134d4d(0x135))/0x9*(-parseInt(_0x134d4d(0x13d))/0xa);if(_0x3715da===_0x107f26)break;else _0x3f4a5c['push'](_0x3f4a5c['shift']());}catch(_0x52ff1e){_0x3f4a5c['push'](_0x3f4a5c['shift']());}}}(a150_0x2cff,0x537ad));function a150_0x4e4d(_0x145c05,_0x5ae872){_0x145c05=_0x145c05-0x133;const _0x2cff96=a150_0x2cff();let _0x4e4d3b=_0x2cff96[_0x145c05];return _0x4e4d3b;}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a150_0x1e5751(0x146)]),MIN_SAFE_INTEGER=BigInt(Number[a150_0x1e5751(0x136)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x265db2){const _0x3a5842=a150_0x1e5751;if(_0x265db2[_0x3a5842(0x139)]('.')||_0x265db2[_0x3a5842(0x139)]('e')||_0x265db2['includes']('E'))return![];const _0x50f978=BigInt(_0x265db2);return _0x50f978>MAX_SAFE_INTEGER||_0x50f978<MIN_SAFE_INTEGER;}function a150_0x2cff(){const _0x926638=['slice','120UCKMFF','546940aYrNjr','exec','length','MAX_SAFE_INTEGER','1772029vnYRWa','json','18BjcnkS','MIN_SAFE_INTEGER','513ljAbvs','130212uBQZRn','includes','12860XEAaqC','getOwnPropertyDescriptor','defineProperty','841140tdFclN','460034CtShxt','7096EBPAjT','undefined'];a150_0x2cff=function(){return _0x926638;};return a150_0x2cff();}function quoteUnsafeIntegerLiterals(_0x1e4f18){const _0x1de7db=a150_0x1e5751;let _0x5527d0='',_0x417986=![],_0x259287=![];for(let _0x4a99a1=0x0;_0x4a99a1<_0x1e4f18[_0x1de7db(0x145)];){const _0xf824a3=_0x1e4f18[_0x4a99a1];if(_0x417986){_0x5527d0+=_0xf824a3,_0x4a99a1+=0x1;if(_0x259287)_0x259287=![];else{if(_0xf824a3==='\x5c')_0x259287=!![];else _0xf824a3==='\x22'&&(_0x417986=![]);}continue;}if(_0xf824a3==='\x22'){_0x417986=!![],_0x5527d0+=_0xf824a3,_0x4a99a1+=0x1;continue;}if(_0xf824a3==='-'||_0xf824a3>='0'&&_0xf824a3<='9'){const _0xf07e44=JSON_NUMBER_PATTERN[_0x1de7db(0x144)](_0x1e4f18[_0x1de7db(0x141)](_0x4a99a1))?.[0x0];if(_0xf07e44){_0x5527d0+=isUnsafeIntegerLiteral(_0xf07e44)?'\x22'+_0xf07e44+'\x22':_0xf07e44,_0x4a99a1+=_0xf07e44[_0x1de7db(0x145)];continue;}}_0x5527d0+=_0xf824a3,_0x4a99a1+=0x1;}return _0x5527d0;}export function parseLosslessJson(_0x180f26){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x180f26));}export function installLosslessJsonResponseParser(){const _0x2f16cd=a150_0x1e5751;if(typeof Response===_0x2f16cd(0x140))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x2f16cd(0x13b)](responseJsonPrototype,'json'),Object[_0x2f16cd(0x13c)](responseJsonPrototype,_0x2f16cd(0x134),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x34606c(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x17d1d5=_0x2f16cd;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x17d1d5(0x13c)](responseJsonPrototype,_0x17d1d5(0x134),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x17d1d5(0x134)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bf984,_0x486f8f){const _0x4b590a=a151_0x1b42,_0x1320bb=_0x2bf984();while(!![]){try{const _0x487699=-parseInt(_0x4b590a(0xbe))/0x1+parseInt(_0x4b590a(0xbf))/0x2+-parseInt(_0x4b590a(0xce))/0x3+parseInt(_0x4b590a(0xb8))/0x4*(-parseInt(_0x4b590a(0xba))/0x5)+-parseInt(_0x4b590a(0xb4))/0x6+-parseInt(_0x4b590a(0xc7))/0x7+parseInt(_0x4b590a(0xc9))/0x8*(parseInt(_0x4b590a(0xbb))/0x9);if(_0x487699===_0x486f8f)break;else _0x1320bb['push'](_0x1320bb['shift']());}catch(_0x2ba9fb){_0x1320bb['push'](_0x1320bb['shift']());}}}(a151_0x4303,0x396b2));function a151_0x1b42(_0x5e69e6,_0x58054d){_0x5e69e6=_0x5e69e6-0xb4;const _0x430330=a151_0x4303();let _0x1b426c=_0x430330[_0x5e69e6];return _0x1b426c;}function a151_0x4303(){const _0x43a488=['data\x20update\x20can\x20update\x20at\x20most\x20','data\x20update\x20--params.','number','3281950kNvNME','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','24LVDBje','\x20records\x20per\x20call;\x20received\x20','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','length','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','187044oCWYCy','isSafeInteger','1633824cDoKYo','validation','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','items','20xDGwRv','test','325730PSuMbS','3112362xBMiUB','object','map','69056elgJAl','792040CCHjQC','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','isArray','string','Invalid\x20JSON\x20for\x20--params:\x20'];a151_0x4303=function(){return _0x43a488;};return a151_0x4303();}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x3b0178){const _0x46918e=a151_0x1b42;if(!_0x3b0178)return undefined;try{return parseLosslessJson(_0x3b0178);}catch{throw CliErrors['validation'](_0x46918e(0xc3)+_0x3b0178);}}export function parseJsonParamsValue(_0x522537){const _0x5c90c7=a151_0x1b42;if(!_0x522537)return undefined;try{return parseLosslessJson(_0x522537);}catch{throw CliErrors[_0x5c90c7(0xb5)](_0x5c90c7(0xc3)+_0x522537);}}export function parseBatchCreateItemsFromParams(_0x17b1b8){const _0x257725=a151_0x1b42;if(Array['isArray'](_0x17b1b8))return _0x17b1b8;if(_0x17b1b8!==null&&_0x17b1b8!==undefined&&typeof _0x17b1b8===_0x257725(0xbc)&&Array[_0x257725(0xc1)](_0x17b1b8[_0x257725(0xb7)]))return _0x17b1b8[_0x257725(0xb7)];throw CliErrors['validation']('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x257725(0xb6));}function parseDataUpdateId(_0x1d1d20,_0x125dd7){const _0x49f27c=a151_0x1b42;if(typeof _0x1d1d20===_0x49f27c(0xc6)&&Number[_0x49f27c(0xcf)](_0x1d1d20)&&_0x1d1d20>0x0)return _0x1d1d20;if(typeof _0x1d1d20===_0x49f27c(0xc2)){if(/^[1-9]\d*$/[_0x49f27c(0xb9)](_0x1d1d20))return _0x1d1d20;}throw CliErrors[_0x49f27c(0xb5)](_0x49f27c(0xc5)+_0x125dd7+_0x49f27c(0xcd));}export function parseUpdateIdsFromParams(_0xeabc90){const _0x465f46=a151_0x1b42;if(_0xeabc90===null||_0xeabc90===undefined||typeof _0xeabc90!==_0x465f46(0xbc)||Array[_0x465f46(0xc1)](_0xeabc90))throw CliErrors[_0x465f46(0xb5)](_0x465f46(0xc0),_0x465f46(0xcb));const _0x18410c=_0xeabc90['id'];if(_0x18410c===undefined||_0x18410c===null)throw CliErrors[_0x465f46(0xb5)](_0x465f46(0xc8),_0x465f46(0xcb));const _0x2e52ef=Array[_0x465f46(0xc1)](_0x18410c)?_0x18410c:[_0x18410c];if(_0x2e52ef[_0x465f46(0xcc)]===0x0)throw CliErrors[_0x465f46(0xb5)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x2e52ef[_0x465f46(0xcc)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x465f46(0xc4)+MAX_DATA_UPDATE_IDS+_0x465f46(0xca)+_0x2e52ef[_0x465f46(0xcc)]+'.');return _0x2e52ef[_0x465f46(0xbd)]((_0x2c6ad6,_0x249ffc)=>parseDataUpdateId(_0x2c6ad6,Array['isArray'](_0x18410c)?'id['+_0x249ffc+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x21de23,_0x468ff0){const _0x3b9a07=a151_0x1b42;if(Array[_0x3b9a07(0xc1)](_0x21de23['id'])&&_0x468ff0['length']>0x1)return{..._0x21de23,'id':_0x468ff0['join'](',')};return _0x21de23;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a152_0x439f(){const _0x434c99=['12AIPYyD','platform','9jUrHrS','7420061xgxFHz','54572kWRlXS','7hTcTkw','906480dZlOuK','27ImFeba','2947614OOUBhU','3824970idEUDg','19172BJfoYS','17kqIJIM','1952580mDdelb','.cmd','win32'];a152_0x439f=function(){return _0x434c99;};return a152_0x439f();}const a152_0x42fdfe=a152_0x5eaa;function a152_0x5eaa(_0x4e6e01,_0x8955e3){_0x4e6e01=_0x4e6e01-0x10e;const _0x439f0d=a152_0x439f();let _0x5eaa33=_0x439f0d[_0x4e6e01];return _0x5eaa33;}(function(_0x3fdd1b,_0x2649e1){const _0x2b0995=a152_0x5eaa,_0x3c2f66=_0x3fdd1b();while(!![]){try{const _0x521f2f=parseInt(_0x2b0995(0x11c))/0x1*(-parseInt(_0x2b0995(0x11b))/0x2)+-parseInt(_0x2b0995(0x118))/0x3*(-parseInt(_0x2b0995(0x115))/0x4)+parseInt(_0x2b0995(0x10e))/0x5+-parseInt(_0x2b0995(0x119))/0x6+parseInt(_0x2b0995(0x116))/0x7*(parseInt(_0x2b0995(0x117))/0x8)+-parseInt(_0x2b0995(0x113))/0x9*(parseInt(_0x2b0995(0x11a))/0xa)+-parseInt(_0x2b0995(0x114))/0xb*(-parseInt(_0x2b0995(0x111))/0xc);if(_0x521f2f===_0x2649e1)break;else _0x3c2f66['push'](_0x3c2f66['shift']());}catch(_0x3a006a){_0x3c2f66['push'](_0x3c2f66['shift']());}}}(a152_0x439f,0x408f4));export const isWindows=process[a152_0x42fdfe(0x112)]===a152_0x42fdfe(0x110);export function resolveNpmBin(_0x3f48ad){const _0x15676a=a152_0x42fdfe;return isWindows?_0x3f48ad+_0x15676a(0x10f):_0x3f48ad;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4fd729,_0x1b6ca8){const _0x2fe9ca=a153_0x62ad,_0x32d295=_0x4fd729();while(!![]){try{const _0x1064b0=-parseInt(_0x2fe9ca(0x98))/0x1*(parseInt(_0x2fe9ca(0xac))/0x2)+-parseInt(_0x2fe9ca(0xbc))/0x3*(parseInt(_0x2fe9ca(0xa4))/0x4)+parseInt(_0x2fe9ca(0xb1))/0x5+-parseInt(_0x2fe9ca(0xb5))/0x6*(parseInt(_0x2fe9ca(0x9e))/0x7)+-parseInt(_0x2fe9ca(0x97))/0x8+parseInt(_0x2fe9ca(0xb7))/0x9+parseInt(_0x2fe9ca(0xb6))/0xa*(parseInt(_0x2fe9ca(0x9f))/0xb);if(_0x1064b0===_0x1b6ca8)break;else _0x32d295['push'](_0x32d295['shift']());}catch(_0x579a1d){_0x32d295['push'](_0x32d295['shift']());}}}(a153_0x45d9,0x96661));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a153_0x45d9(){const _0x3f2d82=['update-check.json','29838tKJRwP','20ekrJPZ','310824aZSkxd','map','.cache','number','/dist-tags','15mXlcHQ','major','stringify','8409848WWhXrO','4XhgTmO','prerelease','yes','patch','lovrabet-cli','\x20available,\x20current\x20','28BFnCVR','10149337lHYFVo','json','https://www.npmjs.com/package/','entries','latest','904348ifIdBy','lastNotifiedAt','utf8',',\x20run:\x20','\x20update','trim','object','timeout','57242qmDkjw','/-/package/','checkedAt','string','parse','5261025uQvaKR','toLowerCase','lastNotifiedVersion'];a153_0x45d9=function(){return _0x3f2d82;};return a153_0x45d9();}import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x4fe122){const _0x10f689=a153_0x62ad,_0x5437ee=_0x4fe122[_0x10f689(0xa9)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x5437ee)return null;return{'major':Number(_0x5437ee[0x1]),'minor':Number(_0x5437ee[0x2]),'patch':Number(_0x5437ee[0x3]),'prerelease':_0x5437ee[0x4]};}function compareSemver(_0x96fe1b,_0x3e2f1c){const _0x3daa16=a153_0x62ad,_0x4ed8df=parseSemver(_0x96fe1b),_0x552a89=parseSemver(_0x3e2f1c);if(!_0x4ed8df||!_0x552a89)throw new Error('Invalid\x20semver');for(const _0x303ad9 of[_0x3daa16(0xbd),'minor',_0x3daa16(0x9b)]){if(_0x4ed8df[_0x303ad9]<_0x552a89[_0x303ad9])return-0x1;if(_0x4ed8df[_0x303ad9]>_0x552a89[_0x303ad9])return 0x1;}if(!_0x4ed8df['prerelease']&&!_0x552a89[_0x3daa16(0x99)])return 0x0;if(!_0x4ed8df[_0x3daa16(0x99)])return 0x1;if(!_0x552a89['prerelease'])return-0x1;if(_0x4ed8df['prerelease']===_0x552a89[_0x3daa16(0x99)])return 0x0;return _0x4ed8df[_0x3daa16(0x99)]<_0x552a89[_0x3daa16(0x99)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x114364=a153_0x62ad,_0x2b5d8f=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x114364(0xa9)]()[_0x114364(0xb2)]();return _0x2b5d8f==='1'||_0x2b5d8f==='true'||_0x2b5d8f===_0x114364(0x9a);}function cacheRoot(){const _0x2f67a3=a153_0x62ad;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2f67a3(0xb9));}export function getUpdateNoticeCachePath(){const _0x2c7fc8=a153_0x62ad;return join(cacheRoot(),_0x2c7fc8(0x9c),_0x2c7fc8(0xb4));}async function readUpdateNoticeCache(){const _0x263619=a153_0x62ad;try{const _0x1a4b80=await readFile(getUpdateNoticeCachePath(),_0x263619(0xa6)),_0x4cc80a=JSON[_0x263619(0xb0)](_0x1a4b80);if(!_0x4cc80a||typeof _0x4cc80a!==_0x263619(0xaa))return{};return _0x4cc80a;}catch{return{};}}async function writeUpdateNoticeCache(_0x416ccd){const _0x3d8df0=a153_0x62ad;try{const _0x3cc5ca=getUpdateNoticeCachePath();await mkdir(dirname(_0x3cc5ca),{'recursive':!![]}),await writeFile(_0x3cc5ca,JSON[_0x3d8df0(0xbe)](_0x416ccd,null,0x2)+'\x0a',_0x3d8df0(0xa6));}catch{}}function isFreshCheck(_0x3e7d9c,_0x5328e3){const _0x8ff4c2=a153_0x62ad;return typeof _0x3e7d9c[_0x8ff4c2(0xae)]===_0x8ff4c2(0xba)&&_0x5328e3-_0x3e7d9c[_0x8ff4c2(0xae)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1f2695,_0x8ebb56,_0xd01272){const _0x12bc3b=a153_0x62ad;return _0x1f2695[_0x12bc3b(0xb3)]===_0x8ebb56&&typeof _0x1f2695['lastNotifiedAt']==='number'&&_0xd01272-_0x1f2695[_0x12bc3b(0xa5)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x41ba85=0x5dc){const _0x28ec3c=a153_0x62ad;try{const _0x4ce0e4=NPM_REGISTRY_BASE_URL+_0x28ec3c(0xad)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x28ec3c(0xbb),_0x89c9b9=await fetch(_0x4ce0e4,{'signal':AbortSignal[_0x28ec3c(0xab)](_0x41ba85)});if(!_0x89c9b9['ok'])return null;const _0x4c92f2=await _0x89c9b9[_0x28ec3c(0xa0)]();if(!_0x4c92f2||typeof _0x4c92f2!==_0x28ec3c(0xaa))return null;return Object['fromEntries'](Object[_0x28ec3c(0xa2)](_0x4c92f2)['filter'](([,_0x33dac3])=>typeof _0x33dac3===_0x28ec3c(0xaf)&&_0x33dac3[_0x28ec3c(0xa9)]())[_0x28ec3c(0xb8)](([_0x128f41,_0x18f442])=>[_0x128f41,String(_0x18f442)[_0x28ec3c(0xa9)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x432d3a){const _0x1a6508=a153_0x62ad;return _0x1a6508(0xa1)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x432d3a;}function a153_0x62ad(_0x12c652,_0x290106){_0x12c652=_0x12c652-0x97;const _0x45d9a9=a153_0x45d9();let _0x62ade1=_0x45d9a9[_0x12c652];return _0x62ade1;}export async function resolveLatestUpdateNotice(){const _0x1dc470=a153_0x62ad;if(isUpdateNoticeDisabled())return null;try{const _0x157b44=Date['now'](),_0x2a0e00=getCliVersion(),_0x3936ab=await readUpdateNoticeCache();let _0x222a9f=isFreshCheck(_0x3936ab,_0x157b44)?_0x3936ab[_0x1dc470(0xa3)]?.[_0x1dc470(0xa9)]():undefined;if(!_0x222a9f&&!isFreshCheck(_0x3936ab,_0x157b44)){const _0x31f5e4=await fetchNpmDistTags();_0x222a9f=_0x31f5e4?.['latest']?.[_0x1dc470(0xa9)](),await writeUpdateNoticeCache({..._0x3936ab,'checkedAt':_0x157b44,'latest':_0x222a9f,'failed':!_0x222a9f});}if(!_0x222a9f||compareSemver(_0x2a0e00,_0x222a9f)>=0x0)return null;if(isRecentlyNotified(_0x3936ab,_0x222a9f,_0x157b44))return null;const _0x1c20c9=CLI_BIN_NAME+_0x1dc470(0xa8);return await writeUpdateNoticeCache({..._0x3936ab,'checkedAt':isFreshCheck(_0x3936ab,_0x157b44)?_0x3936ab['checkedAt']:_0x157b44,'latest':_0x222a9f,'failed':![],'lastNotifiedVersion':_0x222a9f,'lastNotifiedAt':_0x157b44}),{'command':_0x1c20c9,'current':_0x2a0e00,'latest':_0x222a9f,'url':buildNpmVersionUrl(_0x222a9f),'message':CLI_BIN_NAME+'\x20'+_0x222a9f+_0x1dc470(0x9d)+_0x2a0e00+_0x1dc470(0xa7)+_0x1c20c9};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a154_0x1400(){const _0x52012d=['slice','1854108vfWVIs','36pDZKiL','1806087dZozgq','6314997ggyvXM','unknown','56IineaQ','4CmvsfZ','14cBNVgf','121827Ptibku','414ZGxgdI','112ALkhcA','54070lLNcGI','50FVitKO','1094870PEFrGg','3236079leSKYN'];a154_0x1400=function(){return _0x52012d;};return a154_0x1400();}(function(_0x25699d,_0x5ac323){const _0x1d4f8a=a154_0x5deb,_0x352d9a=_0x25699d();while(!![]){try{const _0x1783f6=-parseInt(_0x1d4f8a(0x173))/0x1*(parseInt(_0x1d4f8a(0x182))/0x2)+parseInt(_0x1d4f8a(0x17d))/0x3*(-parseInt(_0x1d4f8a(0x181))/0x4)+-parseInt(_0x1d4f8a(0x176))/0x5*(parseInt(_0x1d4f8a(0x174))/0x6)+parseInt(_0x1d4f8a(0x178))/0x7*(-parseInt(_0x1d4f8a(0x180))/0x8)+parseInt(_0x1d4f8a(0x17b))/0x9*(parseInt(_0x1d4f8a(0x177))/0xa)+-parseInt(_0x1d4f8a(0x179))/0xb*(parseInt(_0x1d4f8a(0x17c))/0xc)+-parseInt(_0x1d4f8a(0x17e))/0xd*(-parseInt(_0x1d4f8a(0x175))/0xe);if(_0x1783f6===_0x5ac323)break;else _0x352d9a['push'](_0x352d9a['shift']());}catch(_0x50d857){_0x352d9a['push'](_0x352d9a['shift']());}}}(a154_0x1400,0xb41ff));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a154_0x5deb(_0x84a47d,_0x4db77a){_0x84a47d=_0x84a47d-0x173;const _0x1400e9=a154_0x1400();let _0x5deb3c=_0x1400e9[_0x84a47d];return _0x5deb3c;}export function getCliGitCommit(){const _0x335d9e=a154_0x5deb,_0x18e9b0=String(GIT_COMMIT);return _0x18e9b0&&_0x18e9b0!==_0x335d9e(0x17f)?_0x18e9b0:'';}export function getCliVersionDisplay(){const _0x2f01d0=a154_0x5deb,_0x18e785=getCliGitCommit(),_0x2883f0=BUILD_TIME[_0x2f01d0(0x17a)](0x0,0xa);if(!_0x18e785||!_0x2883f0)return VERSION;return VERSION+'\x20('+_0x18e785+',\x20'+_0x2883f0+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ee6be,_0x3904f7){var _0x2acb39=a155_0x11be,_0x1c76f2=_0x2ee6be();while(!![]){try{var _0x24bfc3=-parseInt(_0x2acb39(0xe6))/0x1+parseInt(_0x2acb39(0xe5))/0x2+parseInt(_0x2acb39(0xe3))/0x3*(-parseInt(_0x2acb39(0xe2))/0x4)+-parseInt(_0x2acb39(0xec))/0x5*(parseInt(_0x2acb39(0xe9))/0x6)+parseInt(_0x2acb39(0xeb))/0x7+-parseInt(_0x2acb39(0xe7))/0x8*(-parseInt(_0x2acb39(0xe8))/0x9)+parseInt(_0x2acb39(0xe4))/0xa;if(_0x24bfc3===_0x3904f7)break;else _0x1c76f2['push'](_0x1c76f2['shift']());}catch(_0x2ee10e){_0x1c76f2['push'](_0x1c76f2['shift']());}}}(a155_0x3dc8,0x956b0));function a155_0x11be(_0xce1251,_0x29c822){_0xce1251=_0xce1251-0xe2;var _0x3dc858=a155_0x3dc8();var _0x11be37=_0x3dc858[_0xce1251];return _0x11be37;}function a155_0x3dc8(){var _0x3d2bf1=['679330LujZXF','4DERkRG','3326547qgEsbf','4481990RHXSvH','373294bhVEFC','472626GFEHJX','16hhCaZW','4031730Ubdhor','6sWGmsV','write','5589997FlssKu'];a155_0x3dc8=function(){return _0x3d2bf1;};return a155_0x3dc8();}export function writeCliSideChannelLine(_0x3c873a){var _0x17a062=a155_0x11be;process['stderr'][_0x17a062(0xea)](_0x3c873a+'\x0a');}
|
package/package.json
CHANGED
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.2.6
|
|
4
|
+
version: 2.2.6
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
|
|
6
6
|
metadata:
|
|
7
7
|
requires:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.2.6
|
|
6
|
-
"skillVersion": "2.2.6
|
|
5
|
+
"packageVersion": "2.2.6",
|
|
6
|
+
"skillVersion": "2.2.6",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"references/lovrabet-user-account.md",
|
|
38
38
|
"references/lovrabet-workspace.md"
|
|
39
39
|
],
|
|
40
|
-
"digest": "
|
|
40
|
+
"digest": "cd76283621f7c49884cad293eb68a922c54a8a3382c195440ea90135df0b6ca9"
|
|
41
41
|
}
|