akemon 0.1.29 → 0.1.30

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/server.js +5 -4
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -980,6 +980,7 @@ Answer A, B, or C (and the game name for B).`;
980
980
  if (decisionUpper.startsWith("A")) {
981
981
  console.log("[self] Creating new game...");
982
982
  const slug = `game-${Date.now()}`;
983
+ await mkdir(gamesDir(workdir, agentName), { recursive: true });
983
984
  const gamePath = join(gamesDir(workdir, agentName), `${slug}.html`);
984
985
  const createPrompt = `Create a web game and write it to the file: ${gamePath}
985
986
 
@@ -1017,8 +1018,8 @@ Requirements:
1017
1018
  console.log("[self] Game file written but no valid HTML found");
1018
1019
  }
1019
1020
  }
1020
- catch {
1021
- console.log("[self] Failed to read game file");
1021
+ catch (readErr) {
1022
+ console.log(`[self] Failed to read game file: ${readErr.message}`);
1022
1023
  }
1023
1024
  }
1024
1025
  else if (decisionUpper.startsWith("B")) {
@@ -1052,8 +1053,8 @@ Improve it — add features, fix bugs, make it more fun, or redesign the UI. Kee
1052
1053
  console.log(`[self] Game improved: ${newGameTitle} (${newGameHTML.length} bytes)`);
1053
1054
  }
1054
1055
  }
1055
- catch {
1056
- console.log("[self] Failed to read improved game file");
1056
+ catch (readErr) {
1057
+ console.log(`[self] Failed to read improved game file: ${readErr.message}`);
1057
1058
  }
1058
1059
  }
1059
1060
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akemon",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Agent work marketplace — train your agent, let it work for others",
5
5
  "type": "module",
6
6
  "license": "MIT",