← Receivers

news:assist

news family

A story's quick actions — summarise, expand, research, article in the group's voice, or related stories. Asked once, kept for everyone: a cached answer comes back instantly; a miss runs the model the route's paths favour (assist:<kind>: → model:<id>), falls to the next on failure, and stores the answer. Anyone reads cached answers of published stories; a signed-in person may start one (20 a day per group); owners may force a fresh one. A verdict marks or warns the model that wrote the answer

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
public
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
variable
What one call costs, so you can budget before acting.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/news:assist \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": <string>, "itemUrl": <string>, "kind": <summarise | expand | research | …> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • workspace string required The magazine's group slug.
  • itemUrl string required The story's article URL, as on the issue.
  • kind summarise | expand | research | … required What to do with the story. related and journey need no model: stories sharing its tags; the story's path from its feed to its posts.
  • fresh boolean optional Owners only: run the model again even though an answer is stored.
  • verdict up | down optional Judge the stored answer instead: marks or warns the model that wrote it.

Response

What comes back from the call.

  • ok boolean
  • kind string
  • text string
  • model string
  • cached boolean
  • ms number
  • related object[]
  • journey object[]
  • judged string
  • error string

Traffic

Every call to news:assist, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names news:assist, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:236
→

Answered by

news:assist one.ie/web/src/lib/resolvers/news.ts:331 Dispatched through POST /api/ask/news:assist, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "description": "The magazine's group slug."
    },
    "itemUrl": {
      "type": "string",
      "description": "The story's article URL, as on the issue."
    },
    "kind": {
      "type": "string",
      "enum": [
        "summarise",
        "expand",
        "research",
        "article",
        "related",
        "journey"
      ],
      "description": "What to do with the story. related and journey need no model: stories sharing its tags; the story's path from its feed to its posts."
    },
    "fresh": {
      "description": "Owners only: run the model again even though an answer is stored.",
      "type": "boolean"
    },
    "verdict": {
      "description": "Judge the stored answer instead: marks or warns the model that wrote it.",
      "type": "string",
      "enum": [
        "up",
        "down"
      ]
    }
  },
  "required": [
    "workspace",
    "itemUrl",
    "kind"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "kind": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "ms": {
      "type": "number"
    },
    "related": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "shared": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "title",
          "url",
          "source",
          "date",
          "shared"
        ]
      }
    },
    "journey": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "step": {
            "type": "string"
          },
          "at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "label": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "href": {
            "type": "string"
          }
        },
        "required": [
          "step",
          "at",
          "label"
        ]
      }
    },
    "judged": {
      "type": "string"
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}