akemon 0.1.66 → 0.1.67

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
@@ -113,7 +113,7 @@ function parseInterval(s) {
113
113
  }
114
114
  export function parseTasksMd(content) {
115
115
  const tasks = [];
116
- const sections = content.split(/^## /m).slice(1); // drop content before first ##
116
+ const sections = content.split(/^\s*## /m).slice(1); // drop content before first ##
117
117
  for (const section of sections) {
118
118
  const lines = section.split("\n");
119
119
  const title = lines[0].trim();
package/dist/server.js CHANGED
@@ -1300,9 +1300,10 @@ When sub-order completes, incorporate result_text into YOUR delivery. Then call
1300
1300
  engineBusy = true;
1301
1301
  engineBusySince = Date.now();
1302
1302
  try {
1303
- const engineCmd = buildEngineCommand(engine, model, allowAll);
1303
+ const engineCmd = buildEngineCommand(engine, model, allowAll, ["Bash(curl *)"]);
1304
1304
  const bios = biosPath(workdir, agentName);
1305
- const prompt = `Read ${bios} for your identity and context.\n\n[Owner's task: ${task.title}]\n\n${task.body}`;
1305
+ const sd = selfDir(workdir, agentName);
1306
+ const prompt = `Read ${bios} for your identity and context.\nYour personal directory: ${sd}/\n\n[Owner's task: ${task.title}]\n\n${task.body}`;
1306
1307
  await runCommand(engineCmd.cmd, engineCmd.args, prompt, workdir, engineCmd.stdinMode);
1307
1308
  // Record execution time
1308
1309
  const runs = await loadTaskRuns(workdir, agentName);
@@ -1451,6 +1452,7 @@ When sub-order completes, incorporate result_text into YOUR delivery. Then call
1451
1452
  }
1452
1453
  if (!queue.length)
1453
1454
  return;
1455
+ console.log(`[work] Queue: ${queue.map(q => `${q.type}:${q.id}${q.urgent ? '(urgent)' : ''}`).join(', ')}`);
1454
1456
  // --- Sort: urgent orders > orders > user tasks > relay tasks ---
1455
1457
  const priorityMap = { order: 2, user_task: 1, relay_task: 0 };
1456
1458
  queue.sort((a, b) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akemon",
3
- "version": "0.1.66",
3
+ "version": "0.1.67",
4
4
  "description": "Agent work marketplace — train your agent, let it work for others",
5
5
  "type": "module",
6
6
  "license": "MIT",