crosscheck-mcp 0.2.27 → 0.2.28
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/README.md +4 -20
- package/dist/browser-ext.cjs +289 -351
- package/dist/browser-ext.cjs.map +1 -1
- package/dist/browser-ext.js +274 -336
- package/dist/browser-ext.js.map +1 -1
- package/dist/embed.cjs +334 -370
- package/dist/embed.cjs.map +1 -1
- package/dist/embed.d.cts +58 -1
- package/dist/embed.d.ts +58 -1
- package/dist/embed.js +312 -351
- package/dist/embed.js.map +1 -1
- package/dist/node-stdio.cjs +356 -464
- package/dist/node-stdio.cjs.map +1 -1
- package/dist/node-stdio.d.cts +11 -47
- package/dist/node-stdio.d.ts +11 -47
- package/dist/node-stdio.js +327 -435
- package/dist/node-stdio.js.map +1 -1
- package/dist/pricing.json +47 -9
- package/dist/self-check.cjs.map +1 -1
- package/dist/self-check.js.map +1 -1
- package/package.json +7 -2
package/dist/node-stdio.d.cts
CHANGED
|
@@ -313,8 +313,8 @@ interface Storage extends StorageRead, StorageWrite {
|
|
|
313
313
|
migrate(): Promise<{
|
|
314
314
|
applied: readonly string[];
|
|
315
315
|
}>;
|
|
316
|
-
/** PRAGMA-derived canonical schema string
|
|
317
|
-
*
|
|
316
|
+
/** PRAGMA-derived canonical schema string, stable across SQLite versions
|
|
317
|
+
* and statement formatting. */
|
|
318
318
|
canonicalSchema(): Promise<string>;
|
|
319
319
|
/** Access the unsafe surface. Migrations only. */
|
|
320
320
|
unsafe(): UnsafeStorage;
|
|
@@ -397,29 +397,14 @@ interface Provider {
|
|
|
397
397
|
send(args: SendArgs): Promise<SendResult>;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
readonly pid: number | null;
|
|
409
|
-
/** Forward a `tools/call` to the Python child and return the result
|
|
410
|
-
* envelope verbatim. */
|
|
411
|
-
callTool(name: string, args: Record<string, unknown>): Promise<{
|
|
412
|
-
content: {
|
|
413
|
-
type: string;
|
|
414
|
-
text: string;
|
|
415
|
-
}[];
|
|
416
|
-
isError?: boolean;
|
|
417
|
-
}>;
|
|
418
|
-
/** Re-fetch the tool list (in case the child surfaces new tools mid-
|
|
419
|
-
* session). Returns the new tool names. */
|
|
420
|
-
refreshTools(): Promise<ReadonlySet<string>>;
|
|
421
|
-
/** Tear down the bridge cleanly. Idempotent — repeat calls are no-ops. */
|
|
422
|
-
close(): Promise<void>;
|
|
400
|
+
interface FetchConfig {
|
|
401
|
+
enabled?: boolean;
|
|
402
|
+
url_allowlist?: readonly string[];
|
|
403
|
+
max_bytes?: number;
|
|
404
|
+
max_bytes_per_session?: number;
|
|
405
|
+
max_unique_hosts_per_session?: number;
|
|
406
|
+
timeout_s?: number;
|
|
407
|
+
evidence_dir?: string;
|
|
423
408
|
}
|
|
424
409
|
|
|
425
410
|
/** Per-call node-cache config block. Mirrors Python's CFG.node_cache. */
|
|
@@ -461,30 +446,13 @@ interface ConfigPinningConfig {
|
|
|
461
446
|
reject_drift?: boolean;
|
|
462
447
|
}
|
|
463
448
|
|
|
464
|
-
interface FetchConfig {
|
|
465
|
-
enabled?: boolean;
|
|
466
|
-
url_allowlist?: readonly string[];
|
|
467
|
-
max_bytes?: number;
|
|
468
|
-
max_bytes_per_session?: number;
|
|
469
|
-
max_unique_hosts_per_session?: number;
|
|
470
|
-
timeout_s?: number;
|
|
471
|
-
evidence_dir?: string;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
449
|
declare const SERVER_NAME = "crosscheck-agent";
|
|
475
450
|
declare const SERVER_VERSION: string;
|
|
476
451
|
|
|
477
452
|
interface CreateServerOptions {
|
|
478
|
-
/** Optional Python bridge. When supplied, the bridge's tools are
|
|
479
|
-
* merged into the registry as proxy entries — they forward `tools/call`
|
|
480
|
-
* to the Python child. In Phase 4 this is route-all mode (every
|
|
481
|
-
* tool name comes from Python); in Phase 5+ native TS tools
|
|
482
|
-
* override per-name. */
|
|
483
|
-
bridge?: BridgeHandle;
|
|
484
453
|
/** Native LLM providers, keyed by lowercased name. Threaded into
|
|
485
454
|
* pick / audit / confer via the tool registry. When absent, those
|
|
486
|
-
* tools return a clear "no providers" error
|
|
487
|
-
* if one is wired). */
|
|
455
|
+
* tools return a clear "no providers" error. */
|
|
488
456
|
providers?: Readonly<Record<string, Provider>>;
|
|
489
457
|
/** Optional provider allowlist. */
|
|
490
458
|
providerAllowlist?: readonly string[] | null;
|
|
@@ -530,10 +498,6 @@ interface CreateServerOptions {
|
|
|
530
498
|
/**
|
|
531
499
|
* Create a not-yet-connected MCP server with the current tool surface
|
|
532
500
|
* registered. The caller is responsible for connecting it to a Transport.
|
|
533
|
-
*
|
|
534
|
-
* When `opts.bridge` is supplied, the Python tool surface is merged in
|
|
535
|
-
* via proxy handlers — TS-native tools win on name collisions so we can
|
|
536
|
-
* cut over per-tool in Phase 5 without restarting.
|
|
537
501
|
*/
|
|
538
502
|
declare function createServer(opts?: CreateServerOptions): Server;
|
|
539
503
|
/**
|
package/dist/node-stdio.d.ts
CHANGED
|
@@ -313,8 +313,8 @@ interface Storage extends StorageRead, StorageWrite {
|
|
|
313
313
|
migrate(): Promise<{
|
|
314
314
|
applied: readonly string[];
|
|
315
315
|
}>;
|
|
316
|
-
/** PRAGMA-derived canonical schema string
|
|
317
|
-
*
|
|
316
|
+
/** PRAGMA-derived canonical schema string, stable across SQLite versions
|
|
317
|
+
* and statement formatting. */
|
|
318
318
|
canonicalSchema(): Promise<string>;
|
|
319
319
|
/** Access the unsafe surface. Migrations only. */
|
|
320
320
|
unsafe(): UnsafeStorage;
|
|
@@ -397,29 +397,14 @@ interface Provider {
|
|
|
397
397
|
send(args: SendArgs): Promise<SendResult>;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
readonly pid: number | null;
|
|
409
|
-
/** Forward a `tools/call` to the Python child and return the result
|
|
410
|
-
* envelope verbatim. */
|
|
411
|
-
callTool(name: string, args: Record<string, unknown>): Promise<{
|
|
412
|
-
content: {
|
|
413
|
-
type: string;
|
|
414
|
-
text: string;
|
|
415
|
-
}[];
|
|
416
|
-
isError?: boolean;
|
|
417
|
-
}>;
|
|
418
|
-
/** Re-fetch the tool list (in case the child surfaces new tools mid-
|
|
419
|
-
* session). Returns the new tool names. */
|
|
420
|
-
refreshTools(): Promise<ReadonlySet<string>>;
|
|
421
|
-
/** Tear down the bridge cleanly. Idempotent — repeat calls are no-ops. */
|
|
422
|
-
close(): Promise<void>;
|
|
400
|
+
interface FetchConfig {
|
|
401
|
+
enabled?: boolean;
|
|
402
|
+
url_allowlist?: readonly string[];
|
|
403
|
+
max_bytes?: number;
|
|
404
|
+
max_bytes_per_session?: number;
|
|
405
|
+
max_unique_hosts_per_session?: number;
|
|
406
|
+
timeout_s?: number;
|
|
407
|
+
evidence_dir?: string;
|
|
423
408
|
}
|
|
424
409
|
|
|
425
410
|
/** Per-call node-cache config block. Mirrors Python's CFG.node_cache. */
|
|
@@ -461,30 +446,13 @@ interface ConfigPinningConfig {
|
|
|
461
446
|
reject_drift?: boolean;
|
|
462
447
|
}
|
|
463
448
|
|
|
464
|
-
interface FetchConfig {
|
|
465
|
-
enabled?: boolean;
|
|
466
|
-
url_allowlist?: readonly string[];
|
|
467
|
-
max_bytes?: number;
|
|
468
|
-
max_bytes_per_session?: number;
|
|
469
|
-
max_unique_hosts_per_session?: number;
|
|
470
|
-
timeout_s?: number;
|
|
471
|
-
evidence_dir?: string;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
449
|
declare const SERVER_NAME = "crosscheck-agent";
|
|
475
450
|
declare const SERVER_VERSION: string;
|
|
476
451
|
|
|
477
452
|
interface CreateServerOptions {
|
|
478
|
-
/** Optional Python bridge. When supplied, the bridge's tools are
|
|
479
|
-
* merged into the registry as proxy entries — they forward `tools/call`
|
|
480
|
-
* to the Python child. In Phase 4 this is route-all mode (every
|
|
481
|
-
* tool name comes from Python); in Phase 5+ native TS tools
|
|
482
|
-
* override per-name. */
|
|
483
|
-
bridge?: BridgeHandle;
|
|
484
453
|
/** Native LLM providers, keyed by lowercased name. Threaded into
|
|
485
454
|
* pick / audit / confer via the tool registry. When absent, those
|
|
486
|
-
* tools return a clear "no providers" error
|
|
487
|
-
* if one is wired). */
|
|
455
|
+
* tools return a clear "no providers" error. */
|
|
488
456
|
providers?: Readonly<Record<string, Provider>>;
|
|
489
457
|
/** Optional provider allowlist. */
|
|
490
458
|
providerAllowlist?: readonly string[] | null;
|
|
@@ -530,10 +498,6 @@ interface CreateServerOptions {
|
|
|
530
498
|
/**
|
|
531
499
|
* Create a not-yet-connected MCP server with the current tool surface
|
|
532
500
|
* registered. The caller is responsible for connecting it to a Transport.
|
|
533
|
-
*
|
|
534
|
-
* When `opts.bridge` is supplied, the Python tool surface is merged in
|
|
535
|
-
* via proxy handlers — TS-native tools win on name collisions so we can
|
|
536
|
-
* cut over per-tool in Phase 5 without restarting.
|
|
537
501
|
*/
|
|
538
502
|
declare function createServer(opts?: CreateServerOptions): Server;
|
|
539
503
|
/**
|