@lovrabet/lovrabet-cli 2.2.4 → 2.2.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/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.d.ts +7 -0
- 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.d.ts +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_0x132915=a149_0x4b1d;(function(_0x39dca6,_0x3b51a8){const _0x38226c=a149_0x4b1d,_0x450755=_0x39dca6();while(!![]){try{const _0x403880=parseInt(_0x38226c(0xfc))/0x1*(-parseInt(_0x38226c(0xe7))/0x2)+-parseInt(_0x38226c(0xfe))/0x3*(parseInt(_0x38226c(0xd4))/0x4)+parseInt(_0x38226c(0xe8))/0x5+-parseInt(_0x38226c(0xde))/0x6*(parseInt(_0x38226c(0xd9))/0x7)+parseInt(_0x38226c(0xe6))/0x8*(-parseInt(_0x38226c(0xf9))/0x9)+-parseInt(_0x38226c(0xdd))/0xa*(-parseInt(_0x38226c(0xf2))/0xb)+parseInt(_0x38226c(0xdb))/0xc;if(_0x403880===_0x3b51a8)break;else _0x450755['push'](_0x450755['shift']());}catch(_0x743939){_0x450755['push'](_0x450755['shift']());}}}(a149_0x208a,0x7deb6));import a149_0x3773e0 from'winston';function a149_0x4b1d(_0x377dea,_0x335fee){_0x377dea=_0x377dea-0xd2;const _0x208a6d=a149_0x208a();let _0x4b1dcd=_0x208a6d[_0x377dea];return _0x4b1dcd;}function a149_0x208a(){const _0x228dd4=['mkdirSync','join','red','format','File','toISOString','192RpMLkO','readFileSync','currentRawCommand','warn','green','16373tyApaC','now','20307324DaVKRS','getWinstonInstance','3780eAuWfT','378dSsCwB','command','log','timestamp','logFilePath','error','unknown','printf','16hEzTSW','4EOrUsy','416110nYBdZt','rawCommand','stringify','errors','clearLogs','success','level','logFileName','split','Failed\x20to\x20read\x20logs:','18029yBOdNl','clear','filter','info','createLogger','combine','initWinstonLogger','3689316ArvsyD','winstonLogger','utf8','148331qVcXUw','readLogs','38463CuGuGx','duration','Completed:\x20'];a149_0x208a=function(){return _0x228dd4;};return a149_0x208a();}import a149_0x13c412 from'node:fs';import a149_0x1fc406 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a149_0x132915(0xe2)]='';[a149_0x132915(0xd6)]='';constructor(){}['setRawCommand'](_0x350f4e){this['currentRawCommand']=_0x350f4e;}['setLogPath'](_0x3d0374){const _0x288955=a149_0x132915;this[_0x288955(0xe2)]=a149_0x1fc406[_0x288955(0x102)](_0x3d0374,PRODUCT_CONFIG[_0x288955(0xef)]),this['winstonLogger']&&this[_0x288955(0xfa)][_0x288955(0xf3)](),this[_0x288955(0xf8)]();}[a149_0x132915(0xf8)](){const _0x468057=a149_0x132915,_0xf6c652=a149_0x1fc406['dirname'](this['logFilePath']);!a149_0x13c412['existsSync'](_0xf6c652)&&a149_0x13c412[_0x468057(0x101)](_0xf6c652,{'recursive':!![]});const _0x51b420=a149_0x3773e0[_0x468057(0x104)][_0x468057(0xf7)](a149_0x3773e0['format'][_0x468057(0xe1)](),a149_0x3773e0[_0x468057(0x104)][_0x468057(0xeb)]({'stack':!![]}),a149_0x3773e0[_0x468057(0x104)][_0x468057(0xe5)](_0x3391b1=>{const _0x80c160=_0x468057,_0x260547={'timestamp':_0x3391b1[_0x80c160(0xe1)]||new Date()[_0x80c160(0xd3)](),'level':_0x3391b1[_0x80c160(0xee)]||_0x80c160(0xf5),'command':_0x3391b1[_0x80c160(0xdf)]||_0x80c160(0xe4),'rawCommand':_0x3391b1[_0x80c160(0xe9)]||this['currentRawCommand']||undefined,'message':_0x3391b1['message']||'','duration':_0x3391b1[_0x80c160(0xff)]||undefined,'details':_0x3391b1['details']||undefined};return JSON[_0x80c160(0xea)](_0x260547);}));this[_0x468057(0xfa)]=a149_0x3773e0[_0x468057(0xf6)]({'level':_0x468057(0xf5),'format':_0x51b420,'transports':[new a149_0x3773e0['transports'][(_0x468057(0xd2))]({'filename':this['logFilePath'],'level':_0x468057(0xf5)})],'silent':![]}),a149_0x3773e0['addColors']({'success':_0x468057(0xd8),'error':_0x468057(0x103),'warn':'yellow','info':'blue'});}['info'](_0x2724f3,_0xf08622,_0x2b5354){const _0x1d5e79=a149_0x132915;if(!this[_0x1d5e79(0xe2)]||!this[_0x1d5e79(0xfa)])return;this['winstonLogger']['info'](_0xf08622,{'command':_0x2724f3,'details':_0x2b5354});}[a149_0x132915(0xed)](_0x17e8fc,_0x1b95b0,_0x351efc,_0x330d3e){const _0x6d3ca5=a149_0x132915;if(!this[_0x6d3ca5(0xe2)]||!this[_0x6d3ca5(0xfa)])return;this[_0x6d3ca5(0xfa)][_0x6d3ca5(0xe0)](_0x6d3ca5(0xf5),_0x1b95b0,{'level':_0x6d3ca5(0xed),'command':_0x17e8fc,'duration':_0x351efc,'details':_0x330d3e});}[a149_0x132915(0xe3)](_0x143927,_0x162ab6,_0x302cf6){const _0x204452=a149_0x132915;if(!this[_0x204452(0xe2)]||!this[_0x204452(0xfa)])return;this['winstonLogger'][_0x204452(0xe3)](_0x162ab6,{'command':_0x143927,'details':_0x302cf6});}[a149_0x132915(0xd7)](_0x9fbf6,_0x16dad2,_0x553e2c){const _0x1aae96=a149_0x132915;if(!this[_0x1aae96(0xe2)]||!this[_0x1aae96(0xfa)])return;this['winstonLogger']['warn'](_0x16dad2,{'command':_0x9fbf6,'details':_0x553e2c});}async['logTask'](_0x47175f,_0x269b9b,_0x273194){const _0x4cf49a=a149_0x132915,_0xb16253=Date[_0x4cf49a(0xda)]();this[_0x4cf49a(0xf5)](_0x47175f,'Starting:\x20'+_0x269b9b);try{const _0xd2e4a1=await _0x273194(),_0x5df4f2=Date[_0x4cf49a(0xda)]()-_0xb16253;return this[_0x4cf49a(0xed)](_0x47175f,_0x4cf49a(0x100)+_0x269b9b,_0x5df4f2),_0xd2e4a1;}catch(_0x25f360){const _0x1496ec=Date[_0x4cf49a(0xda)]()-_0xb16253;this[_0x4cf49a(0xe3)](_0x47175f,'Failed:\x20'+_0x269b9b,{'error':_0x25f360 instanceof Error?_0x25f360['message']:String(_0x25f360),'duration':_0x1496ec});throw _0x25f360;}}[a149_0x132915(0xfd)](){const _0x1c273d=a149_0x132915;try{if(!a149_0x13c412['existsSync'](this['logFilePath']))return[];const _0x8d2ca8=a149_0x13c412[_0x1c273d(0xd5)](this[_0x1c273d(0xe2)],_0x1c273d(0xfb));return _0x8d2ca8[_0x1c273d(0xf0)](/\r?\n/)[_0x1c273d(0xf4)](_0x9258c0=>_0x9258c0['trim']())['map'](_0x56f012=>JSON['parse'](_0x56f012));}catch(_0xa8ff4f){return console['warn'](_0x1c273d(0xf1),_0xa8ff4f),[];}}[a149_0x132915(0xec)](){const _0x4703b1=a149_0x132915;try{a149_0x13c412['existsSync'](this['logFilePath'])&&a149_0x13c412['writeFileSync'](this[_0x4703b1(0xe2)],'',_0x4703b1(0xfb));}catch(_0x39b71a){console['warn']('Failed\x20to\x20clear\x20logs:',_0x39b71a);}}[a149_0x132915(0xdc)](){const _0xb87f54=a149_0x132915;return this[_0xb87f54(0xfa)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x540032=a150_0x1213;function a150_0x2dd8(){const _0x53cf7e=['slice','10MNNBBj','prototype','111970DOKHtY','undefined','66tfZgiZ','getOwnPropertyDescriptor','44009tSxStB','exec','includes','defineProperty','json','488XKTkbb','parse','MIN_SAFE_INTEGER','43041DKzcxV','1900575uYEcBN','2iITOKa','246008OBowdf','MAX_SAFE_INTEGER','text','length','162003nlNDmB','735594KknZqs'];a150_0x2dd8=function(){return _0x53cf7e;};return a150_0x2dd8();}(function(_0x42d6c9,_0x3d1819){const _0x15ca3a=a150_0x1213,_0x3a484a=_0x42d6c9();while(!![]){try{const _0x41c1f3=-parseInt(_0x15ca3a(0x124))/0x1+-parseInt(_0x15ca3a(0x11f))/0x2*(parseInt(_0x15ca3a(0x135))/0x3)+parseInt(_0x15ca3a(0x120))/0x4+-parseInt(_0x15ca3a(0x127))/0x5*(-parseInt(_0x15ca3a(0x125))/0x6)+parseInt(_0x15ca3a(0x12d))/0x7*(parseInt(_0x15ca3a(0x132))/0x8)+-parseInt(_0x15ca3a(0x136))/0x9+-parseInt(_0x15ca3a(0x129))/0xa*(parseInt(_0x15ca3a(0x12b))/0xb);if(_0x41c1f3===_0x3d1819)break;else _0x3a484a['push'](_0x3a484a['shift']());}catch(_0x3e9dbf){_0x3a484a['push'](_0x3a484a['shift']());}}}(a150_0x2dd8,0x397ec));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a150_0x540032(0x121)]),MIN_SAFE_INTEGER=BigInt(Number[a150_0x540032(0x134)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x5876da){const _0x5b7dde=a150_0x540032;if(_0x5876da['includes']('.')||_0x5876da['includes']('e')||_0x5876da[_0x5b7dde(0x12f)]('E'))return![];const _0x58d124=BigInt(_0x5876da);return _0x58d124>MAX_SAFE_INTEGER||_0x58d124<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x58ee7f){const _0x4f7a50=a150_0x540032;let _0x62a730='',_0x5ce771=![],_0x19644b=![];for(let _0x5a0485=0x0;_0x5a0485<_0x58ee7f[_0x4f7a50(0x123)];){const _0x5498a5=_0x58ee7f[_0x5a0485];if(_0x5ce771){_0x62a730+=_0x5498a5,_0x5a0485+=0x1;if(_0x19644b)_0x19644b=![];else{if(_0x5498a5==='\x5c')_0x19644b=!![];else _0x5498a5==='\x22'&&(_0x5ce771=![]);}continue;}if(_0x5498a5==='\x22'){_0x5ce771=!![],_0x62a730+=_0x5498a5,_0x5a0485+=0x1;continue;}if(_0x5498a5==='-'||_0x5498a5>='0'&&_0x5498a5<='9'){const _0xb1be5d=JSON_NUMBER_PATTERN[_0x4f7a50(0x12e)](_0x58ee7f[_0x4f7a50(0x126)](_0x5a0485))?.[0x0];if(_0xb1be5d){_0x62a730+=isUnsafeIntegerLiteral(_0xb1be5d)?'\x22'+_0xb1be5d+'\x22':_0xb1be5d,_0x5a0485+=_0xb1be5d[_0x4f7a50(0x123)];continue;}}_0x62a730+=_0x5498a5,_0x5a0485+=0x1;}return _0x62a730;}function a150_0x1213(_0x11f556,_0x5195e9){_0x11f556=_0x11f556-0x11f;const _0x2dd866=a150_0x2dd8();let _0x121388=_0x2dd866[_0x11f556];return _0x121388;}export function parseLosslessJson(_0x2e146a){const _0x188a90=a150_0x540032;return JSON[_0x188a90(0x133)](quoteUnsafeIntegerLiterals(_0x2e146a));}export function installLosslessJsonResponseParser(){const _0x2a086e=a150_0x540032;if(typeof Response===_0x2a086e(0x12a))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x2a086e(0x128)],originalResponseJsonDescriptor=Object[_0x2a086e(0x12c)](responseJsonPrototype,_0x2a086e(0x131)),Object['defineProperty'](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0xecfaa7(){const _0x3f9735=_0x2a086e;return parseLosslessJson(await this[_0x3f9735(0x122)]());}}),restoreResponseJsonParser=()=>{const _0xe903e9=_0x2a086e;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0xe903e9(0x130)](responseJsonPrototype,_0xe903e9(0x131),originalResponseJsonDescriptor):delete responseJsonPrototype[_0xe903e9(0x131)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e3b37,_0x23a529){const _0x28e4a0=a151_0xb6fe,_0x4c2943=_0x1e3b37();while(!![]){try{const _0xd5f88=parseInt(_0x28e4a0(0x148))/0x1*(parseInt(_0x28e4a0(0x152))/0x2)+parseInt(_0x28e4a0(0x14b))/0x3+parseInt(_0x28e4a0(0x158))/0x4*(parseInt(_0x28e4a0(0x154))/0x5)+parseInt(_0x28e4a0(0x153))/0x6*(-parseInt(_0x28e4a0(0x156))/0x7)+parseInt(_0x28e4a0(0x159))/0x8+parseInt(_0x28e4a0(0x157))/0x9+-parseInt(_0x28e4a0(0x14c))/0xa*(parseInt(_0x28e4a0(0x14a))/0xb);if(_0xd5f88===_0x23a529)break;else _0x4c2943['push'](_0x4c2943['shift']());}catch(_0x47661a){_0x4c2943['push'](_0x4c2943['shift']());}}}(a151_0x1631,0xe7536));function a151_0x1631(){const _0x28df5f=['data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','length','join','object','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','isSafeInteger','test','number','items','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','validation','data\x20update\x20--params.','\x20records\x20per\x20call;\x20received\x20','1cMNQQG','isArray','246752VFlmWc','5515323tTGoHW','1640qeQmJp','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','map','id[','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Invalid\x20JSON\x20for\x20--params:\x20','979306PlxyAr','23766qJYzDm','3065tvzJas','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','623MsSJqz','5393556CxjVEF','11372kYQBCX','2470000bYhNIy'];a151_0x1631=function(){return _0x28df5f;};return a151_0x1631();}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x2c25ad){const _0x1aede2=a151_0xb6fe;if(!_0x2c25ad)return undefined;try{return parseLosslessJson(_0x2c25ad);}catch{throw CliErrors[_0x1aede2(0x145)](_0x1aede2(0x151)+_0x2c25ad);}}export function parseJsonParamsValue(_0x1a027e){const _0x18f0eb=a151_0xb6fe;if(!_0x1a027e)return undefined;try{return parseLosslessJson(_0x1a027e);}catch{throw CliErrors[_0x18f0eb(0x145)](_0x18f0eb(0x151)+_0x1a027e);}}export function parseBatchCreateItemsFromParams(_0x137bd9){const _0x4c7780=a151_0xb6fe;if(Array[_0x4c7780(0x149)](_0x137bd9))return _0x137bd9;if(_0x137bd9!==null&&_0x137bd9!==undefined&&typeof _0x137bd9===_0x4c7780(0x15d)&&Array[_0x4c7780(0x149)](_0x137bd9['items']))return _0x137bd9[_0x4c7780(0x162)];throw CliErrors[_0x4c7780(0x145)](_0x4c7780(0x15e),_0x4c7780(0x150));}function parseDataUpdateId(_0x3ad943,_0xdda276){const _0x458339=a151_0xb6fe;if(typeof _0x3ad943===_0x458339(0x161)&&Number[_0x458339(0x15f)](_0x3ad943)&&_0x3ad943>0x0)return _0x3ad943;if(typeof _0x3ad943==='string'){if(/^[1-9]\d*$/[_0x458339(0x160)](_0x3ad943))return _0x3ad943;}throw CliErrors[_0x458339(0x145)](_0x458339(0x146)+_0xdda276+_0x458339(0x163));}export function parseUpdateIdsFromParams(_0x1d6690){const _0x15cc35=a151_0xb6fe;if(_0x1d6690===null||_0x1d6690===undefined||typeof _0x1d6690!==_0x15cc35(0x15d)||Array[_0x15cc35(0x149)](_0x1d6690))throw CliErrors[_0x15cc35(0x145)](_0x15cc35(0x155),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x10644c=_0x1d6690['id'];if(_0x10644c===undefined||_0x10644c===null)throw CliErrors[_0x15cc35(0x145)](_0x15cc35(0x15a),_0x15cc35(0x14d));const _0x43e947=Array['isArray'](_0x10644c)?_0x10644c:[_0x10644c];if(_0x43e947['length']===0x0)throw CliErrors[_0x15cc35(0x145)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x43e947['length']>MAX_DATA_UPDATE_IDS)throw CliErrors['validation']('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x15cc35(0x147)+_0x43e947[_0x15cc35(0x15b)]+'.');return _0x43e947[_0x15cc35(0x14e)]((_0xbf0a2,_0x3ccb93)=>parseDataUpdateId(_0xbf0a2,Array[_0x15cc35(0x149)](_0x10644c)?_0x15cc35(0x14f)+_0x3ccb93+']':'id'));}function a151_0xb6fe(_0x257353,_0x1432c6){_0x257353=_0x257353-0x145;const _0x163135=a151_0x1631();let _0xb6fefc=_0x163135[_0x257353];return _0xb6fefc;}export function normalizeUpdateParamsForRuntime(_0xda9d38,_0x4f9757){const _0x43da2c=a151_0xb6fe;if(Array[_0x43da2c(0x149)](_0xda9d38['id'])&&_0x4f9757[_0x43da2c(0x15b)]>0x1)return{..._0xda9d38,'id':_0x4f9757[_0x43da2c(0x15c)](',')};return _0xda9d38;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a152_0x53acc9=a152_0x16d2;function a152_0x560c(){const _0xd8e644=['1868112DHncDX','190581QRmtnK','10074jBwqxT','5674229LGrumx','7025JSrGVj','platform','151425eXHFBn','2dKzzvm','172180iBukHD','10yRYUje','156WcypTL','413VvROoR','win32'];a152_0x560c=function(){return _0xd8e644;};return a152_0x560c();}(function(_0x32cb3c,_0x5c3bf1){const _0x4fbd64=a152_0x16d2,_0x16f77f=_0x32cb3c();while(!![]){try{const _0x29c234=-parseInt(_0x4fbd64(0x12b))/0x1*(-parseInt(_0x4fbd64(0x12c))/0x2)+parseInt(_0x4fbd64(0x125))/0x3+-parseInt(_0x4fbd64(0x12e))/0x4*(-parseInt(_0x4fbd64(0x128))/0x5)+-parseInt(_0x4fbd64(0x126))/0x6*(-parseInt(_0x4fbd64(0x12f))/0x7)+parseInt(_0x4fbd64(0x124))/0x8+parseInt(_0x4fbd64(0x12a))/0x9+-parseInt(_0x4fbd64(0x12d))/0xa*(parseInt(_0x4fbd64(0x127))/0xb);if(_0x29c234===_0x5c3bf1)break;else _0x16f77f['push'](_0x16f77f['shift']());}catch(_0x16eb17){_0x16f77f['push'](_0x16f77f['shift']());}}}(a152_0x560c,0x1e49f));function a152_0x16d2(_0x79e4bc,_0x54a86e){_0x79e4bc=_0x79e4bc-0x124;const _0x560cf2=a152_0x560c();let _0x16d262=_0x560cf2[_0x79e4bc];return _0x16d262;}export const isWindows=process[a152_0x53acc9(0x129)]===a152_0x53acc9(0x130);export function resolveNpmBin(_0x576c65){return isWindows?_0x576c65+'.cmd':_0x576c65;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5510bb,_0x284ed0){const _0x4c4710=a153_0x147c,_0x3505ef=_0x5510bb();while(!![]){try{const _0x290f5d=-parseInt(_0x4c4710(0x10f))/0x1*(parseInt(_0x4c4710(0x12d))/0x2)+parseInt(_0x4c4710(0x10e))/0x3*(-parseInt(_0x4c4710(0x123))/0x4)+parseInt(_0x4c4710(0x10c))/0x5*(-parseInt(_0x4c4710(0x10d))/0x6)+-parseInt(_0x4c4710(0x11e))/0x7*(parseInt(_0x4c4710(0x128))/0x8)+-parseInt(_0x4c4710(0x126))/0x9+parseInt(_0x4c4710(0x125))/0xa*(parseInt(_0x4c4710(0x11c))/0xb)+parseInt(_0x4c4710(0x115))/0xc;if(_0x290f5d===_0x284ed0)break;else _0x3505ef['push'](_0x3505ef['shift']());}catch(_0x541fde){_0x3505ef['push'](_0x3505ef['shift']());}}}(a153_0x3235,0x84748));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';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a153_0x3235(){const _0x3afba3=['string','match','/v/','parse','trim','Invalid\x20semver','88haUXaN','\x20available,\x20current\x20','28fWiTxz','latest','lovrabet-cli','prerelease','timeout','7292STUZHq','utf8','958670upTqFu','3841443yTjOZf','filter','1060352GrQCqK','lastNotifiedVersion','/dist-tags','entries','major','10LwGzNW','yes','https://www.npmjs.com/package/','stringify','checkedAt','object','now','minor','645fGoYul','40818UWWgli','285eWvOpT','202987HVENKm','/-/package/','number','update-check.json','lastNotifiedAt','json','33579720rclJxl'];a153_0x3235=function(){return _0x3afba3;};return a153_0x3235();}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x462cf0){const _0x60f5a9=a153_0x147c,_0x27e081=_0x462cf0['trim']()[_0x60f5a9(0x117)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x27e081)return null;return{'major':Number(_0x27e081[0x1]),'minor':Number(_0x27e081[0x2]),'patch':Number(_0x27e081[0x3]),'prerelease':_0x27e081[0x4]};}function compareSemver(_0xd73372,_0x5c5a99){const _0x23f376=a153_0x147c,_0x52ba6b=parseSemver(_0xd73372),_0xf70dc6=parseSemver(_0x5c5a99);if(!_0x52ba6b||!_0xf70dc6)throw new Error(_0x23f376(0x11b));for(const _0xfccfec of[_0x23f376(0x12c),_0x23f376(0x10b),'patch']){if(_0x52ba6b[_0xfccfec]<_0xf70dc6[_0xfccfec])return-0x1;if(_0x52ba6b[_0xfccfec]>_0xf70dc6[_0xfccfec])return 0x1;}if(!_0x52ba6b['prerelease']&&!_0xf70dc6[_0x23f376(0x121)])return 0x0;if(!_0x52ba6b[_0x23f376(0x121)])return 0x1;if(!_0xf70dc6[_0x23f376(0x121)])return-0x1;if(_0x52ba6b[_0x23f376(0x121)]===_0xf70dc6[_0x23f376(0x121)])return 0x0;return _0x52ba6b['prerelease']<_0xf70dc6[_0x23f376(0x121)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x1fe4a4=a153_0x147c,_0x5db119=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x5db119==='1'||_0x5db119==='true'||_0x5db119===_0x1fe4a4(0x105);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x4a0993=a153_0x147c;return join(cacheRoot(),_0x4a0993(0x120),_0x4a0993(0x112));}async function readUpdateNoticeCache(){const _0x544ee1=a153_0x147c;try{const _0x2dcee1=await readFile(getUpdateNoticeCachePath(),_0x544ee1(0x124)),_0x553cad=JSON[_0x544ee1(0x119)](_0x2dcee1);if(!_0x553cad||typeof _0x553cad!==_0x544ee1(0x109))return{};return _0x553cad;}catch{return{};}}async function writeUpdateNoticeCache(_0x41c5ef){const _0x1371a0=a153_0x147c;try{const _0x24ba7e=getUpdateNoticeCachePath();await mkdir(dirname(_0x24ba7e),{'recursive':!![]}),await writeFile(_0x24ba7e,JSON[_0x1371a0(0x107)](_0x41c5ef,null,0x2)+'\x0a',_0x1371a0(0x124));}catch{}}function a153_0x147c(_0x17a6db,_0x1408ee){_0x17a6db=_0x17a6db-0x105;const _0x323554=a153_0x3235();let _0x147c57=_0x323554[_0x17a6db];return _0x147c57;}function isFreshCheck(_0x4340a0,_0x35a792){const _0x50ebf5=a153_0x147c;return typeof _0x4340a0[_0x50ebf5(0x108)]===_0x50ebf5(0x111)&&_0x35a792-_0x4340a0['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x553286,_0x48442b,_0x16f352){const _0x19d665=a153_0x147c;return _0x553286[_0x19d665(0x129)]===_0x48442b&&typeof _0x553286[_0x19d665(0x113)]==='number'&&_0x16f352-_0x553286[_0x19d665(0x113)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x4c3cfa=0x5dc){const _0x5d27a2=a153_0x147c;try{const _0x4cff5d=NPM_REGISTRY_BASE_URL+_0x5d27a2(0x110)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x5d27a2(0x12a),_0x1074e3=await fetch(_0x4cff5d,{'signal':AbortSignal[_0x5d27a2(0x122)](_0x4c3cfa)});if(!_0x1074e3['ok'])return null;const _0x294cca=await _0x1074e3[_0x5d27a2(0x114)]();if(!_0x294cca||typeof _0x294cca!==_0x5d27a2(0x109))return null;return Object['fromEntries'](Object[_0x5d27a2(0x12b)](_0x294cca)[_0x5d27a2(0x127)](([,_0x2461fc])=>typeof _0x2461fc===_0x5d27a2(0x116)&&_0x2461fc[_0x5d27a2(0x11a)]())['map'](([_0x248eb8,_0x38992d])=>[_0x248eb8,String(_0x38992d)[_0x5d27a2(0x11a)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x449605){const _0x5e0d8e=a153_0x147c;return _0x5e0d8e(0x106)+LOVRABET_NPM_PACKAGE_NAME+_0x5e0d8e(0x118)+_0x449605;}export async function resolveLatestUpdateNotice(){const _0x1706e2=a153_0x147c;if(isUpdateNoticeDisabled())return null;try{const _0x13d3b1=Date[_0x1706e2(0x10a)](),_0x59060e=getCliVersion(),_0x24afa8=await readUpdateNoticeCache();let _0x719599=isFreshCheck(_0x24afa8,_0x13d3b1)?_0x24afa8['latest']?.[_0x1706e2(0x11a)]():undefined;if(!_0x719599&&!isFreshCheck(_0x24afa8,_0x13d3b1)){const _0x37bc71=await fetchNpmDistTags();_0x719599=_0x37bc71?.[_0x1706e2(0x11f)]?.[_0x1706e2(0x11a)](),await writeUpdateNoticeCache({..._0x24afa8,'checkedAt':_0x13d3b1,'latest':_0x719599,'failed':!_0x719599});}if(!_0x719599||compareSemver(_0x59060e,_0x719599)>=0x0)return null;if(isRecentlyNotified(_0x24afa8,_0x719599,_0x13d3b1))return null;const _0x197f87=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x24afa8,'checkedAt':isFreshCheck(_0x24afa8,_0x13d3b1)?_0x24afa8[_0x1706e2(0x108)]:_0x13d3b1,'latest':_0x719599,'failed':![],'lastNotifiedVersion':_0x719599,'lastNotifiedAt':_0x13d3b1}),{'command':_0x197f87,'current':_0x59060e,'latest':_0x719599,'url':buildNpmVersionUrl(_0x719599),'message':CLI_BIN_NAME+'\x20'+_0x719599+_0x1706e2(0x11d)+_0x59060e+',\x20run:\x20'+_0x197f87};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a154_0x44bb(_0x4d7158,_0x1748c2){_0x4d7158=_0x4d7158-0xe5;const _0xdb9474=a154_0xdb94();let _0x44bbbe=_0xdb9474[_0x4d7158];return _0x44bbbe;}(function(_0x38b453,_0x30ed3c){const _0x320147=a154_0x44bb,_0xa37aa4=_0x38b453();while(!![]){try{const _0x765c8=-parseInt(_0x320147(0xe8))/0x1+parseInt(_0x320147(0xe9))/0x2*(parseInt(_0x320147(0xed))/0x3)+parseInt(_0x320147(0xec))/0x4+-parseInt(_0x320147(0xee))/0x5+parseInt(_0x320147(0xeb))/0x6*(parseInt(_0x320147(0xe7))/0x7)+parseInt(_0x320147(0xe5))/0x8+-parseInt(_0x320147(0xe6))/0x9;if(_0x765c8===_0x30ed3c)break;else _0xa37aa4['push'](_0xa37aa4['shift']());}catch(_0x4a87cb){_0xa37aa4['push'](_0xa37aa4['shift']());}}}(a154_0xdb94,0xd6bc4));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x239a73=a154_0x44bb,_0x32b069=String(GIT_COMMIT);return _0x32b069&&_0x32b069!==_0x239a73(0xea)?_0x32b069:'';}export function getCliVersionDisplay(){const _0x3122c4=getCliGitCommit(),_0x155921=BUILD_TIME['slice'](0x0,0xa);if(!_0x3122c4||!_0x155921)return VERSION;return VERSION+'\x20('+_0x3122c4+',\x20'+_0x155921+')';}function a154_0xdb94(){const _0xea3373=['4463055yZmKVI','13100176iWmgDR','23720589xMdsKD','472087YvnNfI','861191tsphLR','146gWNlBr','unknown','114yGYJHp','4080364KDXSjH','54657jQzzdC'];a154_0xdb94=function(){return _0xea3373;};return a154_0xdb94();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c81e8,_0xeb8260){var _0x43a2e1=a155_0x4a4d,_0x4c398d=_0x4c81e8();while(!![]){try{var _0x393462=parseInt(_0x43a2e1(0x7b))/0x1*(parseInt(_0x43a2e1(0x77))/0x2)+-parseInt(_0x43a2e1(0x79))/0x3*(-parseInt(_0x43a2e1(0x74))/0x4)+parseInt(_0x43a2e1(0x71))/0x5+parseInt(_0x43a2e1(0x78))/0x6+-parseInt(_0x43a2e1(0x75))/0x7*(-parseInt(_0x43a2e1(0x7a))/0x8)+parseInt(_0x43a2e1(0x76))/0x9*(parseInt(_0x43a2e1(0x72))/0xa)+-parseInt(_0x43a2e1(0x70))/0xb;if(_0x393462===_0xeb8260)break;else _0x4c398d['push'](_0x4c398d['shift']());}catch(_0x579557){_0x4c398d['push'](_0x4c398d['shift']());}}}(a155_0x3a5f,0x4efd6));function a155_0x4a4d(_0xf6031a,_0xdafa43){_0xf6031a=_0xf6031a-0x70;var _0x3a5fda=a155_0x3a5f();var _0x4a4d69=_0x3a5fda[_0xf6031a];return _0x4a4d69;}export function writeCliSideChannelLine(_0x33c983){var _0x5981cb=a155_0x4a4d;process['stderr'][_0x5981cb(0x73)](_0x33c983+'\x0a');}function a155_0x3a5f(){var _0x1952c3=['744eOVdhB','1969074RZhrmi','358566LFNYTW','8nJJSND','384egxJoL','19630138hUTToI','1341715NMgfZU','905290givYXc','write','12HesbPs','3902633Qsnglt','45EqVvjh'];a155_0x3a5f=function(){return _0x1952c3;};return a155_0x3a5f();}
|
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.5-beta.1
|
|
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、业务角色、角色成员、页面权限、菜单权限、数据集权限、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.5-beta.1",
|
|
6
|
+
"skillVersion": "2.2.5-beta.1",
|
|
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": "42ce7ccc8af378b6edc3bf7b213a924cfd60ea8a3c86990e8697f165c62d5675"
|
|
41
41
|
}
|