Skip to content

1.17.0

Choose a tag to compare

@tvranjes tvranjes released this 14 Aug 09:17
· 15 commits to develop since this release

A feature release adding an order-creation tool, plus code-runner correctness
fixes, a canonical .phtml template convention, and community/contribution docs.
No breaking changes.

New tools (hidden, discover via search-tools)

  • order-create — build and place an order: line items by SKU, one
    billing/shipping address, chosen shipping and payment method. Supports all
    default product types (configurable, grouped, bundle, downloadable),
    product custom options, existing-customer orders via customerId (0 = guest),
    and virtual/downloadable-only orders. Disabled by default and blocked in
    production; enable via tools.order-create.enabled=true in .bricklayer.json.

Fixes

  • code-runner: a timeout no longer kills the MCP server — enforced by a
    catchable wall-clock SIGALRM (where pcntl is available); on timeout the
    transaction rolls back and a normal error (timed_out: true) is returned,
    session state survives.
  • code-runner: fatals now report instead of silently dropping the connection —
    a shutdown hook answers the in-flight request with a JSON-RPC error naming
    the fatal.
  • code-runner: define-mode helpers no longer fatal on the second use
    (Cannot redeclare); functions declared once behind a function_exists guard,
    redefining returns a warning.
  • code-runner: timeout=0 no longer disables the execution limit — effective
    timeout floored at 1s.
  • database-query: SELECT(...) is no longer rejected — SELECT guard uses a word
    boundary instead of requiring whitespace.
  • code-runner: state reset now clears repository identity maps (product,
    category, CustomerRegistry), so external changes are no longer hidden by
    stale cached entities.
  • code-runner: clearer message when writes are blocked by config
    (write_blocked_by_config: true, names the config key to enable).

Guidelines & generated code

  • Standard .phtml template convention (Luma and Hyvä): required header order
    (declare → use → var) and clear escaping rules; generate-controller output
    and all guideline examples now follow it.

Docs

  • Added CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.

Contributors

  • Tihomir Vranjes (@tvranjes)
  • Andreas von Studnitz (@avstudnitz) — order-create tool (#2)
  • Josip Oužecky (@ouzecky) — .phtml template structure and escaping fix (#6)