@faapi/schema 7.3.0 → 7.3.1

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @faapi/schema
2
2
 
3
+ ## 7.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f0adb22: agentToolContext 契约边界收紧:关闭 `declare module` 增强,裸标注 ctx 合法不校验
8
+
9
+ - `AgentToolContext` 由 interface 改为 type alias:业务侧 `declare module` 增强声明编译报 TS2300(同名重复标识符)。业务字段唯一通道是**交叉标注业务校验类型**(`ctx: OrderCtx & AgentToolContext`,路径依赖字段用可选字段 `?:` 表达);`FaapiContext` / `WsContext` 的业务扩展面增强不受影响。已用增强的项目迁移:把增强字段挪进业务校验类型,读取点改交叉标注
10
+ - tool handler 第二参裸标注 `ctx: AgentToolContext` 合法:不生成 ctx schema、不校验(框架字段运行时恒注入),修复原按类型名误生成 `AgentToolContextSchema` / 构建期报错的行为
11
+
3
12
  ## 7.3.0
4
13
 
5
14
  ## 7.2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faapi/schema",
3
- "version": "7.3.0",
3
+ "version": "7.3.1",
4
4
  "description": "Schema introspection for faapi — expose API schema to AI assistants via MCP",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,14 +26,14 @@
26
26
  "typescript": "^5.7.0",
27
27
  "vitest": "^5.0.3",
28
28
  "zod": "^4.4.3",
29
- "@faapi/faapi": "7.3.0",
30
- "@faapi/mcp": "7.3.0"
29
+ "@faapi/faapi": "7.3.1",
30
+ "@faapi/mcp": "7.3.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "typescript": ">=5.7.0",
34
34
  "zod": "^4.4.3",
35
- "@faapi/faapi": "^7.3.0",
36
- "@faapi/mcp": "^7.3.0"
35
+ "@faapi/faapi": "^7.3.1",
36
+ "@faapi/mcp": "^7.3.1"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "typescript": {