buddy-agent-harness 0.10.0 → 0.12.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 (94) 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 +2 -2
  5. package/bin/buddy-agent-harness.mjs +4 -3
  6. package/dist/cli.mjs +480 -546
  7. package/dist/index.d.mts +205 -298
  8. package/dist/index.d.mts.map +1 -1
  9. package/dist/index.mjs +682 -621
  10. package/dist/index.mjs.map +1 -1
  11. package/dist/skill-scripts/doctor.mjs +45 -42
  12. package/dist/skill-scripts/init.mjs +45 -42
  13. package/package.json +1 -1
  14. package/plugin.json +1 -1
  15. package/skills/{doctor → doctor-buddy-agent-harness}/README.md +1 -1
  16. package/skills/{doctor → doctor-buddy-agent-harness}/SKILL.md +9 -7
  17. package/skills/{doctor → doctor-buddy-agent-harness}/references/bridges.md +7 -7
  18. package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/claude-code.md +3 -2
  19. package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/codex.md +1 -1
  20. package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/copilot-cli.md +1 -1
  21. package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/cursor.md +1 -1
  22. package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/devin-desktop.md +1 -1
  23. package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/gemini-cli.md +1 -1
  24. package/skills/doctor-buddy-agent-harness/references/instructions.md +22 -0
  25. package/skills/{doctor → doctor-buddy-agent-harness}/references/nonstandard.md +4 -4
  26. package/skills/doctor-buddy-agent-harness/scripts/doctor.mjs +303 -0
  27. package/skills/enhance/SKILL.md +12 -3
  28. package/skills/enhance/references/delegation.history.md +11 -1
  29. package/skills/enhance/references/delegation.md +23 -2
  30. package/skills/{init → init-buddy-agent-harness}/README.md +1 -1
  31. package/skills/{init → init-buddy-agent-harness}/SKILL.md +22 -14
  32. package/skills/{init → init-buddy-agent-harness}/agents/openai.yaml +1 -1
  33. package/skills/{init → init-buddy-agent-harness}/references/agents-md.md +38 -19
  34. package/skills/{init → init-buddy-agent-harness}/references/detection.md +2 -2
  35. package/skills/init-buddy-agent-harness/references/harnesses/claude-code.md +64 -0
  36. package/skills/init-buddy-agent-harness/scripts/doctor.mjs +303 -0
  37. package/skills/init-buddy-agent-harness/scripts/init.mjs +303 -0
  38. package/skills/repair/SKILL.md +2 -2
  39. package/skills/repair/references/classes.md +2 -2
  40. package/skills/repair/scripts/doctor.mjs +45 -42
  41. package/src/cli.ts +15 -24
  42. package/src/command-output/command-output.ts +21 -12
  43. package/src/dep-plugins/dep-plugins.command.ts +10 -26
  44. package/src/dep-plugins/dep-plugins.ts +13 -46
  45. package/src/dep-plugins/generate.ts +6 -34
  46. package/src/dep-plugins/harness-plugins.ts +16 -78
  47. package/src/dep-plugins/reconcile.ts +10 -27
  48. package/src/dep-plugins/resolve.ts +7 -46
  49. package/src/diagnose-bridges/agents-files.ts +2 -6
  50. package/src/diagnose-bridges/diagnose-bridges.ts +9 -13
  51. package/src/diagnose-bridges/diagnose-instructions.ts +73 -57
  52. package/src/diagnose-bridges/directory-files.ts +1 -4
  53. package/src/diagnose-bridges/doctor-guidance.ts +97 -148
  54. package/src/diagnose-bridges/doctor.command.ts +45 -21
  55. package/src/diagnose-bridges/git-bridge-state.ts +25 -35
  56. package/src/diagnose-bridges/json-with-comments.ts +2 -7
  57. package/src/diagnose-bridges/locator.ts +5 -14
  58. package/src/diagnose-configuration/diagnose-configuration.ts +17 -27
  59. package/src/diagnose-mcp/diagnose-mcp.ts +8 -34
  60. package/src/diagnose-mcp/mcp-baseline.ts +9 -33
  61. package/src/diagnose-mcp/mcp-model.ts +2 -29
  62. package/src/diagnose-mcp/mcp-secrets.ts +18 -45
  63. package/src/diagnose-mcp/mcp-sources.ts +13 -32
  64. package/src/diagnose-nonstandard/diagnose-nonstandard.ts +11 -22
  65. package/src/governance-overrides/governance-overrides.ts +148 -0
  66. package/src/governance-overrides/governance.command.ts +147 -0
  67. package/src/harness-registry/harness-registry.ts +24 -54
  68. package/src/harness-registry/instruction-bridge.ts +10 -29
  69. package/src/harness-registry/mcp-config.ts +4 -28
  70. package/src/harness-registry/nonstandard-artifact.ts +6 -18
  71. package/src/index.ts +18 -0
  72. package/src/initialize-harnesses/init.command.ts +6 -5
  73. package/src/initialize-harnesses/initialize-harnesses.ts +12 -1
  74. package/src/is-record/is-record.ts +0 -9
  75. package/src/mcp-inventory/mcp-inventory.ts +200 -40
  76. package/src/skill-projection/skill-projection.ts +16 -28
  77. package/src/skill-scripts/doctor.ts +4 -6
  78. package/src/skill-scripts/init.ts +4 -5
  79. package/src/skill-scripts/launchers.ts +5 -10
  80. package/skills/doctor/references/instructions.md +0 -14
  81. package/skills/doctor/scripts/doctor.mjs +0 -300
  82. package/skills/init/references/harnesses/claude-code.md +0 -54
  83. package/skills/init/scripts/doctor.mjs +0 -300
  84. package/skills/init/scripts/init.mjs +0 -300
  85. /package/skills/{doctor → doctor-buddy-agent-harness}/references/configuration.md +0 -0
  86. /package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/windsurf.md +0 -0
  87. /package/skills/{doctor → doctor-buddy-agent-harness}/references/mcp.md +0 -0
  88. /package/skills/{init → init-buddy-agent-harness}/references/frontmatter.md +0 -0
  89. /package/skills/{init → init-buddy-agent-harness}/references/harnesses/codex.md +0 -0
  90. /package/skills/{init → init-buddy-agent-harness}/references/harnesses/copilot-cli.md +0 -0
  91. /package/skills/{init → init-buddy-agent-harness}/references/harnesses/cursor.md +0 -0
  92. /package/skills/{init → init-buddy-agent-harness}/references/harnesses/devin-desktop.md +0 -0
  93. /package/skills/{init → init-buddy-agent-harness}/references/harnesses/gemini-cli.md +0 -0
  94. /package/skills/{init → init-buddy-agent-harness}/references/standard.md +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buddy-agent-harness",
3
- "version": "0.10.0",
3
+ "version": "0.12.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.10.0",
3
+ "version": "0.12.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.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Initialize standards-based agent configuration across agent harnesses",
5
5
  "author": {
6
6
  "name": "repobuddy"
package/README.md CHANGED
@@ -9,7 +9,7 @@ An agent plugin and CLI for initializing or updating a consumer repository's sta
9
9
 
10
10
  ## Install the plugin
11
11
 
12
- In Claude Code, add the [cyberplace](https://github.com/cyberuni/cyberplace) marketplace and install the plugin and its `init` skill:
12
+ In Claude Code, add the [cyberplace](https://github.com/cyberuni/cyberplace) marketplace and install the plugin and its `init-buddy-agent-harness` skill:
13
13
 
14
14
  ```text
15
15
  /plugin marketplace add cyberuni/cyberplace
@@ -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 every command on `buddy`, as `buddy agent-harness doctor`, `buddy agent-harness init`, and `buddy agent-harness dep-plugins`.
21
+ `init` runs behind the `init-buddy-agent-harness` 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
 
@@ -3,10 +3,11 @@ import { dirname, join } from 'node:path'
3
3
  import { fileURLToPath, pathToFileURL } from 'node:url'
4
4
 
5
5
  const dir = dirname(fileURLToPath(import.meta.url))
6
+ // `dist/cli.mjs`, and each shipped skill's own bundle, are built by `pnpm build` (see
7
+ // `tsdown.config.ts`) and are not committed.
6
8
  const { run } = await import(pathToFileURL(join(dir, '..', 'dist', 'cli.mjs')).href)
7
9
 
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.
10
+ // The process boundary — the only place that reads `process.argv` or writes `process.exitCode`.
11
+ // Applied only when non-zero: clibuilder already sets it itself on an unknown option/command.
11
12
  const code = await run(process.argv)
12
13
  if (code !== 0) process.exitCode = code