@clawtrial/courtroom 2.0.5 → 2.0.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/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/plugin.js +7 -1
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/src/plugin.js
CHANGED
|
@@ -175,10 +175,16 @@ class CourtroomRuntime {
|
|
|
175
175
|
|
|
176
176
|
// Run detection
|
|
177
177
|
try {
|
|
178
|
-
|
|
178
|
+
logger.info('PLUGIN', `Starting evaluation with messageBuffer length: ${this.messageBuffer.length}`);
|
|
179
|
+
if (this.messageBuffer.length > 0) {
|
|
180
|
+
logger.info('PLUGIN', `Sample buffered message: ${JSON.stringify(this.messageBuffer[this.messageBuffer.length - 1])}`);
|
|
181
|
+
}
|
|
182
|
+
|
|
179
183
|
const detection = await this.detector.evaluate(this.messageBuffer, null);
|
|
184
|
+
logger.info('PLUGIN', `Evaluation result: ${JSON.stringify(detection)}`);
|
|
180
185
|
|
|
181
186
|
if (detection.triggered) {
|
|
187
|
+
this.lastEvaluation = now;
|
|
182
188
|
return await this._handleDetection(detection);
|
|
183
189
|
}
|
|
184
190
|
} catch (err) {
|