@zhushanwen/pi-session-manager 0.1.14 → 0.1.16
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-session-manager",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Pi extension for managing agent-managed sessions — create, send, read history, list, status, abort via ctx.ui.select channel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zhushanwen/extension-protocol": "0.
|
|
29
|
+
"@zhushanwen/extension-protocol": "0.15.0",
|
|
30
30
|
"@zhushanwen/pi-extension-logger": "0.6.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -80,15 +80,16 @@ describe("U5-A3 tool-schema", () => {
|
|
|
80
80
|
});
|
|
81
81
|
|
|
82
82
|
describe("list_my_sessions", () => {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
it("has no required parameters", () => {
|
|
84
|
+
const s = schemas.list_my_sessions;
|
|
85
|
+
expect(s.type).toBe("object");
|
|
86
|
+
// TypeBox 对空 Object 省略 required 键(探针核实:Type.Object({}) →
|
|
87
|
+
// { type:"object", properties:{} },无 required 字段)——「无必填参数」语义 =
|
|
88
|
+
// required 缺省或空数组,二者都必须被断言覆盖(原 if 条件断言在缺省形态下
|
|
89
|
+
// 零断言执行,永不失败)
|
|
90
|
+
const required = s.required as string[] | undefined;
|
|
91
|
+
expect(required ?? []).toHaveLength(0);
|
|
92
|
+
});
|
|
92
93
|
});
|
|
93
94
|
|
|
94
95
|
describe("get_session_status", () => {
|