@skillbrickai/mcp-server 0.1.0 → 0.2.2

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.
package/dist/server.d.ts CHANGED
@@ -1,2 +1,32 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ /**
3
+ * Validate assembled CLAUDE.md content before writing to disk.
4
+ * Catches the three failure modes that caused the 60k-LOC incident:
5
+ * 1. Recursive embedding — PREVIOUS_CLAUDE_MD contains another PREVIOUS_CLAUDE_MD block
6
+ * 2. Duplicate section headings — a section from the previous context dump was copied verbatim
7
+ * 3. File too large — hard 100 KB ceiling; anything bigger is almost certainly a runaway dump
8
+ */
9
+ export declare function validateClaudeMdContent(sections: Array<{
10
+ label: string;
11
+ content: string;
12
+ }>, finalContent: string): {
13
+ ok: true;
14
+ } | {
15
+ ok: false;
16
+ error: string;
17
+ };
18
+ /**
19
+ * Pure validation logic for complete_setup inputs.
20
+ * Exported for unit testing.
21
+ */
22
+ export declare function validateCompleteSetupInput(expectedFiles: string[], reviewedFiles: string[], extractedItems: Array<{
23
+ source: string;
24
+ item: string;
25
+ category: string;
26
+ }>): {
27
+ ok: true;
28
+ } | {
29
+ ok: false;
30
+ errors: string[];
31
+ };
2
32
  export declare function createSkillBrickServer(): McpServer;