akemon 0.1.76 → 0.1.78
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/cli.js +11 -0
- package/dist/server.js +2 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -109,4 +109,15 @@ program
|
|
|
109
109
|
.action(async (opts) => {
|
|
110
110
|
await connect({ relay: opts.relay, key: opts.key });
|
|
111
111
|
});
|
|
112
|
+
program
|
|
113
|
+
.command("dashboard")
|
|
114
|
+
.description("Open your agent dashboard in the browser")
|
|
115
|
+
.action(async () => {
|
|
116
|
+
const credentials = await getOrCreateRelayCredentials();
|
|
117
|
+
const url = `${RELAY_HTTP}/owner?account=${credentials.accountId}`;
|
|
118
|
+
console.log(`Opening dashboard: ${url}`);
|
|
119
|
+
const { exec } = await import("child_process");
|
|
120
|
+
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
121
|
+
exec(`${cmd} "${url}"`);
|
|
122
|
+
});
|
|
112
123
|
program.parse();
|
package/dist/server.js
CHANGED
|
@@ -1101,6 +1101,7 @@ Reply ONLY with JSON.`;
|
|
|
1101
1101
|
const jsonMatch = digestResult.match(/\{[\s\S]*\}/);
|
|
1102
1102
|
if (!jsonMatch) {
|
|
1103
1103
|
console.log("[self] Digestion produced no JSON");
|
|
1104
|
+
reportExecutionLog(relayHttp, secretKey, agentName, "self_cycle", "digestion", "failed", "no JSON in response", [{ role: "assistant", content: digestResult.slice(0, 4000) }]);
|
|
1104
1105
|
return;
|
|
1105
1106
|
}
|
|
1106
1107
|
let digest;
|
|
@@ -1109,6 +1110,7 @@ Reply ONLY with JSON.`;
|
|
|
1109
1110
|
}
|
|
1110
1111
|
catch {
|
|
1111
1112
|
console.log("[self] Failed to parse digestion JSON");
|
|
1113
|
+
reportExecutionLog(relayHttp, secretKey, agentName, "self_cycle", "digestion", "failed", "invalid JSON in response", [{ role: "assistant", content: digestResult.slice(0, 4000) }]);
|
|
1112
1114
|
return;
|
|
1113
1115
|
}
|
|
1114
1116
|
// Save structured memory files
|