2026-02-22T10-15-42_auto_MEMORY.md
This commit is contained in:
parent
22caa7c430
commit
00c6257dcf
@ -3048,3 +3048,11 @@
|
||||
{"timestamp":"2026-02-22T10:12:25.837Z","level":"info","category":"hooks","message":"Session start completed","data":{"memoryCount":26,"durationMs":1}}
|
||||
{"timestamp":"2026-02-22T10:12:25.838Z","level":"info","category":"watcher","message":"File changed","data":{"path":"/home/nicholai/.agents/memory/memories.db-wal"}}
|
||||
{"timestamp":"2026-02-22T10:12:25.837Z","level":"info","category":"watcher","message":"File changed","data":{"path":"/home/nicholai/.agents/memory/memories.db-wal"}}
|
||||
{"timestamp":"2026-02-22T10:12:30.859Z","level":"info","category":"git","message":"Auto-committed","data":{"message":"2026-02-22T10-12-30_auto_memory/memories.db-wal","filesChanged":1}}
|
||||
{"timestamp":"2026-02-22T10:12:30.840Z","level":"warn","category":"git","message":"Git add failed"}
|
||||
{"timestamp":"2026-02-22T10:14:25.834Z","level":"warn","category":"git","message":"Push failed: To https://github.com/Signet-AI/signetai.git\n ! [rejected] HEAD -> main (non-fast-forward)\nerror: failed to push some refs to 'https://github.com/Signet-AI/signetai.git'\nhint: Updates were rejected because the tip of your current branch is behind\nhint: its remote counterpart. If you want to integrate the remote changes,\nhint: use 'git pull' before pushing again.\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\n"}
|
||||
{"timestamp":"2026-02-22T10:14:25.834Z","level":"warn","category":"git","message":"Periodic sync failed: Push failed: To https://github.com/Signet-AI/signetai.git\n ! [rejected] HEAD -> main (non-fast-forward)\nerror: failed to push some refs to 'https://github.com/Signet-AI/signetai.git'\nhint: Updates were rejected because the tip of your current branch is behind\nhint: its remote counterpart. If you want to integrate the remote changes,\nhint: use 'git pull' before pushing again.\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\n"}
|
||||
{"timestamp":"2026-02-22T10:14:30.575Z","level":"warn","category":"git","message":"Push failed: To https://github.com/Signet-AI/signetai.git\n ! [rejected] HEAD -> main (non-fast-forward)\nerror: failed to push some refs to 'https://github.com/Signet-AI/signetai.git'\nhint: Updates were rejected because the tip of your current branch is behind\nhint: its remote counterpart. If you want to integrate the remote changes,\nhint: use 'git pull' before pushing again.\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\n"}
|
||||
{"timestamp":"2026-02-22T10:14:30.575Z","level":"warn","category":"git","message":"Periodic sync failed: Push failed: To https://github.com/Signet-AI/signetai.git\n ! [rejected] HEAD -> main (non-fast-forward)\nerror: failed to push some refs to 'https://github.com/Signet-AI/signetai.git'\nhint: Updates were rejected because the tip of your current branch is behind\nhint: its remote counterpart. If you want to integrate the remote changes,\nhint: use 'git pull' before pushing again.\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\n"}
|
||||
{"timestamp":"2026-02-22T10:15:37.752Z","level":"info","category":"watcher","message":"File added","data":{"path":"/home/nicholai/.agents/MEMORY.md"}}
|
||||
{"timestamp":"2026-02-22T10:15:37.752Z","level":"info","category":"watcher","message":"File added","data":{"path":"/home/nicholai/.agents/MEMORY.md"}}
|
||||
|
||||
@ -6,7 +6,7 @@ metadata:
|
||||
"openclaw":
|
||||
{
|
||||
"emoji": "🔗",
|
||||
"events": ["command:remember", "command:recall", "command:context"],
|
||||
"events": ["command:remember", "command:recall", "command:context", "command:new", "command:reset"],
|
||||
},
|
||||
}
|
||||
---
|
||||
|
||||
@ -24,6 +24,18 @@ const handler = async (event) => {
|
||||
const args = event.context?.args || "";
|
||||
|
||||
switch (event.action) {
|
||||
case "new":
|
||||
case "reset":
|
||||
case "context":
|
||||
try {
|
||||
const data = await fetchDaemon("/api/hooks/session-start", {
|
||||
harness: "openclaw",
|
||||
});
|
||||
if (data.inject) event.messages.push(data.inject);
|
||||
} catch (e) {
|
||||
if (event.action === "context") event.messages.push(`Error: ${e.message}`);
|
||||
}
|
||||
break;
|
||||
case "remember":
|
||||
if (!args.trim()) { event.messages.push("Usage: /remember <content>"); return; }
|
||||
try {
|
||||
@ -46,14 +58,6 @@ const handler = async (event) => {
|
||||
}
|
||||
} catch (e) { event.messages.push(`Error: ${e.message}`); }
|
||||
break;
|
||||
case "context":
|
||||
try {
|
||||
const data = await fetchDaemon("/api/hooks/session-start", {
|
||||
harness: "openclaw",
|
||||
});
|
||||
event.messages.push(data.inject || "no context");
|
||||
} catch (e) { event.messages.push(`Error: ${e.message}`); }
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user