@openmuster/muster 0.3.1-alpha.2 → 0.3.1-alpha.3
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 +13 -13
- package/dist/{args-DHgAmYge.js → args-DX9QSK1f.js} +1 -1
- package/dist/cli.js +5 -5
- package/dist/index.js +16 -3
- package/dist/main-CdVlnWHy.js +6 -0
- package/dist/{main-A4nHL5oa.js → main-DgrIMbeA.js} +3 -3
- package/dist/mcp-NueWYyQs.js +6 -0
- package/dist/{module-CT_R33MB.js → module-C-HJjWWo.js} +2 -2
- package/dist/{module-DOkWwWoU.js → module-CxoN1MOe.js} +1 -1
- package/dist/{steps-ByzmEzLQ.js → steps-DtzUdcBE.js} +1 -1
- package/docs/01-concepts/01-overview.md +7 -2
- package/docs/01-concepts/02-boards.md +4 -4
- package/docs/01-concepts/03-channels.md +1 -1
- package/docs/01-concepts/04-threads.md +1 -3
- package/docs/01-concepts/05-labels.md +1 -1
- package/docs/01-concepts/06-actors.md +1 -1
- package/docs/01-concepts/07-events.md +11 -4
- package/docs/01-concepts/08-tasks.md +8 -4
- package/docs/01-concepts/09-watchers.md +7 -4
- package/docs/01-concepts/10-schedules.md +1 -1
- package/docs/01-concepts/11-access.md +46 -43
- package/docs/01-concepts/12-files-and-data.md +1 -1
- package/docs/01-concepts/13-budgets.md +1 -1
- package/docs/01-concepts/14-runners.md +9 -8
- package/docs/01-concepts/15-outgoing-webhooks.md +2 -2
- package/docs/01-concepts/16-workflows.md +6 -6
- package/docs/01-concepts/17-board-module.md +8 -6
- package/docs/01-quickstart.md +5 -6
- package/docs/02-sync/01-overview.md +33 -26
- package/docs/02-sync/02-github.md +5 -4
- package/docs/02-sync/03-linear.md +21 -21
- package/docs/02-sync/04-slack.md +7 -11
- package/docs/02-sync/05-notion.md +3 -1
- package/docs/02-sync/meta.json +4 -0
- package/docs/03-guides/01-coding-agents.md +2 -2
- package/docs/03-guides/02-swarm.md +4 -4
- package/docs/03-guides/03-factory.md +1 -5
- package/docs/03-guides/04-inspector.md +17 -1
- package/docs/03-guides/05-running-agents.md +13 -1
- package/docs/03-guides/06-sandboxed-agents.md +15 -29
- package/docs/03-guides/07-build-a-ui.md +21 -2
- package/docs/03-guides/08-ci.md +13 -5
- package/docs/03-guides/09-daemon.md +6 -5
- package/docs/03-guides/10-two-agents.md +1 -1
- package/docs/03-guides/11-person-in-the-loop.md +1 -1
- package/docs/03-guides/12-unattended.md +1 -1
- package/docs/03-guides/13-terminals.md +4 -5
- package/docs/03-guides/14-no-cloud.md +1 -1
- package/docs/03-guides/15-several-boards.md +21 -2
- package/docs/03-guides/16-non-code.md +12 -3
- package/docs/03-guides/17-mcp.md +2 -6
- package/docs/03-guides/18-a-board-on-a-server.md +1 -1
- package/docs/03-guides/19-a-card-queue.md +22 -22
- package/docs/03-guides/20-a-feedback-loop.md +14 -6
- package/docs/03-guides/21-running-the-loop.md +16 -9
- package/docs/03-guides/22-building-from-linear.md +326 -0
- package/docs/03-guides/meta.json +32 -0
- package/docs/04-reference/01-cli.md +1 -1
- package/docs/04-reference/02-handle.md +4 -3
- package/docs/04-reference/03-http.md +3 -2
- package/docs/04-reference/04-events.md +1 -1
- package/docs/04-reference/05-errors.md +3 -3
- package/docs/04-reference/06-conformance.md +4 -2
- package/docs/04-reference/07-porting.md +1 -1
- package/docs/index.md +39 -24
- package/docs/meta.json +3 -0
- package/package.json +1 -1
- package/dist/main-CuIC8iF4.js +0 -6
- package/dist/mcp-GkdeWAnr.js +0 -6
package/README.md
CHANGED
|
@@ -26,9 +26,8 @@ mu demo
|
|
|
26
26
|
In a project, `npm i @openmuster/muster` and run it as `npx mu` there. Outside
|
|
27
27
|
one, use `npx @openmuster/muster`: `mu` on npm is not muster.
|
|
28
28
|
|
|
29
|
-
To pin a version, name it: `npm install -g @openmuster/muster@0.3.1-alpha.
|
|
30
|
-
|
|
31
|
-
release is also a tarball on GitHub, which npm installs from its URL:
|
|
29
|
+
To pin a version, name it: `npm install -g @openmuster/muster@0.3.1-alpha.3`.
|
|
30
|
+
Every release is also a tarball on GitHub, which npm installs from its URL:
|
|
32
31
|
`https://github.com/openmuster/muster/releases/latest/download/muster.tgz`.
|
|
33
32
|
|
|
34
33
|
To upgrade, run the install line again; `mu --version` says what you have, and
|
|
@@ -121,7 +120,7 @@ run it: `mu daemon run`, `mu serve`, or your own process. See
|
|
|
121
120
|
[Watchers](./packages/muster/docs/01-concepts/09-watchers.md) and
|
|
122
121
|
[The board module](./packages/muster/docs/01-concepts/17-board-module.md).
|
|
123
122
|
|
|
124
|
-
## Sync Slack, GitHub, and
|
|
123
|
+
## Sync Slack, GitHub, Linear, and Notion
|
|
125
124
|
|
|
126
125
|
```ts
|
|
127
126
|
// ~/.config/muster/board.ts
|
|
@@ -218,9 +217,8 @@ writing as you. See
|
|
|
218
217
|
| Clones `--repo` | No | Yes, with dependencies | Yes, with dependencies (pnpm, npm, yarn) | Yes, with dependencies |
|
|
219
218
|
| `--push` opens a pull request | No | Yes | Yes | Yes |
|
|
220
219
|
| A worker's tasks each get their own | Process | Sandbox | Container | Sandbox |
|
|
221
|
-
| Registered workflows | Yes | Yes | Yes |
|
|
222
|
-
|
|
|
223
|
-
| Run for real with | Claude Code, Codex | Claude Code | Claude Code |
|
|
220
|
+
| Registered workflows | Yes | Yes | Yes | Yes |
|
|
221
|
+
| Run for real with | Claude Code, Codex | Claude Code | Claude Code | Claude Code, Codex |
|
|
224
222
|
|
|
225
223
|
The full comparison is in
|
|
226
224
|
[Runners](./packages/muster/docs/01-concepts/14-runners.md#what-each-runner-does).
|
|
@@ -239,14 +237,14 @@ writing as you. See
|
|
|
239
237
|
- **Registered workflows:** a named plan of tasks and workers you register
|
|
240
238
|
once, and a named person starts with `mu workflow run`. Since 0.2.1
|
|
241
239
|
([Workflows](./packages/muster/docs/01-concepts/16-workflows.md)).
|
|
242
|
-
- **Sync** with GitHub, Linear and
|
|
243
|
-
run against the live services.
|
|
240
|
+
- **Sync** with GitHub, Linear, Slack and Notion, by webhook. GitHub, Linear
|
|
241
|
+
and Slack have been run against the live services.
|
|
244
242
|
- **Pages:** `mu inspect`, and two apps to fork in `templates/`: a swarm
|
|
245
243
|
launcher with a live view, and a factory page.
|
|
246
244
|
- **A card queue** to copy from `templates/queue`: a Linear issue labelled
|
|
247
245
|
`agent` gets a spec, a pull request and a review from agents in Vercel
|
|
248
|
-
sandboxes, and you answer only what they ask. Since 0.3.0
|
|
249
|
-
|
|
246
|
+
sandboxes, and you answer only what they ask. Since 0.3.0
|
|
247
|
+
([A card queue](./packages/muster/docs/03-guides/19-a-card-queue.md)).
|
|
250
248
|
- **Skills** that teach an agent the board: `mu skills install`, or
|
|
251
249
|
`npx skills add openmuster/muster --skill board -g`.
|
|
252
250
|
- **For agents with no shell,** the board as one MCP tool: `mu mcp`, or over
|
|
@@ -269,7 +267,7 @@ been used against the real thing, and what has not.
|
|
|
269
267
|
| `mu run --runner cloudflare` and its Worker template | Deployed and run live on 24 Nov 2026 against a scratch board through a tunnel. Run: the Worker refusing a request without its secret; a container started with no internet, reaching the board only through the Worker, which added the token; a private repository cloned with a GitHub App read token added by the Worker, and GitHub closed to the container after the clone; the run's own `mu` replying and completing the task; the container removed when the agent exited; and the Worker adding the model's key to Claude Code's calls, the key never in the container. Claude Code then did two tasks end to end: a check of its tools, and, in the private repository, a failing test written first, the bug fixed and the tests passing offline. It found that Cloudflare's default container size, `lite` (256 MiB), stalls an agent without failing; the Worker now starts `standard-1`. `--push` run the same day: Claude Code fixed a bug in the private repository, `mu run` waited for it, the Worker closed the container's every way out and stopped what was left running, the change was read out as a bundle and pushed from this machine to `mu/task-<id>`, and the pull request was opened by the App. After closing, a probe from inside reached nothing: the board's host refused, and other hosts, plain HTTP, a raw IP and DNS all failed. |
|
|
270
268
|
| Sync with GitHub | Run against a live private repository on 22 Nov 2026, through a public tunnel: issues, comments both ways, edits, deletes, close and reopen, a thread started on the board opening an issue, pull requests, CI results, a review, a merge, forged and unsigned webhooks refused, and catch-up after downtime. It found two faults, both fixed in the pre-release after 0.2.0-alpha.2. Not tried: approving or requesting changes, which needs a reviewer other than the author. Labels and assignees arriving as `tag.*` and `assignee.*` (since 0.2.1): covered by tests, not yet run live |
|
|
271
269
|
| Sync with Slack | Run against a live workspace on 22 Nov 2026, through a public tunnel: the URL check, a channel message becoming a thread, replies both ways, edits and deletes both ways, a thread started on the board posted to the channel, `--no-sync` kept on the board, the app's own messages not imported back, and a signed request more than five minutes old refused. No faults found. Not tried live: a Slack reply inside a thread the board started, which a test covers. Catch-up after downtime came later and is covered by tests only |
|
|
272
|
-
| Sync with Linear | Run against a live workspace on 22 Nov 2026, through a public tunnel, with a personal API key: an issue becoming a thread, comments as replies, comment edits and deletes, state changes as the `state` label, a board reply posted as a comment, and a thread started on the board opening an issue. No faults found. Reading the code during the run turned up a race, a board reply or thread coming back as a second copy when Linear's webhook beats its API answer; a test reproduces it and #44 fixes it, not yet run live.
|
|
270
|
+
| Sync with Linear | Run against a live workspace on 22 Nov 2026, through a public tunnel, with a personal API key: an issue becoming a thread, comments as replies, comment edits and deletes, state changes as the `state` label, a board reply posted as a comment, and a thread started on the board opening an issue. No faults found. Reading the code during the run turned up a race, a board reply or thread coming back as a second copy when Linear's webhook beats its API answer; a test reproduces it and #44 fixes it, not yet run live. An OAuth app's comment on an issue, and its agent session calls, were run live on 26 Nov 2026. Not tried live: a forged webhook refused, which a test covers. Catch-up after downtime came later and is covered by tests only. Labels, assignee, priority and project arriving as labels (since 0.2.1): covered by tests against payloads written by hand, not yet run live |
|
|
273
271
|
| Sync writing as an app, and a thread shown as worked on | Run live on 26 Nov 2026, through a public tunnel: a comment on a GitHub issue written by a GitHub App, a comment on a Linear issue written by an OAuth application with a client credentials token, and Slack showing "is working" under a thread a person started while a run on it was open, gone when the run was summed up. Not run live: a token being renewed, a run longer than Slack's hour, a private Slack channel |
|
|
274
272
|
| `mu mcp` | Used once with Claude Code as the client |
|
|
275
273
|
| MCP over HTTP on `mu serve` | Connected once with Claude Code as the client; no other client was tried |
|
|
@@ -284,7 +282,9 @@ been used against the real thing, and what has not.
|
|
|
284
282
|
| Outgoing webhooks | Working, by tests against a real HTTP receiver on the same machine: deliveries checked with the verify code the docs print, a changed body, another secret and a late replay refused, retries after a 4xx, 5xx, timeout or refused connection, a restart resuming from the cursor, an event passed over after eight tries, redirects not followed, and one hook's dead receiver not holding up another. Not sent to a third-party service |
|
|
285
283
|
| Registered workflows | Covered by tests, security-reviewed; not yet run live |
|
|
286
284
|
| `mu run --ready --loop --runner cloudflare`, a container per task, and workflows on Cloudflare | Covered by tests against a stand-in Worker and GitHub; not run live |
|
|
287
|
-
| `mu run --runner e2b` and `templates/e2b-runner` | Run live on 26 Nov 2026 against a scratch board through a tunnel, on E2B's Hobby plan, with Claude Code. Run: the template built; a task worked from start to end with the board's token and the model's key stored at E2B for the run and gone after, the sandbox removed and the agent's token revoked; inside, the environment held placeholders, schedules, cursors, tokens, joins and the feed were refused by the board, and no other host was reached; a private repository cloned with a GitHub App's read token and its dependencies installed; `--push` opening a pull request; a `--ready --loop` worker giving two tasks a sandbox and a pull request each; a kept snapshot made by one run and started from by the next. Checked on E2B itself: a credential is added only to the host it is for, a secret that is removed stops being added at once, and closing a sandbox's way out leaves open connections open, which is why the runner ends what an install left running. Also run, on 27 Nov 2026: a registered workflow, its work step opening a pull request and its review step after it, each in a sandbox; Codex,
|
|
285
|
+
| `mu run --runner e2b` and `templates/e2b-runner` | Run live on 26 Nov 2026 against a scratch board through a tunnel, on E2B's Hobby plan, with Claude Code. Run: the template built; a task worked from start to end with the board's token and the model's key stored at E2B for the run and gone after, the sandbox removed and the agent's token revoked; inside, the environment held placeholders, schedules, cursors, tokens, joins and the feed were refused by the board, and no other host was reached; a private repository cloned with a GitHub App's read token and its dependencies installed; `--push` opening a pull request; a `--ready --loop` worker giving two tasks a sandbox and a pull request each; a kept snapshot made by one run and started from by the next. Checked on E2B itself: a credential is added only to the host it is for, a secret that is removed stops being added at once, and closing a sandbox's way out leaves open connections open, which is why the runner ends what an install left running. Also run, on 27 Nov 2026: a registered workflow, its work step opening a pull request and its review step after it, each in a sandbox; Codex, from a template built with `@openai/codex`: a task worked from start to end, and one in a private repository with `--push` opening a pull request. Not run: a self-hosted E2B |
|
|
286
|
+
| A card queue, `templates/queue` | Run live on 25 Nov 2026, by hand and from Linear |
|
|
287
|
+
| Another round on the same pull request, and `templates/loop` | Run live on 25 Nov 2026 against a scratch board through a tunnel, Claude Code in Vercel sandboxes, on a private repository with a GitHub App. A report posted with an app's token, held for triage, triaged by an agent into a title and a spec, worked by the `card` workflow (spec, work, review) as a pull request; a reply on the card sent the work and its review back, the second round started on `mu/task-<id>` and added a commit to the same pull request, and the review applied both rounds' changes in order. The same from a Linear issue: the spec and the run's summaries as comments on it, and a comment on the issue starting the second round on its pull request. An untrusted author's report held for approval: its own `approved=yes` did nothing, the owner's started the work. Not run live: Slack, GitHub issues, screenshots relayed to a card, a refused push (`push_conflict`), a Cloudflare runner on a branch |
|
|
288
288
|
|
|
289
289
|
[SPEC.md](./SPEC.md) is the design and lists what is not built.
|
|
290
290
|
|
|
@@ -3531,7 +3531,7 @@ function changedSince(ctx, message, name, at) {
|
|
|
3531
3531
|
/** Imports one event. Returns a line saying so when it is late, and skipped. */
|
|
3532
3532
|
function importOne(ctx, provider, key, event) {
|
|
3533
3533
|
if (event.self) return;
|
|
3534
|
-
const thing = event.kind === "labels" ? event.thread : event.external;
|
|
3534
|
+
const thing = event.kind === "labels" ? event.thread : event.kind === "edit" && event.external === event.thread ? `${event.thread}:text` : event.external;
|
|
3535
3535
|
if (event.kind === "labels" || event.kind === "edit") {
|
|
3536
3536
|
const skip = late(ctx, key, thing, event.updated);
|
|
3537
3537
|
if (skip) return skip;
|
package/dist/cli.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/bin.ts
|
|
5
|
+
const stop = new AbortController();
|
|
6
|
+
for (const signal of ["SIGINT", "SIGTERM"]) process.on(signal, () => stop.abort(signal));
|
|
5
7
|
const emitWarning = process.emitWarning;
|
|
6
8
|
process.emitWarning = ((warning, ...rest) => {
|
|
7
9
|
if ((typeof warning === "string" ? warning : warning.message).includes("SQLite is an experimental feature")) return;
|
|
8
10
|
return emitWarning.call(process, warning, ...rest);
|
|
9
11
|
});
|
|
10
|
-
await (await import("./module-
|
|
11
|
-
const { main } = await import("./main-
|
|
12
|
+
await (await import("./module-C-HJjWWo.js")).prepare(process.argv.slice(2), process.env);
|
|
13
|
+
const { main } = await import("./main-CdVlnWHy.js");
|
|
12
14
|
if (process.argv[2] === "mcp" && process.argv.length === 3) {
|
|
13
|
-
const { mcp } = await import("./mcp-
|
|
15
|
+
const { mcp } = await import("./mcp-NueWYyQs.js");
|
|
14
16
|
await mcp(process.stdin, process.stdout, process.env, main);
|
|
15
17
|
process.exit(0);
|
|
16
18
|
}
|
|
17
|
-
const stop = new AbortController();
|
|
18
|
-
for (const signal of ["SIGINT", "SIGTERM"]) process.on(signal, () => stop.abort(signal));
|
|
19
19
|
const code = await main(process.argv.slice(2), {
|
|
20
20
|
out: (text) => void process.stdout.write(text + "\n"),
|
|
21
21
|
err: (text) => void process.stderr.write(text + "\n"),
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as file, B as fetchFile, G as SEND_MS, H as refused, M as mint, N as verify, Q as channelPath, R as declared, S as listen, U as sizeOf, V as noteOut, W as withLines, b as createHandler, d as board, it as misuse, j as boardKey, k as boardPath, rt as Failure, w as SANDBOX_ROUTES, z as env } from "./args-
|
|
2
|
-
import { A as claude, C as boardPolicy, D as agentEnv, F as conformance, M as generic, O as runLocal, P as http, S as applyPolicy, T as installationToken, a as workflowResult, d as workflowsPath, f as e2b, h as vercel, j as codex, k as AGENTS, m as cloudflare, o as fenced, u as loadWorkflows, w as githubApp } from "./steps-
|
|
1
|
+
import { A as file, B as fetchFile, G as SEND_MS, H as refused, M as mint, N as verify, Q as channelPath, R as declared, S as listen, U as sizeOf, V as noteOut, W as withLines, b as createHandler, d as board, it as misuse, j as boardKey, k as boardPath, rt as Failure, w as SANDBOX_ROUTES, z as env } from "./args-DX9QSK1f.js";
|
|
2
|
+
import { A as claude, C as boardPolicy, D as agentEnv, F as conformance, M as generic, O as runLocal, P as http, S as applyPolicy, T as installationToken, a as workflowResult, d as workflowsPath, f as e2b, h as vercel, j as codex, k as AGENTS, m as cloudflare, o as fenced, u as loadWorkflows, w as githubApp } from "./steps-DtzUdcBE.js";
|
|
3
3
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { basename, dirname, join } from "node:path";
|
|
@@ -855,7 +855,7 @@ function linearWith(options) {
|
|
|
855
855
|
text: opener.text ?? "",
|
|
856
856
|
labels: opener.labels ?? {}
|
|
857
857
|
} } : {};
|
|
858
|
-
|
|
858
|
+
const labelled = {
|
|
859
859
|
id: delivery,
|
|
860
860
|
author,
|
|
861
861
|
place: String(data.team?.key ?? ""),
|
|
@@ -870,6 +870,19 @@ function linearWith(options) {
|
|
|
870
870
|
},
|
|
871
871
|
...parent,
|
|
872
872
|
...updated
|
|
873
|
+
};
|
|
874
|
+
const from = payload.updatedFrom ?? {};
|
|
875
|
+
if (!(typeof data.title === "string" && ("title" in from || "description" in from))) return [labelled];
|
|
876
|
+
return [labelled, {
|
|
877
|
+
id: `${delivery}:text`,
|
|
878
|
+
author,
|
|
879
|
+
place: labelled.place,
|
|
880
|
+
self,
|
|
881
|
+
kind: "edit",
|
|
882
|
+
thread: `issue:${data.id}`,
|
|
883
|
+
external: `issue:${data.id}`,
|
|
884
|
+
text: `${data.title}\n\n${data.description ?? ""}`.trim(),
|
|
885
|
+
...updated
|
|
873
886
|
}];
|
|
874
887
|
}
|
|
875
888
|
if (payload.type === "Comment" && (payload.action === "update" || payload.action === "remove")) return [{
|
|
@@ -0,0 +1,6 @@
|
|
|
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 +1,6 @@
|
|
|
1
|
-
import { A as file, C as ROUTES, D as releaseTarball, E as VERSION, F as dropClaim, I as heldClaim, K as processStart, L as keepClaim, O as loadOidc, P as configDir, S as listen, T as RELEASE_HOSTS, Z as actorId, _ as why, a as on, c as str, d as board, f as syncLoop, g as ping, h as armHooks, i as list, it as misuse, j as boardKey, k as boardPath, m as HOOKS_LEASE, n as duration, nt as profileName, o as pairs, p as DROPPED, r as id, rt as Failure, s as parse, t as cursor, tt as labelFilter, u as ROOT, v as holdLease, x as isLoopback } from "./args-
|
|
2
|
-
import { E as KEEP_LOGS_MS, F as conformance, M as generic, N as isSessionId, O as runLocal, P as http, T as installationToken, _ as BUNDLE_MAX, b as openPullRequest, c as runWorkflows, d as workflowsPath, f as e2b, g as BUNDLE, h as vercel, i as pushesTask, k as AGENTS, l as spawnWorker, m as cloudflare, n as fillResults, p as SANDBOX_ENV, r as pullTitle, s as openRuns, t as FillRefused, u as loadWorkflows, v as branchState, w as githubApp, x as pushBundle, y as githubRepo } from "./steps-
|
|
3
|
-
import { C as begin, D as reset, E as readGuard, O as retryAt, S as STEADY_AFTER, T as guardPath, b as RESTART_LIMIT, c as chooseModule, d as invokedAs, f as launchGuard, k as steady, l as defaultModule, m as loadsModule, p as loadBoard, s as SERVE_SPEC, t as DAEMON_SPEC, u as endLaunch, v as refusal, w as ended, x as RESTART_WINDOW, y as self } from "./module-
|
|
1
|
+
import { A as file, C as ROUTES, D as releaseTarball, E as VERSION, F as dropClaim, I as heldClaim, K as processStart, L as keepClaim, O as loadOidc, P as configDir, S as listen, T as RELEASE_HOSTS, Z as actorId, _ as why, a as on, c as str, d as board, f as syncLoop, g as ping, h as armHooks, i as list, it as misuse, j as boardKey, k as boardPath, m as HOOKS_LEASE, n as duration, nt as profileName, o as pairs, p as DROPPED, r as id, rt as Failure, s as parse, t as cursor, tt as labelFilter, u as ROOT, v as holdLease, x as isLoopback } from "./args-DX9QSK1f.js";
|
|
2
|
+
import { E as KEEP_LOGS_MS, F as conformance, M as generic, N as isSessionId, O as runLocal, P as http, T as installationToken, _ as BUNDLE_MAX, b as openPullRequest, c as runWorkflows, d as workflowsPath, f as e2b, g as BUNDLE, h as vercel, i as pushesTask, k as AGENTS, l as spawnWorker, m as cloudflare, n as fillResults, p as SANDBOX_ENV, r as pullTitle, s as openRuns, t as FillRefused, u as loadWorkflows, v as branchState, w as githubApp, x as pushBundle, y as githubRepo } from "./steps-DtzUdcBE.js";
|
|
3
|
+
import { C as begin, D as reset, E as readGuard, O as retryAt, S as STEADY_AFTER, T as guardPath, b as RESTART_LIMIT, c as chooseModule, d as invokedAs, f as launchGuard, k as steady, l as defaultModule, m as loadsModule, p as loadBoard, s as SERVE_SPEC, t as DAEMON_SPEC, u as endLaunch, v as refusal, w as ended, x as RESTART_WINDOW, y as self } from "./module-CxoN1MOe.js";
|
|
4
4
|
import { chmodSync, cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { homedir, tmpdir } from "node:os";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./args-
|
|
2
|
-
import { _ as prepare, a as REEXEC_DEPTH, c as chooseModule, d as invokedAs, f as launchGuard, g as plan, h as musterFor, i as REEXEC, l as defaultModule, m as loadsModule, n as LAUNCH, o as REEXEC_FROM, p as loadBoard, r as MODULE_PROTOCOL, s as SERVE_SPEC, t as DAEMON_SPEC, u as endLaunch, v as refusal, y as self } from "./module-
|
|
1
|
+
import "./args-DX9QSK1f.js";
|
|
2
|
+
import { _ as prepare, a as REEXEC_DEPTH, c as chooseModule, d as invokedAs, f as launchGuard, g as plan, h as musterFor, i as REEXEC, l as defaultModule, m as loadsModule, n as LAUNCH, o as REEXEC_FROM, p as loadBoard, r as MODULE_PROTOCOL, s as SERVE_SPEC, t as DAEMON_SPEC, u as endLaunch, v as refusal, y as self } from "./module-CxoN1MOe.js";
|
|
3
3
|
|
|
4
4
|
export { DAEMON_SPEC, LAUNCH, MODULE_PROTOCOL, REEXEC, REEXEC_DEPTH, REEXEC_FROM, SERVE_SPEC, chooseModule, defaultModule, endLaunch, invokedAs, launchGuard, loadBoard, loadsModule, musterFor, plan, prepare, refusal, self };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as VERSION, P as configDir, it as misuse, l as COPY, rt as Failure, s as parse } from "./args-
|
|
1
|
+
import { E as VERSION, P as configDir, it as misuse, l as COPY, rt as Failure, s as parse } from "./args-DX9QSK1f.js";
|
|
2
2
|
import { registerHooks } from "node:module";
|
|
3
3
|
import { chmodSync, existsSync, mkdirSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { constants } from "node:os";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as channelScope, C as ROUTES, J as LIMITS, P as configDir, X as WORKFLOWS_PROFILE, Y as PROGRESS, Z as actorId, et as inScope, n as duration, q as OPEN_STATES, rt as Failure, w as SANDBOX_ROUTES, y as MOUNT } from "./args-
|
|
1
|
+
import { $ as channelScope, C as ROUTES, J as LIMITS, P as configDir, X as WORKFLOWS_PROFILE, Y as PROGRESS, Z as actorId, et as inScope, n as duration, q as OPEN_STATES, rt as Failure, w as SANDBOX_ROUTES, y as MOUNT } from "./args-DX9QSK1f.js";
|
|
2
2
|
import { chmodSync, closeSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, rmSync, statSync } from "node:fs";
|
|
3
3
|
import { tmpdir } from "node:os";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Concepts
|
|
3
|
-
description:
|
|
3
|
+
description: A board holds channels, threads, tasks, events and actors. How they fit together, how work moves between a person and an agent, and when to use one agent, two, or a swarm.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## The shape of a board
|
|
@@ -30,8 +30,13 @@ it waits for something, or it moves a task.
|
|
|
30
30
|
| Watcher | A rule that runs your command when something happens | [Watchers](./09-watchers.md) |
|
|
31
31
|
| Schedule | A message sent later, or on repeat | [Schedules](./10-schedules.md) |
|
|
32
32
|
| Access | Who may read and write: trust modes, tokens, private channels | [Access](./11-access.md) |
|
|
33
|
+
| Files and typed data | Files on a message, and JSON blocks the board checks | [Files and typed data](./12-files-and-data.md) |
|
|
34
|
+
| Budget | A cap on what the tasks under a channel may cost | [Budgets](./13-budgets.md) |
|
|
33
35
|
| Runner | What starts an agent on a task: here, or in a cloud sandbox | [Runners](./14-runners.md) |
|
|
34
|
-
|
|
|
36
|
+
| Outgoing webhook | Board events POSTed to a URL of yours, signed | [Outgoing webhooks](./15-outgoing-webhooks.md) |
|
|
37
|
+
| Workflow | A plan of tasks and a crew of workers you start on a thread | [Workflows](./16-workflows.md) |
|
|
38
|
+
| Board module | One file that declares a board's watchers, sync and webhooks | [The board module and hosts](./17-board-module.md) |
|
|
39
|
+
| Sync | Threads mirrored with GitHub, Linear, Slack or Notion | [Sync](../02-sync/01-overview.md) |
|
|
35
40
|
|
|
36
41
|
## How work moves
|
|
37
42
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Boards and backends
|
|
3
|
-
description:
|
|
3
|
+
description: A board is one SQLite file, or a board behind mu serve reached over HTTP. Choose which board a command uses, see how writes are kept safe, and pick between the file() and http() backends.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## A board is a file
|
|
@@ -29,10 +29,10 @@ mu read general --dir ./.muster
|
|
|
29
29
|
is the cursor everything reads by. Events are never changed or removed.
|
|
30
30
|
- **Tables follow the log.** Messages, tasks and the rest are tables updated in
|
|
31
31
|
the same transaction as the event. Rebuilding them from the log alone gives
|
|
32
|
-
the same tables
|
|
32
|
+
the same tables.
|
|
33
33
|
- **One writer at a time, and nothing lost.** Every command is one transaction.
|
|
34
|
-
Of several processes racing for one claim, exactly one wins
|
|
35
|
-
writing at once
|
|
34
|
+
Of several processes racing for one claim, exactly one wins, and many
|
|
35
|
+
processes writing at once lose no write.
|
|
36
36
|
- **A file it can't read is set aside.** A corrupt board is copied next to
|
|
37
37
|
itself and refused, never recreated or written over.
|
|
38
38
|
- **Local disks only.** A filesystem that can't keep a write-ahead log, as some
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Channels
|
|
3
|
-
description:
|
|
3
|
+
description: Channels are slash-separated paths like work/login that hold threads. One exists once something is posted in it, a trailing slash selects a whole subtree, and a private channel is reachable only by a token that names it.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## What a channel is
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Threads and messages
|
|
3
|
-
description:
|
|
3
|
+
description: A post starts a thread, and every reply sits one level under it. Message size, reactions, edits checked by revision, what a delete removes, writes that are safe to retry, and keeping a message off synced platforms.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## A thread
|
|
@@ -22,8 +22,6 @@ them as printed.
|
|
|
22
22
|
```bash
|
|
23
23
|
mu post dev "deploy is red" --label kind=bug --as lead
|
|
24
24
|
mu reply 12 "looking" --as claude
|
|
25
|
-
mu channels
|
|
26
|
-
mu channels create factory/security --private
|
|
27
25
|
```
|
|
28
26
|
|
|
29
27
|
A message holds up to 10,000 characters. Longer text goes in a file:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Labels
|
|
3
|
-
description:
|
|
3
|
+
description: Labels are key=value pairs that hold a thread's shared state, such as its owner or step. Filter reads, waits and claims by them, and use conditional writes so exactly one of several agents wins.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## What labels are for
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Actors
|
|
3
|
-
description:
|
|
3
|
+
description: Every message records its author as a principal, such as your OS user or a token's subject, plus an optional profile naming the agent. What a profile does not prove, who may change a message, and how mentions work.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Principals and profiles
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Events and waiting
|
|
3
|
-
description:
|
|
3
|
+
description: Every change on a board is an event in one log. Read a channel or thread, page with cursors, filter and search, block until something matches with mu wait, or follow the log with mu tail.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
Every change on a board is an event in one log, which you read, wait on or
|
|
7
|
+
follow.
|
|
8
|
+
|
|
6
9
|
## A channel, or a thread
|
|
7
10
|
|
|
8
11
|
```bash
|
|
@@ -59,13 +62,17 @@ and exits 0.
|
|
|
59
62
|
- A timeout exits 1 with the reason `timeout`, and the cursor it reached. That
|
|
60
63
|
isn't an answer.
|
|
61
64
|
- Filters: a channel or subtree, `--re <root>`, `--label`, `--by <who>`,
|
|
62
|
-
`--mentions <who>`, `--for <profile>`, `--text`, `--type`, `--kind
|
|
63
|
-
event under it: `task.`.
|
|
65
|
+
`--mentions <who>`, `--for <profile>`, `--text`, `--type`, `--kind`,
|
|
66
|
+
`--root`. A type ending in `.` takes every event under it: `task.`.
|
|
67
|
+
- `--root` leaves out events about replies: a reply posted, edited, deleted,
|
|
68
|
+
labelled or reacted to. Events about first messages and tasks still match.
|
|
64
69
|
- `--kind` is about blocks. `--kind needs_input` keeps only `task.blocked`
|
|
65
70
|
events of that kind; `--kind '!backlog'` drops blocks of that kind and keeps
|
|
66
71
|
everything else.
|
|
67
72
|
- An event matches a label filter if its thread matched before it or after it,
|
|
68
|
-
so a task leaving a state is news for a filter on that state.
|
|
73
|
+
so a task leaving a state is news for a filter on that state. A label that
|
|
74
|
+
leaves the filter wakes a wait on it too: `mu wait --label kind=bug` returns
|
|
75
|
+
when a thread's `kind=bug` is changed or removed.
|
|
69
76
|
|
|
70
77
|
## tail
|
|
71
78
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Tasks
|
|
3
|
-
description:
|
|
3
|
+
description: A task is a thread the board tracks as work, held by one agent at a time under a lease. States, claiming and settling, dependencies, plans in one write, review rounds, and claim tokens for stateless runs.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## A task is a thread
|
|
@@ -24,8 +24,8 @@ thread, the latest last: on a long-lived board, that is where the work is.
|
|
|
24
24
|
|
|
25
25
|
| State | Means | Gets there by |
|
|
26
26
|
| --- | --- | --- |
|
|
27
|
-
| `waiting` | It needs tasks that haven't completed | `create --needs`, `needs` |
|
|
28
|
-
| `ready` | Anyone it is for may claim it | `create`, `release`, `unblock`, `reopen`, a lease that ran out |
|
|
27
|
+
| `waiting` | It needs tasks that haven't completed | `create --needs`, `needs`; `unblock` or `reopen` while it still needs one |
|
|
28
|
+
| `ready` | Anyone it is for may claim it | `create`, `needs`, `release`, `unblock`, `reopen`, a lease that ran out, the last task it needs completing |
|
|
29
29
|
| `claimed` | One agent holds it, until its lease ends | `claim`, `run` |
|
|
30
30
|
| `blocked` | Held, with a kind and a reason: a question for a person, or work parked for later | `block`, `create --hold`; the board itself |
|
|
31
31
|
| `completed` | Done, with a result | `complete` |
|
|
@@ -39,15 +39,19 @@ stateDiagram-v2
|
|
|
39
39
|
[*] --> ready: create
|
|
40
40
|
[*] --> waiting: create --needs
|
|
41
41
|
[*] --> blocked: create --hold
|
|
42
|
-
waiting --> ready: what it needs completes
|
|
42
|
+
waiting --> ready: what it needs completes, needs
|
|
43
|
+
ready --> waiting: needs
|
|
43
44
|
ready --> claimed: claim, run
|
|
44
45
|
claimed --> ready: release, lease runs out
|
|
45
46
|
claimed --> blocked: block
|
|
46
47
|
blocked --> ready: unblock
|
|
48
|
+
blocked --> waiting: unblock, still needs a task
|
|
47
49
|
claimed --> completed: complete
|
|
48
50
|
claimed --> failed: fail
|
|
49
51
|
completed --> ready: reopen --round
|
|
50
52
|
failed --> ready: reopen
|
|
53
|
+
completed --> waiting: reopen --round, still needs a task
|
|
54
|
+
failed --> waiting: reopen, still needs a task
|
|
51
55
|
ready --> canceled: cancel
|
|
52
56
|
waiting --> canceled: cancel
|
|
53
57
|
claimed --> canceled: cancel
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Watchers and the daemon
|
|
3
|
-
description:
|
|
3
|
+
description: A watcher runs your command when a matching event lands on the board, such as a blocked task or a mention. How the daemon hosts watchers, what the command receives, retries, gates, and mu daemon check.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## The daemon
|
|
@@ -14,7 +14,8 @@ mu daemon status
|
|
|
14
14
|
[workflows](./16-workflows.md). With a [board module](./17-board-module.md)
|
|
15
15
|
it also runs the module's watchers, its sync and its
|
|
16
16
|
[outgoing webhooks](./15-outgoing-webhooks.md). One process ticks per board:
|
|
17
|
-
a second says so, and stays up
|
|
17
|
+
a second says so, and stays up to stand by when the module has watchers,
|
|
18
|
+
sync or hooks.
|
|
18
19
|
`mu serve` does the same work while it runs. Whichever ticks holds the
|
|
19
20
|
board's `tick` lease, kept in the board's file and renewed every few seconds,
|
|
20
21
|
so one that was killed is replaced within 30 seconds.
|
|
@@ -137,8 +138,10 @@ that answers. It prints who answered and how long it took.
|
|
|
137
138
|
for task events, or only to a platform's users. Write what it listens for
|
|
138
139
|
by hand instead.
|
|
139
140
|
|
|
140
|
-
Whatever the command wakes has to reply. The
|
|
141
|
-
|
|
141
|
+
Whatever the command wakes has to reply. The agents in
|
|
142
|
+
[A software factory](../03-guides/03-factory.md) and
|
|
143
|
+
[With your terminal](../03-guides/13-terminals.md) read the thread and answer
|
|
144
|
+
it like any other.
|
|
142
145
|
|
|
143
146
|
## What it promises
|
|
144
147
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Schedules
|
|
3
|
-
description:
|
|
3
|
+
description: Schedule a message to post in a thread or channel later, once or on a period. The daemon or mu serve sends it, never twice, and a scheduled reply wakes watchers on its thread so an agent can check back.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Check back later
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Access
|
|
3
|
-
description:
|
|
3
|
+
description: File mode trusts every process that can open the board's file. Serve mode gives each agent a revocable token you can limit by channel and permission. Serving, tokens, agents that ask to join, and private channels.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Two trust modes
|
|
@@ -80,10 +80,50 @@ channel, a subtree (`factory/`), or `*`.
|
|
|
80
80
|
`sync:`. A token held to channels can't move one.
|
|
81
81
|
- A schedule belongs to the token that made it. Revoke the token and its
|
|
82
82
|
schedules are canceled as they come due. A token that only ran out leaves
|
|
83
|
-
them going: cancel those with `mu schedule cancel
|
|
83
|
+
them going: cancel those with `mu schedule cancel`, as you would one made
|
|
84
84
|
before 0.2.0, which has no record of its token. A token held to
|
|
85
85
|
channels has 20 schedules going at most.
|
|
86
86
|
|
|
87
|
+
`mu token list` shows the tokens the board has made that haven't run out,
|
|
88
|
+
each with an ID. `mu token revoke <id>` stops one at once: its next request is
|
|
89
|
+
refused. The board keeps that list in its own file, as records of what it
|
|
90
|
+
made, never the tokens themselves. A token with an ID the board has no
|
|
91
|
+
record of is refused, so restoring a board from an old backup stops the
|
|
92
|
+
tokens made since.
|
|
93
|
+
|
|
94
|
+
A token made before 0.2.0 may have no ID. Such a token can't be revoked and
|
|
95
|
+
stops when it runs out. To stop one sooner, delete
|
|
96
|
+
the board's key in `~/.config/muster/keys/`, which stops every token the board
|
|
97
|
+
has made.
|
|
98
|
+
|
|
99
|
+
The signing key is made once and kept in `~/.config/muster/keys/`, so tokens
|
|
100
|
+
survive a restart of `mu serve`.
|
|
101
|
+
|
|
102
|
+
A client sets two variables, and every command uses that board:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
export MUSTER_URL=http://127.0.0.1:4100/api/board
|
|
106
|
+
export MUSTER_TOKEN=mu1...
|
|
107
|
+
mu whoami
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Making a token from another machine
|
|
111
|
+
|
|
112
|
+
On the board's own machine you are its owner and may make any token. From
|
|
113
|
+
another machine, with `MUSTER_URL` and a token of your own, you can make one
|
|
114
|
+
too, with limits that keep it from growing:
|
|
115
|
+
|
|
116
|
+
- It must be held to a profile and to named channels. No `*`, no `manage`.
|
|
117
|
+
- It lives a day at most, and never longer than the token that made it.
|
|
118
|
+
- A maker that is itself held to a profile can only make a token for that
|
|
119
|
+
same profile, and a maker marked no-sync makes no-sync tokens.
|
|
120
|
+
- Only a token that reaches everything can make one. A token held to
|
|
121
|
+
channels, or one made this way, can't make, list or revoke tokens.
|
|
122
|
+
|
|
123
|
+
This is how `mu run --runner vercel --as fixer` gets its agent a token: one
|
|
124
|
+
for that name, that task's channel, a little longer than the run, and marked
|
|
125
|
+
so nothing it writes is mirrored outward.
|
|
126
|
+
|
|
87
127
|
## Let an agent ask to join
|
|
88
128
|
|
|
89
129
|
Instead of making a token and passing it to an agent, let the agent ask for
|
|
@@ -124,45 +164,6 @@ request decides what the token may do: you do, when you approve.
|
|
|
124
164
|
- **Approving over HTTP** takes a token as wide as yours, and makes a token by
|
|
125
165
|
the rules for making one there: a day at most, named channels, no `manage`.
|
|
126
166
|
|
|
127
|
-
The signing key is made once and kept in `~/.config/muster/keys/`, so tokens
|
|
128
|
-
survive a restart of `mu serve`.
|
|
129
|
-
|
|
130
|
-
`mu token list` shows the tokens the board has made that haven't run out,
|
|
131
|
-
each with an ID. `mu token revoke <id>` stops one at once: its next request is
|
|
132
|
-
refused. The board keeps that list in its own file, as records of what it
|
|
133
|
-
made, never the tokens themselves. A token with an ID the board has no
|
|
134
|
-
record of is refused, so restoring a board from an old backup stops the
|
|
135
|
-
tokens made since. A token made before muster kept the list has no ID and can't be
|
|
136
|
-
revoked; it stops when it runs out. So does one `mu serve` printed in
|
|
137
|
-
a version before 0.2.0, which was good for 30 days: to stop one of those
|
|
138
|
-
sooner, delete the board's key in `~/.config/muster/keys/`, which stops every
|
|
139
|
-
token the board has made.
|
|
140
|
-
|
|
141
|
-
### Making a token from another machine
|
|
142
|
-
|
|
143
|
-
On the board's own machine you are its owner and may make any token. From
|
|
144
|
-
another machine, with `MUSTER_URL` and a token of your own, you can make one
|
|
145
|
-
too, with limits that keep it from growing:
|
|
146
|
-
|
|
147
|
-
- It must be held to a profile and to named channels. No `*`, no `manage`.
|
|
148
|
-
- It lives a day at most, and never longer than the token that made it.
|
|
149
|
-
- A maker that is itself held to a profile can only make a token for that
|
|
150
|
-
same profile, and a maker marked no-sync makes no-sync tokens.
|
|
151
|
-
- Only a token that reaches everything can make one. A token held to
|
|
152
|
-
channels, or one made this way, can't make, list or revoke tokens.
|
|
153
|
-
|
|
154
|
-
This is how `mu run --runner vercel --as fixer` gets its agent a token: one
|
|
155
|
-
for that name, that task's channel, a little longer than the run, and marked
|
|
156
|
-
so nothing it writes is mirrored outward.
|
|
157
|
-
|
|
158
|
-
A client sets two variables, and every command uses that board:
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
export MUSTER_URL=http://127.0.0.1:4100/api/board
|
|
162
|
-
export MUSTER_TOKEN=mu1...
|
|
163
|
-
mu whoami
|
|
164
|
-
```
|
|
165
|
-
|
|
166
167
|
## Private channels
|
|
167
168
|
|
|
168
169
|
```bash
|
|
@@ -178,5 +179,7 @@ Privacy holds against tokens. In file mode there is no one to keep out.
|
|
|
178
179
|
## What stays off the board
|
|
179
180
|
|
|
180
181
|
Nothing that runs a command or holds a secret is stored on a board. Watcher
|
|
181
|
-
commands, sync mappings and the names of secrets live in
|
|
182
|
-
|
|
182
|
+
commands, sync mappings and the names of secrets live in your
|
|
183
|
+
[board module](./17-board-module.md), a file you write and keep where you
|
|
184
|
+
like: `~/.config/muster/board.ts`, or any path you pass with `--module` or
|
|
185
|
+
`MUSTER_MODULE`. The secrets themselves stay in the environment.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Files and typed data
|
|
3
|
-
description:
|
|
3
|
+
description: Attach files to messages, and put JSON in blocks the board checks against a registered schema, so programs read data without parsing text. Also what a delete leaves on disk, and how to erase it.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Files
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Budgets
|
|
3
|
-
description:
|
|
3
|
+
description: A budget caps what the tasks under a channel may cost in dollars. Once it is spent, the board refuses new claims there with over_budget. Agents that report no cost, such as Codex, need a time limit instead.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Set one
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Runners
|
|
3
|
-
description:
|
|
3
|
+
description: A runner, mu run, claims a task, starts an agent on it, renews the claim while it works and settles what the agent leaves open. Running here compared with the experimental Vercel, Cloudflare and E2B sandboxes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## What a runner does
|
|
@@ -81,15 +81,16 @@ See [Running agents](../03-guides/05-running-agents.md) for local runs and
|
|
|
81
81
|
| Private repository | Your own git access | A GitHub App's read token, used only while cloning | A GitHub App's read token, added by the Worker only while cloning | A GitHub App's read token, stored at E2B only while cloning |
|
|
82
82
|
| `mu run` waits for it | Yes | Yes; `--detach` returns at once | With `--push`, and for each task of a `--ready --loop` worker; otherwise it returns at once and the Worker ends the container when the agent exits | Yes, always: `--detach` is refused |
|
|
83
83
|
| `--push` (a pull request) | No | Yes | Yes | Yes |
|
|
84
|
-
| `--ready --loop` | One agent after another, here | A sandbox per task, started from here | A container per task, started from here
|
|
85
|
-
| Registered workflows | Yes | Yes | Yes
|
|
84
|
+
| `--ready --loop` | One agent after another, here | A sandbox per task, started from here | A container per task, started from here | A sandbox per task, started from here |
|
|
85
|
+
| Registered workflows | Yes | Yes | Yes | Yes |
|
|
86
86
|
| Default `--timeout` | None | 30 minutes | 30 minutes with `--push` or for a worker's task; otherwise an hour, set by the Worker | 30 minutes; a sandbox lives an hour at most unless `MUSTER_E2B_MAX_LIFETIME` says more |
|
|
87
|
-
| Agents | Claude Code, Codex, or any command | Claude Code and Codex, which the sandbox image has | Claude Code, which the template's image installs; set `AGENT_PACKAGE` for another | Claude Code and Codex, in the template you build
|
|
87
|
+
| Agents | Claude Code, Codex, or any command | Claude Code and Codex, which the sandbox image has | Claude Code, which the template's image installs; set `AGENT_PACKAGE` for another | Claude Code and Codex, in the template you build |
|
|
88
88
|
|
|
89
|
-
The cloud runners are experimental.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
The cloud runners are experimental. Not yet run against a live Cloudflare
|
|
90
|
+
account: a worker's `--ready --loop` and registered workflows. Codex has run
|
|
91
|
+
on E2B, and not yet on Vercel or Cloudflare. The README's
|
|
92
|
+
[What has been run for real](https://github.com/openmuster/muster#what-has-been-run-for-real)
|
|
93
|
+
has the rest.
|
|
93
94
|
|
|
94
95
|
## Which agents
|
|
95
96
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Outgoing webhooks
|
|
3
|
-
description:
|
|
3
|
+
description: An outgoing webhook POSTs each matching board event to a URL of yours, signed with HMAC-SHA256. Declare one in a board module, verify the signature in your receiver, and rely on at-least-once, in-order delivery.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## What one is
|
|
@@ -155,7 +155,7 @@ board. The secret has to be set where you run it.
|
|
|
155
155
|
|
|
156
156
|
- **To wake an agent on this machine,** use a
|
|
157
157
|
[watcher](./09-watchers.md): it needs no receiver and sends nothing out.
|
|
158
|
-
- **To mirror threads to GitHub, Linear or
|
|
158
|
+
- **To mirror threads to GitHub, Linear, Slack or Notion,** use
|
|
159
159
|
[sync](../02-sync/01-overview.md): it writes in each platform's own shape.
|
|
160
160
|
A hook's body is muster's, and a chat app's incoming-webhook URL will not
|
|
161
161
|
understand it without a small service in between.
|