@openmuster/muster 0.3.1-alpha.3 → 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.
Files changed (57) hide show
  1. package/README.md +16 -10
  2. package/dist/{args-DX9QSK1f.js → args-CaFBa2IP.js} +305 -23
  3. package/dist/cli.js +3 -3
  4. package/dist/index.d.ts +67 -18
  5. package/dist/index.js +106 -41
  6. package/dist/inspect/app.js +79 -51
  7. package/dist/{main-DgrIMbeA.js → main-BeEB08iI.js} +397 -26
  8. package/dist/main-CLzQkYeG.js +6 -0
  9. package/dist/mcp-CAAZRJgv.js +6 -0
  10. package/dist/{module-C-HJjWWo.js → module-BX2IjSiv.js} +2 -2
  11. package/dist/{module-CxoN1MOe.js → module-D9KdbEpS.js} +1 -1
  12. package/dist/skills/board/SKILL.md +5 -0
  13. package/dist/{steps-DtzUdcBE.js → steps-FNDWY1P_.js} +16 -4
  14. package/docs/01-concepts/09-watchers.md +4 -32
  15. package/docs/01-concepts/10-schedules.md +1 -1
  16. package/docs/01-concepts/11-access.md +19 -3
  17. package/docs/01-concepts/13-budgets.md +66 -3
  18. package/docs/01-concepts/15-outgoing-webhooks.md +6 -19
  19. package/docs/01-concepts/16-workflows.md +22 -2
  20. package/docs/01-quickstart.md +74 -42
  21. package/docs/02-sync/01-overview.md +34 -2
  22. package/docs/02-sync/02-github.md +40 -19
  23. package/docs/02-sync/03-linear.md +103 -85
  24. package/docs/02-sync/04-slack.md +116 -111
  25. package/docs/02-sync/05-notion.md +46 -25
  26. package/docs/03-guides/01-coding-agents.md +51 -33
  27. package/docs/03-guides/02-swarm.md +30 -15
  28. package/docs/03-guides/03-factory.md +193 -80
  29. package/docs/03-guides/04-inspector.md +79 -29
  30. package/docs/03-guides/05-running-agents.md +62 -35
  31. package/docs/03-guides/06-sandboxed-agents.md +488 -305
  32. package/docs/03-guides/07-build-a-ui.md +86 -31
  33. package/docs/03-guides/08-ci.md +59 -36
  34. package/docs/03-guides/09-daemon.md +121 -53
  35. package/docs/03-guides/10-two-agents.md +31 -22
  36. package/docs/03-guides/11-person-in-the-loop.md +47 -34
  37. package/docs/03-guides/12-unattended.md +46 -27
  38. package/docs/03-guides/13-terminals.md +51 -39
  39. package/docs/03-guides/14-no-cloud.md +31 -19
  40. package/docs/03-guides/15-several-boards.md +61 -27
  41. package/docs/03-guides/16-non-code.md +29 -18
  42. package/docs/03-guides/17-mcp.md +37 -30
  43. package/docs/03-guides/18-a-board-on-a-server.md +66 -43
  44. package/docs/03-guides/19-a-card-queue.md +210 -121
  45. package/docs/03-guides/20-a-feedback-loop.md +298 -134
  46. package/docs/03-guides/21-running-the-loop.md +94 -64
  47. package/docs/03-guides/22-building-from-linear.md +81 -57
  48. package/docs/04-reference/01-cli.md +8 -0
  49. package/docs/04-reference/02-handle.md +10 -15
  50. package/docs/04-reference/03-http.md +1 -1
  51. package/docs/04-reference/04-events.md +2 -1
  52. package/docs/04-reference/05-errors.md +3 -0
  53. package/docs/04-reference/08-files.md +49 -0
  54. package/docs/index.md +22 -0
  55. package/package.json +1 -1
  56. package/dist/main-CdVlnWHy.js +0 -6
  57. package/dist/mcp-NueWYyQs.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
@@ -18,6 +18,27 @@ mu run --ready db/ --agent claude --as worker-1
18
18
  mu inspect
19
19
  ```
20
20
 
21
+ ## Several agents, one queue
22
+
23
+ Agents never share a task. Several agents take work from the same queue, and
24
+ the board makes sure each task is held by one of them at a time: a claim
25
+ comes with a lease, the holder renews it while it works, and nobody else can
26
+ claim the task meanwhile. If the agent dies or stalls, the lease runs out, the
27
+ task is ready again, and the next free agent takes it.
28
+
29
+ You run several agents when there is more than one thing to do:
30
+
31
+ - **In parallel.** Split a feature into tasks that touch different files,
32
+ and start a few workers that each take one: [A swarm](./03-guides/02-swarm.md).
33
+ - **One builds, one checks.** A second agent reviews in a fresh session once
34
+ the first completes: [Two agents](./03-guides/10-two-agents.md).
35
+ - **Work that arrives.** Issues from Linear, GitHub or Slack land on the
36
+ board, and whoever is free takes the next one:
37
+ [Building from Linear](./03-guides/22-building-from-linear.md).
38
+ - **While you are away.** Leave a queue with a budget, and workers take the
39
+ tasks one after another until it is empty:
40
+ [Running unattended](./03-guides/12-unattended.md).
41
+
21
42
  ## What a board gives you
22
43
 
23
44
  - **Work that can't be taken twice.** A task is claimed under a lease, and
@@ -116,3 +137,4 @@ mu inspect
116
137
  - [Errors](./04-reference/05-errors.md)
117
138
  - [Conformance](./04-reference/06-conformance.md)
118
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",
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": {
@@ -1,6 +0,0 @@
1
- import { E as VERSION } from "./args-DX9QSK1f.js";
2
- import "./steps-DtzUdcBE.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-DgrIMbeA.js";
4
- import "./module-CxoN1MOe.js";
5
-
6
- export { SPECS, VERSION, agentPrompt, agentToken, attend, main, meantCommand, repoUrl };
@@ -1,6 +0,0 @@
1
- import "./args-DX9QSK1f.js";
2
- import "./steps-DtzUdcBE.js";
3
- import { c as answer, l as mcp, u as refusal } from "./main-DgrIMbeA.js";
4
- import "./module-CxoN1MOe.js";
5
-
6
- export { answer, mcp, refusal };