From a28d95a7638c7959b5de7393a4cfff3434cc9b28 Mon Sep 17 00:00:00 2001 From: "zeyu.fz" Date: Mon, 24 Aug 2026 19:01:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(bailian-kb-dsh):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=95=B0=E9=87=8F=E5=92=8Cagent=5Fid?= =?UTF-8?q?=E8=A6=81=E6=B1=82=E6=8F=8F=E8=BF=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将知识工具数量描述从三个改为两个 - 将agent_id要求从可选改为必需 - 更新bailian-card-controller中credentials引用数量从三个到四个 - 维持失败读取时页面可用和写操作正常工作逻辑 --- packages/bailian-kb-dsh/src/index.ts | 4 ++-- packages/bailian-kb-dsh/src/web/bailian-card-controller.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/bailian-kb-dsh/src/index.ts b/packages/bailian-kb-dsh/src/index.ts index 6489521..c7f3508 100644 --- a/packages/bailian-kb-dsh/src/index.ts +++ b/packages/bailian-kb-dsh/src/index.ts @@ -186,11 +186,11 @@ export const Config: z = z.object({ }); /** - * Register the three knowledge tools over one shared client, plus the + * Register the two knowledge tools over one shared client, plus the * management skill when a skills registry is composed. The Config doubles as * the `bailian-kb` settings section (entry config as the base layer), so * every value is read through the live source thunk per call — tool schemas - * are static (agent_id stays optional regardless), so a settings edit needs + * are static (agent_id stays required regardless), so a settings edit needs * no re-registration. * @param ctx - registrant context carrying tools and credentials. * @param config - deployment's workspace, host, pinning, and timeout choices. diff --git a/packages/bailian-kb-dsh/src/web/bailian-card-controller.ts b/packages/bailian-kb-dsh/src/web/bailian-card-controller.ts index ac8a431..5470fad 100644 --- a/packages/bailian-kb-dsh/src/web/bailian-card-controller.ts +++ b/packages/bailian-kb-dsh/src/web/bailian-card-controller.ts @@ -177,7 +177,7 @@ export class BailianCardController { private readonly store: SnapshotStore; /** - * @param api - wire face used for the three credential references. + * @param api - wire face used for the four credential references. */ constructor(private readonly api: Pick) { this.store = createSnapshotStore({ @@ -625,7 +625,7 @@ export class BailianCardController { } /** - * Ask the credentials domain about all three references and publish the + * Ask the credentials domain about all four references and publish the * answer. A failed read keeps the last known state: the page stays usable * and a write still reaches the Host. */