@lovrabet/lovrabet-cli 2.2.6 → 2.2.7-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.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_0x8176e8=a149_0x3e10;function a149_0x514c(){const _0x61c130=['trim','map','clearLogs','warn','162thHHyB','Completed:\x20','clear','setLogPath','Starting:\x20','30040VTRKUH','now','stringify','setRawCommand','addColors','initWinstonLogger','10cWiEJB','94KrGdAk','14896278yYYGIn','filter','red','464YEvsRa','existsSync','7943727gLFjOF','48XuaPTR','green','utf8','format','duration','rawCommand','message','dirname','details','error','success','blue','createLogger','logTask','info','join','File','readFileSync','logFilePath','16938120FfZbtl','command','getWinstonInstance','combine','5397186RLwjpb','5dSUTkf','transports','level','Failed:\x20','62993DZmITb','currentRawCommand','writeFileSync','winstonLogger','split','toISOString'];a149_0x514c=function(){return _0x61c130;};return a149_0x514c();}(function(_0x1dc12e,_0x17a6bb){const _0xeb7cb7=a149_0x3e10,_0x48ee43=_0x1dc12e();while(!![]){try{const _0x29d1d1=parseInt(_0xeb7cb7(0xde))/0x1*(parseInt(_0xeb7cb7(0xd2))/0x2)+-parseInt(_0xeb7cb7(0xac))/0x3*(parseInt(_0xeb7cb7(0xd7))/0x4)+-parseInt(_0xeb7cb7(0xc4))/0x5*(-parseInt(_0xeb7cb7(0xc3))/0x6)+-parseInt(_0xeb7cb7(0xc8))/0x7*(-parseInt(_0xeb7cb7(0xa9))/0x8)+parseInt(_0xeb7cb7(0xdf))/0x9*(parseInt(_0xeb7cb7(0xdd))/0xa)+-parseInt(_0xeb7cb7(0xab))/0xb+-parseInt(_0xeb7cb7(0xbf))/0xc;if(_0x29d1d1===_0x17a6bb)break;else _0x48ee43['push'](_0x48ee43['shift']());}catch(_0x403c37){_0x48ee43['push'](_0x48ee43['shift']());}}}(a149_0x514c,0xcabc2));function a149_0x3e10(_0x3f3c9a,_0x3e0393){_0x3f3c9a=_0x3f3c9a-0xa8;const _0x514ca3=a149_0x514c();let _0x3e1081=_0x514ca3[_0x3f3c9a];return _0x3e1081;}import a149_0x202ca5 from'winston';import a149_0x19061c from'node:fs';import a149_0x2f2f50 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a149_0x8176e8(0xcb)];[a149_0x8176e8(0xbe)]='';[a149_0x8176e8(0xc9)]='';constructor(){}[a149_0x8176e8(0xda)](_0x3ad8c3){const _0x455adf=a149_0x8176e8;this[_0x455adf(0xc9)]=_0x3ad8c3;}[a149_0x8176e8(0xd5)](_0x300e82){const _0x2498e1=a149_0x8176e8;this['logFilePath']=a149_0x2f2f50[_0x2498e1(0xbb)](_0x300e82,PRODUCT_CONFIG['logFileName']),this[_0x2498e1(0xcb)]&&this[_0x2498e1(0xcb)][_0x2498e1(0xd4)](),this['initWinstonLogger']();}[a149_0x8176e8(0xdc)](){const _0x3be46=a149_0x8176e8,_0xbf2a4a=a149_0x2f2f50[_0x3be46(0xb3)](this[_0x3be46(0xbe)]);!a149_0x19061c['existsSync'](_0xbf2a4a)&&a149_0x19061c['mkdirSync'](_0xbf2a4a,{'recursive':!![]});const _0x57d606=a149_0x202ca5['format'][_0x3be46(0xc2)](a149_0x202ca5[_0x3be46(0xaf)]['timestamp'](),a149_0x202ca5[_0x3be46(0xaf)]['errors']({'stack':!![]}),a149_0x202ca5['format']['printf'](_0x407280=>{const _0x3040bc=_0x3be46,_0x1f1063={'timestamp':_0x407280['timestamp']||new Date()[_0x3040bc(0xcd)](),'level':_0x407280[_0x3040bc(0xc6)]||_0x3040bc(0xba),'command':_0x407280[_0x3040bc(0xc0)]||'unknown','rawCommand':_0x407280[_0x3040bc(0xb1)]||this[_0x3040bc(0xc9)]||undefined,'message':_0x407280[_0x3040bc(0xb2)]||'','duration':_0x407280[_0x3040bc(0xb0)]||undefined,'details':_0x407280[_0x3040bc(0xb4)]||undefined};return JSON[_0x3040bc(0xd9)](_0x1f1063);}));this['winstonLogger']=a149_0x202ca5[_0x3be46(0xb8)]({'level':_0x3be46(0xba),'format':_0x57d606,'transports':[new a149_0x202ca5[(_0x3be46(0xc5))][(_0x3be46(0xbc))]({'filename':this['logFilePath'],'level':_0x3be46(0xba)})],'silent':![]}),a149_0x202ca5[_0x3be46(0xdb)]({'success':_0x3be46(0xad),'error':_0x3be46(0xa8),'warn':'yellow','info':_0x3be46(0xb7)});}[a149_0x8176e8(0xba)](_0x194c43,_0x3e495d,_0x23a970){const _0x15052b=a149_0x8176e8;if(!this[_0x15052b(0xbe)]||!this['winstonLogger'])return;this['winstonLogger'][_0x15052b(0xba)](_0x3e495d,{'command':_0x194c43,'details':_0x23a970});}['success'](_0x49b6de,_0xbbf074,_0x15231b,_0x44db01){const _0x2689ea=a149_0x8176e8;if(!this[_0x2689ea(0xbe)]||!this[_0x2689ea(0xcb)])return;this['winstonLogger']['log'](_0x2689ea(0xba),_0xbbf074,{'level':'success','command':_0x49b6de,'duration':_0x15231b,'details':_0x44db01});}[a149_0x8176e8(0xb5)](_0x5f1f4e,_0x16ff14,_0x4ab4b7){const _0x1f436c=a149_0x8176e8;if(!this[_0x1f436c(0xbe)]||!this[_0x1f436c(0xcb)])return;this[_0x1f436c(0xcb)][_0x1f436c(0xb5)](_0x16ff14,{'command':_0x5f1f4e,'details':_0x4ab4b7});}[a149_0x8176e8(0xd1)](_0x45853e,_0x3680a5,_0x20fb07){const _0x3fe27f=a149_0x8176e8;if(!this[_0x3fe27f(0xbe)]||!this[_0x3fe27f(0xcb)])return;this[_0x3fe27f(0xcb)][_0x3fe27f(0xd1)](_0x3680a5,{'command':_0x45853e,'details':_0x20fb07});}async[a149_0x8176e8(0xb9)](_0x69fc87,_0x499dab,_0x3fba6a){const _0x1f171e=a149_0x8176e8,_0x372f22=Date[_0x1f171e(0xd8)]();this[_0x1f171e(0xba)](_0x69fc87,_0x1f171e(0xd6)+_0x499dab);try{const _0x2f79c8=await _0x3fba6a(),_0x42ef84=Date['now']()-_0x372f22;return this[_0x1f171e(0xb6)](_0x69fc87,_0x1f171e(0xd3)+_0x499dab,_0x42ef84),_0x2f79c8;}catch(_0x1dbc41){const _0x1b74d0=Date['now']()-_0x372f22;this[_0x1f171e(0xb5)](_0x69fc87,_0x1f171e(0xc7)+_0x499dab,{'error':_0x1dbc41 instanceof Error?_0x1dbc41[_0x1f171e(0xb2)]:String(_0x1dbc41),'duration':_0x1b74d0});throw _0x1dbc41;}}['readLogs'](){const _0x1fd36c=a149_0x8176e8;try{if(!a149_0x19061c[_0x1fd36c(0xaa)](this[_0x1fd36c(0xbe)]))return[];const _0x339298=a149_0x19061c[_0x1fd36c(0xbd)](this[_0x1fd36c(0xbe)],_0x1fd36c(0xae));return _0x339298[_0x1fd36c(0xcc)](/\r?\n/)[_0x1fd36c(0xe0)](_0x333094=>_0x333094[_0x1fd36c(0xce)]())[_0x1fd36c(0xcf)](_0x542b24=>JSON['parse'](_0x542b24));}catch(_0x390418){return console[_0x1fd36c(0xd1)]('Failed\x20to\x20read\x20logs:',_0x390418),[];}}[a149_0x8176e8(0xd0)](){const _0x25980d=a149_0x8176e8;try{a149_0x19061c[_0x25980d(0xaa)](this[_0x25980d(0xbe)])&&a149_0x19061c[_0x25980d(0xca)](this[_0x25980d(0xbe)],'','utf8');}catch(_0x192c03){console['warn']('Failed\x20to\x20clear\x20logs:',_0x192c03);}}[a149_0x8176e8(0xc1)](){return this['winstonLogger'];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a150_0x3624(){const _0x30db2d=['3042330KMEnAy','slice','51771DRafij','124FhSaJR','json','includes','prototype','undefined','3611082tJBkXl','1107650irECjx','defineProperty','exec','1MIPfVM','1743530whPBkb','3761336GVCcQM','7pudgLt','77wGvwVR','1821834GJNmSO','length','MIN_SAFE_INTEGER','getOwnPropertyDescriptor'];a150_0x3624=function(){return _0x30db2d;};return a150_0x3624();}const a150_0x1e242f=a150_0x48da;(function(_0x5968bd,_0x30c6f0){const _0x57cc31=a150_0x48da,_0x53e6b4=_0x5968bd();while(!![]){try{const _0x3d3ed1=parseInt(_0x57cc31(0x143))/0x1*(parseInt(_0x57cc31(0x140))/0x2)+-parseInt(_0x57cc31(0x14e))/0x3*(-parseInt(_0x57cc31(0x14f))/0x4)+parseInt(_0x57cc31(0x14c))/0x5+parseInt(_0x57cc31(0x13f))/0x6*(parseInt(_0x57cc31(0x146))/0x7)+-parseInt(_0x57cc31(0x145))/0x8+-parseInt(_0x57cc31(0x148))/0x9+parseInt(_0x57cc31(0x144))/0xa*(-parseInt(_0x57cc31(0x147))/0xb);if(_0x3d3ed1===_0x30c6f0)break;else _0x53e6b4['push'](_0x53e6b4['shift']());}catch(_0x4df741){_0x53e6b4['push'](_0x53e6b4['shift']());}}}(a150_0x3624,0x63219));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_0x1e242f(0x14a)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x20ff57){const _0xeee938=a150_0x1e242f;if(_0x20ff57['includes']('.')||_0x20ff57[_0xeee938(0x13c)]('e')||_0x20ff57[_0xeee938(0x13c)]('E'))return![];const _0x1dcc96=BigInt(_0x20ff57);return _0x1dcc96>MAX_SAFE_INTEGER||_0x1dcc96<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x4f270e){const _0x1ed407=a150_0x1e242f;let _0x57dbf2='',_0x4e2fbc=![],_0x2bd895=![];for(let _0x1f3d6c=0x0;_0x1f3d6c<_0x4f270e[_0x1ed407(0x149)];){const _0x49a118=_0x4f270e[_0x1f3d6c];if(_0x4e2fbc){_0x57dbf2+=_0x49a118,_0x1f3d6c+=0x1;if(_0x2bd895)_0x2bd895=![];else{if(_0x49a118==='\x5c')_0x2bd895=!![];else _0x49a118==='\x22'&&(_0x4e2fbc=![]);}continue;}if(_0x49a118==='\x22'){_0x4e2fbc=!![],_0x57dbf2+=_0x49a118,_0x1f3d6c+=0x1;continue;}if(_0x49a118==='-'||_0x49a118>='0'&&_0x49a118<='9'){const _0x234559=JSON_NUMBER_PATTERN[_0x1ed407(0x142)](_0x4f270e[_0x1ed407(0x14d)](_0x1f3d6c))?.[0x0];if(_0x234559){_0x57dbf2+=isUnsafeIntegerLiteral(_0x234559)?'\x22'+_0x234559+'\x22':_0x234559,_0x1f3d6c+=_0x234559[_0x1ed407(0x149)];continue;}}_0x57dbf2+=_0x49a118,_0x1f3d6c+=0x1;}return _0x57dbf2;}function a150_0x48da(_0x473c0d,_0x308521){_0x473c0d=_0x473c0d-0x13c;const _0x362414=a150_0x3624();let _0x48da1a=_0x362414[_0x473c0d];return _0x48da1a;}export function parseLosslessJson(_0x142f5c){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x142f5c));}export function installLosslessJsonResponseParser(){const _0x572573=a150_0x1e242f;if(typeof Response===_0x572573(0x13e))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x572573(0x13d)],originalResponseJsonDescriptor=Object[_0x572573(0x14b)](responseJsonPrototype,'json'),Object['defineProperty'](responseJsonPrototype,_0x572573(0x150),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x3134ec(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x383166=_0x572573;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x383166(0x141)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x383166(0x150)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42b493,_0x5c25df){const _0xa6bdce=a151_0x3cf1,_0xc4321a=_0x42b493();while(!![]){try{const _0x4ffc31=-parseInt(_0xa6bdce(0x12f))/0x1+-parseInt(_0xa6bdce(0x144))/0x2*(parseInt(_0xa6bdce(0x142))/0x3)+parseInt(_0xa6bdce(0x140))/0x4*(-parseInt(_0xa6bdce(0x145))/0x5)+-parseInt(_0xa6bdce(0x138))/0x6*(-parseInt(_0xa6bdce(0x133))/0x7)+parseInt(_0xa6bdce(0x12a))/0x8*(parseInt(_0xa6bdce(0x13a))/0x9)+parseInt(_0xa6bdce(0x13f))/0xa+parseInt(_0xa6bdce(0x136))/0xb;if(_0x4ffc31===_0x5c25df)break;else _0xc4321a['push'](_0xc4321a['shift']());}catch(_0x223769){_0xc4321a['push'](_0xc4321a['shift']());}}}(a151_0xbd05,0xed079));import{CliErrors}from'../errors.js';function a151_0xbd05(){const _0x3cc686=['map','63BteeYf','isArray','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','object','6612470CUydol','164jffTKw','items','76029RAzWnP','string','64jsldjK','209770cyhyvO','validation','\x20records\x20per\x20call;\x20received\x20','number','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','2139056bLDJEq','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20--params.','test','join','974380VLAyFF','data\x20update\x20can\x20update\x20at\x20most\x20','id[','isSafeInteger','7wtCdiO','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','809116MOHdYB','length','11219196HtStUx'];a151_0xbd05=function(){return _0x3cc686;};return a151_0xbd05();}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;function a151_0x3cf1(_0x13b53d,_0x242d5b){_0x13b53d=_0x13b53d-0x128;const _0xbd05f3=a151_0xbd05();let _0x3cf1b1=_0xbd05f3[_0x13b53d];return _0x3cf1b1;}export function parseJsonParams(_0x436e70){const _0x302e89=a151_0x3cf1;if(!_0x436e70)return undefined;try{return parseLosslessJson(_0x436e70);}catch{throw CliErrors[_0x302e89(0x146)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x436e70);}}export function parseJsonParamsValue(_0xd86573){const _0x303e7a=a151_0x3cf1;if(!_0xd86573)return undefined;try{return parseLosslessJson(_0xd86573);}catch{throw CliErrors[_0x303e7a(0x146)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0xd86573);}}export function parseBatchCreateItemsFromParams(_0x5508ea){const _0x34bf86=a151_0x3cf1;if(Array['isArray'](_0x5508ea))return _0x5508ea;if(_0x5508ea!==null&&_0x5508ea!==undefined&&typeof _0x5508ea===_0x34bf86(0x13e)&&Array[_0x34bf86(0x13b)](_0x5508ea['items']))return _0x5508ea[_0x34bf86(0x141)];throw CliErrors['validation'](_0x34bf86(0x135),_0x34bf86(0x134));}function parseDataUpdateId(_0x24eef2,_0x499c55){const _0x947d31=a151_0x3cf1;if(typeof _0x24eef2===_0x947d31(0x128)&&Number[_0x947d31(0x132)](_0x24eef2)&&_0x24eef2>0x0)return _0x24eef2;if(typeof _0x24eef2===_0x947d31(0x143)){if(/^[1-9]\d*$/[_0x947d31(0x12d)](_0x24eef2))return _0x24eef2;}throw CliErrors[_0x947d31(0x146)](_0x947d31(0x12c)+_0x499c55+_0x947d31(0x13c));}export function parseUpdateIdsFromParams(_0x4f46ed){const _0x450793=a151_0x3cf1;if(_0x4f46ed===null||_0x4f46ed===undefined||typeof _0x4f46ed!==_0x450793(0x13e)||Array['isArray'](_0x4f46ed))throw CliErrors[_0x450793(0x146)]('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');const _0x8759d0=_0x4f46ed['id'];if(_0x8759d0===undefined||_0x8759d0===null)throw CliErrors['validation'](_0x450793(0x12b),_0x450793(0x129));const _0x2ca509=Array[_0x450793(0x13b)](_0x8759d0)?_0x8759d0:[_0x8759d0];if(_0x2ca509[_0x450793(0x137)]===0x0)throw CliErrors[_0x450793(0x146)](_0x450793(0x13d));if(_0x2ca509['length']>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x450793(0x130)+MAX_DATA_UPDATE_IDS+_0x450793(0x147)+_0x2ca509['length']+'.');return _0x2ca509[_0x450793(0x139)]((_0x127ea9,_0x5d834b)=>parseDataUpdateId(_0x127ea9,Array[_0x450793(0x13b)](_0x8759d0)?_0x450793(0x131)+_0x5d834b+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x5b197b,_0x6a60c9){const _0x593a49=a151_0x3cf1;if(Array[_0x593a49(0x13b)](_0x5b197b['id'])&&_0x6a60c9[_0x593a49(0x137)]>0x1)return{..._0x5b197b,'id':_0x6a60c9[_0x593a49(0x12e)](',')};return _0x5b197b;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a152_0x2d4f(){const _0x517dc3=['8200020egJwrd','156044eyGXqX','426720zvFubl','.cmd','platform','226647DmdgPx','256Fptnac','478611RhQVom','68WBbpYY','440043rIQQNj','7112920AUwzYy'];a152_0x2d4f=function(){return _0x517dc3;};return a152_0x2d4f();}const a152_0x146328=a152_0xd110;function a152_0xd110(_0x2a304d,_0xcb8345){_0x2a304d=_0x2a304d-0xce;const _0x2d4f53=a152_0x2d4f();let _0xd1109b=_0x2d4f53[_0x2a304d];return _0xd1109b;}(function(_0x28b21f,_0x2ac286){const _0x19a82d=a152_0xd110,_0x46be35=_0x28b21f();while(!![]){try{const _0x5d3715=parseInt(_0x19a82d(0xd0))/0x1+-parseInt(_0x19a82d(0xd4))/0x2+-parseInt(_0x19a82d(0xd7))/0x3*(parseInt(_0x19a82d(0xcf))/0x4)+parseInt(_0x19a82d(0xd1))/0x5+parseInt(_0x19a82d(0xd2))/0x6+-parseInt(_0x19a82d(0xd3))/0x7*(parseInt(_0x19a82d(0xd8))/0x8)+-parseInt(_0x19a82d(0xce))/0x9;if(_0x5d3715===_0x2ac286)break;else _0x46be35['push'](_0x46be35['shift']());}catch(_0x2b956f){_0x46be35['push'](_0x46be35['shift']());}}}(a152_0x2d4f,0xeb9d9));export const isWindows=process[a152_0x146328(0xd6)]==='win32';export function resolveNpmBin(_0x335421){const _0x757604=a152_0x146328;return isWindows?_0x335421+_0x757604(0xd5):_0x335421;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1aba6b,_0x41bd78){const _0x4645ee=a153_0x40a6,_0x2dbfb4=_0x1aba6b();while(!![]){try{const _0x38c73e=-parseInt(_0x4645ee(0x16c))/0x1*(-parseInt(_0x4645ee(0x172))/0x2)+-parseInt(_0x4645ee(0x168))/0x3*(-parseInt(_0x4645ee(0x163))/0x4)+-parseInt(_0x4645ee(0x17d))/0x5+-parseInt(_0x4645ee(0x165))/0x6+-parseInt(_0x4645ee(0x17b))/0x7*(-parseInt(_0x4645ee(0x164))/0x8)+-parseInt(_0x4645ee(0x174))/0x9+-parseInt(_0x4645ee(0x170))/0xa;if(_0x38c73e===_0x41bd78)break;else _0x2dbfb4['push'](_0x2dbfb4['shift']());}catch(_0x18e74c){_0x2dbfb4['push'](_0x2dbfb4['shift']());}}}(a153_0x38a4,0xb9718));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';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x557812){const _0x2bb8b7=a153_0x40a6,_0x4c79f8=_0x557812[_0x2bb8b7(0x175)]()[_0x2bb8b7(0x17a)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4c79f8)return null;return{'major':Number(_0x4c79f8[0x1]),'minor':Number(_0x4c79f8[0x2]),'patch':Number(_0x4c79f8[0x3]),'prerelease':_0x4c79f8[0x4]};}function compareSemver(_0x4678a3,_0x20d41a){const _0x56bf3b=a153_0x40a6,_0x13ea2c=parseSemver(_0x4678a3),_0x5d11ea=parseSemver(_0x20d41a);if(!_0x13ea2c||!_0x5d11ea)throw new Error(_0x56bf3b(0x166));for(const _0x4d9d99 of[_0x56bf3b(0x176),_0x56bf3b(0x15d),_0x56bf3b(0x16b)]){if(_0x13ea2c[_0x4d9d99]<_0x5d11ea[_0x4d9d99])return-0x1;if(_0x13ea2c[_0x4d9d99]>_0x5d11ea[_0x4d9d99])return 0x1;}if(!_0x13ea2c[_0x56bf3b(0x17c)]&&!_0x5d11ea[_0x56bf3b(0x17c)])return 0x0;if(!_0x13ea2c['prerelease'])return 0x1;if(!_0x5d11ea[_0x56bf3b(0x17c)])return-0x1;if(_0x13ea2c[_0x56bf3b(0x17c)]===_0x5d11ea[_0x56bf3b(0x17c)])return 0x0;return _0x13ea2c[_0x56bf3b(0x17c)]<_0x5d11ea[_0x56bf3b(0x17c)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x4b0cec=a153_0x40a6,_0x142382=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x4b0cec(0x175)]()['toLowerCase']();return _0x142382==='1'||_0x142382===_0x4b0cec(0x16e)||_0x142382===_0x4b0cec(0x173);}function cacheRoot(){const _0xad148f=a153_0x40a6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xad148f(0x177));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'lovrabet-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x2c31fb=a153_0x40a6;try{const _0xd77c0a=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x5868f1=JSON['parse'](_0xd77c0a);if(!_0x5868f1||typeof _0x5868f1!==_0x2c31fb(0x179))return{};return _0x5868f1;}catch{return{};}}async function writeUpdateNoticeCache(_0x581145){const _0x4c775a=a153_0x40a6;try{const _0x54b490=getUpdateNoticeCachePath();await mkdir(dirname(_0x54b490),{'recursive':!![]}),await writeFile(_0x54b490,JSON[_0x4c775a(0x15a)](_0x581145,null,0x2)+'\x0a',_0x4c775a(0x15b));}catch{}}function a153_0x40a6(_0x452c10,_0x4862fd){_0x452c10=_0x452c10-0x157;const _0x38a45d=a153_0x38a4();let _0x40a625=_0x38a45d[_0x452c10];return _0x40a625;}function isFreshCheck(_0x28837a,_0x35a441){const _0x870f4f=a153_0x40a6;return typeof _0x28837a[_0x870f4f(0x169)]===_0x870f4f(0x16f)&&_0x35a441-_0x28837a[_0x870f4f(0x169)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x20fb69,_0x36746a,_0x25665f){const _0x4082c6=a153_0x40a6;return _0x20fb69['lastNotifiedVersion']===_0x36746a&&typeof _0x20fb69['lastNotifiedAt']===_0x4082c6(0x16f)&&_0x25665f-_0x20fb69['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}function a153_0x38a4(){const _0x1d4517=['2336799VJAgiU','checkedAt','now','patch','3xmGrKd','/-/package/','true','number','9256790QBkCAW','latest','489062nyvQMv','yes','674271MTrEEO','trim','major','.cache','string','object','match','4384219ZRHFyR','prerelease','4643215AyfuOp','\x20update',',\x20run:\x20','map','stringify','utf8','https://www.npmjs.com/package/','minor','fromEntries','/v/','\x20available,\x20current\x20','/dist-tags','filter','4WfeikJ','16dAyCwX','458058WMCIGt','Invalid\x20semver','entries'];a153_0x38a4=function(){return _0x1d4517;};return a153_0x38a4();}async function fetchNpmDistTags(_0x10ad9e=0x5dc){const _0x4f3e2d=a153_0x40a6;try{const _0x1a92a4=NPM_REGISTRY_BASE_URL+_0x4f3e2d(0x16d)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x4f3e2d(0x161),_0x5f76d=await fetch(_0x1a92a4,{'signal':AbortSignal['timeout'](_0x10ad9e)});if(!_0x5f76d['ok'])return null;const _0x5a4926=await _0x5f76d['json']();if(!_0x5a4926||typeof _0x5a4926!==_0x4f3e2d(0x179))return null;return Object[_0x4f3e2d(0x15e)](Object[_0x4f3e2d(0x167)](_0x5a4926)[_0x4f3e2d(0x162)](([,_0x1a6581])=>typeof _0x1a6581===_0x4f3e2d(0x178)&&_0x1a6581[_0x4f3e2d(0x175)]())[_0x4f3e2d(0x159)](([_0x388ac0,_0x106c03])=>[_0x388ac0,String(_0x106c03)[_0x4f3e2d(0x175)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x51e133){const _0x109e58=a153_0x40a6;return _0x109e58(0x15c)+LOVRABET_NPM_PACKAGE_NAME+_0x109e58(0x15f)+_0x51e133;}export async function resolveLatestUpdateNotice(){const _0x484042=a153_0x40a6;if(isUpdateNoticeDisabled())return null;try{const _0xf5b22c=Date[_0x484042(0x16a)](),_0x3e70ba=getCliVersion(),_0x32d4d9=await readUpdateNoticeCache();let _0x35ea59=isFreshCheck(_0x32d4d9,_0xf5b22c)?_0x32d4d9[_0x484042(0x171)]?.['trim']():undefined;if(!_0x35ea59&&!isFreshCheck(_0x32d4d9,_0xf5b22c)){const _0x2f012b=await fetchNpmDistTags();_0x35ea59=_0x2f012b?.['latest']?.[_0x484042(0x175)](),await writeUpdateNoticeCache({..._0x32d4d9,'checkedAt':_0xf5b22c,'latest':_0x35ea59,'failed':!_0x35ea59});}if(!_0x35ea59||compareSemver(_0x3e70ba,_0x35ea59)>=0x0)return null;if(isRecentlyNotified(_0x32d4d9,_0x35ea59,_0xf5b22c))return null;const _0x398af4=CLI_BIN_NAME+_0x484042(0x157);return await writeUpdateNoticeCache({..._0x32d4d9,'checkedAt':isFreshCheck(_0x32d4d9,_0xf5b22c)?_0x32d4d9[_0x484042(0x169)]:_0xf5b22c,'latest':_0x35ea59,'failed':![],'lastNotifiedVersion':_0x35ea59,'lastNotifiedAt':_0xf5b22c}),{'command':_0x398af4,'current':_0x3e70ba,'latest':_0x35ea59,'url':buildNpmVersionUrl(_0x35ea59),'message':CLI_BIN_NAME+'\x20'+_0x35ea59+_0x484042(0x160)+_0x3e70ba+_0x484042(0x158)+_0x398af4};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4fc966,_0x3abc12){const _0x42be9e=a154_0xe99e,_0x4810d1=_0x4fc966();while(!![]){try{const _0x59694a=parseInt(_0x42be9e(0xa8))/0x1*(-parseInt(_0x42be9e(0xae))/0x2)+-parseInt(_0x42be9e(0xa9))/0x3*(-parseInt(_0x42be9e(0xaa))/0x4)+parseInt(_0x42be9e(0xa7))/0x5*(parseInt(_0x42be9e(0xb1))/0x6)+-parseInt(_0x42be9e(0xb0))/0x7+parseInt(_0x42be9e(0xad))/0x8+parseInt(_0x42be9e(0xac))/0x9*(parseInt(_0x42be9e(0xab))/0xa)+parseInt(_0x42be9e(0xaf))/0xb;if(_0x59694a===_0x3abc12)break;else _0x4810d1['push'](_0x4810d1['shift']());}catch(_0x1e78fe){_0x4810d1['push'](_0x4810d1['shift']());}}}(a154_0xb738,0xd7821));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x1d8664=String(GIT_COMMIT);return _0x1d8664&&_0x1d8664!=='unknown'?_0x1d8664:'';}export function getCliVersionDisplay(){const _0x1cdd56=getCliGitCommit(),_0x378010=BUILD_TIME['slice'](0x0,0xa);if(!_0x1cdd56||!_0x378010)return VERSION;return VERSION+'\x20('+_0x1cdd56+',\x20'+_0x378010+')';}function a154_0xe99e(_0x139a17,_0x48796a){_0x139a17=_0x139a17-0xa7;const _0xb73847=a154_0xb738();let _0xe99e07=_0xb73847[_0x139a17];return _0xe99e07;}function a154_0xb738(){const _0xedeb02=['1VJnQDT','66531KALQzM','28vfNcJH','976660UPhkML','81ZJWqBb','69160RrNUQd','650530ZraXFi','1391808uEwdkX','11044880ORwSBp','149208oapqIS','325ljXRgd'];a154_0xb738=function(){return _0xedeb02;};return a154_0xb738();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1cdb73,_0x374c1c){var _0x213fdd=a155_0x3990,_0x5e186a=_0x1cdb73();while(!![]){try{var _0x3019ce=parseInt(_0x213fdd(0x102))/0x1+parseInt(_0x213fdd(0x105))/0x2+parseInt(_0x213fdd(0x107))/0x3+-parseInt(_0x213fdd(0x104))/0x4+-parseInt(_0x213fdd(0x109))/0x5+-parseInt(_0x213fdd(0x108))/0x6+parseInt(_0x213fdd(0x103))/0x7*(parseInt(_0x213fdd(0x101))/0x8);if(_0x3019ce===_0x374c1c)break;else _0x5e186a['push'](_0x5e186a['shift']());}catch(_0x200f56){_0x5e186a['push'](_0x5e186a['shift']());}}}(a155_0x1c54,0xe7bcd));export function writeCliSideChannelLine(_0x4ae306){var _0x116d3e=a155_0x3990;process[_0x116d3e(0x106)]['write'](_0x4ae306+'\x0a');}function a155_0x3990(_0x1d0721,_0xcc0cef){_0x1d0721=_0x1d0721-0x101;var _0x1c549b=a155_0x1c54();var _0x39901f=_0x1c549b[_0x1d0721];return _0x39901f;}function a155_0x1c54(){var _0x40753f=['stderr','353340MdTmqY','1677174UutLfj','3974655RzgAYr','203744VeDfnI','330897YftbtK','581weawEH','4526612rdsGtn','1185578mueFEB'];a155_0x1c54=function(){return _0x40753f;};return a155_0x1c54();}
|
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-beta.1
|
|
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-beta.1",
|
|
6
|
+
"skillVersion": "2.2.7-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": "4c06b5744381aba26154b54cc994049dd1a4f426818f939cea6be13cf292b761"
|
|
41
41
|
}
|