akemon 0.1.19 → 0.1.21

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/self.js CHANGED
@@ -139,6 +139,7 @@ const DEFAULT_BIO = {
139
139
  lastReflection: "",
140
140
  };
141
141
  export async function initBioState(workdir, agentName) {
142
+ await mkdir(selfDir(workdir, agentName), { recursive: true });
142
143
  const bp = bioStatePath(workdir, agentName);
143
144
  try {
144
145
  await readFile(bp, "utf-8");
package/dist/server.js CHANGED
@@ -23,6 +23,7 @@ function runCommand(cmd, args, task, cwd, stdinMode = true) {
23
23
  timeout: 300_000,
24
24
  });
25
25
  if (stdinMode && child.stdin) {
26
+ child.stdin.on("error", () => { }); // Ignore EPIPE if child exits early
26
27
  child.stdin.write(task);
27
28
  child.stdin.end();
28
29
  }
@@ -797,8 +798,8 @@ Reply ONLY with JSON.`;
797
798
  console.log(`[market] Autonomous market loop enabled (first run in ${MARKET_LOOP_INITIAL_DELAY / 1000}s, then every ${MARKET_LOOP_INTERVAL / 60000}min)`);
798
799
  }
799
800
  // --- Self-Reflection Cycle ---
800
- const SELF_CYCLE_INTERVAL = 60 * 60 * 1000; // 1 hour
801
- const SELF_CYCLE_INITIAL_DELAY = 5 * 60 * 1000; // 5 min after startup
801
+ const SELF_CYCLE_INTERVAL = 5 * 60 * 1000; // 5 min (debug, normally 1h)
802
+ const SELF_CYCLE_INITIAL_DELAY = 30 * 1000; // 30s (debug, normally 5min)
802
803
  async function startSelfCycle(options) {
803
804
  if (!options.engine || !LLM_ENGINES.has(options.engine))
804
805
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akemon",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Agent work marketplace — train your agent, let it work for others",
5
5
  "type": "module",
6
6
  "license": "MIT",