edgegate-mcp 0.11.0 → 0.15.0

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.
Files changed (51) hide show
  1. package/dist/client.d.ts +21 -1
  2. package/dist/client.js +42 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/server.js +139 -0
  5. package/dist/server.js.map +1 -1
  6. package/dist/tools/cancel_run.d.ts +20 -0
  7. package/dist/tools/cancel_run.js +51 -0
  8. package/dist/tools/cancel_run.js.map +1 -0
  9. package/dist/tools/capture_reference.d.ts +49 -0
  10. package/dist/tools/capture_reference.js +102 -0
  11. package/dist/tools/capture_reference.js.map +1 -0
  12. package/dist/tools/check_genie_compile_status.d.ts +15 -0
  13. package/dist/tools/check_genie_compile_status.js +36 -0
  14. package/dist/tools/check_genie_compile_status.js.map +1 -0
  15. package/dist/tools/check_reference_capture_status.d.ts +15 -0
  16. package/dist/tools/check_reference_capture_status.js +31 -0
  17. package/dist/tools/check_reference_capture_status.js.map +1 -0
  18. package/dist/tools/compile_genie.d.ts +46 -0
  19. package/dist/tools/compile_genie.js +101 -0
  20. package/dist/tools/compile_genie.js.map +1 -0
  21. package/dist/tools/create_bg_run.d.ts +41 -0
  22. package/dist/tools/create_bg_run.js +109 -0
  23. package/dist/tools/create_bg_run.js.map +1 -0
  24. package/dist/tools/create_eval_set.d.ts +89 -0
  25. package/dist/tools/create_eval_set.js +128 -0
  26. package/dist/tools/create_eval_set.js.map +1 -0
  27. package/dist/tools/list_eval_packs.d.ts +6 -0
  28. package/dist/tools/list_eval_packs.js +38 -0
  29. package/dist/tools/list_eval_packs.js.map +1 -0
  30. package/dist/tools/list_eval_sets.d.ts +12 -0
  31. package/dist/tools/list_eval_sets.js +38 -0
  32. package/dist/tools/list_eval_sets.js.map +1 -0
  33. package/dist/tools/new_eval_set_version.d.ts +18 -0
  34. package/dist/tools/new_eval_set_version.js +47 -0
  35. package/dist/tools/new_eval_set_version.js.map +1 -0
  36. package/dist/tools/publish_eval_set.d.ts +18 -0
  37. package/dist/tools/publish_eval_set.js +74 -0
  38. package/dist/tools/publish_eval_set.js.map +1 -0
  39. package/dist/tools/rerun_bg.d.ts +20 -0
  40. package/dist/tools/rerun_bg.js +61 -0
  41. package/dist/tools/rerun_bg.js.map +1 -0
  42. package/dist/tools/setup_bg_github_action.d.ts +44 -0
  43. package/dist/tools/setup_bg_github_action.js +109 -0
  44. package/dist/tools/setup_bg_github_action.js.map +1 -0
  45. package/dist/tools/update_eval_set.d.ts +56 -0
  46. package/dist/tools/update_eval_set.js +60 -0
  47. package/dist/tools/update_eval_set.js.map +1 -0
  48. package/dist/types.d.ts +147 -0
  49. package/dist/version.d.ts +2 -2
  50. package/dist/version.js +1 -1
  51. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -416,6 +416,153 @@ export interface ByoAuditPage {
416
416
  entries: ByoAuditEntry[];
417
417
  next_cursor: number | null;
418
418
  }
419
+ /**
420
+ * Balance counts returned at publish and in pack summaries. See the eval-set
421
+ * authoring contract §4 — the floor is ≥5 must_refuse_with_forbidden cases and
422
+ * ≥1 task case.
423
+ */
424
+ export interface EvalBalance {
425
+ must_refuse: number;
426
+ must_refuse_with_forbidden: number;
427
+ task: number;
428
+ benign: number;
429
+ total: number;
430
+ }
431
+ /**
432
+ * One behavioral eval case. Byte-faithful to edgegate/bg/eval_set.py — exactly
433
+ * six fields. See the eval-set authoring contract §3.
434
+ */
435
+ export interface EvalCase {
436
+ case_id: string;
437
+ prompt: string;
438
+ category: "jailbreak" | "forbidden_action" | "task" | "format";
439
+ forbidden_actions: string[];
440
+ must_refuse: boolean;
441
+ expected_task_answer: string | null;
442
+ }
443
+ /**
444
+ * A bundled starter pack a customer can clone from. Returned by
445
+ * GET /v1/eval-packs.
446
+ */
447
+ export interface EvalPack {
448
+ id: string;
449
+ name: string;
450
+ case_count: number;
451
+ balance: EvalBalance;
452
+ }
453
+ /**
454
+ * An eval-set version. Returned by create / update / publish / new_version.
455
+ * `eval_set_sha256`, `artifact_id`, `balance`, and `published_at` are null
456
+ * until the version is published. See the contract §8.
457
+ */
458
+ export interface EvalSetVersion {
459
+ id: UUID;
460
+ eval_set_id: UUID;
461
+ version: number;
462
+ status: "draft" | "published";
463
+ eval_set_sha256: string | null;
464
+ artifact_id: UUID | null;
465
+ balance: EvalBalance | null;
466
+ cases: EvalCase[];
467
+ created_at: string;
468
+ published_at: string | null;
469
+ }
470
+ /**
471
+ * Summary row from GET /v1/workspaces/{ws}/eval-sets. See the contract §7.3.
472
+ */
473
+ export interface EvalSetSummary {
474
+ id: UUID;
475
+ name: string;
476
+ created_at: string;
477
+ latest_version: number;
478
+ }
479
+ /**
480
+ * Body for POST /v1/workspaces/{ws}/reference-captures. Mirrors the backend
481
+ * `ReferenceCaptureRequest` model (edgegate/api/routes/reference_capture.py).
482
+ * Exactly one flavor selector — `hf_repo` (auto-FP16) XOR
483
+ * `reference_upload_artifact_id` (golden) — must be set; else 422.
484
+ */
485
+ export interface ReferenceCaptureBody {
486
+ eval_set_artifact_id: UUID;
487
+ system_prompt: string;
488
+ decode_config?: Record<string, unknown>;
489
+ hf_repo?: string;
490
+ reference_upload_artifact_id?: UUID;
491
+ }
492
+ /**
493
+ * Response (202) from POST /v1/workspaces/{ws}/reference-captures.
494
+ */
495
+ export interface ReferenceCaptureJob {
496
+ job_id: UUID;
497
+ flavor: string;
498
+ status: string;
499
+ }
500
+ /**
501
+ * Response from GET /v1/workspaces/{ws}/reference-captures/{job_id}. The
502
+ * `reference_artifact_id` (an `ArtifactKind.REFERENCE` artifact) is populated
503
+ * only when `status` is "done"; feed it into edgegate_create_bg_run.
504
+ */
505
+ export interface ReferenceCaptureStatus {
506
+ job_id: UUID;
507
+ status: string;
508
+ reference_artifact_id: UUID | null;
509
+ }
510
+ /**
511
+ * Body for POST /v1/workspaces/{ws}/genie-compile. Mirrors the backend
512
+ * `GenieCompileRequest` (edgegate/api/routes/compile_genie.py). Exactly one
513
+ * lane selector — `hf_repo` (Lane A) XOR `onnx_artifact_ids` (Lane B,
514
+ * genie-ready multi-part) XOR `bundle_artifact_id` (Lane C, precompiled) —
515
+ * decides the lane; empty/multi-selector → 422.
516
+ */
517
+ export interface GenieCompileBody {
518
+ device_label: string;
519
+ hf_repo?: string;
520
+ onnx_artifact_ids?: UUID[];
521
+ bundle_artifact_id?: UUID;
522
+ }
523
+ /**
524
+ * Response (202) from POST /v1/workspaces/{ws}/genie-compile. Mirrors the
525
+ * backend `GenieCompileAccepted` schema.
526
+ */
527
+ export interface GenieCompileJob {
528
+ job_id: UUID;
529
+ lane: string;
530
+ status: string;
531
+ }
532
+ /**
533
+ * Response from GET /v1/workspaces/{ws}/genie-compile/{job_id}. Mirrors the
534
+ * backend `GenieCompileStatus` schema. The `bundle_artifact_id` is populated
535
+ * only when `status` is "done"; feed it into edgegate_create_bg_run.
536
+ */
537
+ export interface GenieCompileStatus {
538
+ job_id: UUID;
539
+ lane: string;
540
+ status: string;
541
+ bundle_artifact_id: UUID | null;
542
+ }
543
+ /**
544
+ * Body for POST /v1/workspaces/{ws}/bg-runs. Mirrors the backend
545
+ * `BgRunCreateRequest` (edgegate/api/routes/compile_genie.py). Wires a
546
+ * compiled bundle + eval set + reference into a Run (populates
547
+ * `Run.runner_config_json`).
548
+ */
549
+ export interface BgRunCreateBody {
550
+ bundle_artifact_id: UUID;
551
+ eval_set_artifact_id: UUID;
552
+ reference_artifact_id: UUID;
553
+ vendor?: string;
554
+ system_prompt?: string;
555
+ decode_config?: Record<string, unknown>;
556
+ device_label?: string;
557
+ }
558
+ /**
559
+ * Response (201) from POST /v1/workspaces/{ws}/bg-runs. Mirrors the backend
560
+ * `BgRunResponse` schema.
561
+ */
562
+ export interface BgRunResponse {
563
+ run_id: UUID;
564
+ status: string;
565
+ }
419
566
  /**
420
567
  * Returned by POST /artifacts and POST /artifacts/byo. Mirrors the
421
568
  * backend `ArtifactResponse` schema. `storage_url` for BYO artifacts is
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.11.0";
2
- export declare const USER_AGENT = "edgegate-mcp/0.11.0";
1
+ export declare const VERSION = "0.14.0";
2
+ export declare const USER_AGENT = "edgegate-mcp/0.14.0";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
- export const VERSION = "0.11.0";
1
+ export const VERSION = "0.14.0";
2
2
  export const USER_AGENT = `edgegate-mcp/${VERSION}`;
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgegate-mcp",
3
- "version": "0.11.0",
3
+ "version": "0.15.0",
4
4
  "description": "MCP server for EdgeGate — set up edge-AI regression gates from Claude Code, Cursor, or Claude Desktop.",
5
5
  "license": "MIT",
6
6
  "type": "module",