@rigstate/mcp 0.7.4 → 0.7.5
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/index.js +20 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/curator/schemas.ts +10 -4
- package/src/lib/schemas.ts +10 -10
package/dist/index.js
CHANGED
|
@@ -1192,10 +1192,13 @@ import { z as z2 } from "zod";
|
|
|
1192
1192
|
var QueryGlobalAntidotesSchema = z2.object({
|
|
1193
1193
|
categories: z2.array(z2.string()).optional().describe("Filter by categories (SECURITY, ARCHITECTURE, UX, PERFORMANCE, ACCESSIBILITY, MAINTAINABILITY)"),
|
|
1194
1194
|
severities: z2.array(z2.string()).optional().describe("Filter by severity (CRITICAL, HIGH, MEDIUM, LOW)"),
|
|
1195
|
-
framework_tags: z2.
|
|
1196
|
-
|
|
1195
|
+
framework_tags: z2.preprocess(
|
|
1196
|
+
(val) => typeof val === "string" ? JSON.parse(val) : val,
|
|
1197
|
+
z2.array(z2.string())
|
|
1198
|
+
).optional().describe('Filter by framework tags (e.g., ["nextjs", "react", "supabase"])'),
|
|
1199
|
+
min_trust_score: z2.coerce.number().optional().describe("Minimum trust score (0-100)"),
|
|
1197
1200
|
search_text: z2.string().optional().describe("Search in title and instruction"),
|
|
1198
|
-
limit: z2.number().optional().describe("Max results (default: 20)")
|
|
1201
|
+
limit: z2.coerce.number().optional().describe("Max results (default: 20)")
|
|
1199
1202
|
});
|
|
1200
1203
|
var SubmitSignalSchema = z2.object({
|
|
1201
1204
|
projectId: z2.string().describe("The UUID of the Rigstate project"),
|
|
@@ -1205,7 +1208,10 @@ var SubmitSignalSchema = z2.object({
|
|
|
1205
1208
|
severity: z2.enum(["CRITICAL", "HIGH", "MEDIUM", "LOW"]).describe("Severity level"),
|
|
1206
1209
|
example: z2.string().optional().describe("Good example demonstrating the instruction"),
|
|
1207
1210
|
anti_example: z2.string().optional().describe("Bad example showing what NOT to do"),
|
|
1208
|
-
framework_tags: z2.
|
|
1211
|
+
framework_tags: z2.preprocess(
|
|
1212
|
+
(val) => typeof val === "string" ? [val] : val,
|
|
1213
|
+
z2.array(z2.string())
|
|
1214
|
+
).optional().describe("Relevant framework tags"),
|
|
1209
1215
|
reasoning: z2.string().optional().describe("Why this signal should be added"),
|
|
1210
1216
|
source_type: z2.string().optional().describe("Internal source type override (e.g. TEACHER_MODE)")
|
|
1211
1217
|
});
|
|
@@ -1739,15 +1745,15 @@ import { z as z4 } from "zod";
|
|
|
1739
1745
|
var QueryBrainInputSchema = z4.object({
|
|
1740
1746
|
projectId: z4.string().uuid("Invalid project ID"),
|
|
1741
1747
|
query: z4.string().min(1, "Query is required"),
|
|
1742
|
-
limit: z4.number().min(1).max(20).optional().default(8),
|
|
1743
|
-
threshold: z4.number().min(0).max(1).optional().default(0.1)
|
|
1748
|
+
limit: z4.coerce.number().min(1).max(20).optional().default(8),
|
|
1749
|
+
threshold: z4.coerce.number().min(0).max(1).optional().default(0.1)
|
|
1744
1750
|
});
|
|
1745
1751
|
var GetProjectContextInputSchema = z4.object({
|
|
1746
1752
|
projectId: z4.string().uuid("Invalid project ID")
|
|
1747
1753
|
});
|
|
1748
1754
|
var GetLatestDecisionsInputSchema = z4.object({
|
|
1749
1755
|
projectId: z4.string().uuid("Invalid project ID"),
|
|
1750
|
-
limit: z4.number().min(1).max(10).optional().default(5)
|
|
1756
|
+
limit: z4.coerce.number().min(1).max(10).optional().default(5)
|
|
1751
1757
|
});
|
|
1752
1758
|
var SaveDecisionInputSchema = z4.object({
|
|
1753
1759
|
projectId: z4.string().uuid("Invalid project ID"),
|
|
@@ -1755,14 +1761,14 @@ var SaveDecisionInputSchema = z4.object({
|
|
|
1755
1761
|
decision: z4.string().min(1, "Decision content is required"),
|
|
1756
1762
|
rationale: z4.string().optional(),
|
|
1757
1763
|
category: z4.enum(["decision", "architecture", "constraint", "tech_stack", "design_rule"]).optional().default("decision"),
|
|
1758
|
-
tags: z4.array(z4.string()).optional().default([])
|
|
1764
|
+
tags: z4.preprocess((val) => typeof val === "string" ? [val] : val, z4.array(z4.string())).optional().default([])
|
|
1759
1765
|
});
|
|
1760
1766
|
var SubmitIdeaInputSchema = z4.object({
|
|
1761
1767
|
projectId: z4.string().uuid("Invalid project ID"),
|
|
1762
1768
|
title: z4.string().min(1, "Title is required").max(200, "Title too long"),
|
|
1763
1769
|
description: z4.string().min(1, "Description is required"),
|
|
1764
1770
|
category: z4.enum(["feature", "improvement", "experiment", "pivot"]).optional().default("feature"),
|
|
1765
|
-
tags: z4.array(z4.string()).optional().default([])
|
|
1771
|
+
tags: z4.preprocess((val) => typeof val === "string" ? [val] : val, z4.array(z4.string())).optional().default([])
|
|
1766
1772
|
});
|
|
1767
1773
|
var UpdateRoadmapInputSchema = z4.object({
|
|
1768
1774
|
projectId: z4.string().uuid("Invalid project ID"),
|
|
@@ -1820,7 +1826,7 @@ var GenerateProfessionalPDFInputSchema = z4.object({
|
|
|
1820
1826
|
var ArchaeologicalScanInputSchema = z4.object({
|
|
1821
1827
|
projectId: z4.string().uuid("Invalid project ID"),
|
|
1822
1828
|
gitLog: z4.string().describe("Git log output"),
|
|
1823
|
-
fileTree: z4.array(z4.string()).describe("File paths")
|
|
1829
|
+
fileTree: z4.preprocess((val) => typeof val === "string" ? [val] : val, z4.array(z4.string())).describe("File paths")
|
|
1824
1830
|
});
|
|
1825
1831
|
var ImportGhostFeaturesInputSchema = z4.object({
|
|
1826
1832
|
projectId: z4.string().uuid("Invalid project ID"),
|
|
@@ -1836,7 +1842,7 @@ var AuditSecurityIntegrityInputSchema = z4.object({
|
|
|
1836
1842
|
projectId: z4.string().uuid(),
|
|
1837
1843
|
filePath: z4.string().min(1),
|
|
1838
1844
|
content: z4.string().min(1),
|
|
1839
|
-
rules: z4.array(z4.string()).optional()
|
|
1845
|
+
rules: z4.preprocess((val) => typeof val === "string" ? [val] : val, z4.array(z4.string())).optional()
|
|
1840
1846
|
});
|
|
1841
1847
|
var FetchPackageHealthInputSchema = z4.object({
|
|
1842
1848
|
packageName: z4.string().min(1)
|
|
@@ -1846,7 +1852,7 @@ var SaveToProjectBrainInputSchema = z4.object({
|
|
|
1846
1852
|
title: z4.string().min(1),
|
|
1847
1853
|
content: z4.string().min(1),
|
|
1848
1854
|
category: z4.enum(["DECISION", "ARCHITECTURE", "NOTE", "LESSON_LEARNED"]).default("NOTE"),
|
|
1849
|
-
tags: z4.array(z4.string()).optional().default([])
|
|
1855
|
+
tags: z4.preprocess((val) => typeof val === "string" ? [val] : val, z4.array(z4.string())).optional().default([])
|
|
1850
1856
|
});
|
|
1851
1857
|
var UpdateRoadmapStatusInputSchema = z4.object({
|
|
1852
1858
|
projectId: z4.string().uuid(),
|
|
@@ -1875,11 +1881,11 @@ var GenerateCursorRulesInputSchema = z4.object({
|
|
|
1875
1881
|
});
|
|
1876
1882
|
var AnalyzeDatabasePerformanceInputSchema = z4.object({
|
|
1877
1883
|
projectId: z4.string().uuid(),
|
|
1878
|
-
filePaths: z4.array(z4.string())
|
|
1884
|
+
filePaths: z4.preprocess((val) => typeof val === "string" ? [val] : val, z4.array(z4.string()))
|
|
1879
1885
|
});
|
|
1880
1886
|
var AuditIntegrityGateInputSchema = z4.object({
|
|
1881
1887
|
projectId: z4.string().uuid(),
|
|
1882
|
-
filePaths: z4.array(z4.string()).optional().default([])
|
|
1888
|
+
filePaths: z4.preprocess((val) => typeof val === "string" ? [val] : val, z4.array(z4.string())).optional().default([])
|
|
1883
1889
|
});
|
|
1884
1890
|
var CompleteRoadmapTaskInputSchema = z4.object({
|
|
1885
1891
|
projectId: z4.string().uuid(),
|