buddy-agent-harness 0.18.0 → 0.20.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 (58) hide show
  1. package/.claude-plugin/plugin.json +3 -2
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +1 -1
  4. package/README.md +2 -0
  5. package/dist/cli.mjs +11747 -11505
  6. package/dist/index.d.mts +22 -147
  7. package/dist/index.d.mts.map +1 -1
  8. package/dist/index.mjs +623 -1212
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/skill-scripts/doctor.mjs +185 -183
  11. package/dist/skill-scripts/init.mjs +185 -183
  12. package/dist/skill-scripts/mcp.mjs +185 -183
  13. package/llms.txt +7 -9
  14. package/package.json +3 -3
  15. package/plugin.json +2 -1
  16. package/skills/doctor-buddy-agent-harness/SKILL.md +1 -1
  17. package/skills/doctor-buddy-agent-harness/references/global-instructions.md +4 -1
  18. package/skills/doctor-buddy-agent-harness/references/harnesses/claude-code.md +1 -1
  19. package/skills/doctor-buddy-agent-harness/references/harnesses/codex.md +1 -1
  20. package/skills/doctor-buddy-agent-harness/references/harnesses/copilot-cli.md +1 -1
  21. package/skills/doctor-buddy-agent-harness/scripts/doctor.mjs +185 -183
  22. package/skills/enhance/SKILL.md +2 -1
  23. package/skills/enhance/scripts/doctor.mjs +185 -183
  24. package/skills/init-buddy-agent-harness/SKILL.md +1 -1
  25. package/skills/init-buddy-agent-harness/scripts/doctor.mjs +185 -183
  26. package/skills/init-buddy-agent-harness/scripts/init.mjs +185 -183
  27. package/skills/repair/SKILL.md +2 -2
  28. package/skills/repair/scripts/doctor.mjs +185 -183
  29. package/skills/repair/scripts/mcp.mjs +185 -183
  30. package/src/cli.ts +1 -1
  31. package/src/dep-plugins/dep-plugins.ts +1 -15
  32. package/src/dep-plugins/resolve.ts +3 -31
  33. package/src/diagnose-bridges/diagnose-bridges.ts +1 -1
  34. package/src/diagnose-bridges/diagnose-global-instructions.ts +29 -11
  35. package/src/diagnose-bridges/doctor-guidance.ts +25 -2
  36. package/src/diagnose-bridges/doctor.command.ts +2 -2
  37. package/src/governance-overrides/governance-overrides.ts +6 -6
  38. package/src/harness-registry/harness-registry.ts +7 -0
  39. package/src/index.ts +29 -20
  40. package/src/initialize-harnesses/init.command.ts +1 -1
  41. package/src/initialize-harnesses/initialize-harnesses.ts +1 -2
  42. package/src/references/references.ts +28 -0
  43. package/src/skill-scripts/launchers.ts +0 -1
  44. package/dist/skill-scripts/reference.mjs +0 -486
  45. package/skills/reference/README.md +0 -53
  46. package/skills/reference/SKILL.md +0 -82
  47. package/skills/reference/references/create.md +0 -67
  48. package/skills/reference/references/load.md +0 -59
  49. package/skills/reference/scripts/reference.mjs +0 -486
  50. package/src/references/create-reference.ts +0 -57
  51. package/src/references/harness-layers.ts +0 -150
  52. package/src/references/reference-catalog.ts +0 -130
  53. package/src/references/reference-document.ts +0 -226
  54. package/src/references/reference-invocation.ts +0 -25
  55. package/src/references/reference-layers.ts +0 -171
  56. package/src/references/reference.command.ts +0 -487
  57. package/src/references/resolve-reference.ts +0 -258
  58. package/src/skill-scripts/reference.ts +0 -7
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
+ import { MatchKind, MergeMode, ReferenceLayer, ReferenceLayer as ReferenceLayer$1, ReferenceLayerOptions as ReferenceLayerOptions$1, ReferenceListing, ReferenceName, ReferenceRow, ReferenceRow as ReferenceRow$1, ReferenceStatus, ReferenceTier, ResolveOptions, ResolvedReference, SearchMatch, TraceEntry, UsedLayer, listReferences, managedReferencesDir, parseReferenceName, resolveReference, searchReferences } from "@cyberuni/agent-harness";
1
2
  import { cli as cli$1 } from "clibuilder";
2
- import "@cyberuni/agent-harness";
3
+ import { ReferenceListReport, ReferenceSearchReport, ReferenceShowEntry } from "@cyberuni/agent-harness/commands";
3
4
  //#region src/cli.d.ts
4
5
  /**
5
6
  * The application boundary: argv in, exit code out — returned rather than written, so a caller that
@@ -106,6 +107,11 @@ type HarnessScope = {
106
107
  * under it is read from the variable's value instead.
107
108
  */
108
109
  relocatedBy?: string;
110
+ /**
111
+ * `relocatedBy` set to an empty string is read as the directory the harness starts in, rather
112
+ * than as unset.
113
+ */
114
+ emptyRelocatesToStart?: true;
109
115
  /** Where this harness keeps its own MCP servers; `doctor` compares against it and never writes. */
110
116
  mcpConfig?: McpConfig;
111
117
  /** What this harness reads that no other can, reported so it can be converted to canonical form. */
@@ -142,7 +148,8 @@ type GlobalInstructionReport = {
142
148
  harness: HarnessName;
143
149
  /**
144
150
  * The harness's user-scope instruction file, written from `~` so the report is publishable, or
145
- * from the variable that moved it, such as `$CODEX_HOME`.
151
+ * from the variable that moved it, such as `$CODEX_HOME`, or from `.` where an empty variable moved
152
+ * it to the directory the harness starts in.
146
153
  */
147
154
  path: string;
148
155
  kind: GlobalInstructionKind;
@@ -150,10 +157,11 @@ type GlobalInstructionReport = {
150
157
  };
151
158
  /**
152
159
  * Whether each harness the user has installed loads `~/.agents/AGENTS.md` through its own user-scope
153
- * file, read from wherever `env` moves it. Read-only: the repair is handed to the user, since
154
- * nothing here writes outside the repository.
160
+ * file, read from wherever `env` moves it — `start`, for a harness that reads an empty variable as
161
+ * the directory it starts in. Read-only: the repair is handed to the user, since nothing here
162
+ * writes outside the repository.
155
163
  */
156
- export declare function diagnoseGlobalInstructions(home: string, preferred: readonly HarnessName[], cli: string, env?: NodeJS.ProcessEnv): {
164
+ export declare function diagnoseGlobalInstructions(home: string, preferred: readonly HarnessName[], cli: string, env?: NodeJS.ProcessEnv, start?: string): {
157
165
  globalInstructions: GlobalInstructionReport[];
158
166
  findings: BridgeFinding[];
159
167
  };
@@ -231,7 +239,7 @@ type NonstandardProblem = "nonstandard-instructions" | "nonstandard-rule" | "non
231
239
  /** Every way a harness can end up reading none of `AGENTS.md`. */
232
240
  type InstructionProblem = "no-instructions" | "instructions-missing" | "instructions-unbridged" | "instructions-unreadable" | "instructions-shadowing" | "instructions-superseded";
233
241
  /** Every way a harness's user-scope instruction file fails to load `~/.agents/AGENTS.md`. */
234
- type GlobalInstructionProblem = "global-instructions-missing" | "global-instructions-unbridged" | "global-instructions-overridden";
242
+ type GlobalInstructionProblem = "global-instructions-missing" | "global-instructions-unbridged" | "global-instructions-overridden" | "global-instructions-emptied";
235
243
  /** Everything `doctor` can report against, across every section. */
236
244
  type DoctorProblem = BridgeProblem | InstructionProblem | GlobalInstructionProblem | ConfigurationFault | McpProblem | NonstandardProblem;
237
245
  /** Alias kept for callers that name the whole set rather than one section. */
@@ -386,116 +394,8 @@ type ConfigurationFinding = {
386
394
  repair: RepairAction;
387
395
  };
388
396
  //#endregion
389
- //#region src/references/reference-layers.d.ts
390
- /** Order here is precedence order, highest first. */
391
- type ReferenceTier = "managed" | "project" | "user" | "plugin";
392
- type ReferenceLayer = {
393
- tier: ReferenceTier;
394
- dir: string;
395
- /** Every name a qualified `<plugin>/<name>` may use for this layer; empty outside the plugin tier. */
396
- plugins: string[];
397
- /** Empty unless the layer is legacy, deprecated, or skipped; then it says why. */
398
- status: string;
399
- /** Set when the layer is never read, and why: policy held in MDM, or a plugin with no install folder. */
400
- skipped?: string;
401
- };
402
- type ReferenceLayerOptions = {
403
- root: string;
404
- home: string;
405
- platform: NodeJS.Platform;
406
- programData?: string | undefined;
407
- /** This package's own root, the `buddy-agent-harness` plugin. */
408
- packageRoot?: string | undefined;
409
- /** Detects the harness and reads its settings. Defaults to `process.env`. */
410
- env?: Readonly<Record<string, string | undefined>>;
411
- };
412
- export declare function managedReferencesDir(platform: NodeJS.Platform, programData?: string | undefined): string;
413
- export declare function referenceLayers({ root, home, platform, programData, packageRoot, env }: ReferenceLayerOptions): Promise<ReferenceLayer[]>;
414
- //#endregion
415
- //#region src/references/reference-document.d.ts
416
- type MergeMode = "first-wins" | "combine" | "merge-sections";
417
- //#endregion
418
- //#region src/references/resolve-reference.d.ts
419
- type ReferenceName = {
420
- name: string;
421
- plugin: string | undefined;
422
- raw: string;
423
- };
424
- /**
425
- * Rejects rather than sanitizes — silently answering a different question is how untrusted input
426
- * reads a file outside the layer. The plugin qualifier is only ever compared with known plugin
427
- * names, never joined into a path.
428
- */
429
- export declare function parseReferenceName(value: string): ReferenceName;
430
- type TraceEntry = {
431
- tier: ReferenceTier;
432
- plugin: string;
433
- path: string;
434
- found: boolean;
435
- candidate: string;
436
- merge: string;
437
- outcome: string;
438
- /** The layer's own frontmatter `description`, so `list` can show it per row. */
439
- description: string;
440
- };
441
- type UsedLayer = {
442
- tier: ReferenceTier;
443
- plugin: string;
444
- path: string;
445
- merge: MergeMode;
446
- };
447
- type ReferenceStatus = "found" | "missing" | "ambiguous";
448
- type ResolvedReference = {
449
- name: string;
450
- status: ReferenceStatus;
451
- tier?: ReferenceTier;
452
- plugin?: string;
453
- path?: string;
454
- merge?: MergeMode;
455
- metadata?: Record<string, unknown>;
456
- content?: string;
457
- layers: UsedLayer[];
458
- warnings: string[];
459
- /** Qualified names to ask for instead, when two plugins hold an unqualified name. */
460
- plugins: string[];
461
- trace: TraceEntry[];
462
- };
463
- type ResolveOptions = {
464
- /** How a path is shown in a label or a warning — the command collapses the home directory. */
465
- display?: (path: string) => string;
466
- };
467
- export declare function resolveReference(ref: ReferenceName, layers: readonly ReferenceLayer[], { display }?: ResolveOptions): ResolvedReference;
468
- //#endregion
469
- //#region src/references/reference-catalog.d.ts
470
- type ReferenceRow = {
471
- name: string;
472
- tier: ReferenceTier;
473
- plugin: string;
474
- path: string;
475
- status: string;
476
- description: string;
477
- };
478
- type ReferenceListing = {
479
- rows: ReferenceRow[];
480
- warnings: string[];
481
- };
482
- /** One row per name per layer holding it, with the status resolution gave that layer. */
483
- export declare function listReferences(layers: readonly ReferenceLayer[], options?: ResolveOptions): ReferenceListing;
484
- type MatchKind = "name" | "prefix" | "close name" | "description" | "heading" | "body";
485
- type SearchMatch = {
486
- name: string;
487
- tier: ReferenceTier;
488
- match: MatchKind;
489
- description: string;
490
- };
491
- /**
492
- * Every name resolves the way `show` would; a name two plugins hold is searched once per plugin, as
493
- * the qualified name `show` would need.
494
- */
495
- export declare function searchReferences(query: string, layers: readonly ReferenceLayer[], options?: ResolveOptions): SearchMatch[];
496
- //#endregion
497
397
  //#region src/diagnose-bridges/doctor.command.d.ts
498
- type DoctorReference = Pick<ReferenceRow, "name" | "tier" | "path" | "status">;
398
+ type DoctorReference = Pick<ReferenceRow$1, "name" | "tier" | "path" | "status">;
499
399
  type DoctorReport = {
500
400
  bin: string;
501
401
  bridges: DiagnoseResult["bridges"];
@@ -744,39 +644,14 @@ type ListMcpServersOptions = {
744
644
  */
745
645
  export declare function listMcpServers(options: ListMcpServersOptions): McpServerEntry[];
746
646
  //#endregion
747
- //#region src/references/reference.command.d.ts
748
- /** One per name asked, in the order asked — the contract the `reference` skill's Load mode builds on. */
749
- type ReferenceShowEntry = {
750
- name: string;
751
- status: ResolvedReference["status"];
752
- tier?: ReferenceTier;
753
- plugin?: string;
754
- path?: string;
755
- merge?: string;
756
- metadata?: Record<string, unknown>;
757
- content?: string;
758
- layers?: UsedLayer[];
759
- warnings: string[];
760
- suggestions?: string[];
761
- plugins?: string[];
762
- trace?: Omit<TraceEntry, "description">[];
763
- };
764
- type ReferenceListReport = {
765
- layers: {
766
- tier: ReferenceTier;
767
- plugin: string;
768
- path: string;
769
- status: string;
770
- }[];
771
- /** Emitted even when empty, so a healthy run states its zero explicitly. */
772
- references: ReferenceRow[] | string;
773
- warnings?: string[];
774
- };
775
- type ReferenceSearchReport = {
776
- query: string;
777
- references: SearchMatch[] | string;
647
+ //#region src/references/references.d.ts
648
+ type ReferenceLayerOptions = Omit<ReferenceLayerOptions$1, "plugin"> & {
649
+ /** This package's own root, the `buddy-agent-harness` plugin. */
650
+ packageRoot?: string | undefined;
778
651
  };
652
+ /** `@cyberuni/agent-harness`'s reference layers, with this package as the plugin whose own references come first. */
653
+ export declare function referenceLayers({ packageRoot, ...options }: ReferenceLayerOptions): Promise<ReferenceLayer$1[]>;
779
654
  export declare const referenceCommand: cli$1.Command;
780
655
  //#endregion
781
- export type { BridgeFinding, BridgeKind, BridgeProblem, BridgeReport, BridgeStatus, ConfigurationFault, ConfigurationProblem, DiagnoseMcpOptions, DiagnoseOptions, DiagnoseResult, DivergenceDirection, DivergenceReport, DoctorProblem, DoctorReference, DoctorReport, GlobalInstructionKind, GlobalInstructionProblem, GlobalInstructionReport, GlobalInstructionStatus, 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 };
656
+ export { type BridgeFinding, type BridgeKind, type BridgeProblem, type BridgeReport, type BridgeStatus, type ConfigurationFault, type ConfigurationProblem, type DiagnoseMcpOptions, type DiagnoseOptions, type DiagnoseResult, type DivergenceDirection, type DivergenceReport, type DoctorProblem, type DoctorReference, type DoctorReport, type GlobalInstructionKind, type GlobalInstructionProblem, type GlobalInstructionReport, type GlobalInstructionStatus, type GovernanceDocument, type GovernanceEntry, type GovernanceLayer, type GovernanceListReport, type GovernanceScope, type GovernanceShowReport, type Harness, type HarnessName, type HarnessScope, type HarnessScopeName, type InitializeOptions, type InitializeResult, type InstructionBridge, type InstructionKind, type InstructionProblem, type InstructionReport, type InstructionStatus, type LayerOptions, type ListMcpServersOptions, type MatchKind, type McpConfig, type McpDirection, type McpField, type McpProblem, type McpServer, type McpServerEntry, type McpTransport, type MergeMode, type ReferenceLayer, type ReferenceLayerOptions, type ReferenceListReport, type ReferenceListing, type ReferenceName, type ReferenceRow, type ReferenceSearchReport, type ReferenceShowEntry, type ReferenceStatus, type ReferenceTier, type Repair, type ResolveOptions, type ResolvedReference, type SearchMatch, type TraceEntry, type UsedLayer, listReferences, managedReferencesDir, parseReferenceName, resolveReference, searchReferences };
782
657
  //# 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/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-global-instructions.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":";;;;;;;wBA0CsB,IAAI,iBAAiB;;;;;;;;KCrC/B;;EAGT;;EAEA;;EAEA;;;EAIA;;EAEA;;EAEA;;;EAIA;;EAEA;;;;KCzBS;;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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,SAAS;;EAEf,WAAW,OAAO;;;;;;;wBAuMH,eAAe,SAAS,wBAAwB;;;;KCvRpD;EACX;EACA,QAAQ;EACR,OAAO;EACP;EACA;EACA;EACA,WAAW;EACX;EACA,SAAS;EACT;EACA;EACA;EACA,QAAQ,KAAK;;KAGF;EACX;IAAU,MAAM;IAAe;IAAgB;IAAc;;;EAE7D,YAAY;EACZ;;KAiCW;EAA0B;EAAe,YAAY;;qBA4YpD,kBAAkB,MAAI"}
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-global-instructions.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/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/references.ts"],"mappings":";;;;;;;;wBA0CsB,IAAI,iBAAiB;;;;;;;;KCrC/B;;EAGT;;EAEA;;EAEA;;;EAIA;;EAEA;;EAEA;;;EAIA;;EAEA;;;;KCzBS;;KAGA;EACX,YAAY;EACZ;EACA;EACA,MAAM,SAAS;EACf;EACA,UAAU,SAAS;EACnB;EACA;EACA;EACA;;;cAIY;KAaD,mBAAmB;;;KC5BnB;;;KCIA;;EAEX;;EAEA;EACA;;EAE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