@openmuster/muster 0.3.1-alpha.4 → 0.3.1-alpha.5
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 +10 -6
- package/dist/{args-9ZZDcPxa.js → args-CaFBa2IP.js} +305 -23
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +67 -18
- package/dist/index.js +106 -41
- package/dist/inspect/app.js +49 -26
- package/dist/{main-Doit2DDY.js → main-BeEB08iI.js} +158 -8
- package/dist/main-CLzQkYeG.js +6 -0
- package/dist/mcp-CAAZRJgv.js +6 -0
- package/dist/{module-DjDMSEKu.js → module-BX2IjSiv.js} +2 -2
- package/dist/{module-D8qcE3e7.js → module-D9KdbEpS.js} +1 -1
- package/dist/skills/board/SKILL.md +5 -0
- package/dist/{steps-BUPRIOe3.js → steps-FNDWY1P_.js} +16 -4
- package/docs/01-concepts/09-watchers.md +4 -32
- package/docs/01-concepts/10-schedules.md +1 -1
- package/docs/01-concepts/11-access.md +19 -3
- package/docs/01-concepts/13-budgets.md +66 -3
- package/docs/01-concepts/15-outgoing-webhooks.md +6 -19
- package/docs/01-concepts/16-workflows.md +22 -2
- package/docs/01-quickstart.md +74 -45
- package/docs/02-sync/01-overview.md +34 -2
- package/docs/02-sync/02-github.md +40 -19
- package/docs/02-sync/03-linear.md +103 -85
- package/docs/02-sync/04-slack.md +116 -111
- package/docs/02-sync/05-notion.md +46 -25
- package/docs/03-guides/01-coding-agents.md +51 -33
- package/docs/03-guides/02-swarm.md +30 -15
- package/docs/03-guides/03-factory.md +193 -80
- package/docs/03-guides/04-inspector.md +73 -42
- package/docs/03-guides/05-running-agents.md +62 -35
- package/docs/03-guides/06-sandboxed-agents.md +488 -305
- package/docs/03-guides/07-build-a-ui.md +86 -31
- package/docs/03-guides/08-ci.md +59 -36
- package/docs/03-guides/09-daemon.md +121 -53
- package/docs/03-guides/10-two-agents.md +31 -22
- package/docs/03-guides/11-person-in-the-loop.md +47 -34
- package/docs/03-guides/12-unattended.md +46 -27
- package/docs/03-guides/13-terminals.md +51 -39
- package/docs/03-guides/14-no-cloud.md +31 -19
- package/docs/03-guides/15-several-boards.md +61 -27
- package/docs/03-guides/16-non-code.md +29 -18
- package/docs/03-guides/17-mcp.md +37 -30
- package/docs/03-guides/18-a-board-on-a-server.md +66 -43
- package/docs/03-guides/19-a-card-queue.md +210 -121
- package/docs/03-guides/20-a-feedback-loop.md +298 -134
- package/docs/03-guides/21-running-the-loop.md +94 -64
- package/docs/03-guides/22-building-from-linear.md +81 -57
- package/docs/04-reference/01-cli.md +7 -0
- package/docs/04-reference/02-handle.md +10 -15
- package/docs/04-reference/03-http.md +1 -1
- package/docs/04-reference/04-events.md +2 -1
- package/docs/04-reference/05-errors.md +3 -0
- package/docs/04-reference/08-files.md +49 -0
- package/docs/index.md +1 -0
- package/package.json +1 -1
- package/dist/main-D5aX7Jaj.js +0 -6
- package/dist/mcp-Cm96TIb3.js +0 -6
|
@@ -58,7 +58,8 @@ A claim's token never appears in an event a reader gets.
|
|
|
58
58
|
| `schedule.canceled` | `id` |
|
|
59
59
|
| `schedule.skipped` | `id`, `slot`: a slot too late to send |
|
|
60
60
|
| `sync.delivered` | `id`, `key`, `external`: a message reached a platform. `files`: the platform's IDs for the files sent with it, if any |
|
|
61
|
-
| `sync.failed` | `id`, `key`, `error`: it didn't, after five tries |
|
|
61
|
+
| `sync.failed` | `id`, `key`, `error`: it didn't, after five tries or a day of the platform being down. `error` is a short code, such as `platform_422`, or `unconfirmed` when the platform may have it and there is no way to look |
|
|
62
|
+
| `sync.dropped` | `key`, `id`, `error`: an event from a platform given up before it was imported, on the thread it was about |
|
|
62
63
|
| `schema.registered` | `name`, `version`, `schema` |
|
|
63
64
|
| `budget.set` | `channel`, `usd` |
|
|
64
65
|
|
|
@@ -55,6 +55,7 @@ claimed answers `task_ready`, with the claim to run first.
|
|
|
55
55
|
| `idempotency_mismatch` | That key was used for a different request |
|
|
56
56
|
| `invalid_idempotency_key` | A key is 1 to 200 characters |
|
|
57
57
|
| `invalid_cursor` | Not a cursor a read or a wait printed |
|
|
58
|
+
| `cursor_ahead` | `--after`, or a live feed's `Last-Event-ID`, is past the board's last event: most likely the board was restored from a backup since. `data.head` is where it is now |
|
|
58
59
|
| `invalid_limit` | `--limit` is a whole number of at least 1 |
|
|
59
60
|
| `invalid_id` | Not an ID |
|
|
60
61
|
| `nothing_to_read` | No channel or message named |
|
|
@@ -88,6 +89,7 @@ claimed answers `task_ready`, with the claim to run first.
|
|
|
88
89
|
| `plan_too_large` | Over 100 tasks |
|
|
89
90
|
| `over_budget` | The channel's budget is spent. `data` has the amounts |
|
|
90
91
|
| `invalid_budget` | A budget is more than 0 |
|
|
92
|
+
| `invalid_since` | `taskReport` takes `since` as an ISO time |
|
|
91
93
|
| `missing_reason` | `tasks fail` needs a reason |
|
|
92
94
|
| `missing_assignee` | `tasks assign` needs `--for` or `--pool` |
|
|
93
95
|
| `missing_command` | `tasks run` needs a command after `--` |
|
|
@@ -189,6 +191,7 @@ claimed answers `task_ready`, with the claim to run first.
|
|
|
189
191
|
| `invalid_session` | Not a session ID |
|
|
190
192
|
| `platform_refused` | A platform didn't do what was asked |
|
|
191
193
|
| `file_refused` | A synced file wasn't fetched: too big, not on the platform's own file host, or refused. Never shown to you: the message names the file instead |
|
|
194
|
+
| `unconfirmed` | A message's send got no answer, and the platform has no way for the board to look whether it took it. Never shown to you: it is the `error` of a `sync.failed` event |
|
|
192
195
|
| `joins_closed` | The board wasn't served with `--allow-joins`: ask its owner for a token |
|
|
193
196
|
| `insecure_url` | A token goes to a board, and a run's credentials to a runner Worker, over https, or plain http to this machine. `MUSTER_INSECURE_HTTP=1` lets your own token cross plain http on a network that is private some other way; a job's token for `mu token exchange` never does |
|
|
194
197
|
| `exchange_closed` | The board's owner named no workload in `oidc.json`, or the board is on this machine and needs no token |
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Files muster keeps
|
|
3
|
+
description: Every file and folder muster writes on your machine, what each holds, whether it is secret, and whether mu backup copies it. Read it before you back up, move or wipe a board.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
muster keeps two folders. Both are readable only by your OS user.
|
|
7
|
+
|
|
8
|
+
- **The board folder** is `~/.muster`, or the folder `--dir` or `MUSTER_DIR`
|
|
9
|
+
names. It holds the boards.
|
|
10
|
+
- **The config folder** is `~/.config/muster`, or `$XDG_CONFIG_HOME/muster`,
|
|
11
|
+
or the folder `MUSTER_CONFIG` names. It holds everything else.
|
|
12
|
+
|
|
13
|
+
## The board folder
|
|
14
|
+
|
|
15
|
+
| Path | What it holds | Secret | `mu backup` copies it |
|
|
16
|
+
| --- | --- | --- | --- |
|
|
17
|
+
| `<name>.db` | The board: its log and the tables made from it, the tokens it made (as records, never the tokens), and sync bookkeeping | Yes: everything anyone wrote | Yes |
|
|
18
|
+
| `<name>.files/` | The files messages carry, each stored once by what it holds | Yes | Yes |
|
|
19
|
+
| `<name>.db-wal`, `<name>.db-shm` | SQLite's write-ahead log, part of the board while it is open | Yes | Yes, as part of the board |
|
|
20
|
+
|
|
21
|
+
## The config folder
|
|
22
|
+
|
|
23
|
+
| Path | What it holds | Secret | `mu backup` copies it |
|
|
24
|
+
| --- | --- | --- | --- |
|
|
25
|
+
| `keys/` | Each board's signing key for tokens, and keys retired by `mu token rotate-key` | Yes: anyone with a key can make tokens the board accepts | No |
|
|
26
|
+
| `claims/` | The token for each task you hold, one file per board | Yes | No |
|
|
27
|
+
| `board.ts` | The default board module: watchers, sync and outgoing webhooks | No, if its secrets are named with `env()` | No |
|
|
28
|
+
| `workflows.json` | The workflows the daemon starts | No | No |
|
|
29
|
+
| `oidc.json` | The workloads a served board trusts, and what each gets | No | No |
|
|
30
|
+
| `daemon/` | The daemon's restart guard, per board | No | No |
|
|
31
|
+
| `logs/` | The daemon's logs, one per board | Can hold what commands printed | No |
|
|
32
|
+
| `runs/` | An agent run's log, kept 30 days | Can hold what the agent printed | No |
|
|
33
|
+
| `e2b-bases.json`, `vercel-bases.json` | The sandbox snapshots this machine made | No | No |
|
|
34
|
+
| `update-check.json` | When `MUSTER_UPDATE_CHECK=1` last asked for the latest version, and the answer | No | No |
|
|
35
|
+
|
|
36
|
+
`mu daemon install` also writes a service file outside both folders: on macOS
|
|
37
|
+
`~/Library/LaunchAgents/<label>.plist`.
|
|
38
|
+
|
|
39
|
+
## Back up and move a board
|
|
40
|
+
|
|
41
|
+
`mu backup ./board.db` copies a board and its files while it runs. To move a
|
|
42
|
+
board to another machine with everything it needs, copy these too:
|
|
43
|
+
|
|
44
|
+
- `keys/`, or the tokens you gave out stop working there.
|
|
45
|
+
- `board.ts`, `workflows.json` and `oidc.json`, if you use them.
|
|
46
|
+
|
|
47
|
+
A restored board refuses tokens it made after the backup was taken, and a
|
|
48
|
+
reader whose place in the log is past the restored board's last event gets
|
|
49
|
+
`cursor_ahead`: see [errors](./05-errors.md).
|
package/docs/index.md
CHANGED
|
@@ -137,3 +137,4 @@ You run several agents when there is more than one thing to do:
|
|
|
137
137
|
- [Errors](./04-reference/05-errors.md)
|
|
138
138
|
- [Conformance](./04-reference/06-conformance.md)
|
|
139
139
|
- [Porting from the JSON files](./04-reference/07-porting.md)
|
|
140
|
+
- [Files muster keeps](./04-reference/08-files.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmuster/muster",
|
|
3
|
-
"version": "0.3.1-alpha.
|
|
3
|
+
"version": "0.3.1-alpha.5",
|
|
4
4
|
"description": "A local-first work queue for coding agents, with the threads people read: leased tasks, one log, wait and tail, schedules and watchers.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
package/dist/main-D5aX7Jaj.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { D as VERSION } from "./args-9ZZDcPxa.js";
|
|
2
|
-
import "./steps-BUPRIOe3.js";
|
|
3
|
-
import { a as main, i as attend, n as agentPrompt, o as meantCommand, r as agentToken, s as repoUrl, t as SPECS } from "./main-Doit2DDY.js";
|
|
4
|
-
import "./module-D8qcE3e7.js";
|
|
5
|
-
|
|
6
|
-
export { SPECS, VERSION, agentPrompt, agentToken, attend, main, meantCommand, repoUrl };
|