@lovrabet/lovrabet-cli 2.2.4 → 2.2.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/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_0x1be426=a149_0x4a1d;(function(_0x4352ea,_0x1ff86a){const _0x489752=a149_0x4a1d,_0x3f3c57=_0x4352ea();while(!![]){try{const _0x3a8e41=-parseInt(_0x489752(0x17b))/0x1+parseInt(_0x489752(0x194))/0x2*(parseInt(_0x489752(0x197))/0x3)+parseInt(_0x489752(0x18d))/0x4*(-parseInt(_0x489752(0x17d))/0x5)+parseInt(_0x489752(0x1a3))/0x6+-parseInt(_0x489752(0x17f))/0x7*(-parseInt(_0x489752(0x19a))/0x8)+-parseInt(_0x489752(0x1a9))/0x9+parseInt(_0x489752(0x1a6))/0xa*(parseInt(_0x489752(0x18c))/0xb);if(_0x3a8e41===_0x1ff86a)break;else _0x3f3c57['push'](_0x3f3c57['shift']());}catch(_0x5d6f38){_0x3f3c57['push'](_0x3f3c57['shift']());}}}(a149_0x19d1,0xe65e8));function a149_0x19d1(){const _0x4953ed=['split','warn','logFilePath','log','parse','green','map','combine','9398016NvMlSH','writeFileSync','createLogger','5019260WQliVO','command','utf8','5590962mCXNbe','Completed:\x20','rawCommand','trim','errors','printf','blue','details','join','setLogPath','unknown','Failed\x20to\x20read\x20logs:','1420879kXiCgy','format','1104945XFZvAX','red','570332bUZaiI','timestamp','readLogs','success','info','Starting:\x20','currentRawCommand','winstonLogger','setRawCommand','filter','toISOString','clear','mkdirSync','22MOJCyA','12BoIzVG','logFileName','existsSync','clearLogs','Failed\x20to\x20clear\x20logs:','yellow','now','498496IOBgMw','message','dirname','12UcqBWP','error','Failed:\x20','8tGYvon'];a149_0x19d1=function(){return _0x4953ed;};return a149_0x19d1();}import a149_0x2e0964 from'winston';import a149_0x36bead from'node:fs';import a149_0x4936a8 from'node:path';function a149_0x4a1d(_0x463d79,_0x9f2157){_0x463d79=_0x463d79-0x175;const _0x19d1cc=a149_0x19d1();let _0x4a1dd0=_0x19d1cc[_0x463d79];return _0x4a1dd0;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a149_0x1be426(0x186)];['logFilePath']='';[a149_0x1be426(0x185)]='';constructor(){}[a149_0x1be426(0x187)](_0x2d4f9c){const _0x2c0abe=a149_0x1be426;this[_0x2c0abe(0x185)]=_0x2d4f9c;}[a149_0x1be426(0x178)](_0x3e9e11){const _0x30e453=a149_0x1be426;this['logFilePath']=a149_0x4936a8[_0x30e453(0x177)](_0x3e9e11,PRODUCT_CONFIG[_0x30e453(0x18e)]),this[_0x30e453(0x186)]&&this['winstonLogger'][_0x30e453(0x18a)](),this['initWinstonLogger']();}['initWinstonLogger'](){const _0x912825=a149_0x1be426,_0x2bc584=a149_0x4936a8[_0x912825(0x196)](this['logFilePath']);!a149_0x36bead[_0x912825(0x18f)](_0x2bc584)&&a149_0x36bead[_0x912825(0x18b)](_0x2bc584,{'recursive':!![]});const _0x11d6a1=a149_0x2e0964['format'][_0x912825(0x1a2)](a149_0x2e0964[_0x912825(0x17c)][_0x912825(0x180)](),a149_0x2e0964['format'][_0x912825(0x1ad)]({'stack':!![]}),a149_0x2e0964['format'][_0x912825(0x1ae)](_0x329346=>{const _0x15107a=_0x912825,_0x2a799e={'timestamp':_0x329346[_0x15107a(0x180)]||new Date()[_0x15107a(0x189)](),'level':_0x329346['level']||'info','command':_0x329346[_0x15107a(0x1a7)]||_0x15107a(0x179),'rawCommand':_0x329346[_0x15107a(0x1ab)]||this['currentRawCommand']||undefined,'message':_0x329346['message']||'','duration':_0x329346['duration']||undefined,'details':_0x329346[_0x15107a(0x176)]||undefined};return JSON['stringify'](_0x2a799e);}));this[_0x912825(0x186)]=a149_0x2e0964[_0x912825(0x1a5)]({'level':_0x912825(0x183),'format':_0x11d6a1,'transports':[new a149_0x2e0964['transports']['File']({'filename':this[_0x912825(0x19d)],'level':_0x912825(0x183)})],'silent':![]}),a149_0x2e0964['addColors']({'success':_0x912825(0x1a0),'error':_0x912825(0x17e),'warn':_0x912825(0x192),'info':_0x912825(0x175)});}[a149_0x1be426(0x183)](_0x5a2e5c,_0x1bdd44,_0x440940){const _0x11a513=a149_0x1be426;if(!this[_0x11a513(0x19d)]||!this[_0x11a513(0x186)])return;this[_0x11a513(0x186)][_0x11a513(0x183)](_0x1bdd44,{'command':_0x5a2e5c,'details':_0x440940});}[a149_0x1be426(0x182)](_0x42cc19,_0x5c22c9,_0x157da2,_0xb216ad){const _0x4a5438=a149_0x1be426;if(!this[_0x4a5438(0x19d)]||!this['winstonLogger'])return;this[_0x4a5438(0x186)][_0x4a5438(0x19e)](_0x4a5438(0x183),_0x5c22c9,{'level':_0x4a5438(0x182),'command':_0x42cc19,'duration':_0x157da2,'details':_0xb216ad});}[a149_0x1be426(0x198)](_0x215a94,_0xdf59df,_0x5c8ff8){const _0x59b562=a149_0x1be426;if(!this[_0x59b562(0x19d)]||!this[_0x59b562(0x186)])return;this[_0x59b562(0x186)][_0x59b562(0x198)](_0xdf59df,{'command':_0x215a94,'details':_0x5c8ff8});}[a149_0x1be426(0x19c)](_0x1faf02,_0x4a5455,_0x5b9f84){const _0x4c1db7=a149_0x1be426;if(!this[_0x4c1db7(0x19d)]||!this[_0x4c1db7(0x186)])return;this['winstonLogger'][_0x4c1db7(0x19c)](_0x4a5455,{'command':_0x1faf02,'details':_0x5b9f84});}async['logTask'](_0x4cbfb1,_0x34f375,_0x15c05c){const _0x4d3c7f=a149_0x1be426,_0x225e5b=Date[_0x4d3c7f(0x193)]();this['info'](_0x4cbfb1,_0x4d3c7f(0x184)+_0x34f375);try{const _0x4677cd=await _0x15c05c(),_0x545ead=Date['now']()-_0x225e5b;return this[_0x4d3c7f(0x182)](_0x4cbfb1,_0x4d3c7f(0x1aa)+_0x34f375,_0x545ead),_0x4677cd;}catch(_0x1f3194){const _0x253725=Date['now']()-_0x225e5b;this['error'](_0x4cbfb1,_0x4d3c7f(0x199)+_0x34f375,{'error':_0x1f3194 instanceof Error?_0x1f3194[_0x4d3c7f(0x195)]:String(_0x1f3194),'duration':_0x253725});throw _0x1f3194;}}[a149_0x1be426(0x181)](){const _0x5bcbce=a149_0x1be426;try{if(!a149_0x36bead[_0x5bcbce(0x18f)](this[_0x5bcbce(0x19d)]))return[];const _0x5df5e5=a149_0x36bead['readFileSync'](this[_0x5bcbce(0x19d)],_0x5bcbce(0x1a8));return _0x5df5e5[_0x5bcbce(0x19b)](/\r?\n/)[_0x5bcbce(0x188)](_0x168538=>_0x168538[_0x5bcbce(0x1ac)]())[_0x5bcbce(0x1a1)](_0xa84fe7=>JSON[_0x5bcbce(0x19f)](_0xa84fe7));}catch(_0x386695){return console[_0x5bcbce(0x19c)](_0x5bcbce(0x17a),_0x386695),[];}}[a149_0x1be426(0x190)](){const _0x56c7f2=a149_0x1be426;try{a149_0x36bead['existsSync'](this[_0x56c7f2(0x19d)])&&a149_0x36bead[_0x56c7f2(0x1a4)](this['logFilePath'],'','utf8');}catch(_0x98951f){console[_0x56c7f2(0x19c)](_0x56c7f2(0x191),_0x98951f);}}['getWinstonInstance'](){const _0xcc8954=a149_0x1be426;return this[_0xcc8954(0x186)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x4db603=a150_0x4e0c;(function(_0x374db1,_0x25ca00){const _0x5a417c=a150_0x4e0c,_0x709e07=_0x374db1();while(!![]){try{const _0x17e9e5=-parseInt(_0x5a417c(0xd9))/0x1*(parseInt(_0x5a417c(0xd7))/0x2)+parseInt(_0x5a417c(0xd2))/0x3*(-parseInt(_0x5a417c(0xdf))/0x4)+-parseInt(_0x5a417c(0xe0))/0x5+parseInt(_0x5a417c(0xdd))/0x6*(-parseInt(_0x5a417c(0xd8))/0x7)+parseInt(_0x5a417c(0xd3))/0x8+-parseInt(_0x5a417c(0xcc))/0x9+parseInt(_0x5a417c(0xd1))/0xa*(parseInt(_0x5a417c(0xcd))/0xb);if(_0x17e9e5===_0x25ca00)break;else _0x709e07['push'](_0x709e07['shift']());}catch(_0x21f203){_0x709e07['push'](_0x709e07['shift']());}}}(a150_0x4694,0x78209));function a150_0x4694(){const _0x4a0da2=['includes','getOwnPropertyDescriptor','MAX_SAFE_INTEGER','2413368rNazOs','167057qyvllT','defineProperty','prototype','length','1130dCQKpF','6aqRSpW','7201912brjHqL','parse','slice','json','282ExkxyZ','476dgpxeN','1784ErSMWW','undefined','text','exec','49218lDRIOy','MIN_SAFE_INTEGER','849816AYLIKV','3109605VXciWZ'];a150_0x4694=function(){return _0x4a0da2;};return a150_0x4694();}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a150_0x4db603(0xe3)]),MIN_SAFE_INTEGER=BigInt(Number[a150_0x4db603(0xde)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x34ac31){const _0x1398cd=a150_0x4db603;if(_0x34ac31[_0x1398cd(0xe1)]('.')||_0x34ac31[_0x1398cd(0xe1)]('e')||_0x34ac31['includes']('E'))return![];const _0x381d80=BigInt(_0x34ac31);return _0x381d80>MAX_SAFE_INTEGER||_0x381d80<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x67f6a9){const _0x4ed5d0=a150_0x4db603;let _0x1826c8='',_0x38f149=![],_0x4f89cd=![];for(let _0x8a9d1=0x0;_0x8a9d1<_0x67f6a9[_0x4ed5d0(0xd0)];){const _0x205c6b=_0x67f6a9[_0x8a9d1];if(_0x38f149){_0x1826c8+=_0x205c6b,_0x8a9d1+=0x1;if(_0x4f89cd)_0x4f89cd=![];else{if(_0x205c6b==='\x5c')_0x4f89cd=!![];else _0x205c6b==='\x22'&&(_0x38f149=![]);}continue;}if(_0x205c6b==='\x22'){_0x38f149=!![],_0x1826c8+=_0x205c6b,_0x8a9d1+=0x1;continue;}if(_0x205c6b==='-'||_0x205c6b>='0'&&_0x205c6b<='9'){const _0x47e27d=JSON_NUMBER_PATTERN[_0x4ed5d0(0xdc)](_0x67f6a9[_0x4ed5d0(0xd5)](_0x8a9d1))?.[0x0];if(_0x47e27d){_0x1826c8+=isUnsafeIntegerLiteral(_0x47e27d)?'\x22'+_0x47e27d+'\x22':_0x47e27d,_0x8a9d1+=_0x47e27d[_0x4ed5d0(0xd0)];continue;}}_0x1826c8+=_0x205c6b,_0x8a9d1+=0x1;}return _0x1826c8;}export function parseLosslessJson(_0x43e69f){const _0x15ea2d=a150_0x4db603;return JSON[_0x15ea2d(0xd4)](quoteUnsafeIntegerLiterals(_0x43e69f));}export function installLosslessJsonResponseParser(){const _0x439995=a150_0x4db603;if(typeof Response===_0x439995(0xda))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x439995(0xcf)],originalResponseJsonDescriptor=Object[_0x439995(0xe2)](responseJsonPrototype,_0x439995(0xd6)),Object['defineProperty'](responseJsonPrototype,_0x439995(0xd6),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x3b87e0(){const _0x5f1368=_0x439995;return parseLosslessJson(await this[_0x5f1368(0xdb)]());}}),restoreResponseJsonParser=()=>{const _0x2ecd72=_0x439995;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x2ecd72(0xce)](responseJsonPrototype,_0x2ecd72(0xd6),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x2ecd72(0xd6)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a150_0x4e0c(_0x13199d,_0x4fbf0f){_0x13199d=_0x13199d-0xcc;const _0x46944f=a150_0x4694();let _0x4e0cf8=_0x46944f[_0x13199d];return _0x4e0cf8;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a151_0x18c9(){const _0x40cd59=['data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','length','validation','isArray','568840FEAuBA','isSafeInteger','132eSDBXE','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','\x20records\x20per\x20call;\x20received\x20','83406gZpXSj','string','items','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','data\x20update\x20can\x20update\x20at\x20most\x20','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','number','3684923RJBpoB','12jVQVFe','21PgaUvM','data\x20update\x20--params.','106008QPUHSA','781864hsrFxt','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','2190970ZXqaQy','2172ZxvnGB','9czbQZO','object','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','3NJndGX','join'];a151_0x18c9=function(){return _0x40cd59;};return a151_0x18c9();}(function(_0x2547d9,_0x148f1b){const _0x20f32d=a151_0x4f9d,_0x175b3e=_0x2547d9();while(!![]){try{const _0x3accf3=parseInt(_0x20f32d(0x13b))/0x1*(parseInt(_0x20f32d(0x133))/0x2)+-parseInt(_0x20f32d(0x137))/0x3*(-parseInt(_0x20f32d(0x124))/0x4)+parseInt(_0x20f32d(0x141))/0x5+-parseInt(_0x20f32d(0x127))/0x6*(-parseInt(_0x20f32d(0x131))/0x7)+-parseInt(_0x20f32d(0x134))/0x8+-parseInt(_0x20f32d(0x138))/0x9*(-parseInt(_0x20f32d(0x136))/0xa)+parseInt(_0x20f32d(0x12f))/0xb*(-parseInt(_0x20f32d(0x130))/0xc);if(_0x3accf3===_0x148f1b)break;else _0x175b3e['push'](_0x175b3e['shift']());}catch(_0x54f404){_0x175b3e['push'](_0x175b3e['shift']());}}}(a151_0x18c9,0x1e74a));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x201bee){const _0x3c38d5=a151_0x4f9d;if(!_0x201bee)return undefined;try{return parseLosslessJson(_0x201bee);}catch{throw CliErrors['validation'](_0x3c38d5(0x12c)+_0x201bee);}}export function parseJsonParamsValue(_0x296484){const _0x2a7fb0=a151_0x4f9d;if(!_0x296484)return undefined;try{return parseLosslessJson(_0x296484);}catch{throw CliErrors[_0x2a7fb0(0x13f)](_0x2a7fb0(0x12c)+_0x296484);}}export function parseBatchCreateItemsFromParams(_0x5bbe44){const _0x1a5864=a151_0x4f9d;if(Array[_0x1a5864(0x140)](_0x5bbe44))return _0x5bbe44;if(_0x5bbe44!==null&&_0x5bbe44!==undefined&&typeof _0x5bbe44===_0x1a5864(0x139)&&Array[_0x1a5864(0x140)](_0x5bbe44[_0x1a5864(0x129)]))return _0x5bbe44[_0x1a5864(0x129)];throw CliErrors[_0x1a5864(0x13f)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x1a5864(0x13a));}function parseDataUpdateId(_0x1b96da,_0x203121){const _0x249a3b=a151_0x4f9d;if(typeof _0x1b96da===_0x249a3b(0x12e)&&Number[_0x249a3b(0x142)](_0x1b96da)&&_0x1b96da>0x0)return _0x1b96da;if(typeof _0x1b96da===_0x249a3b(0x128)){if(/^[1-9]\d*$/['test'](_0x1b96da))return _0x1b96da;}throw CliErrors['validation'](_0x249a3b(0x132)+_0x203121+_0x249a3b(0x125));}function a151_0x4f9d(_0x50828f,_0x3bbf94){_0x50828f=_0x50828f-0x124;const _0x18c910=a151_0x18c9();let _0x4f9d3d=_0x18c910[_0x50828f];return _0x4f9d3d;}export function parseUpdateIdsFromParams(_0x3320aa){const _0x2673ec=a151_0x4f9d;if(_0x3320aa===null||_0x3320aa===undefined||typeof _0x3320aa!==_0x2673ec(0x139)||Array[_0x2673ec(0x140)](_0x3320aa))throw CliErrors[_0x2673ec(0x13f)](_0x2673ec(0x13d),_0x2673ec(0x12d));const _0x414354=_0x3320aa['id'];if(_0x414354===undefined||_0x414354===null)throw CliErrors[_0x2673ec(0x13f)](_0x2673ec(0x135),_0x2673ec(0x12d));const _0x507935=Array[_0x2673ec(0x140)](_0x414354)?_0x414354:[_0x414354];if(_0x507935['length']===0x0)throw CliErrors[_0x2673ec(0x13f)](_0x2673ec(0x12a));if(_0x507935['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x2673ec(0x13f)](_0x2673ec(0x12b)+MAX_DATA_UPDATE_IDS+_0x2673ec(0x126)+_0x507935[_0x2673ec(0x13e)]+'.');return _0x507935['map']((_0xbc71ed,_0x4b4b58)=>parseDataUpdateId(_0xbc71ed,Array[_0x2673ec(0x140)](_0x414354)?'id['+_0x4b4b58+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x8d76e3,_0x587f65){const _0x567f13=a151_0x4f9d;if(Array['isArray'](_0x8d76e3['id'])&&_0x587f65['length']>0x1)return{..._0x8d76e3,'id':_0x587f65[_0x567f13(0x13c)](',')};return _0x8d76e3;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a152_0x5c4ec8=a152_0x5128;(function(_0x259bd2,_0x510f69){const _0x554407=a152_0x5128,_0x5589c5=_0x259bd2();while(!![]){try{const _0x5be0e1=parseInt(_0x554407(0xd2))/0x1*(-parseInt(_0x554407(0xd4))/0x2)+-parseInt(_0x554407(0xc9))/0x3+-parseInt(_0x554407(0xcd))/0x4*(-parseInt(_0x554407(0xcb))/0x5)+-parseInt(_0x554407(0xcf))/0x6*(-parseInt(_0x554407(0xca))/0x7)+parseInt(_0x554407(0xcc))/0x8*(-parseInt(_0x554407(0xce))/0x9)+parseInt(_0x554407(0xd7))/0xa*(-parseInt(_0x554407(0xd1))/0xb)+-parseInt(_0x554407(0xd5))/0xc*(-parseInt(_0x554407(0xd6))/0xd);if(_0x5be0e1===_0x510f69)break;else _0x5589c5['push'](_0x5589c5['shift']());}catch(_0x1edd23){_0x5589c5['push'](_0x5589c5['shift']());}}}(a152_0x1262,0x8b134));function a152_0x1262(){const _0x3745ea=['797022GvNouF','platform','317427BPHNRt','23594HQcgaK','.cmd','26EGKUAO','60KTSUSa','2032901iDuFKM','130aYoshY','win32','1245738ciqABK','35AMqZYF','5wzDvax','246808nBFMcQ','1006168GMOiSQ','9IWRvXU'];a152_0x1262=function(){return _0x3745ea;};return a152_0x1262();}function a152_0x5128(_0x52108b,_0x1a004c){_0x52108b=_0x52108b-0xc8;const _0x1262d2=a152_0x1262();let _0x51288e=_0x1262d2[_0x52108b];return _0x51288e;}export const isWindows=process[a152_0x5c4ec8(0xd0)]===a152_0x5c4ec8(0xc8);export function resolveNpmBin(_0x337e44){const _0x2fdf23=a152_0x5c4ec8;return isWindows?_0x337e44+_0x2fdf23(0xd3):_0x337e44;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x503ebe,_0x7501c6){const _0x14ac09=a153_0x65e6,_0x417123=_0x503ebe();while(!![]){try{const _0x4ad92=-parseInt(_0x14ac09(0xc1))/0x1*(parseInt(_0x14ac09(0xb5))/0x2)+parseInt(_0x14ac09(0xae))/0x3+-parseInt(_0x14ac09(0xac))/0x4*(-parseInt(_0x14ac09(0xa2))/0x5)+-parseInt(_0x14ac09(0xa1))/0x6*(parseInt(_0x14ac09(0xca))/0x7)+parseInt(_0x14ac09(0xc9))/0x8*(-parseInt(_0x14ac09(0xb9))/0x9)+-parseInt(_0x14ac09(0xb3))/0xa+parseInt(_0x14ac09(0x9f))/0xb;if(_0x4ad92===_0x7501c6)break;else _0x417123['push'](_0x417123['shift']());}catch(_0x5a8ac0){_0x417123['push'](_0x417123['shift']());}}}(a153_0x5e31,0x41ad9));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a153_0x65e6(_0x548a58,_0x2335ef){_0x548a58=_0x548a58-0x9f;const _0x5e3114=a153_0x5e31();let _0x65e6c5=_0x5e3114[_0x548a58];return _0x65e6c5;}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(_0x2819c7){const _0x36d58c=a153_0x65e6,_0x468a42=_0x2819c7[_0x36d58c(0xb2)]()[_0x36d58c(0xa6)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x468a42)return null;return{'major':Number(_0x468a42[0x1]),'minor':Number(_0x468a42[0x2]),'patch':Number(_0x468a42[0x3]),'prerelease':_0x468a42[0x4]};}function a153_0x5e31(){const _0x2e0111=['string','28gYdXLJ','parse','948861YONTSF','stringify','filter','yes','trim','2697100lMhyBC','\x20available,\x20current\x20','6ObCNFQ','\x20update','utf8','object','378xiLesH','map','json','patch',',\x20run:\x20','fromEntries','/v/','toLowerCase','68301Gaptol','lastNotifiedAt','checkedAt','lovrabet-cli','.cache','https://www.npmjs.com/package/','Invalid\x20semver','entries','38832wAlrFZ','63EHfJHf','4314915ZERzYv','timeout','65202EgycWE','240535iBFzOM','true','number','/-/package/','match','prerelease','lastNotifiedVersion','latest','minor'];a153_0x5e31=function(){return _0x2e0111;};return a153_0x5e31();}function compareSemver(_0x48bbee,_0x4e03ca){const _0x1ff5e8=a153_0x65e6,_0x3af67f=parseSemver(_0x48bbee),_0x75e17d=parseSemver(_0x4e03ca);if(!_0x3af67f||!_0x75e17d)throw new Error(_0x1ff5e8(0xc7));for(const _0x23cfd9 of['major',_0x1ff5e8(0xaa),_0x1ff5e8(0xbc)]){if(_0x3af67f[_0x23cfd9]<_0x75e17d[_0x23cfd9])return-0x1;if(_0x3af67f[_0x23cfd9]>_0x75e17d[_0x23cfd9])return 0x1;}if(!_0x3af67f[_0x1ff5e8(0xa7)]&&!_0x75e17d[_0x1ff5e8(0xa7)])return 0x0;if(!_0x3af67f[_0x1ff5e8(0xa7)])return 0x1;if(!_0x75e17d[_0x1ff5e8(0xa7)])return-0x1;if(_0x3af67f[_0x1ff5e8(0xa7)]===_0x75e17d[_0x1ff5e8(0xa7)])return 0x0;return _0x3af67f[_0x1ff5e8(0xa7)]<_0x75e17d[_0x1ff5e8(0xa7)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x3f5dc0=a153_0x65e6,_0x34e9fe=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x3f5dc0(0xc0)]();return _0x34e9fe==='1'||_0x34e9fe===_0x3f5dc0(0xa3)||_0x34e9fe===_0x3f5dc0(0xb1);}function cacheRoot(){const _0x1f276f=a153_0x65e6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1f276f(0xc5));}export function getUpdateNoticeCachePath(){const _0x366756=a153_0x65e6;return join(cacheRoot(),_0x366756(0xc4),'update-check.json');}async function readUpdateNoticeCache(){const _0x3cbe27=a153_0x65e6;try{const _0x4d5f1f=await readFile(getUpdateNoticeCachePath(),_0x3cbe27(0xb7)),_0x45a9d9=JSON[_0x3cbe27(0xad)](_0x4d5f1f);if(!_0x45a9d9||typeof _0x45a9d9!==_0x3cbe27(0xb8))return{};return _0x45a9d9;}catch{return{};}}async function writeUpdateNoticeCache(_0x44db5e){const _0x3751f3=a153_0x65e6;try{const _0x2ed25d=getUpdateNoticeCachePath();await mkdir(dirname(_0x2ed25d),{'recursive':!![]}),await writeFile(_0x2ed25d,JSON[_0x3751f3(0xaf)](_0x44db5e,null,0x2)+'\x0a',_0x3751f3(0xb7));}catch{}}function isFreshCheck(_0x6c4c22,_0x251759){const _0x55cc5e=a153_0x65e6;return typeof _0x6c4c22[_0x55cc5e(0xc3)]===_0x55cc5e(0xa4)&&_0x251759-_0x6c4c22[_0x55cc5e(0xc3)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4cb29b,_0x506707,_0x4bacf1){const _0xdd4e70=a153_0x65e6;return _0x4cb29b[_0xdd4e70(0xa8)]===_0x506707&&typeof _0x4cb29b[_0xdd4e70(0xc2)]===_0xdd4e70(0xa4)&&_0x4bacf1-_0x4cb29b['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x2f03bb=0x5dc){const _0x4e13e0=a153_0x65e6;try{const _0x5a77ce=NPM_REGISTRY_BASE_URL+_0x4e13e0(0xa5)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x48d068=await fetch(_0x5a77ce,{'signal':AbortSignal[_0x4e13e0(0xa0)](_0x2f03bb)});if(!_0x48d068['ok'])return null;const _0x1c62a5=await _0x48d068[_0x4e13e0(0xbb)]();if(!_0x1c62a5||typeof _0x1c62a5!==_0x4e13e0(0xb8))return null;return Object[_0x4e13e0(0xbe)](Object[_0x4e13e0(0xc8)](_0x1c62a5)[_0x4e13e0(0xb0)](([,_0x596f66])=>typeof _0x596f66===_0x4e13e0(0xab)&&_0x596f66['trim']())[_0x4e13e0(0xba)](([_0x12e235,_0x3f4320])=>[_0x12e235,String(_0x3f4320)[_0x4e13e0(0xb2)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x4b64d4){const _0x32500b=a153_0x65e6;return _0x32500b(0xc6)+LOVRABET_NPM_PACKAGE_NAME+_0x32500b(0xbf)+_0x4b64d4;}export async function resolveLatestUpdateNotice(){const _0x153d8d=a153_0x65e6;if(isUpdateNoticeDisabled())return null;try{const _0x58a026=Date['now'](),_0x19fbba=getCliVersion(),_0x39a42f=await readUpdateNoticeCache();let _0x250b79=isFreshCheck(_0x39a42f,_0x58a026)?_0x39a42f[_0x153d8d(0xa9)]?.[_0x153d8d(0xb2)]():undefined;if(!_0x250b79&&!isFreshCheck(_0x39a42f,_0x58a026)){const _0x202794=await fetchNpmDistTags();_0x250b79=_0x202794?.[_0x153d8d(0xa9)]?.[_0x153d8d(0xb2)](),await writeUpdateNoticeCache({..._0x39a42f,'checkedAt':_0x58a026,'latest':_0x250b79,'failed':!_0x250b79});}if(!_0x250b79||compareSemver(_0x19fbba,_0x250b79)>=0x0)return null;if(isRecentlyNotified(_0x39a42f,_0x250b79,_0x58a026))return null;const _0x4ba46f=CLI_BIN_NAME+_0x153d8d(0xb6);return await writeUpdateNoticeCache({..._0x39a42f,'checkedAt':isFreshCheck(_0x39a42f,_0x58a026)?_0x39a42f[_0x153d8d(0xc3)]:_0x58a026,'latest':_0x250b79,'failed':![],'lastNotifiedVersion':_0x250b79,'lastNotifiedAt':_0x58a026}),{'command':_0x4ba46f,'current':_0x19fbba,'latest':_0x250b79,'url':buildNpmVersionUrl(_0x250b79),'message':CLI_BIN_NAME+'\x20'+_0x250b79+_0x153d8d(0xb4)+_0x19fbba+_0x153d8d(0xbd)+_0x4ba46f};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a154_0x44b8(_0x58a9ff,_0x59735c){_0x58a9ff=_0x58a9ff-0x173;const _0x2eefd2=a154_0x2eef();let _0x44b8df=_0x2eefd2[_0x58a9ff];return _0x44b8df;}(function(_0x49fca7,_0x170f0b){const _0x99bde7=a154_0x44b8,_0x1d7372=_0x49fca7();while(!![]){try{const _0xf7e2d2=-parseInt(_0x99bde7(0x17d))/0x1*(-parseInt(_0x99bde7(0x180))/0x2)+-parseInt(_0x99bde7(0x181))/0x3*(-parseInt(_0x99bde7(0x17b))/0x4)+parseInt(_0x99bde7(0x173))/0x5+parseInt(_0x99bde7(0x175))/0x6*(parseInt(_0x99bde7(0x179))/0x7)+parseInt(_0x99bde7(0x177))/0x8*(-parseInt(_0x99bde7(0x178))/0x9)+parseInt(_0x99bde7(0x17f))/0xa*(parseInt(_0x99bde7(0x17e))/0xb)+parseInt(_0x99bde7(0x176))/0xc*(-parseInt(_0x99bde7(0x17c))/0xd);if(_0xf7e2d2===_0x170f0b)break;else _0x1d7372['push'](_0x1d7372['shift']());}catch(_0x505254){_0x1d7372['push'](_0x1d7372['shift']());}}}(a154_0x2eef,0xbe014));function a154_0x2eef(){const _0x3c043c=['826bSkKWO','unknown','16xDNrwB','18148GhQgnZ','3pmrMcZ','4686hLEIQc','4290yVwBBN','876006pIflBl','494121kxpEuZ','264300HJVlEX','slice','50046NANfJS','8952LxBZUS','2984FNQRHa','33129NATvsy'];a154_0x2eef=function(){return _0x3c043c;};return a154_0x2eef();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x1c219e=a154_0x44b8,_0x54e395=String(GIT_COMMIT);return _0x54e395&&_0x54e395!==_0x1c219e(0x17a)?_0x54e395:'';}export function getCliVersionDisplay(){const _0x591b5c=a154_0x44b8,_0x52f93d=getCliGitCommit(),_0xd9e42a=BUILD_TIME[_0x591b5c(0x174)](0x0,0xa);if(!_0x52f93d||!_0xd9e42a)return VERSION;return VERSION+'\x20('+_0x52f93d+',\x20'+_0xd9e42a+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a155_0x42f6(_0x42dad5,_0x58f5e9){_0x42dad5=_0x42dad5-0x175;var _0x26be32=a155_0x26be();var _0x42f61a=_0x26be32[_0x42dad5];return _0x42f61a;}(function(_0x1cf2cc,_0x684f30){var _0x3a68d6=a155_0x42f6,_0x2a3bfa=_0x1cf2cc();while(!![]){try{var _0x5a3554=-parseInt(_0x3a68d6(0x176))/0x1+-parseInt(_0x3a68d6(0x17c))/0x2+-parseInt(_0x3a68d6(0x179))/0x3*(parseInt(_0x3a68d6(0x17a))/0x4)+parseInt(_0x3a68d6(0x17b))/0x5+-parseInt(_0x3a68d6(0x17e))/0x6+-parseInt(_0x3a68d6(0x175))/0x7+parseInt(_0x3a68d6(0x177))/0x8;if(_0x5a3554===_0x684f30)break;else _0x2a3bfa['push'](_0x2a3bfa['shift']());}catch(_0x4ebd28){_0x2a3bfa['push'](_0x2a3bfa['shift']());}}}(a155_0x26be,0x194da));function a155_0x26be(){var _0x5e67b0=['393784YphaYc','stderr','682374vOxrJH','75173QqaVoJ','176996TbFeoa','4072376mWqQRk','write','201rfGkUH','2924WcRkBX','709640jEWMuT'];a155_0x26be=function(){return _0x5e67b0;};return a155_0x26be();}export function writeCliSideChannelLine(_0x18b63d){var _0x23ca48=a155_0x42f6;process[_0x23ca48(0x17d)][_0x23ca48(0x178)](_0x18b63d+'\x0a');}
|
package/package.json
CHANGED
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.5-beta.2
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、personal BFF、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、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.2",
|
|
6
|
+
"skillVersion": "2.2.5-beta.2",
|
|
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": "56d5f601e5b11b21c0f4f10c4f739df55f8d5af5b6c7813183420228a68095c5"
|
|
41
41
|
}
|