← Receivers

pages:instantiate-pack

pages family

Seed the whole movers anatomy as ten draft pages in ONE call. NOT idempotent — a second call creates a second set, deduped by slug (home → home-2). pages:instantiate-shop-pack is the storefront's role-keyed equivalent, and that one IS idempotent.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
member
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
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
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.

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/pages:instantiate-pack \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "slug": <string> }}'

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.

  • slug string required The workspace to seed. Names which workspace; the attested `callerControlsWorkspace` walk decides whether this caller may.

Response

What comes back from the call.

  • ok boolean
  • pages object[] The created pages, in MOVERS_PACK order. `pages:fill-pack` takes this array unchanged — same field names, no reshape step exists in the eight workflow kinds.
  • error string

Traffic

Every call to pages:instantiate-pack, 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 pages:instantiate-pack, 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 2
  • one.ie/web/src/lib/receiver-index.generated.ts:219
  • one.ie/web/src/lib/resolvers/pages.ts:414
Workflow 1
  • one.ie/web/src/lib/workflow-templates.ts:134
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "The workspace to seed. Names which workspace; the attested `callerControlsWorkspace` walk decides whether this caller may."
    }
  },
  "required": [
    "slug"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "pages": {
      "description": "The created pages, in MOVERS_PACK order. `pages:fill-pack` takes this array unchanged — same field names, no reshape step exists in the eight workflow kinds.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pageSlug": {
            "type": "string",
            "description": "The pack's own key for this page — STABLE across calls."
          },
          "slug": {
            "type": "string",
            "description": "The real slug that was minted, which differs from `pageSlug` whenever one was already taken."
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "pageSlug",
          "slug",
          "title",
          "url"
        ]
      }
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}