@memorilabs/openclaw-memori 0.0.2-beta → 0.0.4-beta
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/handlers/augmentation.js +5 -2
- package/dist/handlers/recall.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { extractContext, initializeMemoriClient } from '../utils/index.js';
|
|
2
2
|
import { cleanText, isSystemMessage } from '../sanitizer.js';
|
|
3
|
-
import { SDK_VERSION } from '../version.js';
|
|
4
3
|
import { AUGMENTATION_CONFIG } from '../constants.js';
|
|
5
4
|
function extractLLMMetadata(event) {
|
|
6
5
|
const messages = event.messages || [];
|
|
@@ -9,7 +8,8 @@ function extractLLMMetadata(event) {
|
|
|
9
8
|
provider: lastAssistant?.provider || null,
|
|
10
9
|
model: lastAssistant?.model || null,
|
|
11
10
|
sdkVersion: null,
|
|
12
|
-
integrationSdkVersion: SDK_VERSION,
|
|
11
|
+
// integrationSdkVersion: SDK_VERSION,
|
|
12
|
+
integrationSdkVersion: '0.0.1', // TODO: move me back with first releases
|
|
13
13
|
platform: 'openclaw',
|
|
14
14
|
};
|
|
15
15
|
}
|
|
@@ -70,6 +70,9 @@ export async function handleAugmentation(event, ctx, config, logger) {
|
|
|
70
70
|
agentResponse: lastAiMsg.content,
|
|
71
71
|
metadata: extractLLMMetadata(event),
|
|
72
72
|
};
|
|
73
|
+
logger.info(`Sending User: ${payload.userMessage}`);
|
|
74
|
+
logger.info(`Sending Agent: ${payload.agentResponse}`);
|
|
75
|
+
logger.info(`Sending Meta: ${JSON.stringify(payload.metadata)}`);
|
|
73
76
|
await memoriClient.augmentation(payload);
|
|
74
77
|
logger.info('Augmentation successful!');
|
|
75
78
|
}
|
package/dist/handlers/recall.js
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.4-beta";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '0.0.
|
|
1
|
+
export const SDK_VERSION = '0.0.4-beta';
|
package/openclaw.plugin.json
CHANGED