@lovrabet/lovrabet-cli 2.3.10-beta.2 → 2.3.10-beta.3
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_0x57d09c=a176_0xca09;function a176_0xca09(_0x13e93e,_0x5a8aab){_0x13e93e=_0x13e93e-0xfb;const _0xf34e5e=a176_0xf34e();let _0xca0965=_0xf34e5e[_0x13e93e];return _0xca0965;}(function(_0x30052f,_0x25e2e4){const _0x1565ca=a176_0xca09,_0x517121=_0x30052f();while(!![]){try{const _0x39067c=-parseInt(_0x1565ca(0x10f))/0x1+-parseInt(_0x1565ca(0x112))/0x2*(parseInt(_0x1565ca(0x101))/0x3)+parseInt(_0x1565ca(0x103))/0x4*(-parseInt(_0x1565ca(0x102))/0x5)+-parseInt(_0x1565ca(0x100))/0x6+parseInt(_0x1565ca(0x107))/0x7*(parseInt(_0x1565ca(0x110))/0x8)+-parseInt(_0x1565ca(0x109))/0x9*(-parseInt(_0x1565ca(0x108))/0xa)+parseInt(_0x1565ca(0x10d))/0xb*(parseInt(_0x1565ca(0xfe))/0xc);if(_0x39067c===_0x25e2e4)break;else _0x517121['push'](_0x517121['shift']());}catch(_0x22e56d){_0x517121['push'](_0x517121['shift']());}}}(a176_0xf34e,0xd7ab5));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a176_0x57d09c(0x105)]),MIN_SAFE_INTEGER=BigInt(Number[a176_0x57d09c(0xfb)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a176_0xf34e(){const _0x6fc1b2=['59140lixPUJ','2142mRoBPt','parse','getOwnPropertyDescriptor','json','3791304vStGHC','exec','923461zBLabF','8bPaAYh','includes','534398uqPDbp','MIN_SAFE_INTEGER','defineProperty','text','48fvRmfs','length','5667354jxFyhI','6KmwMSN','25115FiMdAw','220eoNpHb','prototype','MAX_SAFE_INTEGER','slice','5431132Idtqzf'];a176_0xf34e=function(){return _0x6fc1b2;};return a176_0xf34e();}function isUnsafeIntegerLiteral(_0x544c53){const _0x405c1b=a176_0x57d09c;if(_0x544c53['includes']('.')||_0x544c53['includes']('e')||_0x544c53[_0x405c1b(0x111)]('E'))return![];const _0xf87ded=BigInt(_0x544c53);return _0xf87ded>MAX_SAFE_INTEGER||_0xf87ded<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x18b251){const _0x223278=a176_0x57d09c;let _0x39c0b5='',_0x18eac7=![],_0x2dfa9a=![];for(let _0x1eaee6=0x0;_0x1eaee6<_0x18b251['length'];){const _0x1234fe=_0x18b251[_0x1eaee6];if(_0x18eac7){_0x39c0b5+=_0x1234fe,_0x1eaee6+=0x1;if(_0x2dfa9a)_0x2dfa9a=![];else{if(_0x1234fe==='\x5c')_0x2dfa9a=!![];else _0x1234fe==='\x22'&&(_0x18eac7=![]);}continue;}if(_0x1234fe==='\x22'){_0x18eac7=!![],_0x39c0b5+=_0x1234fe,_0x1eaee6+=0x1;continue;}if(_0x1234fe==='-'||_0x1234fe>='0'&&_0x1234fe<='9'){const _0x524d20=JSON_NUMBER_PATTERN[_0x223278(0x10e)](_0x18b251[_0x223278(0x106)](_0x1eaee6))?.[0x0];if(_0x524d20){_0x39c0b5+=isUnsafeIntegerLiteral(_0x524d20)?'\x22'+_0x524d20+'\x22':_0x524d20,_0x1eaee6+=_0x524d20[_0x223278(0xff)];continue;}}_0x39c0b5+=_0x1234fe,_0x1eaee6+=0x1;}return _0x39c0b5;}export function parseLosslessJson(_0x37ce5f){const _0x29ee15=a176_0x57d09c;return JSON[_0x29ee15(0x10a)](quoteUnsafeIntegerLiterals(_0x37ce5f));}export function installLosslessJsonResponseParser(){const _0xc567b9=a176_0x57d09c;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0xc567b9(0x104)],originalResponseJsonDescriptor=Object[_0xc567b9(0x10b)](responseJsonPrototype,'json'),Object[_0xc567b9(0xfc)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x4abb53(){const _0x488045=_0xc567b9;return parseLosslessJson(await this[_0x488045(0xfd)]());}}),restoreResponseJsonParser=()=>{const _0xd5aa3c=_0xc567b9;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0xd5aa3c(0x10c)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x471731,_0x58d046){const _0x2207ba=a177_0x588f,_0x503d3b=_0x471731();while(!![]){try{const _0x1eb547=-parseInt(_0x2207ba(0xaf))/0x1+-parseInt(_0x2207ba(0xa7))/0x2*(parseInt(_0x2207ba(0xb8))/0x3)+-parseInt(_0x2207ba(0xbe))/0x4*(-parseInt(_0x2207ba(0xb4))/0x5)+-parseInt(_0x2207ba(0xae))/0x6+parseInt(_0x2207ba(0xba))/0x7*(-parseInt(_0x2207ba(0xc6))/0x8)+-parseInt(_0x2207ba(0xa8))/0x9*(parseInt(_0x2207ba(0xc1))/0xa)+parseInt(_0x2207ba(0xad))/0xb*(parseInt(_0x2207ba(0xbc))/0xc);if(_0x1eb547===_0x58d046)break;else _0x503d3b['push'](_0x503d3b['shift']());}catch(_0x26cf90){_0x503d3b['push'](_0x503d3b['shift']());}}}(a177_0x5330,0xa661f));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x3e0741){const _0x293a1b=a177_0x588f;if(!_0x3e0741)return undefined;try{return parseLosslessJson(_0x3e0741);}catch{throw CliErrors['validation'](_0x293a1b(0xc3)+_0x3e0741);}}export function parseJsonParamsValue(_0x31ef40){const _0x5ade60=a177_0x588f;if(!_0x31ef40)return undefined;try{return parseLosslessJson(_0x31ef40);}catch{throw CliErrors[_0x5ade60(0xb7)](_0x5ade60(0xc3)+_0x31ef40);}}function a177_0x5330(){const _0x599c7c=['3924333ZVEEQR','join','9804NzblgM','isSafeInteger','4hnbByr','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','10DKrbMO','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','Invalid\x20JSON\x20for\x20--params:\x20','test','isArray','16GaZkdY','items','60392FutoJe','9854919VlEXAp','data\x20update\x20can\x20update\x20at\x20most\x20','object','data\x20update\x20--params.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','61743HIMlgv','7129872QmkcZC','286666xpxdoY','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','string','number','length','1501105bGMYLB','map','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','validation','51xMlnsr','\x20records\x20per\x20call;\x20received\x20'];a177_0x5330=function(){return _0x599c7c;};return a177_0x5330();}export function parseBatchCreateItemsFromParams(_0x56ade2){const _0x2456ae=a177_0x588f;if(Array[_0x2456ae(0xc5)](_0x56ade2))return _0x56ade2;if(_0x56ade2!==null&&_0x56ade2!==undefined&&typeof _0x56ade2===_0x2456ae(0xaa)&&Array[_0x2456ae(0xc5)](_0x56ade2[_0x2456ae(0xc7)]))return _0x56ade2[_0x2456ae(0xc7)];throw CliErrors['validation'](_0x2456ae(0xb6),_0x2456ae(0xc0));}function parseDataUpdateId(_0x9e84d2,_0x56ef43){const _0x58e91f=a177_0x588f;if(typeof _0x9e84d2===_0x58e91f(0xb2)&&Number[_0x58e91f(0xbd)](_0x9e84d2)&&_0x9e84d2>0x0)return _0x9e84d2;if(typeof _0x9e84d2===_0x58e91f(0xb1)){if(/^[1-9]\d*$/[_0x58e91f(0xc4)](_0x9e84d2))return _0x9e84d2;}throw CliErrors[_0x58e91f(0xb7)](_0x58e91f(0xab)+_0x56ef43+_0x58e91f(0xac));}function a177_0x588f(_0x2bd4bf,_0xedafb5){_0x2bd4bf=_0x2bd4bf-0xa7;const _0x5330d2=a177_0x5330();let _0x588f85=_0x5330d2[_0x2bd4bf];return _0x588f85;}export function parseUpdateIdsFromParams(_0x407992){const _0x14db23=a177_0x588f;if(_0x407992===null||_0x407992===undefined||typeof _0x407992!=='object'||Array['isArray'](_0x407992))throw CliErrors['validation'](_0x14db23(0xb0),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x257642=_0x407992['id'];if(_0x257642===undefined||_0x257642===null)throw CliErrors[_0x14db23(0xb7)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x14db23(0xc2));const _0x2f6d99=Array[_0x14db23(0xc5)](_0x257642)?_0x257642:[_0x257642];if(_0x2f6d99[_0x14db23(0xb3)]===0x0)throw CliErrors[_0x14db23(0xb7)](_0x14db23(0xbf));if(_0x2f6d99[_0x14db23(0xb3)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x14db23(0xb7)](_0x14db23(0xa9)+MAX_DATA_UPDATE_IDS+_0x14db23(0xb9)+_0x2f6d99[_0x14db23(0xb3)]+'.');return _0x2f6d99[_0x14db23(0xb5)]((_0x43e180,_0x31cf16)=>parseDataUpdateId(_0x43e180,Array[_0x14db23(0xc5)](_0x257642)?'id['+_0x31cf16+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x89effa,_0x55c557){const _0x5f1acc=a177_0x588f;if(Array[_0x5f1acc(0xc5)](_0x89effa['id'])&&_0x55c557['length']>0x1)return{..._0x89effa,'id':_0x55c557[_0x5f1acc(0xbb)](',')};return _0x89effa;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a178_0x1943(_0x22b96c,_0x1a4b2f){_0x22b96c=_0x22b96c-0x137;const _0x2879c7=a178_0x2879();let _0x194365=_0x2879c7[_0x22b96c];return _0x194365;}(function(_0x301c3c,_0x44ec89){const _0x45f8cc=a178_0x1943,_0x58582a=_0x301c3c();while(!![]){try{const _0xb0da40=-parseInt(_0x45f8cc(0x138))/0x1*(parseInt(_0x45f8cc(0x137))/0x2)+parseInt(_0x45f8cc(0x13f))/0x3+parseInt(_0x45f8cc(0x140))/0x4+-parseInt(_0x45f8cc(0x13e))/0x5+parseInt(_0x45f8cc(0x139))/0x6+-parseInt(_0x45f8cc(0x13d))/0x7*(parseInt(_0x45f8cc(0x142))/0x8)+parseInt(_0x45f8cc(0x13c))/0x9;if(_0xb0da40===_0x44ec89)break;else _0x58582a['push'](_0x58582a['shift']());}catch(_0x18ffba){_0x58582a['push'](_0x58582a['shift']());}}}(a178_0x2879,0x55751));export function normalizePositiveSafeInteger(_0x4b6f3f){const _0x4cc79f=a178_0x1943;if(typeof _0x4b6f3f===_0x4cc79f(0x141))return Number[_0x4cc79f(0x13a)](_0x4b6f3f)&&_0x4b6f3f>0x0?_0x4b6f3f:undefined;if(typeof _0x4b6f3f!==_0x4cc79f(0x13b)||!/^\d+$/[_0x4cc79f(0x143)](_0x4b6f3f))return undefined;const _0x55a133=Number(_0x4b6f3f);return Number[_0x4cc79f(0x13a)](_0x55a133)&&_0x55a133>0x0?_0x55a133:undefined;}function a178_0x2879(){const _0x2a7157=['3441775qiwgvw','214986yySjmj','2620112MzPvcV','number','8MwiSlC','test','132yOcSLb','5704xCqDEL','2931498JiykgD','isSafeInteger','string','1939293veQUYM','111286UekbNe'];a178_0x2879=function(){return _0x2a7157;};return a178_0x2879();}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x369b4c=a179_0x1209;(function(_0x1efacb,_0x10a2ac){const _0x33aba1=a179_0x1209,_0x39a76e=_0x1efacb();while(!![]){try{const _0x109ba9=parseInt(_0x33aba1(0x168))/0x1+parseInt(_0x33aba1(0x161))/0x2*(-parseInt(_0x33aba1(0x163))/0x3)+parseInt(_0x33aba1(0x151))/0x4*(-parseInt(_0x33aba1(0x15a))/0x5)+parseInt(_0x33aba1(0x160))/0x6+-parseInt(_0x33aba1(0x164))/0x7*(-parseInt(_0x33aba1(0x152))/0x8)+parseInt(_0x33aba1(0x157))/0x9*(parseInt(_0x33aba1(0x153))/0xa)+-parseInt(_0x33aba1(0x169))/0xb;if(_0x109ba9===_0x10a2ac)break;else _0x39a76e['push'](_0x39a76e['shift']());}catch(_0x3cf61f){_0x39a76e['push'](_0x39a76e['shift']());}}}(a179_0x4d4d,0x4b2a7));const REDACTED_VALUE=a179_0x369b4c(0x158),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set(['comment',a179_0x369b4c(0x156)]),SENSITIVE_VALUE_KEYS=new Set([a179_0x369b4c(0x15c)]);export function isSensitiveKey(_0x22767c){const _0x568c52=a179_0x369b4c,_0x722a6c=_0x22767c[_0x568c52(0x15e)](/_/g,'-')[_0x568c52(0x155)]();return SENSITIVE_KEY_PATTERN[_0x568c52(0x15d)](_0x722a6c);}export function isSensitiveFlagName(_0x364cd6){const _0x2367f0=a179_0x369b4c,_0x59aed5=_0x364cd6[_0x2367f0(0x15e)](/_/g,'-')[_0x2367f0(0x155)]();return isSensitiveKey(_0x59aed5)||SENSITIVE_FLAG_NAMES[_0x2367f0(0x154)](_0x59aed5);}function a179_0x1209(_0x478f3f,_0x26af85){_0x478f3f=_0x478f3f-0x151;const _0x4d4dc7=a179_0x4d4d();let _0x1209b7=_0x4d4dc7[_0x478f3f];return _0x1209b7;}function a179_0x4d4d(){const _0x48f887=['7255HMCglY','match','comment','test','replace','entries','3682584CAyyhu','237464geQsDB','object','9PsEkmU','3353YRVomd','isArray','push','fromEntries','215695ATPjRR','1910447lzfWxa','812bRSTOA','136TEtRUV','2947030fGXIMn','has','toLowerCase','variables','9rUIjEi','[REDACTED]','map'];a179_0x4d4d=function(){return _0x48f887;};return a179_0x4d4d();}function redactVariableValues(_0x186ec6){const _0x2ff5d8=a179_0x369b4c;if(Array[_0x2ff5d8(0x165)](_0x186ec6))return _0x186ec6[_0x2ff5d8(0x159)](_0x2799b4=>redactVariableValues(_0x2799b4));if(_0x186ec6&&typeof _0x186ec6===_0x2ff5d8(0x162))return Object[_0x2ff5d8(0x167)](Object[_0x2ff5d8(0x15f)](_0x186ec6)[_0x2ff5d8(0x159)](([_0x312c62,_0x11c354])=>[_0x312c62,redactVariableValues(_0x11c354)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x1223f3){const _0x4aa795=a179_0x369b4c;if(Array[_0x4aa795(0x165)](_0x1223f3))return _0x1223f3[_0x4aa795(0x159)](_0x2a49dd=>redactSensitiveValue(_0x2a49dd));if(!_0x1223f3||typeof _0x1223f3!==_0x4aa795(0x162))return _0x1223f3;const _0x480222={};for(const [_0x523bed,_0x86a087]of Object[_0x4aa795(0x15f)](_0x1223f3)){const _0x42f48b=_0x523bed['replace'](/_/g,'-')[_0x4aa795(0x155)]();_0x480222[_0x523bed]=_0x42f48b==='variables'?redactVariableValues(_0x86a087):SENSITIVE_VALUE_KEYS['has'](_0x42f48b)||isSensitiveKey(_0x523bed)?REDACTED_VALUE:redactSensitiveValue(_0x86a087);}return _0x480222;}export function redactCommandArgv(_0x3f06ed){const _0x43c31e=a179_0x369b4c,_0x532378=[];let _0x44b479=![];for(const _0x5c89ea of _0x3f06ed){if(_0x44b479){_0x532378[_0x43c31e(0x166)](REDACTED_VALUE),_0x44b479=![];continue;}const _0x582fd6=_0x5c89ea[_0x43c31e(0x15b)](/^--([^=]+)(?:=(.*))?$/);if(!_0x582fd6||!isSensitiveFlagName(_0x582fd6[0x1]??'')){_0x532378[_0x43c31e(0x166)](_0x5c89ea);continue;}_0x532378[_0x43c31e(0x166)]('--'+_0x582fd6[0x1]+(_0x582fd6[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x582fd6[0x2]===undefined&&(_0x44b479=!![]);}return _0x532378;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a180_0x38e0(_0xb2535e,_0x36751b){_0xb2535e=_0xb2535e-0x1a5;const _0x18875d=a180_0x1887();let _0x38e02=_0x18875d[_0xb2535e];return _0x38e02;}(function(_0x41ab49,_0x29031a){const _0x27cac3=a180_0x38e0,_0x19078b=_0x41ab49();while(!![]){try{const _0x150653=parseInt(_0x27cac3(0x1a7))/0x1*(parseInt(_0x27cac3(0x1aa))/0x2)+parseInt(_0x27cac3(0x1b3))/0x3+parseInt(_0x27cac3(0x1b2))/0x4*(parseInt(_0x27cac3(0x1ae))/0x5)+parseInt(_0x27cac3(0x1a5))/0x6*(-parseInt(_0x27cac3(0x1b0))/0x7)+-parseInt(_0x27cac3(0x1b4))/0x8+parseInt(_0x27cac3(0x1b1))/0x9+-parseInt(_0x27cac3(0x1ad))/0xa*(parseInt(_0x27cac3(0x1ac))/0xb);if(_0x150653===_0x29031a)break;else _0x19078b['push'](_0x19078b['shift']());}catch(_0x329987){_0x19078b['push'](_0x19078b['shift']());}}}(a180_0x1887,0x8e96a));export function normalizeRuntimeUserId(_0x312a69){const _0x4fe225=a180_0x38e0;if(typeof _0x312a69===_0x4fe225(0x1af))return Number[_0x4fe225(0x1a6)](_0x312a69)&&_0x312a69>0x0?String(_0x312a69):undefined;if(typeof _0x312a69!==_0x4fe225(0x1a8)||!/^\d+$/[_0x4fe225(0x1a9)](_0x312a69))return undefined;const _0x5930d8=_0x312a69[_0x4fe225(0x1ab)](/^0+/,'');return _0x5930d8||undefined;}function a180_0x1887(){const _0x12a503=['15722USJwJy','10280421TyEHWY','2819420tGJifr','2941329oAXLCe','8399280MRDPZH','2796MaIGMi','isSafeInteger','2eGfVxk','string','test','1167076PutoNz','replace','390665VVGUOT','370EYHeHZ','5mwXPFG','number'];a180_0x1887=function(){return _0x12a503;};return a180_0x1887();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a58a2,_0x52c614){const _0x2edcd5=a181_0x3983,_0x597e76=_0x1a58a2();while(!![]){try{const _0x207888=parseInt(_0x2edcd5(0x1a5))/0x1+-parseInt(_0x2edcd5(0x195))/0x2*(parseInt(_0x2edcd5(0x199))/0x3)+parseInt(_0x2edcd5(0x1a2))/0x4*(-parseInt(_0x2edcd5(0x19e))/0x5)+-parseInt(_0x2edcd5(0x190))/0x6*(parseInt(_0x2edcd5(0x19b))/0x7)+parseInt(_0x2edcd5(0x1a0))/0x8+-parseInt(_0x2edcd5(0x18b))/0x9+parseInt(_0x2edcd5(0x198))/0xa*(parseInt(_0x2edcd5(0x191))/0xb);if(_0x207888===_0x52c614)break;else _0x597e76['push'](_0x597e76['shift']());}catch(_0x539f2e){_0x597e76['push'](_0x597e76['shift']());}}}(a181_0x3530,0x9d704));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_0x3983(_0x2c3e29,_0x2707c1){_0x2c3e29=_0x2c3e29-0x186;const _0x353011=a181_0x3530();let _0x39837f=_0x353011[_0x2c3e29];return _0x39837f;}const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5441fe=a181_0x3983,_0x4aacdb=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x5441fe(0x192)]();return _0x4aacdb==='1'||_0x4aacdb===_0x5441fe(0x19d)||_0x4aacdb===_0x5441fe(0x19f);}function cacheRoot(){const _0x187fb6=a181_0x3983;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x187fb6(0x188));}export function getUpdateNoticeCachePath(){const _0x349a95=a181_0x3983;return join(cacheRoot(),_0x349a95(0x19a),_0x349a95(0x1a3));}async function readUpdateNoticeCache(){const _0x2d1070=a181_0x3983;try{const _0x3a5358=await readFile(getUpdateNoticeCachePath(),_0x2d1070(0x19c)),_0x9ab9be=JSON[_0x2d1070(0x18f)](_0x3a5358);if(!_0x9ab9be||typeof _0x9ab9be!=='object')return{};return _0x9ab9be;}catch{return{};}}async function writeUpdateNoticeCache(_0x3fcb83){const _0x46dc65=a181_0x3983;try{const _0x3a38ad=getUpdateNoticeCachePath();await mkdir(dirname(_0x3a38ad),{'recursive':!![]}),await writeFile(_0x3a38ad,JSON[_0x46dc65(0x186)](_0x3fcb83,null,0x2)+'\x0a',_0x46dc65(0x19c));}catch{}}function a181_0x3530(){const _0x54eec9=['lastNotifiedVersion','958799ABbKci','stringify','currentVersion','.cache','needsUpgrade','upgradeMessage','9443511kYNvOW','lastNotifiedAt','https://www.npmjs.com/package/','number','parse','4263126pozWLU','345004UyvAUb','toLowerCase','stableVersion','/v/','2214722mfFEvN','join','belowMinimum','1070VxPSCu','3GSIcHv','lovrabet-cli','7WPfYqK','utf8','true','10465NjKCco','yes','727944dDbSAN','now','1708YRSkhD','update-check.json'];a181_0x3530=function(){return _0x54eec9;};return a181_0x3530();}function isRecentlyNotified(_0x50666a,_0x18a541,_0x50de75){const _0x4f1be6=a181_0x3983;return _0x50666a[_0x4f1be6(0x1a4)]===_0x18a541&&typeof _0x50666a[_0x4f1be6(0x18c)]===_0x4f1be6(0x18e)&&_0x50de75-_0x50666a['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x248abc){const _0x598278=a181_0x3983;return _0x598278(0x18d)+LOVRABET_NPM_PACKAGE_NAME+_0x598278(0x194)+_0x248abc;}export async function resolveLatestUpdateNotice(_0x3daba9){const _0x21d4f6=a181_0x3983;if(isUpdateNoticeDisabled())return null;try{const _0x77fc30=Date[_0x21d4f6(0x1a1)](),_0x1b7a99=_0x3daba9??await checkCliVersion(),_0xea449=_0x1b7a99[_0x21d4f6(0x187)],_0x536143=_0x1b7a99[_0x21d4f6(0x193)],_0x213889=await readUpdateNoticeCache();if(!_0x536143||!_0x1b7a99[_0x21d4f6(0x189)]||_0x1b7a99[_0x21d4f6(0x197)])return null;if(isRecentlyNotified(_0x213889,_0x536143,_0x77fc30))return null;const _0x1af54f=getCliUpgradeCommand(_0x1b7a99);return await writeUpdateNoticeCache({..._0x213889,'checkedAt':_0x77fc30,'latest':_0x536143,'failed':![],'lastNotifiedVersion':_0x536143,'lastNotifiedAt':_0x77fc30}),{'command':_0x1af54f,'current':_0xea449,'latest':_0x536143,'url':buildNpmVersionUrl(_0x536143),'message':[_0x1b7a99[_0x21d4f6(0x18a)],CLI_BIN_NAME+'\x20'+_0x536143+'\x20is\x20recommended,\x20current\x20'+_0xea449+',\x20run:\x20'+_0x1af54f]['filter'](Boolean)[_0x21d4f6(0x196)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e545b,_0x2833e7){const _0x42fb67=a182_0x1359,_0x6741d5=_0x3e545b();while(!![]){try{const _0x5d388e=parseInt(_0x42fb67(0x9a))/0x1+parseInt(_0x42fb67(0x9e))/0x2+parseInt(_0x42fb67(0x9d))/0x3+-parseInt(_0x42fb67(0xa3))/0x4*(parseInt(_0x42fb67(0x9c))/0x5)+parseInt(_0x42fb67(0xa1))/0x6*(-parseInt(_0x42fb67(0xa0))/0x7)+-parseInt(_0x42fb67(0x98))/0x8*(parseInt(_0x42fb67(0xa2))/0x9)+parseInt(_0x42fb67(0x99))/0xa;if(_0x5d388e===_0x2833e7)break;else _0x6741d5['push'](_0x6741d5['shift']());}catch(_0x2b32b0){_0x6741d5['push'](_0x6741d5['shift']());}}}(a182_0x2d85,0xbb0d7));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a182_0x2d85(){const _0x3d422c=['3550191OqLKMQ','496106ZzuCXk','slice','266GlvUNV','24438edMeDi','27CKHVFo','1484536nBaYWX','2156072lCEbiP','14105280rlnAoC','892vmSoyU','unknown','15ORZsGy'];a182_0x2d85=function(){return _0x3d422c;};return a182_0x2d85();}function a182_0x1359(_0x861481,_0x452d74){_0x861481=_0x861481-0x98;const _0x2d85b3=a182_0x2d85();let _0x135978=_0x2d85b3[_0x861481];return _0x135978;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x2e22c6=a182_0x1359,_0x5254ed=String(GIT_COMMIT);return _0x5254ed&&_0x5254ed!==_0x2e22c6(0x9b)?_0x5254ed:'';}export function getCliVersionDisplay(){const _0x4fc463=a182_0x1359,_0x3cb79b=getCliGitCommit(),_0x11afbf=BUILD_TIME[_0x4fc463(0x9f)](0x0,0xa);if(!_0x3cb79b||!_0x11afbf)return VERSION;return VERSION+'\x20('+_0x3cb79b+',\x20'+_0x11afbf+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a183_0x56e7(_0x193088,_0x52854c){_0x193088=_0x193088-0x11e;var _0x5332a0=a183_0x5332();var _0x56e7d1=_0x5332a0[_0x193088];return _0x56e7d1;}(function(_0x4efb90,_0x561d16){var _0x18af6b=a183_0x56e7,_0x56ae45=_0x4efb90();while(!![]){try{var _0x1fdde8=-parseInt(_0x18af6b(0x120))/0x1+parseInt(_0x18af6b(0x11f))/0x2+-parseInt(_0x18af6b(0x124))/0x3+-parseInt(_0x18af6b(0x126))/0x4+-parseInt(_0x18af6b(0x11e))/0x5+parseInt(_0x18af6b(0x127))/0x6*(parseInt(_0x18af6b(0x121))/0x7)+parseInt(_0x18af6b(0x122))/0x8;if(_0x1fdde8===_0x561d16)break;else _0x56ae45['push'](_0x56ae45['shift']());}catch(_0x49c23e){_0x56ae45['push'](_0x56ae45['shift']());}}}(a183_0x5332,0x35dd6));function a183_0x5332(){var _0x2d7618=['344481LvQCIl','stderr','651612FvNuwr','66cLFNmJ','2150HQBFkz','699910pjqSvY','252979MzITYq','95221UaxCBv','2017448WopDIW','write'];a183_0x5332=function(){return _0x2d7618;};return a183_0x5332();}export function writeCliSideChannelLine(_0x4b3623){var _0x4e45e9=a183_0x56e7;process[_0x4e45e9(0x125)][_0x4e45e9(0x123)](_0x4b3623+'\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-beta.
|
|
4
|
+
version: 2.3.10-beta.3
|
|
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-beta.
|
|
6
|
-
"skillVersion": "2.3.10-beta.
|
|
5
|
+
"packageVersion": "2.3.10-beta.3",
|
|
6
|
+
"skillVersion": "2.3.10-beta.3",
|
|
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": "5b20f4b22c236b98a29de59a08aa21f0e00dc0d3acda4370dda05d07b04f5050"
|
|
46
46
|
}
|