@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 +3 -4
- package/dist/fly.js +1 -1
- package/package.json +1 -1
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 }` |
|
|
130
|
-
| `
|
|
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: "
|
|
112
|
+
restart: { policy: "on-failure", max_retries: 3 },
|
|
113
113
|
guest: {
|
|
114
114
|
cpu_kind: "performance",
|
|
115
115
|
cpus: 16,
|