@trlc/super-memory 1.3.7 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.js +31 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ import { homedir } from 'os';
22
22
  import { join } from 'path';
23
23
  import readline from 'readline';
24
24
  const CONVEX_URL = 'https://clear-lemming-473.convex.cloud';
25
- const VERSION = '1.3.7';
25
+ const VERSION = '1.3.8';
26
26
  // Paths
27
27
  const getBaseDir = () => join(homedir(), '.openclaw', 'workspace');
28
28
  const getMemoryDir = () => join(getBaseDir(), 'memory');
@@ -527,6 +527,21 @@ async function cmdSync(args) {
527
527
  const pushResult = await pushResponse.json();
528
528
  if (pushResult.status === 'success') {
529
529
  uploadedCount++;
530
+ // Log audit
531
+ await fetch(`${CONVEX_URL}/api/mutation`, {
532
+ method: 'POST',
533
+ headers: { 'Content-Type': 'application/json' },
534
+ body: JSON.stringify({
535
+ path: 'audit:logCli',
536
+ args: {
537
+ licenseKey: config.licenseKey,
538
+ action: 'memory_save',
539
+ details: `Saved ${mem.category}: ${mem.content.substring(0, 50)}...`,
540
+ ipAddress: 'cli',
541
+ deviceInfo: config.deviceId,
542
+ },
543
+ }),
544
+ });
530
545
  }
531
546
  }
532
547
  catch (err) {
@@ -598,6 +613,21 @@ async function cmdSync(args) {
598
613
  console.log(` Uploaded: ${uploadedCount} memories`);
599
614
  console.log(` Downloaded: ${syncedCount} memories`);
600
615
  console.log(` Last sync: ${new Date().toLocaleString()}\n`);
616
+ // Log sync audit
617
+ await fetch(`${CONVEX_URL}/api/mutation`, {
618
+ method: 'POST',
619
+ headers: { 'Content-Type': 'application/json' },
620
+ body: JSON.stringify({
621
+ path: 'audit:logCli',
622
+ args: {
623
+ licenseKey: config.licenseKey,
624
+ action: 'sync_push',
625
+ details: `Sync: ${uploadedCount} up, ${syncedCount} down`,
626
+ ipAddress: 'cli',
627
+ deviceInfo: config.deviceId,
628
+ },
629
+ }),
630
+ });
601
631
  }
602
632
  catch (error) {
603
633
  console.error(`❌ Sync failed: ${error.message}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trlc/super-memory",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "Super Memory CLI - AI-powered persistent memory by The Red Lobster Cartel",
5
5
  "main": "dist/index.js",
6
6
  "bin": {