@aalis/plugin-tools 0.5.1 → 0.5.2

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/dist/tools.d.ts CHANGED
@@ -4,8 +4,8 @@ import type { Logger } from '@aalis/core';
4
4
  /**
5
5
  * 工具注册表 —— 管理 AI 可调用工具的注册、查询、执行
6
6
  *
7
- * 由 plugin-agent-tools 创建并注册为服务 'tools',
8
- * 所有插件通过 ctx.registerTool() 注册工具,通过 ctx.getService<ToolService>('tools') 访问。
7
+ * 由 @aalis/plugin-tools 创建并注册为服务 'tools',
8
+ * 插件通过 useToolService(ctx) 注册与查询工具(服务名 'tools')。
9
9
  *
10
10
  * 与 plugin-commands/CommandRegistry 同属"中心 Registry 模式":
11
11
  * - 单一 Map<name, Registered> 存储,name 全局唯一(重名警告并覆盖)
package/dist/tools.js CHANGED
@@ -2,8 +2,8 @@ import { resolveCapabilityPolicy } from '@aalis/api-authority';
2
2
  /**
3
3
  * 工具注册表 —— 管理 AI 可调用工具的注册、查询、执行
4
4
  *
5
- * 由 plugin-agent-tools 创建并注册为服务 'tools',
6
- * 所有插件通过 ctx.registerTool() 注册工具,通过 ctx.getService<ToolService>('tools') 访问。
5
+ * 由 @aalis/plugin-tools 创建并注册为服务 'tools',
6
+ * 插件通过 useToolService(ctx) 注册与查询工具(服务名 'tools')。
7
7
  *
8
8
  * 与 plugin-commands/CommandRegistry 同属"中心 Registry 模式":
9
9
  * - 单一 Map<name, Registered> 存储,name 全局唯一(重名警告并覆盖)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aalis/plugin-tools",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",
32
32
  "typescript": "^5.7.0",
33
- "@aalis/core": "0.10.0"
33
+ "@aalis/core": "0.10.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@aalis/core": ">=0.2.0 <1.0.0"