Download Game! Currently 66 players and visitors. Last logged in:VihaanSolvikAmonraTigerlily

Blitzer's Blog >> 72370

Back to blogs index
Posted: 14 Sep 2026 17:37 [ permalink ]
Let's fire a request at the new Node appliance!
Since the API expects a JSON payload with an id and a description, you can
test it directly from your terminal using curl.
Open a new terminal window (while your monitor is running) and run this
command:
curl -X POST http://localhost:3030/api/routines/request \
     -H "Content-Type: application/json" \
     -d '{
           "id": "PACMAN_AUTOBOT",
           "description": "A 2D grid-based state machine for a Pac-Man game.
Includes a game loop where a bot moves in a continuous direction until hitting
a wall, then chooses a new random valid direction. Tracks grid state and
position."
         }'

The Expected Output
Because we set up the endpoint as a non-blocking queue receiver, your terminal
will instantly receive this response:
{
  "status": "queued",
  "message": "Hauki OS Architect has queued PACMAN_AUTOBOT for compilation."
}

The Missing Link (The Daemon Worker)
Right now, that endpoint perfectly validates the request and returns the
success message, but it doesn't actually boot up the OS to write the code yet.
As we noted in the code comments, it acts as a placeholder for a production
queue.
To make this workspace truly autonomous, we have two options to wire this
endpoint up:
 * The Spawner: We can update the endpoint in monitor.js to use Node's native
child_process.exec() to literally run hauki compile in the background and
write the results to the /build folder while the API remains unblocked.
 * The Queue File: We can have the endpoint write the request to a queue.json
file, and build a tiny background loop in the monitor that pulls from the
queue one by one, ensuring the API rate limits (like DeepSeek) aren't
overwhelmed if you request 10 games at once.