pattern-mcp 0.12.0 → 0.12.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.
Files changed (2) hide show
  1. package/README.md +35 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,11 +15,13 @@ design reference.
15
15
 
16
16
  [Website](https://usepattern.sh) · [npm](https://www.npmjs.com/package/pattern-mcp) · [Report an issue](https://github.com/donaldrichard19-LVD/pattern-mcp/issues/new/choose)
17
17
 
18
- **Current release: v0.11.0** — adds `pattern-check-gate init`, a guided
19
- setup for the opt-in enforcement boundary (a `PreToolUse` hook plus a
20
- paired CI check) so a new component decision can be required, not just
21
- logged. See [Enforcement boundary: hook + CI
22
- gate](#enforcement-boundary-hook--ci-gate).
18
+ **Current release: v0.12.0** — When you run `npx pattern-mcp` for the
19
+ first time, Pattern now shows the optional enforcement boundary
20
+ alongside the telemetry notice. This boundary includes a `PreToolUse`
21
+ hook and a matching CI check. Together, they can require a decision for
22
+ each new component instead of only recording it. See
23
+ [Enforcement boundary: hook + CI gate](#enforcement-boundary-hook--ci-gate)
24
+ for more details.
23
25
 
24
26
  <details>
25
27
  <summary><strong>Contents</strong> (click to expand)</summary>
@@ -1637,6 +1639,31 @@ Run non-interactively with `--yes` (accepts every safe default; branch
1637
1639
  protection is never auto-confirmed even then -- it's the one step that
1638
1640
  reaches outside your local filesystem into real, shared GitHub config).
1639
1641
 
1642
+ **You don't have to find this section to learn this exists.** Every
1643
+ `npx pattern-mcp` run surfaces it at the same first-run moment as the
1644
+ [telemetry notice](#telemetry):
1645
+
1646
+ - **Always**, in every context, including when a real MCP client has
1647
+ spawned this as a subprocess: a one-time, non-blocking stderr mention
1648
+ that the enforcement boundary exists and the command above sets it up.
1649
+ Same "prints once, gated by a marker file" discipline as the telemetry
1650
+ notice -- tracked at `~/.pattern/enforcement_notice_shown`
1651
+ (`PATTERN_ENFORCEMENT_NOTICE_PATH` to override), never repeats after
1652
+ that regardless of whether you act on it.
1653
+ - **Only when stdin is a real terminal** (`process.stdin.isTTY`) --
1654
+ meaning a human ran `npx pattern-mcp` bare in their own shell, never
1655
+ true for a real MCP client's spawned subprocess -- it also offers a
1656
+ genuine interactive prompt right there: *"Set it up now?"* A yes runs
1657
+ the exact same `init` flow described above. The same JSON-RPC-channel
1658
+ constraint that rules out an interactive telemetry prompt (see
1659
+ [Telemetry](#telemetry)) applies here too, which is why this only ever
1660
+ asks when nothing is piping protocol messages into stdin to begin
1661
+ with.
1662
+
1663
+ Set `PATTERN_NO_ENFORCEMENT_NOTICE` to suppress both halves. See
1664
+ `offerEnforcementSetupOnce` in `src/init-enforcement.ts` for the
1665
+ implementation.
1666
+
1640
1667
  **Or set it up by hand**, two pieces, neither installed automatically:
1641
1668
 
1642
1669
  - **`.claude/settings.json`** wired to run `npx --yes
@@ -1773,7 +1800,9 @@ whether you act on it. There's no interactive y/n prompt: Pattern's stdin
1773
1800
  is the MCP JSON-RPC channel the client uses to talk to it, so blocking on
1774
1801
  stdin for a keypress would fight the protocol handshake instead of
1775
1802
  showing a dialog -- a stderr notice is the safe equivalent for a stdio
1776
- MCP server.
1803
+ MCP server. The same first-run moment also surfaces the enforcement
1804
+ boundary, with the same constraint handled the same way -- see
1805
+ [Enforcement boundary: hook + CI gate](#enforcement-boundary-hook--ci-gate).
1777
1806
 
1778
1807
  **Why it exists.** Three things about real usage can't be answered from
1779
1808
  this repo alone: whether people actually come back and use Pattern on a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pattern-mcp",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "MCP server that turns your design guidance into a checkable process -- evaluates UI components from external libraries (shadcn/ui, 21st.dev, ReUI) or your own registered design system against a requirements checklist, then tells the agent whether to reuse an existing component or build one from a concrete design reference.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",