{"_id":"@metaharness/host-copilot","_rev":"5-dc06ded36c9ebd64358535ab73f30494","name":"@metaharness/host-copilot","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@metaharness/host-copilot","version":"0.1.0","keywords":["agent-harness","github-copilot","copilot","vscode","mcp","host-adapter","ruflo","ADR-032"],"license":"MIT","_id":"@metaharness/host-copilot@0.1.0","maintainers":[{"name":"ruvnet","email":"ruv@ruv.net"}],"homepage":"https://github.com/ruvnet/agent-harness-generator","bugs":{"url":"https://github.com/ruvnet/agent-harness-generator/issues"},"dist":{"shasum":"10c23d42cd5e1f6b3423a31c52542dd36c099847","tarball":"https://registry.npmjs.org/@metaharness/host-copilot/-/host-copilot-0.1.0.tgz","fileCount":7,"integrity":"sha512-ZP4j2x+ta5CKF/azRdme78kzwIq6Ks0V5VYTCsUn0thfi+/Um7ze4ecdoZDNCOvAu40GNy9IZBpFNUQ17rHQBw==","signatures":[{"sig":"MEQCIFl1BWpqei4kh4fYA0Q2Uf1giAED/scKItTb7MQ+TQNVAiAcSpeKEpqsFL4ZwjM5u50GP08m3Uqx9VoTgnrtJWrM/A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13224},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5b81b587a95a11537dac220392b949e14934e873","scripts":{"lint":"tsc --noEmit","test":"vitest run --passWithNoTests","build":"tsc"},"_npmUser":{"name":"ruvnet","email":"ruv@ruv.net"},"repository":{"url":"git+https://github.com/ruvnet/agent-harness-generator.git","type":"git","directory":"packages/host-copilot"},"_npmVersion":"11.10.0","description":"GitHub Copilot (VSCode) host adapter for agent-harness-generator. Emits .vscode/mcp.json for the Copilot MCP client (ADR-032).","directories":{},"_nodeVersion":"24.12.0","dependencies":{"@metaharness/kernel":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/host-copilot_0.1.0_1781486127354_0.261348517912146","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@metaharness/host-copilot","version":"0.1.1","keywords":["agent-harness","github-copilot","copilot","vscode","mcp","host-adapter","ruflo","ADR-032"],"license":"MIT","_id":"@metaharness/host-copilot@0.1.1","maintainers":[{"name":"ruvnet","email":"ruv@ruv.net"}],"homepage":"https://github.com/ruvnet/agent-harness-generator","bugs":{"url":"https://github.com/ruvnet/agent-harness-generator/issues"},"dist":{"shasum":"17413aaf95fbca1dbfa588336a1c487a42a6b682","tarball":"https://registry.npmjs.org/@metaharness/host-copilot/-/host-copilot-0.1.1.tgz","fileCount":7,"integrity":"sha512-0eBLU5Ty4yUW4/AKO+n57CAL6MvPuvZ5GL36UhtWqQXZB1PCr/76i7WcFIF47Z41I2OZir828gvTq1yc8cLvaw==","signatures":[{"sig":"MEQCIDm4ZOC2nNI5IMY3WmE+a9M3MI347ok0uIiedLoZFdu8AiBGSLp88pZg2KieVLXZnX0vXRKgpFckqRI44VWiQr3fcw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15555},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"db1af4134a9c8330bacaa1a53cba2a21d28b78ad","scripts":{"lint":"tsc --noEmit","test":"vitest run --passWithNoTests","build":"tsc"},"_npmUser":{"name":"ruvnet","email":"ruv@ruv.net"},"repository":{"url":"git+https://github.com/ruvnet/agent-harness-generator.git","type":"git","directory":"packages/host-copilot"},"_npmVersion":"10.9.7","description":"GitHub Copilot (VSCode) host adapter for agent-harness-generator. Emits .vscode/mcp.json for the Copilot MCP client (ADR-032).","directories":{},"_nodeVersion":"22.22.2","dependencies":{"@metaharness/kernel":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/host-copilot_0.1.1_1781637570334_0.23197419313939793","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@metaharness/host-copilot","version":"0.1.2","keywords":["agent-harness","github-copilot","copilot","vscode","mcp","host-adapter","ruflo","ADR-032"],"license":"MIT","_id":"@metaharness/host-copilot@0.1.2","maintainers":[{"name":"ruvnet","email":"ruv@ruv.net"}],"homepage":"https://github.com/ruvnet/agent-harness-generator","bugs":{"url":"https://github.com/ruvnet/agent-harness-generator/issues"},"dist":{"shasum":"82a9d926eefd31eaab2f671822a25caab2121765","tarball":"https://registry.npmjs.org/@metaharness/host-copilot/-/host-copilot-0.1.2.tgz","fileCount":7,"integrity":"sha512-5FnZLuMyuvne0nB2JCD6usjeLC6xz2pnLM/km0SDZ/nI9hsPpy091hvmr8d5XmjVu5QS6ih0c351C6yi9fcn3Q==","signatures":[{"sig":"MEQCIAm/aJ5F7rCHWoGOzsnlO/ZPuaVkCxoFTWWVfCpRonftAiAD7KOfMcsZbp6/VWIo3IidCIwWx0KNqRAalZAMNv0zRw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15556},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"82b3ce543ca7807e8bf95115563e81a601fc0738","scripts":{"lint":"tsc --noEmit","test":"vitest run --passWithNoTests","build":"tsc"},"_npmUser":{"name":"ruvnet","email":"ruv@ruv.net"},"repository":{"url":"git+https://github.com/ruvnet/agent-harness-generator.git","type":"git","directory":"packages/host-copilot"},"_npmVersion":"10.9.7","description":"GitHub Copilot (VSCode) host adapter for agent-harness-generator. Emits .vscode/mcp.json for the Copilot MCP client (ADR-032).","directories":{},"_nodeVersion":"22.22.2","dependencies":{"@metaharness/kernel":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/host-copilot_0.1.2_1781736102786_0.7961567521596076","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@metaharness/host-copilot","version":"0.1.3","keywords":["agent-harness","github-copilot","copilot","vscode","mcp","host-adapter","ruflo","ADR-032"],"license":"MIT","_id":"@metaharness/host-copilot@0.1.3","maintainers":[{"name":"ruvnet","email":"ruv@ruv.net"}],"homepage":"https://github.com/ruvnet/agent-harness-generator","bugs":{"url":"https://github.com/ruvnet/agent-harness-generator/issues"},"dist":{"shasum":"72b0b759ddca6e09de8b663b9038fec047266003","tarball":"https://registry.npmjs.org/@metaharness/host-copilot/-/host-copilot-0.1.3.tgz","fileCount":7,"integrity":"sha512-zrfWYpdR3H1P6NA9/v1heDOkhmw+25iECnrPPtj4oNk5PUXiGn8U9dHnxvmCPiK9CMqMrR12KxBjeI7/p3ZQmQ==","signatures":[{"sig":"MEUCIHgeo+cE3QM0HTrfCa7sHwXRq3+OEBPeU4L6V14TAl/VAiEA8Dl5b1lslXqzu+BCw956HutcSe1z3qWKg1q2SDNFH80=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGM41snQjEFcEJMEVIePPi3wq4xyCjFSXwUDL9JuVwyaAiEA5TpnN/V14SskeHHRKXqgL0wq1IWZd7hCJVAeFfzIRb0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16309},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"tsc --noEmit","test":"vitest run --passWithNoTests","build":"tsc"},"_npmUser":{"name":"ruvnet","email":"ruv@ruv.net"},"repository":{"url":"git+https://github.com/ruvnet/agent-harness-generator.git","type":"git","directory":"packages/host-copilot"},"_npmVersion":"10.9.8","description":"GitHub Copilot (VSCode) host adapter for agent-harness-generator. Emits .vscode/mcp.json for the Copilot MCP client (ADR-032).","directories":{},"_nodeVersion":"22.23.2","dependencies":{"@metaharness/kernel":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/host-copilot_0.1.3_1790437773072_0.8771144764548515","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"_id":"@metaharness/host-copilot@0.1.4","bugs":{"url":"https://github.com/ruvnet/metaharness/issues"},"dist":{"shasum":"43ad284bf1262680e6bf18eb00513b6134a3bc7b","tarball":"https://registry.npmjs.org/@metaharness/host-copilot/-/host-copilot-0.1.4.tgz","fileCount":7,"integrity":"sha512-tNdckHdCfhfSfyh79L9qoadyCSY0bZhX9N/eXiMDHGLqovbVuX92H4uFaY9QRN3DEwUmVIsPPf2Sk5IpFQ8/JA==","signatures":[{"sig":"MEUCIQC/fqoBWnpGQeLQkIIIBxObITMNORtQAfyjoKFSn1v/JQIgf+O6ddPkShAkocHhfq3OHotY1sUmkyZQR3eGwjvpJoA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCI5gPeL9EoWqxOLid+gmsHyoukK1X15l01u8q+4T4o3gIgakAA17WsxjG2qnPPkM4jIKKmsFCswaEKp+yGxvfSL6A="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@metaharness%2fhost-copilot@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17946},"main":"./dist/index.js","name":"@metaharness/host-copilot","type":"module","_from":"file:/home/runner/work/metaharness/metaharness/dist-release/metaharness-host-copilot-0.1.4.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"license":"MIT","scripts":{"lint":"tsc --noEmit","test":"vitest run --passWithNoTests","build":"tsc"},"version":"0.1.4","_npmUser":{"name":"ruvnet","email":"ruv@ruv.net"},"homepage":"https://ruv.io","keywords":["metaharness","agent-harness","github-copilot","copilot","vscode","mcp","model-context-protocol","host-adapter"],"_resolved":"/home/runner/work/metaharness/metaharness/dist-release/metaharness-host-copilot-0.1.4.tgz","_integrity":"sha512-tNdckHdCfhfSfyh79L9qoadyCSY0bZhX9N/eXiMDHGLqovbVuX92H4uFaY9QRN3DEwUmVIsPPf2Sk5IpFQ8/JA==","repository":{"url":"git+https://github.com/ruvnet/metaharness.git","type":"git","directory":"packages/host-copilot"},"_npmVersion":"10.9.9","description":"GitHub Copilot (VS Code) host adapter for MetaHarness: emits .vscode/mcp.json for the Copilot MCP client from a harness spec.","directories":{},"maintainers":[{"name":"ruvnet","email":"ruv@ruv.net"}],"_nodeVersion":"22.23.4","dependencies":{"@metaharness/kernel":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.12","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/host-copilot_0.1.4_1794227109445_0.8746821589452438"}}},"time":{"created":"2026-06-15T01:15:27.263Z","modified":"2026-11-09T12:25:09.858Z","0.1.0":"2026-06-15T01:15:27.519Z","0.1.1":"2026-06-16T19:19:30.466Z","0.1.2":"2026-06-17T22:41:42.914Z","0.1.3":"2026-09-26T15:49:33.162Z","0.1.4":"2026-11-09T12:25:09.526Z"},"bugs":{"url":"https://github.com/ruvnet/metaharness/issues"},"license":"MIT","homepage":"https://ruv.io","keywords":["metaharness","agent-harness","github-copilot","copilot","vscode","mcp","model-context-protocol","host-adapter"],"repository":{"url":"git+https://github.com/ruvnet/metaharness.git","type":"git","directory":"packages/host-copilot"},"description":"GitHub Copilot (VS Code) host adapter for MetaHarness: emits .vscode/mcp.json for the Copilot MCP client from a harness spec.","maintainers":[{"name":"ruvnet","email":"ruv@ruv.net"}],"readme":"# @metaharness/host-copilot\n\n<!-- ruv-seo:start (ADR-356) -->\nTurns a MetaHarness harness spec into the files GitHub Copilot in VS Code reads: `.vscode/mcp.json` for the Copilot MCP client, `.github/copilot-instructions.md`, and an install runbook.\n\n**Supported environments:** Node.js 20+ on Linux, macOS and Windows. ESM only (`import`, not `require`). Pure JavaScript with no native build step; `@metaharness/kernel` is used only for its `HarnessSpec` and `HostAdapter` types.\n\n## Quickstart\n\n```bash\nnpm install @metaharness/host-copilot\n```\n\nSave this as `quickstart.mjs` and run `node quickstart.mjs`:\n\n```js\nimport adapter from '@metaharness/host-copilot';\n\nconst files = adapter.generateConfig({\n  name: 'my-bot',\n  description: 'demo harness',\n  mcpServers: [{ name: 'my-bot', command: ['node', './bin/mcp.js'] }],\n});\nconsole.log(`host: ${adapter.name}`);\nfor (const [path, body] of Object.entries(files)) {\n  console.log(`${path}  (${body.split('\\n').length} lines)`);\n}\n```\n\nExpected output:\n\n```text\nhost: copilot\n.vscode/mcp.json  (19 lines)\ninstall.md  (29 lines)\n.github/copilot-instructions.md  (4 lines)\n```\n\n**Next:** [`@metaharness/copilot`](https://www.npmjs.com/package/@metaharness/copilot) — scaffold a complete, doctor-checked harness for this host in one command (`npx @metaharness/copilot my-bot`).\n\n**Where it fits:** `npx metaharness new <name> --host copilot` adds this package as a dependency of the generated harness, and the generated `__tests__/smoke.test.ts` imports it, so `npm test` in that harness fails if the adapter is missing or broken.\n<!-- ruv-seo:end -->\n\n## Reference\n\n> GitHub Copilot (VSCode) host adapter for [agent-harness-generator](https://github.com/ruvnet/agent-harness-generator).\n> The 7th host adapter, per [ADR-032](https://github.com/ruvnet/agent-harness-generator/blob/main/docs/adrs/ADR-032-host-copilot.md).\n\n## What it does\n\nGenerates the config files a harness needs to run inside **GitHub Copilot Chat**\non VSCode 1.99+. The adapter emits:\n\n- `.vscode/mcp.json` — the MCP server registration table Copilot reads to\n  discover the harness's tools\n- `install.md` — the runbook that walks the user through the one-time\n  workspace-trust gate VSCode requires before `.vscode/mcp.json` loads\n\n## Schema\n\nVSCode 1.99 reads two keys: the newer `servers` (top-level) and the\nClaude-Code-compatible `mcpServers`. This adapter emits **both** for\nforward + backward compatibility.\n\n```json\n{\n  \"servers\": {\n    \"codeindex\": {\n      \"command\": \"node\",\n      \"args\": [\"./dist/mcp-server.js\"],\n      \"env\": { \"LOG_LEVEL\": \"info\" }\n    },\n    \"remote\": {\n      \"url\": \"https://example.com/mcp\"\n    }\n  },\n  \"mcpServers\": { \"...\": \"(same map, for older runtimes)\" }\n}\n```\n\nEach server entry must have either `command` (stdio) OR `url` (HTTP\nstreamable). The package's test contract enforces this.\n\n## Constraints\n\n- **VSCode 1.99+** — earlier versions don't have first-class MCP support\n- **Active Copilot subscription** required\n- **Workspace trust gate** — VSCode refuses to load `.vscode/mcp.json` until\n  the user trusts the workspace once. The adapter ships `install.md`\n  walking through this.\n\n## Install + run\n\nThis adapter is normally consumed via `npx metaharness <name> --host copilot`,\nwhich picks it up from the canonical HOSTS catalog. Direct programmatic use:\n\n```ts\nimport { adapter } from '@metaharness/host-copilot';\nconst files = adapter.generateConfig!(harnessSpec);\n// files === { '.vscode/mcp.json': '...', 'install.md': '...' }\n```\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","readmeFilename":"README.md"}