@openmuster/muster 0.3.1-alpha.6 → 0.3.1-alpha.7
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 +1 -1
- package/dist/{args-CaFBa2IP.js → args-C_XaUVTS.js} +456 -65
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +201 -85
- package/dist/index.js +156 -10
- package/dist/main-C-3gchLr.js +6 -0
- package/dist/{main-3kE64MlN.js → main-D8R2IP1C.js} +1043 -115
- package/dist/mcp-uFonN-GE.js +6 -0
- package/dist/{module-BX2IjSiv.js → module-D6Kgl3Do.js} +2 -2
- package/dist/{module-D9KdbEpS.js → module-DkA_1NkG.js} +1 -1
- package/dist/{steps-cnWo2Wvx.js → steps-DVxqtI61.js} +122 -1
- package/docs/01-concepts/06-actors.md +3 -1
- package/docs/01-concepts/08-tasks.md +3 -0
- package/docs/01-concepts/10-schedules.md +9 -1
- package/docs/01-concepts/11-access.md +86 -2
- package/docs/01-concepts/12-files-and-data.md +139 -6
- package/docs/01-concepts/17-board-module.md +3 -1
- package/docs/01-quickstart.md +1 -1
- package/docs/02-sync/04-slack.md +5 -0
- package/docs/03-guides/17-mcp.md +44 -7
- package/docs/04-reference/01-cli.md +10 -1
- package/docs/04-reference/03-http.md +56 -5
- package/docs/04-reference/05-errors.md +5 -1
- package/docs/04-reference/06-conformance.md +17 -5
- package/package.json +2 -2
- package/dist/main-o4m_lGDG.js +0 -6
- package/dist/mcp-D6Xt2ixk.js +0 -6
|
@@ -80,11 +80,62 @@ Authorization: Bearer mu1...
|
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
MCP's HTTP transport, one JSON-RPC message per `POST`, answered in the
|
|
83
|
-
response. A notification gets `202` and no body; `GET` gets `405
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
response. A notification gets `202` and no body; `GET` gets `405`. An answer
|
|
84
|
+
that streams is sent on its own `POST` as `text/event-stream`, one message
|
|
85
|
+
per `data:` frame, with the final response last. The token and the profile
|
|
86
|
+
header work as on every other route, and a request with an `Origin` from a
|
|
87
|
+
host the board doesn't answer for is refused. The tool is the one `mu mcp`
|
|
88
|
+
offers: see [An agent with no shell](../03-guides/17-mcp.md).
|
|
89
|
+
|
|
90
|
+
Closing the connection cancels the request: the command stops, and a claim
|
|
91
|
+
that hadn't taken a task yet takes nothing.
|
|
92
|
+
|
|
93
|
+
### Protocol revisions
|
|
94
|
+
|
|
95
|
+
Both `mu mcp` and the route speak revision 2026-07-28 and the earlier
|
|
96
|
+
2025-11-25, 2025-06-18 and 2025-03-26:
|
|
97
|
+
|
|
98
|
+
- **2026-07-28:** no `initialize`. Every request carries
|
|
99
|
+
`io.modelcontextprotocol/protocolVersion` and
|
|
100
|
+
`io.modelcontextprotocol/clientCapabilities` in `params._meta`, and
|
|
101
|
+
`server/discover` answers which revisions and extensions there are. Over
|
|
102
|
+
HTTP, the headers `MCP-Protocol-Version`, `Mcp-Method` and, where the
|
|
103
|
+
method has one, `Mcp-Name` repeat the body: the tool name for
|
|
104
|
+
`tools/call`, the event name for `events/*`, the task ID for `tasks/*`.
|
|
105
|
+
- **Earlier revisions:** a request with no version in `_meta` is answered as
|
|
106
|
+
before, after `initialize`, with neither extension.
|
|
107
|
+
|
|
108
|
+
### Events and tasks
|
|
109
|
+
|
|
110
|
+
These methods are offered to 2026-07-28 clients only:
|
|
111
|
+
|
|
112
|
+
| Method | What it does |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| `events/list` | Names `board.event`, `message.posted` and `task.changed`, each with the filters `mu tail` takes as its `inputSchema` |
|
|
115
|
+
| `events/poll` | What matched after a cursor: at most `maxEvents` (100, up to 200), with `hasMore`. A `null` cursor starts from now |
|
|
116
|
+
| `events/stream` | `notifications/events/active`, then each event as it is written, and a heartbeat every `heartbeatMs` (30s, within 5s and 60s) while quiet |
|
|
117
|
+
| `tasks/get` | A task's status, and its tool result once completed |
|
|
118
|
+
| `tasks/cancel` | Stops a task. A finished one nobody read gives back what it claimed |
|
|
119
|
+
| `tasks/update` | Accepted; these tasks never ask for input |
|
|
120
|
+
| `subscriptions/listen` | With `notifications.taskIds`: acknowledged, then `notifications/tasks` for each change, ending once every task it follows has finished |
|
|
121
|
+
|
|
122
|
+
A tool call that waits answers with `resultType: "task"` when the request
|
|
123
|
+
declares `io.modelcontextprotocol/tasks` in its capabilities. A token runs at
|
|
124
|
+
most 16 tasks at once, whatever profile each names; past that, a call waits
|
|
125
|
+
inside itself as it would without the extension. A token holds at most 8
|
|
126
|
+
streams. An event's
|
|
127
|
+
`eventId` and cursor are its place in the board's log. A cursor the board
|
|
128
|
+
never gave starts again from now, with `truncated: true`.
|
|
129
|
+
|
|
130
|
+
| Code | When |
|
|
131
|
+
| --- | --- |
|
|
132
|
+
| `-32020` | A header disagrees with the body, or one the method needs is missing |
|
|
133
|
+
| `-32021` | A `tasks/*` request from a client that doesn't declare the tasks extension |
|
|
134
|
+
| `-32022` | A revision the server doesn't speak; `data.supported` lists those it does |
|
|
135
|
+
| `-32023` | An event name `events/list` doesn't give |
|
|
136
|
+
| `-32024` | The token may not read what the subscription asks for, or was revoked: a stream ends with `notifications/events/terminated` |
|
|
137
|
+
| `-32025` | A ninth stream for one token |
|
|
138
|
+
| `-32602` | A malformed request, an argument an event doesn't take, or a task ID that names none of the caller's |
|
|
88
139
|
|
|
89
140
|
A request body is at most 36 MB, the room one file needs. A webhook's body,
|
|
90
141
|
which is read before anything can say who sent it, is at most 1 MB.
|
|
@@ -101,8 +101,12 @@ claimed answers `task_ready`, with the claim to run first.
|
|
|
101
101
|
| `too_many_attachments` | Over 10 files on a message |
|
|
102
102
|
| `file_too_large` | A file over 25 MB |
|
|
103
103
|
| `file_allowance` | A narrowed token has stored its day's allowance of files |
|
|
104
|
-
| `unknown_file` | A file the board doesn't have: attach it
|
|
104
|
+
| `unknown_file` | A file the board doesn't have, or one this token may not attach: attach it with `--attach` |
|
|
105
105
|
| `invalid_file` | A file needs a name, and its name and type are at most 255 characters each |
|
|
106
|
+
| `files_elsewhere` | The board keeps its files in a store this process wasn't given, or in another: use the server that has it |
|
|
107
|
+
| `files_unreachable` | The board's file store couldn't be reached. Try again |
|
|
108
|
+
| `file_corrupt` | The file store gave back bytes that aren't the file |
|
|
109
|
+
| `invalid_files` | `s3Files()` was given a bucket, prefix or endpoint that isn't one, or plain http to another machine |
|
|
106
110
|
| `no_such_file` | No file at that path |
|
|
107
111
|
| `no_files` | That message carries none |
|
|
108
112
|
| `unknown_schema` | A block names a schema nobody registered |
|
|
@@ -11,14 +11,16 @@ mu conformance --dir ./scratch
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
It runs the checks through whatever board the command points at, in a channel
|
|
14
|
-
of its own named `conformance/<something>`. It writes real messages and
|
|
15
|
-
point it at a scratch board. It
|
|
14
|
+
of its own named `conformance/<something>`. It writes real messages, tasks and
|
|
15
|
+
a file: point it at a scratch board. It cancels the schedule it makes, and
|
|
16
|
+
leaves the schema `conformance@1` registered, because a schema version is never
|
|
17
|
+
removed. It exits 1 if any check fails.
|
|
16
18
|
|
|
17
19
|
```text
|
|
18
20
|
pass a post is a thread root written by its caller
|
|
19
21
|
pass a reply to a reply lands on the root
|
|
20
22
|
...
|
|
21
|
-
|
|
23
|
+
29 of 29 passed
|
|
22
24
|
```
|
|
23
25
|
|
|
24
26
|
## What it checks
|
|
@@ -32,6 +34,14 @@ pass a reply to a reply lands on the root
|
|
|
32
34
|
another's message.
|
|
33
35
|
- A cursor shows only what came after it; the feed resumes with no gap or
|
|
34
36
|
repeat.
|
|
37
|
+
- A channel's threads page back by `older`, each thread once; the channel is
|
|
38
|
+
listed under its parent.
|
|
39
|
+
- Search finds a message by a word in it, in any case, within a channel; a
|
|
40
|
+
delete leaves a tombstone that search no longer finds.
|
|
41
|
+
- A file reads back as it was stored, only through the message that carries
|
|
42
|
+
it.
|
|
43
|
+
- A schedule is listed until it is canceled.
|
|
44
|
+
- A schema version is registered once and never changes.
|
|
35
45
|
- A task is ready, or waits for what it needs; one claim at a time; a write
|
|
36
46
|
without the claim's token changes nothing; completing readies what waited.
|
|
37
47
|
- A claim's secret is not in the feed.
|
|
@@ -39,6 +49,7 @@ pass a reply to a reply lands on the root
|
|
|
39
49
|
- A task made held is blocked from the start, and no claim takes it.
|
|
40
50
|
- A feed keeps or leaves out blocks by their kind.
|
|
41
51
|
- The last active tasks are listed on request, the latest last.
|
|
52
|
+
- A file is never named as a dotfile, on its own or on a message.
|
|
42
53
|
- What does not exist is not found.
|
|
43
54
|
|
|
44
55
|
## From code
|
|
@@ -50,5 +61,6 @@ const checks = await conformance(board({ memory: true }))
|
|
|
50
61
|
const failed = checks.filter((check) => !check.ok)
|
|
51
62
|
```
|
|
52
63
|
|
|
53
|
-
Both of muster's backends pass it,
|
|
54
|
-
|
|
64
|
+
Both of muster's backends pass it: `pnpm test` runs it, with the larger test
|
|
65
|
+
suite, against a board on a file and against the same board behind
|
|
66
|
+
`mu serve`. A backend of your own is right when it passes too.
|
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.7",
|
|
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": {
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"build": "tsdown && node scripts/copy-skills.mjs",
|
|
51
51
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
52
52
|
"test:browser": "vitest run -c vitest.browser.config.ts",
|
|
53
|
-
"test": "vitest run && MUSTER_BACKEND=http vitest run test/messages.test.ts test/reading.test.ts test/tasks.test.ts test/daemon.test.ts test/blocks.test.ts test/hooks.test.ts test/inbox.test.ts -t '^(messages|reading|tasks|schedules|typed blocks|outgoing webhooks|events for one profile) '"
|
|
53
|
+
"test": "vitest run && MUSTER_BACKEND=http vitest run test/messages.test.ts test/reading.test.ts test/tasks.test.ts test/daemon.test.ts test/blocks.test.ts test/hooks.test.ts test/inbox.test.ts test/conformance.test.ts -t '^(messages|reading|tasks|schedules|typed blocks|outgoing webhooks|events for one profile|conformance) '"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/dist/main-o4m_lGDG.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { D as VERSION } from "./args-CaFBa2IP.js";
|
|
2
|
-
import "./steps-cnWo2Wvx.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-3kE64MlN.js";
|
|
4
|
-
import "./module-D9KdbEpS.js";
|
|
5
|
-
|
|
6
|
-
export { SPECS, VERSION, agentPrompt, agentToken, attend, main, meantCommand, repoUrl };
|