@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 (
|
|
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 +
|
|
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",
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
MCP_TOOL_DEFINITIONS,
|
|
4
4
|
buildMcpTools,
|
|
5
5
|
buildToolNames
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-62K7BSAT.js";
|
|
7
7
|
import {
|
|
8
8
|
CLI_COMMANDS,
|
|
9
9
|
CLI_COMMAND_CATEGORIES
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XVZH4IVV.js";
|
|
11
11
|
import {
|
|
12
12
|
chunkByAST,
|
|
13
13
|
chunkByLines,
|
package/dist/mcp-tools/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -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;
|