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.
- package/dist/browser-ext.cjs +12761 -3
- package/dist/browser-ext.cjs.map +1 -1
- package/dist/browser-ext.d.cts +26 -2
- package/dist/browser-ext.d.ts +26 -2
- package/dist/browser-ext.js +12767 -2
- package/dist/browser-ext.js.map +1 -1
- package/dist/node-stdio.cjs +148 -19
- package/dist/node-stdio.cjs.map +1 -1
- package/dist/node-stdio.d.cts +1 -0
- package/dist/node-stdio.d.ts +1 -0
- package/dist/node-stdio.js +146 -17
- package/dist/node-stdio.js.map +1 -1
- package/dist/pricing.json +2 -1
- package/package.json +1 -1
package/dist/browser-ext.d.cts
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
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 {
|
|
27
|
+
export { type BrowserCrosscheck, createCrosscheck };
|
package/dist/browser-ext.d.ts
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
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 {
|
|
27
|
+
export { type BrowserCrosscheck, createCrosscheck };
|