← Receivers

pages:fill-shop-pack

pages family

Write a seller's real business facts into their twelve seeded shop pages. Fills the LIVE rows, so an edit made between seeding and filling survives. A fact not supplied keeps its visible placeholder — never an invented threshold, address or returns window.

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
yes
The effect can be undone by a later call.
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/pages:fill-shop-pack \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "facts": <object> }}'

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 optional which workspace. NOT an authority claim — the caller is authorized by the attested ctx through the same callerControlsWorkspace walk every pages:* receiver uses. Absent = the caller's own workspace.
  • facts object required ShopBusinessFacts — lib/puck/fill-shop-pack.ts is the type of record

Response

What comes back from the call.

  • ok boolean
  • filled number how many role pages were rewritten
  • roles string[] which shop_role each rewritten page holds
  • error string `not_seeded` = no page carries a shop_role yet; call pages:instantiate-shop-pack first

Traffic

Every call to pages:fill-shop-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:fill-shop-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

UI 1
  • one.ie/web/src/components/studio/ShopBuilder.tsx:5
API route 4
  • one.ie/web/src/lib/puck/packs/shop/home.ts:18
  • one.ie/web/src/lib/puck/packs/shop/privacy.ts:9
  • one.ie/web/src/lib/puck/packs/shop/shipping-returns.ts:8
  • one.ie/web/src/lib/puck/packs/shop/terms.ts:9
CLI 2
  • packages/cli/src/lib/shop-init.ts:9
  • packages/cli/src/shop.ts:12

Answered by

pages:fill-shop-pack one.ie/web/src/lib/resolvers/pages.ts:571 Dispatched through POST /api/ask/pages:fill-shop-pack, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "description": "which workspace. NOT an authority claim — the caller is authorized by the attested ctx through the same callerControlsWorkspace walk every pages:* receiver uses. Absent = the caller's own workspace.",
      "type": "string"
    },
    "facts": {
      "type": "object",
      "properties": {
        "identity": {
          "type": "object",
          "properties": {
            "businessName": {
              "type": "string",
              "description": "the shop's name — the one required fact; everything else may be withheld"
            },
            "whatYouSell": {
              "description": "\"Hand-thrown stoneware\" — the noun phrase the home hero is built around",
              "type": "string"
            },
            "founderName": {
              "type": "string"
            },
            "foundedYear": {
              "type": "number"
            }
          },
          "required": [
            "businessName"
          ]
        },
        "commerce": {
          "type": "object",
          "properties": {
            "currency": {
              "type": "string",
              "description": "ISO 4217, e.g. EUR. Rendered as a symbol where one is known, else as the code — never a guessed symbol"
            },
            "freeShippingOver": {
              "description": "order value above which delivery is free. 0 is a REAL answer (free on everything), not 'unknown'",
              "type": "number"
            },
            "returnDays": {
              "description": "days a buyer has to return. 0 is a REAL answer (no window), not 'unknown'",
              "type": "number"
            }
          },
          "required": [
            "currency"
          ]
        },
        "contact": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "postalAddress": {
              "type": "string"
            },
            "phone": {
              "type": "string"
            },
            "openingHours": {
              "description": "\"9–17\" — rendered inside the pack's own \"Mon-Fri …\" copy",
              "type": "string"
            },
            "responseWindow": {
              "description": "\"two working days\" — how fast a privacy request is answered",
              "type": "string"
            }
          }
        },
        "policies": {
          "type": "object",
          "properties": {
            "jurisdiction": {
              "description": "whose law governs, and whose data authority a buyer may complain to",
              "type": "string"
            },
            "effectiveDate": {
              "description": "as the merchant wants it printed — never derived from the clock",
              "type": "string"
            }
          }
        },
        "source": {
          "description": "where the facts came from, when they were extracted rather than typed",
          "type": "object",
          "properties": {
            "url": {
              "type": "string"
            }
          }
        }
      },
      "required": [
        "identity",
        "commerce",
        "contact"
      ],
      "description": "ShopBusinessFacts — lib/puck/fill-shop-pack.ts is the type of record"
    }
  },
  "required": [
    "facts"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "filled": {
      "description": "how many role pages were rewritten",
      "type": "number"
    },
    "roles": {
      "description": "which shop_role each rewritten page holds",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "`not_seeded` = no page carries a shop_role yet; call pages:instantiate-shop-pack first",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}