@lovrabet/lovrabet-cli 2.2.5-beta.2 → 2.2.5
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.d.ts +3 -3
- 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 +4 -4
- package/skills/lovrabet/references/lovrabet-schedule-workflow.md +7 -6
- package/skills/lovrabet.manifest.json +3 -3
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a149_0x746e(){const _0xb31bed=['map','utf8','message','info','7cJRmwE','rawCommand','clear','Failed:\x20','transports','Failed\x20to\x20read\x20logs:','duration','readLogs','Starting:\x20','1625865BiiGUb','now','error','printf','log','unknown','logFilePath','parse','blue','success','10WcDwaN','5353088LnyoJh','join','dirname','clearLogs','6621327pgcohv','initWinstonLogger','logFileName','3479208yabGTu','level','errors','stringify','28318280yMeFaq','timestamp','warn','red','format','combine','currentRawCommand','mkdirSync','trim','Completed:\x20','writeFileSync','winstonLogger','301355HiPEvh','existsSync','4qsnZGX','command','getWinstonInstance','1383604yBxMDY','details'];a149_0x746e=function(){return _0xb31bed;};return a149_0x746e();}function a149_0x3fdb(_0x5bd4f9,_0x225621){_0x5bd4f9=_0x5bd4f9-0x1d5;const _0x746e4=a149_0x746e();let _0x3fdbec=_0x746e4[_0x5bd4f9];return _0x3fdbec;}const a149_0x4eabda=a149_0x3fdb;(function(_0x1ce630,_0x5d8b73){const _0x5ae49b=a149_0x3fdb,_0x19f867=_0x1ce630();while(!![]){try{const _0x121b87=parseInt(_0x5ae49b(0x1d5))/0x1*(-parseInt(_0x5ae49b(0x1d7))/0x2)+-parseInt(_0x5ae49b(0x1e9))/0x3+-parseInt(_0x5ae49b(0x1da))/0x4*(-parseInt(_0x5ae49b(0x1f3))/0x5)+-parseInt(_0x5ae49b(0x1fb))/0x6*(parseInt(_0x5ae49b(0x1e0))/0x7)+-parseInt(_0x5ae49b(0x1f4))/0x8+-parseInt(_0x5ae49b(0x1f8))/0x9+parseInt(_0x5ae49b(0x1ff))/0xa;if(_0x121b87===_0x5d8b73)break;else _0x19f867['push'](_0x19f867['shift']());}catch(_0x10c6ed){_0x19f867['push'](_0x19f867['shift']());}}}(a149_0x746e,0x60412));import a149_0x2d18a9 from'winston';import a149_0x232bd2 from'node:fs';import a149_0x4cf44b from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a149_0x4eabda(0x1ef)]='';[a149_0x4eabda(0x205)]='';constructor(){}['setRawCommand'](_0x5a6641){const _0x234776=a149_0x4eabda;this[_0x234776(0x205)]=_0x5a6641;}['setLogPath'](_0x2acac9){const _0x3e0db5=a149_0x4eabda;this[_0x3e0db5(0x1ef)]=a149_0x4cf44b[_0x3e0db5(0x1f5)](_0x2acac9,PRODUCT_CONFIG[_0x3e0db5(0x1fa)]),this[_0x3e0db5(0x20a)]&&this[_0x3e0db5(0x20a)][_0x3e0db5(0x1e2)](),this[_0x3e0db5(0x1f9)]();}['initWinstonLogger'](){const _0x28a686=a149_0x4eabda,_0x1b8218=a149_0x4cf44b[_0x28a686(0x1f6)](this[_0x28a686(0x1ef)]);!a149_0x232bd2[_0x28a686(0x1d6)](_0x1b8218)&&a149_0x232bd2[_0x28a686(0x206)](_0x1b8218,{'recursive':!![]});const _0x3e2b5d=a149_0x2d18a9[_0x28a686(0x203)][_0x28a686(0x204)](a149_0x2d18a9[_0x28a686(0x203)][_0x28a686(0x200)](),a149_0x2d18a9[_0x28a686(0x203)][_0x28a686(0x1fd)]({'stack':!![]}),a149_0x2d18a9[_0x28a686(0x203)][_0x28a686(0x1ec)](_0x3e2b9b=>{const _0x8a7932=_0x28a686,_0x286699={'timestamp':_0x3e2b9b[_0x8a7932(0x200)]||new Date()['toISOString'](),'level':_0x3e2b9b[_0x8a7932(0x1fc)]||_0x8a7932(0x1df),'command':_0x3e2b9b[_0x8a7932(0x1d8)]||_0x8a7932(0x1ee),'rawCommand':_0x3e2b9b[_0x8a7932(0x1e1)]||this[_0x8a7932(0x205)]||undefined,'message':_0x3e2b9b[_0x8a7932(0x1de)]||'','duration':_0x3e2b9b[_0x8a7932(0x1e6)]||undefined,'details':_0x3e2b9b[_0x8a7932(0x1db)]||undefined};return JSON[_0x8a7932(0x1fe)](_0x286699);}));this['winstonLogger']=a149_0x2d18a9['createLogger']({'level':'info','format':_0x3e2b5d,'transports':[new a149_0x2d18a9[(_0x28a686(0x1e4))]['File']({'filename':this[_0x28a686(0x1ef)],'level':_0x28a686(0x1df)})],'silent':![]}),a149_0x2d18a9['addColors']({'success':'green','error':_0x28a686(0x202),'warn':'yellow','info':_0x28a686(0x1f1)});}[a149_0x4eabda(0x1df)](_0x59a96c,_0x537fd6,_0x1d9f7f){const _0x3364f6=a149_0x4eabda;if(!this[_0x3364f6(0x1ef)]||!this['winstonLogger'])return;this[_0x3364f6(0x20a)]['info'](_0x537fd6,{'command':_0x59a96c,'details':_0x1d9f7f});}[a149_0x4eabda(0x1f2)](_0x565077,_0x24638b,_0x20c772,_0x5e4568){const _0x2e01b4=a149_0x4eabda;if(!this[_0x2e01b4(0x1ef)]||!this[_0x2e01b4(0x20a)])return;this[_0x2e01b4(0x20a)][_0x2e01b4(0x1ed)](_0x2e01b4(0x1df),_0x24638b,{'level':'success','command':_0x565077,'duration':_0x20c772,'details':_0x5e4568});}['error'](_0x5ebe82,_0x2308f3,_0x3c1291){const _0xc82e58=a149_0x4eabda;if(!this[_0xc82e58(0x1ef)]||!this[_0xc82e58(0x20a)])return;this[_0xc82e58(0x20a)]['error'](_0x2308f3,{'command':_0x5ebe82,'details':_0x3c1291});}[a149_0x4eabda(0x201)](_0x14cc19,_0x4dea65,_0x3156bf){const _0x1c14d7=a149_0x4eabda;if(!this['logFilePath']||!this[_0x1c14d7(0x20a)])return;this['winstonLogger'][_0x1c14d7(0x201)](_0x4dea65,{'command':_0x14cc19,'details':_0x3156bf});}async['logTask'](_0x4bcc1a,_0x434240,_0x392ab5){const _0x106738=a149_0x4eabda,_0x2a0df4=Date[_0x106738(0x1ea)]();this[_0x106738(0x1df)](_0x4bcc1a,_0x106738(0x1e8)+_0x434240);try{const _0x418ee4=await _0x392ab5(),_0x4d0725=Date[_0x106738(0x1ea)]()-_0x2a0df4;return this[_0x106738(0x1f2)](_0x4bcc1a,_0x106738(0x208)+_0x434240,_0x4d0725),_0x418ee4;}catch(_0x3489de){const _0x37f186=Date['now']()-_0x2a0df4;this[_0x106738(0x1eb)](_0x4bcc1a,_0x106738(0x1e3)+_0x434240,{'error':_0x3489de instanceof Error?_0x3489de['message']:String(_0x3489de),'duration':_0x37f186});throw _0x3489de;}}[a149_0x4eabda(0x1e7)](){const _0x21d916=a149_0x4eabda;try{if(!a149_0x232bd2[_0x21d916(0x1d6)](this[_0x21d916(0x1ef)]))return[];const _0x54211d=a149_0x232bd2['readFileSync'](this[_0x21d916(0x1ef)],_0x21d916(0x1dd));return _0x54211d['split'](/\r?\n/)['filter'](_0x21856a=>_0x21856a[_0x21d916(0x207)]())[_0x21d916(0x1dc)](_0x339ce4=>JSON[_0x21d916(0x1f0)](_0x339ce4));}catch(_0x51a95f){return console[_0x21d916(0x201)](_0x21d916(0x1e5),_0x51a95f),[];}}[a149_0x4eabda(0x1f7)](){const _0xdf2145=a149_0x4eabda;try{a149_0x232bd2[_0xdf2145(0x1d6)](this[_0xdf2145(0x1ef)])&&a149_0x232bd2[_0xdf2145(0x209)](this[_0xdf2145(0x1ef)],'',_0xdf2145(0x1dd));}catch(_0x386e91){console[_0xdf2145(0x201)]('Failed\x20to\x20clear\x20logs:',_0x386e91);}}[a149_0x4eabda(0x1d9)](){const _0xbe18e1=a149_0x4eabda;return this[_0xbe18e1(0x20a)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x4328dc=a150_0x7180;(function(_0x1fcb74,_0x4f2898){const _0x55615a=a150_0x7180,_0x29bc6c=_0x1fcb74();while(!![]){try{const _0x2cdb16=-parseInt(_0x55615a(0xfe))/0x1+-parseInt(_0x55615a(0x100))/0x2*(-parseInt(_0x55615a(0xff))/0x3)+-parseInt(_0x55615a(0x103))/0x4+-parseInt(_0x55615a(0xfa))/0x5*(parseInt(_0x55615a(0xf3))/0x6)+parseInt(_0x55615a(0x102))/0x7*(-parseInt(_0x55615a(0xf9))/0x8)+parseInt(_0x55615a(0x107))/0x9+-parseInt(_0x55615a(0xf6))/0xa*(-parseInt(_0x55615a(0xf5))/0xb);if(_0x2cdb16===_0x4f2898)break;else _0x29bc6c['push'](_0x29bc6c['shift']());}catch(_0x279afd){_0x29bc6c['push'](_0x29bc6c['shift']());}}}(a150_0x8d33,0xc408d));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a150_0x4328dc(0x105)]),MIN_SAFE_INTEGER=BigInt(Number[a150_0x4328dc(0xfc)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x24cd43){const _0x17650e=a150_0x4328dc;if(_0x24cd43[_0x17650e(0xfb)]('.')||_0x24cd43[_0x17650e(0xfb)]('e')||_0x24cd43[_0x17650e(0xfb)]('E'))return![];const _0x5bdb2c=BigInt(_0x24cd43);return _0x5bdb2c>MAX_SAFE_INTEGER||_0x5bdb2c<MIN_SAFE_INTEGER;}function a150_0x7180(_0x3dac32,_0x13484e){_0x3dac32=_0x3dac32-0xf1;const _0x8d33be=a150_0x8d33();let _0x7180a=_0x8d33be[_0x3dac32];return _0x7180a;}function quoteUnsafeIntegerLiterals(_0x343911){const _0x1f9035=a150_0x4328dc;let _0x3dcf35='',_0x37ea0f=![],_0x1b4969=![];for(let _0x15c06a=0x0;_0x15c06a<_0x343911['length'];){const _0x160b1e=_0x343911[_0x15c06a];if(_0x37ea0f){_0x3dcf35+=_0x160b1e,_0x15c06a+=0x1;if(_0x1b4969)_0x1b4969=![];else{if(_0x160b1e==='\x5c')_0x1b4969=!![];else _0x160b1e==='\x22'&&(_0x37ea0f=![]);}continue;}if(_0x160b1e==='\x22'){_0x37ea0f=!![],_0x3dcf35+=_0x160b1e,_0x15c06a+=0x1;continue;}if(_0x160b1e==='-'||_0x160b1e>='0'&&_0x160b1e<='9'){const _0x2afc58=JSON_NUMBER_PATTERN['exec'](_0x343911[_0x1f9035(0x104)](_0x15c06a))?.[0x0];if(_0x2afc58){_0x3dcf35+=isUnsafeIntegerLiteral(_0x2afc58)?'\x22'+_0x2afc58+'\x22':_0x2afc58,_0x15c06a+=_0x2afc58[_0x1f9035(0xf7)];continue;}}_0x3dcf35+=_0x160b1e,_0x15c06a+=0x1;}return _0x3dcf35;}export function parseLosslessJson(_0x5ca97f){const _0xf8736e=a150_0x4328dc;return JSON[_0xf8736e(0x101)](quoteUnsafeIntegerLiterals(_0x5ca97f));}export function installLosslessJsonResponseParser(){const _0x2dc87d=a150_0x4328dc;if(typeof Response===_0x2dc87d(0x106))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x2dc87d(0xf1)],originalResponseJsonDescriptor=Object[_0x2dc87d(0xf2)](responseJsonPrototype,_0x2dc87d(0xf8)),Object[_0x2dc87d(0xf4)](responseJsonPrototype,_0x2dc87d(0xf8),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x20c041(){const _0x51b0dc=_0x2dc87d;return parseLosslessJson(await this[_0x51b0dc(0xfd)]());}}),restoreResponseJsonParser=()=>{const _0x156cc0=_0x2dc87d;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x156cc0(0xf4)](responseJsonPrototype,_0x156cc0(0xf8),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x156cc0(0xf8)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a150_0x8d33(){const _0xde007c=['json','4005040VRgUPv','1309675JhShQJ','includes','MIN_SAFE_INTEGER','text','1093321EzTRsw','2006511WvqBgz','4EqFBnr','parse','7CibhBl','1497972pmUlEO','slice','MAX_SAFE_INTEGER','undefined','12036438SmFSDf','prototype','getOwnPropertyDescriptor','18lgfIRv','defineProperty','1650yVAUmD','58810rldMki','length'];a150_0x8d33=function(){return _0xde007c;};return a150_0x8d33();}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x381e97,_0x9edc65){const _0x1dab9a=a151_0x1bb9,_0x52fc03=_0x381e97();while(!![]){try{const _0x269dfb=-parseInt(_0x1dab9a(0x1ac))/0x1+-parseInt(_0x1dab9a(0x1b2))/0x2+parseInt(_0x1dab9a(0x1b0))/0x3*(parseInt(_0x1dab9a(0x1a8))/0x4)+parseInt(_0x1dab9a(0x1ab))/0x5+-parseInt(_0x1dab9a(0x1a2))/0x6*(-parseInt(_0x1dab9a(0x19f))/0x7)+-parseInt(_0x1dab9a(0x19d))/0x8+parseInt(_0x1dab9a(0x1aa))/0x9;if(_0x269dfb===_0x9edc65)break;else _0x52fc03['push'](_0x52fc03['shift']());}catch(_0xf44199){_0x52fc03['push'](_0x52fc03['shift']());}}}(a151_0x1fc7,0xc004d));import{CliErrors}from'../errors.js';function a151_0x1fc7(){const _0x256cf6=['test','41208AsLNRc','data\x20update\x20--params.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','data\x20update\x20can\x20update\x20at\x20most\x20','join','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','4JOcMHA','length','8604873KPecAL','3111445WHhkYb','1396057CeWNsT','string','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','502278ILNXkE','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','216850CLzMdh','id[','items','validation','Invalid\x20JSON\x20for\x20--params:\x20','number','isArray','6022984tjRwHX','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','1323ezEyOi','isSafeInteger'];a151_0x1fc7=function(){return _0x256cf6;};return a151_0x1fc7();}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x7bde37){const _0x429e71=a151_0x1bb9;if(!_0x7bde37)return undefined;try{return parseLosslessJson(_0x7bde37);}catch{throw CliErrors[_0x429e71(0x1b5)](_0x429e71(0x1b6)+_0x7bde37);}}export function parseJsonParamsValue(_0x5d8c3d){const _0xce40b7=a151_0x1bb9;if(!_0x5d8c3d)return undefined;try{return parseLosslessJson(_0x5d8c3d);}catch{throw CliErrors[_0xce40b7(0x1b5)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5d8c3d);}}function a151_0x1bb9(_0x28c378,_0x253772){_0x28c378=_0x28c378-0x19b;const _0x1fc7f1=a151_0x1fc7();let _0x1bb9cb=_0x1fc7f1[_0x28c378];return _0x1bb9cb;}export function parseBatchCreateItemsFromParams(_0x4cfea9){const _0xc6281a=a151_0x1bb9;if(Array['isArray'](_0x4cfea9))return _0x4cfea9;if(_0x4cfea9!==null&&_0x4cfea9!==undefined&&typeof _0x4cfea9==='object'&&Array['isArray'](_0x4cfea9[_0xc6281a(0x1b4)]))return _0x4cfea9[_0xc6281a(0x1b4)];throw CliErrors[_0xc6281a(0x1b5)](_0xc6281a(0x19e),_0xc6281a(0x1a7));}function parseDataUpdateId(_0xec96d7,_0x203f2e){const _0x155b60=a151_0x1bb9;if(typeof _0xec96d7===_0x155b60(0x19b)&&Number[_0x155b60(0x1a0)](_0xec96d7)&&_0xec96d7>0x0)return _0xec96d7;if(typeof _0xec96d7===_0x155b60(0x1ad)){if(/^[1-9]\d*$/[_0x155b60(0x1a1)](_0xec96d7))return _0xec96d7;}throw CliErrors[_0x155b60(0x1b5)](_0x155b60(0x1a3)+_0x203f2e+_0x155b60(0x1a4));}export function parseUpdateIdsFromParams(_0xf78e58){const _0x56d3c4=a151_0x1bb9;if(_0xf78e58===null||_0xf78e58===undefined||typeof _0xf78e58!=='object'||Array[_0x56d3c4(0x19c)](_0xf78e58))throw CliErrors['validation'](_0x56d3c4(0x1b1),_0x56d3c4(0x1ae));const _0x2e39dc=_0xf78e58['id'];if(_0x2e39dc===undefined||_0x2e39dc===null)throw CliErrors[_0x56d3c4(0x1b5)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x56d3c4(0x1ae));const _0x233ff1=Array[_0x56d3c4(0x19c)](_0x2e39dc)?_0x2e39dc:[_0x2e39dc];if(_0x233ff1['length']===0x0)throw CliErrors[_0x56d3c4(0x1b5)](_0x56d3c4(0x1af));if(_0x233ff1[_0x56d3c4(0x1a9)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x56d3c4(0x1a5)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x233ff1[_0x56d3c4(0x1a9)]+'.');return _0x233ff1['map']((_0x3b385a,_0x1989eb)=>parseDataUpdateId(_0x3b385a,Array[_0x56d3c4(0x19c)](_0x2e39dc)?_0x56d3c4(0x1b3)+_0x1989eb+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x5e8816,_0x42c012){const _0x3897d5=a151_0x1bb9;if(Array['isArray'](_0x5e8816['id'])&&_0x42c012[_0x3897d5(0x1a9)]>0x1)return{..._0x5e8816,'id':_0x42c012[_0x3897d5(0x1a6)](',')};return _0x5e8816;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a152_0x16ef(){const _0x14d9d3=['7zLNnzP','.cmd','win32','180fuaVmD','18QpehCf','2962448YNdVIC','71055HsTJli','435897VGArXv','804444OUyETz','platform','4jNPPAg','52971agHoJK','1342710CVfXmC','466893ujBHaw'];a152_0x16ef=function(){return _0x14d9d3;};return a152_0x16ef();}function a152_0x4686(_0x49f2de,_0x28e0da){_0x49f2de=_0x49f2de-0x9d;const _0x16ef6c=a152_0x16ef();let _0x468640=_0x16ef6c[_0x49f2de];return _0x468640;}const a152_0x266f46=a152_0x4686;(function(_0x4f1bcb,_0x7a4790){const _0x3fa58d=a152_0x4686,_0x1b6f81=_0x4f1bcb();while(!![]){try{const _0xd21c4a=-parseInt(_0x3fa58d(0xa9))/0x1+parseInt(_0x3fa58d(0xa0))/0x2*(-parseInt(_0x3fa58d(0xa7))/0x3)+-parseInt(_0x3fa58d(0xa6))/0x4*(-parseInt(_0x3fa58d(0xa8))/0x5)+parseInt(_0x3fa58d(0xa4))/0x6*(parseInt(_0x3fa58d(0xaa))/0x7)+parseInt(_0x3fa58d(0xa1))/0x8+parseInt(_0x3fa58d(0xa2))/0x9*(parseInt(_0x3fa58d(0x9f))/0xa)+-parseInt(_0x3fa58d(0xa3))/0xb;if(_0xd21c4a===_0x7a4790)break;else _0x1b6f81['push'](_0x1b6f81['shift']());}catch(_0x356ab5){_0x1b6f81['push'](_0x1b6f81['shift']());}}}(a152_0x16ef,0x3ceff));export const isWindows=process[a152_0x266f46(0xa5)]===a152_0x266f46(0x9e);export function resolveNpmBin(_0x41f704){const _0x45ec15=a152_0x266f46;return isWindows?_0x41f704+_0x45ec15(0x9d):_0x41f704;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2eeb81,_0x87226d){const _0x22c561=a153_0x1c9e,_0x2b82a0=_0x2eeb81();while(!![]){try{const _0x43ebb7=-parseInt(_0x22c561(0x1e3))/0x1+parseInt(_0x22c561(0x1dc))/0x2*(-parseInt(_0x22c561(0x1f5))/0x3)+parseInt(_0x22c561(0x1eb))/0x4*(parseInt(_0x22c561(0x1fc))/0x5)+-parseInt(_0x22c561(0x1d4))/0x6+-parseInt(_0x22c561(0x1e0))/0x7+parseInt(_0x22c561(0x1d7))/0x8+parseInt(_0x22c561(0x1f1))/0x9;if(_0x43ebb7===_0x87226d)break;else _0x2b82a0['push'](_0x2b82a0['shift']());}catch(_0x530596){_0x2b82a0['push'](_0x2b82a0['shift']());}}}(a153_0x1cd9,0xe5d44));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(_0x4dc002){const _0x439406=a153_0x1c9e,_0x25db74=_0x4dc002['trim']()[_0x439406(0x1ea)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x25db74)return null;return{'major':Number(_0x25db74[0x1]),'minor':Number(_0x25db74[0x2]),'patch':Number(_0x25db74[0x3]),'prerelease':_0x25db74[0x4]};}function compareSemver(_0x2f9257,_0x3a99b6){const _0x5b8648=a153_0x1c9e,_0x204674=parseSemver(_0x2f9257),_0x78a9e7=parseSemver(_0x3a99b6);if(!_0x204674||!_0x78a9e7)throw new Error(_0x5b8648(0x1dd));for(const _0x1fcb37 of[_0x5b8648(0x1d9),_0x5b8648(0x1db),_0x5b8648(0x1e1)]){if(_0x204674[_0x1fcb37]<_0x78a9e7[_0x1fcb37])return-0x1;if(_0x204674[_0x1fcb37]>_0x78a9e7[_0x1fcb37])return 0x1;}if(!_0x204674['prerelease']&&!_0x78a9e7['prerelease'])return 0x0;if(!_0x204674[_0x5b8648(0x1de)])return 0x1;if(!_0x78a9e7['prerelease'])return-0x1;if(_0x204674['prerelease']===_0x78a9e7['prerelease'])return 0x0;return _0x204674[_0x5b8648(0x1de)]<_0x78a9e7['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x22a15a=a153_0x1c9e,_0x4a10bd=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x22a15a(0x1f0)]()[_0x22a15a(0x1ee)]();return _0x4a10bd==='1'||_0x4a10bd===_0x22a15a(0x1f2)||_0x4a10bd===_0x22a15a(0x1d6);}function a153_0x1cd9(){const _0x1d438a=['prerelease','object','132874vJSSbc','patch','map','203143MIzjGR','lastNotifiedAt','.cache','lovrabet-cli','now','/-/package/','checkedAt','match','4ngouHF','latest','filter','toLowerCase','entries','trim','17301618YMvAba','true','update-check.json','number','675453FYdeKb','json','timeout','lastNotifiedVersion','/v/','\x20update','stringify','6096835pGEDVj','7382304dGAAiI','/dist-tags','yes','4824208xgnHdX','utf8','major','https://www.npmjs.com/package/','minor','12tIFGld','Invalid\x20semver'];a153_0x1cd9=function(){return _0x1d438a;};return a153_0x1cd9();}function cacheRoot(){const _0x101f78=a153_0x1c9e;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x101f78(0x1e5));}export function getUpdateNoticeCachePath(){const _0x4bd377=a153_0x1c9e;return join(cacheRoot(),_0x4bd377(0x1e6),_0x4bd377(0x1f3));}function a153_0x1c9e(_0x2bddd9,_0x466b67){_0x2bddd9=_0x2bddd9-0x1d4;const _0x1cd96d=a153_0x1cd9();let _0x1c9e9d=_0x1cd96d[_0x2bddd9];return _0x1c9e9d;}async function readUpdateNoticeCache(){const _0x52d8b0=a153_0x1c9e;try{const _0x104cf7=await readFile(getUpdateNoticeCachePath(),_0x52d8b0(0x1d8)),_0x283caa=JSON['parse'](_0x104cf7);if(!_0x283caa||typeof _0x283caa!==_0x52d8b0(0x1df))return{};return _0x283caa;}catch{return{};}}async function writeUpdateNoticeCache(_0x5d9526){const _0xcaa01d=a153_0x1c9e;try{const _0x25b453=getUpdateNoticeCachePath();await mkdir(dirname(_0x25b453),{'recursive':!![]}),await writeFile(_0x25b453,JSON[_0xcaa01d(0x1fb)](_0x5d9526,null,0x2)+'\x0a',_0xcaa01d(0x1d8));}catch{}}function isFreshCheck(_0x55c8c5,_0x52b840){const _0x237906=a153_0x1c9e;return typeof _0x55c8c5[_0x237906(0x1e9)]===_0x237906(0x1f4)&&_0x52b840-_0x55c8c5[_0x237906(0x1e9)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x34e1b6,_0x3621db,_0x348d31){const _0x37a3a6=a153_0x1c9e;return _0x34e1b6[_0x37a3a6(0x1f8)]===_0x3621db&&typeof _0x34e1b6['lastNotifiedAt']===_0x37a3a6(0x1f4)&&_0x348d31-_0x34e1b6[_0x37a3a6(0x1e4)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0xfbcc9f=0x5dc){const _0x2d5815=a153_0x1c9e;try{const _0x719a82=NPM_REGISTRY_BASE_URL+_0x2d5815(0x1e8)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2d5815(0x1d5),_0x343216=await fetch(_0x719a82,{'signal':AbortSignal[_0x2d5815(0x1f7)](_0xfbcc9f)});if(!_0x343216['ok'])return null;const _0x3f274b=await _0x343216[_0x2d5815(0x1f6)]();if(!_0x3f274b||typeof _0x3f274b!==_0x2d5815(0x1df))return null;return Object['fromEntries'](Object[_0x2d5815(0x1ef)](_0x3f274b)[_0x2d5815(0x1ed)](([,_0x4c8367])=>typeof _0x4c8367==='string'&&_0x4c8367[_0x2d5815(0x1f0)]())[_0x2d5815(0x1e2)](([_0x5e166b,_0x251993])=>[_0x5e166b,String(_0x251993)[_0x2d5815(0x1f0)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0xdb48e){const _0x1088be=a153_0x1c9e;return _0x1088be(0x1da)+LOVRABET_NPM_PACKAGE_NAME+_0x1088be(0x1f9)+_0xdb48e;}export async function resolveLatestUpdateNotice(){const _0x7c1050=a153_0x1c9e;if(isUpdateNoticeDisabled())return null;try{const _0x377578=Date[_0x7c1050(0x1e7)](),_0x2fe2bf=getCliVersion(),_0x1daf17=await readUpdateNoticeCache();let _0x2617a6=isFreshCheck(_0x1daf17,_0x377578)?_0x1daf17[_0x7c1050(0x1ec)]?.[_0x7c1050(0x1f0)]():undefined;if(!_0x2617a6&&!isFreshCheck(_0x1daf17,_0x377578)){const _0x2d42f0=await fetchNpmDistTags();_0x2617a6=_0x2d42f0?.[_0x7c1050(0x1ec)]?.[_0x7c1050(0x1f0)](),await writeUpdateNoticeCache({..._0x1daf17,'checkedAt':_0x377578,'latest':_0x2617a6,'failed':!_0x2617a6});}if(!_0x2617a6||compareSemver(_0x2fe2bf,_0x2617a6)>=0x0)return null;if(isRecentlyNotified(_0x1daf17,_0x2617a6,_0x377578))return null;const _0x1a0363=CLI_BIN_NAME+_0x7c1050(0x1fa);return await writeUpdateNoticeCache({..._0x1daf17,'checkedAt':isFreshCheck(_0x1daf17,_0x377578)?_0x1daf17[_0x7c1050(0x1e9)]:_0x377578,'latest':_0x2617a6,'failed':![],'lastNotifiedVersion':_0x2617a6,'lastNotifiedAt':_0x377578}),{'command':_0x1a0363,'current':_0x2fe2bf,'latest':_0x2617a6,'url':buildNpmVersionUrl(_0x2617a6),'message':CLI_BIN_NAME+'\x20'+_0x2617a6+'\x20available,\x20current\x20'+_0x2fe2bf+',\x20run:\x20'+_0x1a0363};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2b2cfe,_0x45f711){const _0x14699d=a154_0x14a7,_0x39d2fa=_0x2b2cfe();while(!![]){try{const _0x776416=parseInt(_0x14699d(0x9b))/0x1+parseInt(_0x14699d(0x9d))/0x2+-parseInt(_0x14699d(0xa1))/0x3+parseInt(_0x14699d(0x9a))/0x4+-parseInt(_0x14699d(0xa3))/0x5*(parseInt(_0x14699d(0xa2))/0x6)+-parseInt(_0x14699d(0xa0))/0x7*(-parseInt(_0x14699d(0x9f))/0x8)+parseInt(_0x14699d(0x9e))/0x9*(-parseInt(_0x14699d(0xa4))/0xa);if(_0x776416===_0x45f711)break;else _0x39d2fa['push'](_0x39d2fa['shift']());}catch(_0x1fdf6b){_0x39d2fa['push'](_0x39d2fa['shift']());}}}(a154_0x3227,0x3476a));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a154_0x14a7(_0x54ec73,_0x70c178){_0x54ec73=_0x54ec73-0x9a;const _0x32277c=a154_0x3227();let _0x14a7d2=_0x32277c[_0x54ec73];return _0x14a7d2;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x35cb62=a154_0x14a7,_0x1ae0b3=String(GIT_COMMIT);return _0x1ae0b3&&_0x1ae0b3!==_0x35cb62(0x9c)?_0x1ae0b3:'';}export function getCliVersionDisplay(){const _0x180d8b=getCliGitCommit(),_0x35e43f=BUILD_TIME['slice'](0x0,0xa);if(!_0x180d8b||!_0x35e43f)return VERSION;return VERSION+'\x20('+_0x180d8b+',\x20'+_0x35e43f+')';}function a154_0x3227(){const _0x132f6a=['893154fIdfQM','5wbLNkp','43490ZbheNj','244516bKAbNh','425057iEFRdj','unknown','361676VRhPlm','171uNMgTU','30496XKfDik','7PgREuR','673368buTsgm'];a154_0x3227=function(){return _0x132f6a;};return a154_0x3227();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x53f44b,_0x2cc1cb){var _0x4feb90=a155_0x3879,_0x57258d=_0x53f44b();while(!![]){try{var _0x85ce72=-parseInt(_0x4feb90(0x149))/0x1+parseInt(_0x4feb90(0x143))/0x2+parseInt(_0x4feb90(0x146))/0x3*(parseInt(_0x4feb90(0x145))/0x4)+-parseInt(_0x4feb90(0x141))/0x5+parseInt(_0x4feb90(0x142))/0x6*(parseInt(_0x4feb90(0x14a))/0x7)+-parseInt(_0x4feb90(0x147))/0x8+parseInt(_0x4feb90(0x148))/0x9;if(_0x85ce72===_0x2cc1cb)break;else _0x57258d['push'](_0x57258d['shift']());}catch(_0x193f5c){_0x57258d['push'](_0x57258d['shift']());}}}(a155_0x26f7,0x8acc7));function a155_0x3879(_0x267a96,_0x16e7a2){_0x267a96=_0x267a96-0x141;var _0x26f752=a155_0x26f7();var _0x38796a=_0x26f752[_0x267a96];return _0x38796a;}function a155_0x26f7(){var _0x5e9e36=['3987900pZssSr','66RcGORn','310826MSCROt','write','12uDgJQQ','464514Ldzirt','8080792UGXJyZ','13550427bEQLrU','663135toXNvC','581511BTrWLw'];a155_0x26f7=function(){return _0x5e9e36;};return a155_0x26f7();}export function writeCliSideChannelLine(_0x372336){var _0x99d566=a155_0x3879;process['stderr'][_0x99d566(0x144)](_0x372336+'\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.5
|
|
4
|
+
version: 2.2.5
|
|
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:
|
|
@@ -448,8 +448,8 @@ Service Tree 未命中不是失败条件,也不代表业务能力不存在。
|
|
|
448
448
|
|
|
449
449
|
| 意图 | 命令 |
|
|
450
450
|
|------|------|
|
|
451
|
-
| 校验周期任务 | `lovrabet schedule validate --kind CRON --cron '<CRON>' --title '<标题>' --prompt '<任务说明>' --
|
|
452
|
-
| 校验单次任务 | `lovrabet schedule validate --kind ONCE --scheduled-at '<UTC_ISO_TIME>' --title '<标题>' --prompt '<任务说明>' --
|
|
451
|
+
| 校验周期任务 | `lovrabet schedule validate --kind CRON --cron '<CRON>' --title '<标题>' --prompt '<任务说明>' --model deepseek-v4-flash-0731` |
|
|
452
|
+
| 校验单次任务 | `lovrabet schedule validate --kind ONCE --scheduled-at '<UTC_ISO_TIME>' --title '<标题>' --prompt '<任务说明>' --model deepseek-v4-flash-0731` |
|
|
453
453
|
| 创建前预览 | `lovrabet schedule create ... --dry-run` |
|
|
454
454
|
| 创建计划 | `lovrabet schedule create ... --yes` |
|
|
455
455
|
| 查看周期计划 | `lovrabet schedule list --kind CRON` |
|
|
@@ -543,7 +543,7 @@ lovrabet data delete --code <datasetCode> --params '{"id":123}' --yes
|
|
|
543
543
|
|
|
544
544
|
## 定时任务工作流
|
|
545
545
|
|
|
546
|
-
`lovrabet schedule` 用于校验、创建、查询、立即运行和删除当前应用下的 UTC 定时任务。创建前必须核对应用、执行时间、重复规则、标题、完整 prompt 和
|
|
546
|
+
`lovrabet schedule` 用于校验、创建、查询、立即运行和删除当前应用下的 UTC 定时任务。创建前必须核对应用、执行时间、重复规则、标题、完整 prompt 和 model;创建、立即运行和删除都先执行 `--dry-run`,取得用户明确确认后再执行。详见 [定时任务工作流](references/lovrabet-schedule-workflow.md)。
|
|
547
547
|
|
|
548
548
|
## 应用级通知配置查询
|
|
549
549
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
- 当前 AccessKey 对目标应用有权限。
|
|
10
10
|
- `--app`、`--appcode` 或当前工作目录指向正确应用。
|
|
11
11
|
- 时间统一使用 UTC。
|
|
12
|
+
- 使用 `--model` 选择执行模型;默认 `deepseek-v4-flash-0731`,也可显式选择 `kimi/k3` 或 `deepseek-v4-pro-0813`。
|
|
12
13
|
- prompt 是完整、可重复执行的任务说明,不依赖当前对话中的临时上下文。
|
|
13
14
|
- prompt 不包含 AccessKey、密码或其他明文凭证。
|
|
14
15
|
|
|
@@ -35,10 +36,10 @@ lovrabet schedule validate \
|
|
|
35
36
|
--cron '0 9 * * 1-5' \
|
|
36
37
|
--title '工作日销售日报' \
|
|
37
38
|
--prompt '汇总昨日销售数据并生成报告' \
|
|
38
|
-
--
|
|
39
|
+
--model deepseek-v4-flash-0731
|
|
39
40
|
```
|
|
40
41
|
|
|
41
|
-
检查返回的 `kind`、`timezone`、`cron`、`title`、`prompt` 和 `
|
|
42
|
+
检查返回的 `kind`、`timezone`、`cron`、`title`、`prompt` 和 `model`。
|
|
42
43
|
|
|
43
44
|
## 校验单次任务
|
|
44
45
|
|
|
@@ -50,7 +51,7 @@ lovrabet schedule validate \
|
|
|
50
51
|
--scheduled-at '2026-08-01T01:30:00.000Z' \
|
|
51
52
|
--title '发布前检查' \
|
|
52
53
|
--prompt '检查当前应用的发布资料' \
|
|
53
|
-
--
|
|
54
|
+
--model kimi/k3
|
|
54
55
|
```
|
|
55
56
|
|
|
56
57
|
不要同时传 `--cron` 和 `--scheduled-at`。
|
|
@@ -65,7 +66,7 @@ lovrabet schedule create \
|
|
|
65
66
|
--cron '0 9 * * 1-5' \
|
|
66
67
|
--title '工作日销售日报' \
|
|
67
68
|
--prompt '汇总昨日销售数据并生成报告' \
|
|
68
|
-
--
|
|
69
|
+
--model deepseek-v4-flash-0731 \
|
|
69
70
|
--dry-run
|
|
70
71
|
```
|
|
71
72
|
|
|
@@ -76,7 +77,7 @@ lovrabet schedule create \
|
|
|
76
77
|
- 是否重复执行
|
|
77
78
|
- 标题
|
|
78
79
|
- 完整 prompt
|
|
79
|
-
-
|
|
80
|
+
- model
|
|
80
81
|
|
|
81
82
|
用户明确确认后执行:
|
|
82
83
|
|
|
@@ -86,7 +87,7 @@ lovrabet schedule create \
|
|
|
86
87
|
--cron '0 9 * * 1-5' \
|
|
87
88
|
--title '工作日销售日报' \
|
|
88
89
|
--prompt '汇总昨日销售数据并生成报告' \
|
|
89
|
-
--
|
|
90
|
+
--model deepseek-v4-flash-0731 \
|
|
90
91
|
--yes
|
|
91
92
|
```
|
|
92
93
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.2.5
|
|
6
|
-
"skillVersion": "2.2.5
|
|
5
|
+
"packageVersion": "2.2.5",
|
|
6
|
+
"skillVersion": "2.2.5",
|
|
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": "aa8a9e3442c9e9dbed00e983089b2b559e91dc563097414f6ac610118ab5e579"
|
|
41
41
|
}
|