@inquiryon/openclaw-amp-governance 1.0.8 → 1.0.9
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.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -392,6 +392,12 @@ export default {
|
|
|
392
392
|
api.logger.info('AMP Governance registered. Phase 4 - eval policy enforcement active.');
|
|
393
393
|
_runtime = api.runtime;
|
|
394
394
|
|
|
395
|
+
// ── SESSION RESET: clear instance cache on /new or /reset ────────────────
|
|
396
|
+
api.on('session_start', () => {
|
|
397
|
+
console.log('[AMP Governance] Session started — clearing instance cache.');
|
|
398
|
+
_instanceId = null;
|
|
399
|
+
});
|
|
400
|
+
|
|
395
401
|
// ── INBOUND MESSAGE: cache sender for HITL notifications ─────────────────
|
|
396
402
|
api.on('message_received', (event, ctx) => {
|
|
397
403
|
if (event.from && ctx.channelId) {
|