crosscheck-mcp 0.2.3 → 0.2.4

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.
@@ -1,3 +1,27 @@
1
- declare const PLACEHOLDER = "browser-ext transport \u2014 not yet implemented";
1
+ interface BrowserCrosscheck {
2
+ /** Names of the registered tools available in this build. */
3
+ listTools(): string[];
4
+ /** Invoke a tool by name with its arguments. */
5
+ call(name: string, args: Record<string, unknown>): Promise<unknown>;
6
+ /** Run `confer` with a per-panelist streaming hook. `onAnswer` fires
7
+ * once as each provider's answer resolves so the host can render the
8
+ * panel live; the promise resolves with the same final envelope
9
+ * `call("confer", …)` would return. */
10
+ conferStream(args: Record<string, unknown>, onAnswer: (answer: Record<string, unknown>, provider: string) => void): Promise<unknown>;
11
+ /** Run `debate` with streaming hooks: `onTurn` per panelist per round,
12
+ * `onSynthesis` once the moderator synthesis lands. Resolves with the
13
+ * same envelope `call("debate", …)` would return. */
14
+ debateStream(args: Record<string, unknown>, hooks: {
15
+ onTurn?: (entry: Record<string, unknown>, round: number, provider: string) => void;
16
+ onSynthesis?: (synthesis: Record<string, unknown>) => void;
17
+ }): Promise<unknown>;
18
+ }
19
+ /**
20
+ * Build a Crosscheck instance for the browser. `keys` maps provider id
21
+ * (anthropic/openai/gemini/grok/groq/deepseek/mistral) to the raw API key.
22
+ */
23
+ declare function createCrosscheck(opts: {
24
+ keys: Record<string, string>;
25
+ }): BrowserCrosscheck;
2
26
 
3
- export { PLACEHOLDER };
27
+ export { type BrowserCrosscheck, createCrosscheck };
@@ -1,3 +1,27 @@
1
- declare const PLACEHOLDER = "browser-ext transport \u2014 not yet implemented";
1
+ interface BrowserCrosscheck {
2
+ /** Names of the registered tools available in this build. */
3
+ listTools(): string[];
4
+ /** Invoke a tool by name with its arguments. */
5
+ call(name: string, args: Record<string, unknown>): Promise<unknown>;
6
+ /** Run `confer` with a per-panelist streaming hook. `onAnswer` fires
7
+ * once as each provider's answer resolves so the host can render the
8
+ * panel live; the promise resolves with the same final envelope
9
+ * `call("confer", …)` would return. */
10
+ conferStream(args: Record<string, unknown>, onAnswer: (answer: Record<string, unknown>, provider: string) => void): Promise<unknown>;
11
+ /** Run `debate` with streaming hooks: `onTurn` per panelist per round,
12
+ * `onSynthesis` once the moderator synthesis lands. Resolves with the
13
+ * same envelope `call("debate", …)` would return. */
14
+ debateStream(args: Record<string, unknown>, hooks: {
15
+ onTurn?: (entry: Record<string, unknown>, round: number, provider: string) => void;
16
+ onSynthesis?: (synthesis: Record<string, unknown>) => void;
17
+ }): Promise<unknown>;
18
+ }
19
+ /**
20
+ * Build a Crosscheck instance for the browser. `keys` maps provider id
21
+ * (anthropic/openai/gemini/grok/groq/deepseek/mistral) to the raw API key.
22
+ */
23
+ declare function createCrosscheck(opts: {
24
+ keys: Record<string, string>;
25
+ }): BrowserCrosscheck;
2
26
 
3
- export { PLACEHOLDER };
27
+ export { type BrowserCrosscheck, createCrosscheck };