@xgjktech/xg-openclaw-harness-tools 0.4.4 → 0.4.6
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/README.md +3 -3
- package/dist/plan-prompt.d.ts +6 -2
- package/dist/plan-prompt.d.ts.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ OpenClaw 第三方工具插件:企业计划工具 `xg_plan_write` / `xg_plan_v
|
|
|
7
7
|
|
|
8
8
|
## 架构裁决:实时事件当前处于事实性休眠(务必先读)
|
|
9
9
|
|
|
10
|
-
**当前 OpenClaw 2026.
|
|
10
|
+
**当前 OpenClaw 8.1(2026.8.1)版本下,实时事件推送链路休眠**:工具 execute/factory 期没有
|
|
11
11
|
正当途径获取真实 runId(详见 `docs/notes-plugin-entry.md` N2),且 0.3.0 已移除工具侧
|
|
12
12
|
`notify.ts`。`xg_plan_write` 落库后不发事件,`xg_plan_view` 全程只读。
|
|
13
13
|
|
|
@@ -22,7 +22,7 @@ OpenClaw 第三方工具插件:企业计划工具 `xg_plan_write` / `xg_plan_v
|
|
|
22
22
|
|
|
23
23
|
## 环境要求
|
|
24
24
|
|
|
25
|
-
- **Node
|
|
25
|
+
- **Node 版本必须满足 OpenClaw 8.1 的范围**:`>=22.22.3 <23 || >=24.15.0 <25 || >=25.9.0`。
|
|
26
26
|
- monorepo 用 npm workspaces。
|
|
27
27
|
|
|
28
28
|
## 安装与构建
|
|
@@ -130,7 +130,7 @@ blocked 带 note、台账≠执行。内容与工具 description 一致,仅抬
|
|
|
130
130
|
|
|
131
131
|
## 部署 checklist
|
|
132
132
|
|
|
133
|
-
- [ ] Node
|
|
133
|
+
- [ ] Node 版本满足 OpenClaw 8.1 的范围
|
|
134
134
|
- [ ] monorepo 构建成功(`xg-shared` 先于本插件构建,workspaces 拓扑自动保证)
|
|
135
135
|
- [ ] 插件已安装且被 OpenClaw 识别为已加载的第三方插件(非 bundled)
|
|
136
136
|
- [ ] `tools.deny` 含 `update_plan`
|
package/dist/plan-prompt.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/** before_prompt_build 在 OpenClaw 8.1 中仍接受该结构,但其旧 types 桶已不再提供声明文件。 */
|
|
2
|
+
type PlanPromptInjectionResult = {
|
|
3
|
+
appendSystemContext: string;
|
|
4
|
+
};
|
|
2
5
|
/**
|
|
3
6
|
* 追加到 agent system prompt 的"主动建计划"纪律(appendSystemContext)。
|
|
4
7
|
* 与 IM 通道的 GroupSystemPrompt 纯叠加不冲突:本段拼在 base systemPrompt 之后。
|
|
@@ -9,5 +12,6 @@ export declare const PLAN_FIRST_SYSTEM_CONTEXT: string;
|
|
|
9
12
|
* before_prompt_build 钩子处理器:向 agent system prompt 追加主动建计划纪律。
|
|
10
13
|
* 返回 void 语义由宿主管控,插件侧始终返回该静态段。
|
|
11
14
|
*/
|
|
12
|
-
export declare function buildPlanPromptInjection():
|
|
15
|
+
export declare function buildPlanPromptInjection(): PlanPromptInjectionResult;
|
|
16
|
+
export {};
|
|
13
17
|
//# sourceMappingURL=plan-prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-prompt.d.ts","sourceRoot":"","sources":["../src/plan-prompt.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"plan-prompt.d.ts","sourceRoot":"","sources":["../src/plan-prompt.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,KAAK,yBAAyB,GAAG;IAC/B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAQ1B,CAAC;AAEb;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,yBAAyB,CAEpE"}
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xgjktech/xg-openclaw-harness-tools",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "企业工具插件:plan_write / plan_view / action_dispatch(OpenClaw 第三方工具插件)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=22.
|
|
8
|
+
"node": ">=22.22.3 <23 || >=24.15.0 <25 || >=25.9.0"
|
|
9
9
|
},
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"prepublishOnly": "npm run build && npm run test"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"typebox": "1.
|
|
32
|
-
"@xgjktech/xg-openclaw-shared": "^0.2.
|
|
31
|
+
"typebox": "1.3.16",
|
|
32
|
+
"@xgjktech/xg-openclaw-shared": "^0.2.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^22.19.0",
|
|
36
|
-
"openclaw": "2026.
|
|
36
|
+
"openclaw": "2026.8.1",
|
|
37
37
|
"typescript": "^5.6.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"openclaw": ">=2026.
|
|
40
|
+
"openclaw": ">=2026.8.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"openclaw": {
|