@replayio/app-building 1.9.0 → 1.10.0

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/README.md CHANGED
@@ -126,9 +126,8 @@ Each container runs an HTTP server that accepts the following requests:
126
126
 
127
127
  | Method | Path | Description |
128
128
  |---|---|---|
129
- | `POST /message` | `{ prompt: string }` | Queue a message for processing. Returns `{ id }`. |
130
- | `GET /message/:id` | | Poll message status. Returns `{ id, status, result, error }`. |
131
- | `POST /detach` | | Signal the container to exit once all queued messages and tasks are done. |
129
+ | `POST /message` | `{ prompt: string }` | Add a prompt as a task in the persistent task queue. Returns `{ ok: true }`. |
130
+ | `POST /detach` | | Signal the container to exit once all tasks are done. |
132
131
  | `POST /stop` | | Force-stop the container immediately. Interrupts any running work, commits remaining changes, then exits. |
133
132
  | `POST /interrupt` | | Kill the currently running Claude process without stopping the container. |
134
133
  | `GET /status` | | Container state, queue depth, iteration count, cost, revision, etc. |
@@ -190,7 +189,7 @@ Every POST body has this shape:
190
189
  | `message.done` | Message processing complete | `messageId`, `cost_usd`, `duration_ms`, `num_turns` |
191
190
  | `message.error` | Message processing failed | `messageId`, `error` |
192
191
  | `task.started` | Task processing begins | `iteration`, `skill`, `subtasks` |
193
- | `task.done` | Task processing complete | `skill`, `cost`, `totalCost`, `failed` |
192
+ | `task.done` | Task processing complete | `skill`, `cost`, `totalCost`, `failed`, `pendingTasks` |
194
193
  | `log` | Each log line | `line` |
195
194
 
196
195
  ### Example
package/dist/fly.js CHANGED
@@ -109,7 +109,7 @@ export async function createMachine(app, token, image, env, name) {
109
109
  image,
110
110
  env,
111
111
  auto_destroy: true,
112
- restart: { policy: "no" },
112
+ restart: { policy: "on-failure", max_retries: 3 },
113
113
  guest: {
114
114
  cpu_kind: "performance",
115
115
  cpus: 16,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replayio/app-building",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Library for managing agentic app-building containers",
5
5
  "type": "module",
6
6
  "exports": {