@fragments-sdk/context 0.4.4 → 0.5.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.
@@ -303,6 +303,26 @@ var MCP_TOOL_DEFINITIONS = [
303
303
  }
304
304
  },
305
305
  required: ["prompt"]
306
+ },
307
+ {
308
+ key: "govern",
309
+ description: "Validate an AI-generated UI spec against governance policies. Checks safety (blocked props), component allowlists, design token compliance, brand conformance, and WCAG accessibility. Returns a verdict with score (0-100), violations, and fix suggestions.",
310
+ params: {
311
+ spec: {
312
+ type: "object",
313
+ description: "The UI spec to validate. Format: { nodes: [{ id, type, props, children }], root?, metadata? }"
314
+ },
315
+ policy: {
316
+ type: "object",
317
+ description: "Optional policy overrides to merge with the base policy. Same shape as govern.config.ts rules."
318
+ },
319
+ format: {
320
+ type: "string",
321
+ description: 'Output format: "json" (full verdict) or "summary" (compact text)',
322
+ enum: ["json", "summary"]
323
+ }
324
+ },
325
+ required: ["spec"]
306
326
  }
307
327
  ];
308
328
  var CLI_TOOL_EXTENSIONS = [
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  MCP_TOOL_DEFINITIONS,
4
4
  buildMcpTools,
5
5
  buildToolNames
6
- } from "./chunk-RTJ3JOPA.js";
6
+ } from "./chunk-27BMCKU6.js";
7
7
  import {
8
8
  CLI_COMMANDS,
9
9
  CLI_COMMAND_CATEGORIES
@@ -3,7 +3,7 @@ import {
3
3
  MCP_TOOL_DEFINITIONS,
4
4
  buildMcpTools,
5
5
  buildToolNames
6
- } from "../chunk-RTJ3JOPA.js";
6
+ } from "../chunk-27BMCKU6.js";
7
7
  export {
8
8
  CLI_TOOL_EXTENSIONS,
9
9
  MCP_TOOL_DEFINITIONS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragments-sdk/context",
3
- "version": "0.4.4",
3
+ "version": "0.5.1",
4
4
  "license": "FSL-1.1-MIT",
5
5
  "description": "Code intelligence and RAG primitives for design system and codebase indexing",
6
6
  "author": "Conan McNicholl",