@zhushanwen/pi-pending-notifications 0.7.3 → 0.7.4
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 +2 -2
- package/src/index.ts +1 -1
- package/src/state.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-pending-notifications",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Cross-extension async operation registration/query mechanism for Pi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typebox": "*"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@
|
|
36
|
+
"@zhushanwen/extension-protocol": "0.11.0",
|
|
37
37
|
"@zhushanwen/pi-extension-logger": "0.6.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
package/src/index.ts
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
39
|
-
import { mapReasonToStatus as mapReasonToStatusImpl } from "@
|
|
39
|
+
import { mapReasonToStatus as mapReasonToStatusImpl } from "@zhushanwen/extension-protocol";
|
|
40
40
|
import { getLogger } from "@zhushanwen/pi-extension-logger";
|
|
41
41
|
import { Type } from "typebox";
|
|
42
42
|
|
package/src/state.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* 设计要点:
|
|
11
11
|
* - 差集规则本体(register 首见去重 + unregister 全局抵消 + id 非法跳过)单点在
|
|
12
|
-
* @
|
|
12
|
+
* @zhushanwen/extension-protocol 的 pending-entries(与 bte 对账同源消费,
|
|
13
13
|
* ext-simplify-13 E6);本文件在其上只保留 pending 产品语义:类型归一 /
|
|
14
14
|
* opts.types / currentSessionId 过滤与写侧判定
|
|
15
15
|
* - session entries 是唯一状态源,本文件无内存状态(历史的内存 registry、session_start
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* 对齐 goal continuation 守卫语义);历史 session 文件中遗留的带 expiresAt 的
|
|
21
21
|
* register entry 无需迁移——差集语义不读该键
|
|
22
22
|
*/
|
|
23
|
-
import { applyPendingDiff, scanPendingEntries } from "@
|
|
23
|
+
import { applyPendingDiff, scanPendingEntries } from "@zhushanwen/extension-protocol";
|
|
24
24
|
|
|
25
25
|
/** 异步操作类型(来源:workflow / subagent / bash 后台任务) */
|
|
26
26
|
export type PendingType = "workflow" | "subagent" | "bash";
|