@openmuster/muster 0.3.1-alpha.2 → 0.3.1-alpha.4

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 (70) hide show
  1. package/README.md +19 -17
  2. package/dist/{args-DHgAmYge.js → args-9ZZDcPxa.js} +2 -2
  3. package/dist/cli.js +5 -5
  4. package/dist/index.js +16 -3
  5. package/dist/inspect/app.js +45 -40
  6. package/dist/main-D5aX7Jaj.js +6 -0
  7. package/dist/{main-A4nHL5oa.js → main-Doit2DDY.js} +242 -21
  8. package/dist/mcp-Cm96TIb3.js +6 -0
  9. package/dist/{module-DOkWwWoU.js → module-D8qcE3e7.js} +1 -1
  10. package/dist/{module-CT_R33MB.js → module-DjDMSEKu.js} +2 -2
  11. package/dist/{steps-ByzmEzLQ.js → steps-BUPRIOe3.js} +1 -1
  12. package/docs/01-concepts/01-overview.md +7 -2
  13. package/docs/01-concepts/02-boards.md +4 -4
  14. package/docs/01-concepts/03-channels.md +1 -1
  15. package/docs/01-concepts/04-threads.md +1 -3
  16. package/docs/01-concepts/05-labels.md +1 -1
  17. package/docs/01-concepts/06-actors.md +1 -1
  18. package/docs/01-concepts/07-events.md +11 -4
  19. package/docs/01-concepts/08-tasks.md +8 -4
  20. package/docs/01-concepts/09-watchers.md +7 -4
  21. package/docs/01-concepts/10-schedules.md +1 -1
  22. package/docs/01-concepts/11-access.md +46 -43
  23. package/docs/01-concepts/12-files-and-data.md +1 -1
  24. package/docs/01-concepts/13-budgets.md +1 -1
  25. package/docs/01-concepts/14-runners.md +9 -8
  26. package/docs/01-concepts/15-outgoing-webhooks.md +2 -2
  27. package/docs/01-concepts/16-workflows.md +6 -6
  28. package/docs/01-concepts/17-board-module.md +8 -6
  29. package/docs/01-quickstart.md +8 -6
  30. package/docs/02-sync/01-overview.md +33 -26
  31. package/docs/02-sync/02-github.md +5 -4
  32. package/docs/02-sync/03-linear.md +21 -21
  33. package/docs/02-sync/04-slack.md +7 -11
  34. package/docs/02-sync/05-notion.md +3 -1
  35. package/docs/02-sync/meta.json +4 -0
  36. package/docs/03-guides/01-coding-agents.md +2 -2
  37. package/docs/03-guides/02-swarm.md +4 -4
  38. package/docs/03-guides/03-factory.md +1 -5
  39. package/docs/03-guides/04-inspector.md +36 -1
  40. package/docs/03-guides/05-running-agents.md +13 -1
  41. package/docs/03-guides/06-sandboxed-agents.md +15 -29
  42. package/docs/03-guides/07-build-a-ui.md +21 -2
  43. package/docs/03-guides/08-ci.md +13 -5
  44. package/docs/03-guides/09-daemon.md +6 -5
  45. package/docs/03-guides/10-two-agents.md +1 -1
  46. package/docs/03-guides/11-person-in-the-loop.md +1 -1
  47. package/docs/03-guides/12-unattended.md +1 -1
  48. package/docs/03-guides/13-terminals.md +4 -5
  49. package/docs/03-guides/14-no-cloud.md +1 -1
  50. package/docs/03-guides/15-several-boards.md +21 -2
  51. package/docs/03-guides/16-non-code.md +12 -3
  52. package/docs/03-guides/17-mcp.md +2 -6
  53. package/docs/03-guides/18-a-board-on-a-server.md +1 -1
  54. package/docs/03-guides/19-a-card-queue.md +22 -22
  55. package/docs/03-guides/20-a-feedback-loop.md +14 -6
  56. package/docs/03-guides/21-running-the-loop.md +16 -9
  57. package/docs/03-guides/22-building-from-linear.md +326 -0
  58. package/docs/03-guides/meta.json +32 -0
  59. package/docs/04-reference/01-cli.md +2 -1
  60. package/docs/04-reference/02-handle.md +4 -3
  61. package/docs/04-reference/03-http.md +3 -2
  62. package/docs/04-reference/04-events.md +1 -1
  63. package/docs/04-reference/05-errors.md +3 -3
  64. package/docs/04-reference/06-conformance.md +4 -2
  65. package/docs/04-reference/07-porting.md +1 -1
  66. package/docs/index.md +60 -24
  67. package/docs/meta.json +3 -0
  68. package/package.json +1 -1
  69. package/dist/main-CuIC8iF4.js +0 -6
  70. package/dist/mcp-GkdeWAnr.js +0 -6
package/README.md CHANGED
@@ -26,18 +26,19 @@ 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.2`.
30
- The name is scoped because `muster` on npm is an unrelated package. Every
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.4`.
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
- To upgrade, run the install line again; `mu --version` says what you have, and
35
- [CHANGELOG.md](./CHANGELOG.md) says what changed. A release lists its files'
33
+ To upgrade, run the install line again: `mu --version` says what you have, and
34
+ [CHANGELOG.md](./CHANGELOG.md) says what changed. To be told when a newer
35
+ release is out, set `MUSTER_UPDATE_CHECK=1`: once a day, a command run in a
36
+ terminal says so in one line. A release lists its files'
36
37
  SHA-256 sums in `SHA256SUMS`. A board made by an older muster opens in a newer
37
38
  one; back it up first with `mu backup`.
38
39
 
39
- muster makes no network calls except to what you configure: no telemetry and
40
- no update check of its own. See [SECURITY.md](./SECURITY.md).
40
+ muster makes no network calls except to what you configure: no telemetry, and
41
+ no update check unless you turn it on. See [SECURITY.md](./SECURITY.md).
41
42
 
42
43
  ## Quickstart
43
44
 
@@ -121,7 +122,7 @@ run it: `mu daemon run`, `mu serve`, or your own process. See
121
122
  [Watchers](./packages/muster/docs/01-concepts/09-watchers.md) and
122
123
  [The board module](./packages/muster/docs/01-concepts/17-board-module.md).
123
124
 
124
- ## Sync Slack, GitHub, and Linear
125
+ ## Sync Slack, GitHub, Linear, and Notion
125
126
 
126
127
  ```ts
127
128
  // ~/.config/muster/board.ts
@@ -218,9 +219,8 @@ writing as you. See
218
219
  | Clones `--repo` | No | Yes, with dependencies | Yes, with dependencies (pnpm, npm, yarn) | Yes, with dependencies |
219
220
  | `--push` opens a pull request | No | Yes | Yes | Yes |
220
221
  | A worker's tasks each get their own | Process | Sandbox | Container | Sandbox |
221
- | Registered workflows | Yes | Yes | Yes |
222
- | 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 |
223
- | Run for real with | Claude Code, Codex | Claude Code | Claude Code |
222
+ | Registered workflows | Yes | Yes | Yes | Yes |
223
+ | Run for real with | Claude Code, Codex | Claude Code | Claude Code | Claude Code, Codex |
224
224
 
225
225
  The full comparison is in
226
226
  [Runners](./packages/muster/docs/01-concepts/14-runners.md#what-each-runner-does).
@@ -239,14 +239,14 @@ writing as you. See
239
239
  - **Registered workflows:** a named plan of tasks and workers you register
240
240
  once, and a named person starts with `mu workflow run`. Since 0.2.1
241
241
  ([Workflows](./packages/muster/docs/01-concepts/16-workflows.md)).
242
- - **Sync** with GitHub, Linear and Slack, by webhook. All three have been
243
- run against the live services.
242
+ - **Sync** with GitHub, Linear, Slack and Notion, by webhook. GitHub, Linear
243
+ and Slack have been run against the live services.
244
244
  - **Pages:** `mu inspect`, and two apps to fork in `templates/`: a swarm
245
245
  launcher with a live view, and a factory page.
246
246
  - **A card queue** to copy from `templates/queue`: a Linear issue labelled
247
247
  `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; run live on
249
- 25 Nov 2026, by hand and from Linear ([A card queue](./packages/muster/docs/03-guides/19-a-card-queue.md)).
248
+ sandboxes, and you answer only what they ask. Since 0.3.0
249
+ ([A card queue](./packages/muster/docs/03-guides/19-a-card-queue.md)).
250
250
  - **Skills** that teach an agent the board: `mu skills install`, or
251
251
  `npx skills add openmuster/muster --skill board -g`.
252
252
  - **For agents with no shell,** the board as one MCP tool: `mu mcp`, or over
@@ -269,7 +269,7 @@ been used against the real thing, and what has not.
269
269
  | `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
270
  | 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
271
  | 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. Not tried live: an OAuth app, and 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 |
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. 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
273
  | 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
274
  | `mu mcp` | Used once with Claude Code as the client |
275
275
  | MCP over HTTP on `mu serve` | Connected once with Claude Code as the client; no other client was tried |
@@ -284,7 +284,9 @@ been used against the real thing, and what has not.
284
284
  | 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
285
  | Registered workflows | Covered by tests, security-reviewed; not yet run live |
286
286
  | `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, started in a sandbox and refused by its provider for a key that isn't one, which is as far as it went. Not run: Codex to the end of a task, a self-hosted E2B |
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, 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 |
288
+ | A card queue, `templates/queue` | Run live on 25 Nov 2026, by hand and from Linear |
289
+ | 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
290
 
289
291
  [SPEC.md](./SPEC.md) is the design and lists what is not built.
290
292
 
@@ -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;
@@ -7040,4 +7040,4 @@ function cursor(input, flag) {
7040
7040
  }
7041
7041
 
7042
7042
  //#endregion
7043
- export { channelScope as $, file as A, fetchFile as B, ROUTES as C, releaseTarball as D, VERSION as E, dropClaim as F, SEND_MS as G, refused$2 as H, heldClaim as I, LIMITS as J, processStart as K, keepClaim as L, mint as M, verify$1 as N, loadOidc as O, configDir as P, channelPath as Q, declared as R, listen as S, RELEASE_HOSTS as T, sizeOf as U, noteOut as V, withLines as W, WORKFLOWS_PROFILE as X, PROGRESS as Y, actorId as Z, why as _, on as a, createHandler as b, str as c, board as d, inScope as et, syncLoop as f, ping as g, armHooks as h, list as i, misuse as it, boardKey as j, boardPath as k, COPY as l, HOOKS_LEASE as m, duration as n, profileName as nt, pairs as o, DROPPED as p, OPEN_STATES as q, id as r, Failure as rt, parse as s, cursor as t, labelFilter as tt, ROOT as u, holdLease as v, SANDBOX_ROUTES as w, isLoopback as x, MOUNT as y, env as z };
7043
+ export { channelPath as $, boardPath as A, env as B, listen as C, VERSION as D, RELEASE_HOSTS as E, configDir as F, withLines as G, noteOut as H, dropClaim as I, OPEN_STATES as J, SEND_MS as K, heldClaim as L, boardKey as M, mint as N, releaseTarball as O, verify$1 as P, actorId as Q, keepClaim as R, isLoopback as S, SANDBOX_ROUTES as T, refused$2 as U, fetchFile as V, sizeOf as W, PROGRESS as X, LIMITS as Y, WORKFLOWS_PROFILE as Z, ping as _, list as a, misuse as at, MOUNT as b, parse as c, ROOT as d, channelScope as et, board as f, armHooks as g, HOOKS_LEASE as h, id as i, Failure as it, file as j, loadOidc as k, str as l, DROPPED as m, cursor as n, labelFilter as nt, on as o, syncLoop as p, processStart as q, duration as r, profileName as rt, pairs as s, GLOBAL as t, inScope as tt, COPY as u, why as v, ROUTES as w, createHandler as x, holdLease as y, declared as z };
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-CT_R33MB.js")).prepare(process.argv.slice(2), process.env);
11
- const { main } = await import("./main-CuIC8iF4.js");
12
+ await (await import("./module-DjDMSEKu.js")).prepare(process.argv.slice(2), process.env);
13
+ const { main } = await import("./main-D5aX7Jaj.js");
12
14
  if (process.argv[2] === "mcp" && process.argv.length === 3) {
13
- const { mcp } = await import("./mcp-GkdeWAnr.js");
15
+ const { mcp } = await import("./mcp-Cm96TIb3.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-DHgAmYge.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-ByzmEzLQ.js";
1
+ import { $ as channelPath, A as boardPath, B as env, C as listen, G as withLines, H as noteOut, K as SEND_MS, M as boardKey, N as mint, P as verify, T as SANDBOX_ROUTES, U as refused, V as fetchFile, W as sizeOf, at as misuse, f as board, it as Failure, j as file, x as createHandler, z as declared } from "./args-9ZZDcPxa.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-BUPRIOe3.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
- return [{
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 [{