@lovrabet/lovrabet-cli 2.3.10-beta.2 → 2.3.10
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/approval/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/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.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/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.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/domain-config.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.d.ts +1 -3
- 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/region.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/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.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/generated/official-routing.d.ts +4 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- package/lib/generated/routing-contract.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/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.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/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.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/references/lovrabet-config-commands.md +17 -33
- package/skills/lovrabet/references/lovrabet-config.md +11 -3
- package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +4 -4
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x2ca75a=a176_0x23a6;function a176_0x48e7(){const _0x5079e3=['124CyAARz','MAX_SAFE_INTEGER','440936SgBqGK','getOwnPropertyDescriptor','72cJGNwP','1AFsqHN','9280689LZHNBD','parse','length','920515sAuCwp','includes','text','865086PtSnWO','slice','json','1510187fvWGuQ','19482GubhVp','defineProperty','6LaolSo','1506700QqqzRv'];a176_0x48e7=function(){return _0x5079e3;};return a176_0x48e7();}(function(_0x777c1d,_0x5296de){const _0x3aec1c=a176_0x23a6,_0x465f3a=_0x777c1d();while(!![]){try{const _0x5b3771=-parseInt(_0x3aec1c(0x11c))/0x1*(parseInt(_0x3aec1c(0x123))/0x2)+-parseInt(_0x3aec1c(0x127))/0x3*(-parseInt(_0x3aec1c(0x12b))/0x4)+-parseInt(_0x3aec1c(0x120))/0x5*(parseInt(_0x3aec1c(0x129))/0x6)+parseInt(_0x3aec1c(0x126))/0x7+-parseInt(_0x3aec1c(0x12d))/0x8*(parseInt(_0x3aec1c(0x12f))/0x9)+parseInt(_0x3aec1c(0x12a))/0xa+parseInt(_0x3aec1c(0x11d))/0xb;if(_0x5b3771===_0x5296de)break;else _0x465f3a['push'](_0x465f3a['shift']());}catch(_0x3a8b95){_0x465f3a['push'](_0x465f3a['shift']());}}}(a176_0x48e7,0x56632));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a176_0x2ca75a(0x12c)]),MIN_SAFE_INTEGER=BigInt(Number['MIN_SAFE_INTEGER']);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x5ba4c5){const _0x37cf49=a176_0x2ca75a;if(_0x5ba4c5['includes']('.')||_0x5ba4c5[_0x37cf49(0x121)]('e')||_0x5ba4c5[_0x37cf49(0x121)]('E'))return![];const _0x58f560=BigInt(_0x5ba4c5);return _0x58f560>MAX_SAFE_INTEGER||_0x58f560<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x2f96b4){const _0x4b010e=a176_0x2ca75a;let _0x4fb908='',_0x3c7964=![],_0x15c477=![];for(let _0x186eea=0x0;_0x186eea<_0x2f96b4[_0x4b010e(0x11f)];){const _0x4160f6=_0x2f96b4[_0x186eea];if(_0x3c7964){_0x4fb908+=_0x4160f6,_0x186eea+=0x1;if(_0x15c477)_0x15c477=![];else{if(_0x4160f6==='\x5c')_0x15c477=!![];else _0x4160f6==='\x22'&&(_0x3c7964=![]);}continue;}if(_0x4160f6==='\x22'){_0x3c7964=!![],_0x4fb908+=_0x4160f6,_0x186eea+=0x1;continue;}if(_0x4160f6==='-'||_0x4160f6>='0'&&_0x4160f6<='9'){const _0x3fef8c=JSON_NUMBER_PATTERN['exec'](_0x2f96b4[_0x4b010e(0x124)](_0x186eea))?.[0x0];if(_0x3fef8c){_0x4fb908+=isUnsafeIntegerLiteral(_0x3fef8c)?'\x22'+_0x3fef8c+'\x22':_0x3fef8c,_0x186eea+=_0x3fef8c[_0x4b010e(0x11f)];continue;}}_0x4fb908+=_0x4160f6,_0x186eea+=0x1;}return _0x4fb908;}function a176_0x23a6(_0x3073a2,_0x39f608){_0x3073a2=_0x3073a2-0x11c;const _0x48e72a=a176_0x48e7();let _0x23a623=_0x48e72a[_0x3073a2];return _0x23a623;}export function parseLosslessJson(_0x1c6cb9){const _0xadc2d6=a176_0x2ca75a;return JSON[_0xadc2d6(0x11e)](quoteUnsafeIntegerLiterals(_0x1c6cb9));}export function installLosslessJsonResponseParser(){const _0x57e91e=a176_0x2ca75a;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x57e91e(0x12e)](responseJsonPrototype,'json'),Object[_0x57e91e(0x128)](responseJsonPrototype,_0x57e91e(0x125),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x4c8c2a(){const _0x84a80d=_0x57e91e;return parseLosslessJson(await this[_0x84a80d(0x122)]());}}),restoreResponseJsonParser=()=>{const _0x47b9e5=_0x57e91e;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x47b9e5(0x128)](responseJsonPrototype,_0x47b9e5(0x125),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x47b9e5(0x125)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x151b58,_0x48d1ee){const _0x54aec9=a177_0x2302,_0x410f1b=_0x151b58();while(!![]){try{const _0x3c0405=parseInt(_0x54aec9(0x1c1))/0x1*(parseInt(_0x54aec9(0x1bc))/0x2)+-parseInt(_0x54aec9(0x1b8))/0x3*(parseInt(_0x54aec9(0x1ab))/0x4)+parseInt(_0x54aec9(0x1c2))/0x5*(parseInt(_0x54aec9(0x1ae))/0x6)+parseInt(_0x54aec9(0x1b1))/0x7+parseInt(_0x54aec9(0x1aa))/0x8+parseInt(_0x54aec9(0x1b6))/0x9+-parseInt(_0x54aec9(0x1b9))/0xa;if(_0x3c0405===_0x48d1ee)break;else _0x410f1b['push'](_0x410f1b['shift']());}catch(_0x587b32){_0x410f1b['push'](_0x410f1b['shift']());}}}(a177_0x2fef,0x5409a));import{CliErrors}from'../errors.js';function a177_0x2302(_0x22c233,_0x276509){_0x22c233=_0x22c233-0x1aa;const _0x2fef09=a177_0x2fef();let _0x2302ba=_0x2fef09[_0x22c233];return _0x2302ba;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x5edced){const _0x2ebe92=a177_0x2302;if(!_0x5edced)return undefined;try{return parseLosslessJson(_0x5edced);}catch{throw CliErrors[_0x2ebe92(0x1bf)](_0x2ebe92(0x1ac)+_0x5edced);}}export function parseJsonParamsValue(_0x4d5c3d){const _0x4ad618=a177_0x2302;if(!_0x4d5c3d)return undefined;try{return parseLosslessJson(_0x4d5c3d);}catch{throw CliErrors[_0x4ad618(0x1bf)](_0x4ad618(0x1ac)+_0x4d5c3d);}}export function parseBatchCreateItemsFromParams(_0x348097){const _0x3ef17b=a177_0x2302;if(Array[_0x3ef17b(0x1bd)](_0x348097))return _0x348097;if(_0x348097!==null&&_0x348097!==undefined&&typeof _0x348097===_0x3ef17b(0x1c3)&&Array[_0x3ef17b(0x1bd)](_0x348097[_0x3ef17b(0x1b3)]))return _0x348097[_0x3ef17b(0x1b3)];throw CliErrors[_0x3ef17b(0x1bf)](_0x3ef17b(0x1b0),_0x3ef17b(0x1ba));}function parseDataUpdateId(_0x22c57d,_0x51bb0f){const _0xbdc12f=a177_0x2302;if(typeof _0x22c57d===_0xbdc12f(0x1c4)&&Number['isSafeInteger'](_0x22c57d)&&_0x22c57d>0x0)return _0x22c57d;if(typeof _0x22c57d===_0xbdc12f(0x1b4)){if(/^[1-9]\d*$/['test'](_0x22c57d))return _0x22c57d;}throw CliErrors[_0xbdc12f(0x1bf)](_0xbdc12f(0x1b2)+_0x51bb0f+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x44b09b){const _0x2f5f9d=a177_0x2302;if(_0x44b09b===null||_0x44b09b===undefined||typeof _0x44b09b!=='object'||Array[_0x2f5f9d(0x1bd)](_0x44b09b))throw CliErrors['validation']('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x2f5f9d(0x1c0));const _0x4bdc3e=_0x44b09b['id'];if(_0x4bdc3e===undefined||_0x4bdc3e===null)throw CliErrors[_0x2f5f9d(0x1bf)](_0x2f5f9d(0x1c5),_0x2f5f9d(0x1c0));const _0xfebd16=Array[_0x2f5f9d(0x1bd)](_0x4bdc3e)?_0x4bdc3e:[_0x4bdc3e];if(_0xfebd16[_0x2f5f9d(0x1af)]===0x0)throw CliErrors[_0x2f5f9d(0x1bf)](_0x2f5f9d(0x1bb));if(_0xfebd16[_0x2f5f9d(0x1af)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x2f5f9d(0x1bf)](_0x2f5f9d(0x1b7)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0xfebd16[_0x2f5f9d(0x1af)]+'.');return _0xfebd16[_0x2f5f9d(0x1ad)]((_0x3f9fc7,_0x397cb0)=>parseDataUpdateId(_0x3f9fc7,Array[_0x2f5f9d(0x1bd)](_0x4bdc3e)?_0x2f5f9d(0x1be)+_0x397cb0+']':'id'));}function a177_0x2fef(){const _0x4b9c59=['items','string','join','4739085McbeVP','data\x20update\x20can\x20update\x20at\x20most\x20','258Aiptvd','14607010hCNYOf','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','1828PUhqLD','isArray','id[','validation','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','321SIrSLN','3695GoDaqa','object','number','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','2184024iPxPJn','3792DpadIl','Invalid\x20JSON\x20for\x20--params:\x20','map','2034pClnqD','length','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','3800748UEpTNk','data\x20update\x20--params.'];a177_0x2fef=function(){return _0x4b9c59;};return a177_0x2fef();}export function normalizeUpdateParamsForRuntime(_0x51e9d2,_0xd616f9){const _0x56ef5f=a177_0x2302;if(Array[_0x56ef5f(0x1bd)](_0x51e9d2['id'])&&_0xd616f9[_0x56ef5f(0x1af)]>0x1)return{..._0x51e9d2,'id':_0xd616f9[_0x56ef5f(0x1b5)](',')};return _0x51e9d2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a178_0x6787(_0xfe59a3,_0x36d68b){_0xfe59a3=_0xfe59a3-0x13f;const _0x15fd1a=a178_0x15fd();let _0x6787e2=_0x15fd1a[_0xfe59a3];return _0x6787e2;}function a178_0x15fd(){const _0x2940a6=['6cZaPFD','1904896aTaxFf','519695aJNftV','3102855tvnppf','585496JUYIBt','number','328472OLGNbu','string','6273747fXSlEt','isSafeInteger','test','24QMvkfW','193956elMjWR'];a178_0x15fd=function(){return _0x2940a6;};return a178_0x15fd();}(function(_0x225ad8,_0x46487f){const _0x2d7177=a178_0x6787,_0xe88457=_0x225ad8();while(!![]){try{const _0x2e2e19=-parseInt(_0x2d7177(0x143))/0x1+parseInt(_0x2d7177(0x147))/0x2+parseInt(_0x2d7177(0x13f))/0x3*(-parseInt(_0x2d7177(0x140))/0x4)+parseInt(_0x2d7177(0x144))/0x5+-parseInt(_0x2d7177(0x141))/0x6*(parseInt(_0x2d7177(0x142))/0x7)+parseInt(_0x2d7177(0x145))/0x8+parseInt(_0x2d7177(0x149))/0x9;if(_0x2e2e19===_0x46487f)break;else _0xe88457['push'](_0xe88457['shift']());}catch(_0x1bf733){_0xe88457['push'](_0xe88457['shift']());}}}(a178_0x15fd,0x5ba2e));export function normalizePositiveSafeInteger(_0x23e478){const _0x569aa2=a178_0x6787;if(typeof _0x23e478===_0x569aa2(0x146))return Number[_0x569aa2(0x14a)](_0x23e478)&&_0x23e478>0x0?_0x23e478:undefined;if(typeof _0x23e478!==_0x569aa2(0x148)||!/^\d+$/[_0x569aa2(0x14b)](_0x23e478))return undefined;const _0x275b7c=Number(_0x23e478);return Number[_0x569aa2(0x14a)](_0x275b7c)&&_0x275b7c>0x0?_0x275b7c:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x4996d9=a179_0x518c;(function(_0x7319db,_0x5af14e){const _0x1bd2b0=a179_0x518c,_0x1fbf3d=_0x7319db();while(!![]){try{const _0x43ec28=parseInt(_0x1bd2b0(0x90))/0x1+-parseInt(_0x1bd2b0(0x91))/0x2+-parseInt(_0x1bd2b0(0x93))/0x3*(parseInt(_0x1bd2b0(0x9d))/0x4)+parseInt(_0x1bd2b0(0x8f))/0x5*(-parseInt(_0x1bd2b0(0x92))/0x6)+-parseInt(_0x1bd2b0(0x9f))/0x7+parseInt(_0x1bd2b0(0x96))/0x8*(parseInt(_0x1bd2b0(0x98))/0x9)+parseInt(_0x1bd2b0(0x8c))/0xa;if(_0x43ec28===_0x5af14e)break;else _0x1fbf3d['push'](_0x1fbf3d['shift']());}catch(_0x302474){_0x1fbf3d['push'](_0x1fbf3d['shift']());}}}(a179_0x3ccf,0x5b7e0));const REDACTED_VALUE=a179_0x4996d9(0x97),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a179_0x4996d9(0x8d),a179_0x4996d9(0x9b)]),SENSITIVE_VALUE_KEYS=new Set(['comment']);export function isSensitiveKey(_0x4c10ef){const _0xd2c0c=a179_0x4996d9,_0x18565a=_0x4c10ef[_0xd2c0c(0x9a)](/_/g,'-')[_0xd2c0c(0x94)]();return SENSITIVE_KEY_PATTERN['test'](_0x18565a);}export function isSensitiveFlagName(_0x51959a){const _0x41bfe8=a179_0x4996d9,_0x121c21=_0x51959a[_0x41bfe8(0x9a)](/_/g,'-')['toLowerCase']();return isSensitiveKey(_0x121c21)||SENSITIVE_FLAG_NAMES['has'](_0x121c21);}function redactVariableValues(_0x400262){const _0x2b0a16=a179_0x4996d9;if(Array[_0x2b0a16(0xa0)](_0x400262))return _0x400262[_0x2b0a16(0x8e)](_0x9ec96e=>redactVariableValues(_0x9ec96e));if(_0x400262&&typeof _0x400262===_0x2b0a16(0x9e))return Object['fromEntries'](Object[_0x2b0a16(0x8b)](_0x400262)['map'](([_0x270609,_0x174fe7])=>[_0x270609,redactVariableValues(_0x174fe7)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x3c1881){const _0x55b257=a179_0x4996d9;if(Array[_0x55b257(0xa0)](_0x3c1881))return _0x3c1881[_0x55b257(0x8e)](_0xa73bdc=>redactSensitiveValue(_0xa73bdc));if(!_0x3c1881||typeof _0x3c1881!==_0x55b257(0x9e))return _0x3c1881;const _0x4dce04={};for(const [_0x2d244d,_0x55dbf5]of Object['entries'](_0x3c1881)){const _0x4122d8=_0x2d244d['replace'](/_/g,'-')[_0x55b257(0x94)]();_0x4dce04[_0x2d244d]=_0x4122d8==='variables'?redactVariableValues(_0x55dbf5):SENSITIVE_VALUE_KEYS[_0x55b257(0x9c)](_0x4122d8)||isSensitiveKey(_0x2d244d)?REDACTED_VALUE:redactSensitiveValue(_0x55dbf5);}return _0x4dce04;}function a179_0x518c(_0x59dcd4,_0x59cf3b){_0x59dcd4=_0x59dcd4-0x8b;const _0x3ccfae=a179_0x3ccf();let _0x518c1d=_0x3ccfae[_0x59dcd4];return _0x518c1d;}export function redactCommandArgv(_0x264642){const _0x27609c=a179_0x4996d9,_0x2526c4=[];let _0x33a37b=![];for(const _0x225b86 of _0x264642){if(_0x33a37b){_0x2526c4[_0x27609c(0x95)](REDACTED_VALUE),_0x33a37b=![];continue;}const _0xa99e4c=_0x225b86[_0x27609c(0x99)](/^--([^=]+)(?:=(.*))?$/);if(!_0xa99e4c||!isSensitiveFlagName(_0xa99e4c[0x1]??'')){_0x2526c4[_0x27609c(0x95)](_0x225b86);continue;}_0x2526c4[_0x27609c(0x95)]('--'+_0xa99e4c[0x1]+(_0xa99e4c[0x2]===undefined?'':'='+REDACTED_VALUE)),_0xa99e4c[0x2]===undefined&&(_0x33a37b=!![]);}return _0x2526c4;}function a179_0x3ccf(){const _0x43a280=['1398810eqXDYz','223038gpwVzY','408UXAkpH','toLowerCase','push','8cKjLkC','[REDACTED]','1117953OzIkUZ','match','replace','variables','has','108aFExqu','object','1188775dXubPR','isArray','entries','13854270aKelyF','comment','map','95UOKHEG','444297IRLeKK'];a179_0x3ccf=function(){return _0x43a280;};return a179_0x3ccf();}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46d35d,_0x4f11e0){const _0x95ebf5=a180_0x4983,_0x275564=_0x46d35d();while(!![]){try{const _0x4b985c=parseInt(_0x95ebf5(0xee))/0x1*(-parseInt(_0x95ebf5(0xed))/0x2)+-parseInt(_0x95ebf5(0xea))/0x3*(parseInt(_0x95ebf5(0xe9))/0x4)+-parseInt(_0x95ebf5(0xf3))/0x5*(parseInt(_0x95ebf5(0xf4))/0x6)+-parseInt(_0x95ebf5(0xec))/0x7*(parseInt(_0x95ebf5(0xe8))/0x8)+parseInt(_0x95ebf5(0xeb))/0x9*(-parseInt(_0x95ebf5(0xef))/0xa)+-parseInt(_0x95ebf5(0xf2))/0xb*(-parseInt(_0x95ebf5(0xf1))/0xc)+parseInt(_0x95ebf5(0xf0))/0xd;if(_0x4b985c===_0x4f11e0)break;else _0x275564['push'](_0x275564['shift']());}catch(_0xc3f4b9){_0x275564['push'](_0x275564['shift']());}}}(a180_0x5ee8,0x32b8d));export function normalizeRuntimeUserId(_0x448168){const _0x25aad8=a180_0x4983;if(typeof _0x448168==='number')return Number[_0x25aad8(0xf5)](_0x448168)&&_0x448168>0x0?String(_0x448168):undefined;if(typeof _0x448168!==_0x25aad8(0xf6)||!/^\d+$/[_0x25aad8(0xf7)](_0x448168))return undefined;const _0x4aa633=_0x448168['replace'](/^0+/,'');return _0x4aa633||undefined;}function a180_0x4983(_0x1a1cbe,_0x2c979c){_0x1a1cbe=_0x1a1cbe-0xe8;const _0x5ee8e1=a180_0x5ee8();let _0x498338=_0x5ee8e1[_0x1a1cbe];return _0x498338;}function a180_0x5ee8(){const _0x3c0a10=['33twKRJy','269245YFhsPS','6jpPIdU','isSafeInteger','string','test','8gZlzmU','126044GCoSZw','9lvluQi','54SPhXpF','1151612NwEUtm','828EnVKcp','613zdIcfI','117010QkdqGS','6945380ozchQv','1241532hWIwrk'];a180_0x5ee8=function(){return _0x3c0a10;};return a180_0x5ee8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d7579,_0x190424){const _0x40d13b=a181_0x20ef,_0x3270d9=_0x1d7579();while(!![]){try{const _0x2d3686=parseInt(_0x40d13b(0xc4))/0x1*(-parseInt(_0x40d13b(0xb8))/0x2)+parseInt(_0x40d13b(0xb9))/0x3+-parseInt(_0x40d13b(0xc3))/0x4*(-parseInt(_0x40d13b(0xb4))/0x5)+parseInt(_0x40d13b(0xc1))/0x6*(parseInt(_0x40d13b(0xad))/0x7)+parseInt(_0x40d13b(0xae))/0x8*(-parseInt(_0x40d13b(0xb3))/0x9)+-parseInt(_0x40d13b(0xaf))/0xa+parseInt(_0x40d13b(0xbd))/0xb;if(_0x2d3686===_0x190424)break;else _0x3270d9['push'](_0x3270d9['shift']());}catch(_0x532085){_0x3270d9['push'](_0x3270d9['shift']());}}}(a181_0x2e66,0x542ba));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';function a181_0x20ef(_0x47b9da,_0xa3b510){_0x47b9da=_0x47b9da-0xaa;const _0x2e6665=a181_0x2e66();let _0x20ef61=_0x2e6665[_0x47b9da];return _0x20ef61;}const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5f703=a181_0x20ef,_0x1d97bd=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x5f703(0xb2)]();return _0x1d97bd==='1'||_0x1d97bd===_0x5f703(0xc7)||_0x1d97bd===_0x5f703(0xbc);}function cacheRoot(){const _0x5ae35d=a181_0x20ef;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5ae35d(0xb7));}export function getUpdateNoticeCachePath(){const _0x37286a=a181_0x20ef;return join(cacheRoot(),'lovrabet-cli',_0x37286a(0xac));}async function readUpdateNoticeCache(){const _0x25c564=a181_0x20ef;try{const _0x570abe=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x400749=JSON['parse'](_0x570abe);if(!_0x400749||typeof _0x400749!==_0x25c564(0xba))return{};return _0x400749;}catch{return{};}}async function writeUpdateNoticeCache(_0x243afa){const _0x4548ff=a181_0x20ef;try{const _0x2ea056=getUpdateNoticeCachePath();await mkdir(dirname(_0x2ea056),{'recursive':!![]}),await writeFile(_0x2ea056,JSON[_0x4548ff(0xb1)](_0x243afa,null,0x2)+'\x0a',_0x4548ff(0xbf));}catch{}}function isRecentlyNotified(_0x2130ef,_0x384890,_0x884930){const _0x566081=a181_0x20ef;return _0x2130ef['lastNotifiedVersion']===_0x384890&&typeof _0x2130ef[_0x566081(0xc5)]==='number'&&_0x884930-_0x2130ef[_0x566081(0xc5)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x26e572){const _0x40d763=a181_0x20ef;return _0x40d763(0xb0)+LOVRABET_NPM_PACKAGE_NAME+_0x40d763(0xc2)+_0x26e572;}export async function resolveLatestUpdateNotice(_0x1ec113){const _0x5b447b=a181_0x20ef;if(isUpdateNoticeDisabled())return null;try{const _0xcb5a39=Date[_0x5b447b(0xc6)](),_0x2e1a15=_0x1ec113??await checkCliVersion(),_0xcb5617=_0x2e1a15[_0x5b447b(0xb6)],_0x1b0a53=_0x2e1a15[_0x5b447b(0xaa)],_0x32de54=await readUpdateNoticeCache();if(!_0x1b0a53||!_0x2e1a15['needsUpgrade']||_0x2e1a15[_0x5b447b(0xc0)])return null;if(isRecentlyNotified(_0x32de54,_0x1b0a53,_0xcb5a39))return null;const _0x43b89a=getCliUpgradeCommand(_0x2e1a15);return await writeUpdateNoticeCache({..._0x32de54,'checkedAt':_0xcb5a39,'latest':_0x1b0a53,'failed':![],'lastNotifiedVersion':_0x1b0a53,'lastNotifiedAt':_0xcb5a39}),{'command':_0x43b89a,'current':_0xcb5617,'latest':_0x1b0a53,'url':buildNpmVersionUrl(_0x1b0a53),'message':[_0x2e1a15['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x1b0a53+_0x5b447b(0xbb)+_0xcb5617+_0x5b447b(0xbe)+_0x43b89a][_0x5b447b(0xb5)](Boolean)[_0x5b447b(0xab)]('\x20')};}catch{return null;}}function a181_0x2e66(){const _0x485bc1=['now','true','stableVersion','join','update-check.json','54579dJqmgi','6712CxFRwY','1858540cWRYjX','https://www.npmjs.com/package/','stringify','toLowerCase','6147TVKpTR','5umSTmx','filter','currentVersion','.cache','4934cubZyy','1302324YHpzlS','object','\x20is\x20recommended,\x20current\x20','yes','3535279JsbDZk',',\x20run:\x20','utf8','belowMinimum','24ZtJqOi','/v/','1277740KQwxUo','1nanJsq','lastNotifiedAt'];a181_0x2e66=function(){return _0x485bc1;};return a181_0x2e66();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6ba6f1,_0x161769){const _0x3c88a8=a182_0x2e9a,_0x271541=_0x6ba6f1();while(!![]){try{const _0x2e1076=-parseInt(_0x3c88a8(0x174))/0x1*(-parseInt(_0x3c88a8(0x173))/0x2)+-parseInt(_0x3c88a8(0x171))/0x3+parseInt(_0x3c88a8(0x172))/0x4+-parseInt(_0x3c88a8(0x16d))/0x5+-parseInt(_0x3c88a8(0x16e))/0x6*(-parseInt(_0x3c88a8(0x16b))/0x7)+-parseInt(_0x3c88a8(0x170))/0x8+-parseInt(_0x3c88a8(0x16c))/0x9*(parseInt(_0x3c88a8(0x16f))/0xa);if(_0x2e1076===_0x161769)break;else _0x271541['push'](_0x271541['shift']());}catch(_0x90fbfd){_0x271541['push'](_0x271541['shift']());}}}(a182_0xcba7,0xf128e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0xa873de=String(GIT_COMMIT);return _0xa873de&&_0xa873de!=='unknown'?_0xa873de:'';}export function getCliVersionDisplay(){const _0x21dcd0=getCliGitCommit(),_0xb64acd=BUILD_TIME['slice'](0x0,0xa);if(!_0x21dcd0||!_0xb64acd)return VERSION;return VERSION+'\x20('+_0x21dcd0+',\x20'+_0xb64acd+')';}function a182_0x2e9a(_0x4ebcc1,_0x700bc5){_0x4ebcc1=_0x4ebcc1-0x16b;const _0xcba77a=a182_0xcba7();let _0x2e9a0b=_0xcba77a[_0x4ebcc1];return _0x2e9a0b;}function a182_0xcba7(){const _0x21973e=['3146946QSZRdG','7048196IJKpom','1052LrmGQa','1801lJWVJE','7zuzMAf','45iXNLqN','2921920kpUBkn','11757468WmYkVq','1705390bthQRE','9560816cBApdm'];a182_0xcba7=function(){return _0x21973e;};return a182_0xcba7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ef2a2,_0x27ff3f){var _0x3378a1=a183_0x22d2,_0x34a102=_0x2ef2a2();while(!![]){try{var _0x56278a=parseInt(_0x3378a1(0x1c9))/0x1+parseInt(_0x3378a1(0x1c3))/0x2*(-parseInt(_0x3378a1(0x1c7))/0x3)+-parseInt(_0x3378a1(0x1c5))/0x4*(parseInt(_0x3378a1(0x1c2))/0x5)+-parseInt(_0x3378a1(0x1c1))/0x6+parseInt(_0x3378a1(0x1ca))/0x7*(parseInt(_0x3378a1(0x1cc))/0x8)+parseInt(_0x3378a1(0x1cb))/0x9+-parseInt(_0x3378a1(0x1c8))/0xa*(parseInt(_0x3378a1(0x1c6))/0xb);if(_0x56278a===_0x27ff3f)break;else _0x34a102['push'](_0x34a102['shift']());}catch(_0x1bc4d9){_0x34a102['push'](_0x34a102['shift']());}}}(a183_0x34e8,0xba7eb));function a183_0x34e8(){var _0x4dec33=['1180234myvmqQ','14nFMpUr','11316177oAVdyd','5982536GXAzqz','8692734iBtHMI','40ZRwJfl','2wjvrNj','write','73252hsvHbm','2634269GWpyKV','4003698RECGBZ','10bNJseQ'];a183_0x34e8=function(){return _0x4dec33;};return a183_0x34e8();}function a183_0x22d2(_0xb836d7,_0x25107f){_0xb836d7=_0xb836d7-0x1c1;var _0x34e864=a183_0x34e8();var _0x22d249=_0x34e864[_0xb836d7];return _0x22d249;}export function writeCliSideChannelLine(_0x1f06e5){var _0xb1bce6=a183_0x22d2;process['stderr'][_0xb1bce6(0x1c4)](_0x1f06e5+'\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.3.10
|
|
4
|
+
version: 2.3.10
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、API 文档发现、数据集查询、Instant API 数据操作、可恢复 Excel 导入、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、审批待办与任务办理、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、api-doc、dataset、data filter、Excel 导入、data import-excel、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
|
|
6
6
|
metadata:
|
|
7
7
|
requires:
|
|
@@ -15,56 +15,40 @@ lovrabet config init --region id
|
|
|
15
15
|
lovrabet config init --domain-config ./lovrabet-domains.json
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
官方 Region 与企业 Domain 是互斥的初始化入口,不能同时传入。企业服务地址示例:
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```bash
|
|
21
|
+
lovrabet config init --runtime-domain https://runtime.customer.example.com
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- `--region` 接受当前启用的 `cn` / `id` / `global`;默认 `cn` 不保存冗余字段。
|
|
25
|
+
- 提供企业 Domain 或企业清单会清除全局 `region` 和旧 Domain/routing,再保存本次企业配置;无需先选择地区。
|
|
26
|
+
- 选择 `--region` 会清除全局旧 Domain/routing,并使用地区默认地址。
|
|
27
|
+
- AccessKey、env、format、locale 和应用绑定保持不变。
|
|
21
28
|
|
|
22
|
-
|
|
23
|
-
- 选择 `cn` 时省略冗余的 `region` 字段,以默认值保持向前兼容;选择 `id` 时写入 `"region": "id"`
|
|
24
|
-
- 切回官方节点会删除全局配置里的显式 Domain,以及兼容读取的旧 Domain 字段
|
|
29
|
+
### 可选 Domain 覆盖值
|
|
25
30
|
|
|
26
|
-
|
|
31
|
+
支持 `userDomain`、`apiDomain`、`runtimeDomain`、`skillDomain`、`kbServiceDomain` 和 `harnessDomain`,均可省略。没有配置的字段使用当前地区及环境的内置地址,独立部署也遵循同一规则。Personal KB 管理和搜索使用 `kbServiceDomain`,定时接口使用 `harnessDomain`。
|
|
27
32
|
|
|
28
|
-
|
|
33
|
+
版本化企业路由清单可只包含需要覆盖的字段,`domains` 也可以为空:
|
|
29
34
|
|
|
30
35
|
```json
|
|
31
36
|
{
|
|
32
37
|
"protocol": "lovrabet-routing/v1",
|
|
33
38
|
"kind": "enterprise",
|
|
34
|
-
"cdn": {
|
|
35
|
-
"libraries": "https://cdnjs.cloudflare.com/ajax/libs",
|
|
36
|
-
"lovrabet": "https://g.lovrabet.com"
|
|
37
|
-
},
|
|
38
39
|
"domains": {
|
|
39
|
-
"
|
|
40
|
-
"apiDomain": "https://api.customer.example.com",
|
|
41
|
-
"runtimeDomain": "https://runtime.customer.example.com",
|
|
42
|
-
"skillDomain": "https://skills.customer.example.com",
|
|
43
|
-
"kbServiceDomain": "https://kb.customer.example.com",
|
|
44
|
-
"kbDomain": "https://kb-admin.customer.example.com",
|
|
45
|
-
"appDomain": "https://app.customer.example.com"
|
|
40
|
+
"runtimeDomain": "https://runtime.customer.example.com"
|
|
46
41
|
}
|
|
47
42
|
}
|
|
48
43
|
```
|
|
49
44
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
```json
|
|
53
|
-
{
|
|
54
|
-
"userDomain": "https://user.customer.example.com",
|
|
55
|
-
"apiDomain": "https://api.customer.example.com",
|
|
56
|
-
"runtimeDomain": "https://runtime.customer.example.com",
|
|
57
|
-
"skillDomain": "https://skills.customer.example.com"
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
也可以用 `--user-domain`、`--api-domain`、`--runtime-domain`、`--skill-domain`、`--kb-service-domain` 逐项传入;显式 flag 只覆盖旧扁平文件里的同名字段。所有值必须是无账号、路径、query 和 fragment 的 HTTPS origin。
|
|
45
|
+
其他工具可能要求完整清单中的其他字段;Lovrabet CLI 仅校验并保存自己使用的六个 Domain,忽略其他消费者的 Domain、CDN 或数据库字段。各值可写为 HTTPS 字符串,或带 `lovrabet-cli` / `default` 的对象;当前消费者专属值优先;该值未提供或为 null 时使用 `default`。字段省略时使用内置默认值;字段已提供但最终没有可用的消费者地址,或地址为空、格式错误时会报错。
|
|
62
46
|
|
|
63
|
-
|
|
47
|
+
支持扁平 JSON 配置。也可使用 `--user-domain`、`--api-domain`、`--runtime-domain`、`--skill-domain`、`--kb-service-domain`、`--harness-domain`。显式 flag 覆盖扁平文件的同名字段;版本化企业清单不能叠加单独的 Domain flags,也不能搭配 `--region`。
|
|
64
48
|
|
|
65
|
-
|
|
49
|
+
企业清单保存为 `routing` 对象。初始化只修改全局配置,项目配置仍参与运行时解析,具体顺序见 [配置解析优先级](lovrabet-config.md#解析优先级)。初始化后可用 `lovrabet doctor` 核对实际生效的 Domain。
|
|
66
50
|
|
|
67
|
-
|
|
51
|
+
通过 `config init` 或企业清单提供的地址必须是不含凭据、路径、查询参数或片段的 HTTPS origin。只有所选地区没有该服务内置地址且未配置覆盖值时,对应操作才要求提供地址;请求失败不会切换服务地址。`--kb-service-url` 仅覆盖单次搜索,不写入配置。
|
|
68
52
|
|
|
69
53
|
## config list — 查看完整配置
|
|
70
54
|
|
|
@@ -75,16 +75,24 @@
|
|
|
75
75
|
| `region` | string | `cn` | 当前开放的官方节点:`cn` / `id` / `global`;默认 `cn` 可省略 |
|
|
76
76
|
| `userDomain` | string | 节点内置值 | User 服务 HTTPS origin 覆盖 |
|
|
77
77
|
| `apiDomain` | string | 节点内置值 | 平台 API HTTPS origin 覆盖 |
|
|
78
|
-
| `runtimeDomain` | string | 节点内置值 | Runtime HTTPS origin
|
|
78
|
+
| `runtimeDomain` | string | 节点内置值 | Runtime HTTPS origin 覆盖 |
|
|
79
79
|
| `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
|
|
80
|
-
| `kbServiceDomain` | string |
|
|
80
|
+
| `kbServiceDomain` | string | 节点内置值(如有) | KB Service HTTPS origin 覆盖;仅无内置地址且无覆盖值时对应知识操作报错 |
|
|
81
|
+
| `harnessDomain` | string | 节点内置值(如有) | Harness 服务 HTTPS origin 覆盖 |
|
|
81
82
|
|
|
82
|
-
各 Domain
|
|
83
|
+
各 Domain 独立覆盖同名服务地址,官方配置和独立部署均采用相同的缺省规则。`config init` 中官方地区与企业 Domain 二选一;配置文件允许同时包含 `region` 和 Domain,服务地址按下方解析优先级确定。没有显式配置时,CLI 使用当前连接配置对应的内置节点;Indonesia 的最终服务地址统一使用 `*.lovrabet.id`。Personal KB 管理和知识搜索使用 `kbServiceDomain`,不从其他 Domain 推导;`--kb-service-url` 仅覆盖本次搜索。执行 `lovrabet doctor` 可查看当前实际生效的 Domain。
|
|
83
84
|
|
|
84
85
|
`config init` 的完整模式切换、独立部署 JSON 和校验规则见 [配置管理](lovrabet-config-commands.md#config-init--初始化连接配置)。
|
|
85
86
|
|
|
86
87
|
## 解析优先级
|
|
87
88
|
|
|
89
|
+
连接配置先合并再解析:项目配置覆盖全局同名字段;`routing` 对象整体替换,不逐项合并。
|
|
90
|
+
|
|
91
|
+
- 合并后存在 `routing` 时,`routing` 整体优先于顶层 Domain,缺省服务使用内置值,不回退到顶层 Domain。
|
|
92
|
+
- 没有 `routing` 时,使用顶层显式 Domain;API 地址依次读取 `apiDomain → host → 内置值`,SkillHub 地址依次读取 `skillDomain → skillHubDomain → agentDomain → platformDomain → 内置值`。这些字段为空字符串或 null 时读取下一项。
|
|
93
|
+
- `kbServiceDomain` 仅使用自身的非空字符串或内置值;`harnessDomain` 未配置时使用内置值,配置时必须为非空 HTTPS origin,不含凭据、路径、查询参数或片段。两者均不借用其他 Domain 或别名。
|
|
94
|
+
- 内置值由合并后的地区和连接设置决定;项目与全局均未配置 `region` 时使用 `cn`。请求失败不会切换地址。
|
|
95
|
+
|
|
88
96
|
- 凭证:`项目顶层 accessKey > LOVRABET_ACCESS_KEY > 全局顶层 accessKey`。应用选择不参与凭证解析。项目 accessKey 为 `""` 或 `null` 时仍屏蔽全局 AK,但允许环境变量提供凭证。
|
|
89
97
|
- 应用目标:`--appcode > --app > 项目 appcode > 项目 defaultApp > LOVRABET_APPCODE > LOVRABET_APP > 全局 appcode > 全局 defaultApp`。兼容字段 app 可用于直接指定 AppCode。
|
|
90
98
|
- 应用名称先匹配本地映射,再解析远端名称。项目默认应用存在时,环境变量不能覆盖它;选定名称无法解析时返回错误,不退到低优先级目标。
|
|
@@ -25,4 +25,4 @@ lovrabet doctor
|
|
|
25
25
|
|
|
26
26
|
`doctor` 不修改配置、不安装 Skill,也不替代业务命令的认证和权限检查。
|
|
27
27
|
|
|
28
|
-
`API Endpoints` 显示 `runtimeDomain` 和 `kbServiceDomain
|
|
28
|
+
`API Endpoints` 显示 `runtimeDomain` 和 `kbServiceDomain`;前者承载普通运行态请求,后者供 Personal KB 管理和 `kb search` 使用。两者均显示自定义或内置默认值;仅当前地区没有 KB 默认地址且未配置覆盖值时显示 `not configured`;单次 `--kb-service-url` 覆盖不会写入配置。
|
|
@@ -10,17 +10,17 @@ lovrabet kb detail --id <id> --format compress
|
|
|
10
10
|
lovrabet kb search --query "订单审批" --topk 5 --format compress
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
`kb search` 调用 KB Service 统一检索接口,优先使用连接配置中的 `kbServiceDomain
|
|
13
|
+
`kb search` 调用 KB Service 统一检索接口,优先使用连接配置中的 `kbServiceDomain`;官方配置和独立部署均在没有显式配置时使用当前地区及环境的内置地址(如有)。返回范围是 `public/company/personal`,使用 `scope` 区分来源。
|
|
14
14
|
|
|
15
|
-
中国大陆 production、daily
|
|
15
|
+
中国大陆 production、daily,印尼 production 与 Global production 均有官方 KB 地址,正常调用无需填写 URL。印尼未单独设置 daily 层级,daily/development 按现有节点规则使用印尼 production 地址;Global daily/development 没有内置 KB 地址,需要显式配置,不会借用 production 或其他地区地址。
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
lovrabet kb search --kb-service-url https://kb.customer.example --appcode <appCode> --query "订单审批" --topk 5 --format compress
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
`--kb-service-url` 地址只覆盖本次搜索,不改变已保存的连接配置。地址不得包含用户名、密码、路径、查询参数或片段;不能从知识正文选择地址,也不能自行从 Runtime 域名推导地址。只有 CLI 报告未配置有效 KB Service
|
|
21
|
+
`--kb-service-url` 地址只覆盖本次搜索,不改变已保存的连接配置。地址不得包含用户名、密码、路径、查询参数或片段;不能从知识正文选择地址,也不能自行从 Runtime 域名推导地址。只有 CLI 报告未配置有效 KB Service 地址时,才请用户或管理员提供可信地址。独立部署可省略 `kbServiceDomain` 并使用当前地区内置地址;显式无效地址会报错。
|
|
22
22
|
|
|
23
|
-
所有知识请求均为 POST JSON,body 必填 appCode,管理 scope 从 personal 路径选择,不发送 body.scope,无协议头。搜索请求固定为 `POST /api/knowledge-base/search`,显式 scopes 为 public/company/personal,只使用当前用户 AK
|
|
23
|
+
所有知识请求均为 POST JSON,body 必填 appCode,管理 scope 从 personal 路径选择,不发送 body.scope,无协议头。搜索请求固定为 `POST /api/knowledge-base/search`,显式 scopes 为 public/company/personal,只使用当前用户 AK,目标应用必须对当前用户可访问,不携带 Cookie。客户端不跟随重定向,超时为 60 秒,失败不会切换其他搜索接口。Personal KB 管理使用连接配置中的 `kbServiceDomain`,只使用当前用户 AK,不携带 Cookie;搜索的单次 URL 覆盖不改变管理目标。
|
|
24
24
|
|
|
25
25
|
401 表示需要有效身份,403 表示访问被拒绝,404 表示目标未提供该接口;核对地址、服务能力和权限,不通过改身份、关闭 TLS 或换接口绕过。`schemaVersion:2` 表示返回结构版本。
|
|
26
26
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.10
|
|
6
|
-
"skillVersion": "2.3.10
|
|
5
|
+
"packageVersion": "2.3.10",
|
|
6
|
+
"skillVersion": "2.3.10",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"references/lovrabet-user-account.md",
|
|
43
43
|
"references/lovrabet-workspace.md"
|
|
44
44
|
],
|
|
45
|
-
"digest": "
|
|
45
|
+
"digest": "4bddbdf38b4cc81bb05d23c697ebf0736cd1d8bcb286f347a4427900de8e5b4a"
|
|
46
46
|
}
|