@zigrivers/surface-mcp 0.1.1 → 0.2.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.
- package/dist/index.d.ts +10 -3
- package/dist/index.js +435 -100
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { AlternativesReportData, Finding, TrackedFinding, Evidence, SurfaceComposition, Result, ValidationCheck, SurfaceCompositionOptions, SurfaceError } from '@zigrivers/surface-core';
|
|
2
2
|
import { Backlog, Capture, IssueExport, Target, GateResult } from '@zigrivers/surface-core/interfaces';
|
|
3
3
|
|
|
4
|
+
declare const BROWSER_QA_MCP_SERVER_TOOL_NAMES: readonly ["surface_qa", "surface_explore", "surface_flow_run", "surface_flow_list", "surface_flow_promote", "surface_evidence", "surface_replay", "surface_report_qa", "surface_artifact_read"];
|
|
5
|
+
type BrowserQaMcpServerToolName = (typeof BROWSER_QA_MCP_SERVER_TOOL_NAMES)[number];
|
|
6
|
+
type BrowserQaMcpServerToolOutputMap = {
|
|
7
|
+
readonly [Name in BrowserQaMcpServerToolName]: unknown;
|
|
8
|
+
};
|
|
9
|
+
|
|
4
10
|
declare const SURFACE_MCP_SERVER_NAME = "surface";
|
|
5
11
|
declare const SURFACE_MCP_SERVER_VERSION = "1.0.0";
|
|
6
12
|
declare const SURFACE_MCP_TOOL_SCHEMA_VERSION = "1.0.0";
|
|
7
|
-
declare const TOOL_ORDER: readonly ["surface_capture", "surface_audit", "surface_explain", "surface_backlog", "surface_gate", "surface_validate", "surface_baseline", "surface_verdict", "surface_diff", "surface_alternatives", "surface_trace", "surface_run", "surface_next", "surface_status"];
|
|
13
|
+
declare const TOOL_ORDER: readonly ["surface_capture", "surface_audit", "surface_explain", "surface_backlog", "surface_gate", "surface_validate", "surface_baseline", "surface_verdict", "surface_diff", "surface_alternatives", "surface_trace", "surface_run", "surface_next", "surface_status", "surface_qa", "surface_explore", "surface_flow_run", "surface_flow_list", "surface_flow_promote", "surface_evidence", "surface_replay", "surface_report_qa", "surface_artifact_read"];
|
|
8
14
|
type SurfaceMcpToolName = (typeof TOOL_ORDER)[number];
|
|
9
15
|
type JsonSchema = Record<string, unknown>;
|
|
10
16
|
type SurfaceMcpToolDefinition = {
|
|
@@ -79,8 +85,9 @@ type SurfaceMcpBaselineOutput = {
|
|
|
79
85
|
readonly reason?: string;
|
|
80
86
|
};
|
|
81
87
|
type SurfaceMcpVerdictOutput = {
|
|
82
|
-
readonly findingId: string;
|
|
83
88
|
readonly decision: "accept" | "reject" | "correct" | "defer";
|
|
89
|
+
readonly findingId: string;
|
|
90
|
+
readonly promotion?: unknown;
|
|
84
91
|
readonly rationale: string;
|
|
85
92
|
};
|
|
86
93
|
type SurfaceMcpDiffOutput = {
|
|
@@ -124,7 +131,7 @@ type SurfaceMcpToolOutputMap = {
|
|
|
124
131
|
readonly surface_trace: SurfaceMcpTraceOutput;
|
|
125
132
|
readonly surface_run: SurfaceMcpRunOutput;
|
|
126
133
|
readonly surface_next: SurfaceMcpNextOutput;
|
|
127
|
-
};
|
|
134
|
+
} & BrowserQaMcpServerToolOutputMap;
|
|
128
135
|
type SurfaceMcpToolOutput = SurfaceMcpToolOutputMap[SurfaceMcpToolName];
|
|
129
136
|
declare function createSurfaceMcpToolRegistry(): SurfaceMcpToolRegistry;
|
|
130
137
|
declare function createSurfaceMcpServer(options?: SurfaceMcpServerOptions): SurfaceMcpServer;
|