crosscheck-mcp 0.2.29 → 0.2.31
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 +1129 -987
- package/dist/browser-ext.cjs.map +1 -1
- package/dist/browser-ext.d.cts +2 -0
- package/dist/browser-ext.d.ts +2 -0
- package/dist/browser-ext.js +1129 -987
- package/dist/browser-ext.js.map +1 -1
- package/dist/embed.cjs +434 -243
- package/dist/embed.cjs.map +1 -1
- package/dist/embed.d.cts +44 -3
- package/dist/embed.d.ts +44 -3
- package/dist/embed.js +428 -242
- package/dist/embed.js.map +1 -1
- package/dist/node-stdio.cjs +360 -210
- package/dist/node-stdio.cjs.map +1 -1
- package/dist/node-stdio.d.cts +1 -1
- package/dist/node-stdio.d.ts +1 -1
- package/dist/node-stdio.js +357 -207
- package/dist/node-stdio.js.map +1 -1
- package/dist/{types-BcprisDl.d.cts → types-HA3W47O4.d.cts} +13 -2
- package/dist/{types-BcprisDl.d.ts → types-HA3W47O4.d.ts} +13 -2
- package/package.json +3 -2
package/dist/embed.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as ChatMessage } from './types-
|
|
1
|
+
import { C as ChatMessage, I as ImagePart, S as SendArgs } from './types-HA3W47O4.cjs';
|
|
2
|
+
export { a as IMAGE_MEDIA_TYPES } from './types-HA3W47O4.cjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* A record of which engine processes are alive, and what they are RUNNING.
|
|
@@ -98,6 +99,30 @@ declare const DEFAULT_FALLBACKS: Readonly<Record<string, readonly string[]>>;
|
|
|
98
99
|
*/
|
|
99
100
|
declare const DEFAULT_EXCLUDED_PROVIDERS: readonly string[];
|
|
100
101
|
|
|
102
|
+
/**
|
|
103
|
+
* The super lineup, as ORDERED CHAINS: index 0 is the model we want, the rest
|
|
104
|
+
* are fallbacks tried only on a model-access failure (never on auth, rate
|
|
105
|
+
* limit, or a 500 — a different model doesn't fix a bad key).
|
|
106
|
+
*
|
|
107
|
+
* Chains rather than single ids for one specific reason: it lets us name a
|
|
108
|
+
* model that hasn't shipped yet. `gpt-6-astra` is not in OpenAI's model list
|
|
109
|
+
* as of 2026-09-04 — verified against the live endpoint, no `gpt-6*` exists —
|
|
110
|
+
* so it 404s today and the chain silently serves gpt-5.6 instead. The day
|
|
111
|
+
* Astra becomes available it starts being used with no release on our side.
|
|
112
|
+
*
|
|
113
|
+
* The cost of that convenience, stated plainly: until Astra ships, an OpenAI
|
|
114
|
+
* seat in super mode pays one extra failed round trip per process per 5
|
|
115
|
+
* minutes (dead-models.ts caches the 404 for that long). A model-not-found is
|
|
116
|
+
* an immediate error rather than a timeout, so it's a few hundred ms, not a
|
|
117
|
+
* hang. If that ever becomes annoying, drop "gpt-6-astra" from the chain —
|
|
118
|
+
* nothing else depends on it.
|
|
119
|
+
*
|
|
120
|
+
* anthropic stays FIRST: resolveProviders preserves key order into `selected`,
|
|
121
|
+
* and debate's moderator / coordinate's proposer default to `selected[0]`.
|
|
122
|
+
* Reordering this object silently moves those seats to another provider.
|
|
123
|
+
*/
|
|
124
|
+
declare const SUPER_MODELS: Readonly<Record<string, readonly string[]>>;
|
|
125
|
+
|
|
101
126
|
/**
|
|
102
127
|
* Embedded host entrypoint — the API Crosscheck Desktop runs panels through.
|
|
103
128
|
*
|
|
@@ -259,6 +284,14 @@ type EngineEvent =
|
|
|
259
284
|
/** How much of each model reply an activity event carries. Enough to read
|
|
260
285
|
* the back-and-forth; the full text is in the envelope. */
|
|
261
286
|
declare const ACTIVITY_TEXT_CAP = 8000;
|
|
287
|
+
/** Providers whose models can see images (vault ids). Everyone else is told
|
|
288
|
+
* an image exists that it can't see, rather than being sent one it would
|
|
289
|
+
* reject — or silently answering as if there were none. */
|
|
290
|
+
declare const VISION_PROVIDERS: readonly string[];
|
|
291
|
+
declare const MAX_RUN_IMAGES = 8;
|
|
292
|
+
/** Put the run's images on the newest user message — or, for a provider
|
|
293
|
+
* that can't see images, a plain note saying they exist. */
|
|
294
|
+
declare function withRunImages(args: SendArgs, provider: string, images: readonly ImagePart[] | undefined): SendArgs;
|
|
262
295
|
type EngineEventSink = (event: EngineEvent) => void;
|
|
263
296
|
interface EmbeddedEngineOptions {
|
|
264
297
|
/** Vault provider id → raw API key. Only providers present here are built.
|
|
@@ -267,7 +300,11 @@ interface EmbeddedEngineOptions {
|
|
|
267
300
|
/** Vault provider id → pinned model. Omit a provider to take the engine
|
|
268
301
|
* default. Mirrors what `/account/models` and `crosscheck models set` do. */
|
|
269
302
|
models?: Readonly<Record<string, string>>;
|
|
270
|
-
/**
|
|
303
|
+
/** Vault provider id → pinned SUPER-tier model (what `confer super` uses).
|
|
304
|
+
* Omit a provider to take the engine's super lineup (SUPER_MODELS). */
|
|
305
|
+
superModels?: Readonly<Record<string, string>>;
|
|
306
|
+
/** Default moderator: a provider ("openai") or an exact model
|
|
307
|
+
* ("openai:gpt-6-sol"). Vault ids work too ("grok"). Default "anthropic". */
|
|
271
308
|
moderator?: string;
|
|
272
309
|
/** Explicit pricing.json path. Defaults to the copy bundled in `dist/`. */
|
|
273
310
|
pricingPath?: string;
|
|
@@ -278,6 +315,10 @@ interface RunOptions {
|
|
|
278
315
|
/** Stop waiting on any single model call after this long (ms). The run
|
|
279
316
|
* continues with the answers already in. Off when 0/undefined. */
|
|
280
317
|
callTimeoutMs?: number;
|
|
318
|
+
/** Images for this run (base64, png/jpeg/webp/gif; at most 8). Sent with
|
|
319
|
+
* the question to every provider that can see images; the others are
|
|
320
|
+
* told they exist. Embed-only — the MCP tools don't take images. */
|
|
321
|
+
images?: ImagePart[];
|
|
281
322
|
}
|
|
282
323
|
interface AskOptions {
|
|
283
324
|
/** Vault id ("grok", not "xai"). Must be a provider this engine built. */
|
|
@@ -351,4 +392,4 @@ declare const __test_internals: {
|
|
|
351
392
|
vaultId: typeof vaultId;
|
|
352
393
|
};
|
|
353
394
|
|
|
354
|
-
export { ACTIVITY_TEXT_CAP, type AskOptions, type AskResult, DEFAULT_EXCLUDED_PROVIDERS, DEFAULT_FALLBACKS, DEFAULT_MODELS, type EmbeddedEngine, type EmbeddedEngineOptions, type EngineEvent, type EngineEventSink, type EventUsage, type ProcRecord, type ProcStatus, type RunOptions, KEY_ENV as __KEY_ENV, MODEL_ENV as __MODEL_ENV, __test_internals, createEmbeddedEngine, isAlive, listProcesses, processRegistryPath };
|
|
395
|
+
export { ACTIVITY_TEXT_CAP, type AskOptions, type AskResult, DEFAULT_EXCLUDED_PROVIDERS, DEFAULT_FALLBACKS, DEFAULT_MODELS, type EmbeddedEngine, type EmbeddedEngineOptions, type EngineEvent, type EngineEventSink, type EventUsage, ImagePart, MAX_RUN_IMAGES, type ProcRecord, type ProcStatus, type RunOptions, SUPER_MODELS, VISION_PROVIDERS, KEY_ENV as __KEY_ENV, MODEL_ENV as __MODEL_ENV, __test_internals, createEmbeddedEngine, isAlive, listProcesses, processRegistryPath, withRunImages };
|
package/dist/embed.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as ChatMessage } from './types-
|
|
1
|
+
import { C as ChatMessage, I as ImagePart, S as SendArgs } from './types-HA3W47O4.js';
|
|
2
|
+
export { a as IMAGE_MEDIA_TYPES } from './types-HA3W47O4.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* A record of which engine processes are alive, and what they are RUNNING.
|
|
@@ -98,6 +99,30 @@ declare const DEFAULT_FALLBACKS: Readonly<Record<string, readonly string[]>>;
|
|
|
98
99
|
*/
|
|
99
100
|
declare const DEFAULT_EXCLUDED_PROVIDERS: readonly string[];
|
|
100
101
|
|
|
102
|
+
/**
|
|
103
|
+
* The super lineup, as ORDERED CHAINS: index 0 is the model we want, the rest
|
|
104
|
+
* are fallbacks tried only on a model-access failure (never on auth, rate
|
|
105
|
+
* limit, or a 500 — a different model doesn't fix a bad key).
|
|
106
|
+
*
|
|
107
|
+
* Chains rather than single ids for one specific reason: it lets us name a
|
|
108
|
+
* model that hasn't shipped yet. `gpt-6-astra` is not in OpenAI's model list
|
|
109
|
+
* as of 2026-09-04 — verified against the live endpoint, no `gpt-6*` exists —
|
|
110
|
+
* so it 404s today and the chain silently serves gpt-5.6 instead. The day
|
|
111
|
+
* Astra becomes available it starts being used with no release on our side.
|
|
112
|
+
*
|
|
113
|
+
* The cost of that convenience, stated plainly: until Astra ships, an OpenAI
|
|
114
|
+
* seat in super mode pays one extra failed round trip per process per 5
|
|
115
|
+
* minutes (dead-models.ts caches the 404 for that long). A model-not-found is
|
|
116
|
+
* an immediate error rather than a timeout, so it's a few hundred ms, not a
|
|
117
|
+
* hang. If that ever becomes annoying, drop "gpt-6-astra" from the chain —
|
|
118
|
+
* nothing else depends on it.
|
|
119
|
+
*
|
|
120
|
+
* anthropic stays FIRST: resolveProviders preserves key order into `selected`,
|
|
121
|
+
* and debate's moderator / coordinate's proposer default to `selected[0]`.
|
|
122
|
+
* Reordering this object silently moves those seats to another provider.
|
|
123
|
+
*/
|
|
124
|
+
declare const SUPER_MODELS: Readonly<Record<string, readonly string[]>>;
|
|
125
|
+
|
|
101
126
|
/**
|
|
102
127
|
* Embedded host entrypoint — the API Crosscheck Desktop runs panels through.
|
|
103
128
|
*
|
|
@@ -259,6 +284,14 @@ type EngineEvent =
|
|
|
259
284
|
/** How much of each model reply an activity event carries. Enough to read
|
|
260
285
|
* the back-and-forth; the full text is in the envelope. */
|
|
261
286
|
declare const ACTIVITY_TEXT_CAP = 8000;
|
|
287
|
+
/** Providers whose models can see images (vault ids). Everyone else is told
|
|
288
|
+
* an image exists that it can't see, rather than being sent one it would
|
|
289
|
+
* reject — or silently answering as if there were none. */
|
|
290
|
+
declare const VISION_PROVIDERS: readonly string[];
|
|
291
|
+
declare const MAX_RUN_IMAGES = 8;
|
|
292
|
+
/** Put the run's images on the newest user message — or, for a provider
|
|
293
|
+
* that can't see images, a plain note saying they exist. */
|
|
294
|
+
declare function withRunImages(args: SendArgs, provider: string, images: readonly ImagePart[] | undefined): SendArgs;
|
|
262
295
|
type EngineEventSink = (event: EngineEvent) => void;
|
|
263
296
|
interface EmbeddedEngineOptions {
|
|
264
297
|
/** Vault provider id → raw API key. Only providers present here are built.
|
|
@@ -267,7 +300,11 @@ interface EmbeddedEngineOptions {
|
|
|
267
300
|
/** Vault provider id → pinned model. Omit a provider to take the engine
|
|
268
301
|
* default. Mirrors what `/account/models` and `crosscheck models set` do. */
|
|
269
302
|
models?: Readonly<Record<string, string>>;
|
|
270
|
-
/**
|
|
303
|
+
/** Vault provider id → pinned SUPER-tier model (what `confer super` uses).
|
|
304
|
+
* Omit a provider to take the engine's super lineup (SUPER_MODELS). */
|
|
305
|
+
superModels?: Readonly<Record<string, string>>;
|
|
306
|
+
/** Default moderator: a provider ("openai") or an exact model
|
|
307
|
+
* ("openai:gpt-6-sol"). Vault ids work too ("grok"). Default "anthropic". */
|
|
271
308
|
moderator?: string;
|
|
272
309
|
/** Explicit pricing.json path. Defaults to the copy bundled in `dist/`. */
|
|
273
310
|
pricingPath?: string;
|
|
@@ -278,6 +315,10 @@ interface RunOptions {
|
|
|
278
315
|
/** Stop waiting on any single model call after this long (ms). The run
|
|
279
316
|
* continues with the answers already in. Off when 0/undefined. */
|
|
280
317
|
callTimeoutMs?: number;
|
|
318
|
+
/** Images for this run (base64, png/jpeg/webp/gif; at most 8). Sent with
|
|
319
|
+
* the question to every provider that can see images; the others are
|
|
320
|
+
* told they exist. Embed-only — the MCP tools don't take images. */
|
|
321
|
+
images?: ImagePart[];
|
|
281
322
|
}
|
|
282
323
|
interface AskOptions {
|
|
283
324
|
/** Vault id ("grok", not "xai"). Must be a provider this engine built. */
|
|
@@ -351,4 +392,4 @@ declare const __test_internals: {
|
|
|
351
392
|
vaultId: typeof vaultId;
|
|
352
393
|
};
|
|
353
394
|
|
|
354
|
-
export { ACTIVITY_TEXT_CAP, type AskOptions, type AskResult, DEFAULT_EXCLUDED_PROVIDERS, DEFAULT_FALLBACKS, DEFAULT_MODELS, type EmbeddedEngine, type EmbeddedEngineOptions, type EngineEvent, type EngineEventSink, type EventUsage, type ProcRecord, type ProcStatus, type RunOptions, KEY_ENV as __KEY_ENV, MODEL_ENV as __MODEL_ENV, __test_internals, createEmbeddedEngine, isAlive, listProcesses, processRegistryPath };
|
|
395
|
+
export { ACTIVITY_TEXT_CAP, type AskOptions, type AskResult, DEFAULT_EXCLUDED_PROVIDERS, DEFAULT_FALLBACKS, DEFAULT_MODELS, type EmbeddedEngine, type EmbeddedEngineOptions, type EngineEvent, type EngineEventSink, type EventUsage, ImagePart, MAX_RUN_IMAGES, type ProcRecord, type ProcStatus, type RunOptions, SUPER_MODELS, VISION_PROVIDERS, KEY_ENV as __KEY_ENV, MODEL_ENV as __MODEL_ENV, __test_internals, createEmbeddedEngine, isAlive, listProcesses, processRegistryPath, withRunImages };
|