@lovrabet/lovrabet-cli 2.2.6 → 2.2.7
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
|
-
const
|
|
1
|
+
const a149_0x494fca=a149_0x3a23;(function(_0x5abe57,_0xee888e){const _0x2eca8b=a149_0x3a23,_0x2a42c3=_0x5abe57();while(!![]){try{const _0x1a8d94=parseInt(_0x2eca8b(0x15a))/0x1+parseInt(_0x2eca8b(0x168))/0x2+-parseInt(_0x2eca8b(0x170))/0x3+-parseInt(_0x2eca8b(0x16f))/0x4+parseInt(_0x2eca8b(0x164))/0x5*(parseInt(_0x2eca8b(0x154))/0x6)+parseInt(_0x2eca8b(0x15b))/0x7+-parseInt(_0x2eca8b(0x15f))/0x8;if(_0x1a8d94===_0xee888e)break;else _0x2a42c3['push'](_0x2a42c3['shift']());}catch(_0xc4b977){_0x2a42c3['push'](_0x2a42c3['shift']());}}}(a149_0x5329,0xa0cb9));import a149_0x244a7b from'winston';import a149_0x14e1d8 from'node:fs';function a149_0x5329(){const _0x55ca32=['info','transports','15509736bxTmBn','format','Failed:\x20','clearLogs','readFileSync','5953085qnNoFL','error','winstonLogger','Completed:\x20','2332588EWWkKK','Failed\x20to\x20clear\x20logs:','timestamp','errors','createLogger','logFilePath','setRawCommand','2007852XxoAYr','1950249yAeUNf','writeFileSync','rawCommand','success','red','currentRawCommand','Failed\x20to\x20read\x20logs:','clear','split','yellow','blue','utf8','logFileName','details','mkdirSync','filter','parse','existsSync','Starting:\x20','stringify','printf','level','now','map','join','command','readLogs','6WLhWoN','duration','logTask','warn','initWinstonLogger','message','1306620PQzJDr','600943RSIBJc','File'];a149_0x5329=function(){return _0x55ca32;};return a149_0x5329();}import a149_0x156906 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a149_0x3a23(_0x50f497,_0x133342){_0x50f497=_0x50f497-0x146;const _0x5329e1=a149_0x5329();let _0x3a2392=_0x5329e1[_0x50f497];return _0x3a2392;}class Logger{[a149_0x494fca(0x166)];[a149_0x494fca(0x16d)]='';[a149_0x494fca(0x175)]='';constructor(){}[a149_0x494fca(0x16e)](_0x8ea7ea){const _0x1844f6=a149_0x494fca;this[_0x1844f6(0x175)]=_0x8ea7ea;}['setLogPath'](_0x5e98c2){const _0x5b7abc=a149_0x494fca;this[_0x5b7abc(0x16d)]=a149_0x156906[_0x5b7abc(0x151)](_0x5e98c2,PRODUCT_CONFIG[_0x5b7abc(0x17c)]),this[_0x5b7abc(0x166)]&&this[_0x5b7abc(0x166)][_0x5b7abc(0x177)](),this[_0x5b7abc(0x158)]();}[a149_0x494fca(0x158)](){const _0x3194d2=a149_0x494fca,_0x1a9cff=a149_0x156906['dirname'](this[_0x3194d2(0x16d)]);!a149_0x14e1d8['existsSync'](_0x1a9cff)&&a149_0x14e1d8[_0x3194d2(0x147)](_0x1a9cff,{'recursive':!![]});const _0x2a4f0d=a149_0x244a7b[_0x3194d2(0x160)]['combine'](a149_0x244a7b['format'][_0x3194d2(0x16a)](),a149_0x244a7b[_0x3194d2(0x160)][_0x3194d2(0x16b)]({'stack':!![]}),a149_0x244a7b[_0x3194d2(0x160)][_0x3194d2(0x14d)](_0x5e2516=>{const _0x33be1d=_0x3194d2,_0x201037={'timestamp':_0x5e2516['timestamp']||new Date()['toISOString'](),'level':_0x5e2516[_0x33be1d(0x14e)]||_0x33be1d(0x15d),'command':_0x5e2516[_0x33be1d(0x152)]||'unknown','rawCommand':_0x5e2516[_0x33be1d(0x172)]||this['currentRawCommand']||undefined,'message':_0x5e2516[_0x33be1d(0x159)]||'','duration':_0x5e2516[_0x33be1d(0x155)]||undefined,'details':_0x5e2516[_0x33be1d(0x146)]||undefined};return JSON[_0x33be1d(0x14c)](_0x201037);}));this['winstonLogger']=a149_0x244a7b[_0x3194d2(0x16c)]({'level':_0x3194d2(0x15d),'format':_0x2a4f0d,'transports':[new a149_0x244a7b[(_0x3194d2(0x15e))][(_0x3194d2(0x15c))]({'filename':this['logFilePath'],'level':_0x3194d2(0x15d)})],'silent':![]}),a149_0x244a7b['addColors']({'success':'green','error':_0x3194d2(0x174),'warn':_0x3194d2(0x179),'info':_0x3194d2(0x17a)});}[a149_0x494fca(0x15d)](_0x1fd486,_0x380bed,_0x4c457d){const _0x2ca899=a149_0x494fca;if(!this['logFilePath']||!this[_0x2ca899(0x166)])return;this[_0x2ca899(0x166)][_0x2ca899(0x15d)](_0x380bed,{'command':_0x1fd486,'details':_0x4c457d});}[a149_0x494fca(0x173)](_0x372c1f,_0x111333,_0x39299f,_0x4505a4){const _0x1debff=a149_0x494fca;if(!this[_0x1debff(0x16d)]||!this[_0x1debff(0x166)])return;this[_0x1debff(0x166)]['log']('info',_0x111333,{'level':_0x1debff(0x173),'command':_0x372c1f,'duration':_0x39299f,'details':_0x4505a4});}[a149_0x494fca(0x165)](_0x1052c0,_0x253861,_0x2f7f92){const _0x4e3897=a149_0x494fca;if(!this[_0x4e3897(0x16d)]||!this[_0x4e3897(0x166)])return;this[_0x4e3897(0x166)][_0x4e3897(0x165)](_0x253861,{'command':_0x1052c0,'details':_0x2f7f92});}[a149_0x494fca(0x157)](_0x2078fb,_0x3c2572,_0x1c4719){const _0x342b3c=a149_0x494fca;if(!this[_0x342b3c(0x16d)]||!this['winstonLogger'])return;this[_0x342b3c(0x166)][_0x342b3c(0x157)](_0x3c2572,{'command':_0x2078fb,'details':_0x1c4719});}async[a149_0x494fca(0x156)](_0x18be90,_0x3d141b,_0x536c80){const _0x176137=a149_0x494fca,_0x3f5c5c=Date[_0x176137(0x14f)]();this['info'](_0x18be90,_0x176137(0x14b)+_0x3d141b);try{const _0x1ac2f8=await _0x536c80(),_0x504039=Date['now']()-_0x3f5c5c;return this[_0x176137(0x173)](_0x18be90,_0x176137(0x167)+_0x3d141b,_0x504039),_0x1ac2f8;}catch(_0x1a9872){const _0x31ac54=Date[_0x176137(0x14f)]()-_0x3f5c5c;this[_0x176137(0x165)](_0x18be90,_0x176137(0x161)+_0x3d141b,{'error':_0x1a9872 instanceof Error?_0x1a9872[_0x176137(0x159)]:String(_0x1a9872),'duration':_0x31ac54});throw _0x1a9872;}}[a149_0x494fca(0x153)](){const _0x3b2ea5=a149_0x494fca;try{if(!a149_0x14e1d8[_0x3b2ea5(0x14a)](this['logFilePath']))return[];const _0x353b69=a149_0x14e1d8[_0x3b2ea5(0x163)](this[_0x3b2ea5(0x16d)],_0x3b2ea5(0x17b));return _0x353b69[_0x3b2ea5(0x178)](/\r?\n/)[_0x3b2ea5(0x148)](_0x19efa1=>_0x19efa1['trim']())[_0x3b2ea5(0x150)](_0x4bb2aa=>JSON[_0x3b2ea5(0x149)](_0x4bb2aa));}catch(_0x516659){return console['warn'](_0x3b2ea5(0x176),_0x516659),[];}}[a149_0x494fca(0x162)](){const _0x1becac=a149_0x494fca;try{a149_0x14e1d8[_0x1becac(0x14a)](this[_0x1becac(0x16d)])&&a149_0x14e1d8[_0x1becac(0x171)](this[_0x1becac(0x16d)],'','utf8');}catch(_0x3353c9){console[_0x1becac(0x157)](_0x1becac(0x169),_0x3353c9);}}['getWinstonInstance'](){const _0x251802=a149_0x494fca;return this[_0x251802(0x166)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x1e185d=a150_0x3a5a;(function(_0x5afa09,_0x5ddf5d){const _0x45fac6=a150_0x3a5a,_0x2b9d91=_0x5afa09();while(!![]){try{const _0x41d024=parseInt(_0x45fac6(0x12c))/0x1*(-parseInt(_0x45fac6(0x138))/0x2)+-parseInt(_0x45fac6(0x130))/0x3+parseInt(_0x45fac6(0x12d))/0x4+-parseInt(_0x45fac6(0x12e))/0x5+parseInt(_0x45fac6(0x124))/0x6*(-parseInt(_0x45fac6(0x136))/0x7)+parseInt(_0x45fac6(0x137))/0x8+parseInt(_0x45fac6(0x129))/0x9;if(_0x41d024===_0x5ddf5d)break;else _0x2b9d91['push'](_0x2b9d91['shift']());}catch(_0x35baca){_0x2b9d91['push'](_0x2b9d91['shift']());}}}(a150_0x1226,0x8e5e8));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a150_0x1e185d(0x135)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0xa8955f){const _0x36466b=a150_0x1e185d;if(_0xa8955f['includes']('.')||_0xa8955f['includes']('e')||_0xa8955f[_0x36466b(0x125)]('E'))return![];const _0x5a8acd=BigInt(_0xa8955f);return _0x5a8acd>MAX_SAFE_INTEGER||_0x5a8acd<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0xbec89e){const _0x269b05=a150_0x1e185d;let _0x3f7162='',_0x12a0cb=![],_0x51f125=![];for(let _0x2565f1=0x0;_0x2565f1<_0xbec89e[_0x269b05(0x12a)];){const _0x15132a=_0xbec89e[_0x2565f1];if(_0x12a0cb){_0x3f7162+=_0x15132a,_0x2565f1+=0x1;if(_0x51f125)_0x51f125=![];else{if(_0x15132a==='\x5c')_0x51f125=!![];else _0x15132a==='\x22'&&(_0x12a0cb=![]);}continue;}if(_0x15132a==='\x22'){_0x12a0cb=!![],_0x3f7162+=_0x15132a,_0x2565f1+=0x1;continue;}if(_0x15132a==='-'||_0x15132a>='0'&&_0x15132a<='9'){const _0x373421=JSON_NUMBER_PATTERN[_0x269b05(0x12b)](_0xbec89e[_0x269b05(0x12f)](_0x2565f1))?.[0x0];if(_0x373421){_0x3f7162+=isUnsafeIntegerLiteral(_0x373421)?'\x22'+_0x373421+'\x22':_0x373421,_0x2565f1+=_0x373421[_0x269b05(0x12a)];continue;}}_0x3f7162+=_0x15132a,_0x2565f1+=0x1;}return _0x3f7162;}export function parseLosslessJson(_0x51fcce){const _0x15079e=a150_0x1e185d;return JSON[_0x15079e(0x132)](quoteUnsafeIntegerLiterals(_0x51fcce));}export function installLosslessJsonResponseParser(){const _0x4686df=a150_0x1e185d;if(typeof Response===_0x4686df(0x126))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x4686df(0x134)],originalResponseJsonDescriptor=Object[_0x4686df(0x133)](responseJsonPrototype,_0x4686df(0x128)),Object['defineProperty'](responseJsonPrototype,_0x4686df(0x128),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x37befb(){const _0x41523c=_0x4686df;return parseLosslessJson(await this[_0x41523c(0x131)]());}}),restoreResponseJsonParser=()=>{const _0xa8e3eb=_0x4686df;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0xa8e3eb(0x127)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0xa8e3eb(0x128)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a150_0x3a5a(_0xf32e37,_0x2d1498){_0xf32e37=_0xf32e37-0x124;const _0x12265c=a150_0x1226();let _0x3a5ad9=_0x12265c[_0xf32e37];return _0x3a5ad9;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}function a150_0x1226(){const _0x33fe9b=['json','9835164GEyant','length','exec','46RrTtZa','4381996ScpBGT','2300710iXMNnt','slice','477930APMLiZ','text','parse','getOwnPropertyDescriptor','prototype','MIN_SAFE_INTEGER','7KPuTuF','4443720hObJgK','44414BbbfZy','3117852ytnWUs','includes','undefined','defineProperty'];a150_0x1226=function(){return _0x33fe9b;};return a150_0x1226();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a151_0x2dab(){const _0x4cd3ab=['isArray','446392PxJLwb','903608SNUNtq','map','3427508ArSkmX','number','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','string','1994358VQMrkq','36fevrnp','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','\x20records\x20per\x20call;\x20received\x20','test','length','1601165ojpUnB','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','isSafeInteger','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','13194SLaIst','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Invalid\x20JSON\x20for\x20--params:\x20','join','items','object','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','data\x20update\x20--params.','1561878gwkyhS','validation','id[','1267TVWAdY'];a151_0x2dab=function(){return _0x4cd3ab;};return a151_0x2dab();}(function(_0x110443,_0x436776){const _0x164864=a151_0x1b3f,_0x126513=_0x110443();while(!![]){try{const _0x6eeacf=-parseInt(_0x164864(0x1bf))/0x1+-parseInt(_0x164864(0x1d9))/0x2+parseInt(_0x164864(0x1c6))/0x3+parseInt(_0x164864(0x1c2))/0x4+parseInt(_0x164864(0x1cc))/0x5+-parseInt(_0x164864(0x1d1))/0x6*(parseInt(_0x164864(0x1dc))/0x7)+-parseInt(_0x164864(0x1c0))/0x8*(-parseInt(_0x164864(0x1c7))/0x9);if(_0x6eeacf===_0x436776)break;else _0x126513['push'](_0x126513['shift']());}catch(_0x3d28e5){_0x126513['push'](_0x126513['shift']());}}}(a151_0x2dab,0xa32be));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x3eee4f){const _0x40e526=a151_0x1b3f;if(!_0x3eee4f)return undefined;try{return parseLosslessJson(_0x3eee4f);}catch{throw CliErrors['validation'](_0x40e526(0x1d3)+_0x3eee4f);}}function a151_0x1b3f(_0x42d25f,_0x1bd297){_0x42d25f=_0x42d25f-0x1be;const _0x2dab6c=a151_0x2dab();let _0x1b3fd8=_0x2dab6c[_0x42d25f];return _0x1b3fd8;}export function parseJsonParamsValue(_0x3793a5){const _0x21cefa=a151_0x1b3f;if(!_0x3793a5)return undefined;try{return parseLosslessJson(_0x3793a5);}catch{throw CliErrors['validation'](_0x21cefa(0x1d3)+_0x3793a5);}}export function parseBatchCreateItemsFromParams(_0x3843a0){const _0x8c2f50=a151_0x1b3f;if(Array['isArray'](_0x3843a0))return _0x3843a0;if(_0x3843a0!==null&&_0x3843a0!==undefined&&typeof _0x3843a0==='object'&&Array[_0x8c2f50(0x1be)](_0x3843a0[_0x8c2f50(0x1d5)]))return _0x3843a0[_0x8c2f50(0x1d5)];throw CliErrors[_0x8c2f50(0x1da)](_0x8c2f50(0x1c8),_0x8c2f50(0x1d2));}function parseDataUpdateId(_0x5db5dc,_0x12ea3a){const _0x3a0191=a151_0x1b3f;if(typeof _0x5db5dc===_0x3a0191(0x1c3)&&Number[_0x3a0191(0x1ce)](_0x5db5dc)&&_0x5db5dc>0x0)return _0x5db5dc;if(typeof _0x5db5dc===_0x3a0191(0x1c5)){if(/^[1-9]\d*$/[_0x3a0191(0x1ca)](_0x5db5dc))return _0x5db5dc;}throw CliErrors['validation'](_0x3a0191(0x1d8)+_0x12ea3a+_0x3a0191(0x1cd));}export function parseUpdateIdsFromParams(_0xa532fb){const _0x3495d9=a151_0x1b3f;if(_0xa532fb===null||_0xa532fb===undefined||typeof _0xa532fb!==_0x3495d9(0x1d6)||Array['isArray'](_0xa532fb))throw CliErrors[_0x3495d9(0x1da)](_0x3495d9(0x1d7),_0x3495d9(0x1d0));const _0x863ac1=_0xa532fb['id'];if(_0x863ac1===undefined||_0x863ac1===null)throw CliErrors[_0x3495d9(0x1da)](_0x3495d9(0x1cf),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x11cbb7=Array[_0x3495d9(0x1be)](_0x863ac1)?_0x863ac1:[_0x863ac1];if(_0x11cbb7[_0x3495d9(0x1cb)]===0x0)throw CliErrors[_0x3495d9(0x1da)](_0x3495d9(0x1c4));if(_0x11cbb7['length']>MAX_DATA_UPDATE_IDS)throw CliErrors['validation']('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x3495d9(0x1c9)+_0x11cbb7[_0x3495d9(0x1cb)]+'.');return _0x11cbb7[_0x3495d9(0x1c1)]((_0x420836,_0xc5bc2f)=>parseDataUpdateId(_0x420836,Array[_0x3495d9(0x1be)](_0x863ac1)?_0x3495d9(0x1db)+_0xc5bc2f+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x44c424,_0x107ffb){const _0x1257ce=a151_0x1b3f;if(Array[_0x1257ce(0x1be)](_0x44c424['id'])&&_0x107ffb[_0x1257ce(0x1cb)]>0x1)return{..._0x44c424,'id':_0x107ffb[_0x1257ce(0x1d4)](',')};return _0x44c424;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a152_0x3db7(_0xd5691,_0x9fd04b){_0xd5691=_0xd5691-0xb3;const _0x401388=a152_0x4013();let _0x3db7a9=_0x401388[_0xd5691];return _0x3db7a9;}function a152_0x4013(){const _0x1740b2=['71160rDPMwN','511440ZJQUNE','142800lFrLsR','192dAoPbF','3577110PWyQtX','1468107oiFwRm','8VnRKXU','600dBIeqg','10160wrOASk','platform','11CDmncQ','win32','7hOwMiS'];a152_0x4013=function(){return _0x1740b2;};return a152_0x4013();}const a152_0x4e94a1=a152_0x3db7;(function(_0x2980d5,_0x49d536){const _0x31366d=a152_0x3db7,_0x5420c4=_0x2980d5();while(!![]){try{const _0x5eab72=-parseInt(_0x31366d(0xb5))/0x1+-parseInt(_0x31366d(0xb7))/0x2+-parseInt(_0x31366d(0xb6))/0x3+-parseInt(_0x31366d(0xb8))/0x4*(parseInt(_0x31366d(0xbd))/0x5)+-parseInt(_0x31366d(0xbc))/0x6*(parseInt(_0x31366d(0xb4))/0x7)+parseInt(_0x31366d(0xbb))/0x8*(parseInt(_0x31366d(0xba))/0x9)+parseInt(_0x31366d(0xb9))/0xa*(parseInt(_0x31366d(0xbf))/0xb);if(_0x5eab72===_0x49d536)break;else _0x5420c4['push'](_0x5420c4['shift']());}catch(_0xc8f1df){_0x5420c4['push'](_0x5420c4['shift']());}}}(a152_0x4013,0x1ae4e));export const isWindows=process[a152_0x4e94a1(0xbe)]===a152_0x4e94a1(0xb3);export function resolveNpmBin(_0x41ff4c){return isWindows?_0x41ff4c+'.cmd':_0x41ff4c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53b639,_0x3b9c6b){const _0xe53df3=a153_0x4959,_0x5979f1=_0x53b639();while(!![]){try{const _0x51c5d8=-parseInt(_0xe53df3(0xa7))/0x1*(parseInt(_0xe53df3(0xb7))/0x2)+parseInt(_0xe53df3(0x99))/0x3*(-parseInt(_0xe53df3(0xc0))/0x4)+-parseInt(_0xe53df3(0xb9))/0x5*(parseInt(_0xe53df3(0xa0))/0x6)+parseInt(_0xe53df3(0xbd))/0x7+parseInt(_0xe53df3(0xc2))/0x8*(parseInt(_0xe53df3(0xbc))/0x9)+-parseInt(_0xe53df3(0xb8))/0xa*(-parseInt(_0xe53df3(0xc1))/0xb)+-parseInt(_0xe53df3(0xad))/0xc*(-parseInt(_0xe53df3(0xa5))/0xd);if(_0x51c5d8===_0x3b9c6b)break;else _0x5979f1['push'](_0x5979f1['shift']());}catch(_0x16aa77){_0x5979f1['push'](_0x5979f1['shift']());}}}(a153_0x1a60,0x4db08));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a153_0x4959(_0x2f0f2b,_0x285924){_0x2f0f2b=_0x2f0f2b-0x99;const _0x1a6055=a153_0x1a60();let _0x495918=_0x1a6055[_0x2f0f2b];return _0x495918;}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(_0x442ece){const _0xfd7bf6=a153_0x4959,_0xcf67de=_0x442ece['trim']()[_0xfd7bf6(0x9a)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xcf67de)return null;return{'major':Number(_0xcf67de[0x1]),'minor':Number(_0xcf67de[0x2]),'patch':Number(_0xcf67de[0x3]),'prerelease':_0xcf67de[0x4]};}function compareSemver(_0x3cb771,_0x5853cb){const _0x34e63c=a153_0x4959,_0x338da7=parseSemver(_0x3cb771),_0x5a5104=parseSemver(_0x5853cb);if(!_0x338da7||!_0x5a5104)throw new Error(_0x34e63c(0x9c));for(const _0x570491 of[_0x34e63c(0xb5),_0x34e63c(0xb6),_0x34e63c(0xac)]){if(_0x338da7[_0x570491]<_0x5a5104[_0x570491])return-0x1;if(_0x338da7[_0x570491]>_0x5a5104[_0x570491])return 0x1;}if(!_0x338da7[_0x34e63c(0xbf)]&&!_0x5a5104[_0x34e63c(0xbf)])return 0x0;if(!_0x338da7[_0x34e63c(0xbf)])return 0x1;if(!_0x5a5104[_0x34e63c(0xbf)])return-0x1;if(_0x338da7[_0x34e63c(0xbf)]===_0x5a5104['prerelease'])return 0x0;return _0x338da7[_0x34e63c(0xbf)]<_0x5a5104[_0x34e63c(0xbf)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x427788=a153_0x4959,_0x11068e=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x427788(0xa8)]()['toLowerCase']();return _0x11068e==='1'||_0x11068e==='true'||_0x11068e===_0x427788(0xa1);}function cacheRoot(){const _0x39bc7d=a153_0x4959;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x39bc7d(0x9d));}export function getUpdateNoticeCachePath(){const _0x13da5b=a153_0x4959;return join(cacheRoot(),_0x13da5b(0xae),_0x13da5b(0xbb));}async function readUpdateNoticeCache(){const _0x3ca869=a153_0x4959;try{const _0x141824=await readFile(getUpdateNoticeCachePath(),_0x3ca869(0xa3)),_0x23091c=JSON[_0x3ca869(0xc3)](_0x141824);if(!_0x23091c||typeof _0x23091c!==_0x3ca869(0xba))return{};return _0x23091c;}catch{return{};}}function a153_0x1a60(){const _0x1f5ecb=['string','18QLmJiN','yes','json','utf8','\x20update','16809DwuSoa','/v/','9769WVxLTE','trim','map','https://www.npmjs.com/package/','latest','patch','4896SbTrAZ','lovrabet-cli','number','\x20available,\x20current\x20','/dist-tags','filter','checkedAt','/-/package/','major','minor','98GDxSuH','9630oMkWQN','289430tCgSes','object','update-check.json','45mOTjEB','2827111EJIyJP','stringify','prerelease','448084IYMFVs','4609sBxqMV','133960vTRzDw','parse','12ARhjGJ','match',',\x20run:\x20','Invalid\x20semver','.cache','lastNotifiedAt'];a153_0x1a60=function(){return _0x1f5ecb;};return a153_0x1a60();}async function writeUpdateNoticeCache(_0x1e2cc6){const _0x22fc84=a153_0x4959;try{const _0xdd2923=getUpdateNoticeCachePath();await mkdir(dirname(_0xdd2923),{'recursive':!![]}),await writeFile(_0xdd2923,JSON[_0x22fc84(0xbe)](_0x1e2cc6,null,0x2)+'\x0a',_0x22fc84(0xa3));}catch{}}function isFreshCheck(_0x1af1a9,_0x449ce0){const _0x1ffde7=a153_0x4959;return typeof _0x1af1a9['checkedAt']===_0x1ffde7(0xaf)&&_0x449ce0-_0x1af1a9['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4f3efe,_0x1d81b4,_0x1116dd){const _0x549f6c=a153_0x4959;return _0x4f3efe['lastNotifiedVersion']===_0x1d81b4&&typeof _0x4f3efe[_0x549f6c(0x9e)]===_0x549f6c(0xaf)&&_0x1116dd-_0x4f3efe['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x25c17f=0x5dc){const _0x1037de=a153_0x4959;try{const _0x15eaaa=NPM_REGISTRY_BASE_URL+_0x1037de(0xb4)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1037de(0xb1),_0x2655eb=await fetch(_0x15eaaa,{'signal':AbortSignal['timeout'](_0x25c17f)});if(!_0x2655eb['ok'])return null;const _0x1816ce=await _0x2655eb[_0x1037de(0xa2)]();if(!_0x1816ce||typeof _0x1816ce!==_0x1037de(0xba))return null;return Object['fromEntries'](Object['entries'](_0x1816ce)[_0x1037de(0xb2)](([,_0x3ac1cc])=>typeof _0x3ac1cc===_0x1037de(0x9f)&&_0x3ac1cc['trim']())[_0x1037de(0xa9)](([_0x5383ca,_0x4a00d0])=>[_0x5383ca,String(_0x4a00d0)[_0x1037de(0xa8)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x5b8ecc){const _0x2042bf=a153_0x4959;return _0x2042bf(0xaa)+LOVRABET_NPM_PACKAGE_NAME+_0x2042bf(0xa6)+_0x5b8ecc;}export async function resolveLatestUpdateNotice(){const _0x2c61cb=a153_0x4959;if(isUpdateNoticeDisabled())return null;try{const _0x359b07=Date['now'](),_0x266761=getCliVersion(),_0x519650=await readUpdateNoticeCache();let _0xef58e7=isFreshCheck(_0x519650,_0x359b07)?_0x519650[_0x2c61cb(0xab)]?.[_0x2c61cb(0xa8)]():undefined;if(!_0xef58e7&&!isFreshCheck(_0x519650,_0x359b07)){const _0x15a6a7=await fetchNpmDistTags();_0xef58e7=_0x15a6a7?.['latest']?.['trim'](),await writeUpdateNoticeCache({..._0x519650,'checkedAt':_0x359b07,'latest':_0xef58e7,'failed':!_0xef58e7});}if(!_0xef58e7||compareSemver(_0x266761,_0xef58e7)>=0x0)return null;if(isRecentlyNotified(_0x519650,_0xef58e7,_0x359b07))return null;const _0x9d1add=CLI_BIN_NAME+_0x2c61cb(0xa4);return await writeUpdateNoticeCache({..._0x519650,'checkedAt':isFreshCheck(_0x519650,_0x359b07)?_0x519650[_0x2c61cb(0xb3)]:_0x359b07,'latest':_0xef58e7,'failed':![],'lastNotifiedVersion':_0xef58e7,'lastNotifiedAt':_0x359b07}),{'command':_0x9d1add,'current':_0x266761,'latest':_0xef58e7,'url':buildNpmVersionUrl(_0xef58e7),'message':CLI_BIN_NAME+'\x20'+_0xef58e7+_0x2c61cb(0xb0)+_0x266761+_0x2c61cb(0x9b)+_0x9d1add};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x9e988f,_0x1ff2e4){const _0x2ef337=a154_0x1af8,_0xf3555e=_0x9e988f();while(!![]){try{const _0x3cc7b0=parseInt(_0x2ef337(0xf5))/0x1*(parseInt(_0x2ef337(0xf9))/0x2)+-parseInt(_0x2ef337(0xf1))/0x3*(-parseInt(_0x2ef337(0xfa))/0x4)+-parseInt(_0x2ef337(0xfc))/0x5*(parseInt(_0x2ef337(0xf2))/0x6)+-parseInt(_0x2ef337(0xf4))/0x7*(-parseInt(_0x2ef337(0xfb))/0x8)+parseInt(_0x2ef337(0xfe))/0x9*(parseInt(_0x2ef337(0xf6))/0xa)+parseInt(_0x2ef337(0xfd))/0xb+-parseInt(_0x2ef337(0xf3))/0xc;if(_0x3cc7b0===_0x1ff2e4)break;else _0xf3555e['push'](_0xf3555e['shift']());}catch(_0x29e6d5){_0xf3555e['push'](_0xf3555e['shift']());}}}(a154_0x3701,0x48ee9));function a154_0x3701(){const _0x25c7ad=['554351xwoqUL','3070bURimW','slice','unknown','2zAFKCQ','10468zQuIVY','16lCoxWR','695535OOXLyD','5049572GrPDaR','8271dPptQw','33fZoRBm','12ZcGFDU','15424296jDWQgr','1882923FdXTsa'];a154_0x3701=function(){return _0x25c7ad;};return a154_0x3701();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0xabdd8d=a154_0x1af8,_0x40c968=String(GIT_COMMIT);return _0x40c968&&_0x40c968!==_0xabdd8d(0xf8)?_0x40c968:'';}function a154_0x1af8(_0x7ce249,_0x2a7ca2){_0x7ce249=_0x7ce249-0xf1;const _0x370165=a154_0x3701();let _0x1af8a0=_0x370165[_0x7ce249];return _0x1af8a0;}export function getCliVersionDisplay(){const _0x102885=a154_0x1af8,_0x2109c2=getCliGitCommit(),_0x35a7b3=BUILD_TIME[_0x102885(0xf7)](0x0,0xa);if(!_0x2109c2||!_0x35a7b3)return VERSION;return VERSION+'\x20('+_0x2109c2+',\x20'+_0x35a7b3+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a155_0x2abf(_0x3252b2,_0x4bfcdc){_0x3252b2=_0x3252b2-0x18b;var _0x2baa2e=a155_0x2baa();var _0x2abf14=_0x2baa2e[_0x3252b2];return _0x2abf14;}(function(_0x577321,_0xc399a1){var _0x18607a=a155_0x2abf,_0x2b1f3a=_0x577321();while(!![]){try{var _0x26d130=-parseInt(_0x18607a(0x18e))/0x1*(parseInt(_0x18607a(0x18b))/0x2)+parseInt(_0x18607a(0x195))/0x3+parseInt(_0x18607a(0x18d))/0x4*(-parseInt(_0x18607a(0x192))/0x5)+-parseInt(_0x18607a(0x196))/0x6*(parseInt(_0x18607a(0x190))/0x7)+-parseInt(_0x18607a(0x18c))/0x8+-parseInt(_0x18607a(0x193))/0x9+parseInt(_0x18607a(0x191))/0xa;if(_0x26d130===_0xc399a1)break;else _0x2b1f3a['push'](_0x2b1f3a['shift']());}catch(_0x456c1c){_0x2b1f3a['push'](_0x2b1f3a['shift']());}}}(a155_0x2baa,0x7a5ee));export function writeCliSideChannelLine(_0x5ac3de){var _0x55da4b=a155_0x2abf;process[_0x55da4b(0x194)][_0x55da4b(0x18f)](_0x5ac3de+'\x0a');}function a155_0x2baa(){var _0x49da5a=['stderr','2835453gvHMYP','2659686gXMgZk','318FsAQdj','3706304MxRiyv','75292JNavKn','3203AGWJCi','write','7CZqXcZ','16415390wIHslU','75sHPRiX','3485421ppBcOc'];a155_0x2baa=function(){return _0x49da5a;};return a155_0x2baa();}
|
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.
|
|
4
|
+
version: 2.2.7
|
|
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
|
-
"skillVersion": "2.2.
|
|
5
|
+
"packageVersion": "2.2.7",
|
|
6
|
+
"skillVersion": "2.2.7",
|
|
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": "9a93317b44b00c6aa73f86b181706a8e430136f20088fe9fa8ddf211560cf785"
|
|
41
41
|
}
|