@zhushanwen/pi-structured-output 5.0.1 → 5.0.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/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-structured-output",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Structured output tool for Pi — enforces JSON Schema via tool call mechanism with Ajv validation",
5
5
  "type": "module",
6
6
  "main": "index.ts",
7
+ "xyz-agent": {
8
+ "role": "universal"
9
+ },
7
10
  "pi": {
8
11
  "extensions": [
9
12
  "./index.ts"
@@ -24,11 +27,12 @@
24
27
  "ajv": "^8.17.0"
25
28
  },
26
29
  "peerDependencies": {
27
- "@earendil-works/pi-coding-agent": "*",
30
+ "@earendil-works/pi-coding-agent": "^0.84.1",
28
31
  "typebox": "*"
29
32
  },
30
33
  "devDependencies": {
31
34
  "@types/node": "^24.0.0",
35
+ "@vitest/coverage-v8": "^4.1.9",
32
36
  "vitest": "^4.1.8"
33
37
  },
34
38
  "scripts": {
@@ -67,7 +67,7 @@ export class RetryState {
67
67
  * 从 tool 执行结果里提取错误文本。
68
68
  *
69
69
  * Pi 框架在 tool execute 抛错时,构造 `{ content: [{ type: "text", text }] }`
70
- * 塞进 result.content[0].text(见 extensions/unified-hooks 的 extractErrorText 及其
70
+ * 塞进 result.content[0].text(见 extensions/universal/unified-hooks 的 extractErrorText 及其
71
71
  * 文档:SDK 事件结构里没有独立 errorMessage 字段,错误文本只能从 result.content 里取)。
72
72
  * 这里防御性取多种结构,取不到就返回 undefined(调用方降级为通用提示)。
73
73
  */