buddy-agent-harness 0.12.0 → 0.13.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 (70) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +1 -1
  4. package/bin/buddy-agent-harness.mjs +1 -3
  5. package/dist/cli.mjs +15755 -3090
  6. package/dist/index.d.mts +219 -78
  7. package/dist/index.d.mts.map +1 -1
  8. package/dist/index.mjs +2209 -203
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/skill-scripts/doctor.mjs +247 -77
  11. package/dist/skill-scripts/init.mjs +247 -77
  12. package/dist/skill-scripts/mcp.mjs +473 -0
  13. package/dist/skill-scripts/reference.mjs +473 -0
  14. package/package.json +7 -3
  15. package/plugin.json +1 -1
  16. package/skills/doctor-buddy-agent-harness/SKILL.md +1 -1
  17. package/skills/doctor-buddy-agent-harness/references/harnesses/codex.md +1 -1
  18. package/skills/doctor-buddy-agent-harness/references/mcp.md +5 -5
  19. package/skills/doctor-buddy-agent-harness/scripts/doctor.mjs +247 -77
  20. package/skills/enhance/SKILL.md +61 -18
  21. package/skills/enhance/references/delegation.history.md +10 -0
  22. package/skills/enhance/references/delegation.md +13 -55
  23. package/skills/enhance/references/list-identifiers.history.md +9 -0
  24. package/skills/enhance/references/list-identifiers.md +67 -0
  25. package/skills/init-buddy-agent-harness/SKILL.md +3 -3
  26. package/skills/init-buddy-agent-harness/scripts/doctor.mjs +247 -77
  27. package/skills/init-buddy-agent-harness/scripts/init.mjs +247 -77
  28. package/skills/load-reference/README.md +33 -0
  29. package/skills/load-reference/SKILL.md +64 -0
  30. package/skills/load-reference/scripts/reference.mjs +473 -0
  31. package/skills/repair/SKILL.md +3 -3
  32. package/skills/repair/references/classes.md +51 -2
  33. package/skills/repair/scripts/doctor.mjs +247 -77
  34. package/skills/repair/scripts/mcp.mjs +473 -0
  35. package/src/cli.ts +4 -3
  36. package/src/config-edit/config-edit.ts +11 -0
  37. package/src/config-edit/jsonc-edit.ts +54 -0
  38. package/src/config-edit/toml-edit.ts +155 -0
  39. package/src/diagnose-bridges/doctor-guidance.ts +20 -12
  40. package/src/diagnose-bridges/doctor.command.ts +27 -29
  41. package/src/diagnose-mcp/diagnose-mcp.ts +4 -17
  42. package/src/diagnose-mcp/mcp-baseline.ts +8 -1
  43. package/src/diagnose-mcp/mcp-model.ts +52 -1
  44. package/src/diagnose-mcp/mcp-sources.ts +24 -50
  45. package/src/governance-overrides/governance-overrides.ts +1 -11
  46. package/src/governance-overrides/governance.command.ts +7 -1
  47. package/src/harness-registry/harness-registry.ts +41 -11
  48. package/src/harness-registry/mcp-config.ts +6 -1
  49. package/src/index.ts +21 -1
  50. package/src/initialize-harnesses/init.command.ts +2 -1
  51. package/src/initialize-harnesses/initialize-harnesses.ts +10 -6
  52. package/src/mcp-dialects/mcp-dialects.ts +277 -0
  53. package/src/mcp-inventory/mcp-inventory.ts +16 -7
  54. package/src/project-mcp/mcp-edit.ts +44 -0
  55. package/src/project-mcp/mcp.command.ts +83 -0
  56. package/src/project-mcp/project-mcp.ts +220 -0
  57. package/src/reconcile-mcp/reconcile-mcp.ts +343 -0
  58. package/src/reconcile-mcp/reconcile.command.ts +80 -0
  59. package/src/references/harness-layers.ts +150 -0
  60. package/src/references/load-reference-invocation.ts +25 -0
  61. package/src/references/reference-catalog.ts +130 -0
  62. package/src/references/reference-document.ts +220 -0
  63. package/src/references/reference-layers.ts +171 -0
  64. package/src/references/reference.command.ts +251 -0
  65. package/src/references/resolve-reference.ts +257 -0
  66. package/src/skill-scripts/doctor.ts +2 -4
  67. package/src/skill-scripts/init.ts +2 -4
  68. package/src/skill-scripts/launchers.ts +2 -0
  69. package/src/skill-scripts/mcp.ts +7 -0
  70. package/src/skill-scripts/reference.ts +7 -0
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { cli as cli$1 } from "clibuilder";
2
+ import "@cyberuni/agent-harness";
2
3
  //#region src/cli.d.ts
3
4
  /**
4
5
  * The application boundary: argv in, exit code out — returned rather than written, so a caller that
@@ -20,17 +21,37 @@ type InstructionBridge = {
20
21
  key: string;
21
22
  };
22
23
  //#endregion
24
+ //#region src/diagnose-mcp/mcp-model.d.ts
25
+ type McpTransport = "stdio" | "http" | "sse";
26
+ /** A superset of every host's fields (E-MCP-05): carry what the user wrote, never invent a value. */
27
+ type McpServer = {
28
+ transport?: McpTransport;
29
+ command?: string;
30
+ args?: readonly string[];
31
+ env?: Readonly<Record<string, string>>;
32
+ url?: string;
33
+ headers?: Readonly<Record<string, string>>;
34
+ description?: string;
35
+ enabled?: boolean;
36
+ timeout?: number;
37
+ source?: string;
38
+ };
39
+ /** Every field of the model, in the order a finding reports them. */
40
+ declare const mcpFields: readonly ["transport", "command", "args", "env", "url", "headers", "description", "enabled", "timeout", "source"];
41
+ type McpField = (typeof mcpFields)[number];
42
+ //#endregion
43
+ //#region src/mcp-dialects/mcp-dialects.d.ts
44
+ type McpDialectName = "claude-code" | "cursor" | "codex" | "gemini-cli";
45
+ //#endregion
23
46
  //#region src/harness-registry/mcp-config.d.ts
24
- /**
25
- * Where one harness keeps its MCP servers at project scope, as its vendor documents it. A harness
26
- * with no documented project-scope file gets no entry (E-MCP-11, `.research/mcp-canonical-location/`).
27
- */
28
47
  type McpConfig = {
29
48
  /** Repository-relative path of the file, as the vendor documents it. */
30
49
  path: string;
31
50
  /** Differs per host; the wrong key reads as an unconfigured repository. */
32
51
  key: string;
33
52
  format: "json" | "toml";
53
+ /** Which harness's entry shape the file holds; the same key can hold different fields. */
54
+ dialect: McpDialectName;
34
55
  /** The file holds more than MCP configuration: touch only `key`, never rewrite it wholesale. */
35
56
  shared?: true;
36
57
  };
@@ -84,7 +105,10 @@ type Harness = {
84
105
  /** Set when this name has been superseded; the value is the name that replaces it. */
85
106
  deprecated?: HarnessName;
86
107
  };
87
- /** See `.research/agentic-configuration-standards/` for the per-harness sources. */
108
+ /**
109
+ * Skills directories come from `@cyberuni/agent-harness`, except for the harnesses it does not know
110
+ * (`devin-desktop`, `windsurf`); see `.research/agentic-configuration-standards/` for the rest.
111
+ */
88
112
  export declare const harnessRegistry: readonly Harness[];
89
113
  //#endregion
90
114
  //#region src/diagnose-bridges/diagnose-instructions.d.ts
@@ -140,7 +164,7 @@ type Locator = {
140
164
  * The one place `doctor`'s guidance is written: `skills/doctor-buddy-agent-harness/SKILL.md` is
141
165
  * generated from this table, so the shipped skill cannot drift from what the command says.
142
166
  */
143
- /** Every way a skills bridge can fail, in the order `doctor` reports them. */
167
+ /** Every way a skills bridge fails to resolve, or resolves and is still unsafe, in the order `doctor` reports them. */
144
168
  type BridgeProblem = "no-canonical" | "missing" | "degraded" | "stale" | "diverged-bridge" | "diverged-canonical" | "diverged-both" | "diverged-unknown" | "unpinned-copy";
145
169
  /**
146
170
  * Configuration that is present and **wrong**; repaired by the `repair` skill, since `init` never
@@ -300,69 +324,125 @@ type ConfigurationFinding = {
300
324
  repair: RepairAction;
301
325
  };
302
326
  //#endregion
303
- //#region src/governance-overrides/governance-overrides.d.ts
304
- /**
305
- * Order here is search order. `package` is the only member that isn't an override —
306
- * `--overrides-only` promises never to return it.
307
- */
308
- type GovernanceScope = "project" | "user" | "managed" | "managed-deprecated" | "package";
309
- type GovernanceLayer = {
310
- scope: GovernanceScope;
327
+ //#region src/references/reference-layers.d.ts
328
+ /** Order here is precedence order, highest first. */
329
+ type ReferenceTier = "managed" | "project" | "user" | "plugin";
330
+ type ReferenceLayer = {
331
+ tier: ReferenceTier;
311
332
  dir: string;
333
+ /** Every name a qualified `<plugin>/<name>` may use for this layer; empty outside the plugin tier. */
334
+ plugins: string[];
335
+ /** Empty unless the layer is legacy, deprecated, or skipped; then it says why. */
336
+ status: string;
337
+ /** Set when the layer is never read, and why: policy held in MDM, or a plugin with no install folder. */
338
+ skipped?: string;
312
339
  };
313
- /** A governance located but not read: what `list` reports. */
314
- type GovernanceEntry = {
315
- name: string;
316
- scope: GovernanceScope;
317
- path: string;
318
- };
319
- /** A governance located and read: what `show` reports. */
320
- type GovernanceDocument = GovernanceEntry & {
321
- content: string;
322
- };
323
- type LayerOptions = {
340
+ type ReferenceLayerOptions = {
324
341
  root: string;
325
342
  home: string;
326
343
  platform: NodeJS.Platform;
327
- /** `%ProgramData%`, read only on Windows. */
328
344
  programData?: string | undefined;
345
+ /** This package's own root, the `buddy-agent-harness` plugin. */
346
+ packageRoot?: string | undefined;
347
+ /** Detects the harness and reads its settings. Defaults to `process.env`. */
348
+ env?: Readonly<Record<string, string | undefined>>;
349
+ };
350
+ export declare function managedReferencesDir(platform: NodeJS.Platform, programData?: string | undefined): string;
351
+ export declare function referenceLayers({ root, home, platform, programData, packageRoot, env }: ReferenceLayerOptions): Promise<ReferenceLayer[]>;
352
+ //#endregion
353
+ //#region src/references/reference-document.d.ts
354
+ type MergeMode = "first-wins" | "combine" | "merge-sections";
355
+ //#endregion
356
+ //#region src/references/resolve-reference.d.ts
357
+ type ReferenceName = {
358
+ name: string;
359
+ plugin: string | undefined;
360
+ raw: string;
329
361
  };
330
- export declare function managedGovernancesDir(platform: NodeJS.Platform, programData?: string | undefined): string;
331
- /**
332
- * Still read below the layer above, so a machine already using it keeps working; reported as
333
- * deprecated so an admin knows to move it.
334
- */
335
- export declare function deprecatedManagedGovernancesDir(platform: NodeJS.Platform, programData?: string | undefined): string;
336
- export declare function governanceLayers({ root, home, platform, programData }: LayerOptions): GovernanceLayer[];
337
362
  /**
338
- * Filters by scope rather than slicing the list, so a layer added later can't quietly become an
339
- * override by position.
363
+ * Rejects rather than sanitizes — silently answering a different question is how untrusted input
364
+ * reads a file outside the layer. The plugin qualifier is only ever compared with known plugin
365
+ * names, never joined into a path.
340
366
  */
341
- export declare function overrideLayers(layers: readonly GovernanceLayer[]): GovernanceLayer[];
367
+ export declare function parseReferenceName(value: string): ReferenceName;
368
+ type TraceEntry = {
369
+ tier: ReferenceTier;
370
+ plugin: string;
371
+ path: string;
372
+ found: boolean;
373
+ candidate: string;
374
+ merge: string;
375
+ outcome: string;
376
+ /** The layer's own frontmatter `description`, so `list` can show it per row. */
377
+ description: string;
378
+ };
379
+ type UsedLayer = {
380
+ tier: ReferenceTier;
381
+ plugin: string;
382
+ path: string;
383
+ merge: MergeMode;
384
+ };
385
+ type ReferenceStatus = "found" | "missing" | "ambiguous";
386
+ type ResolvedReference = {
387
+ name: string;
388
+ status: ReferenceStatus;
389
+ tier?: ReferenceTier;
390
+ plugin?: string;
391
+ path?: string;
392
+ merge?: MergeMode;
393
+ metadata?: Record<string, unknown>;
394
+ content?: string;
395
+ layers: UsedLayer[];
396
+ warnings: string[];
397
+ /** Qualified names to ask for instead, when two plugins hold an unqualified name. */
398
+ plugins: string[];
399
+ trace: TraceEntry[];
400
+ };
401
+ type ResolveOptions = {
402
+ /** How a path is shown in a label or a warning — the command collapses the home directory. */
403
+ display?: (path: string) => string;
404
+ };
405
+ export declare function resolveReference(ref: ReferenceName, layers: readonly ReferenceLayer[], { display }?: ResolveOptions): ResolvedReference;
406
+ //#endregion
407
+ //#region src/references/reference-catalog.d.ts
408
+ type ReferenceRow = {
409
+ name: string;
410
+ tier: ReferenceTier;
411
+ plugin: string;
412
+ path: string;
413
+ status: string;
414
+ description: string;
415
+ };
416
+ type ReferenceListing = {
417
+ rows: ReferenceRow[];
418
+ warnings: string[];
419
+ };
420
+ /** One row per name per layer holding it, with the status resolution gave that layer. */
421
+ export declare function listReferences(layers: readonly ReferenceLayer[], options?: ResolveOptions): ReferenceListing;
422
+ type MatchKind = "name" | "prefix" | "close name" | "description" | "heading" | "body";
423
+ type SearchMatch = {
424
+ name: string;
425
+ tier: ReferenceTier;
426
+ match: MatchKind;
427
+ description: string;
428
+ };
342
429
  /**
343
- * Rejects rather than sanitizes — silently answering a different question is how untrusted input
344
- * reads a file outside the layer.
430
+ * Every name resolves the way `show` would; a name two plugins hold is searched once per plugin, as
431
+ * the qualified name `show` would need.
345
432
  */
346
- export declare function parseGovernanceName(value: string): string;
347
- /** The first layer that holds the name wins; the rest are not read. */
348
- export declare function resolveGovernance(name: string, layers: readonly GovernanceLayer[]): GovernanceDocument | undefined;
349
- /** Every name any layer holds, each reported at the layer that would win, sorted by name. */
350
- export declare function listGovernances(layers: readonly GovernanceLayer[]): GovernanceEntry[];
433
+ export declare function searchReferences(query: string, layers: readonly ReferenceLayer[], options?: ResolveOptions): SearchMatch[];
351
434
  //#endregion
352
435
  //#region src/diagnose-bridges/doctor.command.d.ts
436
+ type DoctorReference = Pick<ReferenceRow, "name" | "tier" | "path" | "status">;
353
437
  type DoctorReport = {
354
438
  bin: string;
355
439
  bridges: DiagnoseResult["bridges"];
356
440
  instructions: DiagnoseResult["instructions"];
357
441
  /**
358
- * Governance overrides in play, each at the layer that would win; reported rather than
359
- * diagnosed, since an override is a choice, not a fault.
442
+ * References the managed, project, and user tiers hold, with the status `reference list` gives;
443
+ * reported rather than diagnosed, since a reference is a choice, not a fault.
360
444
  */
361
- governances: {
362
- name: string;
363
- scope: GovernanceScope;
364
- path: string;
365
- }[] | string;
445
+ references: DoctorReference[] | string;
366
446
  divergence?: DiagnoseResult["divergence"];
367
447
  /**
368
448
  * The repair is lifted out into `help`; `problem` stays on the row so a caller routes without
@@ -383,11 +463,7 @@ type DoctorReport = {
383
463
  * AXI §5: the healthy answer states the zero with context, so an agent doesn't re-run to confirm
384
464
  * nothing was wrong.
385
465
  */
386
- export declare function buildDoctorReport(bin: string, result: DiagnoseResult, configuration?: ConfigurationFinding[], overrides?: {
387
- name: string;
388
- scope: GovernanceScope;
389
- path: string;
390
- }[]): DoctorReport;
466
+ export declare function buildDoctorReport(bin: string, result: DiagnoseResult, configuration?: ConfigurationFinding[], held?: DoctorReference[]): DoctorReport;
391
467
  export declare const doctorCommand: cli$1.Command;
392
468
  //#endregion
393
469
  //#region src/diagnose-mcp/diagnose-mcp.d.ts
@@ -399,25 +475,6 @@ type DiagnoseMcpOptions = {
399
475
  };
400
476
  export declare function diagnoseMcp({ root, git, cli }: DiagnoseMcpOptions): ConfigurationFinding[];
401
477
  //#endregion
402
- //#region src/diagnose-mcp/mcp-model.d.ts
403
- type McpTransport = "stdio" | "http" | "sse";
404
- /** A superset of every host's fields (E-MCP-05): carry what the user wrote, never invent a value. */
405
- type McpServer = {
406
- transport?: McpTransport;
407
- command?: string;
408
- args?: readonly string[];
409
- env?: Readonly<Record<string, string>>;
410
- url?: string;
411
- headers?: Readonly<Record<string, string>>;
412
- description?: string;
413
- enabled?: boolean;
414
- timeout?: number;
415
- source?: string;
416
- };
417
- /** Every field of the model, in the order a finding reports them. */
418
- declare const mcpFields: readonly ["transport", "command", "args", "env", "url", "headers", "description", "enabled", "timeout", "source"];
419
- type McpField = (typeof mcpFields)[number];
420
- //#endregion
421
478
  //#region src/diagnose-mcp/mcp-baseline.d.ts
422
479
  /** Which side of a diverged server moved since the two last agreed. */
423
480
  type McpDirection = "target" | "golden" | "both" | "unknown";
@@ -426,6 +483,55 @@ type McpDirection = "target" | "golden" | "both" | "unknown";
426
483
  /** Where the golden set lives, and why it is namespaced rather than sitting at `.agents/mcp.json`. */
427
484
  export declare const goldenSetPath = ".agents/buddy-agent-harness/mcp.toml";
428
485
  //#endregion
486
+ //#region src/governance-overrides/governance-overrides.d.ts
487
+ /**
488
+ * Order here is search order. `package` is the only member that isn't an override —
489
+ * `--overrides-only` promises never to return it.
490
+ */
491
+ type GovernanceScope = "project" | "user" | "managed" | "managed-deprecated" | "package";
492
+ type GovernanceLayer = {
493
+ scope: GovernanceScope;
494
+ dir: string;
495
+ };
496
+ /** A governance located but not read: what `list` reports. */
497
+ type GovernanceEntry = {
498
+ name: string;
499
+ scope: GovernanceScope;
500
+ path: string;
501
+ };
502
+ /** A governance located and read: what `show` reports. */
503
+ type GovernanceDocument = GovernanceEntry & {
504
+ content: string;
505
+ };
506
+ type LayerOptions = {
507
+ root: string;
508
+ home: string;
509
+ platform: NodeJS.Platform;
510
+ /** `%ProgramData%`, read only on Windows. */
511
+ programData?: string | undefined;
512
+ };
513
+ export declare function managedGovernancesDir(platform: NodeJS.Platform, programData?: string | undefined): string;
514
+ /**
515
+ * Still read below the layer above, so a machine already using it keeps working; reported as
516
+ * deprecated so an admin knows to move it.
517
+ */
518
+ export declare function deprecatedManagedGovernancesDir(platform: NodeJS.Platform, programData?: string | undefined): string;
519
+ export declare function governanceLayers({ root, home, platform, programData }: LayerOptions): GovernanceLayer[];
520
+ /**
521
+ * Filters by scope rather than slicing the list, so a layer added later can't quietly become an
522
+ * override by position.
523
+ */
524
+ export declare function overrideLayers(layers: readonly GovernanceLayer[]): GovernanceLayer[];
525
+ /**
526
+ * Rejects rather than sanitizes — silently answering a different question is how untrusted input
527
+ * reads a file outside the layer.
528
+ */
529
+ export declare function parseGovernanceName(value: string): string;
530
+ /** The first layer that holds the name wins; the rest are not read. */
531
+ export declare function resolveGovernance(name: string, layers: readonly GovernanceLayer[]): GovernanceDocument | undefined;
532
+ /** Every name any layer holds, each reported at the layer that would win, sorted by name. */
533
+ export declare function listGovernances(layers: readonly GovernanceLayer[]): GovernanceEntry[];
534
+ //#endregion
429
535
  //#region src/governance-overrides/governance.command.d.ts
430
536
  type GovernanceListReport = {
431
537
  /**
@@ -490,10 +596,11 @@ type InitializeResult = {
490
596
  }[];
491
597
  skills: number;
492
598
  /**
493
- * Documents in the project override layer (created here when absent); counted, like `skills`,
494
- * so a fresh repo reports zero rather than leaving it unclear.
599
+ * References the project tier holds, legacy `governances/` included; `.agents/references` is
600
+ * created when absent and counted, like `skills`, so a fresh repo reports zero rather than
601
+ * leaving it unclear.
495
602
  */
496
- governances: number;
603
+ references: number;
497
604
  copied: boolean;
498
605
  };
499
606
  export declare function initializeHarnesses({ root, harnesses: preferred, copy, force }: InitializeOptions): InitializeResult;
@@ -543,5 +650,39 @@ type ListMcpServersOptions = {
543
650
  */
544
651
  export declare function listMcpServers(options: ListMcpServersOptions): McpServerEntry[];
545
652
  //#endregion
546
- export type { BridgeFinding, BridgeKind, BridgeProblem, BridgeReport, BridgeStatus, ConfigurationFault, ConfigurationProblem, DiagnoseMcpOptions, DiagnoseOptions, DiagnoseResult, DivergenceDirection, DivergenceReport, DoctorProblem, DoctorReport, GovernanceDocument, GovernanceEntry, GovernanceLayer, GovernanceListReport, GovernanceScope, GovernanceShowReport, Harness, HarnessName, HarnessScope, HarnessScopeName, InitializeOptions, InitializeResult, InstructionBridge, InstructionKind, InstructionProblem, InstructionReport, InstructionStatus, LayerOptions, ListMcpServersOptions, McpConfig, McpDirection, McpField, McpProblem, McpServer, McpServerEntry, McpTransport, Repair };
653
+ //#region src/references/reference.command.d.ts
654
+ /** One per name asked, in the order asked — the contract the `load-reference` skill builds on. */
655
+ type ReferenceShowEntry = {
656
+ name: string;
657
+ status: ResolvedReference["status"];
658
+ tier?: ReferenceTier;
659
+ plugin?: string;
660
+ path?: string;
661
+ merge?: string;
662
+ metadata?: Record<string, unknown>;
663
+ content?: string;
664
+ layers?: UsedLayer[];
665
+ warnings: string[];
666
+ suggestions?: string[];
667
+ plugins?: string[];
668
+ trace?: Omit<TraceEntry, "description">[];
669
+ };
670
+ type ReferenceListReport = {
671
+ layers: {
672
+ tier: ReferenceTier;
673
+ plugin: string;
674
+ path: string;
675
+ status: string;
676
+ }[];
677
+ /** Emitted even when empty, so a healthy run states its zero explicitly. */
678
+ references: ReferenceRow[] | string;
679
+ warnings?: string[];
680
+ };
681
+ type ReferenceSearchReport = {
682
+ query: string;
683
+ references: SearchMatch[] | string;
684
+ };
685
+ export declare const referenceCommand: cli$1.Command;
686
+ //#endregion
687
+ export type { BridgeFinding, BridgeKind, BridgeProblem, BridgeReport, BridgeStatus, ConfigurationFault, ConfigurationProblem, DiagnoseMcpOptions, DiagnoseOptions, DiagnoseResult, DivergenceDirection, DivergenceReport, DoctorProblem, DoctorReference, DoctorReport, GovernanceDocument, GovernanceEntry, GovernanceLayer, GovernanceListReport, GovernanceScope, GovernanceShowReport, Harness, HarnessName, HarnessScope, HarnessScopeName, InitializeOptions, InitializeResult, InstructionBridge, InstructionKind, InstructionProblem, InstructionReport, InstructionStatus, LayerOptions, ListMcpServersOptions, MatchKind, McpConfig, McpDirection, McpField, McpProblem, McpServer, McpServerEntry, McpTransport, MergeMode, ReferenceLayer, ReferenceLayerOptions, ReferenceListReport, ReferenceListing, ReferenceName, ReferenceRow, ReferenceSearchReport, ReferenceShowEntry, ReferenceStatus, ReferenceTier, Repair, ResolveOptions, ResolvedReference, SearchMatch, TraceEntry, UsedLayer };
547
688
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/cli.ts","../src/harness-registry/instruction-bridge.ts","../src/harness-registry/mcp-config.ts","../src/harness-registry/nonstandard-artifact.ts","../src/harness-registry/harness-registry.ts","../src/diagnose-bridges/diagnose-instructions.ts","../src/diagnose-bridges/locator.ts","../src/diagnose-bridges/doctor-guidance.ts","../src/diagnose-bridges/git-bridge-state.ts","../src/diagnose-bridges/diagnose-bridges.ts","../src/diagnose-configuration/diagnose-configuration.ts","../src/governance-overrides/governance-overrides.ts","../src/diagnose-bridges/doctor.command.ts","../src/diagnose-mcp/diagnose-mcp.ts","../src/diagnose-mcp/mcp-model.ts","../src/diagnose-mcp/mcp-baseline.ts","../src/diagnose-mcp/mcp-sources.ts","../src/governance-overrides/governance.command.ts","../src/initialize-harnesses/init.command.ts","../src/skill-projection/skill-projection.ts","../src/initialize-harnesses/initialize-harnesses.ts","../src/mcp-inventory/mcp-inventory.ts"],"mappings":";;;;;;wBAqCsB,IAAI,iBAAiB;;;;;;;KCjC/B;;EAEX;;EAEA;;EAEA;;;;;;;;KCNW;;EAEX;;EAEA;EACA;;EAEA;;;;;;;;;KCNW;KAeA;;EAEX;;EAEA;EACA,MAAM;;;;KCnBK;;KAiBA;;KAGA;;EAEX;;EAEA;;;;;EAKA,oBAAoB;;EAEpB;;EAEA,YAAY;;EAEZ,uBAAuB;;KAGZ;EACX,MAAM;;EAEN,SAAS;;;;;EAKT,OAAO;;EAEP,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,WAAW;;EAEX;;EAEA;;EAEA;EACA;;EAEA;;KAGW;;EAEX;;EAEA;;;;;EAKA,MAAM,SAAS;;EAEf,WAAW,OAAO;;;;;;;wBAuMH,eAAe,SAAS,wBAAwB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/cli.ts","../src/harness-registry/instruction-bridge.ts","../src/diagnose-mcp/mcp-model.ts","../src/mcp-dialects/mcp-dialects.ts","../src/harness-registry/mcp-config.ts","../src/harness-registry/nonstandard-artifact.ts","../src/harness-registry/harness-registry.ts","../src/diagnose-bridges/diagnose-instructions.ts","../src/diagnose-bridges/locator.ts","../src/diagnose-bridges/doctor-guidance.ts","../src/diagnose-bridges/git-bridge-state.ts","../src/diagnose-bridges/diagnose-bridges.ts","../src/diagnose-configuration/diagnose-configuration.ts","../src/references/reference-layers.ts","../src/references/reference-document.ts","../src/references/resolve-reference.ts","../src/references/reference-catalog.ts","../src/diagnose-bridges/doctor.command.ts","../src/diagnose-mcp/diagnose-mcp.ts","../src/diagnose-mcp/mcp-baseline.ts","../src/diagnose-mcp/mcp-sources.ts","../src/governance-overrides/governance-overrides.ts","../src/governance-overrides/governance.command.ts","../src/initialize-harnesses/init.command.ts","../src/skill-projection/skill-projection.ts","../src/initialize-harnesses/initialize-harnesses.ts","../src/mcp-inventory/mcp-inventory.ts","../src/references/reference.command.ts"],"mappings":";;;;;;;wBAyCsB,IAAI,iBAAiB;;;;;;;KCrC/B;;EAEX;;EAEA;;EAEA;;;;KCTW;;KAGA;EACX,YAAY;EACZ;EACA;EACA,MAAM,SAAS;EACf;EACA,UAAU,SAAS;EACnB;EACA;EACA;EACA;;;cAIY;KAaD,mBAAmB;;;KC5BnB;;;KCIA;;EAEX;;EAEA;EACA;;EAEA,SAAS;;EAET;;;;;;;;;KCXW;KAeA;;EAEX;;EAEA;EACA,MAAM;;;;KClBK;;KAiBA;;KAGA;;EAEX;;EAEA;;;;;EAKA,oBAAoB;;EAEpB;;EAEA,YAAY;;EAEZ,uBA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