@glodon-aiot/bot-client-ui 3.26.0-alpha.21 → 3.26.0-alpha.23

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/README.md CHANGED
@@ -84,7 +84,7 @@ new BotClientUI({
84
84
  | ------- | ------------- | ---- | ------ | ----------------------------------------------------------------------------------------------------------------- |
85
85
  | plugins | PluginsConfig | 否 | - | Agent 应用适用。<br/>插件列表,`pluginCode`与`functionCode`要与平台中注册的插件标识和 API 名称保持一致 |
86
86
  | mcp | McpConfig | 否 | - | Agent 应用适用。<br/>这里注册的 MCP 作用到每个会话中。<br/>如果希望特定会话才可注册 MCP,则在会话加载后动态注册。 |
87
- | builtinPlugins | `{ localFiles?: LocalFilesConfig }` | 否 | - | Agent 应用适用。<br/>工作区、命令和技能工具注册到平台插件 `builtin_tools`,不用传 `pluginCode`。开启 `localFiles` 后对话左侧出现工作区目录树,详见[本地工作文件夹接入说明](./docs/local-workspace-integration.md) |
87
+ | builtinPlugins | `{ localFiles?: LocalFilesConfig; localPython?: LocalPythonConfig }` | 否 | - | Agent 应用适用。<br/>文件工具和 `run_python` 注册到平台插件 `buildin_tools`,不用传 `pluginCode`。开启 `localFiles` 后对话左侧出现工作区目录树,详见[本地工作文件夹接入说明](./docs/local-workspace-integration.md) |
88
88
 
89
89
  # BotClientUI 实例 API
90
90
 
@@ -391,7 +391,7 @@ new BotClientUI({
391
391
 
392
392
  ## 本地工作文件夹
393
393
 
394
- 开启内置插件后,Agent 可在用户授权的本地文件夹内读取、搜索、修改文件,并在端侧宿主里执行命令和技能脚本。工具注册在平台插件 `builtin_tools` 里,不用传 `pluginCode`。
394
+ 开启内置插件后,Agent 可在用户授权的本地文件夹内读取、搜索、修改文件,并与当前会话互相传输文件。写入与传输前会弹窗确认。文件工具和 `run_python` 都在平台插件 `buildin_tools` 里,不用传 `pluginCode`,也不用再配「本地 Python 脚本」或 `local_files`。
395
395
 
396
396
  ```ts
397
397
  new BotClientUI({
@@ -399,6 +399,8 @@ new BotClientUI({
399
399
  env: 'dev',
400
400
  builtinPlugins: {
401
401
  localFiles: { enabled: true },
402
+ // run_python 只在 host-bridge 下可用,网页选目录时不要启用
403
+ // localPython: { enabled: true },
402
404
  },
403
405
  });
404
406
  ```