holon 0.14.1

A headless, event-driven runtime for long-lived agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { appendBrief, appendEvent } from "./storage.js";

export class Runtime {
  constructor(queue) {
    this.queue = queue;
  }

  async runOnce() {
    const item = this.queue.shift();
    if (!item) {
      return { status: "idle" };
    }

    await appendEvent("message_processing_started", { kind: item.kind });
    await appendBrief(`Processed ${item.kind}`);
    return { status: "processed", kind: item.kind };
  }
}