loopctl-mcp-server 3.32.0 → 3.32.1

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 CHANGED
@@ -580,7 +580,7 @@ Key distribution for the dispatch pattern (Epic 26): per-dispatch ephemeral keys
580
580
  | `holder_end` | **End this session holder** (`POST /api/v1/holders/:id/end`): sets `ended_at`, revokes its credential and releases every uncapped claim it holds (a `released` item event, reason "holder ended"), then falls back to `LOOPCTL_AGENT_KEY`. Deletes the holder credential file before the request is sent; a heartbeat refused as gone deletes it too, until a new register writes the new key. Runs on its own when stdin closes, on SIGTERM or on SIGINT, and any other exit still deletes the file. A repeated end writes nothing. |
581
581
  | `work_item_note` | **Write a note on a work item** (`POST /api/v1/stories/:id/notes`, US-52.17): `section` (plan, progress, decision, question) and `body`, appended and never edited, plus a `note_written` event on the story log in the same transaction. Sends this session's own key (its holder credential). Only the story's current holder writes one: `409 held_by_other_holder` when another session holds it, `409 not_holder` when nobody does, `404` for another tenant's story, `422` for an unknown section, an empty body, a body over 16384 bytes or a credential-shaped body. A writer repeating its own `idempotency_key` gets its first note back; a key another writer's note already carries is `409 idempotency_key_reused`. |
582
582
  | `work_item_notes` | **Read a work item's notes** (`GET /api/v1/stories/:id/notes`), oldest first; the first page carries `current`, the newest note of each section. Optional `section`, `limit` (default 50, max 200) and `after` (a page's `next_cursor`). `404` for another tenant's story, `422` for an unknown section or a cursor it did not return. |
583
- | `work_item_timeline` | **Read a work item's timeline** (`GET /api/v1/stories/:id/timeline`): `item` (stage and its age, holder, lease, issue, PR, runner, newest 20 CI runs, thread count and newest 20 messages) and one page of `events`, the event log and audit log merged oldest first. Optional `cursor` (a page's `next_cursor`) and `limit` (default 100, max 500). Read-only on any key; never moves a thread cursor. Every reason and message body is untrusted session text, flagged `untrusted: true`. `404` for another tenant's story, `400` for a bad limit or cursor. |
583
+ | `work_item_timeline` | **Read a work item's timeline** (`GET /api/v1/stories/:id/timeline`): `item` (stage and its age, holder, lease, issue, PR, runner, newest 20 CI runs, newest 20 runner dispatches (`dispatch_id`, `kind`, `runner_id`, `status`), thread count and newest 20 messages) and one page of `events`, the event log and audit log merged oldest first. Optional `cursor` (a page's `next_cursor`) and `limit` (default 100, max 500). Read-only on any key; never moves a thread cursor. Every reason and message body is untrusted session text, flagged `untrusted: true`. `404` for another tenant's story, `400` for a bad limit or cursor. |
584
584
  | `factory_overview` | **Read the factory overview** (`GET /api/v1/factory/overview`): per project and summed for the fleet, `in_flight` counts per stage (claimed through verified), `waiting` counts (detected, triaged, queued, and escalated per reason class) with the oldest item's age, `throughput` over the window (done count, median seconds opened to done) and `failure_classes` (moves into escalated or failed, by edge). Counts come from the stage machine; drill into an item with `work_item_timeline`. Optional `project_id` and `window_days` (default 7, 1..30). Read-only on any key. `400` for a bad window, `404` for another tenant's project, `503` when the read times out. |
585
585
  | `intake_pause` | **Pause a project's intake** (`POST /api/v1/projects/:id/intake/pause`, US-52.33): new issues stay `pending_triage` and get no triage. Stops promotion and triage ONLY: never in-flight work and never the webhook, which keeps recording. `reason` required; `intervention_id` generated when absent (a repeat writes nothing). `404 no_intake_source`, `409 ambiguous_intake_source`, `403` on an agent-rooted tenant. Session's own key. |
586
586
  | `intake_resume` | **Resume a project's intake** (`POST /api/v1/projects/:id/intake/resume`, US-52.33): the minute promotion run picks up what arrived while paused. Same scope, refusals and idempotency as `intake_pause`. |
package/index.js CHANGED
@@ -9056,7 +9056,7 @@ const TOOLS = [
9056
9056
  description:
9057
9057
  "READ A WORK ITEM'S TIMELINE (GET /api/v1/stories/:id/timeline): `item` is where it " +
9058
9058
  "stands now (stage, stage_entered_at, age_seconds, holder, lease, links to the issue, " +
9059
- "PR, runner and the newest 20 CI runs, and the thread's count with its newest 20 " +
9059
+ "PR, runner, the newest 20 CI runs and the newest 20 runner dispatches, and the thread's count with its newest 20 " +
9060
9060
  "messages) and `events` is one page of its event log and audit log merged oldest first. " +
9061
9061
  "`limit` defaults to 100, at most 500; pass a page's `next_cursor` back as `cursor`. " +
9062
9062
  "READ-ONLY on any key of the tenant; it never moves a thread cursor. Every event reason, " +
package/lib/work-items.js CHANGED
@@ -83,7 +83,7 @@ export async function listWorkItemNotes({ story_id, section, limit, after } = {}
83
83
 
84
84
  /**
85
85
  * `work_item_timeline` (loopctl US-52.29): `GET /api/v1/stories/:id/timeline`, the item now
86
- * (stage and its age, holder, lease, issue, PR, runner, newest CI runs, thread) and one page of
86
+ * (stage and its age, holder, lease, issue, PR, runner, newest CI runs and runner dispatches, thread) and one page of
87
87
  * its event log and audit log merged oldest first. READ-ONLY on any authenticated key; it never
88
88
  * moves a thread cursor. Every event reason and message body is session or reporter text and
89
89
  * arrives flagged `untrusted: true`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loopctl-mcp-server",
3
- "version": "3.32.0",
3
+ "version": "3.32.1",
4
4
  "description": "MCP server for loopctl — structural trust for AI development loops",
5
5
  "type": "module",
6
6
  "main": "index.js",