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.
@@ -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. Used by the parity gate to
317
- * assert a TS-init'd DB has the same schema as a Python-init'd one. */
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
- /** A live bridge to a Python crosscheck-agent child. */
401
- interface BridgeHandle {
402
- /** Names of the tools exposed by the Python child (from its
403
- * `tools/list` response). */
404
- readonly toolNames: ReadonlySet<string>;
405
- /** PID of the spawned Python child process, or `null` if the
406
- * transport hasn't started yet / has already closed. Useful for
407
- * shutdown verification and host-side diagnostics. */
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 (or defer to the bridge
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
  /**
@@ -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. Used by the parity gate to
317
- * assert a TS-init'd DB has the same schema as a Python-init'd one. */
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
- /** A live bridge to a Python crosscheck-agent child. */
401
- interface BridgeHandle {
402
- /** Names of the tools exposed by the Python child (from its
403
- * `tools/list` response). */
404
- readonly toolNames: ReadonlySet<string>;
405
- /** PID of the spawned Python child process, or `null` if the
406
- * transport hasn't started yet / has already closed. Useful for
407
- * shutdown verification and host-side diagnostics. */
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 (or defer to the bridge
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
  /**