@memoryrelay/plugin-memoryrelay-ai 0.11.3 → 0.11.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/index.ts +7 -12
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OpenClaw Memory Plugin - MemoryRelay
|
|
3
|
-
* Version: 0.11.
|
|
3
|
+
* Version: 0.11.4 (Full Single-File)
|
|
4
4
|
*
|
|
5
5
|
* Long-term memory with vector search using MemoryRelay API.
|
|
6
6
|
* Provides auto-recall and auto-capture via lifecycle hooks.
|
|
@@ -101,12 +101,7 @@ class DebugLogger {
|
|
|
101
101
|
// StatusReporter (Inlined from src/status-reporter.ts)
|
|
102
102
|
// ============================================================================
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
import type { LogEntry, DebugLogger } from "./debug-logger";
|
|
108
|
-
|
|
109
|
-
export interface ToolStatus {
|
|
104
|
+
interface ToolStatus {
|
|
110
105
|
enabled: number;
|
|
111
106
|
available: number;
|
|
112
107
|
failed: number;
|
|
@@ -119,21 +114,21 @@ export interface ToolStatus {
|
|
|
119
114
|
}[];
|
|
120
115
|
}
|
|
121
116
|
|
|
122
|
-
|
|
117
|
+
interface ConnectionStatus {
|
|
123
118
|
status: "connected" | "disconnected" | "degraded";
|
|
124
119
|
endpoint: string;
|
|
125
120
|
lastCheck: string;
|
|
126
121
|
responseTime: number;
|
|
127
122
|
}
|
|
128
123
|
|
|
129
|
-
|
|
124
|
+
interface MemoryStats {
|
|
130
125
|
total_memories: number;
|
|
131
126
|
memories_today?: number;
|
|
132
127
|
last_stored?: string;
|
|
133
128
|
search_count_24h?: number;
|
|
134
129
|
}
|
|
135
130
|
|
|
136
|
-
|
|
131
|
+
interface PluginConfig {
|
|
137
132
|
agentId: string;
|
|
138
133
|
autoRecall: boolean;
|
|
139
134
|
autoCapture: boolean;
|
|
@@ -143,7 +138,7 @@ export interface PluginConfig {
|
|
|
143
138
|
defaultProject?: string;
|
|
144
139
|
}
|
|
145
140
|
|
|
146
|
-
|
|
141
|
+
interface StatusReport {
|
|
147
142
|
connection: ConnectionStatus;
|
|
148
143
|
config: PluginConfig;
|
|
149
144
|
stats: MemoryStats;
|
|
@@ -152,7 +147,7 @@ export interface StatusReport {
|
|
|
152
147
|
issues: { tool: string; error: string; since: string }[];
|
|
153
148
|
}
|
|
154
149
|
|
|
155
|
-
|
|
150
|
+
class StatusReporter {
|
|
156
151
|
private debugLogger?: DebugLogger;
|
|
157
152
|
private toolFailures: Map<string, { error: string; since: string }> = new Map();
|
|
158
153
|
|
package/package.json
CHANGED