@fragments-sdk/context 0.5.0 → 0.6.0

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.
@@ -32,7 +32,7 @@ var MCP_TOOL_DEFINITIONS = [
32
32
  },
33
33
  compact: {
34
34
  type: "boolean",
35
- description: "If true, returns minimal output (just component names and categories)"
35
+ description: "If true, returns minimal output (names, categories, and propsSummary per component)"
36
36
  },
37
37
  includeCode: {
38
38
  type: "boolean",
@@ -81,7 +81,7 @@ var MCP_TOOL_DEFINITIONS = [
81
81
  verbosity: {
82
82
  type: "string",
83
83
  enum: ["compact", "standard", "full"],
84
- description: 'Response detail level: "compact" (meta + prop names), "standard" (default), "full" (everything)'
84
+ description: 'Response detail level: "compact" (~200 tokens: meta + propsSummary + provenance), "standard" (default, everything except full code), "full" (everything)'
85
85
  }
86
86
  },
87
87
  required: ["component"]
@@ -129,20 +129,6 @@ var CLI_COMMANDS = [
129
129
  ]
130
130
  },
131
131
  // ── Dev ──
132
- {
133
- name: "dev",
134
- description: "Start the development server with live component rendering",
135
- category: "dev",
136
- usage: "fragments dev [options]",
137
- options: [
138
- { flags: "-p, --port <port>", description: "Port to run on", default: "6006" },
139
- { flags: "--no-open", description: "Do not open browser" },
140
- { flags: "--skip-setup", description: "Skip auto-setup (Storybook import, build, Figma link)" },
141
- { flags: "--skip-storybook", description: "Skip auto-importing from Storybook" },
142
- { flags: "--skip-figma", description: "Skip Figma link check" },
143
- { flags: "--skip-build", description: "Skip auto-building fragments.json" }
144
- ]
145
- },
146
132
  {
147
133
  name: "list",
148
134
  description: "List all discovered fragment files",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CLI_COMMANDS,
3
3
  CLI_COMMAND_CATEGORIES
4
- } from "../chunk-BZ6SGVA2.js";
4
+ } from "../chunk-XVZH4IVV.js";
5
5
  export {
6
6
  CLI_COMMANDS,
7
7
  CLI_COMMAND_CATEGORIES
package/dist/index.js CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  MCP_TOOL_DEFINITIONS,
4
4
  buildMcpTools,
5
5
  buildToolNames
6
- } from "./chunk-27BMCKU6.js";
6
+ } from "./chunk-62K7BSAT.js";
7
7
  import {
8
8
  CLI_COMMANDS,
9
9
  CLI_COMMAND_CATEGORIES
10
- } from "./chunk-BZ6SGVA2.js";
10
+ } from "./chunk-XVZH4IVV.js";
11
11
  import {
12
12
  chunkByAST,
13
13
  chunkByLines,
@@ -3,7 +3,7 @@ import {
3
3
  MCP_TOOL_DEFINITIONS,
4
4
  buildMcpTools,
5
5
  buildToolNames
6
- } from "../chunk-27BMCKU6.js";
6
+ } from "../chunk-62K7BSAT.js";
7
7
  export {
8
8
  CLI_TOOL_EXTENSIONS,
9
9
  MCP_TOOL_DEFINITIONS,
@@ -86,9 +86,11 @@ interface FragmentContract {
86
86
  * Provenance tracking for generated fragments
87
87
  */
88
88
  interface FragmentGenerated {
89
- source: "storybook" | "manual" | "ai";
89
+ source: "storybook" | "manual" | "ai" | "extracted" | "merged" | "migrated";
90
90
  sourceFile?: string;
91
+ /** @deprecated Use provenance.verified instead */
91
92
  confidence?: number;
93
+ verified?: boolean;
92
94
  timestamp?: string;
93
95
  }
94
96
  /**
@@ -148,6 +150,22 @@ interface CompiledFragment {
148
150
  }>;
149
151
  contract?: FragmentContract;
150
152
  ai?: AIMetadata;
153
+ /** Framework hint from contract, used by preview adapters and Cloud */
154
+ framework?: string;
155
+ /** Top-level compact prop summaries for agent first-pass */
156
+ propsSummary?: string[];
157
+ /** Source file path relative to config root (for contract-sourced fragments) */
158
+ sourcePath?: string;
159
+ /** Named export for preview adapter resolution */
160
+ exportName?: string;
161
+ /** Clean provenance tracking (V2) */
162
+ provenance?: {
163
+ source: string;
164
+ verified: boolean;
165
+ frameworkSupport?: string;
166
+ sourceHash?: string;
167
+ extractedAt?: string;
168
+ };
151
169
  /** Component performance data from bundle size measurement */
152
170
  performance?: PerformanceData;
153
171
  _generated?: FragmentGenerated;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragments-sdk/context",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
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",