page-action-cache 2026.2.7 → 2026.2.8
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 +2 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -41
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Page Action Cache - OpenClaw Extension
|
|
3
|
-
*
|
|
3
|
+
* Safe version with minimal footprint
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
registerTool(tool: {
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
inputSchema: unknown;
|
|
10
|
-
execute: (params: unknown) => Promise<unknown>;
|
|
11
|
-
}): void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 主扩展入口
|
|
15
|
-
*/
|
|
16
|
-
export default function register(api: OpenClawPluginApi): void;
|
|
17
|
-
export {};
|
|
5
|
+
export default function register(): void;
|
|
18
6
|
//# sourceMappingURL=index.d.ts.map
|
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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,OAAO,UAAU,QAAQ,IAAI,IAAI,CAEvC"}
|
package/dist/index.js
CHANGED
|
@@ -1,46 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Page Action Cache - OpenClaw Extension
|
|
3
|
-
*
|
|
3
|
+
* Safe version with minimal footprint
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
export default function register(api) {
|
|
9
|
-
console.log('========================================');
|
|
10
|
-
console.log('[PageActionCache] 🚀 Initializing Page Action Cache Extension...');
|
|
11
|
-
console.log('========================================');
|
|
12
|
-
try {
|
|
13
|
-
console.log('[PageActionCache] 🔍 Starting plugin registration...');
|
|
14
|
-
// 注册缓存统计工具
|
|
15
|
-
api.registerTool({
|
|
16
|
-
name: 'page_cache_stats',
|
|
17
|
-
description: 'View page snapshot cache statistics',
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {},
|
|
21
|
-
required: []
|
|
22
|
-
},
|
|
23
|
-
async execute() {
|
|
24
|
-
console.log('[PageActionCache] 📊 Tool: page_cache_stats called');
|
|
25
|
-
const statsText = '## Page Snapshot Cache Statistics\n\n' +
|
|
26
|
-
'- Total Entries: 0\n' +
|
|
27
|
-
'- Total Hits: 0\n' +
|
|
28
|
-
'- Hit Rate: 0.00%\n\n';
|
|
29
|
-
return {
|
|
30
|
-
text: statsText,
|
|
31
|
-
totalEntries: 0,
|
|
32
|
-
hits: 0,
|
|
33
|
-
hitRate: '0.00%'
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
console.log('[PageActionCache] =======================================');
|
|
38
|
-
console.log('[PageActionCache] ✅ Plugin registered successfully');
|
|
39
|
-
console.log('[PageActionCache] 📋 Available tools: page_cache_stats');
|
|
40
|
-
console.log('[PageActionCache] 📋 No hooks registered');
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
console.error('[PageActionCache] ❌ Fatal error during plugin registration:', error);
|
|
44
|
-
}
|
|
5
|
+
export default function register() {
|
|
6
|
+
// Empty implementation - plugin is disabled
|
|
45
7
|
}
|
|
46
8
|
//# sourceMappingURL=index.js.map
|
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;AAEH,MAAM,CAAC,OAAO,UAAU,QAAQ;IAC9B,4CAA4C;AAC9C,CAAC"}
|
package/openclaw.plugin.json
CHANGED