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.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/README.md +2 -2
- package/bin/buddy-agent-harness.mjs +4 -3
- package/dist/cli.mjs +480 -546
- package/dist/index.d.mts +205 -298
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +682 -621
- package/dist/index.mjs.map +1 -1
- package/dist/skill-scripts/doctor.mjs +45 -42
- package/dist/skill-scripts/init.mjs +45 -42
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/skills/{doctor → doctor-buddy-agent-harness}/README.md +1 -1
- package/skills/{doctor → doctor-buddy-agent-harness}/SKILL.md +9 -7
- package/skills/{doctor → doctor-buddy-agent-harness}/references/bridges.md +7 -7
- package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/claude-code.md +3 -2
- package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/codex.md +1 -1
- package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/copilot-cli.md +1 -1
- package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/cursor.md +1 -1
- package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/devin-desktop.md +1 -1
- package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/gemini-cli.md +1 -1
- package/skills/doctor-buddy-agent-harness/references/instructions.md +22 -0
- package/skills/{doctor → doctor-buddy-agent-harness}/references/nonstandard.md +4 -4
- package/skills/doctor-buddy-agent-harness/scripts/doctor.mjs +303 -0
- package/skills/enhance/SKILL.md +12 -3
- package/skills/enhance/references/delegation.history.md +11 -1
- package/skills/enhance/references/delegation.md +23 -2
- package/skills/{init → init-buddy-agent-harness}/README.md +1 -1
- package/skills/{init → init-buddy-agent-harness}/SKILL.md +22 -14
- package/skills/{init → init-buddy-agent-harness}/agents/openai.yaml +1 -1
- package/skills/{init → init-buddy-agent-harness}/references/agents-md.md +38 -19
- package/skills/{init → init-buddy-agent-harness}/references/detection.md +2 -2
- package/skills/init-buddy-agent-harness/references/harnesses/claude-code.md +64 -0
- package/skills/init-buddy-agent-harness/scripts/doctor.mjs +303 -0
- package/skills/init-buddy-agent-harness/scripts/init.mjs +303 -0
- package/skills/repair/SKILL.md +2 -2
- package/skills/repair/references/classes.md +2 -2
- package/skills/repair/scripts/doctor.mjs +45 -42
- package/src/cli.ts +15 -24
- package/src/command-output/command-output.ts +21 -12
- package/src/dep-plugins/dep-plugins.command.ts +10 -26
- package/src/dep-plugins/dep-plugins.ts +13 -46
- package/src/dep-plugins/generate.ts +6 -34
- package/src/dep-plugins/harness-plugins.ts +16 -78
- package/src/dep-plugins/reconcile.ts +10 -27
- package/src/dep-plugins/resolve.ts +7 -46
- package/src/diagnose-bridges/agents-files.ts +2 -6
- package/src/diagnose-bridges/diagnose-bridges.ts +9 -13
- package/src/diagnose-bridges/diagnose-instructions.ts +73 -57
- package/src/diagnose-bridges/directory-files.ts +1 -4
- package/src/diagnose-bridges/doctor-guidance.ts +97 -148
- package/src/diagnose-bridges/doctor.command.ts +45 -21
- package/src/diagnose-bridges/git-bridge-state.ts +25 -35
- package/src/diagnose-bridges/json-with-comments.ts +2 -7
- package/src/diagnose-bridges/locator.ts +5 -14
- package/src/diagnose-configuration/diagnose-configuration.ts +17 -27
- package/src/diagnose-mcp/diagnose-mcp.ts +8 -34
- package/src/diagnose-mcp/mcp-baseline.ts +9 -33
- package/src/diagnose-mcp/mcp-model.ts +2 -29
- package/src/diagnose-mcp/mcp-secrets.ts +18 -45
- package/src/diagnose-mcp/mcp-sources.ts +13 -32
- package/src/diagnose-nonstandard/diagnose-nonstandard.ts +11 -22
- package/src/governance-overrides/governance-overrides.ts +148 -0
- package/src/governance-overrides/governance.command.ts +147 -0
- package/src/harness-registry/harness-registry.ts +24 -54
- package/src/harness-registry/instruction-bridge.ts +10 -29
- package/src/harness-registry/mcp-config.ts +4 -28
- package/src/harness-registry/nonstandard-artifact.ts +6 -18
- package/src/index.ts +18 -0
- package/src/initialize-harnesses/init.command.ts +6 -5
- package/src/initialize-harnesses/initialize-harnesses.ts +12 -1
- package/src/is-record/is-record.ts +0 -9
- package/src/mcp-inventory/mcp-inventory.ts +200 -40
- package/src/skill-projection/skill-projection.ts +16 -28
- package/src/skill-scripts/doctor.ts +4 -6
- package/src/skill-scripts/init.ts +4 -5
- package/src/skill-scripts/launchers.ts +5 -10
- package/skills/doctor/references/instructions.md +0 -14
- package/skills/doctor/scripts/doctor.mjs +0 -300
- package/skills/init/references/harnesses/claude-code.md +0 -54
- package/skills/init/scripts/doctor.mjs +0 -300
- package/skills/init/scripts/init.mjs +0 -300
- /package/skills/{doctor → doctor-buddy-agent-harness}/references/configuration.md +0 -0
- /package/skills/{doctor → doctor-buddy-agent-harness}/references/harnesses/windsurf.md +0 -0
- /package/skills/{doctor → doctor-buddy-agent-harness}/references/mcp.md +0 -0
- /package/skills/{init → init-buddy-agent-harness}/references/frontmatter.md +0 -0
- /package/skills/{init → init-buddy-agent-harness}/references/harnesses/codex.md +0 -0
- /package/skills/{init → init-buddy-agent-harness}/references/harnesses/copilot-cli.md +0 -0
- /package/skills/{init → init-buddy-agent-harness}/references/harnesses/cursor.md +0 -0
- /package/skills/{init → init-buddy-agent-harness}/references/harnesses/devin-desktop.md +0 -0
- /package/skills/{init → init-buddy-agent-harness}/references/harnesses/gemini-cli.md +0 -0
- /package/skills/{init → init-buddy-agent-harness}/references/standard.md +0 -0
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
|
|
9
|
-
// Applied only when non-zero
|
|
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
|