buddy-agent-harness 0.6.0 → 0.8.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 (73) 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/README.md +9 -1
  5. package/bin/buddy-agent-harness.mjs +8 -3
  6. package/dist/cli-4ekejn5W.mjs +2735 -0
  7. package/dist/cli-4ekejn5W.mjs.map +1 -0
  8. package/dist/cli.d.mts +12 -2
  9. package/dist/cli.d.mts.map +1 -1
  10. package/dist/cli.mjs +2 -20
  11. package/dist/index.d.mts +389 -54
  12. package/dist/index.d.mts.map +1 -1
  13. package/dist/index.mjs +2 -2
  14. package/package.json +6 -5
  15. package/plugin.json +1 -1
  16. package/skills/doctor/SKILL.md +20 -34
  17. package/skills/doctor/references/bridges.md +23 -0
  18. package/skills/doctor/references/configuration.md +12 -0
  19. package/skills/doctor/references/harnesses/claude-code.md +39 -0
  20. package/skills/doctor/references/harnesses/codex.md +37 -0
  21. package/skills/doctor/references/harnesses/copilot-cli.md +39 -0
  22. package/skills/doctor/references/harnesses/cursor.md +40 -0
  23. package/skills/doctor/references/harnesses/devin-desktop.md +20 -0
  24. package/skills/doctor/references/harnesses/gemini-cli.md +38 -0
  25. package/skills/doctor/references/harnesses/windsurf.md +27 -0
  26. package/skills/doctor/references/instructions.md +14 -0
  27. package/skills/doctor/references/mcp.md +31 -0
  28. package/skills/doctor/references/nonstandard.md +27 -0
  29. package/skills/doctor/scripts/doctor.mjs +7 -3
  30. package/skills/enhance/SKILL.md +4 -0
  31. package/skills/enhance/references/delegation.md +3 -1
  32. package/skills/init/README.md +1 -1
  33. package/skills/init/SKILL.md +19 -8
  34. package/skills/init/references/detection.md +5 -3
  35. package/skills/init/references/harnesses/cursor.md +9 -2
  36. package/skills/init/scripts/doctor.mjs +14 -0
  37. package/skills/init/scripts/init.mjs +7 -3
  38. package/skills/repair/README.md +21 -0
  39. package/skills/repair/SKILL.md +74 -0
  40. package/skills/repair/references/classes.md +49 -0
  41. package/skills/repair/scripts/doctor.mjs +14 -0
  42. package/src/cli.ts +42 -7
  43. package/src/command-output/command-output.ts +1 -4
  44. package/src/dep-plugins/dep-plugins.command.ts +168 -0
  45. package/src/dep-plugins/dep-plugins.ts +131 -0
  46. package/src/dep-plugins/generate.ts +115 -0
  47. package/src/dep-plugins/harness-plugins.ts +232 -0
  48. package/src/dep-plugins/reconcile.ts +132 -0
  49. package/src/dep-plugins/resolve.ts +117 -0
  50. package/src/diagnose-bridges/diagnose-bridges.ts +21 -13
  51. package/src/diagnose-bridges/diagnose-instructions.ts +7 -2
  52. package/src/diagnose-bridges/doctor-guidance.ts +636 -90
  53. package/src/diagnose-bridges/doctor.command.ts +55 -28
  54. package/src/diagnose-bridges/git-bridge-state.ts +30 -0
  55. package/src/diagnose-bridges/locator.ts +36 -0
  56. package/src/diagnose-configuration/diagnose-configuration.ts +99 -0
  57. package/src/diagnose-mcp/diagnose-mcp.ts +135 -0
  58. package/src/diagnose-mcp/mcp-baseline.ts +122 -0
  59. package/src/diagnose-mcp/mcp-model.ts +88 -0
  60. package/src/diagnose-mcp/mcp-secrets.ts +101 -0
  61. package/src/diagnose-mcp/mcp-sources.ts +131 -0
  62. package/src/diagnose-nonstandard/diagnose-nonstandard.ts +109 -0
  63. package/src/harness-registry/harness-registry.ts +97 -4
  64. package/src/harness-registry/mcp-config.ts +37 -0
  65. package/src/harness-registry/nonstandard-artifact.ts +39 -0
  66. package/src/index.ts +18 -2
  67. package/src/initialize-harnesses/init.command.ts +13 -18
  68. package/src/initialize-harnesses/initialize-harnesses.ts +6 -3
  69. package/src/is-record/is-record.ts +12 -0
  70. package/src/skill-projection/skill-projection.ts +102 -16
  71. package/dist/cli.mjs.map +0 -1
  72. package/dist/init.command-zbntulIq.mjs +0 -1016
  73. package/dist/init.command-zbntulIq.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buddy-agent-harness",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Initialize standards-based agent configuration across agent harnesses",
5
5
  "author": {
6
6
  "name": "repobuddy"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buddy-agent-harness",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Initialize standards-based agent configuration across agent harnesses",
5
5
  "author": {
6
6
  "name": "repobuddy"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buddy-agent-harness",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Initialize standards-based agent configuration across agent harnesses",
5
5
  "author": {
6
6
  "name": "repobuddy"
package/README.md CHANGED
@@ -18,7 +18,7 @@ In Claude Code, add the [cyberplace](https://github.com/cyberuni/cyberplace) mar
18
18
 
19
19
  ## CLI
20
20
 
21
- `init` runs behind the `init` skill, which sorts the configuration you already wrote before the command links anything. Install the package alongside `repobuddy` to mount both commands on `buddy`, as `buddy agent-harness doctor` and `buddy agent-harness init`.
21
+ `init` runs behind the `init` skill, which sorts the configuration you already wrote before the command links anything. Install the package alongside `repobuddy` to mount every command on `buddy`, as `buddy agent-harness doctor`, `buddy agent-harness init`, and `buddy agent-harness dep-plugins`.
22
22
 
23
23
  The repository root's `AGENTS.md` and `.agents/` tree are canonical: `.agents/AGENTS.md` holds shared behavior, `.agents/skills/**/SKILL.md` holds capabilities, and separately named files hold tool settings. The active harness is enabled by default; explicit user preferences add others. The command preserves user-authored configuration and projects only supported mappings; it records nothing on disk.
24
24
 
@@ -30,4 +30,12 @@ The repository root's `AGENTS.md` and `.agents/` tree are canonical: `.agents/AG
30
30
  npx -y buddy-agent-harness doctor
31
31
  ```
32
32
 
33
+ `dep-plugins` derives a marketplace catalog for plugins shipped by this repository's own dependencies, so a harness can install them — reaching a whole plugin (agents, commands, hooks, MCP servers) rather than only its skills:
34
+
35
+ ```sh
36
+ npx -y buddy-agent-harness dep-plugins
37
+ ```
38
+
39
+ It writes the catalog, then reports what each detected harness needs to match it and the command that does it. It never touches harness state itself. Claude Code and Codex install from this catalog; Copilot CLI rejects an npm marketplace source, and Cursor exposes no plugin subcommand from a terminal.
40
+
33
41
  It never repairs anything and always exits `0`; each finding names the `init` command that fixes it.
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { dirname, join } from 'node:path'
3
- import { fileURLToPath } from 'node:url'
3
+ import { fileURLToPath, pathToFileURL } from 'node:url'
4
4
 
5
5
  const dir = dirname(fileURLToPath(import.meta.url))
6
- const { main } = await import(join(dir, '..', 'dist', 'cli.mjs'))
7
- await main()
6
+ const { run } = await import(pathToFileURL(join(dir, '..', 'dist', 'cli.mjs')).href)
7
+
8
+ // The process boundary: the only place that reads `process.argv` or writes `process.exitCode`.
9
+ // Applied only when non-zero, so a usage code `clibuilder` recorded itself is not overwritten by
10
+ // the zero `run` returns on that path.
11
+ const code = await run(process.argv)
12
+ if (code !== 0) process.exitCode = code