@dryui/mcp 0.1.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.
@@ -0,0 +1,10 @@
1
+ export interface AiSurfaceEntry {
2
+ readonly name: string;
3
+ readonly description: string;
4
+ }
5
+ export interface AiSurfaceManifest {
6
+ readonly tools: readonly AiSurfaceEntry[];
7
+ readonly prompts: readonly AiSurfaceEntry[];
8
+ readonly cliCommands: readonly AiSurfaceEntry[];
9
+ }
10
+ export declare const aiSurface: AiSurfaceManifest;
@@ -0,0 +1,103 @@
1
+ declare const PACKAGE_NODE_LABELS: {
2
+ readonly primitives: "Primitives";
3
+ readonly ui: "UI";
4
+ readonly docs: "Docs";
5
+ readonly audit: "Audit";
6
+ };
7
+ type ClusterPriority = 'canonicalize-now' | 'document-decision-tree' | 'watch';
8
+ export type DolphinNodeKind = 'component' | 'part' | 'cluster';
9
+ export type DolphinLayer = 'primitive' | 'ui-wrapper' | 'ui-composite' | 'part' | 'cluster';
10
+ export type DolphinVisibility = 'root' | 'subpath-only' | 'root+subpath';
11
+ export type DolphinEdgeType = 'wraps' | 'composes' | 'compound_part' | 'related' | 'docs' | 'duplication_cluster';
12
+ export type DolphinMismatchKind = 'missing-subpath-export' | 'subpath-only-export' | 'spec-missing' | 'docs-nav-missing' | 'docs-nav-orphan';
13
+ export interface DolphinNode {
14
+ id: string;
15
+ name: string;
16
+ label: string;
17
+ kind: DolphinNodeKind;
18
+ package: keyof typeof PACKAGE_NODE_LABELS;
19
+ layer: DolphinLayer;
20
+ category: string;
21
+ description: string;
22
+ visibility?: DolphinVisibility;
23
+ sourcePath?: string;
24
+ publicImport?: string;
25
+ tags: string[];
26
+ compound: boolean;
27
+ parts: string[];
28
+ sourceFileCount?: number;
29
+ primitivePartUsageCount?: number;
30
+ componentImportCount?: number;
31
+ }
32
+ export interface DolphinEdge {
33
+ id: string;
34
+ type: DolphinEdgeType;
35
+ from: string;
36
+ to: string;
37
+ label?: string;
38
+ }
39
+ export interface DolphinCluster {
40
+ id: string;
41
+ title: string;
42
+ priority: ClusterPriority;
43
+ summary: string;
44
+ components: string[];
45
+ recommendations: string[];
46
+ }
47
+ export interface DolphinMismatch {
48
+ kind: DolphinMismatchKind;
49
+ package: keyof typeof PACKAGE_NODE_LABELS;
50
+ component: string;
51
+ detail: string;
52
+ sourcePath?: string;
53
+ }
54
+ export interface DolphinSignals {
55
+ primitivePartComponents: string[];
56
+ thinWrapperComponents: string[];
57
+ subpathOnlyUi: string[];
58
+ subpathOnlyPrimitives: string[];
59
+ specMissingUi: string[];
60
+ specMissingPrimitives: string[];
61
+ docsNavMissing: string[];
62
+ docsNavOrphan: string[];
63
+ }
64
+ export interface DolphinSummary {
65
+ componentNodes: number;
66
+ partNodes: number;
67
+ catalogNodes: number;
68
+ clusterNodes: number;
69
+ primitiveComponents: number;
70
+ uiComponents: number;
71
+ uiWrappers: number;
72
+ uiComposites: number;
73
+ rootBarrelComponents: number;
74
+ subpathOnlyComponents: number;
75
+ compoundComponents: number;
76
+ wrapEdges: number;
77
+ composeEdges: number;
78
+ docsEdges: number;
79
+ relatedEdges: number;
80
+ mismatches: number;
81
+ primitivePartComponents: number;
82
+ thinWrappers: number;
83
+ }
84
+ export interface DolphinGraph {
85
+ schema: 'DolphinGraph';
86
+ generatedAt: string;
87
+ packageVersion: string;
88
+ summary: DolphinSummary;
89
+ nodes: DolphinNode[];
90
+ edges: DolphinEdge[];
91
+ clusters: DolphinCluster[];
92
+ mismatches: DolphinMismatch[];
93
+ signals: DolphinSignals;
94
+ mermaid: {
95
+ packageOverview: string;
96
+ clusterOverview: string;
97
+ };
98
+ }
99
+ export declare function buildArchitectureReport(graph: DolphinGraph): string;
100
+ export declare function writeArchitectureArtifacts(graph: DolphinGraph): Promise<void>;
101
+ export declare function buildDolphinGraph(): Promise<DolphinGraph>;
102
+ export declare function loadArchitectureGraph(): DolphinGraph;
103
+ export {};