@lovrabet/lovrabet-cli 2.2.2-beta.1 → 2.2.2
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/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.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/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
|
-
const
|
|
1
|
+
const a127_0x163f03=a127_0x5b8a;(function(_0x16ac1f,_0x13ad69){const _0x4dfa2c=a127_0x5b8a,_0x27f891=_0x16ac1f();while(!![]){try{const _0x20b462=parseInt(_0x4dfa2c(0x91))/0x1*(parseInt(_0x4dfa2c(0x9f))/0x2)+parseInt(_0x4dfa2c(0x71))/0x3*(-parseInt(_0x4dfa2c(0x8f))/0x4)+parseInt(_0x4dfa2c(0x88))/0x5*(parseInt(_0x4dfa2c(0x80))/0x6)+parseInt(_0x4dfa2c(0x79))/0x7*(parseInt(_0x4dfa2c(0x85))/0x8)+-parseInt(_0x4dfa2c(0x78))/0x9+-parseInt(_0x4dfa2c(0x9b))/0xa*(-parseInt(_0x4dfa2c(0x81))/0xb)+-parseInt(_0x4dfa2c(0x95))/0xc;if(_0x20b462===_0x13ad69)break;else _0x27f891['push'](_0x27f891['shift']());}catch(_0x517083){_0x27f891['push'](_0x27f891['shift']());}}}(a127_0x27bb,0x296c6));import a127_0x256ee1 from'winston';import a127_0x3b3b67 from'node:fs';function a127_0x5b8a(_0x23192d,_0xfe1fac){_0x23192d=_0x23192d-0x64;const _0x27bb68=a127_0x27bb();let _0x5b8a15=_0x27bb68[_0x23192d];return _0x5b8a15;}import a127_0x356bdc from'node:path';function a127_0x27bb(){const _0x102b76=['existsSync','transports','currentRawCommand','map','winstonLogger','blue','mkdirSync','Starting:\x20','now','56673pEiOTY','details','error','createLogger','readFileSync','File','dirname','822654QCEvEr','917bzFchd','logFilePath','filter','clearLogs','red','split','level','78GrPFcv','11rxsYvK','timestamp','setLogPath','info','5480rWzvri','parse','format','47340SykRer','utf8','readLogs','combine','logFileName','initWinstonLogger','Failed:\x20','28RwSnuH','getWinstonInstance','4WYPvQT','log','warn','clear','4131672Qqqqqn','success','printf','logTask','writeFileSync','join','2903840KtXMMF','rawCommand','trim','unknown','117208Qagtee','command','message','stringify','setRawCommand','addColors'];a127_0x27bb=function(){return _0x102b76;};return a127_0x27bb();}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a127_0x163f03(0x6c)];[a127_0x163f03(0x7a)]='';[a127_0x163f03(0x6a)]='';constructor(){}[a127_0x163f03(0x66)](_0x3b3d92){const _0x5c5f57=a127_0x163f03;this[_0x5c5f57(0x6a)]=_0x3b3d92;}[a127_0x163f03(0x83)](_0x4dac5d){const _0x3c9bcf=a127_0x163f03;this[_0x3c9bcf(0x7a)]=a127_0x356bdc[_0x3c9bcf(0x9a)](_0x4dac5d,PRODUCT_CONFIG[_0x3c9bcf(0x8c)]),this['winstonLogger']&&this[_0x3c9bcf(0x6c)][_0x3c9bcf(0x94)](),this[_0x3c9bcf(0x8d)]();}[a127_0x163f03(0x8d)](){const _0xea165a=a127_0x163f03,_0xb1fcb6=a127_0x356bdc[_0xea165a(0x77)](this[_0xea165a(0x7a)]);!a127_0x3b3b67[_0xea165a(0x68)](_0xb1fcb6)&&a127_0x3b3b67[_0xea165a(0x6e)](_0xb1fcb6,{'recursive':!![]});const _0x525d50=a127_0x256ee1[_0xea165a(0x87)][_0xea165a(0x8b)](a127_0x256ee1[_0xea165a(0x87)]['timestamp'](),a127_0x256ee1[_0xea165a(0x87)]['errors']({'stack':!![]}),a127_0x256ee1['format'][_0xea165a(0x97)](_0x186278=>{const _0x2bf5c1=_0xea165a,_0x866f01={'timestamp':_0x186278[_0x2bf5c1(0x82)]||new Date()['toISOString'](),'level':_0x186278[_0x2bf5c1(0x7f)]||_0x2bf5c1(0x84),'command':_0x186278[_0x2bf5c1(0xa0)]||_0x2bf5c1(0x9e),'rawCommand':_0x186278[_0x2bf5c1(0x9c)]||this[_0x2bf5c1(0x6a)]||undefined,'message':_0x186278[_0x2bf5c1(0x64)]||'','duration':_0x186278['duration']||undefined,'details':_0x186278[_0x2bf5c1(0x72)]||undefined};return JSON[_0x2bf5c1(0x65)](_0x866f01);}));this[_0xea165a(0x6c)]=a127_0x256ee1[_0xea165a(0x74)]({'level':'info','format':_0x525d50,'transports':[new a127_0x256ee1[(_0xea165a(0x69))][(_0xea165a(0x76))]({'filename':this[_0xea165a(0x7a)],'level':_0xea165a(0x84)})],'silent':![]}),a127_0x256ee1[_0xea165a(0x67)]({'success':'green','error':_0xea165a(0x7d),'warn':'yellow','info':_0xea165a(0x6d)});}['info'](_0x29ce82,_0x148e50,_0x4f3347){const _0x2eb6f4=a127_0x163f03;if(!this[_0x2eb6f4(0x7a)]||!this[_0x2eb6f4(0x6c)])return;this[_0x2eb6f4(0x6c)][_0x2eb6f4(0x84)](_0x148e50,{'command':_0x29ce82,'details':_0x4f3347});}[a127_0x163f03(0x96)](_0x5c8894,_0x39fe91,_0xdeb306,_0x39505a){const _0x43ae75=a127_0x163f03;if(!this['logFilePath']||!this[_0x43ae75(0x6c)])return;this[_0x43ae75(0x6c)][_0x43ae75(0x92)]('info',_0x39fe91,{'level':_0x43ae75(0x96),'command':_0x5c8894,'duration':_0xdeb306,'details':_0x39505a});}[a127_0x163f03(0x73)](_0x124781,_0x20aad1,_0x4552ff){const _0x34c54f=a127_0x163f03;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x34c54f(0x6c)][_0x34c54f(0x73)](_0x20aad1,{'command':_0x124781,'details':_0x4552ff});}[a127_0x163f03(0x93)](_0x5ad876,_0x222fee,_0xe2e6af){const _0x398dcf=a127_0x163f03;if(!this[_0x398dcf(0x7a)]||!this[_0x398dcf(0x6c)])return;this[_0x398dcf(0x6c)]['warn'](_0x222fee,{'command':_0x5ad876,'details':_0xe2e6af});}async[a127_0x163f03(0x98)](_0x432da9,_0x5c6e2a,_0x3e3d80){const _0x3b3e36=a127_0x163f03,_0x5a6e61=Date[_0x3b3e36(0x70)]();this[_0x3b3e36(0x84)](_0x432da9,_0x3b3e36(0x6f)+_0x5c6e2a);try{const _0x210c7e=await _0x3e3d80(),_0x47270a=Date[_0x3b3e36(0x70)]()-_0x5a6e61;return this[_0x3b3e36(0x96)](_0x432da9,'Completed:\x20'+_0x5c6e2a,_0x47270a),_0x210c7e;}catch(_0x160116){const _0x50f3c7=Date[_0x3b3e36(0x70)]()-_0x5a6e61;this[_0x3b3e36(0x73)](_0x432da9,_0x3b3e36(0x8e)+_0x5c6e2a,{'error':_0x160116 instanceof Error?_0x160116['message']:String(_0x160116),'duration':_0x50f3c7});throw _0x160116;}}[a127_0x163f03(0x8a)](){const _0x2dee6a=a127_0x163f03;try{if(!a127_0x3b3b67[_0x2dee6a(0x68)](this[_0x2dee6a(0x7a)]))return[];const _0xa3e575=a127_0x3b3b67[_0x2dee6a(0x75)](this[_0x2dee6a(0x7a)],_0x2dee6a(0x89));return _0xa3e575[_0x2dee6a(0x7e)](/\r?\n/)[_0x2dee6a(0x7b)](_0x54ea85=>_0x54ea85[_0x2dee6a(0x9d)]())[_0x2dee6a(0x6b)](_0x176ffa=>JSON[_0x2dee6a(0x86)](_0x176ffa));}catch(_0x9e84ca){return console[_0x2dee6a(0x93)]('Failed\x20to\x20read\x20logs:',_0x9e84ca),[];}}[a127_0x163f03(0x7c)](){const _0x5f0d39=a127_0x163f03;try{a127_0x3b3b67[_0x5f0d39(0x68)](this[_0x5f0d39(0x7a)])&&a127_0x3b3b67[_0x5f0d39(0x99)](this[_0x5f0d39(0x7a)],'','utf8');}catch(_0x50c055){console[_0x5f0d39(0x93)]('Failed\x20to\x20clear\x20logs:',_0x50c055);}}[a127_0x163f03(0x90)](){const _0x1e4f2f=a127_0x163f03;return this[_0x1e4f2f(0x6c)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a128_0x515fa1=a128_0x3b5d;(function(_0x16a5e6,_0x2c5a2f){const _0x443984=a128_0x3b5d,_0x29ee69=_0x16a5e6();while(!![]){try{const _0x4881d1=parseInt(_0x443984(0x1bc))/0x1+-parseInt(_0x443984(0x1c0))/0x2+-parseInt(_0x443984(0x1af))/0x3*(-parseInt(_0x443984(0x1b6))/0x4)+parseInt(_0x443984(0x1b9))/0x5+-parseInt(_0x443984(0x1be))/0x6+-parseInt(_0x443984(0x1b0))/0x7*(parseInt(_0x443984(0x1c1))/0x8)+-parseInt(_0x443984(0x1b7))/0x9*(-parseInt(_0x443984(0x1b1))/0xa);if(_0x4881d1===_0x2c5a2f)break;else _0x29ee69['push'](_0x29ee69['shift']());}catch(_0x232841){_0x29ee69['push'](_0x29ee69['shift']());}}}(a128_0x2167,0x639ea));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a128_0x515fa1(0x1c2)]),MIN_SAFE_INTEGER=BigInt(Number[a128_0x515fa1(0x1ba)]);function a128_0x3b5d(_0x14e584,_0x17099d){_0x14e584=_0x14e584-0x1ae;const _0x2167a3=a128_0x2167();let _0x3b5da1=_0x2167a3[_0x14e584];return _0x3b5da1;}function a128_0x2167(){const _0x520af0=['MAX_SAFE_INTEGER','length','2374707TpRlki','63LVzsmG','1410rbdsnX','getOwnPropertyDescriptor','parse','prototype','undefined','4EtLBlM','23337iQSchg','defineProperty','1601990dqkhDZ','MIN_SAFE_INTEGER','text','412001fuMvvX','includes','3347136AfdmPj','json','1502882wAxiei','153104KbgTSF'];a128_0x2167=function(){return _0x520af0;};return a128_0x2167();}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x21ad4f){const _0x5eeb97=a128_0x515fa1;if(_0x21ad4f[_0x5eeb97(0x1bd)]('.')||_0x21ad4f[_0x5eeb97(0x1bd)]('e')||_0x21ad4f[_0x5eeb97(0x1bd)]('E'))return![];const _0x25ed1f=BigInt(_0x21ad4f);return _0x25ed1f>MAX_SAFE_INTEGER||_0x25ed1f<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x30c532){const _0x562860=a128_0x515fa1;let _0x5fef51='',_0x499ab4=![],_0x3fe348=![];for(let _0x1042b2=0x0;_0x1042b2<_0x30c532[_0x562860(0x1ae)];){const _0xf68b59=_0x30c532[_0x1042b2];if(_0x499ab4){_0x5fef51+=_0xf68b59,_0x1042b2+=0x1;if(_0x3fe348)_0x3fe348=![];else{if(_0xf68b59==='\x5c')_0x3fe348=!![];else _0xf68b59==='\x22'&&(_0x499ab4=![]);}continue;}if(_0xf68b59==='\x22'){_0x499ab4=!![],_0x5fef51+=_0xf68b59,_0x1042b2+=0x1;continue;}if(_0xf68b59==='-'||_0xf68b59>='0'&&_0xf68b59<='9'){const _0x263b6f=JSON_NUMBER_PATTERN['exec'](_0x30c532['slice'](_0x1042b2))?.[0x0];if(_0x263b6f){_0x5fef51+=isUnsafeIntegerLiteral(_0x263b6f)?'\x22'+_0x263b6f+'\x22':_0x263b6f,_0x1042b2+=_0x263b6f[_0x562860(0x1ae)];continue;}}_0x5fef51+=_0xf68b59,_0x1042b2+=0x1;}return _0x5fef51;}export function parseLosslessJson(_0x4035b7){const _0x48e226=a128_0x515fa1;return JSON[_0x48e226(0x1b3)](quoteUnsafeIntegerLiterals(_0x4035b7));}export function installLosslessJsonResponseParser(){const _0x2cc157=a128_0x515fa1;if(typeof Response===_0x2cc157(0x1b5))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x2cc157(0x1b4)],originalResponseJsonDescriptor=Object[_0x2cc157(0x1b2)](responseJsonPrototype,'json'),Object[_0x2cc157(0x1b8)](responseJsonPrototype,_0x2cc157(0x1bf),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x19aee3(){const _0x12e95a=_0x2cc157;return parseLosslessJson(await this[_0x12e95a(0x1bb)]());}}),restoreResponseJsonParser=()=>{const _0x11d08f=_0x2cc157;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x11d08f(0x1bf),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x11d08f(0x1bf)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a129_0x6693(){const _0x2f77be=['length','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','3689425NwZBOi','1548NjtlZC','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','items','10UcDxlk','validation','string','5806608EVJsmr','object','79877lnmEhx','1770ArOXCX','map','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20--params.','Invalid\x20JSON\x20for\x20--params:\x20','4aItJGq','join','isArray','number','555531plmYgM','330NGIXxA','\x20records\x20per\x20call;\x20received\x20','24813767nOwKKW','data\x20update\x20can\x20update\x20at\x20most\x20','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','78215bZBWMr'];a129_0x6693=function(){return _0x2f77be;};return a129_0x6693();}(function(_0x34c5f7,_0x14d845){const _0xe3f79d=a129_0x38be,_0x542061=_0x34c5f7();while(!![]){try{const _0x1bab92=-parseInt(_0xe3f79d(0x1e4))/0x1*(-parseInt(_0xe3f79d(0x1cf))/0x2)+-parseInt(_0xe3f79d(0x1de))/0x3*(-parseInt(_0xe3f79d(0x1da))/0x4)+parseInt(_0xe3f79d(0x1ca))/0x5+parseInt(_0xe3f79d(0x1df))/0x6*(parseInt(_0xe3f79d(0x1d4))/0x7)+parseInt(_0xe3f79d(0x1d2))/0x8+-parseInt(_0xe3f79d(0x1cb))/0x9*(parseInt(_0xe3f79d(0x1d5))/0xa)+-parseInt(_0xe3f79d(0x1e1))/0xb;if(_0x1bab92===_0x14d845)break;else _0x542061['push'](_0x542061['shift']());}catch(_0x4caa9b){_0x542061['push'](_0x542061['shift']());}}}(a129_0x6693,0x5d18f));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';function a129_0x38be(_0x3a6ceb,_0x92877b){_0x3a6ceb=_0x3a6ceb-0x1ca;const _0x669395=a129_0x6693();let _0x38be5c=_0x669395[_0x3a6ceb];return _0x38be5c;}export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x14e108){const _0x1a6470=a129_0x38be;if(!_0x14e108)return undefined;try{return parseLosslessJson(_0x14e108);}catch{throw CliErrors[_0x1a6470(0x1d0)](_0x1a6470(0x1d9)+_0x14e108);}}export function parseJsonParamsValue(_0x5affb4){const _0x228a9b=a129_0x38be;if(!_0x5affb4)return undefined;try{return parseLosslessJson(_0x5affb4);}catch{throw CliErrors[_0x228a9b(0x1d0)](_0x228a9b(0x1d9)+_0x5affb4);}}export function parseBatchCreateItemsFromParams(_0x2fd568){const _0x59408f=a129_0x38be;if(Array[_0x59408f(0x1dc)](_0x2fd568))return _0x2fd568;if(_0x2fd568!==null&&_0x2fd568!==undefined&&typeof _0x2fd568==='object'&&Array[_0x59408f(0x1dc)](_0x2fd568[_0x59408f(0x1ce)]))return _0x2fd568[_0x59408f(0x1ce)];throw CliErrors[_0x59408f(0x1d0)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x59408f(0x1d7));}function parseDataUpdateId(_0xd5fffc,_0xd89999){const _0x1fbfba=a129_0x38be;if(typeof _0xd5fffc===_0x1fbfba(0x1dd)&&Number['isSafeInteger'](_0xd5fffc)&&_0xd5fffc>0x0)return _0xd5fffc;if(typeof _0xd5fffc===_0x1fbfba(0x1d1)){if(/^[1-9]\d*$/['test'](_0xd5fffc))return _0xd5fffc;}throw CliErrors['validation'](_0x1fbfba(0x1d8)+_0xd89999+_0x1fbfba(0x1e3));}export function parseUpdateIdsFromParams(_0xc2adf4){const _0x3d80ff=a129_0x38be;if(_0xc2adf4===null||_0xc2adf4===undefined||typeof _0xc2adf4!==_0x3d80ff(0x1d3)||Array[_0x3d80ff(0x1dc)](_0xc2adf4))throw CliErrors[_0x3d80ff(0x1d0)](_0x3d80ff(0x1e6),_0x3d80ff(0x1e7));const _0x102f4f=_0xc2adf4['id'];if(_0x102f4f===undefined||_0x102f4f===null)throw CliErrors[_0x3d80ff(0x1d0)](_0x3d80ff(0x1cd),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x2802e0=Array[_0x3d80ff(0x1dc)](_0x102f4f)?_0x102f4f:[_0x102f4f];if(_0x2802e0['length']===0x0)throw CliErrors['validation'](_0x3d80ff(0x1cc));if(_0x2802e0[_0x3d80ff(0x1e5)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x3d80ff(0x1d0)](_0x3d80ff(0x1e2)+MAX_DATA_UPDATE_IDS+_0x3d80ff(0x1e0)+_0x2802e0[_0x3d80ff(0x1e5)]+'.');return _0x2802e0[_0x3d80ff(0x1d6)]((_0x5e9b07,_0x2d4dc6)=>parseDataUpdateId(_0x5e9b07,Array['isArray'](_0x102f4f)?'id['+_0x2d4dc6+']':'id'));}export function normalizeUpdateParamsForRuntime(_0xc4505b,_0x14e703){const _0x426ca4=a129_0x38be;if(Array[_0x426ca4(0x1dc)](_0xc4505b['id'])&&_0x14e703[_0x426ca4(0x1e5)]>0x1)return{..._0xc4505b,'id':_0x14e703[_0x426ca4(0x1db)](',')};return _0xc4505b;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130_0x300e86=a130_0x4c10;(function(_0x143ee2,_0x348606){const _0x3c4f0a=a130_0x4c10,_0x240dc1=_0x143ee2();while(!![]){try{const _0x2f72c4=parseInt(_0x3c4f0a(0xf8))/0x1+-parseInt(_0x3c4f0a(0xfa))/0x2*(-parseInt(_0x3c4f0a(0xfe))/0x3)+parseInt(_0x3c4f0a(0xf6))/0x4+parseInt(_0x3c4f0a(0xfd))/0x5*(parseInt(_0x3c4f0a(0xf9))/0x6)+parseInt(_0x3c4f0a(0xff))/0x7+parseInt(_0x3c4f0a(0xf7))/0x8*(parseInt(_0x3c4f0a(0x100))/0x9)+-parseInt(_0x3c4f0a(0xfc))/0xa;if(_0x2f72c4===_0x348606)break;else _0x240dc1['push'](_0x240dc1['shift']());}catch(_0x1d6cd4){_0x240dc1['push'](_0x240dc1['shift']());}}}(a130_0x392b,0x32665));export const isWindows=process[a130_0x300e86(0xfb)]==='win32';function a130_0x4c10(_0x3e5533,_0x521e0a){_0x3e5533=_0x3e5533-0xf6;const _0x392b85=a130_0x392b();let _0x4c1028=_0x392b85[_0x3e5533];return _0x4c1028;}export function resolveNpmBin(_0x26b690){return isWindows?_0x26b690+'.cmd':_0x26b690;}function a130_0x392b(){const _0x515c03=['7146HbEzla','582076XFHxTp','3176jETtBL','361897PYXJCP','15438Ydzrnp','2sETWPY','platform','13608850flbXEa','485hfxLAY','1096341PjblKm','907620qpjmvW'];a130_0x392b=function(){return _0x515c03;};return a130_0x392b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57f6b1,_0xec69ff){const _0x1c7001=a131_0x1bf2,_0x593d6c=_0x57f6b1();while(!![]){try{const _0x1ee84f=parseInt(_0x1c7001(0x15b))/0x1+parseInt(_0x1c7001(0x16b))/0x2*(-parseInt(_0x1c7001(0x15e))/0x3)+parseInt(_0x1c7001(0x154))/0x4+parseInt(_0x1c7001(0x14a))/0x5*(-parseInt(_0x1c7001(0x14e))/0x6)+-parseInt(_0x1c7001(0x157))/0x7+parseInt(_0x1c7001(0x16c))/0x8*(parseInt(_0x1c7001(0x158))/0x9)+-parseInt(_0x1c7001(0x170))/0xa*(parseInt(_0x1c7001(0x16a))/0xb);if(_0x1ee84f===_0xec69ff)break;else _0x593d6c['push'](_0x593d6c['shift']());}catch(_0x117f61){_0x593d6c['push'](_0x593d6c['shift']());}}}(a131_0x1058,0x8df24));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a131_0x1bf2(_0x3bbd0e,_0x5c718e){_0x3bbd0e=_0x3bbd0e-0x149;const _0x105892=a131_0x1058();let _0x1bf28f=_0x105892[_0x3bbd0e];return _0x1bf28f;}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(_0x4ecbba){const _0x27bd4a=a131_0x1bf2,_0x6690f2=_0x4ecbba[_0x27bd4a(0x163)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x6690f2)return null;return{'major':Number(_0x6690f2[0x1]),'minor':Number(_0x6690f2[0x2]),'patch':Number(_0x6690f2[0x3]),'prerelease':_0x6690f2[0x4]};}function compareSemver(_0x4084de,_0x29704a){const _0x4baaeb=a131_0x1bf2,_0x39ca0b=parseSemver(_0x4084de),_0x3a067a=parseSemver(_0x29704a);if(!_0x39ca0b||!_0x3a067a)throw new Error(_0x4baaeb(0x149));for(const _0x17d792 of['major',_0x4baaeb(0x150),_0x4baaeb(0x155)]){if(_0x39ca0b[_0x17d792]<_0x3a067a[_0x17d792])return-0x1;if(_0x39ca0b[_0x17d792]>_0x3a067a[_0x17d792])return 0x1;}if(!_0x39ca0b[_0x4baaeb(0x14d)]&&!_0x3a067a[_0x4baaeb(0x14d)])return 0x0;if(!_0x39ca0b[_0x4baaeb(0x14d)])return 0x1;if(!_0x3a067a[_0x4baaeb(0x14d)])return-0x1;if(_0x39ca0b['prerelease']===_0x3a067a[_0x4baaeb(0x14d)])return 0x0;return _0x39ca0b['prerelease']<_0x3a067a[_0x4baaeb(0x14d)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x154057=a131_0x1bf2,_0x4c90b9=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x154057(0x163)]()[_0x154057(0x14b)]();return _0x4c90b9==='1'||_0x4c90b9===_0x154057(0x14f)||_0x4c90b9===_0x154057(0x16d);}function cacheRoot(){const _0x463ff2=a131_0x1bf2;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x463ff2(0x15d));}export function getUpdateNoticeCachePath(){const _0x2b65f6=a131_0x1bf2;return join(cacheRoot(),'lovrabet-cli',_0x2b65f6(0x161));}async function readUpdateNoticeCache(){const _0x26ef7b=a131_0x1bf2;try{const _0x4b19dd=await readFile(getUpdateNoticeCachePath(),_0x26ef7b(0x168)),_0x17a0f2=JSON[_0x26ef7b(0x14c)](_0x4b19dd);if(!_0x17a0f2||typeof _0x17a0f2!==_0x26ef7b(0x16e))return{};return _0x17a0f2;}catch{return{};}}function a131_0x1058(){const _0x2578b6=['9BcwBoh','/v/','fromEntries','813933JZuznY','latest','.cache','3816HrNyxv','map','now','update-check.json','entries','trim','checkedAt','lastNotifiedVersion','\x20update','lastNotifiedAt','utf8','https://www.npmjs.com/package/','33YIaMxl','698oQISqn','6840712sERdwE','yes','object',',\x20run:\x20','3527110JmLcyK','Invalid\x20semver','15IeFmvy','toLowerCase','parse','prerelease','987522LItofK','true','minor','number','\x20available,\x20current\x20','/dist-tags','3979980ByzKKX','patch','filter','607481POZshf'];a131_0x1058=function(){return _0x2578b6;};return a131_0x1058();}async function writeUpdateNoticeCache(_0x1f7563){const _0x14e70e=a131_0x1bf2;try{const _0x1086b5=getUpdateNoticeCachePath();await mkdir(dirname(_0x1086b5),{'recursive':!![]}),await writeFile(_0x1086b5,JSON['stringify'](_0x1f7563,null,0x2)+'\x0a',_0x14e70e(0x168));}catch{}}function isFreshCheck(_0x3cf0c8,_0x5bc7eb){const _0x2942ba=a131_0x1bf2;return typeof _0x3cf0c8[_0x2942ba(0x164)]==='number'&&_0x5bc7eb-_0x3cf0c8[_0x2942ba(0x164)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xaf0c42,_0x22021f,_0x3b3c5d){const _0x3acc40=a131_0x1bf2;return _0xaf0c42[_0x3acc40(0x165)]===_0x22021f&&typeof _0xaf0c42['lastNotifiedAt']===_0x3acc40(0x151)&&_0x3b3c5d-_0xaf0c42[_0x3acc40(0x167)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x46d0a6=0x5dc){const _0x23432a=a131_0x1bf2;try{const _0x38fed1=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x23432a(0x153),_0x4f4566=await fetch(_0x38fed1,{'signal':AbortSignal['timeout'](_0x46d0a6)});if(!_0x4f4566['ok'])return null;const _0x38543c=await _0x4f4566['json']();if(!_0x38543c||typeof _0x38543c!==_0x23432a(0x16e))return null;return Object[_0x23432a(0x15a)](Object[_0x23432a(0x162)](_0x38543c)[_0x23432a(0x156)](([,_0x3d51fa])=>typeof _0x3d51fa==='string'&&_0x3d51fa['trim']())[_0x23432a(0x15f)](([_0x11bde8,_0x185239])=>[_0x11bde8,String(_0x185239)[_0x23432a(0x163)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x3bf49a){const _0x420223=a131_0x1bf2;return _0x420223(0x169)+LOVRABET_NPM_PACKAGE_NAME+_0x420223(0x159)+_0x3bf49a;}export async function resolveLatestUpdateNotice(){const _0xa69062=a131_0x1bf2;if(isUpdateNoticeDisabled())return null;try{const _0x2262c0=Date[_0xa69062(0x160)](),_0x49c11c=getCliVersion(),_0x2f29bc=await readUpdateNoticeCache();let _0x558599=isFreshCheck(_0x2f29bc,_0x2262c0)?_0x2f29bc[_0xa69062(0x15c)]?.['trim']():undefined;if(!_0x558599&&!isFreshCheck(_0x2f29bc,_0x2262c0)){const _0x477f54=await fetchNpmDistTags();_0x558599=_0x477f54?.[_0xa69062(0x15c)]?.['trim'](),await writeUpdateNoticeCache({..._0x2f29bc,'checkedAt':_0x2262c0,'latest':_0x558599,'failed':!_0x558599});}if(!_0x558599||compareSemver(_0x49c11c,_0x558599)>=0x0)return null;if(isRecentlyNotified(_0x2f29bc,_0x558599,_0x2262c0))return null;const _0x3db04e=CLI_BIN_NAME+_0xa69062(0x166);return await writeUpdateNoticeCache({..._0x2f29bc,'checkedAt':isFreshCheck(_0x2f29bc,_0x2262c0)?_0x2f29bc[_0xa69062(0x164)]:_0x2262c0,'latest':_0x558599,'failed':![],'lastNotifiedVersion':_0x558599,'lastNotifiedAt':_0x2262c0}),{'command':_0x3db04e,'current':_0x49c11c,'latest':_0x558599,'url':buildNpmVersionUrl(_0x558599),'message':CLI_BIN_NAME+'\x20'+_0x558599+_0xa69062(0x152)+_0x49c11c+_0xa69062(0x16f)+_0x3db04e};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5232d7,_0x42828f){const _0x26b036=a132_0x2206,_0x4fe2d0=_0x5232d7();while(!![]){try{const _0x435cdc=-parseInt(_0x26b036(0x1a4))/0x1*(parseInt(_0x26b036(0x1a1))/0x2)+-parseInt(_0x26b036(0x1a6))/0x3+-parseInt(_0x26b036(0x1a5))/0x4+parseInt(_0x26b036(0x1a0))/0x5+parseInt(_0x26b036(0x1a2))/0x6*(-parseInt(_0x26b036(0x19f))/0x7)+parseInt(_0x26b036(0x19e))/0x8+parseInt(_0x26b036(0x19d))/0x9;if(_0x435cdc===_0x42828f)break;else _0x4fe2d0['push'](_0x4fe2d0['shift']());}catch(_0x3c6e6d){_0x4fe2d0['push'](_0x4fe2d0['shift']());}}}(a132_0x5c94,0x98916));function a132_0x5c94(){const _0x2522fe=['9530766fAXzso','9339368WPuowJ','21ARxRRk','412215zBpeYq','10moprSx','934146LFRBUu','slice','51461amrjLd','1507576cBcgpn','1747944kWAEQH','unknown'];a132_0x5c94=function(){return _0x2522fe;};return a132_0x5c94();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x3264ea=a132_0x2206,_0x4977e4=String(GIT_COMMIT);return _0x4977e4&&_0x4977e4!==_0x3264ea(0x1a7)?_0x4977e4:'';}function a132_0x2206(_0x2433d7,_0x31f800){_0x2433d7=_0x2433d7-0x19d;const _0x5c94c5=a132_0x5c94();let _0x22064e=_0x5c94c5[_0x2433d7];return _0x22064e;}export function getCliVersionDisplay(){const _0x4ba035=a132_0x2206,_0x2f4f72=getCliGitCommit(),_0x33b76c=BUILD_TIME[_0x4ba035(0x1a3)](0x0,0xa);if(!_0x2f4f72||!_0x33b76c)return VERSION;return VERSION+'\x20('+_0x2f4f72+',\x20'+_0x33b76c+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a133_0x26f5(){var _0x23aa3b=['write','868382HEYCCG','40ZfsHPW','1192LMDszr','1984885lGXmYG','33696351ZGzlhj','8gQDRif','3275206zkzeky','85ilnzNT','510222QQWwzm','12pIZcGJ','1kKpSum','2658fMKjXS','6445800GusTrC'];a133_0x26f5=function(){return _0x23aa3b;};return a133_0x26f5();}(function(_0x39c944,_0x4094b9){var _0x47ddf6=a133_0x40a6,_0x35599a=_0x39c944();while(!![]){try{var _0x35c267=parseInt(_0x47ddf6(0xfd))/0x1*(-parseInt(_0x47ddf6(0x101))/0x2)+parseInt(_0x47ddf6(0xfe))/0x3*(parseInt(_0x47ddf6(0x103))/0x4)+-parseInt(_0x47ddf6(0xfa))/0x5*(parseInt(_0x47ddf6(0xfb))/0x6)+parseInt(_0x47ddf6(0x104))/0x7*(parseInt(_0x47ddf6(0xf8))/0x8)+parseInt(_0x47ddf6(0xff))/0x9+-parseInt(_0x47ddf6(0x102))/0xa*(parseInt(_0x47ddf6(0xf9))/0xb)+-parseInt(_0x47ddf6(0xfc))/0xc*(-parseInt(_0x47ddf6(0x105))/0xd);if(_0x35c267===_0x4094b9)break;else _0x35599a['push'](_0x35599a['shift']());}catch(_0x13be70){_0x35599a['push'](_0x35599a['shift']());}}}(a133_0x26f5,0xbfa6e));function a133_0x40a6(_0x27d6f0,_0x39fdba){_0x27d6f0=_0x27d6f0-0xf8;var _0x26f5a5=a133_0x26f5();var _0x40a67c=_0x26f5a5[_0x27d6f0];return _0x40a67c;}export function writeCliSideChannelLine(_0x452805){var _0x36f5db=a133_0x40a6;process['stderr'][_0x36f5db(0x100)](_0x452805+'\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.2
|
|
4
|
+
version: 2.2.2
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、personal BFF、文件上传、OCR 识别、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、发票识别、图片识别、附件上传、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.2
|
|
6
|
-
"skillVersion": "2.2.2
|
|
5
|
+
"packageVersion": "2.2.2",
|
|
6
|
+
"skillVersion": "2.2.2",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"references/lovrabet-update.md",
|
|
35
35
|
"references/lovrabet-workspace.md"
|
|
36
36
|
],
|
|
37
|
-
"digest": "
|
|
37
|
+
"digest": "a28635dc8d69d0caabd945261321da0ca6b45ff279d1e03817d7e4d727948525"
|
|
38
38
|
}
|