fix(bailian-kb-dsh): 修正工具数量和agent_id要求描述错误

- 将知识工具数量描述从三个改为两个
- 将agent_id要求从可选改为必需
- 更新bailian-card-controller中credentials引用数量从三个到四个
- 维持失败读取时页面可用和写操作正常工作逻辑
This commit is contained in:
zeyu.fz
2026-08-24 19:01:02 +08:00
parent 491858be4a
commit a28d95a763
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -186,11 +186,11 @@ export const Config: z<Config> = 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.
@@ -177,7 +177,7 @@ export class BailianCardController {
private readonly store: SnapshotStore<BailianCardState>;
/**
* @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<IApiClient, "credentials">) {
this.store = createSnapshotStore<BailianCardState>({
@@ -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.
*/