page-action-cache 2026.3.6 → 2026.3.7
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/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Page Action Cache - OpenClaw Extension
|
|
3
|
-
* 页面操作缓存扩展
|
|
3
|
+
* 页面操作缓存扩展
|
|
4
4
|
*/
|
|
5
5
|
interface OpenClawPluginApi {
|
|
6
6
|
registerTool(tool: {
|
|
7
7
|
name: string;
|
|
8
|
+
label: string;
|
|
8
9
|
description: string;
|
|
9
|
-
|
|
10
|
-
execute: (params: unknown) => Promise<unknown>;
|
|
10
|
+
parameters: unknown;
|
|
11
|
+
execute: (toolCallId: string, params: unknown) => Promise<unknown>;
|
|
11
12
|
}): void;
|
|
12
13
|
}
|
|
13
14
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,UAAU,iBAAiB;IACzB,YAAY,CAAC,IAAI,EAAE;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,UAAU,iBAAiB;IACzB,YAAY,CAAC,IAAI,EAAE;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,OAAO,CAAC;QACpB,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;KACpE,GAAG,IAAI,CAAC;CACV;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAqB7D"}
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Page Action Cache - OpenClaw Extension
|
|
3
|
-
* 页面操作缓存扩展
|
|
3
|
+
* 页面操作缓存扩展
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* 主扩展入口
|
|
7
7
|
*/
|
|
8
8
|
export default function register(api) {
|
|
9
9
|
console.log('[PageActionCache] Starting...');
|
|
10
|
-
//
|
|
10
|
+
// 注册缓存统计工具 - 使用正确的格式
|
|
11
11
|
api.registerTool({
|
|
12
|
-
name: '
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
name: 'page_cache_stats',
|
|
13
|
+
label: 'Page Cache Stats',
|
|
14
|
+
description: 'View page snapshot cache statistics',
|
|
15
|
+
parameters: {
|
|
15
16
|
type: 'object',
|
|
16
17
|
properties: {},
|
|
17
18
|
required: []
|
|
18
19
|
},
|
|
19
|
-
async
|
|
20
|
+
execute: async (_toolCallId, _params) => {
|
|
20
21
|
return {
|
|
21
|
-
text: '
|
|
22
|
+
text: '## Page Snapshot Cache Statistics\n\nNo cache entries yet.'
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
});
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAaH;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAsB;IACrD,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,qBAAqB;IACrB,GAAG,CAAC,YAAY,CAAC;QACf,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,qCAAqC;QAClD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,EAAE;SACb;QACD,OAAO,EAAE,KAAK,EAAE,WAAmB,EAAE,OAAgB,EAAE,EAAE;YACvD,OAAO;gBACL,IAAI,EAAE,4DAA4D;aACxD,CAAC;QACf,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;AACzD,CAAC"}
|